EmbeddedRelated.com
Forums

UDP over PPP (GPRS)

Started by FiReBiRd May 12, 2006
Hello everyone,

Is there anyone who has been successful in uploading data packets of
any size using UDP over PPP (GPRS). I have tried using the samples
provided on DC ver 8.3. I am only successful in passing data packets
over Ethernet. I have used the same basic code for UDP for PPP(GPRS)
but I am not successful in passing the data packets over PPP(GPRS) to a
remote host.

I have tried searching the archives of the group but it seems that
there were no concrete examples on how to go about sending UDP packets
over PPP(GPRS).

Any help from those who have encountered same problem is greatly
appreciated.

Thanks in advance.

Grimlock

Hi Grimlock,

I do it all the time. What would you like to know ?

Glenn

----- Original Message -----
From: "FiReBiRd"
To:
Sent: Friday, May 12, 2006 1:01 PM
Subject: [rabbit-semi] UDP over PPP (GPRS)
> Hello everyone,
>
> Is there anyone who has been successful in uploading data packets of
> any size using UDP over PPP (GPRS). I have tried using the samples
> provided on DC ver 8.3. I am only successful in passing data packets
> over Ethernet. I have used the same basic code for UDP for PPP(GPRS)
> but I am not successful in passing the data packets over PPP(GPRS) to a
> remote host.
>
> I have tried searching the archives of the group but it seems that
> there were no concrete examples on how to go about sending UDP packets
> over PPP(GPRS).
>
> Any help from those who have encountered same problem is greatly
> appreciated.
>
> Thanks in advance.
>
> Grimlock
>
Hello Glenn,

I would like to know what are the parameters for UDP over PPP(GPRS)
that is neededto be set for a successful UDP transaction.

some facts:
1. I have been successful with FTP, HTTP and TCP over PPP(GPRS), UDP
is a problem for me.
2. I am using DC ver8.3 with PPP module ver1.04 and using RCM2020
connected to a modem (no hardware flow control)
3. I have set the following parameters to
#define ETH_MTU 1500
#define BUFF_SIZE (ETH_MTU-28) //must be smaller
than (ETH_MTU - (IP Datagram + UDP Segment))
#define UDP_BUF_SIZE (BUFF_SIZE*4) //sets up BUFF_SIZE*2 for
each Tx & Rx buffer
#define MAX_UDP_SOCKET_BUFFERS 1 //for use of UDP
4. I defined ARP_VERBOSE also and have the diagnostic from it as
ARP: check returns point-to-point i/f 0

some questions:
1. ARP: check returns point-to-point i/f 0 //what does this mean?
2. any additional parameters that I need to define?
3. any sample code snippets you could post for this case?

I hope I have given you a general idea on what my problem is...

Any help would be great. Thanks in advance.

Regards,

Grimlock

--- In r..., "Glenn McCorquodale"
wrote:
>
> Hi Grimlock,
>
> I do it all the time. What would you like to know ?
>
> Glenn
>
> ----- Original Message -----
> From: "FiReBiRd"
> To:
> Sent: Friday, May 12, 2006 1:01 PM
> Subject: [rabbit-semi] UDP over PPP (GPRS)
>
>
> > Hello everyone,
> >
> > Is there anyone who has been successful in uploading data packets
of
> > any size using UDP over PPP (GPRS). I have tried using the samples
> > provided on DC ver 8.3. I am only successful in passing data
packets
> > over Ethernet. I have used the same basic code for UDP for PPP
(GPRS)
> > but I am not successful in passing the data packets over PPP
(GPRS) to a
> > remote host.
> >
> > I have tried searching the archives of the group but it seems that
> > there were no concrete examples on how to go about sending UDP
packets
> > over PPP(GPRS).
> >
> > Any help from those who have encountered same problem is greatly
> > appreciated.
> >
> > Thanks in advance.
> >
> > Grimlock
> >
> >
> >
> >
> >
> >
> >
> >
> >
Hello again everyone,

I have not made much progress on this case. any advise, pointers from
anyone who have encountered this issue before. I really need to make
this work.

I haven't got any response from Glenn as of the present time of this
posting. I hope someone could help me.

Thanks again for your time.

Grimlock

