diff --git a/tools/cooja/contiki_tests/rest_rpl_coap.csc b/tools/cooja/contiki_tests/rest_rpl_coap.csc index 434809f6a..a88ac9c0e 100644 --- a/tools/cooja/contiki_tests/rest_rpl_coap.csc +++ b/tools/cooja/contiki_tests/rest_rpl_coap.csc @@ -41,10 +41,10 @@ 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 + Rest server + [CONTIKI_DIR]/examples/er-rest-example/er-example-server.c + make er-example-server.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/er-example-server.sky se.sics.cooja.interfaces.Position se.sics.cooja.interfaces.RimeAddress se.sics.cooja.interfaces.IPAddress @@ -121,11 +121,11 @@ - 582 - 2 - 393 - 6 - 259 + 576 + 0 + 492 + 12 + 260 se.sics.cooja.plugins.RadioLogger @@ -160,15 +160,15 @@ 24060.2737326431 579 - 3 + 2 152 - 13 - 655 + 6 + 758 se.sics.cooja.plugins.Notes - Nightly test based on simulation in examples/er-rest-example/rest-server-example.csc: + Nightly test exercising Contiki's Erbium CoAP implementation: * 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: @@ -185,15 +185,15 @@ The test script communicates with the REST server via the RPL border router usin * $ 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 +The final test uses the CoAP Java implementation by Matthias Kovatsch, downloaded from: +https://github.com/mkovatsc/Californium/blob/master/run/ExampleClient.jar +* $ java -jar ExampleClient.jar DISCOVER coap://[aaaa::212:7402:2:202] +* $ java -jar ExampleClient.jar GET coap://[aaaa::212:7402:2:202]/hello + true 751 - 1 - 252 + 3 + 369 439 3 @@ -203,11 +203,11 @@ To download jar-file: $ wget --no-check-certificate http://github.com/dapaulid/J [CONFIG_DIR]/rest_rpl_coap.js true - 600 - 0 - 584 - 592 - 260 + 596 + 1 + 725 + 591 + 225 PowerTracker diff --git a/tools/cooja/contiki_tests/rest_rpl_coap.js b/tools/cooja/contiki_tests/rest_rpl_coap.js index 75f6284ea..cfb57065f 100644 --- a/tools/cooja/contiki_tests/rest_rpl_coap.js +++ b/tools/cooja/contiki_tests/rest_rpl_coap.js @@ -8,7 +8,7 @@ CMD_PING_PREFIX = "ping6 -c " + NR_PINGS + " -I tun0 "; CMD_TUNNEL = "./tunslip6 -a 127.0.0.1 aaaa::1/64"; // "make connect-router-cooja"; CMD_WGET_ROUTER = "wget -t 1 -T 10 -O - http:\/\/[" + ADDRESS_ROUTER + "]"; CMD_WGET_SERVER = "wget -t 1 -T 10 -O - http:\/\/[" + ADDRESS_SERVER + "]"; -COAP_SAMPLECLIENT_JAR = "/home/user/JCoAP/SampleClient.jar"; +COAP_SAMPLECLIENT_JAR = "/home/user/Californium/ExampleClient.jar"; /* delay */ msg = ""; @@ -123,7 +123,7 @@ log.log(testname + "\n"); testSummary += testname; processOutput = ""; executeAndWait("java -jar " + COAP_SAMPLECLIENT_JAR + " DISCOVER coap:\/\/[" + ADDRESS_SERVER + "]"); -if (processOutput.indexOf("+[.well-known]") != -1) { +if (processOutput.indexOf("+[.well-known/core]") != -1) { testSummary += ": OK\n"; } else { testSummary += ": FAILED\n";