RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán...
Transcript of RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán...
![Page 1: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/1.jpg)
RF and network
basics
Antonio Liñán Colina
![Page 2: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/2.jpg)
• Architectures: 8-bit, 16-bit, 32-bit• Open Source (source code openly
available)• IPv4/IPv6/Rime networking• Devices with < 8KB RAM• Typical applications < 50KB Flash• Vendor and platform independent• C language• Developed and contributed by Universities,
Research centers and industry contributors• +10 years development
![Page 3: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/3.jpg)
Zolertia RE-Mote
![Page 4: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/4.jpg)
Zolertia RE-Mote (Zoul inside)
• ARM Cortex-M3, 32MHz, 32KB RAM, 512KB FLASH
• Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g
• Hardware encryption engine and acceleration
• USB programing ready• Real-Time Clock and Calendar• Micro SD slot and RGB colors• Shutdown mode down to 150nA• USB 2.0 port for applications• Built-in LiPo battery charger to work with
energy harvesting and solar panels• On-board RF switch to use both radios over
the same RP-SMA connector• Pads to use an external 2.4GHz over U.Fl
connector, o solder a chip antenna
![Page 5: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/5.jpg)
![Page 6: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/6.jpg)
![Page 7: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/7.jpg)
![Page 8: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/8.jpg)
02-ipv6
examples/zolertia/tutorial/02-ipv6
![Page 9: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/9.jpg)
CSMA/CA
ContikiMAC, CSL
IEEE 802.15.4
6LoWPAN
TCP, UDP
IPv6/IPv4, RPL
HTTP, CoAP, MQTT, WebSockets Application
Transport
Network/Routing
Adaptation
MAC (medium access control)
Radio duty cycling (RDC)
Radio (PHY)
examples/zolertia/tutorial/02-ipv6
![Page 10: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/10.jpg)
CSMA/CA
ContikiMAC, CSL
IEEE 802.15.4
6LoWPAN
TCP, UDP
IPv6/IPv4, RPL
HTTP, CoAP, MQTT, WebSockets Application
Transport
Network/Routing
Adaptation
MAC (medium access control)
Radio duty cycling (RDC)
Radio (PHY)
examples/zolertia/tutorial/02-ipv6
![Page 11: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/11.jpg)
examples/zolertia/tutorial/02-ipv6
![Page 12: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/12.jpg)
Low-power radios
• Lowest power consumption respect to WiFI and alike• Depending on the operating frequency it might have the
same or longer wireless range than WiFI• Slower data rate: 1.2kbps to 1Mbps, depending on the
transceiver• IEEE 802.15.4 standard defines operating modes according
to countries regulations
examples/zolertia/tutorial/02-ipv6
![Page 14: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/14.jpg)
http://www.slideshare.net/Techtsunami/cn-prt-iot-v1 examples/zolertia/tutorial/02-ipv6
![Page 15: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/15.jpg)
http://www.slideshare.net/usmanusb/elements-of-iot-connectivity-technologies examples/zolertia/tutorial/02-ipv6
![Page 16: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/16.jpg)
http://www.founten.com/
IEEE 802.15.4-2006/e, 2.4GHz channels (11-26)
examples/zolertia/tutorial/02-ipv6
![Page 17: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/17.jpg)
https://dl.cdn-anritsu.com
IEEE 802.15.4g MR-FSK
examples/zolertia/tutorial/02-ipv6
![Page 18: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/18.jpg)
examples/zolertia/tutorial/02-ipv6
![Page 19: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/19.jpg)
examples/zolertia/tutorial/02-ipv6
![Page 20: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/20.jpg)
examples/zolertia/tutorial/02-ipv6
As the transmission power increases the wireless range should increase as well.
![Page 21: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/21.jpg)
examples/zolertia/tutorial/02-ipv6https://github.com/alignan/IPv6-WSN-book
![Page 22: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/22.jpg)
examples/zolertia/tutorial/02-ipv6
How to improve the wireless range:
• Increase the transmission power• Use antennas with higher gain• Increase antenna’s height• Use directive antennas• Try to orient the antennas
![Page 23: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/23.jpg)
Omnidirectiona Antena 2.4GHz 5dBi “whip”
Yagi Directional antenna
examples/zolertia/tutorial/02-ipv6
![Page 25: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/25.jpg)
CSMA/CA
ContikiMAC, CSL
IEEE 802.15.4
6LoWPAN
TCP, UDP
IPv6/IPv4, RPL
HTTP, CoAP, MQTT, WebSockets Application
Transport
Network/Routing
Adaptation
MAC (medium access control)
Radio duty cycling (RDC)
Radio (PHY)
examples/zolertia/tutorial/02-ipv6
![Page 26: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/26.jpg)
examples/zolertia/tutorial/02-ipv6
![Page 27: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/27.jpg)
examples/rssi-scanner/rssi-scanner-cc2420.c
![Page 28: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/28.jpg)
examples/zolertia/tutorial/02-ipv6
![Page 29: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/29.jpg)
examples/zolertia/tutorial/02-ipv6
![Page 30: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/30.jpg)
http://www.digikey.com/en/resources/conversion-calculators/conversion-calculator-battery-life
![Page 31: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/31.jpg)
CSMA/CA
ContikiMAC, CSL
IEEE 802.15.4
6LoWPAN
TCP, UDP
IPv6/IPv4, RPL
HTTP, CoAP, MQTT, WebSockets Application
Transport
Network/Routing
Adaptation
MAC (medium access control)
Radio duty cycling (RDC)
Radio (PHY)
examples/zolertia/tutorial/02-ipv6
![Page 32: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/32.jpg)
examples/zolertia/tutorial/02-ipv6
![Page 33: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/33.jpg)
examples/zolertia/tutorial/02-ipv6
![Page 34: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/34.jpg)
examples/zolertia/tutorial/02-ipv6
![Page 35: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/35.jpg)
https://tools.ietf.org/html/draft-ietf-6lowpan-hc-06
core/net/ipv6/sicslowpan.c
platforms/zoul/contiki-conf.h
The default prefix is FD00::
![Page 36: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/36.jpg)
CSMA/CA
ContikiMAC, CSL
IEEE 802.15.4
6LoWPAN
TCP, UDP
IPv6/IPv4, RPL
HTTP, CoAP, MQTT, WebSockets Application
Transport
Network/Routing
Adaptation
MAC (medium access control)
Radio duty cycling (RDC)
Radio (PHY)
examples/zolertia/tutorial/02-ipv6
![Page 37: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/37.jpg)
RPL: IPv6 Routing Protocol for Low power and LossyNetworks
Directed Acyclic Graph (DAG)Destination Oriented DAG (DODAG)
https://tools.ietf.org/id/draft-ietf-roll-rpl-19.txt
ICMPv6 control messages
• DAG Information Object(DIO): sends DODAG information downwards
• Destination AdvertisementObject (DAO): sendsdestination informationupwards
• DAG InformationSolicitation (DIS): requests a DIO
examples/zolertia/tutorial/02-ipv6
![Page 38: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/38.jpg)
https://tools.ietf.org/id/draft-ietf-roll-rpl-19.txt
1. Nodes periodically send link-local multicast DIO messages
2. Nodes listen for DIO and use their information to join a new DODAG, or to maintain an existing DODAG
3. Nodes may use a DIS message to solicit a DIO
4. Based on information in the DIO the node chooses parents that minimize path cost to the DODAG root
examples/zolertia/tutorial/02-ipv6
![Page 39: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/39.jpg)
examples/zolertia/tutorial/02-ipv6
![Page 40: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/40.jpg)
platforms/zoul/contiki-conf.h
![Page 41: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/41.jpg)
CSMA/CA
ContikiMAC, CSL
IEEE 802.15.4
6LoWPAN
TCP, UDP
IPv6/IPv4, RPL
HTTP, CoAP, MQTT, WebSockets Application
Transport
Network/Routing
Adaptation
MAC (medium access control)
Radio duty cycling (RDC)
Radio (PHY)
examples/zolertia/tutorial/02-ipv6
![Page 42: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/42.jpg)
UDP: User Datagram Protocol
• IETF RFC 768• Minimal, unreliable, best-effort service• Connectionless• Best tailored for time-sensitive applications, as dropping packets
is preferable to waiting for delayed packets• Less energy-expensive (than TCP), lesser messages are required
to be exchanged• Used in DNS, DHCP, SNMP, RIP, OpenVPN, etc
examples/zolertia/tutorial/02-ipv6
![Page 43: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/43.jpg)
Connect two RE-Motes and program the example:
make 01-udp-local-multicast.upload && make login
examples/zolertia/tutorial/02-ipv6/01-udp-local-multicast
![Page 44: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/44.jpg)
examples/zolertia/tutorial/02-ipv6/01-udp-local-multicast
![Page 45: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/45.jpg)
platforms/zoul/contiki-conf.hexamples/zolertia/tutorial/02-ipv6/01-udp-local-multicast
RE-Motes have 2 factory MAC addresses stored in its flash memory, it can be overriden
![Page 46: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/46.jpg)
examples/zolertia/tutorial/02-ipv6/project-conf.hexamples/zolertia/tutorial/02-ipv6/01-udp-local-multicast
Sicslowpan (6LoWPAN implementation), CSMA and ContikiMAC (RDC) are enabled as default.
NullRDC leaves the radio on, increasing the throughput at the cost of energy consumption. Recommended for testing only, or if the devices are not running on batteries
![Page 47: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/47.jpg)
examples/zolertia/tutorial/02-ipv6/example.hexamples/zolertia/tutorial/02-ipv6/01-udp-local-multicast
![Page 48: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/48.jpg)
examples/zolertia/tutorial/02-ipv6/example.hexamples/zolertia/tutorial/02-ipv6/01-udp-local-multicast
PANID0xABCD
PANID0xBEEF
PANID0x1234
PANID(…)
PAN identifiers (PANID) allows the radio to filter out messages addressed to different PANs, allowing networks to share the same channel
CH15
![Page 49: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/49.jpg)
examples/zolertia/tutorial/02-ipv6/01-udp-local-multicast
![Page 50: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/50.jpg)
examples/zolertia/tutorial/02-ipv6/01-udp-local-multicast
![Page 51: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/51.jpg)
examples/zolertia/tutorial/02-ipv6/01-udp-local-multicast
![Page 52: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/52.jpg)
examples/zolertia/tutorial/02-ipv6/01-udp-local-multicast
The my_msg_t structure content
Structures to be used in the example: UDP and custom one for payload data
An ID type if requiredNumber of messages sentThe core temperature will be stored hereThe ADC1 will be stored hereThe ADC2 will be stored hereThe ADC3 will be stored hereThe voltage level of the RE-Mote
![Page 53: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/53.jpg)
examples/zolertia/tutorial/02-ipv6/01-udp-local-multicast
![Page 54: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/54.jpg)
examples/zolertia/tutorial/02-ipv6/example.hexamples/zolertia/tutorial/02-ipv6/01-udp-local-multicast
![Page 55: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/55.jpg)
examples/zolertia/tutorial/02-ipv6/01-udp-local-multicast
![Page 56: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/56.jpg)
examples/zolertia/tutorial/02-ipv6/01-udp-local-multicast
![Page 57: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/57.jpg)
examples/zolertia/tutorial/02-ipv6/01-udp-local-multicast
![Page 58: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/58.jpg)
examples/zolertia/tutorial/02-ipv6/01-udp-local-multicast
![Page 59: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/59.jpg)
examples/zolertia/tutorial/02-ipv6/01-udp-local-multicast
![Page 60: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/60.jpg)
examples/zolertia/tutorial/02-ipv6/01-udp-local-multicast
Experiment with the Radio settings and wireless link:
• How does the RSSI/LQI change if moving the devices apart,or putting an obstable in between?
• Rotate the RE-Mote’s so the antenna position is different, inwhich position yields better results in terms of RSSI?
• Try to decrease the transmission power to the minimum, andmove the devices until they no longer hear each other.
• Increase the transmission power to the maximum and movethe devices apart, what is the maximum distance? Whatwould happen if you increase the height of one of thedevices by 1 meter?
• Write down the addresses of your devices and yourneighbors, try to identify the other groups devices
![Page 61: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/61.jpg)
examples/zolertia/tutorial/02-ipv6/03-sniffer
![Page 62: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/62.jpg)
https://github.com/g-oikonomou/sensniff examples/zolertia/tutorial/02-ipv6/03-sniffer
![Page 63: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/63.jpg)
Check the channel and PAN ID matches your application
examples/zolertia/tutorial/02-ipv6/03-sniffer/project-conf.h
![Page 64: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/64.jpg)
Program a RE-Mote as sniffer (change the USB port accordingly)
make sniffer.upload PORT=/dev/ttyUSB0
Execute the Sensniff application
python sensniff.py --non-interactive -d /dev/ttyUSB0 -b 460800 –p test.pcap
In another terminal run:
sudo wireshark -i /tmp/sensniff
examples/zolertia/tutorial/02-ipv6/03-sniffer
![Page 65: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/65.jpg)
Configure the context, default in Contiki are “aaaa::” and “fd00::”
Configure the frame format as shown:
![Page 66: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/66.jpg)
![Page 67: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/67.jpg)
examples/zolertia/tutorial/02-ipv6/03-sniffer
Experiment with the radio sniffer:
• Try to filter the sniffed packets and only visualize your own
• Try to identify the RPL control messages from the wiresharkcapture, what types of messages can you spot?
• Expand the protocol’s tabs and check the headers and itsfields, search for the PANID and other fields like the RSSI andLQI metadata.
![Page 68: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/68.jpg)
Conclusions
You should be able to:
• Understand how low power radio devices work and how to use link quality estimators
• Understand concepts like RDC, MAC and RPL networking basics• Understand the basics about 6LoWPAN• Change parameters like the transmission power, channel and
PAN ID• Create link-local networks and send sensor data wirelessly over
UDP• Use a Wireless packet sniffer to debug your application
![Page 69: RF and network basics - CEA- · PDF fileRF and network basics Antonio Liñán Colina ... • Double Radio: ISM 2.4GHz & 863-925MHz, IEEE 802.15.4-2006/e/g ... CH15. examples/zolertia](https://reader031.fdocuments.us/reader031/viewer/2022022500/5aa4058b7f8b9a2f048baaac/html5/thumbnails/69.jpg)
Antonio Liñán Colina
Twitter: @4Li6NaN
LinkedIn: Antonio Liñan Colina
github.com/alignan
hackster.io/alinan
[email protected]@gmail.com