--- In r..., "FiReBiRd"
wrote:
>
> Hello Glenn,
>
> I would like to know what are the parameters for UDP over PPP(GPRS)
> that is neededto be set for a successful UDP transaction.
>
> some facts:
> 1. I have been successful with FTP, HTTP and TCP over PPP(GPRS),
UDP
> is a problem for me.
> 2. I am using DC ver8.3 with PPP module ver1.04 and using RCM2020
> connected to a modem (no hardware flow control)
> 3. I have set the following parameters to
> #define ETH_MTU 1500
> #define BUFF_SIZE (ETH_MTU-28) //must be smaller
> than (ETH_MTU - (IP Datagram + UDP Segment))
> #define UDP_BUF_SIZE (BUFF_SIZE*4) //sets up BUFF_SIZE*2 for
> each Tx & Rx buffer
> #define MAX_UDP_SOCKET_BUFFERS 1 //for use of UDP
> 4. I defined ARP_VERBOSE also and have the diagnostic from it as
> ARP: check returns point-to-point i/f 0
>
> some questions:
> 1. ARP: check returns point-to-point i/f 0 //what does this mean?
> 2. any additional parameters that I need to define?
> 3. any sample code snippets you could post for this case?
>
> I hope I have given you a general idea on what my problem is...
>
> Any help would be great. Thanks in advance.
>
> Regards,
>
> Grimlock
>
> --- In r..., "Glenn McCorquodale"
> wrote:
> >
> > Hi Grimlock,
> >
> > I do it all the time. What would you like to know ?
> >
> > Glenn
> >
> > ----- Original Message -----
> > From: "FiReBiRd"
> > To:
> > Sent: Friday, May 12, 2006 1:01 PM
> > Subject: [rabbit-semi] UDP over PPP (GPRS)
> >
> >
> > > Hello everyone,
> > >
> > > Is there anyone who has been successful in uploading data
packets
> of
> > > any size using UDP over PPP (GPRS). I have tried using the
samples
> > > provided on DC ver 8.3. I am only successful in passing data
> packets
> > > over Ethernet. I have used the same basic code for UDP for PPP
> (GPRS)
> > > but I am not successful in passing the data packets over PPP
> (GPRS) to a
> > > remote host.
> > >
> > > I have tried searching the archives of the group but it seems
that
> > > there were no concrete examples on how to go about sending UDP
> packets
> > > over PPP(GPRS).
> > >
> > > Any help from those who have encountered same problem is greatly
> > > appreciated.
> > >
> > > Thanks in advance.
> > >
> > > Grimlock
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
--- In r..., "FiReBiRd" wrote:
>
> Hello again everyone,
>
> I have not made much progress on this case. any advise, pointers from
> anyone who have encountered this issue before. I really need to make
> this work.

It works if you don't use large packets. Fragmentation and reassembly is not implemented for
UDP over PPP in Z-World's libraries (at least, not until DC 8.61 that I'm using). By large
packets it is meant anything over 1500 bytes or so.

Lix

--- In r..., "lixpaulian" wrote:
>
> --- In r..., "FiReBiRd" wrote:
> >
> > Hello again everyone,
> >
> > I have not made much progress on this case. any advise, pointers from
> > anyone who have encountered this issue before. I really need to make
> > this work.
>
> It works if you don't use large packets. Fragmentation and reassembly is not
implemented for
> UDP over PPP in Z-World's libraries (at least, not until DC 8.61 that I'm using). By large
> packets it is meant anything over 1500 bytes or so.

By the way, if you want to go to the max possible packet size, you have to define the
buffer size, because the default in DC libraries is something around 600 bytes or so. I use:

#define ETH_MTU 1500

