Android Question Bluetooth Serial AsyncStreams unable to receive data

Utpal Rawal

New Member
Licensed User
Longtime User
Hi,

I need some help on a problem that I am facing with Bluetooth Serial communication.

I have my bluetooth (BT) serial code ( pasted below ) which works perfectly on Nexus7 Tab.
I move to Lenovo Ideapad ( A1000-G Andr-4.2.1 ) and it stops to receive characters on serial link. ( it still continues to transmit )

I verified my setup BT dongle and other connection by using Blueterm chat. Setup is OK.

I searched through forums and checked for common issues. (I am not using Prefix more in Astreams)

Could someone please suggest what might be going wrong between the 2 types of tablets.

Thanks in advance !

Sub Serial1_Connected (Success As Boolean)
If Success Then
ToastMessageShow("Connected successfully", False)
AStreams.Initialize(Serial1.InputStream,Serial1.OutputStream, "AStreams")
connected = True
Else
connected = False
ToastMessageShow(LastException.Message, False)
End If
End Sub

Sub AStreams_NewData (Buffer() As Byte)
Dim msg As String
msg = BytesToString(Buffer, 0, Buffer.Length, "UTF8")
txtLog.Text = txtLog.Text & msg
End Sub
 

Utpal Rawal

New Member
Licensed User
Longtime User
Erel,

I interfaced my Ideatab to Nexus7 over Bluetooth chat. Initially Ideatab didn't show up as a device in Nexus7 list. Then I changed Bluetooth Chat setting in Nexus7 as "Show all devices, ignore classification". It made Ideatab visible in device list and I was able to successfully do 2-way chat.

Any clues now?

Thanks.
Utpal
 
Upvote 0
Top