scapy.contrib.concox

class scapy.contrib.concox.BCDStrFixedLenField(name, default, length=None, length_from=None)

Bases: scapy.fields.StrFixedLenField

i2h(pkt, x)
class scapy.contrib.concox.CRX1New

Bases: scapy.packet.Packet

aliastypes
fields_desc
CRX1New fields

start_bit

XShortField

30840

default_packet_length

ByteField (Cond)

None

extended_packet_length

ShortField (Cond)

None

default_packet_content

PacketLenField (Cond)

None

extended_packet_content

PacketLenField (Cond)

None

end_bit

XShortField

3338

class scapy.contrib.concox.CRX1NewPacketContent

Bases: scapy.packet.Packet

aliastypes
fields_desc
CRX1NewPacketContent fields

protocol_number

XByteEnumField

18

terminal_id

BCDStrFixedLenField (Cond)

b'00000000'

year

ByteField (Cond)

0

month

ByteField (Cond)

1

day

ByteField (Cond)

1

hour

ByteField (Cond)

0

minute

ByteField (Cond)

0

second

ByteField (Cond)

0

gps_information_length

BitField (Cond) (4 bits)

0

positioning_satellite_number

BitField (Cond) (4 bits)

0

latitude

ScalingField (Cond)

0

longitude

ScalingField (Cond)

0

speed

ByteField (Cond)

0

course

BitField (Cond) (10 bits)

0

latitude_hemisphere

BitEnumField (Cond) (1 bit)

0

longitude_hemisphere

BitEnumField (Cond) (1 bit)

0

gps_been_positioning

BitEnumField (Cond) (1 bit)

0

gps_status

BitEnumField (Cond) (1 bit)

0

course_status_reserved

BitField (Cond) (2 bits)

0

lbs_length

ByteField (Cond)

0

mcc

XShortField (Cond)

0

mnc

XByteField (Cond)

0

lac

XShortField (Cond)

0

cell_id

X3BytesField (Cond)

0

mileage

IntField (Cond)

0

defence

BitEnumField (Cond) (1 bit)

0

acc

BitEnumField (Cond) (1 bit)

0

charge

BitEnumField (Cond) (1 bit)

0

alarm

BitEnumField (Cond) (3 bits)

0

gps_tracking

BitEnumField (Cond) (1 bit)

0

oil_and_eletricity

BitEnumField (Cond) (1 bit)

0

voltage_level

ByteEnumField (Cond)

0

gsm_signal_strength

ByteEnumField (Cond)

0

command_length

FieldLenField (Cond)

None

server_flag_bit

XIntField (Cond)

0

command_content

StrLenField (Cond)

b''

alarm_extended

ByteEnumField (Cond)

0

language

ByteEnumField (Cond)

0

subprotocol_number

ByteEnumField (Cond)

0

external_battery

ShortField (Cond)

0

external_io_detection

FlagsField (Cond) (8 bits)

<Flag 0 ()>

information_serial_number

XShortField

None

crc

XShortField

None