hi colleagues,
need your support please! The communication issue happens with simple setup.
MK66 works as slave and is connected to Linux (Ubuntu or Astra) WS. The MK66 executes "echo" application. I.e. it returns back the data received.
Running following repeating sequence on the WS gives communication error:
- Call open.
- Call write (9 bytes transfer via COM).
- read (9 bytes reception from COM).
- Call close.
this gives the communication error once per 1000 cycles.
It worth to remark that:
1) disabling the modem lines (CLOCAL) on the WS side helps to avoid the issue.
But unfortunately according to the existing setup specific, the host side cannot be changed/updated.
2) In case we remove Open/Close from the loop, the issue disappears. But again this is already existing protocol, which we cannot modify unfortunately.
3) USB cable is shielded
4) using Windows based WS reduce number or communication errors due to Windows USB driver specific, which tries to recover automatically.
Kindly help to find the workaround on the MK66 side.
thanks!
Slava