GM862-GPS Python Script Execution problem

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

hi, i’ve had the same problem with the python stuff using rsterm. did you find a way to fix it? sometimes i upload using rsterm and the files don’t appear in the top box of the telit python tab…you know when it says files in the module, but when i do a AT#LSCRIPT it shows the file as being uploaded. i try exactly what you do, i AT#ESCRIPT = ‘hello.py’ then i AT#EXECSCR, but ntohign happens even though i wait/reboot.

Hi

Try:

AT#SELINT=2

AT#STARTMODESCR=1,10

Then restart the device

Hi, I have the same problem, I have tried all the tips that I’ve found over the internet, but nothing seems to work.

I also tried the code above:

AT#SELINT=2

AT#STARTMODESCR=1,10

And nothing,The script doesn’t run and AT commands doesn’t respond either, only for a few seconds.

Anyone can help us?? :stuck_out_tongue:

Greetings!