API No ack recieved.
si8
Posts: 20
hi,
i am using a program based on sending part of API_Base.bs2. I was wondering what would be a good way ot the the BS2 to resend the data if no ack is received (ie the receiver is temporarily off).
I currently have:
GetFrame:
IF XBdata(0) = $7E THEN ' Check for start delimiter
GOSUB ParseData
ELSEIF XBdata(0) <> $7E THEN
GOSUB package 'go to resend data
ENDIF
RETURN
But that just messes things up.
Any ideas or hints are appreciated
Si
Edit: It works without the IF and when the receiver is on
i am using a program based on sending part of API_Base.bs2. I was wondering what would be a good way ot the the BS2 to resend the data if no ack is received (ie the receiver is temporarily off).
I currently have:
GetFrame:
IF XBdata(0) = $7E THEN ' Check for start delimiter
GOSUB ParseData
ELSEIF XBdata(0) <> $7E THEN
GOSUB package 'go to resend data
ENDIF
RETURN
But that just messes things up.
Any ideas or hints are appreciated
Si
Edit: It works without the IF and when the receiver is on
Comments
DO
...
SERIN...
IF XBDATA(3) = $89 THEN EXIT
...
LOOP