We are using Quectel LTE module with NVIDIA jestson NX. This module is connected to the USB interface with Nvidia. And we send AT commands to the ttyUSB2 interface.
When we are sending commands through minicom then it is working fine and giving proper response.
But when we are opening the file using (cat /dev/ttyUSB2 &) and then sending commands to it for example (echo -e “at+cgsn\r” > /dev/ttyUSB2) then it is misbehaving and showing error (some random garbage values). Similar issue is coming when we are using C code for the same and we are unable to resolve it after trying many things.
Kindly help us resolving this issue. I am attaching the code file for your reference.at.c (4.7 KB)