X-Git-Url: http://average.org/gitweb/?a=blobdiff_plain;f=gps303%2Fgps303proto.py;h=ad8fd7168fe4951d75eda0bf19f87e33bd9229e3;hb=c91cccfb91f1ea45dc886e2d75796e3af0b7f00f;hp=32aae55970b134409342ad766dfdf17710a7251e;hpb=ecb31fcdc354471235ba44edbad3b24a6bded905;p=loctrkd.git diff --git a/gps303/gps303proto.py b/gps303/gps303proto.py index 32aae55..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 @@ -347,6 +371,7 @@ class WIFI_POSITIONING(_WIFI_POSITIONING): class MANUAL_POSITIONING(GPS303Pkt): PROTO = 0x80 + INLINE = False class BATTERY_CHARGE(GPS303Pkt):