|
|
@ -110,6 +110,7 @@ void Hardware::initialize(int deviceId) { |
|
|
|
int32_t Hardware::process_rx_packet(from_where_t fromwhere, uint8_t *packet, int32_t len, uint8_t *receipt, int32_t &receiptsize, bool &matching) { |
|
|
|
Cmdheader_t *cmdheader = (Cmdheader_t *)packet; |
|
|
|
if (fromwhere == kuart) printf("==== rx: cmdid:%d subcmdid:%d id:%d\n", cmdheader->cmdid, cmdheader->subcmdid, cmdheader->data[0]); |
|
|
|
// printf("==== rx: cmdid:%d subcmdid:%d id:%d\n", cmdheader->cmdid, cmdheader->subcmdid, cmdheader->data[0]);
|
|
|
|
uint8_t *pdata = cmdheader->data; |
|
|
|
/**
|
|
|
|
* @brief Ping |
|
|
@ -218,8 +219,26 @@ int32_t Hardware::process_rx_packet(from_where_t fromwhere, uint8_t *packet, int |
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
static hpp272_data_t fake_hpp272data; |
|
|
|
//
|
|
|
|
PROCESS_CMD(kcmd_m211887_operation, 0, 1) { |
|
|
|
hpp272_data_t *hpp272data = hpp272.readVal(); |
|
|
|
// hpp272_data_t *hpp272data = hpp272.readVal();
|
|
|
|
|
|
|
|
fake_hpp272data.hydrogen_peroxide_volume = 101; |
|
|
|
fake_hpp272data.h2o_h2o2_rs = 102; |
|
|
|
fake_hpp272data.temperature1 = 103; |
|
|
|
fake_hpp272data.relative_humidity = 104; |
|
|
|
fake_hpp272data.absolute_hydrogen_peroxide = 105; |
|
|
|
fake_hpp272data.h2o_h2o2dew_point_temperature = 106; |
|
|
|
fake_hpp272data.reserved1 = 107; |
|
|
|
fake_hpp272data.water_volume = 108; |
|
|
|
fake_hpp272data.water_vapor_pressure = 109; |
|
|
|
fake_hpp272data.absolute_humidity = 110; |
|
|
|
fake_hpp272data.water_vapor_saturation_pressure_h2o = 111; |
|
|
|
fake_hpp272data.temperature2 = 112; |
|
|
|
fake_hpp272data.h2o2_vapor_pressure = 113; |
|
|
|
fake_hpp272data.water_vapor_saturation_pressure_h2o_h2o2 = 114; |
|
|
|
hpp272_data_t *hpp272data = &fake_hpp272data; |
|
|
|
if (hpp272data) { |
|
|
|
receipt[0] = 1; |
|
|
|
receipt[1] = 0; |
|
|
|