Hi all,
I have a GM862-GPS module and I’m having trouble getting it to execute a python script.
I’ve made the following test script:
test.py
import SER
SER.set_speed('115200','8N1')
while 1:
SER.send('test\r')
And uploaded it to the module via RSTerm.
I confirm the script is loaded with AT#LSCRIPT?
I run AT#ESCRIPT=“test.py”
Then AT#EXECSCR
And from this point I can still issue commands to the unit via RSTerm i.e. AT repies OK - and I don’t get any of test messages from the loop.
My understanding is that issuing an EXESCR should run the script immediately, disabling the AT interface.
I tried setting the DTR high (in order to get the script to run on startup) and powered off then on… same – still full access to the AT interface and no debug message.
If there’s nothing obvious I’m doing wrong – how can I reset the unit back to factory defaults. Flash the firmware?
Thanks