b4a_bridge bluetooth problems

kolbe

Active Member
Licensed User
Longtime User
I was able to get a connection once, I exited the IDE without disconnecting, now I keep on getting a basic4android "value cannot be null" error when trying to connect to the device.

I pair the device to the PC.
Start b4a_bridge on the device and then "start Bluetooth"
Then in the IDE "connect to Bluetooth"

Here I get the above error, the IDE hangs, I never get the window that allows to find devices and connect.

I've tried the reset Bluetooth connection
rebooting, device, PC
Reinstalling on device and PC
pairing the device/pc again
reinstalling the BT drivers on the PC

Before I realized the device b4a_bridge needed to be running before I started the IDE connection, I was getting the same error.

I can transfer files b/w device and PC with Bluetooth.
 

kolbe

Active Member
Licensed User
Longtime User
Here you go.
 

Attachments

  • bt_b4a_bridge_error.JPG
    bt_b4a_bridge_error.JPG
    48.5 KB · Views: 331

kolbe

Active Member
Licensed User
Longtime User
Yes I did reboot both the PC and the device thinking the BT drivers had crashed or something similar.

It worked just once and since then never again always with the same error when I try to connect.

When it did work and I closed the IDE without disconnecting, I did briefly see a toast message on the device, java.?? Unfortunately I don't have that log. I get the feeling that something is corrupted but uninstalling and reinstalling doesn't fix it.

What is odd is that BT is working, I can transfer files for example and my IOIO bluetooth stuff works, but maybe that is all using a different protocol.
 

kolbe

Active Member
Licensed User
Longtime User
Erel,

Any further ideas as to why I'm getting this error?

Do you know what value is null?
 

kolbe

Active Member
Licensed User
Longtime User
This is what I get.

B4X:
b
System.ArgumentNullException: Value cannot be null.
   at System.Threading.Monitor.Enter(Object obj)
   at et.e()
   at au.a(Object A_0)
 
Top