Hi,
I cant make the AT-commands work on any of my HC-12s with any of my pgms which have been working until now. When I f.ex. run hippy's pgm:
I cant make the AT-commands work on any of my HC-12s with any of my pgms which have been working until now. When I f.ex. run hippy's pgm:
Code:
#Picaxe 14M2
#Terminal 38400
#No_Data
Symbol HC12_SET = C.1
Symbol TX_pin = C.2
Symbol RX_pin = C.3
Symbol HC12BaudRate = T9600_32
PowerOnReset:
High TX_pin
Low HC12_SET
SetFreq M32
Pause 16000
SerTxd( Cr, LF, "Started", CR, LF )
MainLoop:
Do
b1 ="?" : b2 = "?" : b3 = "?" : b4 = "?"
b5 ="?" : b6 = "?" : b7 = "?" : b8 = "?"
SerOut TX_Pin, HC12BaudRate, ( "AT" )
SerIn [8000], RX_Pin, HC12Baudrate, b1,b2,b3,b4,b5,b6,b7,b8
If b1 = "?" Then
SerTxd( "No response", CR, LF )
Else
SerTxd( "R:", b1,b2,b3,b4,b5,b6,b7,b8, CR, LF )
End If
Pause 8000
Loop
[/code/]
I get the response:
R:[80][80].....
It appears that the frequency with which HC-12 answers is different (slower) from HC12BaudRate = T9600_32 as it appears from the enclosed screen pictures of scope.
Can anyone explain?
regards
torben
Attachments
-
138.9 KB Views: 21
-
136.2 KB Views: 18