El mar, 15 oct 2024 a las 7:53, RVP (<r...@sdf.org>) escribió: > > On Mon, 14 Oct 2024, Ramiro Aceves wrote: > > > netbsd-raspa4$ { sleep 1; stty -f /dev/ttyU0 ... ; } & cat /dev/ttyU0 > > stty: /dev/ttyU0: Resource temporarily unavailable > > ^C > > > > That `...' == fill-in-the-blanks :) > > > netbsd-raspa4$ { sleep 1; stty -f /dev/ttyU0 9600 raw clocal cread > > -crtscts; } & cat /dev/ttyU0 > > stty: /dev/ttyU0: Resource temporarily unavailable > > ^C > > > > Can you try the dial-out device? > > { sleep 1; stty -f /dev/dtyU0 9600 raw clocal cread -crtscts; } & cat > /dev/dtyU0 > > kre@'s should also work with this, I think.
Hello RVP, I really appreciate your effort in finding the truth here (also the others). netbsd-raspa4$ { sleep 1; stty -f /dev/dtyU0 9600 raw clocal cread -crtscts; } & cat /dev/dtyU0 netbsd-raspa4$ nothing....... netbsd-raspa4$ (stty 9600 raw; cat) </dev/dtyU0 netbsd-raspa4$ nothing... cu command seems to work also with /dev/dtyU0 device: netbsd-raspa4$ cu -l /dev/dtyU0 -s 9066 |hexdump -C > message ~~. (to stop cu command) netbsd-raspa4$ cat message 00000000 43 6f 6e 6e 65 63 74 65 64 0d 0a 40 40 45 e1 8a |Connected..@@E..| 00000010 8d 87 e8 0c 8c 81 80 00 00 00 08 b1 53 8b ff 35 |............S..5| 00000020 fb a5 00 01 3d 1a 00 00 00 00 00 00 80 80 80 80 |....=...........| 00000030 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 |................| * 00000050 80 80 80 ca d4 8d 0a 40 40 45 61 0a 0d 07 e8 0c |.......@@Ea.....| 00000060 0c 03 00 00 00 00 08 b1 d3 8b ff b5 fb a5 80 81 |................| 00000070 bd 9a 80 80 80 80 80 80 80 80 80 80 80 80 80 80 |................| 00000080 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 |................| 00000090 80 00 00 00 00 80 80 80 80 80 80 80 80 00 00 ca |................| 000000a0 56 0d 0a 40 40 c5 e1 8a 8d 87 e8 8c 8c 85 00 00 |V..@@...........| 000000b0 00 00 08 b1 53 8b ff 35 fb a5 00 01 3d 1a 00 00 |....S..5....=...| 000000c0 00 00 00 00 00 00 00 00 00 00 00 80 80 80 80 80 |................| 000000d0 80 80 80 80 80 80 80 80 80 00 00 00 00 00 80 00 |................| 000000e0 00 00 00 80 80 00 80 80 00 80 00 4a 50 0d 0a 40 |...........JP..@| 000000f0 40 45 61 0a 0d 07 e8 0c 0c 07 00 00 00 00 08 b1 |@Ea.............| 00000100 53 8b ff 35 fb a5 80 81 bd 9a 80 80 80 80 80 00 |S..5............| 00000110 80 80 80 80 80 80 80 00 80 00 00 00 00 00 00 00 |................| 00000120 00 00 00 00 00 00 00 00 00 00 00 80 00 80 00 00 |................| 00000130 00 00 00 00 00 00 00 4a d2 0d 0a 7e 0d 0a 5b 45 |.......J...~..[E| 00000140 4f 54 5d 0d 0a |OT]..| 00000145 Thanks. > > After reading tty(4), I see that there's a difference between ttyU0 and dtyU0, > (as a Linux guy, all this is a bit obscure...), and maybe we should've been > using the dial-out device all along. > > HTH, > > -RVP