Commit graph

436 commits

Author SHA1 Message Date
fros4943
440ffae2a0 new project: adds two new plugins for forwarding data between a socket and a simulated serial port 2010-01-27 14:28:26 +00:00
fros4943
bdda5f1c29 bugfix: rescheduling mspsim-based after breakpoint stops simulation + disabled automatic CLI "trace" at exceptions 2010-01-21 22:32:32 +00:00
fros4943
fa5f1f73ab avoid java expection when debug pointer doesn't exist 2010-01-21 18:02:54 +00:00
fros4943
633405a73c experimental debugging output interface for mspsim-based motes 2010-01-21 17:43:59 +00:00
fros4943
758710cadd cvs ignore for build directory 2010-01-15 10:57:42 +00:00
fros4943
760818260c using new MotePlugin interface 2010-01-15 10:54:42 +00:00
fros4943
6669b52c61 automatically ending transmission if radio hw is turned off 2010-01-15 10:44:26 +00:00
fros4943
515f5c7f78 removed warning when packet conversion failed 2010-01-15 10:43:02 +00:00
fros4943
cc252e5c16 added support for multiple msp command line listeners 2009-12-14 13:22:57 +00:00
fros4943
5660d6c168 bugfix: returned radio on during boot 2009-12-07 12:31:19 +00:00
fros4943
5f88fac53c renamed serial port mote interface SkySerial to MspSerial + replaced ESB's log mote interface with the new MspSerial (ESB motes can now read serial port data) 2009-12-02 17:12:32 +00:00
fros4943
36d09eaa69 requesting mote wakeup when receiving radio data + code cleanup (faster code) 2009-12-02 16:39:42 +00:00
fros4943
51f210b37f removed unused and unneeded custom radio data classes 2009-12-02 16:29:36 +00:00
fros4943
2f9ccfa26d merged mspsim's compile dialogs 2009-12-02 16:27:32 +00:00
fros4943
8bd7187491 the simulation object now handles the motetype configuration for motes; common functionality that was earlier implemented in each mote.
this patch allows the simulator more freedom for hand-picking mote class loaders

+ some debug output in experimental ImportAppMoteType
2009-11-27 15:53:10 +00:00
fros4943
24d0330d2d radio connection update: radio should not be removed from destinations, but instead flagged as interfered 2009-11-25 15:43:03 +00:00
fros4943
7e6fbd9f7b output warning if radio shuts down during transmission 2009-11-25 15:18:11 +00:00
fros4943
c0e115895d when a receiving radio is interfered by another transmission, the actual data received is corrupted. 2009-11-25 10:01:55 +00:00
fros4943
cd8a407ee1 fix: mote id should not return memory value, but rather the configured value. 2009-11-25 09:17:16 +00:00
joxe
65a50f3d88 fixed MicaZ ID for contiki nodes by programming EEPROM 2009-11-17 14:30:26 +00:00
joxe
f5ae0b9c82 fixed mote id for micaz 2009-11-17 14:09:02 +00:00
joxe
add9d2a387 added write to memory from COOJA + fixed byte ordering 2009-11-13 09:50:25 +00:00
fros4943
9c861b486d minor fix: isTransmitting() flag should be true during transmissions + removed obsolete MSPSim setCCA interface 2009-11-13 08:32:01 +00:00
joxe
be313dd97d improved support for MicaZ emulation - added variable watcher functionality 2009-11-12 12:49:34 +00:00
joxe
27bca64fe0 improved micaz emulation - supports radio on/off states + moved over to used common emulation classes 2009-11-10 12:56:20 +00:00
fros4943
36eae6fcdf micaz port now extends AbstractWakeupMote and schedules itself to execute every millisecond.
still no memory access, so simulation of micaz motes remains limited
2009-10-30 09:42:50 +00:00
fros4943
82b8006c0c using MoteTimeEvent instead of TimeEvent: scheduled events are automatically removed when the mote is removed 2009-10-28 15:58:42 +00:00
fros4943
5c2fd30afb disabled micaz clock until new wakeup interface is implemented 2009-10-27 10:20:25 +00:00
fros4943
2911ea483b jipv6 jar path fix 2009-10-27 10:19:07 +00:00
fros4943
29f618836f new radio medium api 2009-10-27 10:14:09 +00:00
fros4943
2d7e188c77 using mspsim's new window manager, not fully implemented yet 2009-10-27 10:13:34 +00:00
fros4943
ed8867bcb5 new event scheduling api 2009-10-27 10:11:17 +00:00
fros4943
4715637b38 major update to mspsim-based emulated mote:
* fully event based scheduling instead of previous event-tick-hybrid model

