| | |
| | | #include <string.h> |
| | | |
| | | uint16_t g_com_map[COM_MAP_SIZE]; |
| | | char swname[] = "CZURT_ZJBQ"; // 车载URT——之江标签 |
| | | |
| | | |
| | | uint32_t save_com_map_to_flash(void) |
| | | { |
| | |
| | | void parameter_init(void) |
| | | { |
| | | MCUFlash_Read(APP_CONFIG_CTRL_MAP, (uint8_t *)&g_com_map, sizeof(g_com_map)); |
| | | // memcpy(&g_com_map[SWNAME_INDEX], swname, 16); |
| | | if (g_com_map[0] != 0x55AA) |
| | | { |
| | | g_com_map[0] = 0x55AA; |
| | | g_com_map[DEV_ID] = 0x1872; // DEFAULT_DEV_ID; //默认设备ID |
| | | g_com_map[DEV_ID] = 0x1872; // DEFAULT_DEV_ID; //Ĭ���豸ID |
| | | |
| | | g_com_map[COM_INTERVAL] = 1000; |
| | | g_com_map[MAX_REPORT_ANC_NUM] = 10; |
| | | g_com_map[GROUP_ID] = 0; |
| | | g_com_map[DIST_OFFSET] = (uint16_t)-31; |
| | | |
| | | g_com_map[DEV_ROLE] = 0x1; // 标签 |
| | | g_com_map[DEV_ROLE] = 0x1; // ��ǩ |
| | | |
| | | g_com_map[HEARTBEAT] = 0; |
| | | |
| | |
| | | g_com_map[TCP_IP_3] =42; |
| | | g_com_map[TCP_PORT] =9039; |
| | | |
| | | g_com_map[MQTT_IP_0] =192; |
| | | g_com_map[MQTT_IP_1] =168; |
| | | g_com_map[MQTT_IP_2] =1; |
| | | g_com_map[MQTT_IP_3] =100; |
| | | g_com_map[MQTT_PORT] =1883; |
| | | |
| | | g_com_map[GPS_HZ] = 1; |
| | | g_com_map[STATIONARY_TIME] = 5; |
| | | |