EmbeddedRelated.com
Forums
Memfault Beyond the Launch

GPRS on Ethernet

Started by OmarP October 5, 2010
Hello,
I'm analizing connect my product developed on RCM3700 to GPRS. This product has a web server and it can be setting and monitoring from any web explorer.

I thing in some modem GPRS with Lan Connection, but there are very few. There are many more with Rs-232 Connection.

The question is if there is any way to make public the RCM3700 IP ussing a GPRS RS-232 modem. My product has not RS-232 but I try activate this to program the modem.

I'm sorry, but I am some confused with this.

Thank you in advance

On 10/5/2010 6:13 AM, OmarP wrote:
> Hello,
> I'm analizing connect my product developed on RCM3700 to GPRS. This product has a web server and it can be setting and monitoring from any web explorer.
>
> I thing in some modem GPRS with Lan Connection, but there are very few. There are many more with Rs-232 Connection.
>
> The question is if there is any way to make public the RCM3700 IP ussing a GPRS RS-232 modem. My product has not RS-232 but I try activate this to program the modem.
>
> I'm sorry, but I am some confused with this.
>
> Thank you in advance

I have used CDMA/GPRS/GSM modems with rabbit boards. Basically you send
commands to make the connection then start a PPP connection on the port.

There are samples in the PPP section in the samples directory. I also
think ZW sells a GPRS development kit that may have more examples (M2M
dev kit.) There are docs for the M2M in the docs/appkit directory.

--
------
Scott G. Henion, Consultant
Web site: http://SHDesigns.org
Rabbit libs: http://shdesigns.org/rabbit/
------

Doing PPP with Rabbit is easy over GPRS. Just make sure you setup the GPRS APN in the modem before dialing *99# as the phone number. You can do this via the init string of the PPP driver or manually open and programme the serial port then close it before calling the PPP drive.

Look at the samples on how to do PPP.

You won't get a static IP unless the GSM network you are using supports this. The IP's tend to be private and use NAT. The only way to send data to a Rabbit over GPRS in this instance is for your unit to connect to a server and keep the connection alive. Similar to what Microsoft Activesync technology does for push email.

Good luck.
Dave...
---
Very funny Scotty, now beam down my clothes!!
---
http://www.embeddedcomputer.co.uk
---

----- Original Message -----
From: OmarP
To: r...
Sent: Tuesday, October 05, 2010 5:13 PM
Subject: [rabbit-semi] GPRS on Ethernet

Hello,
I'm analizing connect my product developed on RCM3700 to GPRS. This product has a web server and it can be setting and monitoring from any web explorer.

I thing in some modem GPRS with Lan Connection, but there are very few. There are many more with Rs-232 Connection.

The question is if there is any way to make public the RCM3700 IP ussing a GPRS RS-232 modem. My product has not RS-232 but I try activate this to program the modem.

I'm sorry, but I am some confused with this.

Thank you in advance
Thank you for yours answers, but i can not uderstand this:

Need I do a physical connection from UTP RJ 45 ethernet cable to somehow to the modem GPRS , or the library PPP of Dynamic C make a bridge from web server to PPP connection ->modem ?

Sorry if it a dumb question, but i need to make for undersand the concept.

For another hand: Which GPRS modem can you suggest to this application ?

best regards
--- In r..., Scott Henion wrote:
>
> On 10/5/2010 6:13 AM, OmarP wrote:
> > Hello,
> > I'm analizing connect my product developed on RCM3700 to GPRS. This product has a web server and it can be setting and monitoring from any web explorer.
> >
> > I thing in some modem GPRS with Lan Connection, but there are very few. There are many more with Rs-232 Connection.
> >
> > The question is if there is any way to make public the RCM3700 IP ussing a GPRS RS-232 modem. My product has not RS-232 but I try activate this to program the modem.
> >
> > I'm sorry, but I am some confused with this.
> >
> > Thank you in advance
>
> I have used CDMA/GPRS/GSM modems with rabbit boards. Basically you send
> commands to make the connection then start a PPP connection on the port.
>
> There are samples in the PPP section in the samples directory. I also
> think ZW sells a GPRS development kit that may have more examples (M2M
> dev kit.) There are docs for the M2M in the docs/appkit directory.
>
> --
> ------
> Scott G. Henion, Consultant
> Web site: http://SHDesigns.org
> Rabbit libs: http://shdesigns.org/rabbit/
> ------
>

Sorry, I have made the latter question before read some samples and applications notes for GPRS with Rabbit

I understand now that i need config the rs232 port of the Rabbit, and after the connection is established, the comunications recieved into the serial port go to TCP/IP stack and backward via PPP.

I understand correctly??? ;-)

If yes : Can I use any serial rs232 port Modem GPRS to access to web pages downloaded in the rabbit ?. Or this modem must have some special feature ?

Thank you in advance

--- In r..., "OmarP" wrote:
>
> Thank you for yours answers, but i can not uderstand this:
>
> Need I do a physical connection from UTP RJ 45 ethernet cable to somehow to the modem GPRS , or the library PPP of Dynamic C make a bridge from web server to PPP connection ->modem ?
>
> Sorry if it a dumb question, but i need to make for undersand the concept.
>
> For another hand: Which GPRS modem can you suggest to this application ?
>
> best regards
> --- In r..., Scott Henion wrote:
> >
> > On 10/5/2010 6:13 AM, OmarP wrote:
> > > Hello,
> > > I'm analizing connect my product developed on RCM3700 to GPRS. This product has a web server and it can be setting and monitoring from any web explorer.
> > >
> > > I thing in some modem GPRS with Lan Connection, but there are very few. There are many more with Rs-232 Connection.
> > >
> > > The question is if there is any way to make public the RCM3700 IP ussing a GPRS RS-232 modem. My product has not RS-232 but I try activate this to program the modem.
> > >
> > > I'm sorry, but I am some confused with this.
> > >
> > > Thank you in advance
> >
> > I have used CDMA/GPRS/GSM modems with rabbit boards. Basically you send
> > commands to make the connection then start a PPP connection on the port.
> >
> > There are samples in the PPP section in the samples directory. I also
> > think ZW sells a GPRS development kit that may have more examples (M2M
> > dev kit.) There are docs for the M2M in the docs/appkit directory.
> >
> > --
> > ------
> > Scott G. Henion, Consultant
> > Web site: http://SHDesigns.org
> > Rabbit libs: http://shdesigns.org/rabbit/
> > ------
>

No, you will not be able to access the webpages on it over GPRS unless the
GSM network you are using gives you a static IP and then you would need to
know this IP to access it. Here in Indonesia only one of the operators gives
you a public IP which you can then access the remote device with. All the
others use private IP's with NAT.

Dave...
---
Very funny Scotty, now beam down my clothes!!!
---
http://www.axoninstruments.biz
---

From: r... [mailto:r...] On
Behalf Of OmarP
Sent: 06 October 2010 05:52
To: r...
Subject: [rabbit-semi] Re: GPRS on Ethernet

Sorry, I have made the latter question before read some samples and
applications notes for GPRS with Rabbit

I understand now that i need config the rs232 port of the Rabbit, and after
the connection is established, the comunications recieved into the serial
port go to TCP/IP stack and backward via PPP.

I understand correctly??? ;-)

If yes : Can I use any serial rs232 port Modem GPRS to access to web pages
downloaded in the rabbit ?. Or this modem must have some special feature ?

Thank you in advance
OK I understand this...

It is the "only" problen. That is to say, if i get a Public IP i should be access to my web server without problem. Is this correct ?. The dynamic c with PPP can serve the pages without problem ?.

In this scheme (with a IP with NAT), my device only can send to out some: for example an e-mail via smtp server, but another machine in internet cannot access to web pages.

If it correct, before advance with develope, I look for an operators with public IP, because I thing make some as M2M service.

Thank you very much for yours responses

Regards !

--- In r..., "Dave McLaughlin" wrote:
>
> No, you will not be able to access the webpages on it over GPRS unless the
> GSM network you are using gives you a static IP and then you would need to
> know this IP to access it. Here in Indonesia only one of the operators gives
> you a public IP which you can then access the remote device with. All the
> others use private IP's with NAT.
>
> Dave...
> ---
> Very funny Scotty, now beam down my clothes!!!
> ---
> http://www.axoninstruments.biz
> ---
>
> From: r... [mailto:r...] On
> Behalf Of OmarP
> Sent: 06 October 2010 05:52
> To: r...
> Subject: [rabbit-semi] Re: GPRS on Ethernet
>
>
> Sorry, I have made the latter question before read some samples and
> applications notes for GPRS with Rabbit
>
> I understand now that i need config the rs232 port of the Rabbit, and after
> the connection is established, the comunications recieved into the serial
> port go to TCP/IP stack and backward via PPP.
>
> I understand correctly??? ;-)
>
> If yes : Can I use any serial rs232 port Modem GPRS to access to web pages
> downloaded in the rabbit ?. Or this modem must have some special feature ?
>
> Thank you in advance
>

Yes, all correct. Remember, even if the GSM operator gives you a public IP,
it is likely to change (dynamic) every time you dial up over PPP so you will
need to implement some kind of DYN DNS (www.dyndns.org) to be able to find
it on the internet.

Dynamic C with PPP will appear as if it were connected via Ethernet. I have
tested this and it worked for me.

