Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Can_sniffer_BMS4 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)) {