UM1518 STMICROELECTRONICS | Alldatasheet

Document overview

  • Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 37

Technical content

Datasheet sections

  • 1 Document conventions
  • 1.1 List of abbreviations
  • 2 Connection procedure
  • 3 GUI installation
  • 3.1 Software license agreement
  • 3.2 System requirements
  • 3.3 Installing the software
  • 4 Getting started
  • 4.1 Introduction
  • 4.2 Opening the COM
  • 5 Services
  • 5.1 Basic modem configuration
  • 5.2 Power line communication: transmission and reception
  • 5.2.1 Power line transmission command
  • 5.2.2 Power line confirm command
  • 5.2.3 Power line reception command
  • 5.3 MIB operations
  • 5.4 Other ST7580 commands
  • 5.4.1 Ping commands
  • 5.4.2 Reset commands
  • 5.4.3 Status message
  • 5.5 Host interface errors
  • 5.6 Ping session
  • 5.6.1 Ping protocol
  • 5.6.2 Ping Master session
  • 5.6.3 Ping Slave session
  • 5.6.4 Starting and stopping a Ping session
  • 6 References

demonstration boards equipped with the ST7580 device are supported. access to all its registers and functions described in [2]. EVALST7580-1 modem board and an EVLALTAIR900-M1 power supply board). Figure 1. ST7580 typical application environment

1 Document conventions

1.1 List of abbreviations

Table 1. Abbreviations

2 Connection procedure

  1. Connect the board to the PC using a mini-USB cable.
  2. Plug a power cable into the board AC power plug.
  3. Plug the power cable into the power socket.

As soon as the board is powered, the LEDs DL1, DL2 on EVALST7580-1 switch on. of a proper software driver is necessary.

  1. Download the latest available virtual COM port (VCP) drivers from the ST website (at

www.st.com) and unzip them to a location on the host PC.

  1. Launch the setup file “VCP_V1.3.1_Setup.exe” to install the virtual COM port driver on
  2. When the screen shown in Figure 2 is displayed, click “Next” to proceed with the

Figure 2. Hardware update wizard screen

  1. The setup is completed and the screen shown in Figure 3 is displayed.

Figure 3. Completing the found new hardware update wizard

  1. Connect the EVALKITST7580-1 to a spare USB port on the host PC: an

EVALST7580-1 is installed and ready to use.

3 GUI installation

3.1 Software license agreement

  1. Important Before loading this software you must read carefully and agree to the following terms and conditions which are automatically agreed to by loading this Software or any portion thereof. If you do not agree to the terms of this Agreement, do not install or use this Software or any portion thereof. 2. License grant ST grants you a non-exclusive, royalty-free, worldwide license to this Software written for ST products (“Software”). Y ou have the right to use, copy, modify and distribute the Software with ST products only. All ST software is required to contain the ST copyright notice which is not to be removed for any reason. Y ou acknowledge that the Software is not designed nor authorized for use in life supporting devices or systems. 3. Ownership and copyright of Software Title to the Software and all copies thereof remain with ST. The Software is copyrighted and protected by worldwide copyright laws and international treaty provisions. Except as expressly provided herein, ST does not grant any express or implied right to you under ST patents, copyrights, trademarks, or trade secret information. 4. Warranties and liabilities ST makes no warranty express or implied including but not limited to, any warranty of (i) marketability or suitability for a particular purpose and/or (ii) requirements, for a particular purpose in relation to the Software which is provided on an “AS IS” basis. All warranties, conditions, or other terms implied by law are excluded to the fullest extent permitted by law. ST is not liable for any claim made by you and/or against you by a third party, in relation to the Software under this Agreement. Y ou take responsibility for the suitability, selection, use and management of the Software and the results obtained there from as well as their combination and the combination of the elements thereof with other apparatus, equipment, products, programs and services. Nothing contained in these terms is to be construed as a warranty or representation by ST as to the validity or scope of any and all IPR in respect of which a license is herein granted or constitutes a warranty or representation that any manufacture, use or sale by you hereunder are free from infringement of any Intellectual Property Rights (IPR) other than those under which and to the extent to which rights thereto are granted hereunder or constitute an agreement to bring or prosecute actions or suits against third parties for infringements or confer any right upon a party to use in advertising, publicity or other medium, any name trademark or trade name or any other contraction, abbreviation, or simulation thereto of the other party or confer by implication, estoppel or otherwise, upon you any license or other right under any and all IPR except the licenses and rights expressly granted hereunder to you. In no event is ST liable for any damages whatsoever (including, without limitation, damages for loss of business revenue or profits, business interruption, loss of business information or other pecuniary loss) arising out of the use of or the inability to use the Software as part of an ST application. ST does not assume any responsibility for any errors that may appear in the Software nor any responsibility to support or update the

