Simple Serial Reception
christopher
Posts: 31
Hi,
I am using simple serial to read responses from a modem. I have disabled echo . When the output is sent to pc I receive crlfOKcrlf combination but when I have the prop read same from simple_serial on a pic I only read from Kcrlf.
SER.START(12,17,1200) 'nice and slow
dira[noparse][[/noparse]0..7]~~
ser.tx(65) 'A
ser.tx(84) 'T
ser.tx(13) 'CR
'read modem response
outa[noparse][[/noparse]0..7] := ser.rx
I can only correctly read from the 4th byte "K" onward. Can simple-serial be used like this ? Even when I insert a delay I am only accurately reading from the 4ht byte onward. Where am I going wrong?
Thanks
Chris
I am using simple serial to read responses from a modem. I have disabled echo . When the output is sent to pc I receive crlfOKcrlf combination but when I have the prop read same from simple_serial on a pic I only read from Kcrlf.
SER.START(12,17,1200) 'nice and slow
dira[noparse][[/noparse]0..7]~~
ser.tx(65) 'A
ser.tx(84) 'T
ser.tx(13) 'CR
'read modem response
outa[noparse][[/noparse]0..7] := ser.rx
I can only correctly read from the 4th byte "K" onward. Can simple-serial be used like this ? Even when I insert a delay I am only accurately reading from the 4ht byte onward. Where am I going wrong?
Thanks
Chris
Comments
Thanks
Chris