If you are doing M2M why not have the unit dial into a server on the
Internet and then upload its data to the server. The server then has a
webserver which you can then access. This allows a single access point for
you all your remote units, assuming you are developing more than 1?

Dave...
---
Very funny Scotty, now beam down my clothes!!!
---
http://www.axoninstruments.biz
---

From: r... [mailto:r...] On
Behalf Of OmarP
Sent: 06 October 2010 16:07
To: r...
Subject: [rabbit-semi] Re: GPRS on Ethernet

OK I understand this...

It is the "only" problen. That is to say, if i get a Public IP i should be
access to my web server without problem. Is this correct ?. The dynamic c
with PPP can serve the pages without problem ?.

In this scheme (with a IP with NAT), my device only can send to out some:
for example an e-mail via smtp server, but another machine in internet
cannot access to web pages.

If it correct, before advance with develope, I look for an operators with
public IP, because I thing make some as M2M service.

Thank you very much for yours responses

Regards !
And then your device will be probed 24 hours a day by script kiddies
and worms, which will give you a huge data bill. :-)

Maurits.
Op Oct 6, 2010, om 12:38 PM heeft Dave McLaughlin het volgende
geschreven:

> Yes, all correct. Remember, even if the GSM operator gives you a
> public IP, it is likely to change (dynamic) every time you dial up
> over PPP so you will need to implement some kind of DYN DNS
> (www.dyndns.org) to be able to find it on the internet.
>
> Dynamic C with PPP will appear as if it were connected via
> Ethernet. I have tested this and it worked for me.
>
> If you are doing M2M why not have the unit dial into a server on
> the Internet and then upload its data to the server. The server
> then has a webserver which you can then access. This allows a
> single access point for you all your remote units, assuming you are
> developing more than 1?
>
> Dave...
> ---
> Very funny Scotty, now beam down my clothes!!!
> ---
> http://www.axoninstruments.biz
> ---
>
> From: r... [mailto:rabbit-
> s...] On Behalf Of OmarP
> Sent: 06 October 2010 16:07
> To: r...
> Subject: [rabbit-semi] Re: GPRS on Ethernet
> OK I understand this...
>
> It is the "only" problen. That is to say, if i get a Public IP i
> should be access to my web server without problem. Is this
> correct ?. The dynamic c with PPP can serve the pages without
> problem ?.
>
> In this scheme (with a IP with NAT), my device only can send to out
> some: for example an e-mail via smtp server, but another machine in
> internet cannot access to web pages.
>
> If it correct, before advance with develope, I look for an
> operators with public IP, because I thing make some as M2M service.
>
> Thank you very much for yours responses
>
> Regards !
>
Thanks Dave
When you say the unit dial, you are referring to the rabbit ?

You want to say that the rabbit make a dual up and upload to a server with your news (in XML for example), and then, the local server acces to this information ?

Then the rabbit download your news instructions from de administration server ?

The problem I see with this scheme is that if there is serius problem to report (an unathorized open of the devide door for example), I have not report until the next download.
Your scheme work in this way ?

For another hand. Can I with dynamic C access to account on www.dyndns.org or anothers HYN DNS to administrate the change of IP .

thank you to all !!!!
--- In r..., "Dave McLaughlin" wrote:
>
> Yes, all correct. Remember, even if the GSM operator gives you a public IP,
> it is likely to change (dynamic) every time you dial up over PPP so you will
> need to implement some kind of DYN DNS (www.dyndns.org) to be able to find
> it on the internet.
>
> Dynamic C with PPP will appear as if it were connected via Ethernet. I have
> tested this and it worked for me.
>
> If you are doing M2M why not have the unit dial into a server on the
> Internet and then upload its data to the server. The server then has a
> webserver which you can then access. This allows a single access point for
> you all your remote units, assuming you are developing more than 1?
>
> Dave...
> ---
> Very funny Scotty, now beam down my clothes!!!
> ---
> http://www.axoninstruments.biz
> ---
>
> From: r... [mailto:r...] On
> Behalf Of OmarP
> Sent: 06 October 2010 16:07
> To: r...
> Subject: [rabbit-semi] Re: GPRS on Ethernet
>
>
> OK I understand this...
>
> It is the "only" problen. That is to say, if i get a Public IP i should be
> access to my web server without problem. Is this correct ?. The dynamic c
> with PPP can serve the pages without problem ?.
>
> In this scheme (with a IP with NAT), my device only can send to out some:
> for example an e-mail via smtp server, but another machine in internet
> cannot access to web pages.
>
> If it correct, before advance with develope, I look for an operators with
> public IP, because I thing make some as M2M service.
>
> Thank you very much for yours responses
>
> Regards !
>


Memfault Beyond the Launch