From 7afb0cac6e50ff9883a56ef133e419517f237ef1 Mon Sep 17 00:00:00 2001 From: alejopm03 Date: Mon, 4 Mar 2024 23:58:19 -0300 Subject: [PATCH 1/2] feat(mcc23): IDs reorganized to accommodate the IDs of MCC23 --- can_ids.csv | 84 ++--- can_ids.h | 184 +++++++++- can_ids.json | 368 +++++++++++++++++-- can_ids_generator.py | 815 ++----------------------------------------- can_parser_types.h | 167 ++++++++- sample.json | 44 +++ 6 files changed, 789 insertions(+), 873 deletions(-) diff --git a/can_ids.csv b/can_ids.csv index c252230..8791bc5 100644 --- a/can_ids.csv +++ b/can_ids.csv @@ -11,47 +11,53 @@ 9,MDE22,170,STEERINGBAT_MEASUREMENTS,201,10,0.206,103,Auxiliar Battery Voltage 10,MVC19_1,210,STATE,101,1,0.014,71,Module state report 11,MVC19_2,211,STATE,102,1,0.014,71,Module state report -12,MCC19_1,225,STATE,103,1,0.016,79,Module state report +12,MCC19_1,225,STATE,103,1,0.014,71,Module state report 13,MCC19_1,225,MEASUREMENTS,202,10,0.222,111,All measurements from the converter -14,MCC19_2,226,STATE,104,1,0.016,79,Module state report +14,MCC19_2,226,STATE,104,1,0.014,71,Module state report 15,MCC19_2,226,MEASUREMENTS,203,10,0.222,111,All measurements from the converter -16,MCC19_3,227,STATE,105,1,0.016,79,Module state report +16,MCC19_3,227,STATE,105,1,0.014,71,Module state report 17,MCC19_3,227,MEASUREMENTS,204,10,0.222,111,All measurements from the converter -18,MCC19_4,228,STATE,106,1,0.016,79,Module state report +18,MCC19_4,228,STATE,106,1,0.014,71,Module state report 19,MCC19_4,228,MEASUREMENTS,205,10,0.222,111,All measurements from the converter -20,MCC19_5,229,STATE,107,1,0.016,79,Module state report +20,MCC19_5,229,STATE,107,1,0.014,71,Module state report 21,MCC19_5,229,MEASUREMENTS,206,10,0.222,111,All measurements from the converter -22,MCC19_6,239,STATE,108,1,0.016,79,Module state report -23,MCC19_6,239,MEASUREMENTS,207,10,0.222,111,All measurements from the converter -24,MCB19_1,220,STATE,109,1,0.016,79,Module state report -25,MCB19_1,220,MEASUREMENTS,208,10,0.222,111,All measurements from the converter -26,MCB19_2,221,STATE,110,1,0.016,79,Module state report -27,MCB19_2,221,MEASUREMENTS,209,10,0.222,111,All measurements from the converter -28,MAC22,180,STATE,35,5,0.071,71,Module state report -29,MAC22,180,CONTACTOR,34,50,0.63,63,Contactor task response -30,MAM19,190,STATE,99,5,0.071,71,Module state report -31,MAM19,190,MOTOR,98,50,0.71,71,Motor controller parameters -32,MAM19,190,CONTACTOR,36,5,0.063,63,Contactor requests -33,MAB19,230,STATE,111,0,0.0,71,Module state report -34,MAB19,230,PUMPS,210,0,0.0,63,Pumps state -35,MSC19_1,250,STATE,112,1,0.014,71,Module state report -36,MSC19_1,250,ADC,211,10,0.206,103,Voltage measurements -37,MSC19_2,251,STATE,113,1,0.014,71,Module state report -38,MSC19_2,251,ADC,212,10,0.206,103,Voltage measurements -39,MSC19_3,252,STATE,114,1,0.014,71,Module state report -40,MSC19_3,252,ADC,213,10,0.206,103,Voltage measurements -41,MSC19_4,253,STATE,115,1,0.014,71,Module state report -42,MSC19_4,253,ADC,214,10,0.206,103,Current measurements -43,MSC19_5,254,STATE,116,1,0.014,71,Module state report -44,MSC19_5,254,ADC,215,10,0.206,103,Current measurements -45,MCS19,200,STATE,117,1,0.014,71,Module state report -46,MCS19,200,START_STAGES,37,50,0.71,71,Boat charging // Boat on -47,MCS19,200,BAT,216,10,0.206,103,battery voltage values -48,MCS19,200,CAP,217,10,0.206,103,capacitor bank voltage values -49,MT19,255,STATE,218,0,0.0,71,Module state report -50,MT19,255,RPM,219,0,0.0,71,RPM motor values -51,MSWI19,241,STATE,9,5,0.071,71,Module state report -52,MSWI19,241,MOTOR,10,50,0.79,79,Motor controller parameters -53,MSWI19,241,PUMPS,220,0,0.0,63,Pumps controller parameters -54,MSWI19,241,MPPTS,221,0,0.0,71,Mppts controller parameters -55,MSWI19,241,MCS,40,1,0.013,63,MCS controller parameters +22,MCC19_6,230,STATE,108,1,0.014,71,Module state report +23,MCC19_6,230,MEASUREMENTS,207,10,0.222,111,All measurements from the converter +24,MCC19_7,231,STATE,109,1,0.014,71,Module state report +25,MCC19_7,231,MEASUREMENTS,208,10,0.222,111,All measurements from the converter +26,MCC19_8,232,STATE,110,1,0.014,71,Module state report +27,MCC19_8,232,MEASUREMENTS,209,10,0.222,111,All measurements from the converter +28,MCC19_9,233,STATE,111,1,0.014,71,Module state report +29,MCC19_9,233,MEASUREMENTS,210,10,0.222,111,All measurements from the converter +30,MCB19_1,220,STATE,118,1,0.014,71,Module state report +31,MCB19_1,220,MEASUREMENTS,222,10,0.222,111,All measurements from the converter +32,MCB19_2,221,STATE,119,1,0.014,71,Module state report +33,MCB19_2,221,MEASUREMENTS,223,10,0.222,111,All measurements from the converter +34,MAC22,180,STATE,35,5,0.071,71,Module state report +35,MAC22,180,CONTACTOR,34,50,0.63,63,Contactor task response +36,MAM19,190,STATE,99,5,0.071,71,Module state report +37,MAM19,190,MOTOR,98,50,0.71,71,Motor controller parameters +38,MAM19,190,CONTACTOR,36,5,0.063,63,Contactor requests +39,MAB19,235,STATE,120,0,0.0,71,Module state report +40,MAB19,235,PUMPS,224,0,0.0,63,Pumps state +41,MSC19_1,250,STATE,112,1,0.014,71,Module state report +42,MSC19_1,250,ADC,211,10,0.206,103,Voltage measurements +43,MSC19_2,251,STATE,113,1,0.014,71,Module state report +44,MSC19_2,251,ADC,212,10,0.206,103,Voltage measurements +45,MSC19_3,252,STATE,114,1,0.014,71,Module state report +46,MSC19_3,252,ADC,213,10,0.206,103,Voltage measurements +47,MSC19_4,253,STATE,115,1,0.014,71,Module state report +48,MSC19_4,253,ADC,214,10,0.206,103,Current measurements +49,MSC19_5,254,STATE,116,1,0.014,71,Module state report +50,MSC19_5,254,ADC,215,10,0.206,103,Current measurements +51,MCS19,200,STATE,117,1,0.014,71,Module state report +52,MCS19,200,START_STAGES,37,50,0.71,71,Boat charging // Boat on +53,MCS19,200,BAT,216,10,0.206,103,battery voltage values +54,MCS19,200,CAP,217,10,0.206,103,capacitor bank voltage values +55,MT19,255,STATE,218,0,0.0,71,Module state report +56,MT19,255,RPM,219,0,0.0,71,RPM motor values +57,MSWI19,241,STATE,9,5,0.071,71,Module state report +58,MSWI19,241,MOTOR,10,50,0.79,79,Motor controller parameters +59,MSWI19,241,PUMPS,220,0,0.0,63,Pumps controller parameters +60,MSWI19,241,MPPTS,221,0,0.0,71,Mppts controller parameters +61,MSWI19,241,MCS,40,1,0.013,63,MCS controller parameters diff --git a/can_ids.h b/can_ids.h index 42da1b7..b77152d 100644 --- a/can_ids.h +++ b/can_ids.h @@ -1,5 +1,5 @@ // CODE GENERATED USING MAKOTEMPLATES.ORG, DO NOT EDIT. -#define CAN_VERSION "0.1.4" +#define CAN_VERSION "0.1.5" #include @@ -190,7 +190,7 @@ #define CAN_MSG_MVC19_2_STATE_ERROR_UNITS "" -// MCC19_1 - Modulo controlador de carga +// MCC19_1 - Modulo controlador de carga 1 #define CAN_SIGNATURE_MCC19_1 225 // MCC19_1 - STATE - Module state report #define CAN_MSG_MCC19_1_STATE_ID 103 @@ -240,7 +240,7 @@ #define CAN_MSG_MCC19_1_MEASUREMENTS_DT_UNITS "%/255" -// MCC19_2 - Modulo controlador de carga +// MCC19_2 - Modulo controlador de carga 2 #define CAN_SIGNATURE_MCC19_2 226 // MCC19_2 - STATE - Module state report #define CAN_MSG_MCC19_2_STATE_ID 104 @@ -290,7 +290,7 @@ #define CAN_MSG_MCC19_2_MEASUREMENTS_DT_UNITS "%/255" -// MCC19_3 - Modulo controlador de carga +// MCC19_3 - Modulo controlador de carga 3 #define CAN_SIGNATURE_MCC19_3 227 // MCC19_3 - STATE - Module state report #define CAN_MSG_MCC19_3_STATE_ID 105 @@ -340,7 +340,7 @@ #define CAN_MSG_MCC19_3_MEASUREMENTS_DT_UNITS "%/255" -// MCC19_4 - Modulo controlador de carga +// MCC19_4 - Modulo controlador de carga 4 #define CAN_SIGNATURE_MCC19_4 228 // MCC19_4 - STATE - Module state report #define CAN_MSG_MCC19_4_STATE_ID 106 @@ -390,7 +390,7 @@ #define CAN_MSG_MCC19_4_MEASUREMENTS_DT_UNITS "%/255" -// MCC19_5 - Modulo controlador de carga +// MCC19_5 - Modulo controlador de carga 5 #define CAN_SIGNATURE_MCC19_5 229 // MCC19_5 - STATE - Module state report #define CAN_MSG_MCC19_5_STATE_ID 107 @@ -440,8 +440,8 @@ #define CAN_MSG_MCC19_5_MEASUREMENTS_DT_UNITS "%/255" -// MCC19_6 - Modulo controlador de carga -#define CAN_SIGNATURE_MCC19_6 239 +// MCC19_6 - Modulo controlador de carga 6 +#define CAN_SIGNATURE_MCC19_6 230 // MCC19_6 - STATE - Module state report #define CAN_MSG_MCC19_6_STATE_ID 108 #define CAN_MSG_MCC19_6_STATE_LENGTH 3 @@ -490,10 +490,160 @@ #define CAN_MSG_MCC19_6_MEASUREMENTS_DT_UNITS "%/255" -// MCB19_1 - Modulo de carregamento das baterias auxiliares +// MCC19_7 - Modulo controlador de carga 7 +#define CAN_SIGNATURE_MCC19_7 231 +// MCC19_7 - STATE - Module state report +#define CAN_MSG_MCC19_7_STATE_ID 109 +#define CAN_MSG_MCC19_7_STATE_LENGTH 3 +#define CAN_MSG_MCC19_7_STATE_FREQUENCY 1 +#define CAN_MSG_MCC19_7_STATE_SIGNATURE_BYTE 0 // @@ -515,6 +515,165 @@ typedef struct }; } can_mcc19_6_measurements_msg_t; +// Module state report +typedef struct +{ + union { + uint8_t raw[8]; + struct { + uint8_t signature; // Senders signature. Units: + uint8_t state; // State code. Units: + struct { // Control flags for operating point + uint8_t enable : 1; + uint8_t vi_safe_range : 1; + uint8_t vo_safe_range : 1; + uint8_t vi_stable : 1; + uint8_t dt_safe_range : 1; + uint8_t _unused : 3; + } control; + }; + }; +} can_mcc19_7_state_msg_t; + +// All measurements from the converter +typedef struct +{ + union { + uint8_t raw[8]; + struct { + uint8_t signature; // Senders signature. Units: + union { // Average output voltage, bytes low/high. Units: V/100 + uint16_t output_voltage; + struct { + uint8_t output_voltage_l; + uint8_t output_voltage_h; + }; + }; + union { // Average input current, bytes low/high. Units: A/100 + uint16_t input_current; + struct { + uint8_t input_current_l; + uint8_t input_current_h; + }; + }; + union { // Average input voltage, bytes low/high. Units: V/100 + uint16_t input_voltage; + struct { + uint8_t input_voltage_l; + uint8_t input_voltage_h; + }; + }; + uint8_t dt; // converter's duty cycle. Units: %/255 + }; + }; +} can_mcc19_7_measurements_msg_t; + +// Module state report +typedef struct +{ + union { + uint8_t raw[8]; + struct { + uint8_t signature; // Senders signature. Units: + uint8_t state; // State code. Units: + struct { // Control flags for operating point + uint8_t enable : 1; + uint8_t vi_safe_range : 1; + uint8_t vo_safe_range : 1; + uint8_t vi_stable : 1; + uint8_t dt_safe_range : 1; + uint8_t _unused : 3; + } control; + }; + }; +} can_mcc19_8_state_msg_t; + +// All measurements from the converter +typedef struct +{ + union { + uint8_t raw[8]; + struct { + uint8_t signature; // Senders signature. Units: + union { // Average output voltage, bytes low/high. Units: V/100 + uint16_t output_voltage; + struct { + uint8_t output_voltage_l; + uint8_t output_voltage_h; + }; + }; + union { // Average input current, bytes low/high. Units: A/100 + uint16_t input_current; + struct { + uint8_t input_current_l; + uint8_t input_current_h; + }; + }; + union { // Average input voltage, bytes low/high. Units: V/100 + uint16_t input_voltage; + struct { + uint8_t input_voltage_l; + uint8_t input_voltage_h; + }; + }; + uint8_t dt; // converter's duty cycle. Units: %/255 + }; + }; +} can_mcc19_8_measurements_msg_t; + +// Module state report +typedef struct +{ + union { + uint8_t raw[8]; + struct { + uint8_t signature; // Senders signature. Units: + uint8_t state; // State code. Units: + struct { // Control flags for operating point + uint8_t enable : 1; + uint8_t vi_safe_range : 1; + uint8_t vo_safe_range : 1; + uint8_t vi_stable : 1; + uint8_t dt_safe_range : 1; + uint8_t _unused : 3; + } control; + }; + }; +} can_mcc19_9_state_msg_t; + +// All measurements from the converter +typedef struct +{ + union { + uint8_t raw[8]; + struct { + uint8_t signature; // Senders signature. Units: + union { // Average output voltage, bytes low/high. Units: V/100 + uint16_t output_voltage; + struct { + uint8_t output_voltage_l; + uint8_t output_voltage_h; + }; + }; + union { // Average input current, bytes low/high. Units: A/100 + uint16_t input_current; + struct { + uint8_t input_current_l; + uint8_t input_current_h; + }; + }; + union { // Average input voltage, bytes low/high. Units: V/100 + uint16_t input_voltage; + struct { + uint8_t input_voltage_l; + uint8_t input_voltage_h; + }; + }; + uint8_t dt; // converter's duty cycle. Units: %/255 + }; + }; +} can_mcc19_9_measurements_msg_t; + // Module state report typedef struct { @@ -1174,6 +1333,12 @@ typedef struct { can_mcc19_5_measurements_msg_t mcc19_5_measurements; can_mcc19_6_state_msg_t mcc19_6_state; can_mcc19_6_measurements_msg_t mcc19_6_measurements; + can_mcc19_7_state_msg_t mcc19_7_state; + can_mcc19_7_measurements_msg_t mcc19_7_measurements; + can_mcc19_8_state_msg_t mcc19_8_state; + can_mcc19_8_measurements_msg_t mcc19_8_measurements; + can_mcc19_9_state_msg_t mcc19_9_state; + can_mcc19_9_measurements_msg_t mcc19_9_measurements; can_mcb19_1_state_msg_t mcb19_1_state; can_mcb19_1_measurements_msg_t mcb19_1_measurements; can_mcb19_2_state_msg_t mcb19_2_state; diff --git a/sample.json b/sample.json index 16fab57..f0a1102 100644 --- a/sample.json +++ b/sample.json @@ -101,6 +101,50 @@ "frame_length": 79 } ] + }, + { + "name": "MAM21", + "description": "Mamm", + "signature": 11, + "topics": [ + { + "name": "MOTOR3", + "description": "Motor controller parameters", + "id": 19, + "bytes": [ + { + "name": "SIGNATURE", + "description": "Senders signature", + "type": "uint8_t", + "units": "" + }, + { + "name": "MOTOR", + "description": "Switches and states", + "type": "bitfield", + "units": "", + "bits": [ + "MOTOR_ON", + null, + null, + null, + null, + null, + null, + null + ] + }, + null, + null, + null, + null, + null, + null + ], + "frequency": 10, + "frame_length": 63 + } + ] } ], "bitrate": 500000.0 From eadb7e4dbd5a42517f11d8617a77d0a7723b5903 Mon Sep 17 00:00:00 2001 From: alejopm03 Date: Tue, 5 Mar 2024 00:00:41 -0300 Subject: [PATCH 2/2] feat(mcc23): rename MCC19 to MCC23 and add auxiliary measurements topic --- can_ids.csv | 109 ++--- can_ids.h | 981 ++++++++++++++++++++++++------------------- can_ids.json | 306 +++++++++++++- can_ids_generator.py | 35 +- can_parser_types.h | 243 +++++++++-- 5 files changed, 1141 insertions(+), 533 deletions(-) diff --git a/can_ids.csv b/can_ids.csv index 8791bc5..3637f5d 100644 --- a/can_ids.csv +++ b/can_ids.csv @@ -11,53 +11,62 @@ 9,MDE22,170,STEERINGBAT_MEASUREMENTS,201,10,0.206,103,Auxiliar Battery Voltage 10,MVC19_1,210,STATE,101,1,0.014,71,Module state report 11,MVC19_2,211,STATE,102,1,0.014,71,Module state report -12,MCC19_1,225,STATE,103,1,0.014,71,Module state report -13,MCC19_1,225,MEASUREMENTS,202,10,0.222,111,All measurements from the converter -14,MCC19_2,226,STATE,104,1,0.014,71,Module state report -15,MCC19_2,226,MEASUREMENTS,203,10,0.222,111,All measurements from the converter -16,MCC19_3,227,STATE,105,1,0.014,71,Module state report -17,MCC19_3,227,MEASUREMENTS,204,10,0.222,111,All measurements from the converter -18,MCC19_4,228,STATE,106,1,0.014,71,Module state report -19,MCC19_4,228,MEASUREMENTS,205,10,0.222,111,All measurements from the converter -20,MCC19_5,229,STATE,107,1,0.014,71,Module state report -21,MCC19_5,229,MEASUREMENTS,206,10,0.222,111,All measurements from the converter -22,MCC19_6,230,STATE,108,1,0.014,71,Module state report -23,MCC19_6,230,MEASUREMENTS,207,10,0.222,111,All measurements from the converter -24,MCC19_7,231,STATE,109,1,0.014,71,Module state report -25,MCC19_7,231,MEASUREMENTS,208,10,0.222,111,All measurements from the converter -26,MCC19_8,232,STATE,110,1,0.014,71,Module state report -27,MCC19_8,232,MEASUREMENTS,209,10,0.222,111,All measurements from the converter -28,MCC19_9,233,STATE,111,1,0.014,71,Module state report -29,MCC19_9,233,MEASUREMENTS,210,10,0.222,111,All measurements from the converter -30,MCB19_1,220,STATE,118,1,0.014,71,Module state report -31,MCB19_1,220,MEASUREMENTS,222,10,0.222,111,All measurements from the converter -32,MCB19_2,221,STATE,119,1,0.014,71,Module state report -33,MCB19_2,221,MEASUREMENTS,223,10,0.222,111,All measurements from the converter -34,MAC22,180,STATE,35,5,0.071,71,Module state report -35,MAC22,180,CONTACTOR,34,50,0.63,63,Contactor task response -36,MAM19,190,STATE,99,5,0.071,71,Module state report -37,MAM19,190,MOTOR,98,50,0.71,71,Motor controller parameters -38,MAM19,190,CONTACTOR,36,5,0.063,63,Contactor requests -39,MAB19,235,STATE,120,0,0.0,71,Module state report -40,MAB19,235,PUMPS,224,0,0.0,63,Pumps state -41,MSC19_1,250,STATE,112,1,0.014,71,Module state report -42,MSC19_1,250,ADC,211,10,0.206,103,Voltage measurements -43,MSC19_2,251,STATE,113,1,0.014,71,Module state report -44,MSC19_2,251,ADC,212,10,0.206,103,Voltage measurements -45,MSC19_3,252,STATE,114,1,0.014,71,Module state report -46,MSC19_3,252,ADC,213,10,0.206,103,Voltage measurements -47,MSC19_4,253,STATE,115,1,0.014,71,Module state report -48,MSC19_4,253,ADC,214,10,0.206,103,Current measurements -49,MSC19_5,254,STATE,116,1,0.014,71,Module state report -50,MSC19_5,254,ADC,215,10,0.206,103,Current measurements -51,MCS19,200,STATE,117,1,0.014,71,Module state report -52,MCS19,200,START_STAGES,37,50,0.71,71,Boat charging // Boat on -53,MCS19,200,BAT,216,10,0.206,103,battery voltage values -54,MCS19,200,CAP,217,10,0.206,103,capacitor bank voltage values -55,MT19,255,STATE,218,0,0.0,71,Module state report -56,MT19,255,RPM,219,0,0.0,71,RPM motor values -57,MSWI19,241,STATE,9,5,0.071,71,Module state report -58,MSWI19,241,MOTOR,10,50,0.79,79,Motor controller parameters -59,MSWI19,241,PUMPS,220,0,0.0,63,Pumps controller parameters -60,MSWI19,241,MPPTS,221,0,0.0,71,Mppts controller parameters -61,MSWI19,241,MCS,40,1,0.013,63,MCS controller parameters +12,MCC23_1,225,STATE,103,1,0.014,71,Module state report +13,MCC23_1,225,MEASUREMENTS,202,10,0.222,111,All measurements from the converter +14,MCC23_1,225,AUX_MEASUREMENTS,225,10,0.142,71,Auxiliary measurements from the converter +15,MCC23_2,226,STATE,104,1,0.014,71,Module state report +16,MCC23_2,226,MEASUREMENTS,203,10,0.222,111,All measurements from the converter +17,MCC23_2,226,AUX_MEASUREMENTS,226,10,0.142,71,Auxiliary measurements from the converter +18,MCC23_3,227,STATE,105,1,0.014,71,Module state report +19,MCC23_3,227,MEASUREMENTS,204,10,0.222,111,All measurements from the converter +20,MCC23_3,227,AUX_MEASUREMENTS,227,10,0.142,71,Auxiliary measurements from the converter +21,MCC23_4,228,STATE,106,1,0.014,71,Module state report +22,MCC23_4,228,MEASUREMENTS,205,10,0.222,111,All measurements from the converter +23,MCC23_4,228,AUX_MEASUREMENTS,228,10,0.142,71,Auxiliary measurements from the converter +24,MCC23_5,229,STATE,107,1,0.014,71,Module state report +25,MCC23_5,229,MEASUREMENTS,206,10,0.222,111,All measurements from the converter +26,MCC23_5,229,AUX_MEASUREMENTS,229,10,0.142,71,Auxiliary measurements from the converter +27,MCC23_6,230,STATE,108,1,0.014,71,Module state report +28,MCC23_6,230,MEASUREMENTS,207,10,0.222,111,All measurements from the converter +29,MCC23_6,230,AUX_MEASUREMENTS,230,10,0.142,71,Auxiliary measurements from the converter +30,MCC23_7,231,STATE,109,1,0.014,71,Module state report +31,MCC23_7,231,MEASUREMENTS,208,10,0.222,111,All measurements from the converter +32,MCC23_7,231,AUX_MEASUREMENTS,231,10,0.142,71,Auxiliary measurements from the converter +33,MCC23_8,232,STATE,110,1,0.014,71,Module state report +34,MCC23_8,232,MEASUREMENTS,209,10,0.222,111,All measurements from the converter +35,MCC23_8,232,AUX_MEASUREMENTS,232,10,0.142,71,Auxiliary measurements from the converter +36,MCC23_9,233,STATE,111,1,0.014,71,Module state report +37,MCC23_9,233,MEASUREMENTS,210,10,0.222,111,All measurements from the converter +38,MCC23_9,233,AUX_MEASUREMENTS,233,10,0.142,71,Auxiliary measurements from the converter +39,MCB19_1,220,STATE,118,1,0.014,71,Module state report +40,MCB19_1,220,MEASUREMENTS,222,10,0.222,111,All measurements from the converter +41,MCB19_2,221,STATE,119,1,0.014,71,Module state report +42,MCB19_2,221,MEASUREMENTS,223,10,0.222,111,All measurements from the converter +43,MAC22,180,STATE,35,5,0.071,71,Module state report +44,MAC22,180,CONTACTOR,34,50,0.63,63,Contactor task response +45,MAM19,190,STATE,99,5,0.071,71,Module state report +46,MAM19,190,MOTOR,98,50,0.71,71,Motor controller parameters +47,MAM19,190,CONTACTOR,36,5,0.063,63,Contactor requests +48,MAB19,235,STATE,120,0,0.0,71,Module state report +49,MAB19,235,PUMPS,224,0,0.0,63,Pumps state +50,MSC19_1,250,STATE,112,1,0.014,71,Module state report +51,MSC19_1,250,ADC,211,10,0.206,103,Voltage measurements +52,MSC19_2,251,STATE,113,1,0.014,71,Module state report +53,MSC19_2,251,ADC,212,10,0.206,103,Voltage measurements +54,MSC19_3,252,STATE,114,1,0.014,71,Module state report +55,MSC19_3,252,ADC,213,10,0.206,103,Voltage measurements +56,MSC19_4,253,STATE,115,1,0.014,71,Module state report +57,MSC19_4,253,ADC,214,10,0.206,103,Current measurements +58,MSC19_5,254,STATE,116,1,0.014,71,Module state report +59,MSC19_5,254,ADC,215,10,0.206,103,Current measurements +60,MCS19,200,STATE,117,1,0.014,71,Module state report +61,MCS19,200,START_STAGES,37,50,0.71,71,Boat charging // Boat on +62,MCS19,200,BAT,216,10,0.206,103,battery voltage values +63,MCS19,200,CAP,217,10,0.206,103,capacitor bank voltage values +64,MT19,255,STATE,218,0,0.0,71,Module state report +65,MT19,255,RPM,219,0,0.0,71,RPM motor values +66,MSWI19,241,STATE,9,5,0.071,71,Module state report +67,MSWI19,241,MOTOR,10,50,0.79,79,Motor controller parameters +68,MSWI19,241,PUMPS,220,0,0.0,63,Pumps controller parameters +69,MSWI19,241,MPPTS,221,0,0.0,71,Mppts controller parameters +70,MSWI19,241,MCS,40,1,0.013,63,MCS controller parameters diff --git a/can_ids.h b/can_ids.h index b77152d..f333897 100644 --- a/can_ids.h +++ b/can_ids.h @@ -190,454 +190,571 @@ #define CAN_MSG_MVC19_2_STATE_ERROR_UNITS "" -// MCC19_1 - Modulo controlador de carga 1 -#define CAN_SIGNATURE_MCC19_1 225 -// MCC19_1 - STATE - Module state report -#define CAN_MSG_MCC19_1_STATE_ID 103 -#define CAN_MSG_MCC19_1_STATE_LENGTH 3 -#define CAN_MSG_MCC19_1_STATE_FREQUENCY 1 -#define CAN_MSG_MCC19_1_STATE_SIGNATURE_BYTE 0 //