expliot.core.protocols.radio.dot154

Support for IEEE802.15.4 Protocol Plugins

Submodules

Package Contents

Classes

PcapDumper

Helper class to create and write data to the pcap file.

PcapFrame

Helper class to create pcap frame to write in pcap file.

Timer

Timer class to support time out.

ZbAuditor

Zigbee Auditor Class.

Dot154Radio

Radio Class for IEEE 802.15.4 Protocol.

class expliot.core.protocols.radio.dot154.PcapDumper(datalink, filename)

Helper class to create and write data to the pcap file.

write_to_pcapfile(pcapframe)

Write packet header and packet to pcap file.

Parameters

pcapframe – pcap frame including packet header and packet

class expliot.core.protocols.radio.dot154.PcapFrame(packet, ts32=None)

Helper class to create pcap frame to write in pcap file.

__build_packet_pcap_hdr()

Build the packet header string with timestamp and length info.

Returns

Packet header string

get_pcap_frame()

Return packet header string and packet string.

Returns

Packet header + packet string

class expliot.core.protocols.radio.dot154.Timer(timeout=1)

Timer class to support time out.

timeout
__get_timeout()

Return Timeout.

__set_timeout(timeout=1)

Set current time, and timeout.

is_timeout()

Return true if time out.

class expliot.core.protocols.radio.dot154.ZbAuditor

Zigbee Auditor Class.

get_interface_info()

Return Device information in dictionary format.

Returns

Dictionary of Device Name, FW Revision, Services

set_channel(channel, page=0)

Validate and Set Channel to Device.

get_channel()

Return Channel from Device.

get_radio_on_flag()

Return status of radio_on flag.

set_radio_on_flag(flag)

Set radio_on flag.

get_sniffer_on_flag()

Return status of sniffer_on flag.

set_sniffer_on_flag(flag)

Set sniffer_on flag.

radio_on()

Turn on device radio.

sniffer_on(channel, page=0)

Turn on device sniffer service.

packet_read(timeout=100)

Read data from device.

radio_off()

Turn off device radio.

sniffer_off()

Turn off device sniffer service.

inject_packet(packet)

Inject packet to Device.

scan_zb_network(mask)

Set Device in network scan mode.

Additionally it return network scan result as dictionary.

get_rxcount()

Return packet receive count from driver.

Returns

rx count

get_txcount()

Return packet transmit count from driver.

Returns

tx count

__del__()

Close the driver.

class expliot.core.protocols.radio.dot154.Dot154Radio

Radio Class for IEEE 802.15.4 Protocol.

get_device_info()

Returns basic information of Radio attached.

radio_on()

Turn ON Radio.

set_channel(channel, page=0)

Set Channel and Page.

sniffer_on(channel, page=0)

Turn ON Sniffer.

Parameters
  • channel – zigbee channel

  • page – zigbee frequecy page

read_raw_packet()

Read single packet from radio driver.

Returns

dict with packet as element

sniffer_off()

Turn OFF Sniffer.

radio_off()

Turn OFF Radio.

inject_raw_packet(packet)

Send raw packet to radio driver.

get_received_packets()

Returns total number of packet received.

get_transmitted_packets()

returns total number of packet transmitted.

__del__()