|
|
@@ -18,7 +18,7 @@
|
|
|
#define MULTI_FRAME_EN 1
|
|
|
#define UINT32_DEFAULT_VAL 0xFFFFFFFF
|
|
|
|
|
|
-static uint8_t g_s_log_lvl = LOG_LVL_I;
|
|
|
+static uint8_t g_s_log_lvl = LOG_LVL_D;
|
|
|
|
|
|
static uint32_t GetTickCount()
|
|
|
{
|
|
|
@@ -161,7 +161,7 @@ static void parse_finish_callback(n_indn_t *info)
|
|
|
{
|
|
|
for (int i = 0; i < info->msg_sz; i++)
|
|
|
{
|
|
|
- printf("%02X", info->msg[i]);
|
|
|
+ printf("0x%02x,", info->msg[i]);
|
|
|
}
|
|
|
}
|
|
|
printf("\r\n");
|
|
|
@@ -178,41 +178,52 @@ static void parse_finish_callback(n_indn_t *info)
|
|
|
* Definition | Public Functions
|
|
|
******************************************************************************/
|
|
|
|
|
|
+// uint8_t send_buf[] = {
|
|
|
+// 0x06,0x12,0x05,0xdf,0x03,0x22,0xf1,0x01,
|
|
|
+
|
|
|
+// 0x06,0x12,0x08,0xf1,0x10,0x34,0x62,0xf1,0x01,0x01,0x01,
|
|
|
+// 0x06,0x12,0x08,0xf1,0x21,0x00,0x04,0x21,0x06,0x22,0x8f,
|
|
|
+// 0x06,0x12,0x08,0xf1,0x22,0x04,0xd2,0x01,0x00,0x00,0x10,
|
|
|
+// 0x06,0x12,0x08,0xf1,0x23,0x00,0x00,0x00,0x01,0x00,0x00,
|
|
|
+// 0x06,0x12,0x08,0xf1,0x24,0x3c,0xfb,0x04,0x00,0x00,0x06,
|
|
|
+// 0x06,0x12,0x08,0xf1,0x25,0x00,0x00,0x3c,0xfc,0x04,0x00,
|
|
|
+// 0x06,0x60,0x08,0xf1,0x10,0x34,0x62,0xf1,0x01,0x01,0x01,
|
|
|
+// 0x06,0x12,0x08,0xf1,0x26,0x00,0x08,0x00,0x00,0x34,0xec,
|
|
|
+// 0x06,0x12,0x08,0xf1,0x27,0x0d,0x00,0x00,0x08,0x00,0x00,
|
|
|
+// 0x06,0x60,0x08,0xf1,0x21,0x00,0x04,0x21,0x06,0x06,0x8f,
|
|
|
+// 0x06,0x12,0x08,0xf1,0x28,0x43,0x4e,0x0d,0x00,0x01,0xaa,
|
|
|
+
|
|
|
+// 0x06,0x60,0x08,0xf1,0x22,0x04,0xd2,0x01,0x00,0x00,0x10,
|
|
|
+// 0x06,0x60,0x08,0xf1,0x23,0x00,0x00,0x00,0x01,0x00,0x00,
|
|
|
+// 0x06,0x60,0x08,0xf1,0x24,0x36,0x15,0x01,0x02,0x00,0x06,
|
|
|
+// 0x06,0x29,0x08,0xf1,0x10,0x2c,0x62,0xf1,0x01,0x01,0x01,
|
|
|
+// 0x06,0x60,0x08,0xf1,0x25,0x00,0x00,0x36,0x16,0x01,0x02,
|
|
|
+// 0x06,0x60,0x08,0xf1,0x26,0x01,0x08,0x00,0x00,0x36,0x17,
|
|
|
+// 0x06,0x29,0x08,0xf1,0x21,0x00,0x03,0x21,0x06,0x06,0x8f,
|
|
|
+// 0x06,0x60,0x08,0xf1,0x27,0x01,0x07,0x00,0x05,0x00,0x00,
|
|
|
+// 0x06,0x60,0x08,0xf1,0x28,0x36,0x18,0x01,0x03,0x0f,0xff,
|
|
|
+// 0x06,0x29,0x08,0xf1,0x22,0x04,0xd2,0x01,0x00,0x00,0x10,
|
|
|
+
|
|
|
+// 0x06,0x29,0x08,0xf1,0x03,0x7f,0x22,0x78,0xff,0xff,0xff, //连续帧中间来了个单帧.
|
|
|
+
|
|
|
+// 0x06,0x29,0x08,0xf1,0x23,0x00,0x00,0x00,0x01,0x00,0x00,
|
|
|
+// 0x06,0x29,0x08,0xf1,0x24,0x38,0x72,0x00,0x02,0x00,0x06,
|
|
|
+// 0x06,0x29,0x08,0xf1,0x25,0x00,0x00,0x38,0x73,0x00,0x03,
|
|
|
+// 0x06,0x29,0x08,0xf1,0x26,0x02,0x08,0x00,0x00,0x38,0x74,
|
|
|
+// 0x06,0x29,0x08,0xf1,0x27,0x01,0x01,0x00,0xff,0xff,0xff
|
|
|
+// };
|
|
|
uint8_t send_buf[] = {
|
|
|
- 0x06,0xf1,0x05,0xdf,0x03,0x22,0xf1,0x01,
|
|
|
-
|
|
|
0x06,0x12,0x08,0xf1,0x10,0x34,0x62,0xf1,0x01,0x01,0x01,
|
|
|
+ //中间省略一个流控帧.
|
|
|
0x06,0x12,0x08,0xf1,0x21,0x00,0x04,0x21,0x06,0x22,0x8f,
|
|
|
0x06,0x12,0x08,0xf1,0x22,0x04,0xd2,0x01,0x00,0x00,0x10,
|
|
|
0x06,0x12,0x08,0xf1,0x23,0x00,0x00,0x00,0x01,0x00,0x00,
|
|
|
0x06,0x12,0x08,0xf1,0x24,0x3c,0xfb,0x04,0x00,0x00,0x06,
|
|
|
0x06,0x12,0x08,0xf1,0x25,0x00,0x00,0x3c,0xfc,0x04,0x00,
|
|
|
- 0x06,0x60,0x08,0xf1,0x10,0x34,0x62,0xf1,0x01,0x01,0x01,
|
|
|
0x06,0x12,0x08,0xf1,0x26,0x00,0x08,0x00,0x00,0x34,0xec,
|
|
|
0x06,0x12,0x08,0xf1,0x27,0x0d,0x00,0x00,0x08,0x00,0x00,
|
|
|
- 0x06,0x60,0x08,0xf1,0x21,0x00,0x04,0x21,0x06,0x06,0x8f,
|
|
|
0x06,0x12,0x08,0xf1,0x28,0x43,0x4e,0x0d,0x00,0x01,0xaa,
|
|
|
-
|
|
|
- 0x06,0x60,0x08,0xf1,0x22,0x04,0xd2,0x01,0x00,0x00,0x10,
|
|
|
- 0x06,0x60,0x08,0xf1,0x23,0x00,0x00,0x00,0x01,0x00,0x00,
|
|
|
- 0x06,0x60,0x08,0xf1,0x24,0x36,0x15,0x01,0x02,0x00,0x06,
|
|
|
- 0x06,0x29,0x08,0xf1,0x10,0x2c,0x62,0xf1,0x01,0x01,0x01,
|
|
|
- 0x06,0x60,0x08,0xf1,0x25,0x00,0x00,0x36,0x16,0x01,0x02,
|
|
|
- 0x06,0x60,0x08,0xf1,0x26,0x01,0x08,0x00,0x00,0x36,0x17,
|
|
|
- 0x06,0x29,0x08,0xf1,0x21,0x00,0x03,0x21,0x06,0x06,0x8f,
|
|
|
- 0x06,0x60,0x08,0xf1,0x27,0x01,0x07,0x00,0x05,0x00,0x00,
|
|
|
- 0x06,0x60,0x08,0xf1,0x28,0x36,0x18,0x01,0x03,0x0f,0xff,
|
|
|
- 0x06,0x29,0x08,0xf1,0x22,0x04,0xd2,0x01,0x00,0x00,0x10,
|
|
|
-
|
|
|
- 0x06,0x29,0x08,0xf1,0x03,0x7f,0x22,0x78,0xff,0xff,0xff, //连续帧中间来了个单帧.
|
|
|
-
|
|
|
- 0x06,0x29,0x08,0xf1,0x23,0x00,0x00,0x00,0x01,0x00,0x00,
|
|
|
- 0x06,0x29,0x08,0xf1,0x24,0x38,0x72,0x00,0x02,0x00,0x06,
|
|
|
- 0x06,0x29,0x08,0xf1,0x25,0x00,0x00,0x38,0x73,0x00,0x03,
|
|
|
- 0x06,0x29,0x08,0xf1,0x26,0x02,0x08,0x00,0x00,0x38,0x74,
|
|
|
- 0x06,0x29,0x08,0xf1,0x27,0x01,0x01,0x00,0xff,0xff,0xff
|
|
|
};
|
|
|
-
|
|
|
void *rx_data_task(void)
|
|
|
{
|
|
|
uint32_t test_cnt = 0;
|
|
|
@@ -279,7 +290,10 @@ void *iso15765_parse_task(void)
|
|
|
{
|
|
|
for (int i=0; i<sizeof(data_process_handler_list)/sizeof(HANDLER_T); i++)
|
|
|
{
|
|
|
- iso15765_process(data_process_handler_list[i].process_handler);
|
|
|
+ if(UINT32_DEFAULT_VAL != data_process_handler_list[i].frame_id)
|
|
|
+ {
|
|
|
+ iso15765_process(data_process_handler_list[i].process_handler);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|