Bluetooth SPP using Linux
Posted: Wed Apr 25, 2018 7:53 pm
Dear all,
I try to connect to an ESP32 executing the bt_spp_acceptor demo from an Ubuntu 17.3 VM running on Virtualbox 5.1.30r, which fails.
The funny thing is, that I can connect to the ESP32 using Windows or Android.
And from the Linux Box connections to other SPP devices work too.
The procedure:
Pairing using bluetoothctl works, info shows the device correctly. (The problem persists regardless of bonding first or not)
Connecting the device using rfcomm then fails:
I made nice logs of the connection attempt, but am not brave enough to find the cause of the abort (If the issue is on ESP32 or Linux side):
(Show starts at 32.789388)
I'll try to attach the log files here in the hope, someone more competent can give me a helping hand.
Best
Markus
I try to connect to an ESP32 executing the bt_spp_acceptor demo from an Ubuntu 17.3 VM running on Virtualbox 5.1.30r, which fails.
The funny thing is, that I can connect to the ESP32 using Windows or Android.
And from the Linux Box connections to other SPP devices work too.
The procedure:
Pairing using bluetoothctl works, info shows the device correctly. (The problem persists regardless of bonding first or not)
Code: Select all
[bluetooth]# info 24:0A:C4:03:A3:CA
Device 24:0A:C4:03:A3:CA
Name: ESP_SPP_ACCEPTOR
Alias: ESP_SPP_ACCEPTOR
Class: 0x2c0414
Icon: audio-card
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb)
RSSI: -49
Code: Select all
esp32@esp32:~$ rfcomm connect /dev/rfcomm0 24:0A:C4:03:A3:CA
Can't connect RFCOMM socket: Connection refused
Code: Select all
esp32@esp32:~$ sudo btmon --write ~/hcitrace.snoop | tee ~/hcitrace.txt
I'll try to attach the log files here in the hope, someone more competent can give me a helping hand.
Best
Markus