AnsweredAssumed Answered

How to clear this flag "IO_SERIAL_TRANSLATION" ?

Question asked by Yadhukrishnan V M on Jan 17, 2017
Latest reply on Feb 7, 2017 by soledad

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".

Outcomes