Vladimir Kovacevic | 1 Mar 11:45 2010

uIP_SICLoPAN


We used Code Composer Essentials 3.1 (MSP430 Compiler v3.1, gmake), and couple of weeks ago we switched to Code Composer studio 4.0.
 
Vladimir
----- Original Message -----
Sent: Friday, February 26, 2010 5:39 PM
Subject: Re: [uip-users] uIP_SICLoPAN

Hi
 
What compiler does support this MSP?
 
Regards,
 
André
 
----- Original Message -----
Sent: Friday, February 26, 2010 3:31 PM
Subject: [uip-users] uIP_SICLoPAN

Hello!
We develop the hardware for WSN node with MSP430-F5438, CC1101 and the next step is creating the simple network, IP based with one sink node connected to the already developed GPRS Gateway . The idea is to use uIP from Contiki OS with SICLoWPAN and 802.15.4 on data link layer. We are preety much new users of Contiki, so what would be the good reference design or source code to start with?
 
Thanks in advance!
 
Vladimir Kovacevic,
Senior Embedded Systems Developer,
Institute Mihajlo Pupin, Telecommunications
Belgrade, Serbia
Raimondas Sasnauskas | 1 Mar 16:59 2010
Picon
Picon

Re: Latest Code

Hi Andrew,

On 02.02.2010, at 19:55, Andrew Ruder wrote:

> Yes, although the problem is that I applied the first TCP SYNACK bug
> fix which ended up being incorrect, which made me think what uIP
> really needs is some sort of testbench-like setup.  Hook two uip
> processes together and mediate the timing/latency/packet dropping
> between the two so that things can be proven wrong/incorrect before
> applying a patch.

We do have such a testing tool for Contiki protocols (including uIP) and applications. We're planning to
integrate it into the Contiki repo nightly build process and it shouldn't be too difficult to adapt it to
the uIP build environment. However, there is still some work to do to make it ready for public release.

> 
> When I get home this evening, I'll try to investigate the SYNACK patch
> more thoroughly and put the correct fix in there, but the complete
> lack of any kind of verification (or even code that reproduces the bug
> in the first place) always makes me a little nervous when applying
> patches to uIP.
> 

The SYNACK bug and all others I mentioned in this list are fixed in the latest Contiki release (2.4) and CVS HEAD.

Best,
Raimondas

--
Raimondas Sasnauskas, PhD Student
Distributed Systems Group
RWTH Aachen University
http://ds.cs.rwth-aachen.de/members/sasnauskas

Attachment (smime.p7s): application/pkcs7-signature, 5958 bytes
murali krishna | 8 Mar 06:47 2010
Picon

upgrading uIP0.9 to uIP1.0 version

 

             I am using uIP 0.9 version on AT91SAM7X512 ,IAR ide for my final year student project .But in my project

we need to receive broadcast packets from an HMI( a PC ) .But from the uIP 0.9 document i read that

uIP 0.9 do not support broadcast receive.So I need to upgrade my uIP 0.9 version to 1.0 .Has anybody upgraded

it to uIP1.0.If so which all files i have to edit to upgrade to uIP1.0 version ? Will it work if i simply replace all the uIP0.9 source files

wiht uIP 1.0 version source files ?

 

thanks

Murali


IPL - III and all the controversies Drag n' drop
Carsten Rhod Gregersen | 16 Mar 14:24 2010

UDP only uIP

Hi,

We need an IP-stack in our device, but only UDP...

I've looked through the uIP code. I can see a UIP_UDP

Would it be "easy" to implement an UIP_TCP flag by which you could
disable TCP? (like UIP_UDP)?

Can you give me some raw instructions... And I might look into it myself
sending the code back if you are interested.

--

-- 
mvh,
Nabto ApS - Reconnecting the internet
Carsten Rhod Gregersen - HD-A, M.Sc. CS. & Math.
Web: http://www.nabto.com
Åbogade 15, 8200 Århus N, Tlf: +45 8734 5513

Sivan Toledo | 16 Mar 16:04 2010
Picon
Picon

Re: UDP only uIP



On Tue, Mar 16, 2010 at 3:24 PM, Carsten Rhod Gregersen <info <at> nabto.com> wrote:
Hi,

We need an IP-stack in our device, but only UDP...

I've looked through the uIP code. I can see a UIP_UDP

Would it be "easy" to implement an UIP_TCP flag by which you could
disable TCP? (like UIP_UDP)?

Can you give me some raw instructions... And I might look into it myself
sending the code back if you are interested.

--
mvh,
Nabto ApS - Reconnecting the internet
Carsten Rhod Gregersen - HD-A, M.Sc. CS. & Math.
Web: http://www.nabto.com
Åbogade 15, 8200 Århus N, Tlf: +45 8734 5513



Sivan Toledo | 16 Mar 16:04 2010
Picon
Picon

Re: UDP only uIP


I think that most of the relevant code is in uip.c, but I think you'd need a lot of #ifdef's there to get rid of all the code that handles TCP, since this is what most of the code is doing (handling TCP).

I would also find such a feature useful; I also have a code that uses uIP, but only with UDP.

Sivan Toledo

On Tue, Mar 16, 2010 at 3:24 PM, Carsten Rhod Gregersen <info <at> nabto.com> wrote:
Hi,

