473,395 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Telit GM862-GPS software.

hi everyone.. i am new here.. can everyone in the forum guide me along.. thanks..
i am currently doing a project on telit gm862-gps..
i have to use PYTHON to write a software program.
kindly anyone teach me or show me how to start off the program..
i need to get started off by writing a program of GPIO1 pin and a program on sending SMSes..
i would really appericate if anyone in the forum can show me or guide me how to write it..
THANK YOU..
Dec 19 '07 #1
11 13177
hi everyone.. i am new here.. can everyone in the forum guide me along.. thanks..
i am currently doing a project on telit gm862-gps..
i have to use PYTHON to write a software program.
kindly anyone teach me or show me how to start off the program..
i need to get started off by writing a program of GPIO1 pin and a program on sending SMSes..
i would really appericate if anyone in the forum can show me or guide me how to write it..
THANK YOU..
I have a LOT of experience in this area:

configure the GPIO pin 1 direction (input or output)
MDM.send('AT#GPIO=1,1\n',0) # pin 1 set high as output
zx = MDM.receive(5)
#now reset it so LED is off
MDM.send('AT#GPIO=1,2\n',0) #ask module for pin status
zx = MDM.recieve(5) # and capture the reply

Check that your hardware is correct - I strongly advise using opto-isolators for debug and hobby use, save a lof of components and hassles.

Please double check with the software user manual about GPIO1, i know it has a special function , or it can only work in one direction. Its a long time since I had to change any hardware with my hobby server...

If you simply want to signal a new SMS arrival by turning on an LED, then try::
(dont forget to configure the format to text and storage into SIM first)
MDM.send('AT+CMGL=ALL\n',0) #ask for a list of ALL sms
zx = MDM.recieve(5) # and capture the reply
zx.split(",") # break up the reply by commas
for zxlines in zx: # step through the split string
if (zxlines.find("UNREAD")!p -1): # if there are any new sms then
MDM.send("AT#GPIO=1,1,1\n",0) # set the pin high
ab= MDM.receive(5)
MOD.sleep(10) #wait a bit
MDM.send("AT#GPIO=1,0,1\n",0)
ab= MDM.receive(5)

Hope this helps.
Jan 5 '08 #2
bvdet
2,851 Expert Mod 2GB
I have a LOT of experience in this area:

configure the GPIO pin 1 direction (input or output)
Expand|Select|Wrap|Line Numbers
  1. MDM.send('AT#GPIO=1,1\n',0) # pin 1 set high as output
  2. zx = MDM.receive(5)
  3. #now reset it so LED is off
  4. MDM.send('AT#GPIO=1,2\n',0) #ask module for pin status
  5. zx = MDM.recieve(5)     # and capture the reply
Check that your hardware is correct - I strongly advise using opto-isolators for debug and hobby use, save a lof of components and hassles.

Please double check with the software user manual about GPIO1, i know it has a special function , or it can only work in one direction. Its a long time since I had to change any hardware with my hobby server...

If you simply want to signal a new SMS arrival by turning on an LED, then try::
(dont forget to configure the format to text and storage into SIM first)
Expand|Select|Wrap|Line Numbers
  1. MDM.send('AT+CMGL=ALL\n',0) #ask for a list of ALL sms
  2. zx = MDM.recieve(5)     # and capture the reply
  3. zx.split(",")   #  break up the reply by commas
  4. for zxlines in zx:  # step through the split string
  5.     if (zxlines.find("UNREAD")!p -1):  # if there are any new sms then
  6.         MDM.send("AT#GPIO=1,1,1\n",0) # set the pin high
  7.         ab= MDM.receive(5)
  8.         MOD.sleep(10)    #wait a bit
  9.         MDM.send("AT#GPIO=1,0,1\n",0)
  10.         ab= MDM.receive(5)
Hope this helps.
Thank you for sharing your experience. It would help even more if you would use code tags. See reply guidelines. Thanks!
Jan 6 '08 #3
Thank you for sharing your experience. It would help even more if you would use code tags. See reply guidelines. Thanks!
I see what you mean. That is a lot easier to read.
Jan 6 '08 #4
Hi, i have a php script hosted. I intend to upload a text file
www.happy-yes.com/gps.txt

How can i program GM862-GPS in python to constantly at an interval send gps data(long & lat) to update my text file?

This is so that i can retrieve the data from the text file and use it to display it on google map.

Thanks all.
Jan 21 '08 #5
Hi.

I'm assuming your Telit is going to send the data via GPRS rather than GSM? If GSM, you're going to need a modem listening for incomming calls from the GSM modem.

If GPRS, you will need the GPRS device to send data to the server in a particular manner.

Example 1: You could use linux with netcat in UDP listen mode (with static IP and port configured) which will allow your GPRS module to send data to the ip and port and "concat" it into a text file.

Example 2: You could configure your module to send a formatted hypertext statement directly to your PHP script and ask the script to translate the data and "concat" that to a text file. Only if your GM862 can formulate the data into an HTTP request.

