Re: sending hex string to /dev/ttyU1

2012-04-08 Thread Alan Corey
On Mon, 9 Apr 2012, Stuart Henderson wrote: On 2012-04-08, edasky wrote: hello misc @ For many years under Linux I used http://sjinn.sourceforge.net/ to control the relay card, such as rs232 -d /dev/ttyUSB1-s'\h 2A 61 00 06 88 01 20 87 3E \r" -r8 -hex Now I need to achieve the same result u

Re: sending hex string to /dev/ttyU1

2012-04-08 Thread Andres Perera
funny how so many perl people and online shellcode tutorials are ok with that contrived syntax i recommend perl -e 'print pack "i", 0x8800612a' it'll adjust to endianess as needed if you are truly interested in sending hex *strings* then it's not of much help On Sun, Apr 8, 2012 at 4:25 PM, Ted

Re: sending hex string to /dev/ttyU1

2012-04-08 Thread Stuart Henderson
On 2012-04-08, edasky wrote: > hello misc @ > > For many years under Linux I used http://sjinn.sourceforge.net/ > to control the relay card, such as > > rs232 -d /dev/ttyUSB1-s'\h 2A 61 00 06 88 01 20 87 3E \r" -r8 -hex > > Now I need to achieve the same result under OpenBSD (5.0) > > the sji

Re: sending hex string to /dev/ttyU1

2012-04-08 Thread Ted Unangst
On Sun, Apr 08, 2012, edasky wrote: > rs232 -d /dev/ttyUSB1-s'\h 2A 61 00 06 88 01 20 87 3E \r" -r8 -hex > > Now I need to achieve the same result under OpenBSD (5.0) > Anybody got an idea how to send such a hex string in /dev/ttyU1 ? Maybe something like perl -e 'print "\x2a\x61\x00\x88"' > /de

sending hex string to /dev/ttyU1

2012-04-08 Thread edasky
hello misc @ For many years under Linux I used http://sjinn.sourceforge.net/ to control the relay card, such as rs232 -d /dev/ttyUSB1-s'\h 2A 61 00 06 88 01 20 87 3E \r" -r8 -hex Now I need to achieve the same result under OpenBSD (5.0) the sjinn project compiles with an error, and is brok