From: Eugene Crosser Date: Thu, 21 Apr 2022 23:36:07 +0000 (+0200) Subject: Add some more commands X-Git-Tag: 0.01~45 X-Git-Url: http://www.average.org/gitweb/?p=loctrkd.git;a=commitdiff_plain;h=c91cccfb91f1ea45dc886e2d75796e3af0b7f00f Add some more commands --- diff --git a/gps303/gps303proto.py b/gps303/gps303proto.py index 84358fb..ad8fd71 100755 --- a/gps303/gps303proto.py +++ b/gps303/gps303proto.py @@ -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