make sure that portA is low you use buttons HIGH
and this will block you'r code
[code:1:ab60b6fc2e]A = Inkey()
If A > 0 Then
Print "AT+CALM=a" ; A
Portb.0 = 1
Waitms 50
Portb.0 = 0
Wait 3600
End If [/code:1:ab60b6fc2e]
phone response to ANY commands sent so you get "OK" and CR LF , and then it hang for 3600 sec !!!!!
AND you read phone in decimal not chrs !!! so 0 is 48
↧