Can't receive 0x1C when using AS

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

Can't receive 0x1C when using AS

518 Views
juanignaciotroi
Contributor III

Hello:

I am developing using an asinchronical serial component created with PE. I am trying to handle an EPSON printer using a protocol called Extended Protocol.

Using a RS232 interface (termite), I have checked that when I asking the printer (using a Printer Terminal) for date and time, the printer answers the followong frame:

[06][02]•[00][00][1C]À€[1C][1C][00][00][1C][1C]110316[1C]121550[03]04DC

However, when I try to receive this data using my KE02 MCU, (using the routine AS1_OnRxChar), every byte are saved in the buffer except the 0x1C.

Is there a reason why the AS1_OnRxChar doesn't detect this byte?

The routine I am implementing is the following:

Thank you very much

void AS1_OnRxChar(void){

    AS1_TComData ch;

  

  if(AS1_RecvChar(&ch) == ERR_OK){

  

  BUFFER_AS[cont_AS] = ch;

  }

  cont_AS++;

Tags (1)
0 Kudos
1 Reply

350 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Juan,

I have test on my FRDM-KE02Z board, using KDS3.1.0 with Processor Expert3.0.2

Version of KDS Processor Expert.jpg

I can receive the 0x1C and send it back to Virtual terminal port of OpenSDA.

AS1_OnRxChar.jpg

Would you please send me the version of your Processor Expert?

And I am a little confused about the À€ in frame " [06][02]•[00][00][1C]À€[1C][1C][00][00][1C][1C]110316[1C]121550[03]04DC "

I can't found it in ASCII table, so I haven't test your frame on my board.

Best Regards,

Robin

0 Kudos