From 055f9672881d39e8fddcec7bc4e0a164245c797f Mon Sep 17 00:00:00 2001 From: zhaohe Date: Fri, 12 Jan 2024 17:41:32 +0800 Subject: [PATCH] update --- iflytop_xsync_protocol.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/iflytop_xsync_protocol.h b/iflytop_xsync_protocol.h index a3d2694..e076f05 100644 --- a/iflytop_xsync_protocol.h +++ b/iflytop_xsync_protocol.h @@ -7,8 +7,8 @@ #define IFLYTOP_XSYNC_SERVICE_XSYNC_PORT 19900 // xsync端端口 #define IFLYTOP_XSYNC_SERVICE_PC_PORT 19901 // pc 端端口 -#define IFLYTOP_XSYNC_TIMECODE_REPORT_XSYNC_PORT 19902 // xsync端端口 -#define IFLYTOP_XSYNC_TIMECODE_REPORT_PC_PORT 19903 // pc端端口 +#define IFLYTOP_XSYNC_EVENT_REPORT_XSYNC_PORT 19902 // xsync端端口 +#define IFLYTOP_XSYNC_EVENT_REPORT_PC_PORT 19903 // pc端端口 #define IFLYTOP_XSYNC_CAMERA_SYNC_PACKET_XSYNC_PORT 13013 // xsync端端口 #define IFLYTOP_XSYNC_CAMERA_SYNC_PACKET_PC_PORT 13014 // pc端端口 @@ -92,9 +92,14 @@ typedef struct { } iflytop_xsync_packet_header_t; typedef struct { - uint32_t timecode0; - uint32_t timecode1; -} iflytop_timecode_report_packet_t; + uint32_t eventid; + uint32_t data[]; +} iflytop_xsync_event_report_packet_t; + +typedef enum { + ktimecode_report_event = 0, + kxsync_work_state_report_event = 1, +} iflytop_event_type_t; #define XYSNC_REG_DEVICE_INFO_START_ADD 0 #define XYSNC_REG_STM32_CONFIG_START_ADD 16 @@ -210,7 +215,7 @@ typedef enum { xsync_stm32_action_none, // xsync_stm32_action_generator_new_mac, // xsync_stm32_action_factory_reset, // - xsync_stm32_action_reboot, // + xsync_stm32_action_reboot, // xsync_stm32_action_storage_cfg, // } xsync_stm32_action_t;