camerart
Well-Known Member
Hi,
I've set up a couple of PICs with HC-12 radio modules. They are sending HSEROUT messages i, e, 'Hserout "PRESS ", strpr, CrLf ' which show on a SERIAL TERMINAL (Teraterm, Putty, Termite) With a number being sent "1", 1 or "2", 2 and setting 'i' as BYTE and STRi as STRING.
I've tried lots of variations!
I've tried to use HSERIN, HSERGET on the receiving PCB to do anything like switch a LED etc, but can't get it to work.
Here's some of what I've tried:
main:
stri = #i
Hserget i
If i > 0 Then
Hserout "Number: ", #stri, CrLf
WaitMs 50
'WaitMs 1000
Endif
Goto main
End
'Dim i As Byte
'Hseropen 19200
'loop:
'Hserget i
'If i > 0 Then
'Hserout "Number: ", #i, CrLf
'WaitMs 50
'Endif
'Goto loop
Any ideas please.
Camerart.
I've set up a couple of PICs with HC-12 radio modules. They are sending HSEROUT messages i, e, 'Hserout "PRESS ", strpr, CrLf ' which show on a SERIAL TERMINAL (Teraterm, Putty, Termite) With a number being sent "1", 1 or "2", 2 and setting 'i' as BYTE and STRi as STRING.
I've tried lots of variations!
I've tried to use HSERIN, HSERGET on the receiving PCB to do anything like switch a LED etc, but can't get it to work.
Here's some of what I've tried:
main:
stri = #i
Hserget i
If i > 0 Then
Hserout "Number: ", #stri, CrLf
WaitMs 50
'WaitMs 1000
Endif
Goto main
End
'Dim i As Byte
'Hseropen 19200
'loop:
'Hserget i
'If i > 0 Then
'Hserout "Number: ", #i, CrLf
'WaitMs 50
'Endif
'Goto loop
Any ideas please.
Camerart.