提交一款正式版本
This commit is contained in:
parent
ab83a29699
commit
e11d8ec822
|
@ -30,12 +30,12 @@
|
||||||
|
|
||||||
|
|
||||||
// 正式平台链接
|
// 正式平台链接
|
||||||
// #define SYS_IOT_URL ("8.130.122.162")
|
#define SYS_IOT_URL ("8.130.122.162")
|
||||||
// #define SYS_IOT_PORT ("7153")
|
#define SYS_IOT_PORT ("7153")
|
||||||
|
|
||||||
//测试平台链接
|
//测试平台链接
|
||||||
#define SYS_IOT_URL ("8.130.105.38")
|
// #define SYS_IOT_URL ("8.130.105.38")
|
||||||
#define SYS_IOT_PORT ("7133")
|
// #define SYS_IOT_PORT ("7133")
|
||||||
|
|
||||||
|
|
||||||
#define K (8 * 1000)
|
#define K (8 * 1000)
|
||||||
|
|
|
@ -12,10 +12,8 @@
|
||||||
#include <at_device_ml307.h>
|
#include <at_device_ml307.h>
|
||||||
#include "drv_gpio.h"
|
#include "drv_gpio.h"
|
||||||
|
|
||||||
|
|
||||||
#define MAX_VALVE_NUM 8
|
#define MAX_VALVE_NUM 8
|
||||||
|
|
||||||
|
|
||||||
#define ML307_ENABLE_3_8_V GET_PIN(B, 3)
|
#define ML307_ENABLE_3_8_V GET_PIN(B, 3)
|
||||||
#define ML307_PWR_PIN GET_PIN(B, 4)
|
#define ML307_PWR_PIN GET_PIN(B, 4)
|
||||||
#define ML307_RST_PIN GET_PIN(B, 5)
|
#define ML307_RST_PIN GET_PIN(B, 5)
|
||||||
|
@ -34,7 +32,7 @@
|
||||||
#define CMD_TYPE_INSTRUCTION_REPLY 0x14 // 命令类型 - 指令下发回复 (设备->平台)
|
#define CMD_TYPE_INSTRUCTION_REPLY 0x14 // 命令类型 - 指令下发回复 (设备->平台)
|
||||||
#define CMD_TYPE_TIME_CALIBRATION 0x15 // 命令类型 - 时间校准 (设备->平台)
|
#define CMD_TYPE_TIME_CALIBRATION 0x15 // 命令类型 - 时间校准 (设备->平台)
|
||||||
|
|
||||||
#define PROTOCOL_VERSION 0x11 /*协议版本*/
|
#define PROTOCOL_VERSION 0x42 /*协议版本*/
|
||||||
/*数据序列号*/
|
/*数据序列号*/
|
||||||
#define DATA_SERIAL_NUM 0x0001 // 1
|
#define DATA_SERIAL_NUM 0x0001 // 1
|
||||||
|
|
||||||
|
@ -81,7 +79,6 @@
|
||||||
#define INSTRUCTION_DOWN_VALVE_REPLACE 0x62 // 更换阀门设备
|
#define INSTRUCTION_DOWN_VALVE_REPLACE 0x62 // 更换阀门设备
|
||||||
#define INSTRUCTION_DOWN_VALVE_REMOVE 0x63 // 移除阀门设备
|
#define INSTRUCTION_DOWN_VALVE_REMOVE 0x63 // 移除阀门设备
|
||||||
|
|
||||||
|
|
||||||
/************************************************************************************************************/
|
/************************************************************************************************************/
|
||||||
#define RESPONSE_CODE_SUCCESS 0x00 // 响应码 - 操作成功
|
#define RESPONSE_CODE_SUCCESS 0x00 // 响应码 - 操作成功
|
||||||
#define RESPONSE_CODE_CRC_FAIL 0x01 // 响应码 - CRC 校验失败
|
#define RESPONSE_CODE_CRC_FAIL 0x01 // 响应码 - CRC 校验失败
|
||||||
|
@ -249,7 +246,6 @@ extern rt_uint8_t ml307_disconnect_pdp_flag;
|
||||||
extern rt_uint8_t power_on_send_flag;
|
extern rt_uint8_t power_on_send_flag;
|
||||||
extern rt_uint8_t ml307_power_down_flag;
|
extern rt_uint8_t ml307_power_down_flag;
|
||||||
|
|
||||||
|
|
||||||
void Ml307_Send_Event(Ml307Event event_type);
|
void Ml307_Send_Event(Ml307Event event_type);
|
||||||
int ml307_device_register(void);
|
int ml307_device_register(void);
|
||||||
int BSP_Ml307_Thread_Init(void);
|
int BSP_Ml307_Thread_Init(void);
|
||||||
|
|
Loading…
Reference in New Issue