[Contiki-developers] Atmega128rfa1

1 view
Skip to first unread message

Ambuj Varshney

unread,
May 17, 2011, 5:00:50 PM5/17/11
to Contiki developer mailing list
Hi,

I have been able to get Contiki to work with Atmel Zigbit, I was even able to send UDP packet from one Zigbit module acting as Client
to another Zigbit module acting as server.

I am now trying to compile contiki on Atemga128rfa1 chipset, I am compiling example program using.

make  TARGET=avr-atmega128rfa1

However, I am getting the following error messages  :

contiki-avr-atmega128rfa1.a(uip6.o): In function `uip_process':
/home/ambuj/contiki-2.x-20110512/examples/hello-world/../../core/net/uip6.c:1303: undefined reference to `tcpip_icmp6_call'
contiki-avr-atmega128rfa1.a(uip-icmp6.o): In function `uip_icmp6_send':
/home/ambuj/contiki-2.x-20110512/examples/hello-world/../../core/net/uip-icmp6.c:221: undefined reference to `tcpip_ipv6_output'
make: *** [hello-world.avr-atmega128rfa1] Error 1
rm hello-world.co

This was not the case, while I was compiling for Zigbit.

what could be wrong ?


Thanks,
Ambuj Varshney
Bachelors in Information and Communication Technology
Gandhinagar, India

David Kopf

unread,
May 17, 2011, 5:39:07 PM5/17/11
to Contiki developer mailing list
Hello world uses ipv4 by default; did you change it to use ipv6? The ipv6 calls are supposed to be wrapped with #if UIP_CONF_IPV6, mainly to get hello-world to build, but some source modules may have slipped in that call ipv6 routines. Try uncommenting the line in /examples/hello-world/makefile:
#UIP_CONF_IPV6=1
 
Also try building the raven webserver instead, in /example/webserver-ipv6-raven do $make TARGET=avr-atmega128rfa1.  That is the build that has had the most testing.
 
Sent: Tuesday, May 17, 2011 5:00 PM
Subject: [Contiki-developers] Atmega128rfa1
 

Ambuj Varshney

unread,
May 17, 2011, 6:25:09 PM5/17/11
to Contiki developer mailing list
I uncommented UIP_CONF_IPV6 in hello-world, I still get same error message ?
The same code was working fine for Atmel Zigbit.

However, I was able to get webserver6 to run on Atmegarfa1 chipset, I was able to see text on Minicom.
I will try to network these nodes now :)

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Contiki-developers mailing list
Contiki-d...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/contiki-developers


Ambuj Varshney

unread,
May 18, 2011, 9:24:48 AM5/18/11
to Contiki developer mailing list
Hi,

I  was able to get UDP example to work on Atmega128rfa1. I have documented my work in getting Contiki to work on Zigbit here on my blog - http://wirelesssensornetworkblog.blogspot.com/2011/05/contiki-and-zigbit.html

There are some experiments I am doing which I would highlight there.

I have couple of questions regarding Contiki's port for Atmega128rfa1 -

- Atmega128rfa1 supports ( as mentioned in datasheet) data rate as high as 2 megabits/second, though  IEEE 802.15.4 specification defines this to be max of 250 kilobits/second.  Would I be restricted to what IEEE defines ?

- As I understand the radio transceiver is on chip in Atmega128rfa1 (unlike Zigbit where it is interfaced using SPI ), does this mean SPI is free here for communication with other peripheral ?  and can we use SPI on Zigbit module , since on SPI we can have multiple devices?

- Is the MAC layer implemented entirely in software in Contiki as part of operating system ?

and finally, is there an implementation of upcoming IEEE 802.15.4e standard on Contiki ?

These were some of the things I wanted clarification on.

Thanks,
Ambuj Varshney
Senior undergraduate
DA-IICT,Gandhinagar, India

David Kopf

unread,
May 18, 2011, 10:17:54 AM5/18/11
to Contiki developer mailing list
 
 
Sent: Wednesday, May 18, 2011 9:24 AM
Subject: Re: [Contiki-developers] Atmega128rfa1
 
Hi,

> I  was able to get UDP example to work on Atmega128rfa1. I have documented my work in getting Contiki to work o

>- Atmega128rfa1 supports ( as mentioned in datasheet) data rate as high as 2 megabits/second, though  IEEE 802.15.4
> specification defines this to be max of 250 kilobits/second.  Would I be restricted to what IEEE defines ?
 
The 802.15.4 header is always 250KB/sec; the faster data rate only applies to the rest of the packet. According to the datasheet enabling it has no effect on other functionality, as long as it is done on both ends. Receivers not configured for it would presumable get checksum errors. There are some tricky other considerations though, the rx sensitivity drops when the data rate is increased, so as you move farther away >you will lose the payload before losing the header.

>- As I understand the radio transceiver is on chip in Atmega128rfa1 (unlike Zigbit where it is interfaced using SPI ),
> does this mean SPI is free here for communication with other peripheral ?>
> and can we use SPI on Zigbit module , since on SPI we can have multiple devices?
 
Yes.


> - Is the MAC layer implemented entirely in software in Contiki as part of operating system ?
It could be, but the avr builds take advantage of the rf23x extended modes - header address parsing, FCS generation, audo tx retry, autoack.

> and finally, is there an implementation of upcoming IEEE 802.15.4e standard on Contiki ?

All of the proposed changes would take a very long time to implement! http://www.ieee802.org/15/pub/TG4e.html

Mariano Alvira

unread,
May 18, 2011, 10:41:33 AM5/18/11
to Contiki developer mailing list
On Wed, May 18, 2011 at 06:54:48PM +0530, Ambuj Varshney wrote:
>
> - Atmega128rfa1 supports ( as mentioned in datasheet) data rate as high as 2
> megabits/second, though IEEE 802.15.4 specification defines this to be max of
> 250 kilobits/second. Would I be restricted to what IEEE defines ?

Mostly to work with other radios. You can clock the mc13224v radio to
2Mbps also --- so you would still be able to work with it.

I'm curious though how you would take advantage of this as the
Atmega128rfa1 only has a 128 byte receive FIFO. That's a single
packet. It will get swamped even at 250kbps with one full-sized ipv6
packet (13 802.15.4 fragments).

-Mar.

Rolf Diermann

unread,
May 18, 2011, 2:48:15 PM5/18/11
to Contiki developer mailing list
>>> You can clock the mc13224v radio to
>>> 2Mbps also --- so you would still be able to work with it.

Could I use e.g. 1 Mbps with my Econotags in the current Contiki version "out of the box"? (e.g. uipv6 udpserver/udpclient)
How many changes would it require, or has this already been tested successfully by someone ?

Rolf


-----Original Message-----
From: Mariano Alvira [mailto:m...@devl.org]
Sent: Mittwoch, 18. Mai 2011 16:42
To: Contiki developer mailing list

Mariano Alvira

unread,
May 18, 2011, 4:07:36 PM5/18/11
to Contiki developer mailing list
I haven't tested it throughly, but you should only have to change the
clock divider in cpu/mc1322x/lib/maca.c:

around line 61:

/* for 250kHz clock */
#define MACA_CLOCK_DIV 95

-Mar.

Reply all
Reply to author
Forward
0 new messages