The stupid question is the question not asked | |
PerlMonks |
Re: RS232, parity, program flowby MarSkv267 (Novice) |
on Jan 21, 2022 at 13:49 UTC ( [id://11140679]=note: print w/replies, xml ) | Need Help?? |
You were correct, when parity is altered it's enough to write it without saving it into conf file. I'm still working on my RS232 script, I've downgraded it removing the GUI part to avoid messing with non-blocking (which I can include later when basic problems are solved). On another laptop I have program Termite where the auto-reply is set for 303132 (hex) and the respond is 33 (hex). When my script sends 303132 (hex) Termite should respond with 33 (hex) in its GUI.
When I start my script Termite writes receives the code sent from my script and sends back code 33 (hex):
Unfortunatelly my script doesn't receive the code 33 (hex) sent by Termite. If I send 33 manually from Termite it writes 33 0a and my script responds as:
The Airlogger (sniffer) shows the following:
Polling in Termite is set to 200ms and the sleep in my script is set to 200ms as well. I set different polling in both Termite and my script and it doesn't solve anything. I have no idea why code 33 (hex) (or any code sent, 33 is just for an example) sent from Termite is not recognized. Thanks in advance for your help!
In Section
Seekers of Perl Wisdom
|
|