Community
cancel
Showing results for 
Search instead for 
Did you mean: 
DDam
Novice
1,256 Views

Edison reboots or hangup after using SPP communication

Jump to solution

Hi all,

I am doing test with SPP communication using RFCOMM. I have connected and transmitted data successfully from my phone to Edison device using BlueTerm app via rfcomm0 channel 1 that are based on pages 52 of bluetooth document http://download.intel.com/support/edison/sb/edisonbluetooth_331704004.pdf http://download.intel.com/support/edison/sb/edisonbluetooth_331704004.pdf. However, after disconnecting from BlueTerm app on my phone, Edison will reboot or hangup automatically. So my questions are:

- How can I fix this problem ?

- Besides, BlueTerm doesn't provide the sending file options. I tried another apps but they can not connect to Edison using SPP communication. Hence, how can I send the text file instead of string of characters from my phone to Edison when using RFCOMM with SPP communication?

Thank you very much for your help.

1 Solution
idata
Community Manager
80 Views

Hello squaredn,

 

 

Which image are you using? I have experienced this issue on older versions of the image. For those cases the fix was that you had to create a kernel patch for the files:

 

 

drivers/tty/tty_io.c

 

include/linux/tty.h

 

net/bluetooth/rfcomm/tty.c

 

 

The patches needed to be done are described in https://github.com/01org/edison-linux/commit/c2ab5bf3c8a9cd2f884d2ee44bb695427a1cce2d

 

 

Try that and let us know if it helps.

 

 

For your second question, if you would like to send a file instead of a string of characters through Bluetooth, then my suggestion is that you use Obex instead of SPP. In section 6.13 of the Intel® Edison Bluetooth* Guide, you can find how to transfer files using Obex-FTP through Bluetooth.

 

 

I hope this helps, I will glad to help you if otherwise, let us know.

 

Peter.

View solution in original post

4 Replies
idata
Community Manager
81 Views

Hello squaredn,

 

 

Which image are you using? I have experienced this issue on older versions of the image. For those cases the fix was that you had to create a kernel patch for the files:

 

 

drivers/tty/tty_io.c

 

include/linux/tty.h

 

net/bluetooth/rfcomm/tty.c

 

 

The patches needed to be done are described in https://github.com/01org/edison-linux/commit/c2ab5bf3c8a9cd2f884d2ee44bb695427a1cce2d

 

 

Try that and let us know if it helps.

 

 

For your second question, if you would like to send a file instead of a string of characters through Bluetooth, then my suggestion is that you use Obex instead of SPP. In section 6.13 of the Intel® Edison Bluetooth* Guide, you can find how to transfer files using Obex-FTP through Bluetooth.

 

 

I hope this helps, I will glad to help you if otherwise, let us know.

 

Peter.

View solution in original post

DDam
Novice
80 Views

Hi Peter,

Thank you very much for your help

I will try it and report the result.

For my second question, In the case of using SPP to send a file, is it possible ?

Thanks

DDam
Novice
80 Views

Hi Peter,

I fixed this error based on your advice.

Thank you so much

idata
Community Manager
80 Views

That's great to hear squaredn! If you have any other doubts, don't hesitate coming back to the communities!

 

 

Peter.
Reply