REST with RPL router -2147483648 generated 1000000 se.sics.cooja.radiomediums.UDGM 50.0 50.0 1.0 1.0 40000 se.sics.cooja.mspmote.SkyMoteType rplroot Sky RPL Root [CONTIKI_DIR]/examples/ipv6/rpl-border-router/border-router.c make border-router.sky TARGET=sky DEFINES=NETSTACK_MAC=nullmac_driver,NETSTACK_RDC=nullrdc_driver,NULLRDC_CONF_802154_AUTOACK=0,CC2420_CONF_AUTOACK=0,ENERGEST_CONF_ON=0,PROCESS_CONF_NO_PROCESS_NAMES=1 [CONTIKI_DIR]/examples/ipv6/rpl-border-router/border-router.sky se.sics.cooja.interfaces.Position se.sics.cooja.interfaces.RimeAddress se.sics.cooja.interfaces.IPAddress se.sics.cooja.interfaces.Mote2MoteRelations se.sics.cooja.interfaces.MoteAttributes se.sics.cooja.mspmote.interfaces.MspClock se.sics.cooja.mspmote.interfaces.MspMoteID se.sics.cooja.mspmote.interfaces.SkyButton se.sics.cooja.mspmote.interfaces.SkyFlash se.sics.cooja.mspmote.interfaces.SkyCoffeeFilesystem se.sics.cooja.mspmote.interfaces.SkyByteRadio se.sics.cooja.mspmote.interfaces.MspSerial se.sics.cooja.mspmote.interfaces.SkyLED se.sics.cooja.mspmote.interfaces.MspDebugOutput se.sics.cooja.mspmote.interfaces.SkyTemperature se.sics.cooja.mspmote.SkyMoteType skyweb Rest [CONTIKI_DIR]/examples/er-rest-example/rest-server-example.c make rest-server-example.sky TARGET=sky DEFINES=NETSTACK_MAC=nullmac_driver,NETSTACK_RDC=nullrdc_driver,NULLRDC_CONF_802154_AUTOACK=0,CC2420_CONF_AUTOACK=0,ENERGEST_CONF_ON=0,PROCESS_CONF_NO_PROCESS_NAMES=1 [CONTIKI_DIR]/examples/er-rest-example/rest-server-example.sky se.sics.cooja.interfaces.Position se.sics.cooja.interfaces.RimeAddress se.sics.cooja.interfaces.IPAddress se.sics.cooja.interfaces.Mote2MoteRelations se.sics.cooja.interfaces.MoteAttributes se.sics.cooja.mspmote.interfaces.MspClock se.sics.cooja.mspmote.interfaces.MspMoteID se.sics.cooja.mspmote.interfaces.SkyButton se.sics.cooja.mspmote.interfaces.SkyFlash se.sics.cooja.mspmote.interfaces.SkyCoffeeFilesystem se.sics.cooja.mspmote.interfaces.SkyByteRadio se.sics.cooja.mspmote.interfaces.MspSerial se.sics.cooja.mspmote.interfaces.SkyLED se.sics.cooja.mspmote.interfaces.MspDebugOutput se.sics.cooja.mspmote.interfaces.SkyTemperature se.sics.cooja.interfaces.Position 33.260163187353555 30.643217359962595 0.0 se.sics.cooja.mspmote.interfaces.MspMoteID 1 rplroot se.sics.cooja.interfaces.Position 35.100895239785295 39.70574552287428 0.0 se.sics.cooja.mspmote.interfaces.MspMoteID 2 skyweb se.sics.cooja.plugins.SimControl 259 6 179 0 0 se.sics.cooja.plugins.Visualizer se.sics.cooja.plugins.skins.IDVisualizerSkin se.sics.cooja.plugins.skins.UDGMVisualizerSkin se.sics.cooja.plugins.skins.MoteTypeVisualizerSkin se.sics.cooja.plugins.skins.AttributeVisualizerSkin se.sics.cooja.plugins.skins.AddressVisualizerSkin se.sics.cooja.plugins.skins.GridVisualizerSkin 3.3323852179491644 0.0 0.0 3.3323852179491644 -30.392247168885415 -60.79227000363299 176 5 173 259 3 se.sics.cooja.plugins.LogListener 582 2 393 6 259 se.sics.cooja.plugins.RadioLogger 114 574 -1 471 412 190 true SerialSocketServer 0 428 4 74 7 181 se.sics.cooja.plugins.TimeLine 0 1 23 24060.2737326431 579 3 152 13 655 se.sics.cooja.plugins.Notes Nightly test based on simulation in examples/er-rest-example/rest-server-example.csc: * One REST server, and one RPL border router w. corresponding tun0 netif * ContikiMAC is disabled to make firmwares fit on Tmote Sky nodes. * Additional compile-time DEFINES used in this simulation: NETSTACK_MAC=nullmac_driver NETSTACK_RDC=nullrdc_driver NULLRDC_CONF_802154_AUTOACK=0 CC2420_CONF_AUTOACK=0 ENERGEST_CONF_ON=0 PROCESS_CONF_NO_PROCESS_NAMES=1 The test script communicates with the REST server via the RPL border router using external commands. (* $ make connect-router-cooja) * $ ping6 -c 10 -I tun0 aaaa::212:7401:1:101 * $ ping6 -c 10 -I tun0 aaaa::212:7402:2:202 * $ wget -t 1 -T 10 -O - http://[aaaa::212:7402:2:202] The final test uses CoAP to talk to the server, and requires an external Java library: See: https://github.com/dapaulid/JCoAP To download jar-file: $ wget --no-check-certificate http://github.com/dapaulid/JCoAP/raw/master/run/SampleClient.jar true 751 1 252 439 3 se.sics.cooja.plugins.ScriptRunner [CONFIG_DIR]/rest_rpl_coap.js true 600 0 584 592 260 PowerTracker 400 -1 155 132 152 true