]> www.average.org Git - loctrkd.git/commitdiff
Add some more commands
authorEugene Crosser <crosser@average.org>
Thu, 21 Apr 2022 23:36:07 +0000 (01:36 +0200)
committerEugene Crosser <crosser@average.org>
Thu, 21 Apr 2022 23:36:07 +0000 (01:36 +0200)
gps303/gps303proto.py

index 84358fbcb66ee3b750a3dff2e6a4c5cc5b16cf47..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