- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
I have hard time with bluez...
plz, help me..
I'm working with nodejs (use bleno)
I want to connect smart phone with edison.
and it works. but..
when phone is turning off(and It has low connectivity it means rssi is low.. ), ble isn't work anymore.
and I recognized that after command..
rfkill block bluetooth
rfkill unblock bluetooth
and then it work.. (I think it is because BCM43340 restarted...)
but I have to restart my node.js program.
I want to know,
How can I prevent it.
or..
How can I get working ble without restart my node.js program.
when smart phone is turning off, I got this error message..
Bluetooth: Frame Reassembly Failed
Bluetooth: hci0 command 0x1405 tx timeout
when I restart my node.js program without rebooting BCM43340, I got this error message..
[ 2978.427043] Bluetooth: hci0 command 0x200a tx timeout
[ 2980.426796] Bluetooth: hci0 command 0x0406 tx timeout
[ 3267.976723] Bluetooth: hci0 command 0x0c01 tx timeout
[ 3269.976541] Bluetooth: hci0 command 0x2001 tx timeout
[ 3271.976128] Bluetooth: hci0 command 0x1001 tx timeout
[ 3273.975882] Bluetooth: hci0 command 0x0c6d tx timeout
[ 3275.975574] Bluetooth: hci0 command 0x0c6c tx timeout
[ 3277.975320] Bluetooth: hci0 command 0x1009 tx timeout
this is why I think this problem is because BCM43340 doesn't work...
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello kacey,
I believe that the correct approach would be to handle the issue from the project's script. I mean, you could add an exception to the code for this kind of issue that could prevent the script from crashing; my idea is that the exception would make the Edison disconnect from the phone before it turns off. Another way to handle it is to have the script check for the RSSI (since you mentioned that RSSI is low) and if it gets too low, disconnect the Edison from the phone to prevent the issue.
I believe the issue is not in the BCM43340 but on the script, because it might not know what to do when the connection to the phone is lost so it needs to be restarted when it happens. Have you tried to just restart the script instead of the BCM43340 and the script? What happens?
Peter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
hi peter.
thanks for your reply.
I already did "check for the RSSI and if it gets too low, disconnect the Edison from the phone."
but it doesn't work. because, It doen't get low rssi when phone is turning off.
instead of it,I can detect if rssi doesn't updated. (using check timeout..)
I checked it. and it works. so when I detect rssi update timeout, I call process.exit(1); and I use forever to restart my node.js application.
I'd like to know why is it happened?
could it be a bluez problem?
there is one thing I confused about what you said.
"Have you tried to just restart the script instead of the BCM43340 and the script? What happens?"
what does it mean?
I've understand like below..
if I restart my program without "rfkill block bluetooth" and "rfkill unblock bluetooth" ,
I get those messages.(I've told already..)
[ 2978.427043] Bluetooth: hci0 command 0x200a tx timeout
[ 2980.426796] Bluetooth: hci0 command 0x0406 tx timeout
[ 3267.976723] Bluetooth: hci0 command 0x0c01 tx timeout
[ 3269.976541] Bluetooth: hci0 command 0x2001 tx timeout
[ 3271.976128] Bluetooth: hci0 command 0x1001 tx timeout
[ 3273.975882] Bluetooth: hci0 command 0x0c6d tx timeout
[ 3275.975574] Bluetooth: hci0 command 0x0c6c tx timeout
[ 3277.975320] Bluetooth: hci0 command 0x1009 tx timeout
It doesn't happen everytime when phone is turning off.
sometimes it doesn't happen..(at that time, I can connect edison normally after rebooting phone )
kacey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Can you share your code? I would like to see if I can replicate this behavior.
Peter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi kacey,
Do you still have issues with this? If so, could you share your code to see if we can replicate the issue?
Peter.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page