![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
all bms comunicating with nucleo board and balancing
Fork of Can_sniffer_BMS_GER by
Diff: main.cpp
- Revision:
- 26:3ac15dfbb66b
- Parent:
- 25:76c6f417eb48
- Child:
- 27:21239801cfd3
--- a/main.cpp Sun Oct 23 19:25:01 2016 +0000 +++ b/main.cpp Mon Oct 24 13:11:40 2016 +0000 @@ -23,15 +23,16 @@ //#define BOARD1 1 // comment out this line when compiling for board #2 -//CAN devices IDs and reserved ID's +//CAN devices IDs and reserved ID's----------------------------------- //ID|Device -//9|ECU -//11|BMS1 -//12|BMS2 -//13|BMS3 -//?|Charger - - +//9|ECU|Key switch +//10|ECU|Charge/discharge +//11|BMS1|Cell voltages +//12|BMS2|Cell voltages +//13|BMS3|Cell voltages +//?|Charger| +// +//-------------------------------------------------------------------- const unsigned int RX_ID = 0x100; @@ -152,6 +153,7 @@ if(to_send) { to_send = 0; txMsg.clear(); + txMsg.id = 9; txMsg << key_switch; if(can.write(txMsg)) {