->
* faster emulation of large mspsim-based networks
* enables variable clock frequency (no longer fixed to 3.9 Mhz)
2009-10-27 10:02:48 +00:00
fros4943
ae9aaea5f3 added build dependcy jipv6.jar 2009-10-27 09:58:18 +00:00
fros4943
8b136c0b35 removed obsolete until method 2009-10-27 08:52:49 +00:00
fros4943
4c1706bebb do not show dialog unless COOJA is visualized 2009-10-21 16:43:24 +00:00
fros4943
15c4cdaa3e on non-windows platforms: manually entering simulated gateway arp address
+ minor updates: introduced network interface wrapper class , extending vis plugin, showing number of bytes forwarded between native and simulated network (not just number of packets)
2009-10-20 09:22:07 +00:00
fros4943
b144b78478 increased slip data buffer size 2009-10-19 17:31:13 +00:00
fros4943
92eecd3e38 added method for more easily accessing the coffee filesystem interface 2009-10-08 14:41:20 +00:00
fros4943
21d1c5e939 added experimental functionality for mapping between debug info paths and real source locations.
useful when the firmware is not compiled on the cooja computer, or when the source files have been moved after compilation.

this functionality is not yet saved with simulation configs
2009-09-23 08:22:36 +00:00
fros4943
25767a1f0f faster repaint for large source files 2009-09-23 08:16:06 +00:00
fros4943
88b4e22aad fixed executable path 2009-09-18 16:45:26 +00:00
fros4943
0beda36034 show progress dialog during minimal-net compilation 2009-09-18 16:38:15 +00:00
fros4943
d9f3e2b05f bugfix: restoring path from wrong source when loading msp mote type 2009-09-18 09:26:22 +00:00
fros4943
dc07c1ad26 debug info before loading ELF file 2009-09-18 09:06:15 +00:00
fros4943
e974b896dc removing unsafe MoteID interface dependencies 2009-09-17 13:19:08 +00:00
fros4943
f144b012b9 changed default tx power to maximum 2009-09-17 12:09:14 +00:00
fros4943
eb4698612d minor changes: removing some unused code, restructuring, added getID() methods 2009-09-17 10:50:11 +00:00
fros4943
969154c6f0 added some basic functionality for cooja motes like save/load support, compile dialog, and configurable mote interfaces. some parts are still missing (memory r/w access and mote IDs)
+
code restructuring preparing for a generic emulated mote type layer in cooja (made avrora-based motes look more like mspsim-based motes)
2009-09-17 10:45:13 +00:00
nvt-se
b8e268e598 Added FreeBSD support.
Made the Sky mote type use PATH_MAKE for the build procedure.
2009-08-27 12:25:11 +00:00
fros4943
91e762b7bc bugfix: do not assume that the debugged mote is compiled from source 2009-08-20 12:52:17 +00:00
fros4943
3847927a43 including the coffee manager JAR in build system and project directory 2009-08-12 07:41:30 +00:00
fros4943
cdcf783ac6 coffee manager mote interface for sky motes 2009-08-11 17:09:16 +00:00
fros4943
964f63645b more debugging output 2009-06-26 09:28:45 +00:00
fros4943
4525bcb8f0 added shutdown hook for make sure the minimal-net application is killed when cooja exits without shutting down all plugins 2009-06-25 17:43:13 +00:00
fros4943
532c1b6c77 bugfixes: recalculate executable address after loading breakpoint + iterate over array, not list 2009-06-17 13:06:55 +00:00
fros4943
f086c92b40 implemented saving current flash memory 2009-06-17 13:05:27 +00:00
fros4943
752e80167b added breakpoint colors and user defined messages 2009-06-16 12:15:15 +00:00
fros4943
e8ca6d4a4e + shortcut for registering identical breakpoints for all motes of a particular mote type (currently only in popup menu) 2009-06-15 09:45:46 +00:00
fros4943
4fecf3fe1e moved handling of breakpoint configs from plugin to mote 2009-06-15 09:44:42 +00:00
fros4943
1d504be38c no source code repaints while simulation is running 2009-06-12 15:11:22 +00:00
nifi
2c4f9b50f8 cvs ignore for generated jars 2009-06-12 12:42:32 +00:00
fros4943
8842b700a7 ui updates + extracted code to external classes 2009-06-11 10:12:44 +00:00
fros4943
12ee67171b mspmote is now a watchpoint mote + mspmote is responsible for parsing and providing firmware debugging info 2009-06-11 10:08:12 +00:00
fros4943
a8aa75fa8d updated code watcher user interfaces: added support for disabling breakpoints without removing them + several minor fixes 2009-06-11 10:06:47 +00:00
fros4943
c19c8a16ad mspsim breakpoint wrapper with source code information (part of the code was extracted from the code watcher plugin) 2009-06-11 10:05:28 +00:00
fros4943
af0c20e00d extend SerialUI to avoid code duplication 2009-06-02 09:34:59 +00:00
fros4943
e238d84a75 milliseconds -> microseconds update + removed dependency of radio interface 2009-05-26 14:34:30 +00:00
fros4943
1c22bf5151 event based mote interfaces + reimplemented cross level functionality for TR1001 2009-05-26 14:33:30 +00:00
fros4943
c59fc91487 milliseconds -> microseconds update 2009-05-26 14:31:07 +00:00
fros4943
a8e66853bc updated cc2420 converter to 6 byte xmac headers 2009-05-26 13:33:35 +00:00
fros4943
f181ba6f7d moved obsolete cooja projects to backyard 2009-05-18 14:48:10 +00:00
fros4943
0f57afa2b3 bugfix: the preamble and synchbytes was shown instead of the payload (including 2 footer bytes) 2009-05-06 12:59:12 +00:00
fros4943
316f154c1f notify when radio HW is turned on/off 2009-05-04 15:34:00 +00:00
fros4943
dbd5f095e4 new default clock frequency for Contiki's sky motes: 3.9MHz 2009-04-29 20:04:56 +00:00
fros4943
11879f210c improved debug output 2009-04-23 08:59:22 +00:00
fros4943
997a5f6983 reverting previous accidental commit 2009-04-21 20:46:02 +00:00
fros4943
4790ff8f74 increasing loop symbols for higher clock speed 2009-04-21 18:22:41 +00:00
nifi
ecf288c89d allow loading configs referring to MspIPAddress, which was removed 2009-04-20 17:16:20 +00:00
fros4943
5a5585238b allow loading configs referring to MspIPAddress, which was removed 2009-04-20 16:48:53 +00:00
fros4943
3718304c76 removed abstract ip address interface: equal for all motes 2009-04-20 16:12:37 +00:00
fros4943
c76a406cba added read-only rime address interface 2009-04-20 16:12:01 +00:00
joxe
61ed2b5b5c made COOJA accept ELF files based on MAGIC ELF code instead of filename 2009-04-20 16:04:46 +00:00
fros4943
ebcd6a08a5 added method for checking if radio can receive data 2009-04-16 14:28:12 +00:00
fros4943
692dd2cb4b do not convert packet is bad length is set in cc2420 fifo 2009-04-09 17:41:29 +00:00
fros4943
2ac3662ea8 sky motes output the new converted radio packets 2009-04-01 23:37:27 +00:00
fros4943
e4858a2ade update ip interface to supports ipv6 addresses.
also disabled writing IP addresses from inside COOJA, since the these should rather be determined by Contiki
2009-04-01 17:43:17 +00:00
fros4943
fa09bd6c69 removed non-existing IP stack warning at startup 2009-03-21 15:49:29 +00:00
fros4943
480c023578 abstraction level annotation 2009-03-21 14:51:03 +00:00
fros4943
eb2753f23d set default size 2009-03-21 14:40:22 +00:00
joxe
29f6ee7e98 added serial output for MicaZ 2009-03-19 18:58:19 +00:00
joxe
a464b9455c removed some debug printout and added initial serial output on stdout 2009-03-19 14:47:36 +00:00
joxe
e3fa0a41d3 fixed firmware loading bug for micaz nodes 2009-03-19 09:08:44 +00:00
fros4943
c53d80a608 experimental: print pc history when program jumps to bad address 2009-03-13 16:24:29 +00:00
fros4943
536af1381a temporary fix for catching new emulationexception 2009-03-12 17:47:57 +00:00
fros4943
7099572282 + support for config file relative paths when saving simulations 2009-03-12 15:08:29 +00:00
fros4943
d26ba2606b added simulation config backwards compatibility for msp motes 2009-03-11 17:46:59 +00:00
fros4943
1ca67916a4 implemented new mote type interfaces 2009-03-11 14:12:18 +00:00
fros4943
42ed8a3b9b only remove cooja-avrora jar when cleaning 2009-03-11 13:49:47 +00:00
fros4943
8ec6bbd32b compile method signature update 2009-03-11 08:42:07 +00:00
fros4943
25ca251a89 quick-fix: the generator assumes that the constructor accepts a mote object, this is the quickest fix currently 2009-03-09 17:14:35 +00:00
fros4943
e5a5f7dd5d using mote type configuration for generating correct mote interfaces:
it is now possible to configure which interfaces msp430-based have
2009-03-09 17:12:27 +00:00
fros4943
1c0e432969 esb mote type should use esb mote interfaces, not sky mote interfaces 2009-03-09 17:10:14 +00:00
fros4943
728b22bedb renamed author to avoid compiler warnings 2009-03-09 16:05:11 +00:00
fros4943
f30f8d289e compile dialog implementations 2009-03-09 16:04:42 +00:00
fros4943
83ad0c18ba calling contiki compile library for compiling instead of as earlier the msp mote type 2009-03-09 16:03:58 +00:00
fros4943
bd3107ae0d method names changed 2009-03-09 16:01:29 +00:00
fros4943
ad63ae22fd now using contiki compilation library:
removed lots of code from this class that was earlier used for compiling sky and esb motes
2009-03-09 16:00:16 +00:00
fros4943
7a54a0b8eb better debugging output when compiling and cleaning for msp motes 2009-03-03 15:01:14 +00:00
fros4943
7b763f0e75 automatically cleaning temporary files for every non-gui test: takes longer but allows for test-specific compiler flags 2009-03-03 13:52:35 +00:00
nifi
03cfa78310 removed some stuff from the avrora jar (replaced with smaller version) 2009-02-26 15:32:11 +00:00
fros4943
b059155e51 added mote relation interface to emulated sky nodes 2009-02-26 13:48:08 +00:00
nifi
6f8ec800c5 removed some stuff from the avrora jar 2009-02-25 15:20:22 +00:00
fros4943
c2f7780b68 radio signalling moved to abstract radio medium 2009-02-24 15:05:36 +00:00
joxe
bb1bd3a706 added radio communication between micaz nodes 2009-02-24 07:49:42 +00:00
joxe
8be8d92923 added avrora-micaz node emulation 2009-02-22 16:45:01 +00:00
fros4943
00273dce75 minor changes and documentation regarding using random generators in Cooja 2009-02-18 12:07:19 +00:00
fros4943
cc56325300 main random generator must not be used for setup tasks such as node positioning 2009-02-18 11:49:54 +00:00
fros4943
43d21e6e31 forcing all commands to be parsed/executed by bash to simplify multiple make commands 2009-02-17 11:47:12 +00:00
fros4943
71836a0f8e split command into arguments is unnecessary 2009-02-16 12:37:18 +00:00
joxe
4b78e80bda added MAC address setting - setNodeID in SkyNode 2009-02-07 16:38:51 +00:00
fros4943
67f41c8e5c re-enabled radio channels on sky motes 2009-02-03 14:34:47 +00:00
joxe
4879e83403 minor TOS serial fix 2009-02-03 14:18:12 +00:00
joxe
cf197a3496 fixed TOS detect on usart output 2009-02-03 14:08:24 +00:00
fros4943
04738e219d bugfix: setting heap start to enable stack watch again 2009-01-23 15:32:24 +00:00
fros4943
f0111ac181 increased buffer size for maximum sized packets including preamble 2009-01-15 13:55:20 +00:00
fros4943
2d8667cad1 added simple method for wrapping serial data in SLIP packets 2009-01-15 13:13:47 +00:00
fros4943
67d2761fcc gateway plugin does not extend visplugin; it can be used when cooja is not visualized (such as during tests) 2008-12-17 12:15:43 +00:00
fros4943
c36aae56bb added support for linux:
* starting external Contiki process to setup tun interface (instead of JNI solution)

