My sensor (photodetector + LED) communicates (send-only: does not receive) via RS-232 at 9600 8-N-1. It has 4 lines for
- power
- ground
- RS-232
- TTL Serial
The sensor's ground and RS-232 are connected to a Manhattan Serial to USB cable.: Is there any reason why this would not work? or is there anything else to be done / considered?
Battery power has been applied and seems to power the sensor's LED (LED is bright). Raspberry pi has been configured per
The rPi serial-to-usb adapter has been tested as described (click) here The sensor was plugged in: is it reasonable (or have I missed a step?) to expect that:
cat /dev/ttyUSB0
will display the raw data sent by the sensor? Is there a better (surefire+easy) to confirm that serial data is streaming from the sensor? Thank you for actionable suggestions (executable commands).
cat
is a poor choice - it depends what the sensor outputs. I would use a terminal program e.g.minicom
. Incidentally if you have a ttl output why not connect to the Pi RxD (via a divider to ensure voltage does not exceed 3.3V).