fired up PE and 08m2.
Surfed picaxe forums and copied a code snipet to PE.
Checked the code and by mistake instead of push simulate button , pushed the program buttom.
Cant reprogram 08m2 no more! Tried the power off gizmo till exaustion.
Here the code and problem! the code was to 14m2 and changes the serout baud rate at C.0 - Im a dumbass :-(
Picaxe 14M2
hsersetup B9600_4, %00'Configure hardware serial port to 9600-baud
output B.2 : low B.2
wait 2 'Allow GSM module to fire upstart:
hserout 0,("AT",CR) 'Poll module for responce
gosub wfm 'Wait for module to say it's ready
hserout 0,("AT&F",CR)
gosub wfm
hserout 0,("AT&D",CR)
gosub wfm
hserout 0,("AT&K",CR)
gosub wfm
hserout 0,("ATE0",CR)
gosub wfm
hserout 0,("AT+CSMP=17,167,0,0",CR)
gosub wfm
hserout 0,("AT+CMEE=0",CR)
gosub wfm
hserout 0,("AT+CREG?",CR)
gosub wfm
hserout 0,("AT+CMGF=1",CR)
gosub wfm
hserout 0,("AT+CNMI=1,0,0,0,1",CR)
gosub wfm
hserout 0,("AT+CPMS?",CR)
gosub wfm
hserout 0,("AT+CPMS=",0x22,"SM",0x22,",",0x22,"SM",0x22,CR)
gosub wfm
hserout 0,("AT+CSQ",CR)
gosub wfm
hserout 0,("AT+COPS?",CR)
gosub wfm
hserout 0,("AT&W",CR)
gosub wfm
high B.2 'Turn on LED - ready
end
wfm:
serin B.1,T9600_4,b1,b2
return
Any CPR advice to my 08m2????
Surfed picaxe forums and copied a code snipet to PE.
Checked the code and by mistake instead of push simulate button , pushed the program buttom.
Cant reprogram 08m2 no more! Tried the power off gizmo till exaustion.
Here the code and problem! the code was to 14m2 and changes the serout baud rate at C.0 - Im a dumbass :-(
Picaxe 14M2
hsersetup B9600_4, %00'Configure hardware serial port to 9600-baud
output B.2 : low B.2
wait 2 'Allow GSM module to fire upstart:
hserout 0,("AT",CR) 'Poll module for responce
gosub wfm 'Wait for module to say it's ready
hserout 0,("AT&F",CR)
gosub wfm
hserout 0,("AT&D",CR)
gosub wfm
hserout 0,("AT&K",CR)
gosub wfm
hserout 0,("ATE0",CR)
gosub wfm
hserout 0,("AT+CSMP=17,167,0,0",CR)
gosub wfm
hserout 0,("AT+CMEE=0",CR)
gosub wfm
hserout 0,("AT+CREG?",CR)
gosub wfm
hserout 0,("AT+CMGF=1",CR)
gosub wfm
hserout 0,("AT+CNMI=1,0,0,0,1",CR)
gosub wfm
hserout 0,("AT+CPMS?",CR)
gosub wfm
hserout 0,("AT+CPMS=",0x22,"SM",0x22,",",0x22,"SM",0x22,CR)
gosub wfm
hserout 0,("AT+CSQ",CR)
gosub wfm
hserout 0,("AT+COPS?",CR)
gosub wfm
hserout 0,("AT&W",CR)
gosub wfm
high B.2 'Turn on LED - ready
end
wfm:
serin B.1,T9600_4,b1,b2
return
Any CPR advice to my 08m2????
Last edited: