RS232 Relay: Difference between revisions

From Leo's Notes
This page was last edited on 2 June 2017, at 23:40.
Created page with "There is this RS232 Relay with 'www.iorelay.com' printed on the PCB. I believe the manual for it is this: https://s3.amazonaws.com/assets.controlanything.com/manuals/R2X.PDF..."
 
No edit summary
Line 3: Line 3:
I believe the manual for it is this: https://s3.amazonaws.com/assets.controlanything.com/manuals/R2X.PDF
I believe the manual for it is this: https://s3.amazonaws.com/assets.controlanything.com/manuals/R2X.PDF


On linux, I tried to do this to no avail:
On Linux, turning it off and on:


{{highlight|lang=terminal|code=
{{highlight|lang=terminal|code=
# printf \\$(printf '%03o' 254) > /dev/ttyS0 ; printf \\$(printf '%03o' 4) > /dev/ttyS0
# stty -F /dev/ttyS0 9600
# while true ; do echo -e "\xFE\x01" > /dev/ttyS0 ; sleep 1 ; echo -e "\xFE\x00" > /dev/ttyS0 ; sleep 1 ; done
}}
}}

Revision as of 23:40, 2 June 2017

There is this RS232 Relay with 'www.iorelay.com' printed on the PCB.

I believe the manual for it is this: https://s3.amazonaws.com/assets.controlanything.com/manuals/R2X.PDF

On Linux, turning it off and on:

# stty -F /dev/ttyS0 9600
# while true ; do echo -e "\xFE\x01" > /dev/ttyS0 ; sleep 1 ; echo -e "\xFE\x00" > /dev/ttyS0 ; sleep 1 ; done