osd-contiki/platform/osd-merkur-256
2017-10-02 16:15:16 +02:00
..
dev fixed leds 2017-07-30 13:04:56 +02:00
bootloader_if.h Fix OTA update 2017-08-27 15:00:04 +02:00
contiki-conf.h enable rpl etx messurement 2017-10-02 16:15:16 +02:00
contiki-main.c add shell macconfig 2017-09-13 13:38:46 +02:00
custom-avr6.xm Add linker script 2017-08-22 10:13:36 +02:00
Makefile.osd-merkur-256 Fix OTA update 2017-08-27 15:00:04 +02:00
node-id.c Multi-platform support, osd-merkur-{128,256} 2016-04-22 17:59:40 +02:00
node-id.h Multi-platform support, osd-merkur-{128,256} 2016-04-22 17:59:40 +02:00
params.c disable debug prints, remove rfchannel coap entry 2017-09-20 08:45:01 +02:00
params.h add shell macconfig 2017-09-13 13:38:46 +02:00
README.md Update README.md 2017-09-08 13:21:51 +02:00
slip_uart0.c Multi-platform support, osd-merkur-{128,256} 2016-04-22 17:59:40 +02:00

Getting Started with OSD-Contiki using osd-merkur-256 merkurboard

This guide's aim is to help you start using Contiki for merkurboards The platform supports different AtMega-RF boards:

  • Based on MCU AtMega256RFR2
  • Based on MCU AtMega128RFA1

Boards all looks the same. AtMega256RFR2 boards are labeled with "deRFmega256". The platform and CPU code, are common for both boards, can be found under $(CONTIKI)/platfrom/osd-merkur-256, $(CONTIKI)/platfrom/osd-merkur-128 The port was developed and tested with Merkurboard. This guide assumes that you have basic understanding of how to use the command line and perform basic admin tasks on UNIX family OSs. You should also have understanding about the Contiki OS design as well have C programming skills.

OSD-Contiki Features

  • Contiki Features
  • Arduino compatible
  • use Arduino Libs in your Project (see ../examples/osd/arduino-* )
  • store rf parameter at eeprom
  • OTA-Features (Update over the Air)

Board Features

  • wire Antenna.
  • Robust radio performance. Up to 300 meter line-of-sight.
  • Unique EUI64 address via Bootloader
  • 32kHz RTC xtal
  • Standard. 6-pin TTL-USB header for FTDI cable for UART.
  • PCB formfactor for cheap project breadboard
  • Power/current:
    • RX ~10mA (Full RPC AtMegaXXRFR2).
    • Sleep ~45uA @ 16MHz XTAL
    • Sleep ~15uA @ 8MHz using internal oscillator
  • Preprogammed arduino bootloader with update over the Air support.
  • CE certified by test institute.

UART

The board has one UART via the 6-pin TTL-USB adapter, The recommended baudrate is 38400 bps. This speed gives the lowest error with respect of the used clock frequency used internally. A possible hi-speed is 250000 bps wich gives 0% Error with 16MHz clock.

Port Features

The platform has the following key features:

  • Standard, E64 address from built-in chip.
  • First hooks for RPC (Reduced Power Consumption) for AtMegaXXXRFR2.

Toolchain needs

The Atmel toolcahin is available in most operating system. Note. We use Debian 9 as reference Linux

For Linux

sudo apt-get install avr-libc binutils-avr gcc-avr gdb-avr simulavr avrdude make git

sudo apt-get install python-pip

pip install intelhex

sudo apt-get install picocom libcoap-1-0-bin

For Windows

Goes here // todo

get the source code:

git clone https://github.com/osdomotics/osd-contiki.git cd osd-contiki git submodule update --init --recursive

Contiki build TARGET

For AtMega128RFR2 boards:

make TARGET=osd-merkur-256

For AtMega128RFA1 boards:

make TARGET=osd-merkur-128

Flashing

Programming using avrdude using serial bootloader. (TTL-USB cable)

Flashing commnad line example 256k MCU:

make TARGET=osd-merkur-256 flash

Flashing commnad line example 128k MCU:

make TARGET=osd-merkur-128 flash

Tested applications and examples

see osd-contiki/example/osd/..

Platform tutorial applications

todo ...

Regressions tests

Travis compile regression test for the platform: regression-tests/20-compile-osd-ports.

This port adds newer version of avr-gcc compiler (4.9.2), to support testing of newer Atmel MCU as Atmega256RFR2.

Board approvals

Summary:

  • R&TTE 73/23/EEC, 89/336/EEC and 99/5/EC
  • Safety: EN 60950-1:2006 + A12: 2011
  • RF: ETSI EN 300 328 V1.7.1 (2006-10)
  • EMC: ETSI EN 301 489-1 V1.9.2 (2011-09), ETSI EN 301 489-17 V2.2.1 (2012-09)
  • EMF: EN 62479:2010
  • Human exposure to electromagnetic fields: EN 62479:2010

Commercial availability

Through vendor and though resellers. Note board is will only available were CE approval is covered. This may be further restricted by WEEE. Contact vendor. For research legislation is more relaxed in most countries.

References

AtMega64/128/256/RFR2 chip documentation available via Atmel. Schematics and boards description. Available via Radio-Senors Smart Reduced Power Consumption Techniques. AT02594 available via Atmel.

ToDo

API for radio power saving settings introduced Atmels app note AT02594. Also function for the desensitizing RPC resister.

Vendor info

http://wiki.osdomotics.com http://iot-shop.at/

Maintainer

Harald Pichler harald@the-develop.net