From c91cccfb91f1ea45dc886e2d75796e3af0b7f00f Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Fri, 22 Apr 2022 01:36:07 +0200 Subject: [PATCH] Add some more commands --- gps303/gps303proto.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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 -- 2.43.0