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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
| #include "board.h"
| typedef enum{
| BIND_SUCCESS=1,
| UNBIND,
| OPEN_GNSS,
| CLOSE_VIBRATION,
| QUARY_INFORMATION,
| CHANGE_POLL_FREQUENCY,
| OPEN_VIBRATION,
| }Message_RecvState;
|
| typedef enum
| {
| HEART = 0,
| ALARM,
| POSITION,
| } Message_SendState;
|
| typedef enum
| {
| OPEN_DEPART_ALARM = 0,
| CLOSE_ALARM,
| DISASSEMBLE,
| } Message_AlarmState;
| typedef struct{
| Message_SendState type;
| uint16_t tagId;
| bool bindState;
| uint16_t gunLableId;
| Message_AlarmState alarmType;
| double power;
| uint16_t warnDistence;
| uint16_t alarmDistence;
| double lng;
| double lat;
| uint16_t applyId;
| int result;
| }Commend_SendDate;
|
| typedef struct{
| Message_RecvState type;
| char applyID[10];
| uint16_t tagId;
| uint16_t gunLableId;
| uint16_t warnDistance;
| uint16_t alarmDistance;
| uint8_t frequency;
|
| }Commend_Datestruct;
| void message_from_4G_Handler(void);
| void gnss_forceopen(void);
| void bind_reset(void);
| void message_construct(void);
|
|