Smart Protocol Analyzer
After installation, a SmartPA Launcher shortcut will appear on your desktop. Double click this shortcut to start SmartPA Launcher.
The SmartPA Launcher shows you some of the communication ports you can monitor. You can alternately select an existing capture file (*.spa) to preview.
After you have opened a communication port or a capture file, select File/Open in the SmartPA main window to get to the 'Load Protocol' dialog:
Browse into your protocol dll folder if required, select the protocol(s) in the list view, and press OK.
Data is captured if its a valid protocol packet. The protocol module automatically detects the master or slave setting. Once the data is captured, it can be examined by selecting the packet from the top list view. The list view contains summary information about the captured packets. A detailed description of the selected packet is shown in the tree view on the bottom left. According to the protocol, the packet is broken down into components and displayed in the tree hierarchy. The packet data is shown as raw bytes in the bottom right pane. By selecting the individual packet component in the left tree view, you can highlight the corresponding bytes in the raw data view on the right. The corresponding bytes get a blue foreground.
If you right click on one of the packets in the list view, the following context menu pops up:
If you select the bytes in the raw data pane (bottom right pane), the selected bytes get a black foreground color. On the selected black foreground bytes in the raw data pane, if you right click, a context menu will pop up as shown above. You may copy the selected data or evaluate it, or map the data to the corresponding tree node.
Here you can calculate the LRC and the CRC16 of the data in the 'Evaluation data' window. Make sure your 'Data Format' selection is the same as the type of data in your 'Evaluation data' window. e.g. if the data in the 'Evaluation data' window is in binary hex form, then select 'Binary Hex' in the 'Data Format' drop down list box.
Custom Data Parsing
This option allows you to interactively enter or copy paste hex bytes which may comprise of a protocol packet. These hex bytes can be submitted to all the loaded protocols, the protocols will then parse your data and show useful information. The hex bytes can be transmitted as either 'Transmit Bytes' or as 'Receive Bytes'; the only difference is the direction of message flow. Usually you submit a request as 'Transmit' and a response as 'Receive'.
Press the LRC Options button to choose LRC options:
Press the CRC16 Options button to choose CRC16 options:
Data Watch Window
In the data watch window you can view the stream of evaluation data as different data types. The 'Evaluation Data' window must contain data in byte pairs; for e.g. if data starts as 2 20 34 45 ..., then you should format it so that it starts as 20 34 45 ... . In the same manner you cannot have half a byte at the end of the data.
Next select the appropriate 'Data Format' that corresponds to the data in the 'Evaluation data' window, select the data type from the 'Data Type' drop down list, and click 'Show' button.
Data is aligned according to the data type you specify and displayed in the 'Data Calculation' window.