User Defined Scripts

TxAfterRx

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

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 0×0000 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.

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 dfined 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.

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 dfines in its different states, i.e. Normal, Fixed, Normaland Selected, FixedandSelected, 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