You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
988 B
C++

#include "GlobalDatas.h"
uint8_t ZigBee_back[16] = { 0x55, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
uint8_t qrdi_buf[8] = { 0x55,0x02,0x92,0x00,0x00,0x00,0x00,0xBB }; // <20><>OpenMV<4D><56><EFBFBD><EFBFBD>ʶ<EFBFBD><CAB6><EFBFBD><EFBFBD>ά<EFBFBD><CEAC>
uint8_t trackdi_buf[8] = { 0x55,0x02,0x91,0x00,0x00,0x00,0x00,0xBB }; //OpenMVѭ<56><D1AD>ָ<EFBFBD><D6B8>
uint8_t servo_buf[8] = { 0x55,0x02,0x91,0x03,0x00,0x00,0x00,0xBB }; // <20><>OpenMV<4D><56><EFBFBD>Ͷ<EFBFBD><CDB6><EFBFBD><EFBFBD>Ƕ<EFBFBD>
//ȫ<>ֱ<EFBFBD><D6B1><EFBFBD>
uint8_t ATM_Data[ATM_Data_Length];
uint8_t ZigBee_command[8];
uint8_t ZigBee_judge;
uint8_t infrare_com[6];
uint8_t sendflag;
unsigned long frisrtime;
unsigned long Tcount;
uint8_t Data_Type;
uint8_t Data_Flag;
uint8_t Data_Length;
uint8_t Data_OTABuf[40];
void DataTool::PrintDataArray(uint8_t* arr, uint8_t len)
{
Serial.println("------Data Array------");
for (uint8_t i = 0; i < len; i++)
{
Serial.print("arr[");
Serial.print(i);
Serial.print("] = 0x");
Serial.println(arr[i], HEX);
}
Serial.println("------Array End------");
}