This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Coap Put request via border router using Thread

Hi all,

I want to make a windows application that can switch the light of the CoAP server example. The CoAP windows code is not the problem.

Question is, how this can be done, how can I reach the CoAP server from my IPv4 network. What do I have to do to test if the connection can exist. 

I installed the Copper plugin in chrome and then I don't know where to start.

Questions:
1. Is the default config of the border router ok to use in a local network (or does the prefix have to be 2001: or something else matching my network)
2. What is the best way to test something like: 'coap://[IPV6 ADDRESS]/light/1' (do I have to make adjustments to my PC or router?)
3. Which ipv6 address must I use. I get 4 when I type 'ipaddr' in the cli of the CoAP server?
fd11:22:0:0:27b5:43f1:f4ca:xxxx
fdde:ad00:beef:0:0:ff:fe00:xxxx
fe80:0:0:0:44a8:5f41:98f4:xxxx
fdde:ad00:beef:0:b0dc:d9b3:ab62:xxxx

I've got the following setup:

  - nRF5 SDK for Thread v0.11.0

  - Thread Border Router ... RaspPi_OT_Border_Router_Demo_v1.0.0-1.alpha.zip (and later RaspPi_OT_Border_Router_Demo_v2.0.0-1.alpha.img)

  - Thread NCP Example (dongle)

  - Thread CoAP server Example (Thread, 2.0.0)

  - Raspberry Pi connect through an Ethernet cable to my switch that provides IPv4 connectivity with the DHCP service.

  - Ping 64:ff9b::808:808 does work from the CLI of the CoAP server..

  - Pinging my IPv4 of my laptop also works from the cli command line (when I use the 2001: prefix)

  - Pinging the coap server from the raspberry pi also works.

Any advice is welcome...

Parents Reply Children
No Data
Related