Cell voltages fork (SoC)

Dependencies:   CUER_CAN CUER_DS1820 LTC2943 LTC6804 mbed PowerControl

Revisions of main.cpp

Revision Date Message Actions
55:41c18d898d97 2017-08-19 Merged changes between max's temperature code fixes and my LTC2943->IVT-A conversion changes File  Diff  Annotate
54:f18d3af300ba 2017-08-19 Removed all LTC2943 functionality as no longer working. Replaced it with the equivalent functionality from the IVT-A. Preliminary tests seem to suggests that it all works fine, including robustmess to weird power conditions File  Diff  Annotate
53:4277cdcff69b 2017-08-19 Fixed Temp Reading; File  Diff  Annotate
52:63e84c6a9cfd 2017-08-18 Changed it so that it gets temperature from the temperature measurement board rather than doing the measurements itself.; Expanded the temperature thresholding stuff. File  Diff  Annotate
51:95a55958904d 2017-07-24 Add can_send function which is a wrapper for can.write. can_send uses the CAN transmit callback to wait until the CAN packet has finished sending before moving on. This allows removal of the random 'wait(0.1)' previously required for CAN write.tested File  Diff  Annotate
50:89f54b7a4c1b 2017-07-24 Finally figured out how to merge the changes File  Diff  Annotate
49:419985e0b2b1 2017-07-24 Can't remember exactly what was changed in this, probably just the prescaler thing for the LTC2943 File  Diff  Annotate
48:5c3f42c44036 2017-07-24 Added code in interrupt to reset EEPROM whenever the correct ID CAN Message is recieved. Contents of msg determine initital values. Currently it is inside the interrupt which should be fine as it should only happen very rarely. File  Diff  Annotate
47:62ba8c071a0f 2017-07-23 Removed unnecessary include of SPI_parser from main.cpp File  Diff  Annotate
46:ac7065d52d6e 2017-07-23 Deleted some unnecessary data structures created during testing.; Fixed an error with the status message (not being initialised correctly).; Uncommented cell voltage readings, and verified that IVT-A and voltages don't interfere with each other. File  Diff  Annotate
45:c288d7cbdb4a 2017-07-22 Added current measurement via IVTA File  Diff  Annotate
41:9183c5616281 2017-07-22 Added some power reduction by disabling the ethernet peripheral (which is not used) File  Diff  Annotate
40:0753cbb8bc6a 2017-07-22 Reverted sleep changes as it doesn't actually seem to reduce the power consumption at all - needs further investigation. File  Diff  Annotate
39:34be1b8f46be 2017-07-22 Replaced 'wait' with a 'sleep' function at the end of the loop. Not sure how much power this saves; needs more investigation. File  Diff  Annotate
38:b1f5bfe38d70 2017-07-22 Made it so that temperature measurements don't happen every loop File  Diff  Annotate
37:fae62a2773a1 2017-07-22 Edited how the battery status is set so that it ignores the last 3 cells of the top CMU.; ; Removed a couple of 'TODO' comments which had been done File  Diff  Annotate
36:1b23c0692f54 2017-07-19 Moved printfs behind an if(DEBUG) File  Diff  Annotate
35:be07fef5db72 2017-07-16 Completely working EEPROM storage and recovery of SOC values. Additionally, addresses are now stored with PEC in addition to the SOC values themselves, in case an address gets corrupted. File  Diff  Annotate
34:65fd6a72106f 2017-07-16 reset_EEPROM now works, just needs some tidying up File  Diff  Annotate
33:44b241c7b2c1 2017-07-16 Added some EEPROM corrections File  Diff  Annotate
32:5b82679b2e6f 2017-07-13 Started writing some more EEPROM functions to reset it, not currently working File  Diff  Annotate
31:888b2602aab2 2017-07-13 All used CAN Packets from BMS in this code tested and working as expected (see comments in CANParserBMU.h File  Diff  Annotate
30:d90895e96226 2017-07-10 Software now writes and reads from 2 memory locations File  Diff  Annotate
29:44924d2b1293 2017-07-09 Working SoC and working voltage measurements File  Diff  Annotate
28:f1f882bd1653 2017-07-09 SOC working, voltages mysteriously break everything, tune in next week for more. File  Diff  Annotate
25:1fe8a42f8a6d 2017-07-09 Part way through SOC testing File  Diff  Annotate
23:a1af4439c1fc 2017-07-09 Added proper handling for CAN of all BMU data types except batteryVI, sending and recieving; File  Diff  Annotate
22:2df45c818786 2017-07-06 Added a pec for the SOC values that are stored in the eeprom File  Diff  Annotate
21:d461d58e70fc 2017-07-04 Modified code so that temperature 12V is only turned on when necessary (verified that temperature reading still works fine); Removed unnecessary 0.1s delays in CAN sending code File  Diff  Annotate
20:a1a1bfc938da 2017-07-02 Completely working CAN read and write (currently in write mode for bms) with live voltage/temp data. Form that is usable in final versions File  Diff  Annotate
18:521ffdd724f3 2017-07-02 Set up voltage and temperature sending and reading with live data and a near final setup for it; File  Diff  Annotate
17:94dd9a0d3870 2017-07-02 added decoder for voltage messages File  Diff  Annotate
16:b2ef68c9a4fd 2017-07-02 Cleaned up Dummy data File  Diff  Annotate
15:e901aff1f5b3 2017-07-02 Added temperature probe initialization File  Diff  Annotate
14:e0e88a009f4c 2017-07-02 Added a proper unique identification to the temperature CAN. Implemented an interrupt based CAN read setup, currently configured with Dummy data and test code that will be cleaned up in a future commit File  Diff  Annotate
13:7b42af989cd1 2017-06-28 Added function to create CAN Messages based on temperature readings from individual probes, and a function to parse msg back into readings. Implemented this into the transmit data function. File  Diff  Annotate
12:fa9b1a459e47 2017-06-23 now works with 33 cells; File  Diff  Annotate
11:cf2db05cfa56 2017-06-21 Cell voltages transmission tested and working for a single CMU. File  Diff  Annotate
10:1079f8e52d65 2017-06-19 Includes Can test functions and working (at some point anyways) voltage telemetry sending over CAN File  Diff  Annotate
9:82ba050a7e13 2017-02-11 nah mate File  Diff  Annotate
7:d00f4433cea9 2017-02-11 ffdf File  Diff  Annotate
6:b567fcb604aa 2017-01-28 Added Library to acquire cell voltages and balance cells, still need to implement storing them for CAN use. File  Diff  Annotate
5:793afeef45dc 2017-01-16 Merged the fork: BMS_BMUCore_Luke_with_SoC File  Diff  Annotate
4:9050c5d6925e 2017-01-10 First attempt at adding SoC and battery current measurements to BMU code; ; Note some constants (e.g. battery capacity, threshold values) need to be modified in the future.; ; Code compiles. File  Diff  Annotate
2:94716229ecc3 2016-12-30 Formatted code File  Diff  Annotate
1:51477fe4851b 2016-12-30 Storing SOC in EEPROM, added temperature sensors code, changed some of the data structures, added to CAN messages, added basic error status File  Diff  Annotate
0:0a5f554d2a16 2016-12-22 Initial commit: Added a basic overview of the code in main, added CANParserBMU and defined some data structures File  Diff  Annotate