I'm trying to figure out how to get a bluetooth serial port connection from my iMX6 target (uname -a = 4.1.18-i.MX6-PD15.3.1 #1 SMP Wed Mar 1 13:14:14 MST 2017 armv71 GNU/Linux)
I have a WiLink8 module, but I'm using a USB bluetooth dongle from Plugable.
The device seems to come up okay and my Windows computer sees it and reports its services correctly.
I have successfully had the embedded device report that Serial Port is a service and windows reports that it is COM8.
I type "rfcomm listen xx:xx:xx:xx:xx:xx" on the iMX6 and then use TeraTerm to open a terminal to COM8.
iMX6 reports a connection is created on /dev/rfcomm0.
I can type on the iMX6 console, apparently to the PC. I can type in TeraTerm, apparently to the iMX6. However, I can not see the iMX6 typing on the PC and cannot see the PC typing on the iMX6. Note that I'm not seeing "garbage" on either side. However, to be safe, I set the TeraTerm baud rate to 9600, which is the default baud rate for bluetooth spp (I think).
Any suggestions as to how I can get to the point where I can have text show up on both sides?
This is just in preparation for sending text back and forth under program control.
Thanks for any hints. serial console bluetooth
已解决! 转到解答。
Okay, I got it working.
I connect to my console for the iMX6. For me that is COM6 on the PC. I use Tera Term.
After logging in as root, I ran a script: script contents =
Okay, I got it working.
I connect to my console for the iMX6. For me that is COM6 on the PC. I use Tera Term.
After logging in as root, I ran a script: script contents =
First please check baudrate and other options with "stty -F /dev/rfcomm0" command.
And set right options if necessary.
Have a great day,
Victor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------