Gabriel-Jerome Bucka | 1 Nov 2011 18:33
Picon
Favicon

Re: Getting Contiki and Tmote Connect toworktogether

Hello David,

thank you for spotting that there was an extra two bytes. Turns out that this was indeed the CRC (sequence numbers are not actually turned on by default). I have now managed to replicate the computation of the CRC across the data bytes.
So when I run my little hello World example, with the mote connected to the Connect, the packets get accepted and I can listen to the output via the network!

I am very grateful for your help, and can now move forward with my project.

Thanks,
Jerome Bucka

On 31 October 2011 12:06, David Kopf <dak664-2p+qKb8Fl0QN+BqQ9rBEUg@public.gmane.org> wrote:
I can't find the exact documentation for that protocol but it is similar to
http://www.tinyos.net/tinyos-2.x/doc/html/tep113.html:
<quote>
  F P S D         Payload                 CR F

F       = Framing byte, denoting start of packet: HdlcTranslateC
P       = Protocol byte: SerialP
S       = Sequence number byte: SerialP
D       = Packet format dispatch byte: SerialDispatcherC
Payload = Data payload (stored in SerialDispatcherC): SerialDispatcherC
CR      = Two-byte CRC over S to end of Payload: SerialP
F       = Framing byte denoting end of packet: HdlcTranslateC
</quote>
Note the sequence number and CRC, both probably have to be correct for the
packet to be accepted. However the example given there does not show the
CRC:
<quote>
Payload is a contiguous packet that SerialDispatcherC reads in. Note that
any data bytes (P - CR) equal to 0x7e or 0x7d will be escaped to 0x7d 0x5e
or 0x7d 0x5d accordingly. For example, a platform independent AM packet of
type 6, group 0x7d, and length 5 to destination 0xbeef with a payload of 1 2
3 4 5 would look like this:

7e 40 09 00 be ef 05 7d 5d 06 01 02 03 04 05 7e
</quote>

Your packets do seem to have an extra two bytes somewhere, that might be a
CRC at the end and if so you would have to generate it properly.

Contiki has a similar slip protocol that could be easily modified, but
serial PPP seems to have been chosen for a recent compatibilty test
http://hinrg.cs.jhu.edu/joomla/images/stories/TinyRPL.pdf

The real issue is what is the payload - ip4, ip6, 6lowpan, 802.15.4, zigbee,
etc. Contiki uses standard ip4 or ip6 network packets.
Most of the contiki configuration parameters are in the platform
contiki-conf.h file. If you built the default hello world example that would
probably be ip4 with a contiki slip connection.


-----Original Message-----
From: Gabriel-Jerome Bucka
Sent: Monday, October 31, 2011 6:46 AM
To: Contiki developer mailing list
Subject: Re: [Contiki-developers] Getting Contiki and Tmote Connect
toworktogether

Hello David,

thank you for your reply. I will try to explain in a little more detail what
I have done so far.
The program I am trying to run is the Contiki hello world example. When the
mote is attached to the Connect, I get no output whatsoever over the
network.
However I also have another mote that is running a TinyOS Basestation, which
does send things to its serial port that then get forwarded to the network.
So, I connected the TinyOS mote locally to my computer in order to inspect
what it sends to the serial port (using a serialdump).
It looks something like:

