scripts

hwBits

Last updated March 23, 2015, compatible with analyzer version 5.4 and up. Applicable for Peryton Smart.

This User Defined Script changes the HW I/O bit number 1 (Peryton-Smart3 + TG&HW Add-On) after receiving messages that meet the defined criteria (the filtering defined criteria included in this example is reception of messages that includes the string ’60’ inside their attributes – actually looking for messages from a ’60 beat Heart Beat Monitor’.

To download this Script press here.

AddMessages

Last updated May 17, 2009, compatible with analyzer version 2.3 and up. Applicable for ZigBee and Thread.

This User Defined Script changes the message color in Time View of messages holding pre-defined values in their MacHeaderSeq fields. The Script also changes copies the message to Message View section and changes the Message field color there (of specific messages holding pre-defined values in their MacHeaderSeq fields).

To download this Script press here.

.

TxAfterRx

Last updated September 18, 2012, compatible with analyzer version 4.0 and up and if Peryton-TG Add-On is enabled. Applicable for ZigBee.

This User Defined Script ‘looks’ for messages received from a specific device based on its Short Mac Source Address, changes one of the message’s bytes to ‘0’ (e.g. this can be used to changed the source or destination address) and transmits it over-the-air using the defined Traffic Generator Add-On settings (note that still ALL RECEIVED messages – no filtering – are recorded and kept in the data capture .anl file).

All received messages as well as the new duplicated and changed messages transmitted (in parallel) by the Traffic Generator Add-On are shown in Time View and the other Perytons™ Protocol Analyzer views. The Short Mac Source Address of the received message that triggers a preparation of a changed message and its transmission, is predefined in hexadecimal format using the analyzer’s ‘Preferences’, ‘General’ tab, ‘Connection String’ field under ‘Tools’.

For example: if ’12AB’ is placed in the Connection String field, when messages from a device with Short Mac Source Address = 0x12AB these will be duplicated, one of the messages’ bytes will be changed to 0x0000 and will be re-transmitted back over the air based on the defined settings of the Traffic Generator form. Note that if the Connection String is left empty, all received messages are both shown and transmitted over the air. The User Defined Script can run in parallel of the data being captured.

To download this Script press here.

SendToUDP

Last updated September 17, 2012, compatible with analyzer version 4.1 and up. Applicable for ZigBee and Thread.

This User Defined Script sends the data in messages received from device #16 over UDP. MAC data is built into a string holding message start indication, message index, time, RSSI and payload. This structure is sent over UDP to a predefined IP address and UDP port (these can be defined in ‘Preferences’, ‘General’ tab, ‘Connection String’ under ‘Tools’. For example 192.168.1.1:100 or www.domain.com:100). The Script can run in parallel of the data being captured, or when loading a file with previously captured data.

To download this User Defined Script press here.

DeviceIcon

Last updated December 20, 2010, compatible with analyzer version 2.56 and up. Applicable for ZigBee.

This User Defined Script draws predefined icons for the devices in the network topology (Network View) window. The icon can be selected from 2 groups of 4 icons each to indicate the devices in its different states, i.e. Normal, Fixed, Normal and Selected, Fixed and Selected, etc. The Script code in this example uses predefined icon images and assumes these are located in the images folder (under My Documents and Perytons). The User Defined Script can run in parallel of the data being captured, or when loading a file with previously captured data.

To download this Script and icon images (Zip file) press here.

ChannelActivity

Last updated November 15, 2010, compatible with analyzer version 3.1 and up. Applicable for ZigBee, Thread, PLC and Bluetooth Smart.

This User Defined Script builds up an x-y plot showing the last second and the average utilization of the channel. The plot is added as an additional chart in the Statistics Charts view. The Script can run in parallel of the data being captured, or when loading a file with previously captured data.

To download this User Defined Script press here.

AckLAtency

Last updated June 4, 2009, compatible with analyzer version 2.3 and up. Applicable for ZigBee and Thread.

This User Defined Script generates charts showing the histogram of acknowledgements and routing latency. It also generates alerts that are written to the log file and shown in the Events Log view, for message acknowledgements (acks) arriving later than 11 msec.

To download this Script press here.