| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #ifndef _DEAL_DA_4G_H_
- #define _DEAL_DA_4G_H_
- #include "../Hardware/boardinit.h"
- typedef struct _system_cmd_0x2041_{
- uint16_t devType; //设备类型
- uint32_t devSn; //设备SN
- uint32_t reserve; //预留
- }__attribute__((packed))systemCmd0x2041;
- typedef struct _system_cmd_0x2025_{ // 路由表上报
- uint16_t devType;
- uint32_t devSn;
- uint16_t targetType;
- uint32_t targetSn;
- uint32_t reserve;
- }__attribute__((packed))systemCmd0x2025;
- typedef struct _sytem_cmd_0x2030_{
- uint16_t devTypeM;
- uint32_t devSnM;
- uint16_t devTypeS;
- uint32_t devSnS;
- uint8_t cfgfileNo[8];
- uint32_t reserve;
- uint8_t para[28];
- }__attribute__((packed))systemCmd0x2030;
- extern void up_system_cmd_0x2041(uint8_t *outdata, uint8_t *len);
- extern void up_system_cmd_0x2025(uint8_t *data, uint8_t *len, uint16_t devType, uint32_t devSn);
- extern void up_system_cmd_0x2030(uint8_t *data, uint8_t *seg8data, uint8_t *cfgfile, uint8_t *len);
- typedef struct _update_cmd_0x2001_{
- uint16_t devType;
- uint32_t devSn;
- uint32_t appVer;
- uint16_t taskId;
- uint32_t reserve;
- }__attribute__((packed))updateCmd0x2001;
- typedef struct _update_cmd_0x2002_{
- uint16_t devTypeM;
- uint32_t devSnM;
- uint16_t devTypeS;
- uint32_t devSnS;
- uint8_t firmType; // 固件类型
- uint16_t taskId;
- uint8_t updateCode;
- uint32_t reserve;
- }__attribute__((packed))updateCmd0x2002;
- extern void up_update_cmd_0x2001(uint8_t *outdata, uint8_t *len,uint16_t taskId);
- extern void up_update_cmd_0x2002(uint8_t *outdata, uint8_t *len,uint16_t devType, uint32_t devSn,uint16_t taskId,uint8_t firmType,uint8_t updateCode);
- typedef struct _data_cmd_0x2061_{
- uint16_t devTypeM;
- uint32_t devSnM;
- uint16_t devTypeS;
- uint32_t devSnS;
- uint32_t reserve;
- uint8_t bnewflag; // 新交易标识
- uint8_t palen;
- uint8_t para[128];
- }__attribute__((packed))dataCmd0x2061;
- extern void up_data_cmd_0x2061(uint8_t *outdata, uint8_t *len, uint32_t devSn, uint16_t devType, uint8_t bnewflag, uint8_t *da, uint8_t dalen);
- typedef struct _data_cmd_0x2062_{
- uint16_t devTypeM;
- uint32_t devSnM;
- uint16_t devTypeS;
- uint32_t devSnS;
- uint32_t reserve;
- uint8_t palen;
- uint8_t para[128];
- }__attribute__((packed))dataCmd0x2062;
- extern void up_data_cmd_0x2062(uint8_t *outdata, uint8_t *len, uint32_t devSn, uint16_t devType, uint8_t *da, uint8_t dalen);
- #endif
|