1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
* Current Merkur Board based 6lopan devices
| Device | eui64 (should) | LL Address | Firmware | Type | State |
|----------------------------+-------------------------+--------------------------+------------------------------------------+------------------------+------------------------|
| OSDomotics gelb Antenne | 00:21:2e:ff:ff:00:34:7c | fe80::221:2eff:ff00:347c | f87c6fd158a964b969341eadfa974377d349b51d | arduino-plantobserving | ok |
| OSDomotics gelb/weiße Ant. | 00:21:2e:ff:ff:00:33:04 | | f87c6fd158a964b969341eadfa974377d349b51d | rpl-border-router | ok |
| OSDomotics Carsten | | fe80::221:2eff:ff00:33df | ? | ? | ? |
| Eigenbau 1 | 00:21:2e:ff:ff:00:66:59 | | ? | ? | ? |
| Eigenbau 2 | 00:21:2e:ff:ff:00:64:2f | | 7281120a685f12fb4b6c3c248e5f4c81c63397ab | arduino-plantobserving | ok |
| Eigenbau 3 | 00:21:2e:ff:ff:00:67:1e | | | | 2nd stage flash worked |
| Eigenbau 4 | 00:21:2e:ff:ff:00:65:35 | | 7281120a685f12fb4b6c3c248e5f4c81c63397ab | climate2 | ok |
| Eigenbau 5 | 00:21:2e:ff:ff:00:66:48 | | | | 2nd stage flash worked |
| Eigenbau 6 | 00:21:2e:ff:ff:00:64:c4 | | | | 2nd stage flash worked |
| Eigenbau 7 | 00:21:2e:ff:ff:00:66:76 | | | | 2nd stage flash worked |
| Eigenbau 8 | 00:21:2e:ff:ff:00:67:01 | | | | defekt |
* <2016-11-12 Sa> - Solder Merkur Boards
as of https://github.com/tijuca/lowpan-pcb-designs in Fr
* <2016-12-04 So> - Flashed [bonsai bootloader](https://github.com/osdomotics/osd-hardware/tree/master/bootloaders/atmega-bonsai)
Several boards won't accept a second stage bootloader afterwards, reason yet unknown
[[file:merkur-board-flash-1st-stage-1.jpg]]
[[file:merkur-board-flash-1st-stage-2.jpg]]
Steps:
- Connect AVR Dragon
- Supply 3.3V Power
- after turning on power flush the boot loader right away
#+BEGIN_SRC shell
make NUM=2
#+END_SRC
* <2016-12-11 Sun> - Eigenbau 2 pingable
- We're using the deRFmega128-22M10 with a Atmega128rfa1 so the default *TARGET=osd-merkur-128* is ok for us
- flash new Contiki (as of 0812b89) since f87c6f crashes early, likely due to us using the [bonsai bootloader](https://github.com/osdomotics/osd-hardware/tree/master/bootloaders/atmega-bonsai) now
- set the channel back to 26 as in f87c6f, defaults to 25 otherwise
- slip6 see https://honk.sigxcpu.org/piki/hw/merkur-board/
- ping
#+BEGIN_EXAMPLE
$ ping6 -c 1 -I tun0 2001:db8:c001:f00d:250:56ff:ff03:0405
PING 2001:db8:c001:f00d:250:56ff:ff03:0405(2001:db8:c001:f00d:250:56ff:ff03:405) from 2001:db8:c001:f00d::1 tun0: 56 data bytes
64 bytes from 2001:db8:c001:f00d:250:56ff:ff03:405: icmp_seq=1 ttl=63 time=526 ms
--- 2001:db8:c001:f00d:250:56ff:ff03:0405 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 526.776/526.776/526.776/0.000 ms
#+END_EXAMPLE
* <2017-01-15 Sun> - Eigenbau 2 with correct mac
- Added clean before each flash so we get a fresh firmware built with the right mac
- Reflashed first stage bootloader
#+BEGIN_EXAMPLE
# Eigenbau 2
$ ping6 -I tun0 2001:db8:c001:f00d:221:2eff:ff00:642f
PING 2001:db8:c001:f00d:221:2eff:ff00:642f(2001:db8:c001:f00d:221:2eff:ff00:642f) from 2001:db8:c001:f00d::1 tun0: 56 data bytes
64 bytes from 2001:db8:c001:f00d:221:2eff:ff00:642f: icmp_seq=1 ttl=63 time=131 ms
--- 2001:db8:c001:f00d:221:2eff:ff00:642f ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 131.181/131.181/131.181/0.000 ms
#+END_EXAMPLE
- Flashed climate2 on 4 and attached DHT21
#+BEGIN_EXAMPLE
$ ping6 -c1 -I tun0 2001:db8:c001:f00d:221:2eff:ff00:6535
PING 2001:db8:c001:f00d:221:2eff:ff00:6535(2001:db8:c001:f00d:221:2eff:ff00:6535) from 2001:db8:c001:f00d::1 tun0: 56 data bytes
64 bytes from 2001:db8:c001:f00d:221:2eff:ff00:6535: icmp_seq=1 ttl=63 time=146 ms
--- 2001:db8:c001:f00d:221:2eff:ff00:6535 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 146.315/146.315/146.315/0.000 ms
$ ./coap-client -m get coap://[2001:db8:c001:f00d:221:2eff:ff00:6535]/.well-known/core
v:1 t:CON c:GET i:fad7 {} [ ]
</.well-known/core>;ct=40,</s/hum>;title="Humidity DHTxx";rt="huv:1 t:CON c:GET i:fad8 {} [ ]
midity %",</s/temp>;title="Temperature DHTxx";rt="temperature c"v:1 t:CON c:GET i:fad9 {} [ ]
,</info>;title="Info";rt="text",</a/leds>;title="LEDs: ?color=r|v:1 t:CON c:GET i:fada {} [ ]
g|b, POST/PUT mode=on|off";rt="Control",</s/battery>;title="Battv:1 t:CON c:GET i:fadb {} [ ]
ery status";rt="Battery"
$./coap-client -m get coap://[2001:db8:c001:f00d:221:2eff:ff00:6535]/s/hum
v:1 t:CON c:GET i:5744 {} [ ]
24.60
./coap-client -m get coap://[2001:db8:c001:f00d:221:2eff:ff00:6535]/s/temp
v:1 t:CON c:GET i:bbd5 {} [ ]
22.90
#+END_EXAMPLE
* Further TODOs
- [X] flash bootloader again with correct MAC, so far we flashed the default in the bonsai code
- [X] add antenna
- [X] add temp sensor
- [X] flash temp firmware
|