Android Question USB-Serial vs Arduino


Licensed User

sorry - English is not my native language.

My Problem: I have connected an Arduino Uno with a temperature sensor and a 433 Mhz Transmitter to my Android 24" Tablet...

With the USBSerial-Lib i can send and receive over the ARduinio Serial-Port (USB) - but not more then 2 or 3 chars..... after the 2 chars the "Sub Astreams_NewData.. " is called again.

...Dim usb As UsbSerial


If usb.Open(9600) Then
astreams.Initialize(usb.GetInputStream, usb.GetOutputStream, "astreams")
Log ("USB connected")

Else Log("Error opening USB port")


Sub Astreams_NewData (Buffer() AsByte)Dim Buf AsString
Buf = (BytesToString(Buffer, 0, Buffer.Length, "UTF8"))Log("Buffer In: " & Buf)E
nd Sub

The Log looks like this:

Buffer In: TE
Buffer In: MP_
Buffer In: WZ2
Buffer In: 4C

The Sendstring at the Arduino was: Serial.Println("TEMP_WZ24C");

Could someone help me?

Thx Tom