From 562434e90e705f0b100f533ec597063ab83b4e95 Mon Sep 17 00:00:00 2001 From: Harald Pichler Date: Tue, 19 Feb 2013 10:58:41 +0100 Subject: [PATCH] change plattform to osd-merkur --- examples/osd/pir-sensor/README | 28 ++++++++-------------------- examples/osd/pir-sensor/flash.sh | 2 ++ examples/osd/pir-sensor/run.sh | 11 +++++------ 3 files changed, 15 insertions(+), 26 deletions(-) create mode 100755 examples/osd/pir-sensor/flash.sh diff --git a/examples/osd/pir-sensor/README b/examples/osd/pir-sensor/README index 06283dc5e..84d7dd2f4 100644 --- a/examples/osd/pir-sensor/README +++ b/examples/osd/pir-sensor/README @@ -1,7 +1,14 @@ A Quick Introduction to the Erbium (Er) REST Engine =================================================== +Compile the Example +------------------- +./run.sh -sudo avrdude -pm128rfa1 -c arduino -P/dev/ttyUSB0 -b57600 -e -U flash:w:er-example-server.osd-er-lp24.hex:a -U eeprom:w:er-example-server.osd-er-lp24.eep:a +OSD-Merkur Board +---------------------- +write the images to the OSD-Merkur Board: + +./flash.sh EXAMPLE FILES ------------- @@ -40,25 +47,6 @@ With client: 4) Wait until red LED toggles on mote 2 (server) 5) Choose "Click button on Sky 3" from the context menu of mote 3 (client) and watch serial output -TMOTES HOWTO ------------- -Server: -1) Connect two Tmote Skys (check with $ make TARGET=sky sky-motelist) -2) $ make TARGET=sky er-example-server.upload MOTE=2 -3) $ make TARGET=sky login MOTE=2 -4) Press reset button, get address, abort with Ctrl+C: - Line: "Tentative link-local IPv6 address fe80:0000:0000:0000:____:____:____:____" -5) $ cd ../ipv6/rpl-border-router/ -6) $ make TARGET=sky border-router.upload MOTE=1 -7) $ make connect-router - For a BR tty other than USB0: $ make connect-router-port PORT=X -8) Start Copper and discover resources at coap://[aaaa::____:____:____:____]:5683/ - -Add a client: -1) Change the hard-coded server address in er-example-client.c to aaaa::____:____:____:____ -2) Connect a third Tmote Sky -3) $ make TARGET=sky er-example-client.upload MOTE=3 - DETAILS ------- Erbium currently implements draft 08 (name "er-coap-07" stems from last technical draft changes). diff --git a/examples/osd/pir-sensor/flash.sh b/examples/osd/pir-sensor/flash.sh new file mode 100755 index 000000000..e92d472f6 --- /dev/null +++ b/examples/osd/pir-sensor/flash.sh @@ -0,0 +1,2 @@ +#!/bin/bash +sudo avrdude -pm128rfa1 -c arduino -P/dev/ttyUSB0 -b57600 -e -U flash:w:er-example-server.osd-merkur.hex:a -U eeprom:w:er-example-server.osd-merkur.eep:a diff --git a/examples/osd/pir-sensor/run.sh b/examples/osd/pir-sensor/run.sh index 02b03a5bb..4f21e9b63 100755 --- a/examples/osd/pir-sensor/run.sh +++ b/examples/osd/pir-sensor/run.sh @@ -1,7 +1,6 @@ #!/bin/bash -make clean TARGET=osd-er-lp24 -make TARGET=osd-er-lp24 -avr-size -C --mcu=MCU=atmega128rfa1 er-example-server.osd-er-lp24 -avr-objcopy -j .text -j .data -O ihex er-example-server.osd-er-lp24 er-example-server.osd-er-lp24.hex -avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 -O ihex er-example-server.osd-er-lp24 er-example-server.osd-er-lp24.eep - +make clean TARGET=osd-merkur +make TARGET=osd-merkur +avr-size -C --mcu=MCU=atmega128rfa1 er-example-server.osd-merkur +avr-objcopy -j .text -j .data -O ihex er-example-server.osd-merkur er-example-server.osd-merkur.hex +avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 -O ihex er-example-server.osd-merkur er-example-server.osd-merkur.eep