I think Example 2 is what you really need. I have been doing some research into the GM862 as I'm looking at making a vehicle / personal tracker very much along the same lines as what you are doing. The unit uses python to configure the functionality, so I'm fairly sure you can take the raw data, create an http request and post it to the website, filling in the blanks with the data from the gps module.

Hope that helps!!
Feb 6 '08 #6
Hi all (:

So, i m new in this forum, and happy to joint it (;

I have a project with GM862-GPS, and i m trying to send and receive an SMS in this module, so for sending it works very fine, now i try to receive an SMS and display it in CMUX (Telit serial port), so i subdivise this into 2 things, upload a script displying for exemple : 'hello' in the module and try to send it and display it in the pc (CMUX), and the other one is receive sms and display it, so the first is works, but how to receive SMS not yet, so i konw that you have experience in this Mr (: can you explain me how to receive an SMS and storage it in module, to signale that i have an incomming SMS? ifyou have a script in python for this, i you will be great dear.

waiting for your answer

Thank you in advence
Nov 17 '08 #7
Hi all (:

So, i m new in this forum, and happy to joint it (;

I have a project with GM862-GPS, and i m trying to send and receive an SMS in this module, so for sending it works very fine, now i try to receive an SMS and display it in CMUX (Telit serial port), so i subdivise this into 2 things, upload a script displying for exemple : 'hello' in the module and try to send it and display it in the pc (CMUX), and the other one is receive sms and display it, so the first is works, but how to receive SMS not yet, so i konw that you have experience in this Mr (: can you explain me how to receive an SMS and storage it in module, to signale that i have an incomming SMS? ifyou have a script in python for this, i you will be great dear.

waiting for your answer

Thank you in advence
Nov 18 '08 #8
hello remessas

i have a script to send sms that don't work so fine...
could you post your?
thanks
Tim
Jan 9 '09 #9
Hi evevryone :)
I hope someone gonna help me. I developing a small projeck with GM-862 GPS. And at the moment i have a problem - dont know how to set GPIO for send text mesage for number i want.
Example - i want to set GPIO12 (if its high send SMS to number =44xxxxxxxx, if its low - dont do anything)
Can someone give me a hint?
Jun 1 '09 #10
YarrOfDoom
1,247 Expert 1GB
Hi dzigitka, welcome to bytes!
Could you please make a new thread when you have a problem, because it's hard to keep order around this place if everyone just uses old threads for new questions.
Please read the posting guidelines to avoid further accidental violation of them.

Now about your question: here's a page with a lot of resources about the Telit GM862-GPS. You can probably find a solution in the AT Commands Reference Guide.
Jun 1 '09 #11
mmmmmm
1
Hi,

I have some problems communicating with the a Telit Ge864-QUAD module.
I am using a USB to CMOS cable (3 wires) and I have connected them to RX, TX, GND of the module. I opened a terminal app on my laptop (115200/8/N/1), sending AT commands, but I am not getting any response.

Has anyone done such thing and can provide some information?

Thank you.
May 10 '10 #12

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

Similar topics

14
by: nsamad | last post by:
Hi All, Is there anyone using python script to programm the Telit GM862-GPS module?? I am a newbie in using python. I am developing an application in which i have to open a GPRS connection and...
1
by: Nyrufneck | last post by:
Hi all, I am new at programming python using GM862 and hyperterminal. I was able to download this script below into the module but I do not know how to execute the script. import MDM print...
1
by: morsitlili | last post by:
HI everybody.I wonder if anyone can help me.My problem is when i try to run any program with pythonwin using MDM Library. this is my code import MDM print 'Hello World!' result =...
1
by: laxmidilu123 | last post by:
Hi friends.... i trying to write a sample application which would communicate a webservice through my gprs modem (Sparkfuns EVK v3 usb with GM862 telit module) through a set of AT commands. ...
1
by: Prashant Bhangre | last post by:
Hello, I am very new to Python. I am writing a script to ListSMS for my Telit GE863GPS Module. I have Python1.5.2. on Window XP. I am getting an error when i run the script. Here is the whole...
0
by: ulala099 | last post by:
Hi, I am newbie in python programming. I want to send command to my Telit GM-862 device either from Terminal or by sms and it should work according to the command. After executing the command it...
2
by: mmrasheed | last post by:
Hi, I am newbie in python. I am working on Telit GM862 GPS/GPRS module which has python interpreter built in. But it seems this problem is pretty much related to general python structure. I...
0
by: Robert Kern | last post by:
Ognjen Bezanov wrote: Mostly. It is worth noting, though, that the Python bytecode is at a higher level than Java bytecode. You can run other languages on top of the JVM using Java bytecode...
1
by: yueying53 | last post by:
Hi all, I have a telit EVK2 evaluation kit and a gm862 module. Setup was fine in my school computers and I was even able to write a small program to send and receive sms. However when I...
6
by: timoteo | last post by:
hello, I need to make a compiled script that I know how to do, done more then once, and work, *.pyo. Then I send it to the gsm module and put it run. The rest of the code is ok, I have test it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.