xuxinyi 1 mesiac pred
rodič
commit
71dbc04914
2 zmenil súbory, kde vykonal 7 pridanie a 7 odobranie
  1. 2 2
      Core/Src/stm32f1xx_it.c
  2. 5 5
      README.md

+ 2 - 2
Core/Src/stm32f1xx_it.c

@@ -282,8 +282,8 @@ void USART2_IRQHandler(void)
           rx_buf_uart2_DMA[1] == 0xBB &&
           rx_buf_uart2_DMA[3] == deviceInfo.loraDeviceAddress_H &&
           rx_buf_uart2_DMA[4] == deviceInfo.loraDeviceAddress_L &&
-          rx_buf_uart2_DMA[8] == 0xFF &&
-          rx_buf_uart2_DMA[9] == 0xEE && !deviceInfo.isSOS)
+          rx_buf_uart2_DMA[10] == 0xFF &&
+          rx_buf_uart2_DMA[11] == 0xEE)
       {
         if (GET_CMD(deviceInfo.commandFromCloud) == IDLE &&
             GET_STEP(deviceInfo.commandFromCloud) == STEP_INIT)

+ 5 - 5
README.md

@@ -18,7 +18,7 @@
 目前测试后台地址是:3460
 
 1.停止上线通知
-55 BB 0A FC A5 00 00 34 60 FF EE
+55 BB 0A FC A5 00 00 00 34 60 FF EE
 
     {
         55 BB       : 帧头
@@ -26,12 +26,12 @@
         FC A5       : 设备地址
         00          : 预留
         00 00       : 预留
-        34 60       : 目标地址
+        34 60       : 目标地址(暂未启用)
         FF EE       : 帧尾
     }
 
 2.请求上报点卯信息
-55 BB 08 FC A5 00 00 34 60 FF EE
+55 BB 08 FC A5 00 00 00 34 60 FF EE
 
     {
         55 BB       : 帧头
@@ -39,12 +39,12 @@
         FC A5       : 设备地址
         00          : 预留
         00 00       : 预留
-        34 60       : 目标地址
+        34 60       : 目标地址(暂未启用)
         FF EE       : 帧尾
     }
 
 3.请求蓝牙数据时间
-55 BB 03 FC A5 0A 00 00 FF EE
+55 BB 03 FC A5 0A 00 00 34 60 FF EE
 
     {
         55 BB       : 帧头