Hello, I'm using the interface DSD TECH 2PCS USB to TTL on a PI. I get a response, but not such as you. Please see screenshot, attached.Hi Tobi, on Raspian (or any Linux) pipe the data thro ‘od -x’
By default, its output in ASCII, but you want hexidecimal,
then the data looks like it does in the protocol document. ie
# cat /dev/ttyUSB0 | od -x
You will have to wait a few seconds for data as its heavily buffered. To fix that, you can temporarily disable buffering like this:
# cat /dev/ttyUSB0 | stdbuf -i0 -o0 -e0 od -x
0000000 2424 0f57 420e 0000 000c 01dd 641a 2466
0000020 5624 0e16 0d17 0d0f 0d0d 100d 1c0d 2f0d
0000040 b50d d764 2424 0f57 420e 0000 0014 01dd
0000060 641a 246e 5724 0e0f 0042 1900 dd00 1a01
0000100 7364 2424 1656 170e 100d 0d0d 0d0d 0d12
0000120 0d1a 0d32 64b4 68d8 3a3a 0d33 240a 5724
0000140 0e0f 0042 0c00 dd00 1a01 6664 2424 0f57
0000160 420e 0000 000f 01dd 641a 2469 5624 0e16
0000200 0d14 0d10 0d0d 0d10 0d12 0d1a 0d2e 64b4
0000220 24d0 5724 0e0f 0042 1700 dd00 1a01 7164
0000240 2424 0f57 420e 0000 0017 01dd 641a 6871
0000260 3a3a 0d33 240a 5624 0e16 0d14 0d10 0d0d
0000300 0d10 0d0f 0d1c 0d31 64b4 24d2 5724 0e0f
reboot, reset usb, other usb port does not result in any change. do you have an idea why my data is not received in the same way as yours in the example? Baud 115200.
Attachments
Last edited: