Forums

help needed with serial comm

Started by bhimanipankaj December 7, 2005
Dear ARMiiesssssssss....

I am here with very newbies question, but tuff one for me atleast.

I am interfacing an GSM modem with Serial port of lpc2214, now my
application is to send the data from memory(which is interfaced with
LPC2214), to the calling server.

Reading all the AT command set i couldn't find that can help me, so
need your help that wht AT commands are to be used or wht else I need
to do.

Thanks and Regards,
Pankaj Bhimani


An Engineer's Guide to the LPC2100 Series

Dear ARMyyyyyyyyyyyyyyyyiiiiiiiiieeeeeeeeeessssss

I am here with very newbies question, but tuff one for me atleast.

I am interfacing an GSM modem with Serial port of lpc2214, now my
application is to send the data from memory(which is interfaced with
LPC2214), to the calling server.

Reading all the AT command set i couldn't find that can help me, so
need your help that wht AT commands are to be used or wht else I need
to do.

Thanks and Regards,
Pankaj Bhimani


bhimanipankaj wrote:
> Dear ARMyyyyyyyyyyyyyyyyiiiiiiiiieeeeeeeeeessssss
>
> I am here with very newbies question, but tuff one for me atleast.
>
> I am interfacing an GSM modem with Serial port of lpc2214, now my
> application is to send the data from memory(which is interfaced with
> LPC2214), to the calling server.
>
> Reading all the AT command set i couldn't find that can help me, so
> need your help that wht AT commands are to be used or wht else I need
> to do.
>
> Thanks and Regards,
> Pankaj Bhimani
>

Mmmmmh... First reset your modem (e.g. atz<CR> or at&f<CR>), change some
configuration registers in your modem with the apropriated AT commands,
then call your remote server (e.g. atdXXXXXXX<CR>). After you get the
connect message you are switched to data mode and can initiate
registration of your transport protocol (usually PPP with LCP), maybe
authenticate yourself (e.g. with CHAP or PAP), obtain a dynamic IP
address and/or other network information (DNS, ...) using LCP protocol,
register higher level protocols (IP/ICMP/IGMP plus TCP/UDP and higher)
and then send your data to your server.
Finally close/unregister all protocol layers, switch back to AT command
mode (using standard sequence +++<CR> or what you have defined in your
modem registers) and close GSM connection (e.g. ath<CR>). Now you may
switch modem into suspend or sleep mode (depending on your modem).

That's it!

Sten

--
/************************************************
Do you need a tiny and efficient real time
operating system (RTOS) with a preemtive
multitasking for LPC2000 or AT91SAM7?

http://nanortos.net-attack.de/

Or some open-source tools and code for LPC2000?

http://www.net-attack.de/

************************************************/



--- In lpc2000@lpc2..., Sten <list@n...> wrote:
>
> bhimanipankaj wrote:
> > Dear ARMyyyyyyyyyyyyyyyyiiiiiiiiieeeeeeeeeessssss
> >
> > I am here with very newbies question, but tuff one for me atleast.
> >
> > I am interfacing an GSM modem with Serial port of lpc2214, now my
> > application is to send the data from memory(which is interfaced with
> > LPC2214), to the calling server.
> >
> > Reading all the AT command set i couldn't find that can help me, so
> > need your help that wht AT commands are to be used or wht else I need
> > to do.
> >
> > Thanks and Regards,
> > Pankaj Bhimani
> >
>
> Mmmmmh... First reset your modem (e.g. atz<CR> or at&f<CR>), change some
> configuration registers in your modem with the apropriated AT commands,
> then call your remote server (e.g. atdXXXXXXX<CR>). After you get the
> connect message you are switched to data mode and can initiate
> registration of your transport protocol (usually PPP with LCP), maybe
> authenticate yourself (e.g. with CHAP or PAP), obtain a dynamic IP
> address and/or other network information (DNS, ...) using LCP protocol,
> register higher level protocols (IP/ICMP/IGMP plus TCP/UDP and higher)
> and then send your data to your server.
> Finally close/unregister all protocol layers, switch back to AT command
> mode (using standard sequence +++<CR> or what you have defined in your
> modem registers) and close GSM connection (e.g. ath<CR>). Now you may
> switch modem into suspend or sleep mode (depending on your modem).
>
> That's it!
>
> Sten

