summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-07-31 18:20:06 +0200
committerGuido Günther <agx@sigxcpu.org>2015-07-31 18:20:06 +0200
commita4fe8e82626a29b9f78781642357286b730b92ba (patch)
tree3ac6082ef495f158d47b3994ed93fcb9a50719c2
parentd8e23a8bd66e237fd62deee6bc356ffb53a0d205 (diff)
Using merkur-board with tunslip6
-rw-r--r--hw/merkur-board.mdwn24
1 files changed, 23 insertions, 1 deletions
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 {} [ ]
+ </.well-known/core>;ct=40,</moisture/v>;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/