This article is not device specific, but rather is focused on using sdptool and rfcomm to setup a serial com port connection over bluetooth. If you have another method instead of these two Linux modules that is welcomed as well! My specific example uses the Intel Joule, but alternative devices can still use sdptool and rfcomm. Please feel free to explain for an alternative device that you have experience with, it may help me resolve a similar issue using Joule.
Introduction: I am currently trying to create a COM port connection between my PC and the Intel Joule platform. I have been able to do it with a cord but I would like to control it over Bluetooth. I've already paired the device with my computer and am currently following this tutorial:
Background for personal IoT system: I need to be able to create this serial connection over the Bluetooth port so that I can wirelessly collect data and store it to my local SQL. It would have to allow machines communicating as I want the data collection process to run completely autonomously. And I want an AI either on the joule or running through my client to use this data then run specific commands on the joule wirelessly through a serial Bluetooth connection. This type of serial connection through Linux base using sdptool is used in many devices such as the Arduino and the Joule. Even if you do not have experience with the joule but do have experience setting up a COM serial connection over Bluetooth, it will likely be very helpful for me to understand how to establish the serial connection over Bluetooth. If you have managed to acquire the connection with an alternative device lease share the information, it could allow me to use that same train of thought on the Joule.
Current Linux porting process and progress:
I am able to add a serial port with:
sdptool add SP
But when I run rfcomm to watch to port using:
rfcomm watch hci0 1 getty rfcomm0 115200 vt100 -a root
I receive this:
RFCOMM TTY layer initialized RFCOMM socket layer initialized RFCOMM ver 1.11 Waiting for connection on channel 1
From there I return to my PC's Bluetooth settings and traverse to COM Ports (none show up). SO I click Add... and I've tried both Incoming and Outgoing connection (choosing the paired joule device). The result is this error:
The device you selected does not have a serial port service running
... but I mean in the device it's saying
"waiting for connection on channel 1"