forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

周巍
2024-04-11 91ef77c00ed797b1048c5187f416e351e646a009
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "sizhu_telecom_process.h"
#include "system_realtime_run_para.h"
 
uint8_t KVer_AES_128_SIZHU[16];
volatile GPRS_SEND_CTRL_T    gprs_control_g_sizhu;
SIZHU_GPRS_PROTOCOL_HEADER gprs_protocol_header_sizhu;
 
 
void    gprs_sizhu_handle(void);
 
GPRS_WORK_STATUS_T gprs_power_on_fun_sizhu();
GPRS_WORK_STATUS_T gprs_connection_fun_sizhu();
GPRS_WORK_STATUS_T Gprs_Send_Pro_sizhu();
GPRS_WORK_STATUS_T wait_gprs_send_ok_fun_sizhu();
GPRS_WORK_STATUS_T gprs_time_out_fun_sizhu();
GPRS_WORK_STATUS_T gprs_power_off_fun_sizhu(void);
 
 
void     GPRS_Init(u8 gprs_open_flag);
void gprs_protocol_header_2buff(uint8_t *header_in, uint8_t *buff, uint8_t len);
void  AES128_Encrypt_CRC_Send_SIZHU(u16 commandCode,uint16_t length);
void  AES128_Decrypt_SIZHU(u8* dataIn,u8* key,u8* dataOut,uint16_t length);
u8 IntervalReportingHandle(u16 IntervalReportingInterval,u16 IntervalReporting1Time);
void     gprs_data_save_process(calendar_obj * ptr);
void clear_para_gprs_data_sizhu(void);