mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
added rime rucb test
This commit is contained in:
parent
92ecda2202
commit
bcb0efab77
223
tools/cooja/contiki_tests/rime_rucb.csc
Normal file
223
tools/cooja/contiki_tests/rime_rucb.csc
Normal file
@ -0,0 +1,223 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<simconf>
|
||||
<simulation>
|
||||
<title>My simulation</title>
|
||||
<delaytime>0</delaytime>
|
||||
<ticktime>1</ticktime>
|
||||
<randomseed>123456</randomseed>
|
||||
<motedelay>1000</motedelay>
|
||||
<radiomedium>
|
||||
se.sics.cooja.radiomediums.UDGM
|
||||
<transmitting_range>25.0</transmitting_range>
|
||||
<interference_range>40.0</interference_range>
|
||||
<success_ratio_tx>0.99</success_ratio_tx>
|
||||
<success_ratio_rx>1.0</success_ratio_rx>
|
||||
</radiomedium>
|
||||
<motetype>
|
||||
se.sics.cooja.contikimote.ContikiMoteType
|
||||
<identifier>mtype16</identifier>
|
||||
<description>Contiki Mote #1</description>
|
||||
<contikibasedir>../../..</contikibasedir>
|
||||
<contikicoredir>../../../platform/cooja</contikicoredir>
|
||||
<projectdir>../../../examples/rime</projectdir>
|
||||
<compilefile>../apps/mrm</compilefile>
|
||||
<compilefile>../apps/mspsim</compilefile>
|
||||
<compilefile>../../../examples/rime</compilefile>
|
||||
<compilefile>../../../examples/rime</compilefile>
|
||||
<compilefile>../../../examples/rime/example-rucb.c</compilefile>
|
||||
<process>example_rucb_process</process>
|
||||
<sensor>button_sensor</sensor>
|
||||
<sensor>pir_sensor</sensor>
|
||||
<sensor>radio_sensor</sensor>
|
||||
<sensor>vib_sensor</sensor>
|
||||
<moteinterface>se.sics.cooja.interfaces.Position</moteinterface>
|
||||
<moteinterface>se.sics.cooja.interfaces.Battery</moteinterface>
|
||||
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiVib</moteinterface>
|
||||
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiMoteID</moteinterface>
|
||||
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiRS232</moteinterface>
|
||||
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiBeeper</moteinterface>
|
||||
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiIPAddress</moteinterface>
|
||||
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiRadio</moteinterface>
|
||||
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiButton</moteinterface>
|
||||
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiPIR</moteinterface>
|
||||
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiClock</moteinterface>
|
||||
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiLED</moteinterface>
|
||||
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiLog</moteinterface>
|
||||
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiCFS</moteinterface>
|
||||
<coreinterface>cfs_interface</coreinterface>
|
||||
<coreinterface>beep_interface</coreinterface>
|
||||
<coreinterface>button_interface</coreinterface>
|
||||
<coreinterface>radio_interface</coreinterface>
|
||||
<coreinterface>ip_interface</coreinterface>
|
||||
<coreinterface>leds_interface</coreinterface>
|
||||
<coreinterface>moteid_interface</coreinterface>
|
||||
<coreinterface>pir_interface</coreinterface>
|
||||
<coreinterface>rs232_interface</coreinterface>
|
||||
<coreinterface>vib_interface</coreinterface>
|
||||
<coreinterface>clock_interface</coreinterface>
|
||||
<coreinterface>simlog_interface</coreinterface>
|
||||
<symbols>false</symbols>
|
||||
<commstack>Rime</commstack>
|
||||
</motetype>
|
||||
<mote>
|
||||
se.sics.cooja.contikimote.ContikiMote
|
||||
<motetype_identifier>mtype16</motetype_identifier>
|
||||
<interface_config>
|
||||
se.sics.cooja.interfaces.Position
|
||||
<x>0.0</x>
|
||||
<y>50.00000000000001</y>
|
||||
<z>0.0</z>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.interfaces.Battery
|
||||
<infinite>false</infinite>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.contikimote.interfaces.ContikiMoteID
|
||||
<id>51</id>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.contikimote.interfaces.ContikiIPAddress
|
||||
<ipv4address>10.10.17.20</ipv4address>
|
||||
</interface_config>
|
||||
</mote>
|
||||
<mote>
|
||||
se.sics.cooja.contikimote.ContikiMote
|
||||
<motetype_identifier>mtype16</motetype_identifier>
|
||||
<interface_config>
|
||||
se.sics.cooja.interfaces.Position
|
||||
<x>14.102564102564104</x>
|
||||
<y>45.28301886792453</y>
|
||||
<z>0.0</z>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.interfaces.Battery
|
||||
<infinite>false</infinite>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.contikimote.interfaces.ContikiMoteID
|
||||
<id>52</id>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.contikimote.interfaces.ContikiIPAddress
|
||||
<ipv4address>10.10.1.11</ipv4address>
|
||||
</interface_config>
|
||||
</mote>
|
||||
<mote>
|
||||
se.sics.cooja.contikimote.ContikiMote
|
||||
<motetype_identifier>mtype16</motetype_identifier>
|
||||
<interface_config>
|
||||
se.sics.cooja.interfaces.Position
|
||||
<x>-32.16814655285737</x>
|
||||
<y>42.92182758760039</y>
|
||||
<z>0.0</z>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.interfaces.Battery
|
||||
<infinite>false</infinite>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.contikimote.interfaces.ContikiMoteID
|
||||
<id>53</id>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.contikimote.interfaces.ContikiIPAddress
|
||||
<ipv4address>10.10.18.13</ipv4address>
|
||||
</interface_config>
|
||||
</mote>
|
||||
<mote>
|
||||
se.sics.cooja.contikimote.ContikiMote
|
||||
<motetype_identifier>mtype16</motetype_identifier>
|
||||
<interface_config>
|
||||
se.sics.cooja.interfaces.Position
|
||||
<x>-1.5917258339289355</x>
|
||||
<y>37.3750708005199</y>
|
||||
<z>0.0</z>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.interfaces.Battery
|
||||
<infinite>false</infinite>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.contikimote.interfaces.ContikiMoteID
|
||||
<id>54</id>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.contikimote.interfaces.ContikiIPAddress
|
||||
<ipv4address>10.10.5.21</ipv4address>
|
||||
</interface_config>
|
||||
</mote>
|
||||
<mote>
|
||||
se.sics.cooja.contikimote.ContikiMote
|
||||
<motetype_identifier>mtype16</motetype_identifier>
|
||||
<interface_config>
|
||||
se.sics.cooja.interfaces.Position
|
||||
<x>26.334899854939632</x>
|
||||
<y>53.05390331866741</y>
|
||||
<z>0.0</z>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.interfaces.Battery
|
||||
<infinite>false</infinite>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.contikimote.interfaces.ContikiMoteID
|
||||
<id>55</id>
|
||||
</interface_config>
|
||||
<interface_config>
|
||||
se.sics.cooja.contikimote.interfaces.ContikiIPAddress
|
||||
<ipv4address>10.10.11.6</ipv4address>
|
||||
</interface_config>
|
||||
</mote>
|
||||
</simulation>
|
||||
<plugin>
|
||||
se.sics.cooja.plugins.SimControl
|
||||
<width>265</width>
|
||||
<z>3</z>
|
||||
<height>200</height>
|
||||
<location_x>0</location_x>
|
||||
<location_y>0</location_y>
|
||||
<minimized>false</minimized>
|
||||
</plugin>
|
||||
<plugin>
|
||||
se.sics.cooja.plugins.LogListener
|
||||
<plugin_config>
|
||||
<filter />
|
||||
<history>256</history>
|
||||
</plugin_config>
|
||||
<width>692</width>
|
||||
<z>4</z>
|
||||
<height>209</height>
|
||||
<location_x>0</location_x>
|
||||
<location_y>434</location_y>
|
||||
<minimized>false</minimized>
|
||||
</plugin>
|
||||
<plugin>
|
||||
se.sics.cooja.radiomediums.UDGM$VisUDGM
|
||||
<width>216</width>
|
||||
<z>2</z>
|
||||
<height>197</height>
|
||||
<location_x>477</location_x>
|
||||
<location_y>0</location_y>
|
||||
<minimized>false</minimized>
|
||||
</plugin>
|
||||
<plugin>
|
||||
se.sics.cooja.plugins.VisTraffic
|
||||
<width>208</width>
|
||||
<z>5</z>
|
||||
<height>203</height>
|
||||
<location_x>266</location_x>
|
||||
<location_y>-2</location_y>
|
||||
<minimized>false</minimized>
|
||||
</plugin>
|
||||
<plugin>
|
||||
se.sics.cooja.plugins.RadioLogger
|
||||
<width>687</width>
|
||||
<z>1</z>
|
||||
<height>233</height>
|
||||
<location_x>3</location_x>
|
||||
<location_y>201</location_y>
|
||||
<minimized>false</minimized>
|
||||
</plugin>
|
||||
</simconf>
|
||||
|
1
tools/cooja/contiki_tests/rime_rucb.info
Normal file
1
tools/cooja/contiki_tests/rime_rucb.info
Normal file
@ -0,0 +1 @@
|
||||
Two OS-level nodes: examples/rime/example-rucb.c. 99% TX success.
|
4
tools/cooja/contiki_tests/rime_rucb.js
Normal file
4
tools/cooja/contiki_tests/rime_rucb.js
Normal file
@ -0,0 +1,4 @@
|
||||
if (msg.startsWith('Completion time')) {
|
||||
log.log(msg + "\n");
|
||||
log.testOK(); /* Report test success and quit */
|
||||
}
|
Loading…
Reference in New Issue
Block a user