Hello everyone,
I know there are similar questions already asked in the forum. I tried following all the solutions mentioned in these forums and it is not working out for me.
We are facing an issue “RFCOMM TTY support not available” when we try to receive data via serial communication over Bluetooth. We need to configure the nano’s WiFi adapter via a phone app connected by Bluetooth. We are able to get serial communication over Bluetooth to work on linux machine(ubuntu 18.04lts) from the below steps.
sudo nano /etc/systemd/system/dbus-org.bluez.service;
ExecStart=/usr/lib/bluetooth/bluetoothd -C;
ExecStartPost=/usr/bin/sdptool add SP;
sudo reboot
However, when we tried the same thing on Jetson nano, while binding the device with $ sudo rfcomm bind 0 xx:xx:xx:xx:xx:xx. got an error message “RFCOMM TTY support not available”. When the bluez.service file is appended with that -C option, even the Bluetooth service is failing.
We found out on the Tech forums that for the above error, we need to recompile the kernel and enable the rfcomm tty support there. For this we followed the steps shown in this tutorial NVIDIA Jetson Nano - Docker optimized Linux Kernel · Docker Pirates ARMed with explosive stuff . As shown in this tutorial, in the menuconfig panel,I enabled the “RFCOMM TTY support”, which was under the “Networking support/Bluetooth subsystem support”. But when I tried to recompile the kernel, I got the following error and the build was not successful.
/home/jetbot/kernel/nvidia/drivers/video/tegra/dc/hdcp/hdmihdcp.c: In function ‘link_integrity_check’:
/home/jetbot/kernel/nvidia/drivers/video/tegra/dc/hdcp/hdmihdcp.c:1940:16: error: unused variable ‘nonce’ [-Werror=unused-variable]
unsigned char nonce[HDCP_NONCE_SIZE];
^~~~~
…
…
scripts/Makefile.build:649: recipe for target ‘drivers/video/tegra/dc’ failed
make[3]: *** [drivers/video/tegra/dc] Error 2
scripts/Makefile.build:649: recipe for target ‘drivers/video/tegra’ failed
make[2]: *** [drivers/video/tegra] Error 2
scripts/Makefile.build:649: recipe for target ‘drivers/video’ failed
make[1]: *** [drivers/video] Error 2
Makefile:1104: recipe for target ‘drivers’ failed
make: *** [drivers] Error 2
real 2m31.729s
user 3m2.588s
sys 0m39.596s
So, we are not able to get RFCOMM TTY support enabled in Nano. We need help on this. Any suggestions would really be appreciated.
Best Regards,
Krishna R