|
|
@@ -156,7 +156,17 @@ void process_bms_message(can_frame_t *frame, int len){
|
|
|
data_len = PACK_TEMPS_NUM * sizeof(int) + 1;
|
|
|
protocol_send_bms_info(frame->head.can_addr, frame->key, data, data_len);
|
|
|
break;
|
|
|
- }
|
|
|
+ }
|
|
|
+ case CAN_KEY_AGING_TEMPS:{
|
|
|
+ u8 temps[2 * PACK_TEMPS_NUM * sizeof(int) + 1];
|
|
|
+ temps[0] = PACK_TEMPS_NUM * 2;
|
|
|
+ memcpy(temps+1, bms_state_get()->aging_start_temp, PACK_TEMPS_NUM * sizeof(int));
|
|
|
+ memcpy(temps+PACK_TEMPS_NUM * sizeof(int)+1, bms_state_get()->aging_max_temp, PACK_TEMPS_NUM * sizeof(int));
|
|
|
+ data = temps;
|
|
|
+ data_len = 2 * PACK_TEMPS_NUM * sizeof(int) + 1;
|
|
|
+ protocol_send_bms_info(frame->head.can_addr, frame->key, data, data_len);
|
|
|
+ break;
|
|
|
+ }
|
|
|
case CAN_KEY_BMS_GET_CELLS: {
|
|
|
cell_cmd_resp_t cells;
|
|
|
cells.cell_num = CELLS_NUM;
|