View previous topic :: View next topic |
Author |
Message |
hayee
Joined: 05 Sep 2007 Posts: 252
|
Data sending from microcontroller using gprs |
Posted: Sat Jan 31, 2015 12:01 am |
|
|
Hi guys,
My project is to develop a system which read some parameters in microcontroller and then send this data to web server using gprs modem.
I have to use HTTP as a protocol.
I have worked on pic microcontrollers and used a gsm modem for sending and receiving sms from/in microcontrollers.
I have no idea and never use gprs and http protocol before.
Can anyone guide me, form where i should start? what are the prerequisite which i have to study before starting the project?
Thanks and best regards |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9240 Location: Greensville,Ontario
|
|
Posted: Sat Jan 31, 2015 6:47 am |
|
|
Hmm.. well you need to choose a PIC and GPRS modem first ! Be sure they are compatible!! Most(all) modems are 3 volt device so choose an 'L' version PIC. That will allow pin to pin connections( NO logic level translations ).
Once you have the hardware, allow for 1 I/O pin to have an LED attached. Cut a simple '1 Hz LED' program and confirm your code works.
read the modem datasheet ! Some can draw more than 1 amp of current so be sure to design the power supply accordingly.
I'd then cut code to 'read some parameters' and transmit them to a PC via a serial port. Nowadays you need a TTLUSB module ($2) to talk to a PC.
Once this is working THEN cut code for the modem.....
This way you KNOW the hardware works, that the PIC does works and that the overall 'function' of the program is OK.
If the 'final' program doesn't work correctly then you know th eproblem is in the 'modem section'.
Also, whenever you change/add code, copy the old working program to a new one, make changes there,test/save,repeat as necessary. Do not make a lot of changes per test! This way you can always go back 1-2-3 program versions and try again.
Jay |
|
|
hayee
Joined: 05 Sep 2007 Posts: 252
|
|
Posted: Sun Feb 01, 2015 11:04 pm |
|
|
thanks temtronic for your reply
I have already done the communication between modem and pic and shows some result on serial port.
Now what i want is to send data form microcontroller to the web server using modem gprs in http protocol.
Kindly guide me in this scenario
Thanks and best regards |
|
|
|