connecting to /dev/com9 (115200) [OK]
7E4500FF FF00011C 00930000   01000001  00640F51    ~E...............d.Q
0F5B0F5A 0F5A0F60 0F5D0F5D 0F610F5D 0F5A4D3A   .[.Z.Z.`.].].a.].ZM:
7E7E4500 FFFF0001 1C009300  00010000  0100650F     ~~E...............e.
5D0F540F 550F520F  550F530F  550F510F 520F53C9     ].T.U.R.U.S.U.Q.R.S.
B17E
.~

So I had a look at the tinyOS source and documentation, to figure out what
this meant.
The 0x7E (~) character is a HDLC flag, and is the delimiter at the start and
the end of each message. 0x45 (E), is used to indicate a NAK.
This is then followed by further header information, such as message type
(00), receiver address(ff ff), sender address (00 01), message payload
length (1C), group id (00) and handler type (93).
Finally the next 28 bytes are the actual payload, before the closing HDLC
flag, and then the next packet looks exactly the same.

So I thought I would modify the HelloWorld Example, to produce the same kind
of serial output, by manually sending the necessary bytes to the serial
port, using putchar().
In the Contiki sky main.c file I commented out any output to the serial
line, such as the messages "Contiki 2.4 started etc", to get as close a
match to what the TinyOS program does.
Again using serial dump I get the following output:

connecting to /dev/com10 (115200) [OK]
007E4500 FFFF0001 05009348 656C6C6F 7E7E4500  .~E........Hello~~E.
FFFF0001 05009348 656C6C6F 7E7E4500 FFFF0001  .......Hello~~E.....
05009348 656C6C6F 7E7E4500 FFFF0001 05009348   ...Hello~~E........H
656C6C6F 7E7E4500 FFFF0001 05009348 656C6C6F  ello~~E........Hello

etc. (Note that I have changed the payload size header byte to indicate a
payload of 5 bytes.)

However when I now plug the mote running this program into the Connect, The
SerialForwarder does not seem to recognise the packets, and consequently
does not forward them onto the network.

With regards to the baud rates, I am pretty confident that they are both
running at 115200, even when connected to the TmoteConnect.

In case you are interested, the source of my rather crude modification of
the hello_world example can be found here: http://pastebin.com/wVAusbxf

If you have any further suggestions or ideas, I would be happy to hear from
you.

Thank you very much,

Jerome




On 29 October 2011 23:58, David Kopf <dak664-2p+qKb8Fl0QN+BqQ9rBEUg@public.gmane.org> wrote:
What program did you flash to the sky, and is there any serial debug output
when it boots up?  The first step would be getting the baud rates to match,
then you would have to match the slip protocols or whatever the connect is
using for the ip4 sockets.

-----Original Message-----
From: Gabriel-Jerome Bucka
Sent: Saturday, October 29, 2011 2:03 PM
To: Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [Contiki-developers] Getting Contiki and Tmote Connect to
worktogether



Dear all,

I am wondering if any of you have ever tried or succeeded in getting a
Contiki program on a Tmote Sky to talk with a Tmote Connect unit. I have
managed to upload a Contiki programm in ihex format to a Tmote connected to
the USB Port of the TmoteConnect via the network, unfortunately I can not
get any mote output back.

What I would like to do, is to be able to get the mote data which is printed
to the serial line, forwarded back via the network using the
SerialForwarder(which seems quite tailored to TinyOS) built into the
TmoteConnect, so I can then receive the data via packets and store/analyse
it.

I am using Contiki 2.4 and the TmoteConnect has the original Moteiv 1.2.0
firmware on it. If you need any further information about my setup, please
let me know!

I am fairly new to Contiki and Tmotes, and only just joined the developers
mailing list today, so I hope this hasn't been covered before.

Many thanks
Jerome






------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook
in minutes. BlackBerry App World&#153; now supports Android&#153; Apps
for the BlackBerry&reg; PlayBook&#153;. Discover just how easy and simple
it is! http://p.sf.net/sfu/android-dev2dev






_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers


------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook
in minutes. BlackBerry App World&#153; now supports Android&#153; Apps
for the BlackBerry&reg; PlayBook&#153;. Discover just how easy and simple
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers








------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook
in minutes. BlackBerry App World&#153; now supports Android&#153; Apps
for the BlackBerry&reg; PlayBook&#153;. Discover just how easy and simple
it is! http://p.sf.net/sfu/android-dev2dev






_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers


------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook
in minutes. BlackBerry App World&#153; now supports Android&#153; Apps
for the BlackBerry&reg; PlayBook&#153;. Discover just how easy and simple
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers

------------------------------------------------------------------------------
RSA&reg; Conference 2012
Save &#36;700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
cyril auburtin | 1 Nov 2011 19:22
Picon
Picon
Favicon

Re: multicast

hello Mohammad
Could you tell me more about adding this function

I would like to use coap in multicast, not sure it works with the current erbium rest example, or at least pass multicast ping6

thanks

no because the border router doesnt forward this ping through the wireless interface.. it replies to it without forwarding it because it thinks it is intended to itself
if u want it for forward it then u must create a function that does that.
Mohammad Abdellatif

Phd student at Faculty of Engineering University of Porto (FEUP)
Researcher at Inesc Porto, UTM, WiN 




On Wed, Oct 12, 2011 at 5:21 PM, cyril auburtin <cyril.auburtin-MZpvjPyXg2s@public.gmane.org> wrote:
well when I have a rpl-border-router and other udp-clients

ping6 ff02::1A -I tun0 is only answered by the border-router ,is it normal, because if the border-router sends an udp message to ff02::1A all other udp-clients would probably received it

short answer no
long answer. if you send a packet to the all rpl nodes ip address "FF02:0:0:0:0:0:0:1A" http://www.iana.org/assignments/ipv6-multicast-addresses/ipv6-multicast-addresses.xml
this packet will reach the neighboring rpl nodes but they wont forward it.. u need to implement a rule in each of them to enable that forwarding.

However, rpl supports multicast but it is not yet implemented in the last version of contikirpl


Mohammad Abdellatif

Phd student at Faculty of Engineering University of Porto (FEUP)
Researcher at Inesc Porto, UTM, WiN 




On Wed, Aug 10, 2011 at 6:44 PM, cyril auburtin <cyril.auburtin-MZpvjPyXg2s@public.gmane.org> wrote:
Does Contiki implements a multi-hop multicast?

giving a border-router xxxx::a:b:1 and other nodes xxxx::a:b:2
Is there a way to send to all the rpl network in one message (at the beginning)?

thanks

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at:  http://p.sf.net/sfu/wandisco-dev2dev

_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers



------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy
to use, easy to manage, easy to install, easy to extend.
Get a Free download of the new open ALM Subversion platform now.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers



------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers

------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Mohammad Abdellatif | 1 Nov 2011 21:46
Picon

Re: multicast

well i am sorry but i have almost no experience with the coap and rest examples.. i really need to do some reading on them since it seems like everybody is talking about them in the mailing list :))
once i know more i will try and help you
yours
Mohammad Abdellatif


Phd student at Faculty of Engineering University of Porto (FEUP)
Researcher at Inesc Porto, UTM, WiN 




On Tue, Nov 1, 2011 at 6:22 PM, cyril auburtin <cyril.auburtin-MZpvjPyXg2s@public.gmane.org> wrote:
hello Mohammad
Could you tell me more about adding this function

I would like to use coap in multicast, not sure it works with the current erbium rest example, or at least pass multicast ping6

thanks

no because the border router doesnt forward this ping through the wireless interface.. it replies to it without forwarding it because it thinks it is intended to itself
if u want it for forward it then u must create a function that does that.
Mohammad Abdellatif

Phd student at Faculty of Engineering University of Porto (FEUP)
Researcher at Inesc Porto, UTM, WiN 




On Wed, Oct 12, 2011 at 5:21 PM, cyril auburtin <cyril.auburtin-MZpvjPyXg2s@public.gmane.org> wrote:
well when I have a rpl-border-router and other udp-clients

ping6 ff02::1A -I tun0 is only answered by the border-router ,is it normal, because if the border-router sends an udp message to ff02::1A all other udp-clients would probably received it

short answer no
long answer. if you send a packet to the all rpl nodes ip address "FF02:0:0:0:0:0:0:1A" http://www.iana.org/assignments/ipv6-multicast-addresses/ipv6-multicast-addresses.xml
this packet will reach the neighboring rpl nodes but they wont forward it.. u need to implement a rule in each of them to enable that forwarding.

However, rpl supports multicast but it is not yet implemented in the last version of contikirpl


Mohammad Abdellatif

Phd student at Faculty of Engineering University of Porto (FEUP)
Researcher at Inesc Porto, UTM, WiN 




On Wed, Aug 10, 2011 at 6:44 PM, cyril auburtin <cyril.auburtin-MZpvjPyXg2s@public.gmane.org> wrote:
Does Contiki implements a multi-hop multicast?

giving a border-router xxxx::a:b:1 and other nodes xxxx::a:b:2
Is there a way to send to all the rpl network in one message (at the beginning)?

thanks

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at:  http://p.sf.net/sfu/wandisco-dev2dev

_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers



------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy
to use, easy to manage, easy to install, easy to extend.
Get a Free download of the new open ALM Subversion platform now.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers



------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers


------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers


------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
cyril auburtin | 1 Nov 2011 22:24
Picon
Picon
Favicon

Re: multicast

it's not with coap

but inside a rpl network multicasts ff02::1a are forwarded multihops? I am not sure
anyway when doing a ping6 ff02::1a -I tun0 to the cooja simulation, only the border router replies, I would like the multicast icmp to be forwarded and get as many replies as there are rpl hosts

well i am sorry but i have almost no experience with the coap and rest examples.. i really need to do some reading on them since it seems like everybody is talking about them in the mailing list :))
once i kn ow more i will try and help you
yours
Mohammad Abdellatif

Phd student at Faculty of Engineering University of Porto (FEUP)
Researcher at Inesc Porto, UTM, WiN 




On Tue, Nov 1, 2011 at 6:22 PM, cyril auburtin <cyril.auburtin-MZpvjPyXg2s@public.gmane.org> wrote:
hello Mohammad
Could you tell me more about adding this function

I would like to use coap in multicast, not sure it works with the current erbium rest example, or at least pass multicast ping6

thanks

no because the border router doesnt forward this ping through the wireless interface.. it replies to it without forwarding it because it thinks it is intended to itself
if u want it for forward it then u must create a function that does that.
Mohammad Abdellatif

Phd student at Faculty of Engineering University of Porto (FEUP)
Researcher at Inesc Porto, UTM, WiN 




On Wed, Oct 12, 2011 at 5:21 PM, cyril auburtin <cyril.auburtin-MZpvjPyXg2s@public.gmane.org> wrote:
well when I have a rpl-border-router and other udp-clients

ping6 ff02::1A -I tun0 is only answered by the border-router ,is it normal, because if the border-router sends an udp message to ff02::1A all other udp-clients would probably received it

short answer no
long answer. if you send a packet to the all rpl nodes ip address "FF02:0:0:0:0:0:0:1A" http://www.iana.org/assignments/ipv6-multicast-addresses/ipv6-multicast-addresses.xml
this packet will reach the neighboring rpl nodes but they wont forward it.. u need to implement a rule in each of them to enable that forwarding.

However, rpl supports multicast but it is not yet implemented in the last version of contikirpl


Mohammad Abdellatif

Phd student at Faculty of Engineering University of Porto (FEUP)
Researcher at Inesc Porto, UTM, WiN 




On Wed, Aug 10, 2011 at 6:44 PM, cyril auburtin <cyril.auburtin-MZpvjPyXg2s@public.gmane.org> wrote:
Does Contiki implements a multi-hop multicast?

giving a border-router xxxx::a:b:1 and other nodes xxxx::a:b:2
Is there a way to send to all the rpl network in one message (at the beginning)?

thanks

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at:  http://p.sf.net/sfu/wandisco-dev2dev

_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers



------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy
to use, easy to manage, easy to install, easy to extend.
Get a Free download of the new open ALM Subversion platform now.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers



------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers


------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers



------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers

------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
David Kopf | 1 Nov 2011 23:00
Gravatar

Re: multicast

The border router has two input interfaces, the radio and the fallback. With 
the current code the uip stack has no way of knowing which interface has 
sent it a packet. To forward it looks up the destination address in the 
routing table and if found sends the output to the radio. If not found it 
sends the output to the fallback; this is how a node replies to external 
pings (or can initiate pings to e.g. google).  If the host sends a packet 
that does not match a route the border router would thus decrease the hop 
count and send it back to the host, which would pong it back until the hop 
count went to zero. Each fallback implementation has a special trap to 
prevent this.

Link local addressed packets from the fallback would therefore go back to 
the fallback, but again they are specially trapped. You *could* forward 
multicast link local to the radio, but multicast from any node to the radio 
would then echo through the mesh unless you trapped that particular case. It 
gets messy.

For discovery you have to dump the border router routing table to the host 
somehow, via a printf, callback, or web page load. In general you then have 
to manually add each route to prevent the blocking host link local NS/NA 
when trying to access the node, except ubuntu accepts noarp to prevent that 
(windows does not).

-----Original Message----- 
From: cyril auburtin
Sent: Tuesday, November 01, 2011 5:24 PM
To: Contiki developer mailing list
Subject: Re: [Contiki-developers] multicast

it's not with coap

but inside a rpl network multicasts ff02::1a are forwarded multihops? I am 
not sure
anyway when doing a ping6 ff02::1a -I tun0 to the cooja simulation, only the 
border router replies, I would like the multicast icmp to be forwarded and 
get as many replies as there are rpl hosts

well i am sorry but i have almost no experience with the coap and rest 
examples.. i really need to do some reading on them since it seems like 
everybody is talking about them in the mailing list :))
once i know more i will try and help you
yours
Mohammad Abdellatif

Phd student at Faculty of Engineering University of Porto (FEUP)
Researcher at Inesc Porto, UTM, WiN
http://win.inescporto.pt/mma

On Tue, Nov 1, 2011 at 6:22 PM, cyril auburtin <cyril.auburtin@...> 
wrote:

hello Mohammad
Could you tell me more about adding this function

I would like to use coap in multicast, not sure it works with the current 
erbium rest example, or at least pass multicast ping6

thanks

no because the border router doesnt forward this ping through the wireless 
interface.. it replies to it without forwarding it because it thinks it is 
intended to itself
if u want it for forward it then u must create a function that does that.
Mohammad Abdellatif

Phd student at Faculty of Engineering University of Porto (FEUP)
Researcher at Inesc Porto, UTM, WiN
http://win.inescporto.pt/mma

On Wed, Oct 12, 2011 at 5:21 PM, cyril auburtin <cyril.auburtin@...> 
wrote:

well when I have a rpl-border-router and other udp-clients

ping6 ff02::1A -I tun0 is only answered by the border-router ,is it normal, 
because if the border-router sends an udp message to ff02::1A all other 
udp-clients would probably received it

short answer no
long answer. if you send a packet to the all rpl nodes ip address 
"FF02:0:0:0:0:0:0:1A" 
http://www.iana.org/assignments/ipv6-multicast-addresses/ipv6-multicast-addresses.xml
this packet will reach the neighboring rpl nodes but they wont forward it.. 
u need to implement a rule in each of them to enable that forwarding.

However, rpl supports multicast but it is not yet implemented in the last 
version of contikirpl

Mohammad Abdellatif

Phd student at Faculty of Engineering University of Porto (FEUP)
Researcher at Inesc Porto, UTM, WiN
http://win.inescporto.pt/mma

On Wed, Aug 10, 2011 at 6:44 PM, cyril auburtin <cyril.auburtin@...> 
wrote:

Does Contiki implements a multi-hop multicast?

giving a border-router xxxx::a:b:1 and other nodes xxxx::a:b:2
Is there a way to send to all the rpl network in one message (at the 
beginning)?

thanks

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at:  http://p.sf.net/sfu/wandisco-dev2dev

_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers

------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy
to use, easy to manage, easy to install, easy to extend.
Get a Free download of the new open ALM Subversion platform now.

http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers

------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers

------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers

------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1

_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers 

------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
Daniel Willmann | 2 Nov 2011 01:22
Picon

[PATCH/RFC 0/1] Fix Makefile upload rule for AVR

Hello David, hi list,

the following patch fixes a problem I've encountered on multiple
systems. After looking at the problem I'm not sure why it would work
at all, but obviously there are some make versions where this problem
does not exist. Anyway, I think this patch is the right way to do it
(it's similar to the way the msp430 Makefile solves things).

Before the patch I would get an error when trying to make the upload
target:
alphaone <at> adrastea ~/scm/contiki/examples/hello-world $ make TARGET=avr-raven hello-world.u
[...]
avr-gcc -DCONTIKI=1 -DCONTIKI_TARGET_AVR_RAVEN=1 -Wall -mmcu=atmega1284p -gdwarf-2
-fno-strict-aliasing -I. -I../../core -I../../cpu/avr  -I../../platform/avr-raven
-DF_CPU=8000000UL -DAUTO_CRC_PADDING=2 -Os -DRF230BB  -I. -I../../platform/avr-raven/.
-I../../platform/avr-raven/apps -I../../platform/avr-raven/net
-I../../platform/avr-raven/loader -I../../cpu/avr/. -I../../cpu/avr/dev
-I../../cpu/avr/radio/rf230bb -I../../core/dev -I../../core/lib -I../../core/net
-I../../core/net/mac -I../../core/net/rime -I../../core/net/rpl -I../../core/sys
-I../../core/cfs -I../../core/ctk -I../../core/lib/ctk -I../../core/loader -I../../core/.
-DCONTIKI_VERSION_STRING=\"Contiki-2.5-release-50-g5cde978\" -DAUTOSTART_ENABLE -c
hello-world.c -o hello-world.co
avr-gcc -mmcu=atmega1284p -Wl,-Map=contiki-avr-raven.map
-Wl,--section-start=.bootloader=0x1F800  hello-world.co contiki-avr-raven.a  -o hello-world.avr-raven
cp hello-world hello-world.out
cp: cannot stat `hello-world': No such file or directory
make: *** [hello-world.out] Error 1
rm hello-world.co

This is because the binary generated is named hello-world.$TARGET, but
the .hex target depends on hello-world (without .$TARGET).
The patch changes the dependencies for the .hex, .ihex and .eep target
to depend on the binary that is actually generated.

This results in a successfull build:
[...]
avr-gcc -DCONTIKI=1 -DCONTIKI_TARGET_AVR_RAVEN=1 -Wall -mmcu=atmega1284p -gdwarf-2
-fno-strict-aliasing -I. -I../../core -I../../cpu/avr  -I../../platform/avr-raven
-DF_CPU=8000000UL -DAUTO_CRC_PADDING=2 -Os -DRF230BB  -I. -I../../platform/avr-raven/.
-I../../platform/avr-raven/apps -I../../platform/avr-raven/net
-I../../platform/avr-raven/loader -I../../cpu/avr/. -I../../cpu/avr/dev
-I../../cpu/avr/radio/rf230bb -I../../core/dev -I../../core/lib -I../../core/net
-I../../core/net/mac -I../../core/net/rime -I../../core/net/rpl -I../../core/sys
-I../../core/cfs -I../../core/ctk -I../../core/lib/ctk -I../../core/loader -I../../core/.
-DCONTIKI_VERSION_STRING=\"Contiki-2.5-release-51-gefb01fc\" -DAUTOSTART_ENABLE -c
hello-world.c -o hello-world.co
avr-gcc -mmcu=atmega1284p -Wl,-Map=contiki-avr-raven.map
-Wl,--section-start=.bootloader=0x1F800  hello-world.co contiki-avr-raven.a  -o hello-world.avr-raven
avr-objcopy hello-world.avr-raven -j .text -j .data -O ihex hello-world.hex
avrdude  -P usb -c jtag2 -p atmega1284p -U flash:w:hello-world.hex
avrdude: usbdev_open(): did not find any USB device "usb"
make: *** [hello-world.u] Error 1
rm hello-world.hex hello-world.co

Please let me know if I have missed something, as I'm not too familiar
with the Contiki build system.

Regards,
Daniel Willmann (1):
  Fix upload dependencies in cpu/avr/Makefile.avr

 cpu/avr/Makefile.avr |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

--

-- 
1.7.6.1

------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
Daniel Willmann | 2 Nov 2011 01:22
Picon

[PATCH 1/1] Fix upload dependencies in cpu/avr/Makefile.avr

---
 cpu/avr/Makefile.avr |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cpu/avr/Makefile.avr b/cpu/avr/Makefile.avr
index 8a94b9e..52585a5 100644
--- a/cpu/avr/Makefile.avr
+++ b/cpu/avr/Makefile.avr
 <at>  <at>  -143,10 +143,10  <at>  <at>  ifndef NOAVRSIZE
 	avr-size -C --mcu=$(MCU) $ <at> 
 endif

-%.hex: %.out
+%.hex: %.$(TARGET)
 	$(OBJCOPY) $^ -j .text -j .data -O ihex $ <at> 

-%.ihex: %.out
+%.ihex: %.$(TARGET)
 	$(OBJCOPY) $^ -O ihex $ <at> 

 # Add a namelist to the kernel
 <at>  <at>  -164,7 +164,7  <at>  <at>  endif
 #%.hex: %.elf
 #	$(OBJCOPY) -R .eeprom -R .fuse -R .signature $^ -O ihex $ <at> 

-%.eep: %.out
+%.eep: %.$(TARGET)
 	-$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \
 	--change-section-lma .eeprom=0 -O ihex $^ $ <at> 

--

-- 
1.7.6.1

------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
Ilias Rinis | 2 Nov 2011 14:24
Picon

sky-ipv6-udp unexpected behaviour

Hello all,

I am currently working on Contiki and I use the sky-ipv6-udp test
simulation that is under contiki/tools/cooja/contiki-tests/ . The
observations I am presenting are obtained by running the test to an
unmodified, freshly downloaded version of contiki 2.5, with the
default configuration.

This test creates a UDP client and a UDP server; the client sends a
message and the server responds. The test counts five successful
message exchanges and terminates. I have noticed that actually the
client sends 6 messages, and the server only receives the last five (2
to 6). Debug prints reveal that since the first time the link layer
address of the server is unknown, ND address resolution takes place;
however, after the address is resolved the first message is never
sent.

Is this behaviour known or intended, maybe considered unharmful?

Thank you for reading my message!
Cheers,
Ilias

------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
Ilya Dmitrichenko | 2 Nov 2011 14:38
Picon
Gravatar

A simple HTTP proxy for connecting to a remote API server using Nginx

Hi,

I had been looking for a simple yet robust solution to avoid complex
IPv4/v6 tunneling.

A) my ISP doesn't provide IPv6 connectivity
B) my router doesn't either
C) I don't have a VPS that I could use for tunneling
D) I only want to alias a single remote IPv4 address and local IPv6 address
E) what if the API host is HTTPS-only?

The most straight-forward solution that I found was to use Nginx.

I am attaching my config file which accomplishes  for Pachube API
service (pachube.com).
I suppose the config is quite self-explanatory and hope someone might
find it useful!

Cheers,
--

-- 
Ilya
Attachment (pachube_proxy.conf): application/octet-stream, 1083 bytes
------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Picon
Gravatar

Menu based configuration system

If someone is looking to add a menu based configuration system to
Contiki it should be possible to use the one for the Linux kernel. The
kernel one is GPL licensed, but licenses work on a file basis. For
example the kernel mixes BSD and GPL licensed files so that the
graphics code can be shared with BSD. The menu system is in
scripts/kconfig. I believe it builds standalone without issue if you
have all of the dependencies installed (qt, glade, etc).  The system
just provides menus to get all of the config variables set via a UI
with a paragraph of help on each one. It does not provide a build
system. AFAIK no one has come up with a cross platform configuration
editor. in-line functions can also help make ifdef soup more
understandable.

--

-- 
Jon Smirl
jonsmirl@...

------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1

Gmane