Looks like it is the sending device or java library maybe ?
On a Pi3+ (running Bullseye LITE 32-bit), I read serial data from USB /dev/ttyACM0 and save in received.log, using stty (like you). I repeatedly send 70 bytes (0x00 to 0x45) to it from an Arduino UNO over USB (at 115200). Each received packet ends with 0x40, 0x41, 0x42, 0x43, 0x44, 0x45
It also works using python 3.9.2 with pyserial to read one byte at a time.
On a Pi3+ (running Bullseye LITE 32-bit), I read serial data from USB /dev/ttyACM0 and save in received.log, using stty (like you). I repeatedly send 70 bytes (0x00 to 0x45) to it from an Arduino UNO over USB (at 115200). Each received packet ends with 0x40, 0x41, 0x42, 0x43, 0x44, 0x45
Code:
pi@pi:~ $ cat received.log | hexdump -C00000000 00 01 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 |................|00000010 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 |.............. !|00000020 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 |"#$%&'()*+,-./01|00000030 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 |23456789:;<=>?@A|00000040 42 43 44 45 00 01 02 03 04 05 06 07 08 09 0a 0b |BCDE............|00000050 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b |................|00000060 1c 1d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b |.... !"#$%&'()*+|00000070 2c 2d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b |,-./0123456789:;|00000080 3c 3d 3e 3f 40 41 42 43 44 45 00 01 02 03 04 05 |<=>?@ABCDE......|00000090 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 |................|000000a0 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 |.......... !"#$%|000000b0 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 |&'()*+,-./012345|000000c0 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 45 |6789:;<=>?@ABCDE|000000d0 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f |................|000000e0 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f |................|000000f0 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f | !"#$%&'()*+,-./|00000100 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f |0123456789:;<=>?|00000110 40 41 42 43 44 45 |@ABCDE|
Statistics: Posted by neilgl — Mon Apr 29, 2024 4:36 pm