From a4fe8e82626a29b9f78781642357286b730b92ba Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 31 Jul 2015 18:20:06 +0200 Subject: Using merkur-board with tunslip6 --- hw/merkur-board.mdwn | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/hw/merkur-board.mdwn b/hw/merkur-board.mdwn index d10b6d4..76b8696 100644 --- a/hw/merkur-board.mdwn +++ b/hw/merkur-board.mdwn @@ -19,6 +19,7 @@ Once flushed the board can be run on [battery power][3]. * [Details on the different pinouts][4] * [Details on how to flash the device][5] with avrdude * The plant moisture sensor connects to [A5][6] +* [Find A5][] on the Grove Board Compiling works like @@ -70,6 +71,25 @@ when using a Raspberry Pi as described in [[here|rpi6lowpan]], I can't ping the board on it's link local address yet. I can also verify that it detects the RIPL router but the device is still not reachable. +So let's for now use a second merkur board as [edge-router][]. + + $ sudo ./tunslip6 -s /dev/ttyUSB4 -B 38400 2001:DB8:c001:f00d::1/64 + $ ping6 -c 1 2001:db8:c001:f00d:221:2eff:ff00:347c + PING 2001:db8:c001:f00d:221:2eff:ff00:347c(2001:db8:c001:f00d:221:2eff:ff00:347c) from 2001:db8:c001:f00d::1 tun0: 56 data bytes + 64 bytes from 2001:db8:c001:f00d:221:2eff:ff00:347c: icmp_seq=1 ttl=63 time=201 ms + --- 2001:db8:c001:f00d:221:2eff:ff00:347c ping statistics --- + 1 packets transmitted, 1 received, 0% packet loss, time 0ms + rtt min/avg/max/mdev = 201.620/201.620/201.620/0.000 ms + $ ./coap-client -m get coap://[2001:db8:c001:f00d:221:2eff:ff00:347c]/.well-known/core + v:1 t:CON c:GET i:8ecd {} [ ] + ;ct=40,;title="Moisture voltage"v:1 t:CON c:GET i:8ece {} [ ] + ;rt=UCUM:"V";ct="0 5" + +We can now query the moisture sensor using [libcoap]: + + $ ./coap-client -m get coap://[2001:db8:c001:f00d:221:2eff:ff00:347c]/moisture/v + + [0]: http://osdwiki.open-entry.com/doku.php/de:projekte:merkur [1]: http://osdwiki.open-entry.com/doku.php/de:projekte:plant_observation_kit [2]: http://osdwiki.open-entry.com/doku.php/de:tutorials:first_steps_arduino_ide @@ -80,4 +100,6 @@ RIPL router but the device is still not reachable. [7]: http://www.meetup.com/IoT-Vienna/events/181968432/ [Prolific Pinout]: https://jethomson.files.wordpress.com/2010/02/ca-42_dku-5_pinout.jpg [8]: http://www.open-entry.com/coxcoon/de/Zubehoer/FTDI-Basic-Breakout-3-3V.html - +[edge-router]: http://osdwiki.open-entry.com/doku.php/de:tutorials:contiki:merkur_board_rpl_usb_router +[Find A5]: http://osdwiki.open-entry.com/doku.php/de:products:merkur_grove_board_4 +[libcoap]: http://sourceforge.net/projects/libcoap/ -- cgit v1.2.3