Greetings,
We are working on a project where for the first time we have some binary data going through.
We have found one problem where software flow control is on by default, so we turned it off like so:
termios my_termios;
if (tcgetattr(g_serial_port, &my_termios) < 0) {
printf("Getting serial port attributes failed
");
}
my_termios.baud = CURRENT_BAUD_RATE;
//Turn Off Software Flow Control
my_termios.c_iflag = 0;
if (tcsetattr(g_serial_port, TCSANOW, &my_termios) < 0) {
///
That fixed some problems, but the digi still seems to stop responding on the serial side at some point.
This never happened on any other projects. What is different on this project is that we have some binary data mixed in.
Any ideas?
Any other options we need to set?
The only way I found to do that reliably was to modify the netos_serl.c file in bsp/devices. It only takes a few quick hacks to comment out all the handshaking.
-Erik
What did you do? What were the problems you encountered? How did you fix it? Can you send me the file(s)?
Unfortunately I did this with NetOS 6.0, so the files wouldn’t do you much good.
Do a search for DSR, DTR, etc. The code has lots of comments (at least it did 2 years ago). Just comment out the code with the statements that say “This code blocks the RX until…”.
-Erik
Greetings,
You wrote:
Unfortunately I did this with NetOS 6.0, so the files wouldn’t do you much good.
Well I am at 6.0f + patch so they might do.
And I use the diff tool beyond compare, so that I could diff your files with the files I get from Digi.
I am using 6.0f + patch. Will upgrading to 6.3 fix this? Is this something to try?