Cant make Sim900 run

friis

Senior Member
Hi,
I have a pgm:

Code:
#PICAXE 28X2
#Terminal 9600

sertxd ("Start",cr,lf)
hSerSetup B115200_8,%001
pause 2000

MAIN:
    hSerOut 0, ( "AT",cr )
         
    hSerOut 0, ( "AT+CMGF=1",cr )
                
    hSerOut 0, ( "AT+CMGS=",$22,"+4581116757",$22,cr )
        
    hSerOut 0, ( "Bla, bla", $0A )
1. First time I run it after having started up the Sim900 using the Power Key the Sim900 answers OK at every step.
2. It does not, however, send the SMS
3. The second time I run it, the answer is > at every step even though the Power Light and the Net Light have not changed.

It is as if the Sim900 shuts down after the first run. As a matter of fact it does that already after the statement:

hSerOut 0, ( "AT+CMGS=",$22,"+4581116757",$22,cr )

Maybe that is why it does not send the SMS.

Can anyone help?
best regards
torben
 
Top