Hi,

IŽneed a Solution for my Firmware,I must to compare Received Data,but the Problem is that the lenght of the strings are not always the same.

For Example i send $WP+CALL=12345... and I should receive this $OK:CALL or $ERR:CALL when I use this $WP+GSMINFO=1234 i should receive $MSG:GSMINFO="xxx",27,0,0.

All the answers have this first character "$" and I want to put the Answer on my LCD.

Receive:
Dummy[Input_Byte_Count] = RCREG ' Clear USART Flag by reading USART data
If Dummy[0] = 36 then ' Character $
High LCD_Light
Lcdout $fe, 1 ' Clear screen
If Dummy[Input_Byte_Count] = 10 then 'Line Feed
Pause 5
Lcdout $fe,$80,str Dummy\Input_Byte_Count+1
Pause 5
Input_Byte_Count = 0
else
Input_Byte_Count = Input_Byte_Count + 1
endif
else
Dummy[0] = $00
endif
Resume

Is this a good way to do this ?

Thanks for any answer

Regards Pesti