Software. ST retains the right to make changes to the Software and its test specifications at any time, without notice. 5. Entire agreement This Agreement constitutes the entire agreement with ST and supersedes any prior or contemporaneous oral or written agreements with respect to the subject matter of this Agreement. 6. Support Under this Agreement, ST is under no obligation to assist in the use of the Software, to provide you support of the Software, or to provide maintenance, correction, modification, enhancement, or upgrades to the Software. Any action taken by ST in this respect is unilaterally taken and subject only to ST assessment - without any notice to you. Any such action is considered as Software and is automatically subject to this Agreement. 7. Termination of this license ST is entitled to terminate this Software License Agreement at any time if you are in breach of any of the terms of this Agreement. Upon termination, you must immediately destroy the Software. 8. Export regulations Y ou undertake to comply with all applicable laws, regulations, decrees and ordinances related to your use of the Software. 9. Applicable laws Any dispute arising out of or in connection with this agreement which could not be amicably settled is to be finally settled under the rules of conciliation and arbitration of the international Chamber of Commerce by one or more arbitrators appointed in accordance with the said Rules which the Parties know and elect irrevocably. Such arbitration is to take place in Paris and be held in English.

3.2 System requirements

A personal computer (PC) including: 1. Operating system Windows NT/2000/XP/7. 2. A hard disk with at least 15 MBytes of free space to install the GUI. 3. One or more USB 1.1 ports.

3.3 Installing the software

Follow the instructions below to install the ST7580 GUI software.

  1. Extract the contents of the archive in a new directory.
  2. Launch “setup.exe” to start the install procedure.
  3. Press “Next” button ( Figure 4):

Figure 4. ST7580 GUI installation wizard

  1. Choose an installation path (the default path is suggested) and press the “Next” button,

Figure 5. ST7580 GUI destination folder

4 Getting started

4.1 Introduction

The ST7580 GUI gives the user complete control of the ST7580 device, with full access to all the settings and functions described in [2]. The GUI can be used to:

  • Establish a connection to the ST7580 modem
  • Configure the ST7580 and manage all its settings
  • Perform any transmission and reception of data over the power line
  • Open a Ping session, where at least two modems (a Master device and one or more Slave devices) can communicate exchanging data. A single instance of the ST7580 GUI can handle only one EVALST7580-1 board at a time. Figure 8 shows the main window of the ST7580 GUI. The panel is divided into two sections: 1. Console: box displaying all the messages exchanged with the node. The messages can be cleared or saved in a .txt file through options on the “Tools” menu bar; 2. Node panel: used to control an ST7580 node; it is divided into five tabs to easily change between the main service blocks of the node: – The properties and services of the connection to the PC; – The device's basic configuration, related to MIB objects 00h (modem configuration) and 01h (PHY configuration); – The characteristics of the exchanged power line frames (for both transmitted and received frames); – The access (writing, reading, erasing) to the MIB objects. – The settings to open a Ping session (selecting Master or Slave role) and display the communication results. A point in the top part of this window always displays the composition of the status message returned by the modem and the occurrence of error during the last requested command:

Figure 8. ST7580 GUI

4.2 Opening the COM

  1. Manually select the COM port number associated to the board.
  2. Select the desired baud rate. Note that the EVALST7580-1 board has a factory default

baud rate equal to 57600 bps.

5 Services

5.1 Basic modem configuration

01h) and to accept transmission requests. Figure 11. Modem configuration

The four buttons in the Modem configuration tab, highlighted by the red squares, execute correspondingly:

  • Modem configuration write: it performs an “MIB Write Request” command automatically built with MIB index 00h and data as selected in the objects above;
  • Modem configuration read: it performs an “MIB Read Request” command automatically built with MIB index 00h; if the command is properly executed, the data contained in the expected “MIB Read Confirm” (sent by the ST7580) is extracted and displayed in the objects above;
  • PHY configuration write: as the previous “Modem Configuration Write”, it performs an MIB Write Request on the MIB object 01h (PHY layer configuration);
  • PHY configuration read: as the previous “Modem Configuration Read”, it performs an MIB Read Request on the MIB object 01h (PHY layer configuration).

5.2 Power line communication: transmission and reception

In order to put into place a proper power line communication through the GUI, it is enough to power on the EVALST7580-1 and to open the USB port as explained in Section 4.2. The “Communication” tab contains all the parameters for ST7580 commands related to power line communication:

  • “Transmission” box: refers to three “Data Request” commands and contains all their parameters and data to allow the user to choose the transmission settings;
  • “Confirm” box: displays the parameters of the last “Data Confirm” received from the ST7580 device;
  • “Reception” box: shows the parameters and the data of the last “Data Indication” received.

5.2.1 Power line transmission command

As shown in Figure 12, the transmission box contains: 1. The “TX Layer” drop-down menu: through this parameter it is possible to choose which kind of Data Request command the GUI addresses to the ST7580. – The PHY_Data selection determines a “PHY Data Request” command; – The DL_Data selection determines a “DL Data Request” command; – The SS_Data selection determines a “SS Data Request” command. 2. All transmission parameters to be filled in a data request command; note that: – “TX Gain” value is accessible if “Gain Selector” bit is equal to “Custom” value only; – “SS Header Length” value is accessible if selected “TX Layer” value is equal to “SS_Data” only. 3. The Payload box where the data to be transmitted must be expressed in hexadecimal characters; 4. The length (in bytes) of the inserted Payload data, automatically calculated and displayed. 5. The Data Request button that builds a Data Request command and transmits it to the ST7580 connected device.

Figure 12. Power line transmission box Figure 13. Transmission notifications

5.2.2 Power line confirm command

A green/red LED reports the success of the previous Data Request.

Figure 14. Power line confirm box “Confirm” box are not updated.

5.2.3 Power line reception command

parameters are returned in the reception box.

Figure 15. Reception notification

5.3 MIB operations

Table 2. MIB objects access through ST7580 GUI

Figure 16. Position of MIB objects on each corresponding object.

5.4 Other ST7580 commands

5.4.1 Ping commands

ST7580 a PingRequest command with editable data Payload.

Figure 17. PingRequest and PingConfirm graphical tools

5.4.2 Reset commands

dedicated button on the bottom part of the Modem Configuration tab. Figure 18. ResetRequest command: console view

Figure 19. ResetIndication command: console view

5.4.3 Status message

Figure 20. Status message fields

5.5 Host interface errors

Figure 21. Host interface error occurrence

5.6 Ping session

application to collect statistical data. commands of the ST7580 device. the EVALKITST7580 board, handled by the GUI, has during the Ping session.

Figure 22. Ping session: Master and Slave tabs (both transmitted and received frames) of the node over the Ping session.

5.6.1 Ping protocol

  • Carrier frequency value (it is overwritten in the MIB object 01h - PHY configuration as RX operating frequency);
  • Modulation type as in ordinary DL_DataRequest command;
  • TX Gain parameter (it is overwritten in the MIB object 01h - PHY configuration). These electrical characteristics are equal to each transmitted frame in all frames sent by the Master over Ping session. The GUI tool adds specific subfields to the Payload field of the exchanged DL frames, as shown in Figure 23, where the blue parts need to be specified by the user, while the green one is automatically built by the GUI tool. The red blocks refer to the fields automatically handled by the ST7580. The Payload length selected by the user is limited to 244 bytes. AM16521v1

Figure 24. Ping session: Master flowchart

When a node is set as "Slave" for a Ping session, it automatically answers each received frame by sending a packet built with identical electrical features and Payload data. Before starting the Ping session, the node needs to be configured with two frequency values for reception and the corresponding functional modulations. These values are overwritten to MIB object 01h (Physical configuration) and the node is set to work on a dual channel reception. From a functional point of view, a Slave Address Number is assigned as well, as 1-byte value. The Slave node re-transmits the frames with Slave Address subfield (Figure 23) equal to the Slave Address Number assigned to it. The GUI allows the user to choose between two Stop conditions: 1.Frame number: the GUI stops the Ping session after the node receives a fixed number of Indication messages (DL_DataIndication and DL_SnifferIndication); 2.Time: the GUI stops the Ping session after a number of seconds selected by the user (if the number set through the GUI is equal to 0, the Ping session ends when the "Stop Ping" button is pressed). After an Indication message, three cases are taken into account and displayed by the GUI: 1. A DL_DataIndication has been notified by the modem and the Frame Address subfield is equal to the Frame Address parameter set to the node; the Node sends a powerline frame with same electrical conditions (Frequency carrier, modulation) and data Payload (in accordance with Figure 23 subfields). The dedicated "Received OK" counter increases. 2. A DL_DataIndication has been notified by the modem and the Frame Address subfield is not equal to the Frame Address parameter set to the node; the dedicated "RX Wrong Address" counter increases and any frame is transmitted. 3. A DL_SnifferIndication has been notified by the ST7580: the dedicated "RX Wrong CRC" counter increases. However, if the Frame Address subfield is equal to the Frame Address parameter set to the node, a powerline frame is transmitted with same electrical conditions (Frequency carrier, modulation) and data payload (in accordance with Figure 23 subfields). Figure 25 reports the flowchart of Master node throughout the Ping session:

Figure 25. Ping session: slave flowchart

5.6.2 Ping Master session

Figure 26. Ping Master tab

Table 3. Ping session: Master tab parameters TX frequency [Hz] Control Frequency value for frames to be transmitted during Ping session. generated and Ping session doesn’t start. Selection for Random Payload type only. each DL_DataRequest built throughout the Ping session. DL_DataRequest built throughout the Ping session.

5.6.3 Ping Slave session

Ping session corresponding to Slave device. frames within Ping Session. Minimum value is 1 second. less than the selected total frame number. by the GUI during the Ping session execution. -Red when Ping session is not active. Table 3. Ping session: Master tab parameters (continued)

Figure 27. Ping Slave tab Table 4. Ping session: Slave tab parameters the received frames with the address field equal to this value.

displayed in accordance with “Stop condition” value. Data) before starting the Ping session. condition” is equal to time only, hidden otherwise. Number of received frames with correct CRC (i.e. field equal to the value set in “Slave Address” control. Number of received frames with correct CRC (i.e. field not equal to the value set in “Slave Address” control. RX Wrong CRC Indicator Number of received frames with wrong CRC (i.e. DL_SnifferIndication notified by the ST7580). -Red when Ping session is not active. Table 4. Ping session: Slave tab parameters (continued)

5.6.4 Starting and st opping a Ping session

For both Master and Slave nodes, the Ping session manually starts by pressing "Start Ping" button, while the session stops either automatically (if Stop condition is achieved) or manually, pressing "Stop Ping" button.

6 References

  1. ST7580 datasheet: FSK, PSK multi-mode power line networking system-on-chip; www.st.com/powerline 2. UM0932: ST7580 - FSK, PSK multi-mode power line networking system-on-chip; Rev 2 www.st.com/powerline

7 Revision history

Table 5. Document revision history 11-Apr-2012 1 Initial release. Figure 19, Figure 20, Figure 21.