Florian Fida edited this page Aug 4, 2017 · 13 revisions

Clone repository

git clone --recursive https://github.com/osdomotics/osd-contiki

if you have problems with the osd version, try some branches from piccaso/osd-contiki.
they are probably not as up to date as the osdomotics fork but have been tested.

the contiki os history is quite large, if you are not planing any development it should be sufficient to shallow-clone a single branch:

git clone --recursive -b rgb-blink-rebase-2017-02-11 --single-branch --depth 1 git@github.com:piccaso/osd-contiki.git

Start the container

connect your device and find out the name (dmesg/etc...) replace /dev/ttyUSB* with your device.

cd osd-contiki
docker run --rm -it --device /dev/ttyUSB0 -v $PWD:/src 0xff/opentrigger-osd-contiki-buildenv

if your version of docker does not support device you might get away with --privileged.

Inside the container

Button firmware

cd /src/examples/osd/opentrigger-board
make TARGET=osd-merkur-256 clean
make TARGET=osd-merkur-256 AVRDUDE_PORT=/dev/ttyUSB0 NUM_LEDS=1 flash

in some branches an older version can be found in /src/examples/osd/triggerboard

View Debug Messages

screen /dev/ttyUSB0 38400

this will reset contiki but if you kill screen (^a K) it will continue to run

Router firmware

cd /src/examples/osd/rpl-border-router
make TARGET=osd-merkur-256 clean
make TARGET=osd-merkur-256 AVRDUDE_PORT=/dev/ttyUSB0 flash

Notes

Settings

Channel, PanID, etc... can be found in /platform/osd-merkur-256/params.h, platform/osd-merkur-256/contiki-conf.h or project-conf.h.

Error while Reading/Writing eeprom

ATOW the eeprom is not in use, so you can ignore these errors.

Raspberry Pi

Building and flashing has been tested from a Raspberry Pi 3 with success.
But there where some Problems with USB-Timing.
Make sure that your Pi does not do anything else when you flash.

Links

OpenTrigger.com
OpenTrigger Gitbook
Official SDK Setup Documentation (German)
Official Wiki (German)
piccaso/osd-contiki

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.