Oooops, I've forgotten something important: Before you can configure
your GSM modem you have to supply your PIN or SuperPIN to register to
GSM service! If you using the modem for the first time, check provider
settings.
When you initalizing your link using PPP+LCP you also have to
activate/configure some link features like LPC echos, magic number
support, header compression and/or your ASYNC map. Make sure that all
the special characters (e.g. +) are substituted by your ASYNC map or
you might become very funny and unexplainable effects of system,
especailly with your modem connection!

Sten

>
> --
> /************************************************
> Do you need a tiny and efficient real time
> operating system (RTOS) with a preemtive
> multitasking for LPC2000 or AT91SAM7?
>
> http://nanortos.net-attack.de/
>
> Or some open-source tools and code for LPC2000?
>
> http://www.net-attack.de/
>
> ************************************************/
>




Hello Sir,

What is ur application.Do u want to send data to server by using GSM.
Ur GSM must be in GPRS mode.

First Check ur GSM by giving AT<cr><lf>.The GSM will respond with
the same AT<CR><LF> with OK.

After Getting the Message u should know ur Network and Signal
Strength.

give the commands AT+CSQ<CR><LF> and AT+CREG<CR><LF> and check the
signal strength and the Network strength. After checking these
things put ur GSM into modem and send the formate of AT Command.

After u receive CONNECT u can get or post ur data to the server.

On the server side ur page must receive the data.If u want u can
give response in the UDP and that can be used as handshake.

I done these by sending data to the server by using GPRS.It worked
fine.

I want to know more about ur projects, so that i can help u.

with cheers,
Rajendra R --- In lpc2000@lpc2..., Sten <list@n...> wrote:
>
> bhimanipankaj wrote:
> > Dear ARMyyyyyyyyyyyyyyyyiiiiiiiiieeeeeeeeeessssss
> >
> > I am here with very newbies question, but tuff one for me
atleast.
> >
> > I am interfacing an GSM modem with Serial port of lpc2214, now my
> > application is to send the data from memory(which is interfaced
with
> > LPC2214), to the calling server.
> >
> > Reading all the AT command set i couldn't find that can help me,
so
> > need your help that wht AT commands are to be used or wht else I
need
> > to do.
> >
> > Thanks and Regards,
> > Pankaj Bhimani
> >
>
> Mmmmmh... First reset your modem (e.g. atz<CR> or at&f<CR>),
change some
> configuration registers in your modem with the apropriated AT
commands,
> then call your remote server (e.g. atdXXXXXXX<CR>). After you get
the
> connect message you are switched to data mode and can initiate
> registration of your transport protocol (usually PPP with LCP),
maybe
> authenticate yourself (e.g. with CHAP or PAP), obtain a dynamic IP
> address and/or other network information (DNS, ...) using LCP
protocol,
> register higher level protocols (IP/ICMP/IGMP plus TCP/UDP and
higher)
> and then send your data to your server.
> Finally close/unregister all protocol layers, switch back to AT
command
> mode (using standard sequence +++<CR> or what you have defined in
your
> modem registers) and close GSM connection (e.g. ath<CR>). Now you
may
> switch modem into suspend or sleep mode (depending on your modem).
>
> That's it!
>
> Sten
>
> --
> /************************************************
> Do you need a tiny and efficient real time
> operating system (RTOS) with a preemtive
> multitasking for LPC2000 or AT91SAM7?
>
> http://nanortos.net-attack.de/
>
> Or some open-source tools and code for LPC2000?
>
> http://www.net-attack.de/
>
> ************************************************/
>