[APU2C4] How to use both ttyS0 and ttyS1 HC-06

Hi everyone. Installed OpenWrt 19.07.3 x86 on APU2C4 which has 2 serial ports on board, I want to make backup control via bluetooth on the HC-06 module - the module is working properly, the echo comes to the phone on command, but nothing from the phone : ( tell me how you can implement this option? Thank you in advance !

cat /proc/cmdline
cat /etc/inittab

Thanks for the answer! I'm out of place right now, can I see something else right away?

if you have remote access, sure...

search the forum for inittab and craft a suitable line for ttyS1

for full kernel output the cmdline needs to be adjusted...

Thank you so much! I will write results here later

1 Like
root@TOR:~# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz root=PARTUUID=339542e9-02 rootfstype=ext4 rootwait console=tty0 console=ttyS0,115200n8 console=ttyS1,115200n8 noinitrd
root@TOR:~# cat /etc/inittab
::sysinit:/etc/init.d/rcS S boot
::shutdown:/etc/init.d/rcS K shutdown
ttyS0::askfirst:/usr/libexec/login.sh
ttyS1::askfirst:/usr/libexec/login.sh
hvc0::askfirst:/usr/libexec/login.sh
tty1::askfirst:/usr/libexec/login.sh
root@TOR:~#
root@TOR:~# dmesg | grep ttyS
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz root=PARTUUID=339542e9-02 rootfstype=ext4 rootwait console=tty0 console=ttyS0,115200n8 console=ttyS1,115200n8 noinitrd
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz root=PARTUUID=339542e9-02 rootfstype=ext4 rootwait console=tty0 console=ttyS0,115200n8 console=ttyS1,115200n8 noinitrd
[    0.000000] console [ttyS0] enabled
[    1.129041] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    1.157495] serial8250: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[    7.967592] procd: cannot set group dialout for /dev/ttyS15 (getgrnam: 0)
[    8.003604] procd: cannot set group dialout for /dev/ttyS6 (getgrnam: 0)
[    8.035792] procd: cannot set group dialout for /dev/ttyS13 (getgrnam: 0)
[    8.064565] procd: cannot set group dialout for /dev/ttyS4 (getgrnam: 0)
[    8.099111] procd: cannot set group dialout for /dev/ttyS11 (getgrnam: 0)
[    8.141103] procd: cannot set group dialout for /dev/ttyS2 (getgrnam: 0)
[    8.198194] procd: cannot set group dialout for /dev/ttyS0 (getgrnam: 0)
[    8.248492] procd: cannot set group dialout for /dev/ttyS9 (getgrnam: 0)
[    8.298522] procd: cannot set group dialout for /dev/ttyS7 (getgrnam: 0)
[    8.320260] procd: cannot set group dialout for /dev/ttyS14 (getgrnam: 0)
[    8.356127] procd: cannot set group dialout for /dev/ttyS5 (getgrnam: 0)
[    8.384559] procd: cannot set group dialout for /dev/ttyS12 (getgrnam: 0)
[    8.420350] procd: cannot set group dialout for /dev/ttyS3 (getgrnam: 0)
[    8.448987] procd: cannot set group dialout for /dev/ttyS10 (getgrnam: 0)
[    8.484775] procd: cannot set group dialout for /dev/ttyS1 (getgrnam: 0)
[    8.541914] procd: cannot set group dialout for /dev/ttyS8 (getgrnam: 0)
root@TOR:~# stty -F /dev/ttyS1
speed 9600 baud; line = 0;
-brkint -imaxbel
root@TOR:~# stty -F /dev/ttyS1 115200

How to change speed to ttyS1 to permanent 115200

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.