How to clear this flag "IO_SERIAL_TRANSLATION" ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to clear this flag "IO_SERIAL_TRANSLATION" ?

686 Views
yadhukrishnanvm
Contributor III

Hi,

 I am working with the FRDM-K64F. I am trying to program the zigbee in the telegesis board using KDS. I got "/n/nok/n/n" when I send "AT/r" to the zigbee. But I want to get the "ok " in correct order as "/n/rok/r/n". I think the serial translation is on in mqx. But in my code I didn't set this flag(IO_SERIAL_TRANSLATION). I am doing as below.

 uint32_t flag=IO_SERIAL_NON_BLOCKING|IO_SERIAL_RAW_IO;

_io_ioctl(GSM_Port,IO_IOCTL_SERIAL_SET_BAUD,&flag);

and I opened the io channel as this,

GSM_Port = _io_fopen(GSM_CHANNEL,(char const *)(NULL ));
if( GSM_Port == NULL )
{
#ifndef DEBUG_PRINTOUT
//printf("CANNOT OPEN GSM TRANSMIT PORT\r\n");
#endif
/* device could not be opened */
_task_block();
}

Please help me in this. I need to get "/n/rOK/r/n" when I send "AT/r".

0 Kudos
Reply
1 Reply

523 Views
soledad
NXP Employee
NXP Employee

Hi,

Please check the below thread and let me know if this helps!!

Serial IO_SERIAL_NON_BLOCKING flag 


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------