This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Uart- 0x0d received byte changes to 0x0a in beaglebone.

Other Parts Discussed in Thread: CC2530, Z-STACK

Dear all,

I don't know if its correct forum for the problem i am facing. Anyway i am trying to create application to control zigbee devices using beaglebone. Beaglebone communicates with CC2530 through uart. I am using MT commands for this purpose. I have written code to read the MT commands responses through serial port. For ZDO_END_DEVICE_ANNCE_IND response, i get following packet FE 0A 45 C1 4F 4B 4F 4B 7B 8F 12 05 00 4B 12 in stead of FE 0D 45 C1 4F 4B 4F 4B 7B 8F 12 05 00 4B 12 00 80 9E. Hence in stead of 0x0d, i am getting 0x0a. I had tried to find in google about this and found one of the forum describing similar problem at this link " " i had tried to set the variable as suggested in the link during initialization of uart but i am still getting  same problem.

I had also tried to send 0x0d through uart using hyper terminal and was getting 0x0a only in stead of 0x0d. Can anyone please suggest where do i need to make the changes?

tty.c_cflag &= ~INLCR;
tty.c_cflag &= ~ICRNL;

Regards

Kumar