Second Serial Port to Read and Write to Rfcomm0

ESP32 Devlog six — Bluetooth and ESP32

"Connect to ESP32 using Bluetooth from linux organisation is not recommended" — they said. And they were right if you're trying on the linux reckoner.

A. Requirements

          sudo apt-become install bluetooth bluez bluez-tools bluez-utils rfkill blueman screen        
          sudo usermod -a -Grand dialout $USER
sudo reboot

B. Bluetooth Pairing — Legacy

          $ sudo bluetoothctl
[bluetooth]# power on
[bluetooth]# agent on
[bluetooth]# scan on
[bluetooth]# pair 24:6F:28:17:second:4A

So far so skilful. Or is information technology?

SLAP #1
          sudo rfcomm connect /dev/rfcomm0 24:6F:28:17:2D:4A 1 &        

          sudo killall rfcomm
sudo rfcomm release 0
sudo rfcomm demark 0 24:6F:28:17:2D:4A
          sudo screen /dev/rfcomm0        
          [screen is terminating]        

SLAP #2
          sudo stty -F /dev/rfcomm0 cs8 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts        

What a letdown

C. Bluetooth Legacy, Revisited

          sudo su -c "echo 'Hello LCD' > /dev/rfcomm0"        
          sudo echo Hello World > /dev/rfcomm0        

It's working, at last

D. The quest continues: Using BMP180 Module

Temperature rising as i touched the sensor

East. Next Blog

dwightforthown.blogspot.com

Source: https://medium.com/@18218004/devlog-6-bluetooth-and-esp32-ba076a8e207d

Related Posts

0 Response to "Second Serial Port to Read and Write to Rfcomm0"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel