This project has moved and is read-only. For the latest updates, please go here.

PMU Connection Tester

Note: The PMU Connection Tester is now its own open source project. For the latest documentation and program updates, please visit: http://pmuconnectiontester.codeplex.com.

Installation

Instructions for using the openPDC installers or building from source can be found on the Getting Started page.

Overview

The PMU Connection Tester verifies that the data stream from any known phasor measurement device is being received. Device types that can be tested through the PMU Connection Tester application may include:
  • Phasor Measurement Unit (PMU)
  • Phasor Data Concentrator (PDC)
  • Digital Fault Recorder (DFR)
  • Power Quality (PQ)

Any device that supports one of the following phasor protocols may be tested:
  • IEEE C37.118-2005 (Version 1/Draft 7, Draft 6)
  • IEEE 1344-1995
  • BPA PDCstream (Revisions 0, 1, and 2, including PDCxchng formatted data)
  • Virginia Tech FNet
  • SEL Fast Message
  • Macrodyne

Navigation

main.png

Some portions of the screen can be opened by clicking the Expand button (button_expand.png) and closed by clicking the Contract button (button_contract.png). Other sections are accessed by clicking on named tabs (tabs.png).

Configuration Frame


The Configuration Frame displays the relevant information from the configured elements in the connected device.

configuration_pane.png
  • PMU: Lists all of the configured devices that are connected to the tested device.
  • ID Code: Displays the unique identifier of the tested device. This is populated from the Device ID Code entered on the Protocols tab in the Connection Parameters section.
  • Phasor: Lists the labels of all phasors measured by the selected device.
  • Phasors: Displays the total number of phasors in the selected device.
  • Analogs: Displays the total number of measured analog values in the selected device.
  • Digitals: Displays the total number of digital values in the selected device.
  • Nominal Frequency:
  • Power (MW): Displays the calculated megawatts, based on the Voltage Phasor and Current Phasor selections on the Settings tab.
  • Vars (MVars): Displays the calculated megavars, based on the Voltage Phasor and Current Phasor selections on the Settings tab.

Connection Parameters


The Connection Parameters screen section displays the details concerning the connection between the PMU Connection Tester and the tested device. The details differ depending upon the communication protocol selected.

Tcp

conn_tcp.png
  • Host IP: The internet address of the device being tested.
  • Port: The port number through which the PMU Connection Tester is connected to and receiving data from the tested device.
  • Establish Tcp Server: Select to establish a TCP Server style connection to listen for remote device data streams, such as from FNet devices.

Udp

conn_udp.png
  • Local Port: The port number through which the PMU Connection Tester is receiving data from the tested device.
  • Enable Multicast / Remote Udp: If the tested device listens on UDP, select this check box which makes the following screen elements available.
  • Host IP: The internet address of the device being tested.
  • Remote Port: The port number on the tested device through which the PMU Connection Tester sends commands.

Serial

conn_serial.png
  • Port: The local serial port through which the PMU Connection Tester is receiving data from the tested device.
  • Baud Rate: Baud rate to use during transmission to the tested device.
  • Parity: Parity to use during transmission to the tested device.
  • Stop Bits: Number of stop bits to use during transmission to the tested device.
  • Data Bits: Number of data bits to use during transmission to the tested device.
  • DTR: Enables the Data Terminal Ready flag.
  • RTS: Enables the Ready To Send flag.

File

conn_file.png
  • Filename: The name of the saved file created by recording data streams.
  • Frame Rate: Number of frames per second the saved data streams are displayed.
  • Auto-repeat captured file playback: Check this box to have the PMU Connection Tester return to the beginning of the sample file once it reaches the end.

Protocol and ID

protocol.png
  • Protocol: Lists the available phasor data protocols.
  • Device ID Code: Specifies the identification code often needed to establish a connection.

Command

command.png
  • Command: Lists the available commands that the tested device will respond to.

command_list.png
  • Send: Transmits the selected command to the device.

Graph Tab


Displays graphically the real-time data stream from the tested device.

tab_graph.png

The top graph shows the system frequency as measured by the tested device. The bottom graph displays the phase angles.

If the Phase Angle Graph Style (Settings tab) is set to Relative, all the displayed phase angles will be relative to the selected device in the Configuration Frame. If it is set to Raw, the phase angles are displayed as measured by the tested device.

The legend on the bottom right of the Graph tab displays the configured devices connected to the tested device, as listed in the Phasor box on the Configuration Frame.

Messages Tab


The Messages tab displays any relevant information about, or errors generated by, the connection to the tested device.

tab_messages.png

Protocol Specific Tab


Displays a hierarchy of the last parsed protocol specific frames, and includes all data values relevant to the protocol.

protocol_spec.png

This tab enables quick validation of protocol-specific properties of vendor implementation.

Settings Tab


The Settings tab allows the user to configure various settings related to the PMU Connection Tester display.

tab_settings.png

Application Settings

application_settings.png
  • AutoStartDataParsingSequence [Range: True/False]: Set to True to automatically send commands for ConfigFrame2 and EnableRealTimeData.
  • ExecuteParseOnSeparateThread [Range: True/False]: Allows frame parsing to be executed on a separate thread (other than communications thread) - typically only needed when data frames are very large. This change will happen dynamically, even if a connection is active.
  • MaximumConnectionAttempts [Range: 1-n]: Maximum number of times to attempt connection before giving up. Set the value to -1 to continue connection attempt indefinitely.
  • MaximumFrameDisplayBytes [Range: 1-n]: Maximum encoded bytes to display for frames in the Real-time Frame Detail.
  • RestoreLastConnectionSettings [Range: True/False]: Set to True to load previous connection settings at startup.

Attribute Tree

attribute_tree.png
  • ChannelNodeBackgroundColor: Defines the highlight background color for channel node entries on the attribute tree.
  • ChannelNodeForegroundColor: Defines the highlight foreground color for channel node entries on the attribute tree.
  • InitialNodeState [Range: Collapsed/Expanded]: Defines the initial state for nodes when added to the attribute tree. Note that a fully expanded tree will take much longer to initialize.
  • ShowAttributesAsChildren [Range: True/False]: Set to True to show attributes as children of their channel entries.

Chart Settings

chart_settings.png
  • BackgroundColor: Select the background color for the graph region.
  • ForegroundColor: Select the foreground color for graph region (axes, legend border, text, etc.).
  • RefreshRate [Range: 0.1-n]: Chart refresh rate in seconds. The typical setting is 0.1 , increase this number if the application runs slowly.
  • ShowDataPointsOnGraphs [Range: True/False]: Set to True to show data points on graphs.
  • TrendLineWidth [Range: 1-n]: Enter the trend line graphing width (in pixels).

Frequency Graph

frequency_graph.png
  • FrequencyColor: Foreground color for frequency trend.
  • FrequencyPointsToPlot [Range: 1-n]: Sets the total number of frequency points to display.

Phase Angle Graph

phase_angle_graph.png
  • LegendBackgroundColor: Background color for phase angle legend.
  • LegendForegroundColor: Foreground color for phase angle legend text.
  • PhaseAngleColors [Range: Collection/]: Possible foreground colors for phase angle trends.
  • PhaseAngleGraphStyle [Range: Raw/Relative]: Sets the phase angle graph to plot either raw or relative phase angles.
  • PhaseAnglePointsToPlot [Range: 1-n]: Sets the total number of phase angle points to display.
  • ShowPhaseAngleLegend [Range: True/False]: Set to True to show phase angle graph legend.

Header Frame


The Header Frame displays the user-configured information file, usually in the form of a text file, that is stored on the tested device.

header_frame.png

Real-time Frame Detail


The Real-time Frame Detail section displays details about the measurements received from the tested device.

