Version 0.2b3
Z-Wave.Me Zniffer and Advanced Radio Toolkit (A.R.T.) is a software and hardware designed to help professionals and installers analyze wireless networks, decrypt Z-Wave/Thread/Zigbee/Bluetooth packets, compose and send packets.
Monitoring radio commands allows you to identify problems in the Z-Wave network, such as incorrect routes, associations with non-existent devices, incorrect packet, security schemes mismatch and much more.
Composing and sending packages will be useful for advanced installers and developers of Z-Wave devices to check regular and abnormal situations.
Z-Uno 2 or RaZberry 7 with a Z-Wave chip of the 7th generation and higher is used as equipment for listening and sending radio commands. The Zniffer/A.R.T. can work simultaneously with several equipment, in this case, you can observe the signal strength of each packet from various locations at the same time. It also allows to monitor multiple frequencies at the same time.
In order to enable the Zniffer feature in the equipment, it is necessary to purchase a license.
Zniffer/A.R.T. is available for macOS, Linux x64 and Windows 32/64. The latest version can be downloaded from:
https://storage.z-wave.me/zniffer/latest/Zniffer/A.R.T. software requires RaZberry 7 or Z-Uno 2 as a hardware. To enable the new feature a new firmware (version 7.26 or upper for RaZberry 7 and 3.0.9 for Z-Uno 2). Firmware update can be done right in the Zniffer/A.R.T. user interface.
Note that in order to upgrade older firmware you need to select the MODEM mode and baude rate 115200.
The license for your RaZberry 7 and Z-Uno 2 can also be purchased and enabled in the Zniffer/A.R.T. user interface after the firmware upgrade.
Zniffer/A.R.T. interface allows to add the equipment, start/stop traces, decode packets and send packets.
Сonnect the equipment to the computer, press "+" to add it to the devices list and select the serial port. If selected correctly, the equipment will be detected and UUID will be displayed.
Each equipment is can be configured in the devices list:
This window contains full information about the capabilities of the equipment and other functions.
You can send a packet only if the equipment is running on the Modem mode.
As an example, the screenshot shows a package from an socket plug with a measurement of energy consumption.
The trace window in real time shows all Z-Wave radio commands at a given frequency.
To create a new Trace window, select the equipment on the Devices tab and click the trace button. If the trace button is not active, then first you need to press the start button.
You can use several equipment at the same time in one Trace window. One equipment can be used in several Trace windows.
If you press the right mouse button in the Trace window anywhere, a context menu will appear.
Zniffer can work in Multi-Document Interface mode (with many windows inside one window, this is the default mode) as well as with separate windows. Use -ft command line option to switch to separate windows mode: zme_radiotools -ft
You can buy a license from the About equipment window or on the website, and you will need to specify the Device UUID.
https://z-wave.me/hardware-capabilities/
If the device already has a license, and you bought a new one, then open the window About equipment and it is applied automatically.
Both Z-Uno 2 and RaZberry 7 can work in two different modes:
All versions of Z-Uno 2 support both modes. All versions of RaZberry 7 support modem mode. PTI mode is supported only by some versions of RaZberry 7.
Connection RaZberry in PTI modeIn PTI mode RaZberry can communicate with the Z-Wave devices and output Z-Wave traffic via a PTI pin.
Connection RaZberry in Modem modeIn Modem mode RaZberry can't communicate with the Z-Wave devices, but it can send arbitrary Z-Wave packets to any Z-Wave network.
Connection Z-Uno in PTI modeIn PTI mode Z-Uno works like a normal device, transmits data from connected sensors to the Z-Wave network and output sniffed Z-Wave traffic to the computer via USB. Enable PTI mode in the sketch.
Connection Z-Uno in Modem modeIn Modem mode Z-Uno works only like a Z-Wave sniffer with the ability to send arbitrary z-wave packets. The Z-Uno is connected to the computer via USB.
The zme_webserial utility allows you to connect to the equipment that is used on a remote computer. This allows to watch packets from different points in the house in one user interface. The connection to the equipment is done via ethernet or Wi-Fi using the zme_webserial tool.
The zme_webserial utility works not only with Zniffer/A.R.T, but also with other Z-Wave.Me utilities, such as zme_make and zme_programmer.
When configuring the utility, you can specify which ports are visible remotely based on the "white" and "black" lists.
Equipment can be referenced by the port name or the UUID of the equipment.
Standart socket port is a 8998. Example of connecting to remote equipment:
To decrypt encrypted packets, you need to get the encryption keys. There are 3 ways to get encryption keys.
The key file should have a name XXXXXXXX.txt, where XXXXXXXX is the home ID in heximal, e.g. CEE10BF4.txt. Keys should be listed one per line in the form CC;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX;1
, where CC is the command class ID (98 for S0 key and 9F for S2 keys) and XXXX..XXXX is the key in heximal form.
For example for S2 Unauthenticated only:
98;;1
9F;037AF50DF8AE73BB3FDFA05295DB0A09;1
9F;;1
9F;;1
Please note that S2 Unauthenticated, S2 Authenticated and S2 Access keys are written in the same form. There might also be two more keys for Long Range written in the same form as other S2 keys: S2 Authenticated LR and S2 Access LR keys.
To correctly decrypt S0 and S2 packets the Zniffer has to catch the last Nonce between the sender and the receiver. Zniffer (in modem mode) can force re-syncronisation between the two devices by sending a Nonce Get on behalf of one of them.
The PTI pin is used to get network traffic in the PTI mode.
On the reverse side of the RaZberry there is a connector with GND and TX pins. To connect RaZberry PTI to a computer, you need a USB-TTL adapter.
Connection scheme:
To enable PTI mode on Z-Uno, you need to add the following code to the sketch. Any pin can be used for PTI. Selecting TX2 pin will forward PTI traffic to the Z-Uno USB port. Note that the pin selected for PTI is not available for your sketch.
The main sketch will continue to operate normally while PTI is enabled.
Example of the code with PTI enabled:
#define PTI_PIN TX2 // TX2 is default USB pin
#define PTI_BAUDRATE 230400 L // The minimal baud rate is 230400, the maximum baud rate is 1.6MBit
void setup() {
Serial0.begin(115200);
if (zunoPTIConfigUART(PTI_PIN, PTI_BAUDRATE)) {
Serial0.println("[Done]");
} else {
Serial0.println("[Failed]");
}
}
// Just an empty loop function
void loop() {}
Zniffer/A.R.T. software is in active development. New features are added every month. Below is the list of features to be implemented soon: