]> average.org Git - loctrkd.git/blobdiff - gps303/gps303proto.py
Add some more commands
[loctrkd.git] / gps303 / gps303proto.py
index 32aae55970b134409342ad766dfdf17710a7251e..ad8fd7168fe4951d75eda0bf19f87e33bd9229e3 100755 (executable)
@@ -272,8 +272,32 @@ class PROHIBIT_LBS(GPS303Pkt):
         return self.make_packet(pack("B", status))
 
 
+class LBS_SWITCH_TIMES(GPS303Pkt):
+    PROTO = 0x34
+    INLINE = False
+
+    def response(self):
+        return self.make_packet(b"")
+
+
+class REMOTE_MONITOR_PHONE(GPS303Pkt):
+    PROTO = 0x40
+    INLINE = False
+
+
+class SOS_PHONE(GPS303Pkt):
+    PROTO = 0x41
+    INLINE = False
+
+
+class DAD_PHONE(GPS303Pkt):
+    PROTO = 0x42
+    INLINE = False
+
+
 class MOM_PHONE(GPS303Pkt):
     PROTO = 0x43
+    INLINE = False
 
 
 class STOP_UPLOAD(GPS303Pkt):  # Server response to LOGIN to thwart the device
@@ -347,6 +371,7 @@ class WIFI_POSITIONING(_WIFI_POSITIONING):
 
 class MANUAL_POSITIONING(GPS303Pkt):
     PROTO = 0x80
+    INLINE = False
 
 
 class BATTERY_CHARGE(GPS303Pkt):