- Mon May 14, 2007 10:54 am
#29955
Hi All,
I wonder if any of you could help me.
I have a little Python script that runs on the GM862-GPS module. The problem is that it takes a long time to upload script with hyperterminal, enable it, put 2.8V on DTR pin, reboot module and wait till script compiles and run. I would like to use PythonWin, by pressing "Run".
Here is my very simple script:
I tried to search forum and internet, but no result.
Thanks for your help, and sorry if this looks like a stupid question.
I wonder if any of you could help me.
I have a little Python script that runs on the GM862-GPS module. The problem is that it takes a long time to upload script with hyperterminal, enable it, put 2.8V on DTR pin, reboot module and wait till script compiles and run. I would like to use PythonWin, by pressing "Run".
Here is my very simple script:
Code: Select all
The error I get is:import MDM
MDM.send('AT\r',5)
Code: Select all
What I don't understand is why this works with module when I upload script with hyperterminal, but not with PythonWin?Traceback (innermost last):
File "C:\Program Files\Python\Pythonwin\pywin\framework\scriptutils.py", line 301, in RunScript
exec codeObject in __main__.__dict__
File "C:\Documents and Settings\fera3002\Bureau\b.py", line 3, in ?
MDM.send('AT\r',5)
AttributeError: send
I tried to search forum and internet, but no result.
Thanks for your help, and sorry if this looks like a stupid question.