# RFRemote **Repository Path**: weald2000/rfremote ## Basic Information - **Project Name**: RFRemote - **Description**: RF应用 - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-02-20 - **Last Updated**: 2025-03-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README uint8_t TX_DATA[TX_Data_Len] = {17, 0, 0, 0, 0, 0, 0,0x10,0x10,0x10,0x10,1,0,2,0}; /* * Byte 0:数据长度(包括Byte 0及最后两个校验和字节) * Byte1 - Byte 6 :Mac address * Byte7 - Byte10 :发送请求时钟周期,用于接收端判断是否重复发送的控制指令 * Byte11 - Command (本方案指令数据长度为4个字节,第1个字节为‘P’时,表示配对模式。第2个及第4个字节为设备控制指令。0:关,1:开) * Last two byte :校验和 * */ 进入对码方式:按582M开发板的Key1和download键,3秒后进入对码模式,持续发送对码数据5次。(设备要先进入对码模式) #define TX_Data_Len 20 #define RX_Data_Len (TX_Data_Len + 2) // 发送时,会数据会增加2字节 #define Cmd_Start 11 #define MAC_ADDR_Start 1 #define TIME_Start 7