By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,199 Members | 1,077 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,199 IT Pros & Developers. It's quick & easy.

GM862-GPS Help

P: 1
Hello to all,

Please excuse if this or similar has already been posted (I found 19 on the search results, but none that I read I could find the answers to).

I am new to this, and am struggling to get my head around the Python language.

I have a GM862-GPS module running with a SparkFun Evaluation board with USB interface.

I am trying to get the module to read an input on GPIO13 (as this is free and not used for anything else), and once this input has been received perform a task that is sending a GPS signal to a pre-determined SMS number.

I have the follwoing code that I have tried after reading Telit's Python Script on their website, and tried to understand it.

Expand|Select|Wrap|Line Numbers
  1. SMSTO = 'xxxxxxxxxxx' #my phone number
  2. import GPS
  3. import GPIO
  4. import MDM
  5. import MOD
  7. readIP = GPIO.getIOvalue(13) #command for reading IO 13
  8. if readIP ==1:
  9.     print 'Output on'
  10. elif readIP ==0:
  11.     print 'Output off'
  12. elif if readIP==-1: #default for error on input
  13.     print 'Error'
I later realised that I need a break command, otherwise the program hung (I could do with a dedicated CTRL/ALT/DEL key!!)

I put the 2.8V input onto GPIO13 (as 2.8V gives logic 1 input according to Telit's manual) and nothing happened when I loaded and ran the program.

If anyone can help, would be greatly appreciated

Kind Regards

Feb 22 '11 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 2.5K+
P: 2,851
Try running the script again. You had some errors in your code that would raise an exception.
Feb 22 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.