Thanks boys.
Currently, I do a simple 28bytes communication between radio modems using DT instant interrupts to get the Serial data like this:
Code:
Get_char:
ser_in=0
hserin 100,noreceived,[wait("##"),str temp_array\file] 'Get 28 characters
if temp_array[0]=node then 'Are for this node station?
ser_in=1 'if yes, then flag data and copy
endif
noreceived: 'else return
@ INT_RETURN
If data are coming to the serial port, then if the 2 first are ## data are captured in the temp_array (28 long)
The first byte is the node station. If data are for this node, then a flag is raised.
My concern is that, data can be any number including the $23 which is '#' character.
So this might lead the routine to hang if data are out of sync sometime.
My thought was to use data in the array only in ascii form without increasing length of temp_array x 3, by converting the ascii values while receiving them.
Ioannis
Bookmarks