Android Question BLE2 cannot connect to BLE module from my Android device

PhilN

Member
Licensed User
Longtime User
I use an app called Microchip Bluetooth Data to scan, connect, send and receive data to and from the BM78 module from my Samsung Galaxy A50 running Android 10. So I can connect from my phone to the BLE module. Now I am trying to connect using the BLE example here.

I have scoured the B4A forum for hours looking for info that could help me connect to the BM78 module from the example app. I even tried restarting my phone hoping that it might reset the BLE hardware and hopefully get things working. It did not.

Below is the unfiltered log when I press the Scan & Connect button:

Log:
ViewPostIme pointer 0
ViewPostIme pointer 1
startLeScan(): null
STATE_ON
uid=10393(b4a.example) identical 1 line
STATE_ON
Start Scan with callback
onScannerRegistered() - status=0 scannerId=12 mScannerId=0
Found: Zodiac BT 5, 34:81:F4:32:56:23, RSSI = -64, (MyMap) {9=[B@5799070, 1=[B@564cfe9, 10=[B@a7bb46e, 0=[B@2b9870f}
stopLeScan()
STATE_ON
STATE_ON
Stop Scan with callback
connecting
STATE_ON
connect() - device: 34:81:F4:32:56:23, auto: false
isSecureModeEnabled
registerApp()
registerApp() - UUID=60a0e862-2933-46e5-a7b0-1104005591db
onClientRegistered() - status=0 clientIf=12
onClientConnectionState() - status=133 clientIf=12 device=34:81:F4:32:56:23
close()
unregisterApp() - mClientIf=12
Disconnected

So it seems as though it never actually connects and I don't know what I can do to fix this. I'm not sure what to make of the unfiltered log above. Does anyone have any ideas?
 

DonManfred

Expert
Licensed User
Longtime User
BM78 is that REALLY a BLE Device?
I just found out that it is BLUETOOTH....

Did you tried to connect to it using Bluetooth Admin?
 
Upvote 0
Top