expliot.core.protocols.radio.dot154¶
Support for IEEE802.15.4 Protocol Plugins.
Submodules¶
Classes¶
Helper class to create and write data to the pcap file. |
|
Helper class to create pcap frame to write in pcap file. |
|
Timer class to support time out. |
|
Zigbee Auditor Class. |
|
Radio Class for IEEE 802.15.4 Protocol. |
Package Contents¶
- class expliot.core.protocols.radio.dot154.PcapDumper(datalink, filename)¶
Helper class to create and write data to the pcap file.
- __filename¶
- datalink¶
- 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.
- __packet¶
- pktlen¶
- __pcap_hdr¶
- pcap_frame¶
- __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.
- __get_timeout()¶
Return timeout.
- __set_timeout(timeout=1)¶
Set current time and timeout.
- is_timeout()¶
Return true if time out.
- timeout¶
- class expliot.core.protocols.radio.dot154.ZbAuditor¶
Zigbee Auditor Class.
- driver = None¶
- 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.
- __zbauditor = None¶
- get_device_info()¶
Get the basic information of radio which is 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()¶
Get the total number of packet received.
- get_transmitted_packets()¶
Get the total number of packet transmitted.
- __del__()¶
Set the radio to off.