nes-proj/examples/platform-specific/cc26xx/cc26xx-ble-client-demo
spoerk fd0f0ca4b6 Merge branch 'develop' of github.com:contiki-ng/contiki-ng into feature/ipv6_over_ble 2017-12-15 11:41:27 +01:00
..
Makefile added support for IPv6 over BLE communication 2017-12-15 11:20:44 +01:00
README.md Merge branch 'develop' of github.com:contiki-ng/contiki-ng into feature/ipv6_over_ble 2017-12-15 11:41:27 +01:00
client.c added support for IPv6 over BLE communication 2017-12-15 11:20:44 +01:00
project-conf.h added support for IPv6 over BLE communication 2017-12-15 11:20:44 +01:00

README.md

CC26xx IPv6-over-BLE client demo

This example provides a simple implementation of a UDP client that connects to a UDP server via IPv6-over-BLE RFC 7668.

After booting, the node sends an ICMPv6 echo request (ping) to the configured server address and waits for an ICMPv6 echo response. When a response is received, the client start to send a UDP packet with content Hello server <counter>! to the server, where is a packet counter that is incremented every time a UDP packet is sent. If the server respondes with a UDP packet, the content of the packet is printed in the console.

Requirements

To run this example, you will need a RFC 7668-compliant border router. One possible border router is the Raspberry Pi 3 with the Raspbian OS (for detailed instructions see the Nordic Semiconductor guide).

Configuration

In addition to the configuration described in BLEach README the following configuration is needed.

To successfully communicate with a UDP server, the SERVER_IP define in client.c needs to be configured to the IPv6 address of the UDP server. For example:

#define SERVER_IP     					"fe80::1"

Running the example

Deploy your border router and create the IPv6-over-BLE connection to the node device. After node and router perform IPv6 neighbor discovery, the node will start to send UDP packets to the server.