473,625 Members | 2,658 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Telit GM862-GPS software.

3 New Member
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 13193
fredniggle
12 New Member
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#GP IO=1,1\n',0) # pin 1 set high as output
zx = MDM.receive(5)
#now reset it so LED is off
MDM.send('AT#GP IO=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+CM GL=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#GP IO=1,1,1\n",0) # set the pin high
ab= MDM.receive(5)
MOD.sleep(10) #wait a bit
MDM.send("AT#GP IO=1,0,1\n",0)
ab= MDM.receive(5)

Hope this helps.
Jan 5 '08 #2
bvdet
2,851 Recognized Expert Moderator Specialist
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
fredniggle
12 New Member
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
eugehet
4 New Member
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
sixgunz
1 New Member
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
remessa
2 New Member
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
remessa
2 New Member
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
timoteo
6 New Member
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
dzigitka
1 New Member
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

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

Similar topics

14
8774
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 download the webpage and save in the GM862-GPS memory. I encounter a problem today which drive me crazy... I could open a connection and download the http page using AT command through hyperterminal (without python script). When i used python...
1
4033
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 'Hello World!' result = MDM.send('AT\r', 0) print result c = MDM.receive(10)
1
3311
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 = MDM.send('AT', 0) print result c = MDM.receive(10) print c
1
3407
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. i am new to all these stuff. i have no an idea which way try to do solve it. Firstly i am using windows XP .when i connected this modem to my pc ,i got com3 port by start->programme->accessories-->communication-->Hyperterminal. On clicking...
1
2204
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 script. """ Telit - List SMS - Example
0
2326
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 should wait for new command again. Now, my problems are- 1. I can send ser.receive(20); for receiving command in GM862 from terminal. But how will I wait for serial port command forever? 2. How can I check for serial port command and/or sms...
2
10394
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 need a promt/terminal when the device is connected to PC. If user enters a command by serial port and press "Enter" then the data is read by the device and work on the command. This is similar to readline() function. Unfortunately there is no...
0
1581
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 (Python, for one), but Python bytecode is geared very much towards running Python code with Python's object model. Several years ago, there was someone who wrote up such a document for a university project. Unfortunately, my Google-fu has failed...
1
3728
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 brought it to my home computer, it gave warning messages like "The module is not responding. Do you want to retry to connect?" The funny thing is, the module can be detected in Hyperterminal. And I made sure to close off Hyperterminal when using Python so...
6
4741
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 more than once but to organize a group of aquired temperatures does not work, next is an example of the code that I need to run: import MOD #Use build in module import MDM #Use AT command interface #i=5 # wake module #Set time
0
8251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8688
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8352
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7178
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6115
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4085
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2614
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1496
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.