0

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).

gatorback
  • 637
  • 1
  • 6
  • 21

1 Answers1

2

I usually use screen /dev/ttyUSB0 9600 to ensure I get exactly what I expect at the correct speed. You may have to apt-get install screen to make that work.

I don't see any issue with what you are doing assuming you got the TX/RX parts right and didn't accidentally cross the RS-232 signal levels onto something TTL level. Note also your TTL serial could be 5 V, which could hurt things if connected directly to 3v3 logic.