The figure below shows an overview of the hardware involved in the development (and demo) setup.
- Power up the LAN router
- Connect Ethernet cable (LAN) to the Raspberry pi (i.e. Thread Border Router) and your development PC.
- Power up the Rasberry pi (before that, make sure that the NRF RCP board is securely seated in the USB adapter cable).
- Wait for few minutes for the engines to crank up. The Pi should be reachable on IPV4 Addr 192.168.1.115 (if not, use some IP Scanner like Advanced IP Scanner to sniff it out).
- Power up the two Thingys using the USB C ports. Green lighted LED means they connected to the BR.
- The Thread BR hosts a Web dashboard. Browse to http://192.168.1.115 and click on the link to view the Topology. You should see one Leader node and two Child nodes. Sometimes it takes few minutes for the dashboard to update.
- Open a SSH terminal to the pi. Username is pi and password is raspberry
- You can fire up the CoAP-based OrgServer.
cd orgserver
and then the good oldjava -jar orgserver.jar
. You will see traces showing the two devices querying for roles. The thingy which gets a role should blink blue.
Finally, powering down: IMPORTANT: shutdown the raspberry pi properly (i.e. do not just yank out the power supply to it). sudo shutdown -h now
is the nice way to do it.
The Thingy have a rechargeable battery inside which keeps then running even when the USB power is disconnected. If you want to switch off the Thingys, there is a switch which you need to slide to "o" position ("|" is on).
Remember, patience is the keyword from now on.
There is a whole lot of instructions for this. But here are the key steps:
-
Install VSCode
-
Install NRFConnect (Win/Linux. Mac, good luck). Then use it to install the SDK. This will take hell lot of time.
-
Clone the
thing-hardware/thingy53-bdi-coap-client
code. Load the project in to the NRFConnect environment in VSCode. -
Compile (Actions->Build). All the best.
-
Connect the NRF53 DK board to your PC (USB). Then plug the 10-pin SWD debug connector to the Thingy. Be gentle - you can easily ruin the pins.
-
The Thingy should appear under Connected Devices in the NRFConnect panel. Note: the thingy should be powered up using USB. Flash (Actions->Flash) or Debug.
Steps 1..6 are easier said than done. This is why embedded developers are a sad lot. But once you have it running, it is rock solid.
Here is how your desk should look like:
The debug connector: