Hi
I am interfacing FRDM K64F with Zigbee ETRX357. I am getting the output and my UART code is working but instead of the output \r\nOK\r\n for an AT\r transmitted i am getting \n\nOK\n\n. I cannot understand what is the reason.
Please help me if you have got any clues..
Regards,
Olivia
已解决! 转到解答。
Hi guys,
Just add these lines after you open your port.Because the IO_SERIAL_NON_BLOCKING which you enable at the time of opening a port is not working that was the issue.
setflag = IO_SERIAL_NON_BLOCKING;
ioctl(GSM_Port, IO_IOCTL_SERIAL_SET_FLAGS,&setflag);
Hope it helps someone.
Thanks and Regards,
Olivia
Hi guys,
Just add these lines after you open your port.Because the IO_SERIAL_NON_BLOCKING which you enable at the time of opening a port is not working that was the issue.
setflag = IO_SERIAL_NON_BLOCKING;
ioctl(GSM_Port, IO_IOCTL_SERIAL_SET_FLAGS,&setflag);
Hope it helps someone.
Thanks and Regards,
Olivia
hi Daniel,
I am not getting the output through the terminal. I am just debugging and watching the variable in KDS. Does this has something to do with the translation flags in MQX.
Regards,
Olivia