Hi guys! I would like to use the UART interface to make this board communicate with another one.
I have plugged a serial to TTL converter to a laptop and connected it to the TX, RX and GND pins of the RespeakerCore. I then opened a miniterm console (with the right baudrate and port settings) on my laptop and another one on the Respeaker. I powered on the Respeaker and the console output appears on miniterm. I would like to have full control over the TX and RX lines in order to correctly send and receive strings of data.
I have noticed that one service is using the ttyS2 device I am interested about.
</s>userk@glutamate:~$ sudo systemctl status | grep tty
│ ├─system-serial\x2dgetty.slice
│ │ ├─[email protected]
│ │ │ └─721 /sbin/agetty --keep-baud 115200,38400,9600 ttyS2 vt220
│ │ └─[email protected]
│ │ └─747 /sbin/agetty --keep-baud 115200,38400,9600 ttyGS0 vt220
│ │ └─767 brcm_patchram_plus --enable_hci --no2bytes --use_baudrate_for_download --tosleep 200000 --baudrate 1500000 --patchram /system/etc/firmware/bcm43438a0.hcd /dev/ttyS1
│ ├─system-getty.slice
│ │ └─[email protected]
│ │ └─720 /sbin/agetty --noclear tty1 linux
│ ├─1050 grep tty<e>
By stopping and disabling the service with:
</s>sudo systemctl stop [email protected]
sudo systemctl disable [email protected]<e>
the communication works in both directions till the next reboot. Then the console output is redirected to ttyS2 again
Is this method the best one to get rid of the console output on that port?
How do I make this configuration permanent?
Thanks,
Gepp