chudk пре 7 година
родитељ
комит
af360c8a4a

+ 9 - 1
src/main/java/com/tidecloud/datacceptance/service/impl/DiscardServerHandler.java

@@ -115,7 +115,13 @@ public class DiscardServerHandler extends ChannelInboundHandlerAdapter {
         }
         }
         return null;
         return null;
     }
     }
-
+    
+    /**
+     * [3G*3918197044*015E*UD2,200917,004156,V,31.027562,N,121.4171983,E,0.00,0.0,0.0,0,38,61,13641,0,
+     * 00000010,6,0,460,0,6234,57810,122,6234,57458,126,6234,57459,123,6234,57811,120,6234,57443,119,
+     * 6233,61458,113,5,808A,34:96:72:1c:81:b1,-57,tidecloud,f4:83:cd:22:e4:e9,-62,parking,be:5f:f6:11:fd:2c,-65,
+     * office1_2.4GHz,20:6b:e7:42:39:60,-70,Guest_2.4GHz,2:6b:e7:42:39:60,-70,14.1]
+     */
     private Device getDevice(String msg) throws Exception {
     private Device getDevice(String msg) throws Exception {
         int startIndex = msg.indexOf("[");
         int startIndex = msg.indexOf("[");
         int endIndex = msg.indexOf("]");
         int endIndex = msg.indexOf("]");
@@ -124,7 +130,9 @@ public class DiscardServerHandler extends ChannelInboundHandlerAdapter {
 
 
         Device device = new Device();
         Device device = new Device();
         String gpsState = bodys[3];
         String gpsState = bodys[3];
+        logger.info("正在解析device,gpsState:" + gpsState);
         if (!"A".equals(gpsState)) {
         if (!"A".equals(gpsState)) {
+            logger.info("gps定位为:" + gpsState + "无效");
             return null;
             return null;
         }
         }
         String date = bodys[1];
         String date = bodys[1];