We need an IP-stack in our device, but only UDP...

I've looked through the uIP code. I can see a UIP_UDP

Would it be "easy" to implement an UIP_TCP flag by which you could
disable TCP? (like UIP_UDP)?

Can you give me some raw instructions... And I might look into it myself
sending the code back if you are interested.

--
mvh,
Nabto ApS - Reconnecting the internet
Carsten Rhod Gregersen - HD-A, M.Sc. CS. & Math.
Web: http://www.nabto.com
Åbogade 15, 8200 Århus N, Tlf: +45 8734 5513



Su Li | 16 Mar 23:51 2010
Picon

Why uip_arp_ipin() not used?

Why #define uip_arp_ipin() nothing, so it is not used?

#if 0
void
uip_arp_ipin(void)

........
murali krishna | 17 Mar 05:31 2010
Picon

UDP

Hi all ,
 
     I am trying to build an application on FREERTOS and i am using uIP 1.0 with it .My application need to send periodically udp packet to a multicast group , For example group joined to 225.16.9.10:4950 . But i tried UDP api to accomplish this , but i seems to be not working . If anybody has solved such trouble please help .Below i have listed my code
 
 
test_array[] = {"uIP1.0 responding"};
//------------------------------------------------------------------------------
void udptest_connect(void ){
       uip_ipaddr_t addr1 ;
       uip_ipaddr( &addr1 , 225 , 16 , 9 , 10 ) ;
       test_con = uip_udp_new(&test_con , HTONS(4950) );
       uip_udp_bind( test_con , HTONS(4950));

             /*Force uIP to poll the UDP application for outgoin data .*/
       uip_udp_periodic_conn(test_con);

             /*send data over network */
       uip_arp_out();
}
//------------------------------------------------------------------------------
void udptest_appcall(void){

     if( uip_poll() ){
        //my_send();
        uip_appdata = test_array;
        uip_udp_send( sizeof(test_array));
        return;
      }
     if( uip_newdata() ){
        uip_udp_remove(test_con);
        //my_read();
        return ;
}
//------------------------------------------------ 


Where to invest money? Visit MSN Money Special for tax, loans, insurance, realty and savings related recommendations Sign up now.
Nico Coesel | 17 Mar 09:14 2010
Picon

RE: Why uip_arp_ipin() not used?

From: Su Li [mailto:su_li2000 <at> yahoo.com] 
Sent: dinsdag 16 maart 2010 23:52
To: uip-users <at> sics.se
Subject: [uip-users] Why uip_arp_ipin() not used? 

Why #define uip_arp_ipin() nothing, so it is not used?

#if 0
void
uip_arp_ipin(void)

........

You can use the function but it has a bug. You'll need to comment this
line:

uip_len -= sizeof(struct uip_eth_hdr);

This function adds the MAC addresses of incoming packets to the ARP
cache. In normal situations uIP needs to send a ARP request for the
first packet it sends to a host. I.e. the first packet it sends is
always lost. For UDP this is a 'problem' unless you only use broadcasts.
For TCP it will add a 1 second delay for the first packet.

Whether uip_arp_ipin() is usefull depends on how uIP is used.

Nico Coesel

Su Li | 17 Mar 19:04 2010
Picon

RE: Why uip_arp_ipin() not used?

Hi Nico,

Thanks very much for your response!
The reason I traced the code was when my PC was connected to the target board, the UDP simulation code in PC could talk to the target board. However if I enabled the PC wireless card, the communication would lost.
I found that the PC simulation code uses "gethostbyname("");" to get the local IP for the UDP socket creation. When the wireless is enabled, gethostbyname() will return the wireless card IP instead of the local Ethernet card IP which was hard coded by my target board.
My workaround is to hard code the IP during creating the socket. So it works to receive packets from a PC now even when the wireless is on.
I still have a problem to asynchronously send a message to PC, i.e. in some situation, the target board will initiate the Tx. Any idea or example code would be very helpful!
Thanks!

Su
--- On Wed, 3/17/10, Nico Coesel <ncoesel <at> DEALogic.nl> wrote:

From: Nico Coesel <ncoesel <at> DEALogic.nl>
Subject: RE: [uip-users] Why uip_arp_ipin() not used?
To: uip-users <at> sics.se
Date: Wednesday, March 17, 2010, 1:14 AM

From: Su Li [mailto:su_li2000 <at> yahoo.com]
Sent: dinsdag 16 maart 2010 23:52
To: uip-users <at> sics.se
Subject: [uip-users] Why uip_arp_ipin() not used?

Why #define uip_arp_ipin() nothing, so it is not used?

#if 0
void
uip_arp_ipin(void)

........

You can use the function but it has a bug. You'll need to comment this
line:

uip_len -= sizeof(struct uip_eth_hdr);

This function adds the MAC addresses of incoming packets to the ARP
cache. In normal situations uIP needs to send a ARP request for the
first packet it sends to a host. I.e. the first packet it sends is
always lost. For UDP this is a 'problem' unless you only use broadcasts.
For TCP it will add a 1 second delay for the first packet.

Whether uip_arp_ipin() is usefull depends on how uIP is used.

Nico Coesel


Gmane