Don't be confused by the ETH_MTU named, it is valid also for PPP. If you don't change this
define, then by default the maximum packet size you may be able to send/receive is 600
bytes or so (I don't remember exactly the default).

Lix

Hello Lix,

I have defined the ff as:
#define ETH_MTU 1500
#define BUFF_SIZE (ETH_MTU-28)
#define UDP_BUF_SIZE (BUFF_SIZE*4)
#define MAX_UDP_SOCKET_BUFFERS 1

I am not transmitting large packets as of now. The data packet that
is to be transmitted via UDP is from keyboard input, which is null
terminated.

Questions:
1. Is there any additional parameters that I need to tweak, ie. ARP,
as I have only seen this debug note in UDP and not in TCP, shown
below.

ARP: check returns point-to-point i/f 0

2. Is having a dynamic IP for use in the GPRS network affect the
connection to a remote host for UDP over PPP? (did not encounter this
using TCP though)

Again, thanks for replying and hope for more favorable responses.

Thanks

Grim

--- In r..., "lixpaulian" wrote:
>
> --- In r..., "lixpaulian" wrote:
> >
> > --- In r..., "FiReBiRd"
wrote:
> > >
> > > Hello again everyone,
> > >
> > > I have not made much progress on this case. any advise,
pointers from
> > > anyone who have encountered this issue before. I really need to
make
> > > this work.
> >
> > It works if you don't use large packets. Fragmentation and
reassembly is not
> implemented for
> > UDP over PPP in Z-World's libraries (at least, not until DC 8.61
that I'm using). By large
> > packets it is meant anything over 1500 bytes or so.
>
> By the way, if you want to go to the max possible packet size, you
have to define the
> buffer size, because the default in DC libraries is something
around 600 bytes or so. I use:
>
> #define ETH_MTU 1500
>
> Don't be confused by the ETH_MTU named, it is valid also for PPP.
If you don't change this
> define, then by default the maximum packet size you may be able to
send/receive is 600
> bytes or so (I don't remember exactly the default).
>
> Lix
>

Hi FireBird,

Sorry for no reply. My email has been off line for two days. I will get back to
you as soon as I fix up this mess.

Glenn

Quoting FiReBiRd :

> Hello Lix,
>
> I have defined the ff as:
> #define ETH_MTU 1500
> #define BUFF_SIZE (ETH_MTU-28)
> #define UDP_BUF_SIZE (BUFF_SIZE*4)
> #define MAX_UDP_SOCKET_BUFFERS 1
>
> I am not transmitting large packets as of now. The data packet that
> is to be transmitted via UDP is from keyboard input, which is null
> terminated.
>
> Questions:
> 1. Is there any additional parameters that I need to tweak, ie. ARP,
> as I have only seen this debug note in UDP and not in TCP, shown
> below.
>
> ARP: check returns point-to-point i/f 0
>
> 2. Is having a dynamic IP for use in the GPRS network affect the
> connection to a remote host for UDP over PPP? (did not encounter this
> using TCP though)
>
> Again, thanks for replying and hope for more favorable responses.
>
> Thanks
>
> Grim
>
> --- In r..., "lixpaulian" wrote:
> >
> > --- In r..., "lixpaulian" wrote:
> > >
> > > --- In r..., "FiReBiRd"
> wrote:
> > > >
> > > > Hello again everyone,
> > > >
> > > > I have not made much progress on this case. any advise,
> pointers from
> > > > anyone who have encountered this issue before. I really need to
> make
> > > > this work.
> > >
> > > It works if you don't use large packets. Fragmentation and
> reassembly is not
> > implemented for
> > > UDP over PPP in Z-World's libraries (at least, not until DC 8.61
> that I'm using). By large
> > > packets it is meant anything over 1500 bytes or so.
> >
> > By the way, if you want to go to the max possible packet size, you
> have to define the
> > buffer size, because the default in DC libraries is something
> around 600 bytes or so. I use:
> >
> > #define ETH_MTU 1500
> >
> > Don't be confused by the ETH_MTU named, it is valid also for PPP.
> If you don't change this
> > define, then by default the maximum packet size you may be able to
> send/receive is 600
> > bytes or so (I don't remember exactly the default).
> >
> > Lix
> >
>
>
Hello Glenn,

Okay. I will be waiting for your response to this problem of mine.

Grim

--- In r..., crocodile@... wrote:
>
> Hi FireBird,
>
> Sorry for no reply. My email has been off line for two days. I will
get back to
> you as soon as I fix up this mess.
>
> Glenn
>
> Quoting FiReBiRd :
>
> > Hello Lix,
> >
> > I have defined the ff as:
> > #define ETH_MTU 1500
> > #define BUFF_SIZE (ETH_MTU-28)
> > #define UDP_BUF_SIZE (BUFF_SIZE*4)
> > #define MAX_UDP_SOCKET_BUFFERS 1
> >
> > I am not transmitting large packets as of now. The data packet
that
> > is to be transmitted via UDP is from keyboard input, which is
null
> > terminated.
> >
> > Questions:
> > 1. Is there any additional parameters that I need to tweak, ie.
ARP,
> > as I have only seen this debug note in UDP and not in TCP, shown
> > below.
> >
> > ARP: check returns point-to-point i/f 0
> >
> > 2. Is having a dynamic IP for use in the GPRS network affect the
> > connection to a remote host for UDP over PPP? (did not encounter
this
> > using TCP though)
> >
> > Again, thanks for replying and hope for more favorable responses.
> >
> > Thanks
> >
> > Grim
> >
> > --- In r..., "lixpaulian" wrote:
> > >
> > > --- In r..., "lixpaulian" wrote:
> > > >
> > > > --- In r..., "FiReBiRd"

> > wrote:
> > > > >
> > > > > Hello again everyone,
> > > > >
> > > > > I have not made much progress on this case. any advise,
> > pointers from
> > > > > anyone who have encountered this issue before. I really
need to
> > make
> > > > > this work.
> > > >
> > > > It works if you don't use large packets. Fragmentation and
> > reassembly is not
> > > implemented for
> > > > UDP over PPP in Z-World's libraries (at least, not until DC
8.61
> > that I'm using). By large
> > > > packets it is meant anything over 1500 bytes or so.
> > >
> > > By the way, if you want to go to the max possible packet size,
you
> > have to define the
> > > buffer size, because the default in DC libraries is something
> > around 600 bytes or so. I use:
> > >
> > > #define ETH_MTU 1500
> > >
> > > Don't be confused by the ETH_MTU named, it is valid also for
PPP.
> > If you don't change this
> > > define, then by default the maximum packet size you may be able
to
> > send/receive is 600
> > > bytes or so (I don't remember exactly the default).
> > >
> > > Lix
> > >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
--- In r..., "FiReBiRd" wrote:
>
> Hello Lix,
>
> I have defined the ff as:
> #define ETH_MTU 1500
> #define BUFF_SIZE (ETH_MTU-28)
> #define UDP_BUF_SIZE (BUFF_SIZE*4)
> #define MAX_UDP_SOCKET_BUFFERS 1
>
> I am not transmitting large packets as of now. The data packet that
> is to be transmitted via UDP is from keyboard input, which is null
> terminated.
>
> Questions:
> 1. Is there any additional parameters that I need to tweak, ie. ARP,
> as I have only seen this debug note in UDP and not in TCP, shown
> below.
>
> ARP: check returns point-to-point i/f 0
>
> 2. Is having a dynamic IP for use in the GPRS network affect the
> connection to a remote host for UDP over PPP? (did not encounter this
> using TCP though)
>
> Again, thanks for replying and hope for more favorable responses.
>
> Thanks
>
> Grim
>
> --- In r..., "lixpaulian" lix@ wrote:
> >
> > --- In r..., "lixpaulian" wrote:
> > >
> > > --- In r..., "FiReBiRd"
> wrote:
> > > >
> > > > Hello again everyone,
> > > >
> > > > I have not made much progress on this case. any advise,
> pointers from
> > > > anyone who have encountered this issue before. I really need to
> make
> > > > this work.
> > >
> > > It works if you don't use large packets. Fragmentation and
> reassembly is not
> > implemented for
> > > UDP over PPP in Z-World's libraries (at least, not until DC 8.61
> that I'm using). By large
> > > packets it is meant anything over 1500 bytes or so.
> >
> > By the way, if you want to go to the max possible packet size, you
> have to define the
> > buffer size, because the default in DC libraries is something
> around 600 bytes or so. I use:
> >
> > #define ETH_MTU 1500
> >
> > Don't be confused by the ETH_MTU named, it is valid also for PPP.
> If you don't change this
> > define, then by default the maximum packet size you may be able to
> send/receive is 600
> > bytes or so (I don't remember exactly the default).
> >
> > Lix
>