CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

gprs - udp

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
x!nDy
Guest







gprs - udp
PostPosted: Thu Sep 25, 2008 10:25 pm     Reply with quote

Hi. Is anybody here familiar with gprs? I have a Siemens mc55i module, and I incorporate it with a pic18f4525. How can I bind the gprs module to a certain port so that it will accept incoming data from the server using UDP ? It works fine if I use TCP but if I use UDP, the module can send data to the server but it can't receive data from the server. I don't know what's wrong. Please help.
libor



Joined: 14 Dec 2004
Posts: 288
Location: Hungary

View user's profile Send private message

PostPosted: Sun Sep 28, 2008 11:36 pm     Reply with quote

It is quite possible that the GSM operator company's routers are not allowing inbound UDP traffic.
A GRPS device on a GSM network is usually hidden behind a NAT router with no own public IP address, just a proxy IP address leased for the time of a single TCP connection on a temporary basis. UDP is a connectionless protocol so there's no way a NAT router can map one of its public IP address (you might have addressed the data packet to) to your device's local IP address in the GSM network.

In my company we operate some industrial control devices with GPRS modems, we had to make a special subscription package with the GSM operator to bind a dedicated public IP address to the GPRS devices to allow them to receive inbound datagrams at any time. A "normal" GPRS subscription sold for web-surfing usually cannot work this way.
x!nDy
Guest







PostPosted: Tue Oct 07, 2008 12:01 am     Reply with quote

Hi. Thanks for the reply. I guess that seems to be the case since no matter what I do I can't really make it work. Anyway, I found a work around by using two protocols, UDP and TCP. Thanks.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group