* sending simulation-generated packets to loopback network device  (need to activate forwarding and disable rp filter)
2008-12-12 16:27:40 +00:00
fros4943
c2ef633c87 create lib directory when building 2008-12-09 17:01:42 +00:00
fros4943
e0cc36b02e removed todo: serial data callback is implemented 2008-12-09 16:58:36 +00:00
fros4943
d45aafc2bb native IP gateway mote plugin: enables IP communication with simulated networks, such as with ping or telnet 2008-12-09 16:57:57 +00:00
joxe
37b40f99c7 changed simulation time from int to long to support very long simulations 2008-12-04 14:03:41 +00:00
fros4943
aae4b54c68 bugfix: mspsim cycle counter was cast to int, limiting maximum simulation time 2008-12-04 13:14:34 +00:00
fros4943
cdd2d9daa5 synchronizing pending bytes vector 2008-12-04 13:09:27 +00:00
fros4943
5e6b02d1b9 ok 2008-12-04 13:08:55 +00:00
fros4943
d8b0705cb3 mspsim should warn at bad memory access (not activated yet) 2008-12-03 15:36:49 +00:00
fros4943
430333b515 using updated messagelist 2008-12-03 15:18:47 +00:00
fros4943
ace83513e8 empty USART stateChanged handler 2008-12-03 13:13:07 +00:00
fros4943
2d7238e775 uIP IP address interface (reading from uip_hostaddr) 2008-12-03 13:11:20 +00:00
fros4943
8c4d5b51f9 using state changed callback for more accurate incoming serial data throughput 2008-12-03 13:04:21 +00:00
nifi
e86b63112a changed to use MSPSim from tools/mspsim 2008-12-03 09:55:26 +00:00
nifi
9d36fb106e added command line history 2008-11-26 16:23:43 +00:00
fros4943
c46bb21f5e compile from separate thread, not edt 2008-11-04 17:37:09 +00:00
fros4943
488e5dab37 minor fixes + added experimental debugging function: run until function returns 2008-11-03 18:11:44 +00:00
fros4943
730917f846 remember look and feel background color 2008-11-03 18:10:52 +00:00
fros4943
066085a174 click on breakpoint to open source file 2008-11-03 18:10:34 +00:00
fros4943
2df1f699aa using target extensions (.sky/.esb) instead of generic .firmware 2008-11-03 13:18:28 +00:00
fros4943
3fa37e21ac more error checking + compile default choice 2008-11-03 12:45:52 +00:00
fros4943
3c7565dd68 allow radio to flush before feeding with packet data 2008-11-03 12:31:33 +00:00
fros4943
a7a87386b5 misspelled method 2008-11-03 10:33:15 +00:00
fros4943
4a494eebb5 updated mspsim jar 2008-10-29 18:39:00 +00:00
fros4943
8668f69077 using cc2420 packet converter for conversions between cc2420 and cooja 2008-10-29 18:38:26 +00:00
fros4943
6e792ff766 removed old sky packet radio 2008-10-29 18:28:28 +00:00
fros4943
6ae7fc99a1 packet converter with x-mac and crc support 2008-10-29 18:28:16 +00:00
fros4943
fdcfbd0e62 bugfix: source file got lost when reloading msp motes 2008-10-29 16:36:33 +00:00
fros4943
eb08babd4c using time events for following up on ongoing transmissions 2008-10-29 09:13:12 +00:00
fros4943
5d7ed0eab2 using events to write serial data to mote 2008-10-29 08:51:09 +00:00
fros4943
2a2be77707 implemented getDrift method 2008-10-29 08:36:12 +00:00
fros4943
cb790a62e3 scheduling events for persistent IDs instead of polling: more efficient 2008-10-29 08:35:38 +00:00
fros4943
9faae40d7c new interface format without passive/active
+ energy method renamed
2008-10-28 17:02:58 +00:00
fros4943
3ee86789e2 new interface format without passive/active 2008-10-28 17:02:13 +00:00
joxe
545eaedee4 updated mspsim with some new bugfixes - but still some problems with CC2420 and LPL 2008-10-27 07:34:41 +00:00
nifi
69b73246b9 refactored MSPMote setup + added plugin to access MSPSim CLI 2008-10-13 14:50:50 +00:00
joxe
37214513d6 improved cc2420 support 2008-10-09 11:13:00 +00:00
joxe
9646fa0a01 fixed new byte based radio model for MSPSim based Sky node 2008-10-09 11:11:30 +00:00
joxe
626638d8b8 bugfix for the TinyOS node id support 2008-10-09 09:41:27 +00:00
fros4943
6011abbb79 removed unused currentSimTime + fixed bug when nodes are added during simulations 2008-10-07 16:49:21 +00:00
fros4943
11a084f8df mspsim with fifop bugfix (setting fifop false when radio is reconfigured) 2008-10-07 15:01:46 +00:00
fros4943
526a5ae497 new mspsim jar with some cc2420 fixes 2008-10-07 11:53:40 +00:00
fros4943
3bae1a2b59 persistent node ID defaults to true
+ removed some debugging output
2008-10-07 08:21:05 +00:00
fros4943
e473939ebf support for node IDs in variables node_id, TOS_NODE_ID or none 2008-10-07 08:18:54 +00:00
fros4943
b8d8474668 mspsim 0.94 2008-10-06 14:03:52 +00:00
fros4943
3a26f02fb2 removing debug output 2008-10-05 15:49:10 +00:00
fros4943
2a2b764ee6 updated some references to old getLastLogMessages() 2008-10-03 15:18:48 +00:00
fros4943
66e361058a fix: local firmware file variable defined when compilation starts 2008-10-03 15:08:17 +00:00
fros4943
43d97043a7 added clean option 2008-10-03 15:02:21 +00:00
fros4943
d9ce7927cb splitting contiki messages on newlines 2008-10-03 10:39:29 +00:00
fros4943
9cf79a6b21 kill potentially unfinished compilation process when dialog is closed 2008-10-02 21:23:03 +00:00
fros4943
ee7b3dc70c newer mspsim: with receive sfd_state bug fix 2008-09-29 23:22:13 +00:00
joxe
24d34b837d updated mspsim jarfile 2008-09-23 15:26:50 +00:00
joxe
f6e0702b3b optimized some loops for increased performance and added runprof for profiling 2008-09-22 16:18:22 +00:00
joxe
221742559d fixed cycles per sec to be more correct 2008-09-22 09:32:13 +00:00
fros4943
1f1112618a in paths, dirs are separated by '/'s only 2008-09-20 09:15:45 +00:00
fros4943
43fe1882f9 avoid using additional threads for writing to message list 2008-09-20 08:53:20 +00:00
fros4943
83e97ecfba print compilation errors to console 2008-09-20 08:05:07 +00:00
fros4943
f6f5637f4f printing debug output when compilation fails 2008-09-18 14:14:58 +00:00
fros4943
ba5bfd6455 mspsim without debug output 2008-09-18 14:05:27 +00:00
fros4943
ff08a99b7d saving contiki relative paths if possible 2008-09-18 14:04:45 +00:00
fros4943
e1a159d7a2 deleting jar at clean 2008-09-17 20:49:13 +00:00
fros4943
11981ea720 mrm.jar built automatically when starting cooja 2008-09-17 20:41:37 +00:00
nifi
ee56d724bf fixed bug in the delayed start of MSPSim motes 2008-09-17 17:39:37 +00:00
nifi
724d9139a7 added missing variable initialization 2008-09-17 14:37:23 +00:00
fros4943
8de801d729 new mspsim version 0.93+ 2008-09-17 12:10:15 +00:00
fros4943
fb4f9dfc1a serialport is an active interface 2008-09-17 12:09:20 +00:00
fros4943
9a76bacaa5 initialize from int[] (mspsim standard) 2008-09-17 12:09:03 +00:00
fros4943
9c51ece052 supporting new mspsim cc2420 2008-09-17 12:08:45 +00:00
fros4943
8d790a19d8 serial port implementation for sky node. 2008-09-17 12:05:45 +00:00
fros4943
9ea58d343b cooja ant run automatically builds jars 2008-09-01 12:47:54 +00:00
nifi
34b37335c9 updated to latest version of mspsim 2008-07-09 22:08:32 +00:00