# GM862GPS python script not working. Any Help? Thanks.

**URL:** <https://community.sparkfun.com/t/gm862gps-python-script-not-working-any-help-thanks/12973>\
**Category:** Development Boards\
**Created:** [October 20, 2009, 1:23pm UTC](https://community.sparkfun.com/t/gm862gps-python-script-not-working-any-help-thanks/12973 "2009-10-20T13:23:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![senner70h](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@senner70h](https://community.sparkfun.com/u/senner70h)\
**Post date:** [October 20, 2009, 1:23pm UTC](https://community.sparkfun.com/t/gm862gps-python-script-not-working-any-help-thanks/12973/1 "2009-10-20T13:23:58Z")

</div>

Hello everyone,

I have the following hardware :

1)SparkFun Electronics - GM862 Cellular Quad Band Module with GPS

[http://www.sparkfun.com/commerce/produc … ts\_id=7917](http://www.sparkfun.com/commerce/product_info.php?products_id=7917)

with Firmware version 07.03.400

1. SparkFun Electronics - GM862 Evaluation Kit - USB

[http://www.sparkfun.com/commerce/produc … cts\_id=280](http://www.sparkfun.com/commerce/product_info.php?products_id=280)

and for future use

1. SparkFun Electronics - GM862 Evaluation Board - Basic 50-Pin

[http://www.sparkfun.com/commerce/produc … cts\_id=277](http://www.sparkfun.com/commerce/product_info.php?products_id=277)

and the following software :

RStern, Serial GSM Terminal Version 20090314.1

note: i have to use an external power supply, because

my old computer usb port, does not supply enought power.

step one:

I make a very simple script in python,

OK

step two:

i load the script to GM862GPS module, using

-GM862 Evaluation Kit - USB

-Rstern

OK

step three:

i execute the script,

Rstern push-button AT#EXECSCR

OK

target : i would like the same script

to run independently from my computer,

so…

step four:

i enable the script,

Rstern push-button AT#ESCRIPT

then …

i disconnected the module from the computer,

i powered the module, just with the external power supply

(without any usb powering), but the script did not run

Note : i tryied both low and high dtr, neither worked.

then i suspected there was not enought power, i tryed to

connected also the usp port, to get some extra power

(without using Rstern)

Note : i tryied both low and high dtr, neither worked.

here is my python code:

main.py

import myscript

myscript.pyo

import SER

import MOD

import MDM

MDM.send(‘ATD+393351234567;\r’, 0)

main script is the enabled one, not compiled,

that calls another script (a compiled one)

what is wrong?

am i missing something?

Thanks. Roberto.

---

<div class="post-metadata">

**Author:** ![tschmittou](https://avatars.discourse-cdn.com/v4/letter/t/9d8465/32.png) [@tschmittou](https://community.sparkfun.com/u/tschmittou)\
**Post date:** [October 28, 2009, 11:30pm UTC](https://community.sparkfun.com/t/gm862gps-python-script-not-working-any-help-thanks/12973/2 "2009-10-28T23:30:15Z")

</div>

I think, when you are uploading your script to the GPS, you need to set DTR switch on the board to low (program mode). And then enable your script after uploading"AT#ESCRIPT=“xxxx.py”, then set DTR back to high(run mode), and make a power cycle… I hope it works… I am not an expert, but I have uploaded some pyhton scripts before, and they worked fine…

---

<div class="post-metadata">

**Author:** ![senner70h](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@senner70h](https://community.sparkfun.com/u/senner70h)\
**Post date:** [October 29, 2009, 1:58pm UTC](https://community.sparkfun.com/t/gm862gps-python-script-not-working-any-help-thanks/12973/3 "2009-10-29T13:58:05Z")

</div>

I Working.

Thank You.
