Minicom Script, Hex, Expect
I'm trying to write a script to run in minicom for communicating across an RS485 connection. So far, I can see the trafic across the connection which is in the 8n1 format at 9600 baud. I'd like my script to read the incoming data and when certain data are seen, send data back across the connection. A sample of the type of script I'm trying to use is as follows:
Code:
expect { |
I'm not sure that you can send hex values like that with 'send'
From Code:
man runscript Quote:
|
Ignore send for now
For now let's ignore the sending of hex values, as I can't get the expect command to function properly. I'm trying something similar to the following:
Code:
expect { |
Maybe minicom is getting in the way. Anyway, I wonder if the following might be useful to you
http://en.wikibooks.org/wiki/Serial_...l_Command_Line |
Useful link.
I also had this problem but I instead went for python, pyserial and wrote a python script. |
Thanks for the feedback, all. Veerian, any chance I could take a look at your Python script?
|
All times are GMT -5. The time now is 12:44 PM. |