I am trying to read data from a LV-MaxSonar-EZ0's TX pin connected to the RX pin on a Raspberry Pi Zero W. The problem I'm running into is that the data I'm getting does not fit what the sensor's datasheet is specifying. According to that I should be receiving data in all ASCII. An ASCII 'R' followed by three ASCII numbers and a carriage return (ASCII 13).
When I fire up minicom with the command minicom -b 9600 -w -o -H -D /dev/serial0
I get the following:
00 00 00 00 00 00 00 00 00 00 00 00 d8 05 c0 06 f6 ac 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d8 05 c0 06 f6 ac 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d8 05 c0 06 f6 ac 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d8 05 c0 06 f6 ac 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d8 05 c0 06 f6 ac 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d8 05 c0 06 f6 ac 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d8 05 c0 06 f6 ac 0f 00 00 00 00 00 00 00 00 00 00 00
The output is uniform, so I guess that's good. However I am not seeing anything that corresponds to ASCII characters. Any tips?
I am running Raspbian Stretch Lite release from 2017-11-29 and connect to it over ssh.
serial console
usingsudo raspi-config
or the GUI preferences dialog. You will get junk data on the serial interface if that isn't disabled.