...
- Program two OpenMotes
Theuinject
application running on the mote generates dummy data (a counter value increasing at each packet) every 30 seconds and sends it to the manager.
By default, this app is disabled. You can enable it following those procedures. Compiling them and download the code to your motes after you did those modification.- uncomment this line: https://github.com/openwsn-berkeley/openwsn-fw/blob/develop/openapps/openapps.c#L44
- add
uinject
at defaultAppsInit structure: https://github.com/openwsn-berkeley/openwsn-fw/blob/develop/openapps/SConscript#L34
- connect one to your computer and power on the other one
- on your computer, double-click on
uinject_dagroot.py
(folderopenwsn-fw/openapps/uinject
)
you need to change a little bit inuinject_dagroot.py
to make it work on your computer- change the serial port according to your case: https://github.com/openwsn-berkeley/openwsn-fw/blob/develop/openapps/uinject/uinject_dagroot.py#L234py#L239
add following code at : https://github.com/openwsn-berkeley/openwsn-fw/blob/develop/openapps/uinject/uinject_dagroot.py#L161 ,(For the last test, this is no required for OpenMote. Try this if the mote stay at reset status.)
Code Block language py self.serial.setDTR(0) self.serial.setRTS(0)
- That's It!
...