Hi All,
I'm using the example app from this tutorial:
https://www.b4x.com/android/forum/threads/android-bluetooth-bluetoothadmin-tutorial.14768/
I already succesfully used it to connect a Galaxy S3 with a BT module RN42.
Now I'm trying to connect the same Galaxy with a Microchip BM77 BT module (it's a dual mode module, with both 4.0 BLE and 3.0 classic modules).
I have already performed the scanning from Settings/Bluetooth and I have paired this device.
If I use:
"serial1.Connect(connectedDevice.Mac)"
or "serial1.Connect2(connectedDevice.Mac,"00001101-0000-1000-8000-00805F9B34FB")"
I obtain the error: " java.io.IOException: Connection refused"
If I use:
"serial1.Connect3(connectedDevice.Mac ,1)"
I obtain: "java.io.IOException: Permission denied"
Only if I use:
"serial1.ConnectInsecure(admin,connectedDevice.Mac,1)"
I obtain "connected: true" but after one second start the AStream_Error event and it result in "Connection is Broken".
If I use instead the app "Bluetooth spp pro" from Google Play, it is able to connect to the BM77 and I can chat with it.
I really don't know how to establish a comunication with the BM77.
Someone have suggestions?
Thanks a Lot and Best Regards.
Pier.