Dear Sirs,
I usually make hardware devices that includes the F2M03GLA Bluetooth Wireless Uart, produced by Free2move.(F2M03GLA | Free2Move)
Now I need to connect a B4A application to such device that is configured as
endpoint (slave, accepting all units) to my android phone (v. 2.2.1).
Using a sample application as the serial bluetooth tutorial, if I try to connect to the device, using
Serial1.Connect(PairedDevices.Get(l.Get(res))) or Serial1.Connect('right mac
address')
I get the following error trapped by the sample Serial1_Connected
function:
java.io.IOException: Service Discovery Failed.
Please note that with the same hardware device I can send data (SPP) to a PC (Windows and Linux), to Nokia S60 phones and WM6.5 smartphones.
Android OS show me that the device is correctly paired (but not connected).
Reading some forums I found that sometimes the RFCOMM needs a workaround:
Issue 5427 - android - can't initiate SPP Communication without SDP - Android - An Open Handset Alliance Project - Google Project Hosting
Now I am asking to the community if someone else have found this problem on the way, and if the workaround can be implemented in B4A.
Thanx
I usually make hardware devices that includes the F2M03GLA Bluetooth Wireless Uart, produced by Free2move.(F2M03GLA | Free2Move)
Now I need to connect a B4A application to such device that is configured as
endpoint (slave, accepting all units) to my android phone (v. 2.2.1).
Using a sample application as the serial bluetooth tutorial, if I try to connect to the device, using
Serial1.Connect(PairedDevices.Get(l.Get(res))) or Serial1.Connect('right mac
address')
I get the following error trapped by the sample Serial1_Connected
function:
java.io.IOException: Service Discovery Failed.
Please note that with the same hardware device I can send data (SPP) to a PC (Windows and Linux), to Nokia S60 phones and WM6.5 smartphones.
Android OS show me that the device is correctly paired (but not connected).
Reading some forums I found that sometimes the RFCOMM needs a workaround:
Issue 5427 - android - can't initiate SPP Communication without SDP - Android - An Open Handset Alliance Project - Google Project Hosting
Now I am asking to the community if someone else have found this problem on the way, and if the workaround can be implemented in B4A.
Thanx