updated the documentation.
This commit is contained in:
parent
188ce975ca
commit
ca617f5559
2 changed files with 9 additions and 38 deletions
|
@ -1,32 +1 @@
|
||||||
This example features a simple application listening for udp packets on port
|
See examples/udp-sender-ipv6/README.
|
||||||
0xF0B0 (src F0B1). It must be used in conjonction with a node running
|
|
||||||
udp-sender-ipv6 example.
|
|
||||||
|
|
||||||
We use this example to test UDP, and most particularly UDP header compression
|
|
||||||
with IPv6 and 6lowpan support. When IPv6 is used over an 802.15.4 link,
|
|
||||||
6lowpan acts as teh adaptation layer between IPv6 and MAC. In particular, it
|
|
||||||
can compress packet headers. IP header is compressed, as well as UDP header.
|
|
||||||
|
|
||||||
With both HC1 and HC01 header compression schemes, UDP 16-bit ports are
|
|
||||||
compressed to 4 bits if they are between F0B0 and F0BF.
|
|
||||||
|
|
||||||
sender behavior:
|
|
||||||
The sender is implemented in apps/udp/udp-sender.c and acts the following way:
|
|
||||||
it waits 15 seconds (to be sure the node configures a global address, in case
|
|
||||||
a router on the link sends router advertisements usable for address
|
|
||||||
autoconfiguration) , then sends 5 UDP packets to the receiver address
|
|
||||||
entered staticvally in apps/udp/udp-sender.c.
|
|
||||||
|
|
||||||
receiver behavior:
|
|
||||||
When receiving a packet, the receiver answers with a simmilar packet.
|
|
||||||
|
|
||||||
To run this example, contiki-conf.h must have at least the following flags
|
|
||||||
values:
|
|
||||||
#define UIP_CONF_UDP 1
|
|
||||||
#define UIP_CONF_IPV6 1
|
|
||||||
|
|
||||||
You must configure addresses in apps/udp/udp-sender.c and apps/udp/udp-receiver.c
|
|
||||||
which match your platforms addresses.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,18 +4,19 @@ running the udp-receiver-ipv6 example.
|
||||||
|
|
||||||
We use this example to test UDP, and most particularly UDP header compression
|
We use this example to test UDP, and most particularly UDP header compression
|
||||||
with IPv6 and 6lowpan support. When IPv6 is used over an 802.15.4 link,
|
with IPv6 and 6lowpan support. When IPv6 is used over an 802.15.4 link,
|
||||||
6lowpan acts as teh adaptation layer between IPv6 and MAC. In particular, it
|
6lowpan acts as an adaptation layer between IPv6 and MAC. In particular,
|
||||||
can compress packet headers. IP header is compressed, as well as UDP header.
|
it can compress IP headers and UDP headers.
|
||||||
|
|
||||||
With both HC1 and HC01 header compression schemes, UDP 16-bit ports are
|
With both HC1 and HC01 header compression schemes, UDP 16-bit ports are
|
||||||
compressed to 4 bits if they are between F0B0 and F0BF.
|
compressed to 4 bits if they are between F0B0 and F0BF.
|
||||||
|
|
||||||
sender behavior:
|
sender behavior:
|
||||||
The sender is implemented in apps/udp/udp-sender.c and acts the following way:
|
The sender is implemented in examples/udp-sender-ipv6/example-udp-sender.c
|
||||||
|
and acts in the following way:
|
||||||
it waits 15 seconds (to be sure the node configures a global address, in case
|
it waits 15 seconds (to be sure the node configures a global address, in case
|
||||||
a router on the link sends router advertisements usable for address
|
a router on the link sends router advertisements usable for address
|
||||||
autoconfiguration) , then sends 5 UDP packets to the receiver address
|
autoconfiguration) , then sends 5 UDP packets to the receiver address
|
||||||
entered staticvally in apps/udp/udp-sender.c.
|
entered hard-wired in the source code.
|
||||||
|
|
||||||
receiver behavior:
|
receiver behavior:
|
||||||
When receiving a packet, the receiver answers with a simmilar packet.
|
When receiving a packet, the receiver answers with a simmilar packet.
|
||||||
|
@ -25,5 +26,6 @@ values:
|
||||||
#define UIP_CONF_UDP 1
|
#define UIP_CONF_UDP 1
|
||||||
#define UIP_CONF_IPV6 1
|
#define UIP_CONF_IPV6 1
|
||||||
|
|
||||||
You must configure addresses in apps/udp/udp-sender.c and apps/udp/udp-receiver.c
|
You must configure addresses example-udp-sender.c and
|
||||||
which match your platforms addresses.
|
examples/udp-receiver-ipv6/example-udp-receiver.c which match your
|
||||||
|
platforms addresses.
|
||||||
|
|
Loading…
Reference in a new issue