real_time_frame_detail.png
  • Frame type: Displays the phasor protocol frame type of the frame received from the tested device.
  • Time: Displays the time value parsed from the received frame, displayed in Universal Coordinated Time (UTC).
  • Frequency: Displays the measured system frequency received in the frame.
  • Angle: Displays the measured phase angle of the currently selected Phasor (Configuration Frame) received in the frame.
  • Magnitude: Displays the measured magnitude of the currently selected Phasor (Configuration Frame) received in the frame (The parenthetical value is the calculated line-to-neutral value when the selected phasor is a voltage.).
  • Display: Lists the various formats in which the binary data in the received frame can be shown.

list_display.png

Operations

Capturing Sample Frames


The PMU Connection Tester allows the user to debug and analyze protocol-specific phasor frames from the tested device. Note that only one of each type of frame can be collected during the capture sequence.
  1. From the File menu, point to Capture and then select the Capture Sample Frames menu option.
  2. In the displayed save screen, enter the desired File name of the output file.
  3. Click OK on the displayed message (Sample frame collection will complete upon reception of a configuration frame).
  4. The file will be displayed in a separate window as a .txt file.

Click to view a sample file.

Connecting to Devices

Connecting via TCP

  1. Click the Tcp tab.
  2. Enter the Host IP address of the device being tested.
  3. Enter the Port number through which the PMU Connection Tester is receiving the signal from the tested device.
  4. Click Connect.

Connecting via UDP

  1. Click the Udp tab.
  2. Enter the Local Port number through which the PMU Connection Tester is receiving the signal from the tested device.
  3. Click the Remote device listens on Udp check box, if applicable, and then enter the Host IP and Remote Port of the tested device.
  4. Click Connect.

Connecting via a Serial Port

  1. Click the Serial tab.
  2. Enter the Port through which the PMU Connection Tester is receiving the signal from the tested device.
  3. Enter the configuration details the data transfer between the PMU Connection Tester and the tested device.
  4. Click Connect.

Loading Configuration Files

  1. From the File menu, point to Config File and then select the Load menu option.
  2. In the displayed window, select the saved configuration file (XML format), and click Open.

Recording and Replaying Data Streams


The PMU Connection Tester allows the user to record all streaming data to a file for later playback and analysis.
  1. From the File menu, point to Capture and then select the Start Capture menu option.
  2. In the displayed save screen, enter the desired File name of the output file.
  3. The capture process will continue until you select the File > Capture > Stop Capture menu option.

To replay the data stream:
  1. Click the File tab.
  2. Enter or select the saved Filename.
  3. Select the Frame Rate for the display.
  4. Verify the Protocol on the Connection Parameters screen section.
  5. Click Connect.

Saving Configuration Files


To save a configuration (Only available when connected, and after a configuration frame has been received):
  1. From the File menu, point to Config File and then select the Save menu option.
  2. In the displayed save screen, enter the desired File name of the output file, and click Save.

Click to view a sample configuration file.

Using Previous Connections


The PMU Connection Tester automatically saves the last connection by default. To save a connection for later use:
  1. From the File menu, point to Connection and then select the Save menu option.
  2. In the displayed save screen, enter the desired File name of the output file, and click Save.

To use a previous connection:
  1. From the File menu, point to Connection and then select the Load menu option.
  2. In the displayed window, select the saved connection file, and click Open.
  3. Click Connect.

Connection files have a .PMUConnection extension. When installed, the PMU Connection Tester associates itself with files of that extension.

Stream Debug Capturing


The PMU Connection Tester is capable of capturing raw data to a CSV file for analysis. To capture data to a CSV file:
  1. From the File menu, point to Capture and then select the Start Stream Debug Capture... menu option.
  2. In the displayed save screen, enter the desired File name of the output file.
  3. The capture process will continue until you select the File > Capture > Stop Stream Debug Capture menu option.

Once you've captured the data, you can open the file using Microsoft Office Excel and follow these steps to format the timestamps to be human readable.
  1. Select the entire first column, right-click the column header, and select "Format Cells".
  2. In the "Category" list, select "Custom".
  3. Enter "mm/dd/yyyy h:mm:ss.000" into the "Type" text box and select the "OK" button.

Last edited May 23, 2014 at 7:32 PM by ritchiecarroll, version 24

Comments

No comments yet.