Arianna autonomous DAQ firmware

Dependencies:   mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW

Revisions of main.cpp

Revision Date Message Actions
123:6267de54c8ba 2018-08-15 Attempt to fix threshold channel ordering for 8ch boards File  Diff  Annotate
122:c1b5023eac69 2017-12-01 Rev 121. 8Ch 1GHz SST. SBD only on boot up. Save def conf to SD card. File  Diff  Annotate
119:b3d7699d0eb0 2017-09-21 2017-2018 season default for 4Ch (2GSa/s) SST File  Diff  Annotate
116:8099b754fbb4 2016-05-03 One program for all stns via UID/MAC lookup table or generation. Status sends number trg/evt and livetime, not rates. Add 512 sample evt and RFFT-LUTs. Add L1Scaledown trg bit. Allow skip SST reset at start. Fix dt at end of seq. End of comm signal. File  Diff  Annotate
114:554fa3a956b4 2015-12-04 Stn31 CHIPBOARD=SST4ch1GHz. With conf name. No interface chip. Safety nets. File  Diff  Annotate
100:3a27edf9ce16 2015-11-17 S30 conf name. Fix so that time between thermal triggers resets properly. No interface chip. Safety nets. File  Diff  Annotate
98:ce72ef143b9b 2015-11-17 S30 with conf name. Send copy of config with status update pack. no interface chip. safety nets. File  Diff  Annotate
97:9f3fe603e8b5 2015-11-17 S14 with conf name. Update clock set at trig start/stop. no interface chip. safety nets. File  Diff  Annotate
84:80b15993944e 2015-10-30 conf v11,12. ip to ints. write 64chr lbl. send status data packs. comm pwr as needed. comm each evt. conn/list TO separate afar, sbd. calc FFT, L1 trigger, L1 scaledown. pre-compl opts in own file. max comm fail 75. htbt and clock frames store vars. File  Diff  Annotate
76:f8383f0292c2 2015-02-22 Stn14 mac adr. Allow SD to be ignored. Only access run/seq list if going to send the list. File  Diff  Annotate
67:ec999336fcd1 2015-02-03 STN20 Hardcoded (mac adr and config label). Power off periphs before powering anything on. do NOT use interface chip for mac adr or files (except reprogramming) File  Diff  Annotate
65:2cb3e99ce466 2014-11-28 same as 64 but remove debug and enable safety nets File  Diff  Annotate
63:4820a4460f00 2014-11-28 Revert to SDFileSystemFilInfo with no-stall changes to SDFileSystem.cpp . change watchdog to internal RC clock. move check power to after startup LED sequence. make InitSDCard try up to 26 init's. DEBUG ENABLED, NO SAFETY NETS File  Diff  Annotate
62:4b59c1eb429f 2014-11-27 add debug to watchdog. set watchdog to config value at main() start File  Diff  Annotate
61:42cbfc02e0e0 2014-11-22 remove brownout code. add 512 bytes to general buffer. make status frame v1 max size use event max size v1 File  Diff  Annotate
59:21128cc24b04 2014-10-31 Enable safety nets. Allow IP setting via text files on mbed. File  Diff  Annotate
56:0bba0ef15697 2014-10-30 update ext libs, add tempr, allow SST/ATWD, improve handshaking, run/seq list, req seq range, allow SBD only in low pwr, all pins start off, can collect data to ram w/o SD card, add parameters to status update File  Diff  Annotate
52:dc82c37ad234 2013-11-28 SAFETY NETS ON. AFAR,SBD comms. No twitter. Require at least 2 events to calc rates. Move AddToRates for thermal triggers back outside of throttle check, to allow high rate calculations. File  Diff  Annotate
51:b2bc37d660c0 2013-11-28 AFAR,SBD comms. No twitter. No safety nets. Require at least 2 events to calc rates. Move AddToRates for thermal triggers back outside of throttle check, to allow high rate calculations. File  Diff  Annotate
50:163ec8d88aa9 2013-11-28 USB comms. Require at least 2 events to calc rates. Move AddToRates for thermal triggers back outside of throttle check, to allow high rate calculations. File  Diff  Annotate
49:a2fb3ce86a5c 2013-11-06 afar and sbd comms. debug OFF. like rev 47 File  Diff  Annotate
48:ee023b8807d8 2013-11-06 usb comms. debug OFF. like rev 47 File  Diff  Annotate
47:fbe956b10a91 2013-11-06 afar and sbd on. debug ON. recursively make directories on the SD card so blank cards can be used. move debug block in procForce to before pin high so forced trigs work in debug mode File  Diff  Annotate
46:07b107ad648d 2013-10-30 debug off, no safety nets, USB only File  Diff  Annotate
45:ce64b973ac09 2013-10-30 no safety nets. debug off. afar and sbd. like rev43 File  Diff  Annotate
44:948b202edbda 2013-10-30 no safety nets. debug on. afar and sbd. like rev43 File  Diff  Annotate
43:aba4136470be 2013-10-30 safety nets enabled. sbd and iridium. like rev 42 but with changes that somehow failed in the rev42 commit? fix saving of CRC for events, up Ncomms to 2 File  Diff  Annotate
42:ac162d15e578 2013-10-30 no debug. afar and sbd enabled. twitter off (broken). fix so modserial does not use vtable. add CheckSignalStrength. fix Send to return bytes sent, not buffered. use SBD checksum and without union File  Diff  Annotate
41:d6f5e2f09e07 2013-10-08 sbd only, debug on. send iridium signal strength. check first event even if cards off. make serial type explicit as Serial has no vtable. SBD comms: send buffered returns bytes sent out, use checksum of msg from modem, fix EmptyRxBuf, add checkSIgStr File  Diff  Annotate
40:1324da35afd4 2013-10-05 first commit of major overhaul to 2013-2014 mbed code. NOT YET FULLY TESTED. too many changes to list (fix local file receive, fix rates, external comm packes, big SD cards, get to comm win w/o SD, v8 config frame, v4 files, SBD buffering changes...) File  Diff  Annotate
39:2f17131d22a5 2013-07-30 Temp commit so we can revert to other revisions. Changed some dynamic_casts to static_casts. Added NULL char to config label writing and updated io versions. Added battery hysteresis. File  Diff  Annotate
37:ff95e7070f26 2013-05-29 SBD only and DEBUG enabled. Safety nets enabled. Protocol and Comms as separate packages. Compiles, but untested. File  Diff  Annotate
36:87865913ae6f 2013-05-23 this will not compile. just starting to modularize the comms and essential packages for extraction (to use in both the DAQ and monitoring station) File  Diff  Annotate
35:549714a257a4 2013-02-07 Same as Rev34 but Afar and SBD comms. USB comms disabled. Safety nets disabled. Afar and SBD powered separately. File  Diff  Annotate
33:06eb182d8813 2013-01-23 USB comms. Safety nets disabled. Afar and Iridium powered together. File  Diff  Annotate
32:20877f862cf0 2013-01-23 Same as Rev31 but with config safety nets enabled. File  Diff  Annotate
31:b5bd3b189150 2013-01-23 Added option in SnConstants to allow for proper switching of peripheral power in stations that have the Afar and Iridium power lines spliced together. Afar, SBD and Twitter comms enabled. Afar and Iridium powered together. File  Diff  Annotate
30:f869ed4bcc08 2012-11-28 Change power so to account for the Iridium being on the same relay as afar. Afar, SBD, Twitter enabled. No Debugging. File  Diff  Annotate
28:484943132bb0 2012-11-24 Afar, SBD, twitter enabled. Debug disabled. Safety nets on config parameters. Patched up netif code to connect to multiple sockets. Add default mbed IP according to mac address. File  Diff  Annotate
27:efc4d654b139 2012-11-01 Afar comms enabled. Bug fixes: comm win opens with high rate now and no power to afar with afar comm enabled will not stall MBED. Features: stop file transfer, delete a specified run or delete all files on the SD card (file trans handshakes). File  Diff  Annotate
25:57b2627fe756 2012-10-30 AFAR comms. Upped baud to 921600. Store data in run-seq subdirs, max of 100 files per dir, to prevent station grinding to a halt due when 800 files are in one directory. Cache file size count. Stagger tickers. Fixed some gcc warnings. File  Diff  Annotate
23:ccf39298f205 2012-10-23 SBD communication enabled. Fix bug in which the SBD message number would be repeatedly increased upon failed sending attempts. Add check in SBD recv in case message is longer than buffer. Add SendString to SnCommWin File  Diff  Annotate
22:f957c4f840ad 2012-10-16 USB comm only. Make firing of comm window independent of real time clock. Add heartbeat firing time to the data stream. File  Diff  Annotate
21:ce51bb0ba4a5 2012-10-10 Uses USB comm. Fix rates calc. Power up/down ETH with Afar. Fix sending evt with status. Add num files and bytes of data to status. Can save a local file (i.e. reprogram MBED) via comms. Set config after each comm win (need if cards pow cycle). File  Diff  Annotate
19:74155d652c37 2012-10-02 Moved output directory of event files to /sd/data in order to avoid the SD file system's maximum number of files in its root directory. Fix bug in SnConfigFrame::SizeOf to account for new i/o version 4 (number of bytes should be equal, tho). This versi... File  Diff  Annotate
18:55f1581f2ee4 2012-09-29 This version uses USB communication only. Changed forced trigger period to be a float, so subsecond trigs are possible. Changed from EthernetInterface to NetServicesMin. This allows slow (2KBps) transfer over TCP, but at least it's robust. File  Diff  Annotate
17:4687bf932b8c 2012-09-12 Same as Rev16, but opens a communication window at the end of running in single sequence mode (in StopRunning). File  Diff  Annotate
16:744ce85aede2 2012-09-12 SBD comm seems to be working. USB comm seems to be working (at 115200 baud). AFAR comm seems to be working. This version is set for USB communication and has zero text output. File  Diff  Annotate
15:f2569d8e4176 2012-08-31 Removed debug output between trigger and and dFPGA->MB request that corrupted data. Lots of work on SBD, but not quite working yet. Debug output off, but start/stop running notifications are on. File  Diff  Annotate
14:2736b57bbbed 2012-08-21 Same as rev 13 but with no debug output. File  Diff  Annotate
13:7a1fb885a8e4 2012-08-21 Put resetting of event/power number counters to directly after making of file. Move startup config to inside OpenCommWin (and force it on startup). This should ensure that even numbers always correspond to sequence numbers. File  Diff  Annotate
12:d472f9811262 2012-08-18 Fixed bug in throttling timers. Now evt stores dt of triggers but throttle works on dt of events. AfarTCP communication possibly done. Debug output put behind precompiler macros. File  Diff  Annotate
11:de443350ec4a 2012-08-13 Added p20 being set to 0 before every write to the SD card, to protect against the writing causing the system to stall. Comms under dev. Many debug messages. File  Diff  Annotate
10:3c93db1cfb12 2012-08-10 Ensure that lockRegisters (p20) is 0 before accessing the SD card, for example when closing the file. This fixes an issue seen when running in power count mode. Communications still under dev. Many debug outputs. File  Diff  Annotate
9:a1a39573dd43 2012-08-09 Same as Rev8, but the rms values in power readings are actually the square root of the variance File  Diff  Annotate
8:95a325df1f6b 2012-08-08 Check power for low pow running. Average power over 500 readings. Use RTOS timers instead of tickers. Allow data taking of events, power readings or both, even if cards are off. Bug in EthernetInterface prevents IPs being reset. Lots of debug output. File  Diff  Annotate
7:079617408fec 2012-08-04 Bug fix to seq finder. Comms totally disabled. Many debug messages. File  Diff  Annotate
6:6f002d202f59 2012-08-03 Remove line that powered amps outside of SetPower. Still lots of debugging output. Communication systems totally unimplemented. File  Diff  Annotate
5:9cea89700c66 2012-08-03 Bug fix to power: set 0 for cards and amps if on. Still working on communications. Many debug printouts. File  Diff  Annotate
4:a91682e19d6b 2012-08-02 Add power reading, once per file. Prevent seq number from wrapping around. Still many debugging messages. Communications not finished. File  Diff  Annotate