Home

ST7580 - STMicroelectronics

image

Contents

1. 3 3 13 PHY_DataConfirm 25h This command is sent by the ST7580 to provide a positive confirmation to a PHY_DataRequest see Section 3 3 12 previously requested by the external host Table 36 PHY_DataConfirm Syntax Source Command Args Possible response ST7580 PHY DataConfirm ConfirmData None Table 37 PHY DataConfirm ConfirmData Byte index Bit index Label Description Max temperature reached during PHY frame transmission 0 T 70 typical 0 1 Max temp 1 70 C T 100 C typical 2 100 C T 125 C typical 0 3 T gt 125 C typical If current control feature MIB object PHY config 01h Section 4 2 2 is 2 6 Max gain active max gain used during last transmission If current control feature is not active gain used during last transmission 7 Unused Min temperature reached during PHY frame transmission 0 T lt 70 C typical 0 1 Min temp 1 70 C T lt 100 C typical 2 100 C T 125 C typical 1 3 T gt 125 C typical If current control feature MIB object PHY Config 01h Section 4 2 2 is 2 6 Min gain active min gain used during last transmission if current control feature is not active gain used during last transmission 7 Unused Overcurrent Number of overcurrent events reached during PHY frame transmission 0 6 events as Valid if the current control feature is active only number 2 Notification about the overcurrent reached
2. 25 PHY DataRequest Syntax 25 PHY DataRequest RequestData 26 PHY DataConfirm Syntax lisse 27 PHY DataConfirm ConfirmData llis 27 PHY Datalndication Syntax 28 PHY Datalndication indicationData liliis 28 DL DataRequest Syntax llillillllllselllllle sns 29 DL DataConfirm Syntax luce de eret ere eda ed wae dae eda eA 29 DL Datalndication 29 DL Snifferlndication Syntax rn 29 SS DataRequest Syntax nnana aaae eee 30 SS_DataRequest RequestData 0 000 31 SS DataConfirm Syntax llis 32 SS Datalndication Syntax oseas correrse ruaa eaa E n 32 SS_Datalndication 32 DoclD17385 Rev 3 Ly UM0932 List of tables Table 49 SS_Snifferlndication Syntax 0 0 en 33 Table 50 CMD_SyntaxError lt 4 hn 33 Table 51 CMD SyntaxErrorErrorData l l es 33 Table 52 Management information base MIB 34 Table 53 object 00h MIB WriteRequest and MIB ReadRequest data format 35 Table 54 object 01h MIB WriteRequest and MIB
3. UM0932 Sf i life augmented User man ual ST7580 FSK PSK multi mode power line networking system on chip Introduction This user manual which targets application developers provides complete information on how to use the ST7580 device in applications by describing the embedded functions and protocol layers with a focus on the commands and parameters available to the user to control and operate the device through its host interface For ordering information mechanical and electrical device characteristics please refer to the ST7580 datasheet available from www st com October 2013 DoclD17385 Rev 1 43 www st com Contents UM0932 Contents 1 Documentation conventions 7 List of abbreviations 7 2 Functional overview 8 2 1 Protocol stack 8 2 2 ST7580 Power line frames structure 9 2 3 Power line data transmission 11 2 4 Power line data reception 11 ST7580 reception flow lille 12 3 Host interface oue eue ISI RE beeches DR WE e eke 13 3 1 UL JN 13 3 2 Communication 14 3 2 1 Frame paS oarre ssa Rr vee Y 14 3 2 2 LOCal
4. RequestData Request rejected MIB_ReadError ErrorData Table 24 MIB_ReadRequest RequestData Byte Label Description index 0 MIB database entry index Refer to the MIB table Table 52 for available objects DoclD17385 Rev 3 23 43 Host interface UM0932 3 3 7 3 3 8 3 3 9 24 43 MIB ReadConfirm 0Dh This command is sent by the ST7580 to acknowledge an MIB ReadRequest see Section 3 3 6 if the request has been accepted and executed without errors Table 25 MIB ReadConfirm Syntax Source Command Args Possible response ST7580 MIB ReadConfirm ConfirmData None Table 26 MIB ReadConfirm ConfirmData Byte index Label Description Current value of the MIB object with INDEX expressed in the previous DATA MIB ReadRequest command Section 3 3 6 MIB EraseRequest 10h This command is used by the external host to erase the value of an MIB object and set it to 0 This command is valid for erasable MIB objects only Table 52 The ST7580 checks the parameters for validation e check is valid the object is updated to a value equal to 0 in the database and the ST7580 replies with an MIB EraseConfirm Section 3 3 9 e check is not valid the request is rejected and the ST7580 replies with an MIB EraseError Table 12 Table 27 MIB EraseRequest Syntax Source Command Args Possible response Request accepted MIB EraseC
5. i soot t ie ode de ex Gel Dieu d 15 3 2 3 Acknowledgment messages 15 3 2 4 Status message iisisllsa sega da ph d daana 16 3 2 5 Local port arbitration rules 17 3 2 6 Frame delimitation 17 3 2 7 Data communication from the ST7580 to the external host 17 3 2 8 Data communication from external host to the ST7580 18 3 2 9 Host interface timeouts 19 3 3 Command codes 19 3 3 1 BIO ResetRequest Ch 21 3 3 2 BIO ResetConfirm 21 3 3 3 BIO Resetlndication Eh 22 3 3 4 MIB WriteRequest 08h 22 3 3 5 MIB WriteConfirm 09h llllsses ERNA 23 3 3 6 MIB ReadRequest OCh 23 3 3 7 MIB ReadConfirm ODh 24 3 3 8 MIB EraseRequest 10h 24 3 3 9 MIB EraseConfirm 11h 5 2 2 24 5 eee 24 3 3 10 PingRequest 2Ch 5 2 25 3 3 11 PingConfirm 2Dh 0 00 00 ee eee 25 2 43 DoclD17385 Rev 3 Ly UM0932 Contents 3 3 12 _ 5 24 2
6. SS Data bed Sean RU de uel iaa 41 4 2 9 09h host interface timeout 41 4 2 10 OAh firmware 5 41 5 Reference MP TUTTTTUPTTME 42 6 REVISION hiStory 42 DoclD17385 Rev 3 3 43 List of tables UM0932 List of tables Table 1 Table 2 Table 3 Table 4 Table 5 Table 6 Table 7 Table 8 Table 9 Table 10 Table 11 Table 12 Table 13 Table 14 Table 15 Table 16 Table 17 Table 18 Table 19 Table 20 Table 21 Table 22 Table 23 Table 24 Table 25 Table 26 Table 27 Table 28 Table 29 Table 30 Table 31 Table 32 Table 33 Table 34 Table 35 Table 36 Table 37 Table 38 Table 39 Table 40 Table 41 Table 42 Table 43 Table 44 Table 45 Table 46 Table 47 Table 48 4 43 List of abbreviations 3 2 2 e266 view RAT ee V 7 PHY frame description 000000 es 9 DL frame description 00000 cee ee 10 SS frame description 00 00000 tees 10 UART baud rate a iw ete phish LR CE wha OF hat Ema AER 13 Local frame format ns 15 ACK and messages 16 Status message composition 16 Communication
7. received data It can be read or written Table 55 MIB object 02h MIB WriteRequest and MIB ReadRequest Data format a Description and available values Factory default value 128 bit AES key used to process transmitted and received frames 00000000000000000000000000000000 4 2 4 04h Last data indication This object stores information about the last indication message received among PHY_Datalndication Section 3 3 14 DL_Datalndication Section 3 3 17 SS_Datalndication Section 3 3 21 DL_Snifferlndication Section 3 3 17 SS_Snifferlndication Section 3 3 22 Its field values are equal to those notified by the last indication message and presented in the four first bytes 0 3 of the IndicationData Table 39 48 It can be read only d DoclD17385 Rev 37 43 Management information base MIB UM0932 Table 56 MIB object 04h MIB_WriteRequest and MIB_ReadRequest data format Byte Bit A Factory index l index Label Description and available values default value Frame modulation on the last indication received Data Sniffer PHY DL SS 0 B PSK 1 Q PSK 2 8 PSK 0 2 Frame 0 modulation 3 B FSK 4 B PSK coded 0 5 5 coded 6 Reserved 7 B PSK coded with Peak Noise Avoidance RX channel on the last Indication received 3 RX channel 0 low channel 0 1 high channel 4 7 PGA Value PGA value on the last indication received 0 SNR estimated over the Unique Wo
8. transmission counter DL DataError number Unsigned value 40 43 DoclD17385 Rev Ly UM0932 Management information base MIB 4 2 8 08h SS Data This object stores counters of power line frames transmitted or received by the ST7580 in compliance with data link frame features It can be read or erased only Table 60 MIB object 08h MIB_WriteRequest and MIB_ReadRequest Data format Byte index Label Description Factory default value 0 1 SS valid received Counter of valid received SS frames 0000h frames counter SS_Datalndication number Unsigned value 39 n authentic Counter of not authentic received SS frames 2 3 received frames 0000h wrong digest Unsigned value counter SS malformed received Counter of malformed received SS frames 4 5 0000h frames wrong length Unsigned value 6 7 SS transmitted frames Counter of valid transmitted SS frames 0000h counter SS DataConfirm number Unsigned value 8 9 SS refused Counter of refused transmissions on SS frames 0000h transmission counter SS DataError number Unsigned value 4 2 9 09h host interface timeout This object stores the host interface timeout values that the ST7580 can handle Table 6 It can be read or written Table 61 MIB object 09h MIB WriteRequest and MIB ReadRequest Data format Byte index Label Description and available values Factory default value 0 T sn T sg timeout value ms 200 C
9. Snifferlndication Section 3 3 18 5Ah SS Datalndication Section 3 3 21 56h SS_Snifferlndication Section 3 3 22 5Eh BIO_ResetRequest 3Ch This command is used by the external host to force software reset in the ST7580 Table 16 BIO_ResetRequest syntax Source Command Args Possible response Ext host CMD_ResetRequest BIO_ResetConfirm BIO_ResetConfirm 3Dh This command is sent by the ST7580 after the correct reception of a BIO_ResetRequest Section 3 3 1 command Table 17 BIO ResetConfirm syntax Source Command Args Possible response ST7580 BIO_ResetConfirm ConfirmData Poe The ConfirmData field is always composed of 1 byte equal to 00h DoclD17385 Rev 21 43 Host interface UM0932 3 3 3 BIO Resetlndication 3Eh This command is sent by the ST7580 to notify the host about a reset or a power on event Table 18 BIO Resetlndication syntax Source Command Args Possible response ST7580 BIO Resetlndication ResetData Table 19 BIO_Resetlndication ResetData Byte Bit Lo s index Index Label Description 0 RESETN pin at low state Hardware Reset or Power ON 0 1 Reset Cause 1 watchdog 2 BIO_ResetRequest see Section 3 3 1 command 0 autoreconfiguration correctly occurred 2 Autoreconfiguration 1 autoreconfiguration occurred with errors or at least one among MIB Error objects 00h Modem Config 01h PHY Config 0
10. WriteRequest Section 3 3 4 08h MIB MIB ReadRequest Section 3 3 6 OCh MIB_EraseRequest Section 3 3 8 10h Ping PingRequest Section 3 3 10 2Ch PHY_DataRequest Section 3 3 12 24h Data DL_DataRequest Section 3 3 15 50h SS_DataRequest Section 3 3 19 54h d DoclD17385 Rev 19 43 Host interface UM0932 20 43 Confirm commands Confirm commands are sent by the ST7580 to the external host after a previous request command if the request itself has been correctly executed Table 11 lists confirm command codes their syntax and data fields are explained in the next paragraphs Table 11 Confirm command codes Group Confirm command Code Reset BIO ResetConfirm Section 3 3 2 3Dh MIB_WriteConfirm Section 3 3 5 09h MIB MIB_ReadConfirm Section 3 3 7 ODh MIB_EraseConfirm Section 3 3 9 11h Ping PingConfirm Section 3 3 11 2Dh PHY DataConfirm Section 3 3 13 25h Data DL DataConfirm Section 3 3 16 51h SS DataConfirm Section 3 3 20 55h Error commands Error commands are sent by the ST7580 to the external host after a previous request command if it has not been executed or if an error has occurred while it was executing Table 12 Error command codes Group Error command Code Reset BIO ResetError 3Fh MIB WriteError OBh MIB MIB_ReadError OFh MIB_EraseError 13h PHY_DataError 27h Data DL_DataError 53h SS_DataError 57h Syntax
11. error CMD_SyntaxError 36h The data field of the correspondent local frames presents a same syntax for all error command codes with the exception of CMD_SyntaxError Section 3 3 23 It is composed of 1 byte and it is coded in accordance with the values listed in Table 14 Table 13 Error commands syntax Source ST7580 Command Args CommandError ErrorData Possible response DoclD17385 Rev Ly UM0932 Host interface 3 3 1 3 3 2 d Table 14 Error commands ErrorData Wrong parameter length WPL 02h Data field length in the previous request was wrong Error cause Value Description At least one of the parameters values in the previous Wrong parameter value WPV 03h request was invalid Busy 04h System busy operation couldn t be performed Device internal temperature within threshold 4 OBN Section 5 ST7580 refused to transmit General error FFh Generic error code Indication commands Indication commands are sent by the ST7580 to the external host They notify a reset event or a power line data reception Table 15 lists all the indication commands their syntax and data fields are explained in the next paragraphs Table 15 Indication command codes Group Command Code Reset BIO Resetlndication Section 3 3 3 3Eh PHY Datalndication Section 3 3 14 26h DL Datalndication Section 3 3 17 52h Data DL
12. in Section 3 3 e Checksum field it is sent LSByte first Acknowledgment messages After receiving a local frame on the host interface both external host and the ST7580 must send through either TXD ST7580 or RXD external host an acknowledgement or not acknowledgement message The two messages have the same format for both ST7580 and external host and they are 1 byte long DoclD17385 Rev 15 43 Host interface UM0932 3 2 4 16 43 Table 7 lists their fixed codes Table 7 ACK and NAK messages codes Symbol Definition Code ACK Acknowledgement 06h NAK Not acknowledgement 15h Status message The status message is a frame sent by the ST7580 to the host controller when the T REQ signal is pulled down Itis composed of 2 bytes filled in accordance with ST7580 status and configuration The first byte byte index 0 is always the character ASCII code 3Fh Other bytes are set as in Table 8 Table 8 Status message composition Byte Bit Description Available values index index 0 Status message first byte 3Fh 0 autoreconfiguration correctly occurred 1 autoreconfiguration occurred with errors or at least one 0 Configuration status among MIB objects 00h Modem Config 01h PHY Config 02h SS Key hasn t changed its default value after boot 0 the ST7580 is not transmitting a power line frame 1 Transmission status NI 1 the ST7580 is transmitting a powe
13. products and services described herein and ST assumes no liability whatsoever relating to the choice selection or use of the ST products and services described herein No license express or implied by estoppel or otherwise to any intellectual property rights is granted under this document If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION OR INFRINGEMENT OF ANY PATENT COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT ST PRODUCTS ARE NOT DESIGNED OR AUTHORIZED FOR USE IN A SAFETY CRITICAL APPLICATIONS SUCH AS LIFE SUPPORTING ACTIVE IMPLANTED DEVICES OR SYSTEMS WITH PRODUCT FUNCTIONAL SAFETY REQUIREMENTS B AERONAUTIC APPLICATIONS C AUTOMOTIVE APPLICATIONS OR ENVIRONMENTS AND OR D AEROSPACE APPLICATIONS OR ENVIRONMENTS WHERE ST PRODUCTS ARE NOT DESIGNED FOR SUCH USE THE PURCHASER SHALL USE PRODUCTS
14. protocol timeouts llle 19 Request command codes 2 0000 cece tte eee eee 19 Confirm command codes 20 Error command codes s iacaat aae aoa a ata e aa a aA tee eee 20 Error commands syntax 0 0 0 0 hh 20 Error commands ErrorData 0 000 cece tees 21 Indication command 21 BIO_ResetRequest syntax liliis es 21 BIO ResetConfirm syntax lies 21 BIO Resetlndication syntax 22 BIO Resetlndication ResetData 22 MIB WriteRequest Syntax 0 0000 ns 23 MIB WriteRequest RequestData liliis 23 MIB WriteConfirm syntax 00 2 23 MIB ReadRequest Syntax liliis 23 MIB ReadRequest RequestData 0 0 0 23 MIB ReadConfirm Syntax lisse 24 MIB ReadConfirm ConfirmData se 24 MIB EraseRequest Syntax 2 0 0 0 0000 cece ee 24 MIB_WriteRequest RequestData llli 24 MIB EraseConfirm Syntax 0 0 0 0 eee eae 24 PingRequest Syntax 0 0 eee eee 25 PingRequest RequestData 0 000 cee eee 25 PingGonfirm SYMAX 2 sores ek eee ae a eae s RR d ge 25 PingConfirm ConfirmData s eaa
15. 2 2 01h PHY layer configuration This object stores the settings used to configure the modem at physical layer It can be read or written Table 54 MIB object 01h MIB_WriteRequest and MIB_ReadRequest data format Byte Hn Label Description and available values Factory default value index index High frequency used for communication Hz Any 0 2 High frequency value in CENELEC band 86000 014FFOh Low frequency used for communication Hz Any 3 5 Low frequency value in CENELEC band A C D 72000 011940h DoclD17385 Rev 3 35 43 Management information base MIB UM0932 Table 54 MIB object 01h MIB_WriteRequest and MIB_ReadRequest data format continued Byte Bit Label Description and available values Factory default value index index Active channels for reception 0 RX mode 0 high channel only 0 high channel 1 dual channel RX high Functional modulation on high channel 1 0 FSK 1 PSK modulation 1 all allowed PSK modulations 6 Functional modulation on low channel ignored if RX mode is high channel onl 2 RXlow channel 9 1 PSK modulation 0 FSK 1 all allowed PSK modulations TX current limiting enable flag 3 Current control 0 disabled 1 enabled 1 enabled 4 7 Unused Unused bits 0 Default TX gain value to be used in transmission 0 4 TX gain when Gain Selector parameter in any DataRequest 15h 21 7 s
16. 2h SS Key hasn t changed its default value after power on 0 autoreconfiguration on MIB object 00h Modem Config correctly Autoreconfiguration occurred if such an object has been written by host through 3 Modem Config Object MIB WriteRequest command after power on Error 1 errors during Autoreconfiguration on MIB object 00h Modem Config 0 or the object hasn t been changed its default value after power on 0 autoreconfiguration on MIB object 01h PHY Config correctly Aut fi tion occurred if such an object has been written by host through 4 BHF MIB_WriteRequest command after power on 9 9 1 errors during Autoreconfiguration on MIB object 01h PHY Config or the object hasn t been changed its default value after power on O autoreconfiguration on MIB object 02h SS Key correctly occurred if Aut fi tion SS such an object has been written by host through MIB_WriteRequest 5 i PRA UT nd command after power on P 1 errors during Autoreconfiguration on MIB object 02h SS Key or the object hasn t been changed its default value after power on 6 7 Unused 3 3 4 MIB WriteRequest 08h 22 43 This command is used by the external host to access an object of the MIB The ST7580 checks the If the check is valid parameters for validation the object is updated in the database and the ST7580 replies with a MIB_WriteConfirm Section 3 3 5 If the check is not valid the request is rejected and the ST7580 replies wi
17. 5 3 3 13 PHY _DataConfirm 25h 27 3 3 14 PHY Datalndication 26 28 3 3 15 DL _DataRequest 50h 28 3 3 16 DL _DataConfirm 51 29 3 3 17 DL Datalndication 52h 29 3 3 48 DL Snifferlndication 29 3 3 19 SS DataRequest 54h 30 3 3 20 SS DataConfirm 55h 2 32 3 3 21 SS Datalndication 56h 32 3 3 22 SS Snifferlndication 5 33 3 8 23 CMD_SyntaxError 36h 33 4 Management information base MIB 34 4 1 table oc ci ce er RE ERE ER Reha gg 34 4 2 MIB parameters 35 4 2 1 00h Modem configuration 35 4 2 2 01h PHY layer configuration 35 4 2 3 02h SS Key RIA IS LIPPE luec UI PPP 37 4 2 4 04h Last data indication 37 4 2 5 05h Last TX Confirm lssseesee II 38 4 2 6 06h PHY Data s 40 4 2 7 DL Data aula ee aa sei ee ee aa ee EA 40 4 2 8 08h
18. 8h 1 T ACK T ack timeout value ms 40 28h 2 T ic T jc timeout value ms 10 OAh 4 2 10 firmware version This object stores the embedded firmware version ST internal reference It can be read only Table 62 MIB object 0Ah MIB WriteRequest and MIB ReadRequest data format Byte index Description and available values Factory default value FW version FW release number ST internal reference 00420097h d DoclD17385 Rev 41 43 UM0932 5 42 43 Reference Revision history Table 63 Document revision history STMicroelectronics ST7580 datasheet Date Revision Changes 04 Nov 2011 1 Initial release 23 Oct 2012 2 Corrected parameter length fields at Table 6 35 39 and 52 Added parameters values on Table 45 02 Oct 2013 3 Updated fuse 19 Minor modifications throughout document DoclD17385 Rev 3 UM0932 Please Read Carefully Information in this document is provided solely in connection with ST products STMicroelectronics NV and its subsidiaries ST reserve the right to make changes corrections modifications or improvements to this document and the products and services described herein at any time without notice All ST products are sold pursuant to ST s terms and conditions of sale Purchasers are solely responsible for the choice selection and use of the ST
19. AT PURCHASER S SOLE RISK EVEN IF ST HAS BEEN INFORMED IN WRITING OF SUCH USAGE UNLESS A PRODUCT IS EXPRESSLY DESIGNATED BY ST AS BEING INTENDED FOR AUTOMOTIVE AUTOMOTIVE SAFETY OR MEDICAL INDUSTRY DOMAINS ACCORDING TO ST PRODUCT DESIGN SPECIFICATIONS PRODUCTS FORMALLY ESCC QML OR JAN QUALIFIED ARE DEEMED SUITABLE FOR USE IN AEROSPACE BY THE CORRESPONDING GOVERNMENTAL AGENCY Resale of ST products with provisions different from the statements and or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever any liability of ST ST and the ST logo are trademarks or registered trademarks of ST in various countries Information in this document supersedes and replaces all information previously supplied The ST logo is a registered trademark of STMicroelectronics All other names are the property of their respective owners 2013 STMicroelectronics All rights reserved STMicroelectronics group of companies Australia Belgium Brazil Canada China Czech Republic Finland France Germany Hong Kong India Israel Italy Japan Malaysia Malta Morocco Philippines Singapore Spain Sweden Switzerland United Kingdom United States of America www st com d DoclD17385 Rev 43 43
20. ReadRequest data format 35 Table 55 MIB object 02h MIB WriteRequest and MIB ReadRequest Data format 40 Table 56 object 04h MIB WriteRequest and MIB ReadRequest data format 41 Table 57 object 05h MIB WriteRequest and MIB ReadRequest data format 42 Table 58 MIB object 06h MIB WriteRequest and MIB ReadRequest Data format 43 Table 59 object 07h MIB WriteRequest and MIB ReadRequest data format 43 Table 60 MIB object 08h MIB WriteRequest and MIB ReadRequest Data format 44 Table 61 MIB object 09h MIB WriteRequest and MIB ReadRequest Data format 44 Table 62 MIB object OAh MIB WriteRequest and MIB ReadRequest data format 44 Table 63 Document revision history 45 Ly DoclD17385 Rev 3 5 43 List of figures UM0932 List of figures Figure 1 Functional overview 0 0 00 0c hh hn 8 Figure 2 Physical frame 5 9 Figure 3 Data link frame 5 9 Figure 4 Security services frame lt 10 Figure5 ST 580 reception flow 0 0 re 12 Figure 6 ST 580 and external host UART connections 13 Figure 7 Local port character f
21. S Data Indication i Payload Yes Sniffer No Enabled SS Sniffer Indication No Indication Payload CRC AM10599v1 12 43 DoclD17385 Rev d UM0932 Host interface 3 3 1 d Host interface The host interface is a communication port used by the external host to exchange data with the ST7580 device The host interface consists of a local port a standard UART a communication protocol and a set of commands exchanged between ST7580 and the external host It manages the communication and arbitration on the local port and provides access to ST7580 internal services UART The local communication is a half duplex asynchronous serial link UART using a receiving input RXD a transmitting output TXD and a T REQ signal to manage the communication The connection diagram of the ST7580 using UART as host interface port is shown in Figure 5 Figure 6 ST7580 and external host UART connections UART f Local Port iom mmm Gee o lt x External UART Baudrate selection AM10600v1 The communication baud rate is selected after the ST7580 reset in accordance with the status of local input ports BRO BR1 listed in Table 5 Table 5 UART baud rate BR1 BRO Baudrate b s 0 0 9600 0 1 19200 1 0 38400 1 1 57600 DoclD17385 Rev 13 43 Host interface UM0932 3 2 3 2 1 14 43
22. TX frequency expressed in the following bytes 1 3 won t overwrite overwrite the frequency in PHY Config Section 4 2 2 MIB object 1 TX frequency expressed in the following bytes 1 3 overwrites frequency in PHY Config Section 4 2 2 MIB object F Selection of frequency in PHY Config MIB object 2 peg 0 TX frequency is the LowFrequency in PHY_Config MIB object 1 TX frequency is the HighFrequency in PHY_Config MIB object Selection of TX gain for frame transmission 0 3 0 TX gain set as in PHY Config MIB object TX gain parameter Section 4 2 2 1 TX gain is specified in the following TX Gain byte 2 or 4 Modulation of the frame to be transmitted 0 B PSK 1 Q PSK F 2 8 PSK 4 6 ame 8 B FSK modulation 4 B PSK coded 5 Q PSK coded 6 Reserved 7 B PSK coded with Peak Noise Avoidance Zero crossing 0 Transmission frame starts on any instant 7 synchronizati 1 Transmission frame start after ZC delay value defined in PHY Config on MIB object Table 54 Frequency value Hz that the output signal is modulated around to be Ten expressed if Custom MIB frequency bit is equal to 1 only aen 0 4 TX gain TX gain to be expressed if Gain Selector bit is equal to 1 only or 5 7 Unused Length of header field 5 or 2 or 4 Header If payload is not empty it must be 4 Header Length Payload length lt length 226 If payload is empty it must be 16 Header Length
23. The UART interface has two data channels e TXD carries data from the ST7580 to the host e RXD carries data from the host to the ST7580 A local request input signal is implemented on the REQ pin ST7580 UART is a half duplex asynchronous serial port without hardware control flow UART settings used are e Half duplex mode e Standard NRZ bit coding e LSBit first transmission the bits within each byte are sent LSBit to MSBit e The exchanged frames are composed of characters e A single character is composed of 1 start bit 8 data bits and 1 stop bit e 0 5 V or 0 3 3 V levels on TXD RXD T REQ signals Figure 7 shows the character format Figure 7 Local port character format IDLE state mark LSB MSB Start Stop Bit D7 Bit gt lt gt lt gt lt toit 8 data bits tit lt gt 1 character AM10601v1 Communication protocol The host interface process implemented in the ST7580 device performs the following tasks e frame format definition e reception mechanism the UART standard on half duplex data channel is implemented and collisions are avoided e The acknowledgement to received frames e The timeout management e The error checking length syntax and checksum field of a received frame are controlled and a repetition is requested in case of error Frame types A frame is a sequence of one or more characters encapsulating a data exchanged between the ST7580 device and the host
24. ast data indication 00000000h 4 R 05h Last TX confirm 0000000000h 5 06h PHY Data 00000000000000000000h 10 R E 07h DL Data 0000000000000000h 8 R E 08h SS Data 00000000000000000000h 10 R E 09h Host interface timeout C8280Ah 3 R W OAh Firmware version 00420097h 4 R DoclD17385 Rev 9 UM0932 Management information base MIB 4 2 MIB parameters In this section all the MIB object is described in detail 4 2 1 00h Modem configuration This object stores the setting used to functionally configure the modem It can be read or written Table 53 MIB object 00h MIB_WriteRequest and MIB_ReadRequest data format Byte Label Description and available values Factory default value index index Active layer for received frames PHY 0 1 Access mode eyer 1 DL layer 1 DL layer 2 SS layer Sniffer feature on received frames active on DL and SS layer only 2 Sniffer mode 0 not active 0 not active 1 active CRC length on DL frames 0 0 1 byte CRC 8 3 4 CRC length 1 2 byte CRC 16 big endian 2 2 4 byte CRC 32 little endian 3 4 byte CRC 32 big endian 5 Reserved Always equal to 0 0 Fields of DL frame Figure 3 involved in CRC DL calculation active on handled DL and SS frames only 0 PHY length 0 CRC calculated over DL payload only 1 CRC calculated over DL payload and PHY length 7 Unused Unused value 0 4
25. complete sequence must be restarted to repeat the communication DoclD17385 Rev 3 Ly UM0932 Host interface 3 2 9 Host interface timeouts All the default values of host interface timeouts are reported in Table 9 Table 9 Communication protocol timeouts Timeout Default value ms Tic 10 Tack 40 200 3 3 Command codes Each command frame exchanged between the external host and the ST7580 carries a command identified by a unique command code declared in the command code field as in Figure 8 It is possible to distinguish four different command types e Request commands sent by the external host to use a ST7580 service e Confirm commands sent by the ST7580 to answer a previous request command correctly executed e Error commands sent by the ST7580 to answer a previous request command not executed e Indication commands sent by the ST7580 to inform the external host about a change on its services these are unsolicited commands not following any request Request commands Request commands are sent by the external host to perform an action on ST7580 ST7580 executes the command and answers the external host through either a confirm command or an error command Table 10 shows all request commands their syntax and data fields are explained in the next paragraphs Table 10 Request command codes Group Request command Code Reset BIO ResetRequest Section 3 3 1 3Ch MIB
26. controller The communication protocol defines several frame formats for the different steps of the communication protocol access to ST7580 services acknowledgement device status d DoclD17385 Rev UM0932 Host interface 3 2 2 3 2 3 d All the ST7580 resources and services PHY layer DL layer and MIB management are available through local commands and they can be handled by the external host using the local communication serial interface and the commands defined in the following paragraphs Local frame The format of the frame used in the local communication between the ST7580 and the external host is graphically represented in Figure 8 Figure 8 Local frame format STX Length Command DATA Checksum Code AM10602v1 The frame fields are described in Table 6 Table 6 Local frame format Field Byte length Value Description STX 1 02h or 03h Start of text delimiter Length 1 0 255 Byte length of data field Command code 1 0 FFh Command code Data 0 255 Data field 255 byte max The checksum of the local frame is the result of the addition of the elements of the frame from length up to the last data byte or up to the command byte if there is no data byte Checksum 2 Byte endianness for fields data and checksum with a length greater than one byte is e Data field structured in sub fields in accordance with command code specifications described
27. d available values index index Frame modulation on the last Datalndication received 0 B PSK 1 Q PSK F 2 8 PSK 0 2 rame 3 B FSK modulation 4 B PSK coded 0 5 Q PSK coded 6 Reserved 7 B PSK coded with Peak Noise Avoidance RX channel on the last Datalndication received 3 RX channel 0 low channel 1 high channel 4 7 PGA value PGA value on the last Datalndication received 1 SNR SNR estimated over the Unique Word reception signed value valid for PSK received frames only equal to 255 no meaning for FSK received frames 2 3 ZC delay Delay between the received UW last bit and the mains zero crossing signed value expressed in 13 us step SS header 4 229 and payload Received header and payload up to 226 bytes 32 43 DoclD17385 Rev 3 Ly UM0932 Host interface 3 3 22 3 3 23 d SS Snifferlndication 5Eh This command is sent by the ST7580 after a reception of a power line frame that couldn t be decrypted through the key value stored the MIB object SS Key 02h Section 4 2 3 and it exports the SS Sniffer indication service Section 2 4 The command notification occurs if the modem is set for receiving SS frames at MIB object Modem Config 00h Section 4 2 1 as in the diagram flow in Figure 5 The IndicationData fields are the same as for PHY Datalndication Table 39 The payload field won t present the wrong CRC bytes Table 49 55 Snifferlndication Syntax Source Command Args Pos
28. during last transmission Valid 7 Overcurrent Whether the current control is active or not notification 0 max output current value not reached 1 max output current value reached Delay between the last transmitted UW last bit and the mains zero 3 4 ZC delay crossing signed value expressed 13 us step d DoclD17385 Rev 27 43 Host interface UM0932 3 3 14 3 3 15 28 43 PHY_Datalndication 26h This command is sent by the ST7580 device after a reception of a power line frame in compliance with PHY frame specification Figure 3 and it exports the PHY_Data indication service Section 2 4 The command notification occurs if the modem is set at PHY layer only at MIB object Modem Config 00h Section 4 2 1 as in the diagram flow in Figure 5 Table 38 PHY Datalndication Syntax DL DataRequest 50h This command is sent by the external host to request data transmission and it exports the DL Data transmission service Section 2 3 e f accepted the ST7580 constructs a DL frame Figure 3 that is transmitted over the power line according to the details expressed in RequestData field same format as PHY DataRequest Table 35 and with automatically appended CRC field with the format selected in MIB object Modem Config 00h Section 4 2 1 A positive DL DataConfirm Section 3 3 16 is generated at the end of the transmission e f r
29. e Command Args Possible response ST7580 DL DataConfirm ConfirmData None The ConfirmData field has the same format as for PHY DataConfirm see Table 37 3 3 17 DL Datalndication 52h This command is sent by the ST7580 after a reception of a power line frame in compliance with DL frame specification Figure 3 i e with a CRC correct field and it exports the DL Data indication service Section 2 4 The command notification occurs if the modem is set for receiving DL or SS frames at MIB object Modem Config 00 Section 4 2 1 as in the diagram flow in Figure 5 The IndicationData fields are the same as for PHY Datalndication Table 39 Table 42 DL Datalndication Syntax Source Command Args Possible response ST7580 DL Datalndication IndicationData None 3 3 18 DL Snifferlndication 5Ah This command is sent by the ST7580 after a reception of a power line frame in compliance with DL frame specification Figure 3 i e with a wrong CRC field and it exports the DL Sniffer indication service Section 2 4 The command notification occurs if the modem is set for receiving DL or SS frames at MIB object Modem Config 00h Section 4 2 1 as in the diagram flow in Figure 5 The IndicationData fields are the same as for PHY Datalndication Table 39 The payload field presents the wrong CRC bytes also Table 43 DL SnifferIndication Syntax Source Command Args Possible resp
30. ee Table 35 is equal to 0 5 7 Reserved Reserved bits 0 If ZC delay parameter in any DataRequest is equal to 8 9 ZC delay 1 Table 35 delay set during transmission between 0 the outgoing frame start and the mains zero crossing signed value expressed in 13 us step Preamble length for PSK communication T 0 16 bit 0 1 preambte 4 24 pit 2 32 bit 10 length 2 32 bit 3 40 bit 2 7 Unused Unused bits 0 36 43 DoclD17385 Rev 3 Ly UM0932 Management information base MIB Table 54 MIB object 01h MIB_WriteRequest and MIB_ReadRequest data format continued Byte Bit index index Label Description and available values Factory default value Bit rate for FSK communication 0 1200 bps 0 1 FSK bitrate 1 2400 bps 1 2400 bps 2 4800 bps 3 9600 bps Deviation for FSK communication 2 FSK deviation 0 0 5 1 1 1 Preamble length for FSK communication n y 19 16 bit 3 4 preamp e 4 24 bit 2 32 bit length 2 32 bit 3 40 bit Unique word length for FSK communication 5 unique 0 8 bit 1 16 bit word length 1 16 bit 6 Reserved Reserved bit 0 7 8 Unused Unused bits 0 12 FSK unique modulation unique word MSB used if unique 9Bh word MSByte word length is 16 bits only FSK unique 13 word LSByte FSK modulation unique word LSB 58h 42 3 02h SS Key This object holds the key used by the SS sub system to encrypt and decrypt transmitted and
31. efault even if the host controller answers with a negative acknowledgement Figure 10 Data flow from ST7580 to the external host T_REQ RXD NAK ACK TXD Local Frame Local Frame from ST7580 from ST7580 lt gt lt Tack Tack AM10604v1 Data communication from external host to the ST7580 When the external host needs to initiate a data transfer to the ST7580 it must set the T REQ signal at low level As soon as the ST7580 is not busy it answers with the status message confirming or not the data channel availability If the communication is possible the external host can start sending a local frame built with STX field equal to 02h within the Tsp delay The T REQ signal is set to high logic value as soon as the STX field of the local frame see Section 3 2 2 has been sent If the first byte of the local frame is not received before the Tsp delay the ST7580 ignores it Figure 11 Data flow from external host to the ST7580 T REQ vo Tack AM10605v1 At the end of the data reception on the RXD line the ST7580 sends an acknowledgement message on the TXD line to inform about the status of the transmission ACK or NAK within Tacx interval If the length and the checksum of the local frame are both correct the ST7580 acknowledges with an ACK character In other cases it answers with a NAK character In case of a response or no acknowledgement from the ST7580 within the Tack time out a
32. efused the modem generates a DL DataError Table 12 Source Command Args Possible response ST7580 PHY Datalndication IndicationData None Table 39 PHY Datalndication indicationData Byte Bit Label Description and available values Index Index Frame modulation on the last data indication received 0 B PSK 1 Q PSK 2 8 PSK 0 2 Frame modulation 3 B FSK 4 B PSK coded 0 5 Q PSK coded 6 Reserved T B PSK coded with Peak Noise Avoidance RX channel on the last data indication received 3 RX channel 0 low channel 1 high channel 4 7 PGA value PGA value on the last data indication received SNR estimated over the Unique Word reception signed 1 SNR value valid for PSK received frames only equal to 255 no meaning for FSK received frames Delay between the received UW last bit and the mains zero 2 3 ZC delay i crossing signed value expressed in 13 us step 4 254 PHY payload Received payload up to 251 bytes DoclD17385 Rev d UM0932 Host interface Table 40 DL_DataRequest Syntax Source Command Args Possible Response Request accepted DL_DataConfirm External host DL_DataRequest RequestData ConfirmData Request rejected DL_DataError ErrorData 3 3 16 DL_DataConfirm 51h This command is sent by the ST7580 to provide a positive confirmation to a DL_DataRequest Section 3 3 15 previously requested by the external host Table 41 DL_DataConfirm Syntax Sourc
33. he modem is set at DL or SS layer through MIB 2 3 object Modem Configuration 00h Section 4 2 1 it 0000h frames counter includes any wrong and malformed frames CRC wrong invalid key also Unsigned value 4 5 PHY transmitted frames Counter of valid transmitted PHY frames 0000h counter PHY_DataConfirm number Unsigned value 6 7 PHY refused Counter of refused transmissions on PHY frames 0000h transmission counter PHY DataError number Unsigned value 8 9 Network period Mains period expressed in 13 us step updated during 0000h last reception or transmission 4 2 7 07h DL Data This object stores counters of power line frames transmitted or received by the ST7580 in compliance with data link frame features It can be read or erased only Table 59 MIB object 07h MIB WriteRequest and MIB ReadRequest data format Byte index Label Description Factory default value Counter of valid received DL frames right CRC If the DL valid received modem is set the SS layer through MIB object Modem 0 1 Configuration 00h Section 4 2 1 it includes any SS 0000h frames counter wrong and malformed frames invalid key as well Unsigned value DL invalid received Counter of invalid received DL frames wrong 2 3 0000h frames counter Unsigned value DL transmitted frames Counter of valid transmitted DL frames DL DataConfirm 4 5 0000h counter number Unsigned value 6 7 DL refused Counter of refused transmissions on DL frames 0000h
34. host 1 Data transmission with frames structured as in Figure 2 requiring the payload as the only external parameter and building automatically the length field 2 DL Data transmission with frames structured as in Figure 3 requiring the payload as the only external parameter and building automatically the length and CRC fields 3 58 Data transmission with frames structured as in Figure 4 requiring the payload and header length greater than 3 as external parameters building automatically the length CRC and HL field deciding an arbitrary initialization vector and encrypting the payload The external host is allowed to access the ST7580 device and choose which among the three frame structures are utilized for transmitting data over the power line by selecting the corresponding available service Power line data reception In order to manage data reception from the power line the ST7580 can be configured to be able to receive in accordance with only one frame structure The external host is allowed to set through a dedicated MIB object modem configuration 00h Section 4 2 1 the only frame structure the ST7580 is able to receive The ST7580 embeds three corresponding available services 1 PHY_Data indication generated as soon as a frame in compliance with PHY frame structure Figure 2 has been received it exports the PHY payload field 2 DL Data indication generated as soon as a frame in compliance with DL frame str
35. ical 0 2 100 C T 125 C typical 1 3 T gt 125 C typical If current control feature MIB object PHY Config 01h Table 54 2 6 Min gain is active min gain used during last transmission If current 0 control feature is not active gain used during last transmission 7 Unused 0 Overcurrent Number of overcurrent events reached during PHY frame 0 6 d n 0 events number transmission Valid if the current control feature is active only 2 Notification about the overcurrent reached during last Overcurrent _ transmission Valid whether the current control is active or not 7 P 0 notification 0 max output current value not reached 1 max output current value reached 3 4 ZC Delay Delay between the last transmitted UW last bit and the mains 0 zero crossing signed value expressed in 13 us step DoclD17385 Rev 3 39 43 Management information base MIB UM0932 4 2 6 06h PHY Data This object stores counters of power line frames transmitted or received by the ST7580 in compliance with physical frame features It can be read or erased only Table 58 MIB object 06h MIB_WriteRequest and MIB_ReadRequest Data format Factory Byte index Label Description default value Received unique word Counter of preamble and unique word sequences 0 1 0000h counter received Counter of valid received PHY frame right preamble PHY valid received UW If t
36. line in accordance with three different frames structures 1 Physical PHY frames built with some differences between PSK and FSK modulations see as represented in Figure 2 Figure 2 Physical frame structure from 2 up to 5 bytes 4 bytes 1byte 1byte from 0 up to 255 bytes Preamble Unique Word Payload PRE UW PHY SDU AM10596v1 Table 2 lists the fields of PHY frame Table 2 PHY frame description Field name Length Description and values Length Payload length Allowable values from 0 up to 255 Payload Length Data bytes 2 Data Link DL frames adding CRC field to physical SDU Figure 3 shows the frame structure Figure 3 Data link frame structure 1 byte from 0 up to 255 bytes 1 2 or 4 byte Payload PHY SDU DL SDU AM10597v1 The external host is allowed to choose the CRC algorithm used length endianness fields involved in calculation through a dedicated MIB object modem configuration OOh Section 4 2 1 The length field is automatically handled by ST7580 and its value is by default equal to the length of payload and CRC fields DoclD17385 Rev 9 43 Functional overview UM0932 10 43 Table 3 lists the fields of DL frame Table 3 DL frame description Field name Length Description and values DL length 1 Total length of payload and CRC fields Payload DL length length of CRC Data bytes CRC calculated in acc
37. lt 226 6 231 or 3 228 Header and Header and payload to be sent from 0 to 226 byte Header and Payload 5 x 230 payload to be sent as unique buffer d If payload field is present must be greater than or equal to 4 If payload field is not present must be greater than or equal to 16 DoclD17385 Rev 31 43 Host interface UM0932 3 3 20 SS_DataConfirm 55h This command is sent by the ST7580 to provide a positive confirmation to a SS DataRequest Section 3 3 15 previously requested by the external host Table 46 SS_DataConfirm Syntax Source Command Args Possible response ST7580 SS DataConfirm ConfirmData None The ConfirmData field has the same format as for PHY DataConfirm see Table 37 3 3 21 SS Datalndication 56h This command is sent by the ST7580 after a reception of a power line frame in compliance with SS frame specification Figure 4 i e with a CRC correct field and encrypted according to SS Key MIB object Section 4 2 3 and it exports the SS Data indication service Section 2 4 The command notification occurs if the modem is set for receiving SS frames at MIB object Modem Config 00h Section 4 2 1 as in the diagram flow in Figure 5 Table 47 SS Datalndication Syntax Source Command Args Possible response ST7580 SS Datalndication IndicationData None Table 48 SS Datalndication IndicationData Byte Bn Label Description an
38. nication with an external host exporting all the functions and services required to configure and control the device and its protocol stack Protocol stack Below is a list of the protocol layers and functions embedded in the ST7580 e Physical PHY layer hosted in the PHY processor implements two different modulation schemes for communication through power line a B FSK modulation up to 9 6 kbps and a multi mode PSK modulation with channel quality estimation dual channel receiving mode and convolutional coding delivering a throughput up to 28 8 kbps e Data link DL layer the embedded DL layer hosted in the protocol controller offers framing and error correction services A further security service SS based on 128 bit AES algorithm is also available for crypting decrypting frames e Management information base MIB an information database with the data required for proper configuration of the system e Host interface all of the services of the PHY DL and MIB are exported to an external host through the local UART port Figure 1 Functional overview ST7580 a Local Port 4 1 UART External Protocol Controller o n Powerline Communication AM10595v1 DoclD17385 Rev 3 Ly UM0932 Functional overview 2 2 d ST7580 Power line frames structure The ST7580 device can be configured by the external host to transmit and receive frames over the power
39. onfirm Ext host MIB EraseRequest RequestData Request rejected MIB EraseError ErrorData Table 28 MIB WriteRequest RequestData Byte index Label Description EN INDEX MIB database entry index Refer to the MIB table Table 52 for available objects MIB EraseConfirm 11h This command is sent by the ST7580 to acknowledge an MIB EraseRequest see Section 3 3 8 if the request has been accepted and executed without errors Table 29 MIB EraseConfirm Syntax Source Command Args Possible response Ly DoclD17385 Rev UM0932 Host interface 3 3 10 PingRequest 2Ch This command is sent by external host to test the robustness of the local port link with the ST7580 If accepted the ST7580 answers with a PingConfirm command Section 3 3 11 Table 30 PingRequest Syntax Source Command Args Possible response External Host PingRequest RequestData Request accepted PingConfirm ConfirmData Table 31 PingRequest RequestData Byte index Label Description 0 n DATA Payload with variable length 3 3 11 PingConfirm 2Dh This command is sent by the ST7580 to notify the reception of a PingRequest The payload field of the local frame presents the same data received in the previous PingRequest Table 32 PingConfirm Syntax Source Command Args Possible response ST7580 PingConfirm ConfirmData Table 33 PingConfirm ConfirmDa
40. onse ST7580 DL SnifferIndication IndicationData None Ly DoclD17385 Rev 3 29 43 Host interface UM0932 3 3 19 30 43 SS_DataRequest 54h This command is sent by the external host to request data transmission and it exports the SS_Data transmission service Section 2 3 If accepted the ST7580 constructs an SS frame Figure 4 that is transmitted over the power line in accordance with the details expressed in RequestData field Table 46 A positive SS_DataConfirm Section 3 3 20 is generated at the end of the transmission If refused the modem generates an SS_DataError Table 12 Table 44 SS_DataRequest Syntax Source Command Args External host SS_DataRequest RequestData ConfirmData Possible response Request accepted SS_DataConfirm Request rejected SS_DataError ErrorData DoclD17385 Rev d UM0932 Host interface Table 45 SS DataRequest RequestData Byte index Bit index Label Description and available values Selection of frequency to use between MIB and custom frequency 0 Custom MIB 0 TX frequency is the high or low frequency as in PHY Config frequency Section 4 2 2 MIB object 1 TX frequency is specified in bytes 1 3 TX frequency Selection of PHY Config MIB object overwrite Section 4 2 2 This field is taken into account if the Custom MIB frequency bit is equal to 1 only 4 Frequency 0
41. ordance with CRC 1 20r4 algorithm chosen in dedicated MIB object modem configuration 00h Section 4 2 1 3 Security services SS frames providing authentication to payload using cryptographic algorithms based on AES with 128 bit keys Authentication is provided appending to user data an AES CMAC digest A dedicated key stored in the MIB object SS key 02h Section 4 2 3 is used for both transmitting and receiving frames Figure 4 shows the SS frame structure Figure 4 Security services frame structure 1byte from 33 up to 255 bytes 1 20r4 byte 5 HLbytes 12bytes 1 byte 16 bytes ula Head Encrypted Initialization lengh Payload Vector IV HL from 4 up to 226 bytes SS SDU PHY SDU DL SDU AM10598v1 Table 4 lists the fields of SS frame Table 4 SS frame description Field name Length Description and values Header HL Part of user data transmitted in clear Encrypted payload LEN 29 HL Part of user data transmitted ciphered IV 12 Initialization vector of AES CTR algorithm HL 1 Header field length Digest 16 AES CMAC digest computed header encrypted payload IV and HL fields d DoclD17385 Rev UM0932 Functional overview 2 3 2 4 d Power line data transmission In order to manage data transmission to the power line three different dedicated services are available to the external
42. ormat 0 0 000 ccc rn 14 Figure 8 Local frame format 0 0 0 0 00 eee eee 15 Figure 9 Timeout inter character TIC 20 0 cee eee 17 Figure 10 Data flow from ST7580 to the external 18 Figure 11 Data flow from external host to the 5 7580 18 d 6 43 DoclD17385 Rev UM0932 Documentation conventions 1 Documentation conventions List of abbreviations The following abbreviations are used Table 1 List of abbreviations Abbreviation Description MIB Management information base PGA Programmable gain amplifier ZC Zero crossing PHY Physical layer DL Data link layer CRC Cyclic redundancy check AES Advanced encryption standard UART Universal asynchronous receiver transmitter Tic Inter character timeout Tack Acknowledge timeout Tar Service request timeout SS Security services BIO Basic input output HI Host interface d DoclD17385 Rev 7 43 Functional overview UM0932 2 2 1 8 43 Functional overview The ST7580 device provides to the external host a complete physical layer PHY and some data link layer DL services for power line communication It is mainly developed for smart metering applications in CENELEC A band but suitable also for other control applications and remote load management in CENELEC B band A UART host interface is available for commu
43. r line frame 2 CE TR 0 the ST7580 is not receiving a power line frame 1 the ST7580 is receiving a power line frame 0 PHY layer 1 DL layer 4 Active 3 ctive layer 2 SS layer 3 ST7580 not configured 0 no overcurrent event on last transmission 5 Overcurrent flag 1 last transmission generated at least one overcurrent event 0 T 70 C typical 6 7 Estimated ST7580 1 70 C T 100 C typical temperature 2 100 T 125 typical 3 T gt 125 C typical DoclD17385 Rev d UM0932 Host interface 3 2 5 3 2 6 3 2 7 9 Local port arbitration rules The ST7580 modem is always the communication master In case of no local transfer the ST7580 can initiate a local communication without taking into account the external host status On the other hand when the external host wants to send a local frame it must first send a request through the T REQ transmitting request input port Then the ST7580 answers with a status message allowing or not the reception of a frame or any other command Frame delimitation Data coming from the UART serial port are an asynchronous flow of bytes In order to divide the bytes flow into a frames flow the ST7580 communication protocol uses two methods length and timeout When the number of bytes received reaches the expected frame length in accordance with the frame type s characteristics the frame reception ends The time inte
44. rd reception signed value 1 SNR valid for PSK received frames only equal to 255 no meaning 00h for FSK received frames 2 3 ZC Delay Delay between the received UW last bit and the mains zero 0000h crossing signed value expressed in 13 us step 4 2 5 05h Last TX Confirm This object stores information about last confirm message received among PHY DataConfirm Section 3 3 13 DL_DataConfirm Section 3 3 16 SS DataConfirm Section 3 3 20 Its field values are equal to those notified by last confirm message and presented in the first five bytes 0 2 of the ConfirmData Table 37 It can be read only 38 43 DoclD17385 Rev 3 Ly UM0932 Management information base MIB Table 57 MIB object 05h MIB_WriteRequest and MIB_ReadRequest data format Byte Bit Factory index index Description default value Max temperature reached during PHY frame transmission 0 T lt 70 C typical 0 1 1 70 C lt T lt 100 C typical 0 2 100 C T lt 125 C typical 0 3 T gt 125 C typical If current control feature MIB object PHY Config 01h Table 54 2 6 Max gain is active max gain used during the last transmission If current 0 control feature is not active gain used during last transmission 7 Unused 0 Min temperature reached during PHY frame transmission 0 T lt 70 C typical 0 1 Min temp 1 70 C T 100 C typ
45. rval between two consecutive characters two local frames including start and stop bits in a local frame must not exceed Tic timeout inter character the receiving part ST7580 host interface or external host no longer accepts any character after this delay expiration Figure 9 Timeout inter character Tic Tic AM10603v1 The timeout inter character is set by default at 10 ms after a reset and it can be modified by writing a dedicated MIB object host interface timeout O9h Section 4 2 9 If the length and the checksum are both correct the received frame is accepted otherwise all previous characters are discarded Data communication from the ST7580 to the external host When the ST7580 needs to transmit a frame to the host it can directly send it without any previous request The local frame is automatically built with an STX value equal to 02h If the length and the checksum of the local frame are both correct the external host acknowledges with an ACK character In other cases it answers with a NAK character If one of the following cases is verified on the RXD line e Negative acknowledgement e Any other frame e frame within Tacx interval DoclD17385 Rev 17 43 Host interface UM0932 3 2 8 18 43 The 577580 device repeats the frame only once after a delay corresponding to Tacx changing the STX value to 03h Acknowledgement to re transmitted frames is considered positive by d
46. sible response ST7580 SS Snifferlndication IndicationData None CMD SyntaxError 36h This command is sent by the ST758 to the external host after receiving a local frame with the value declared in command code not corresponding to any command listed in Table 10 Table 50 SyntaxError Syntax Source Command Args Possible response ST7580 CMD SyntaxError ErrorData Table 51 CMD SyntaxError ErrorData Byte index Label Description 0 ERROR Wrong command code declared in the previous local frame by external host DoclD17385 Rev 33 43 Management information base MIB UM0932 4 4 1 34 43 Management information base MIB The management information base collects all the parameters that allow the host to set and control the modem operation As explained in Section 3 the MIB objects can be directly accessed to update and read their values through dedicated commands Section 3 3 4 3 3 63 3 6 and 3 3 8 MIB table Table 52 lists all the available MIB objects with the related indexes the default values and the allowed operation read write Table 52 Management information base MIB objects Index Name Factory default value Length byte R W E 00h Modem configuration 11h 1 R W Oth PHY configuration 014FF00119400E15000002359B58h 14 R W 02h SS key 00000000000000000000000000000000h 16 R W 03h Reserved 00h 1 04h L
47. ta Description Payload with the values received in the previous PingRequest Section 3 3 10 3 3 12 PHY_DataRequest 24h d This command is sent by the external host to request data transmission and it exports the PHY Data transmission service Section 2 3 e f accepted the ST7580 constructs a PHY frame Figure 2 that is transmitted over the power line in accordance with the details expressed in RequestData field Table 35 A positive PHY DataConfirm Section 3 3 13 is generated at the end of the transmission e f refused the modem generates a PHY_DataError Table 12 Table 34 PHY DataRequest Syntax Source Command Args Possible response PHY DataRequest Request accepted PHY DataConfirm ConfirmData External host RequestData Request rejected PHY DataError ErrorData DoclD17385 Rev 25 43 Host interface UM0932 Table 35 PHY_DataRequest RequestData Byte index Bit index Label Custom MIB frequency Description and available values Selection of frequency to use between MIB and custom frequency 0 TX frequency is the high or low frequency as in PHY_Config Table 54 MIB object 1 TX frequency is specified in bytes 1 3 TX frequency Frequency overwrite Selection of PHY_Config MIB object overwrite Table 54 This field is taken into account if the Custom MIB frequency bit is equal to 1 only 0 TX frequency expressed in the following b
48. th a MIB_WriteError Table 72 9 DoclD17385 Rev 3 UM0932 Host interface Table 20 MIB_WriteRequest Syntax Source Command Args Possible response Source MIB_WriteRequest Request accepted MIB_WriteConfirm Ext host Ext host RequestData Request rejected MIB_WriteError ErrorData Table 21 MIB_WriteRequest RequestData Byte index Label Description MIB database entry index Refer to the MIB table Table 52 for available 0 INDEX objects allowed to be written 1 n DATA Data to be written in the MIB location INDEX 3 3 5 MIB WriteConfirm 09h This command is sent by the ST7580 to acknowledge an MIB WriteRequest see Section 3 3 4 if the request has been accepted and executed without errors Table 22 MIB WriteConfirm syntax Source Command Args Possible response ST7580 MIB WriteConfirm None 3 3 6 MIB ReadRequest 0Ch d This command is used by the external host to read the current value of an MIB object The ST7580 checks the parameters for validation e check is valid the object is updated in the database and the ST7580 replies with a MIB ReadConfirm Section 3 3 7 e check is not valid the request is rejected and the ST7580 replies with a MIB ReadError Table 12 Table 23 MIB ReadRequest Syntax Source Command Args Possible response Ext host MIB_ReadRequest Request accepted MIB_ReadConfirm ConfirmData
49. ucture Figure 3 has been received it exports the DL payload field 3 55 Data indication generated as soon as a frame in compliance with SS frame structure Figure 4 has been received it exports the SS payload field A further feature of ST7580 configuration is the Sniffer flag It can be activated by the external host through a dedicated MIB object modem configuration 00h Section 4 2 1 and it makes two further services available 1 DL Sniffer indication generated as soon as a frame in compliance with DL frame structure Figure 3 with a wrong CRC has been received it exports both DL payload and wrong CRC fields 2 SS_Sniffer indication generated as soon as a frame in compliance with SS frame structure Figure 4 that couldn t be correctly decrypted or authenticated has been received it exports the whole SS SDU field DoclD17385 Rev 11 43 Functional overview UM0932 ST7580 reception flow The reception flow for incoming frames is depicted in Figure 5 Figure 5 ST7580 reception flow PHY Header Preamble UW Mode reception v Length Field L reception Payload reception up to L Bytes Yes Receiving Mode PHY frames No PHY Data Indication Compute CRC Payload Ram eoe ons Yes Receiving Mode No SS frames Yes Sniffer No DL frames Enabled DL Data Indication DL Sniffer Indication No Indication Payload Payload CRC Right SS decryption and Wrong authentication S
50. ytes 1 3 won t overwrite the frequency in PHY_Config Table 54 MIB object 1 TX frequency expressed in the following bytes 1 3 overwrites frequency in PHY Config Table 54 MIB object Frequency set Selection of frequency in PHY Config MIB object 0 TX frequency is the LowFrequency in PHY Config MIB object 1 TX frequency is the HighFrequency in PHY Config MIB object Gain selector Selection of TX gain for frame transmission 0 TX gain set as in PHY Config MIB object TX Gain parameter Table 54 1 TX gain is specified in the following TX gain byte 2 or 4 Frame modulation Modulation of the frame to be transmitted B PSK Q PSK 89 PSK B FSK B PSK coded Q PSK coded Reserved B PSK coded with Peak Noise Avoidance Zero crossing synchronization OIN A o transmission frame starts on any instant 1 transmission frame start after ZC delay value defined in PHY Config MIB object Table 54 TX Frequency Frequency value in Hz that the output signal is modulated around to be expressed if Custom MIB frequency bit is equal to 1 only 4 or 1 TX Gain TX gain to be expressed if Gain Selector bit is equal to 1 only Unused 5 254 or 1 254 2 254 4 254 26 43 Payload DoclD17385 Rev Payload to be sent up to 254 bytes d UM0932 Host interface

Download Pdf Manuals

image

Related Search

Related Contents

2013-1 - Association des Résidents Gêtois  Smashweld 350  Sixty-Two Manual for Serato Scratch Live 2.4    testo 622 · Strumento per il controllo delle condizioni ambientali  Montage- und Wartungsanleitung    manual de usuario control remoto  User`s Manual  LED LCD TV - Vandenborre  

Copyright © All rights reserved.
Failed to retrieve file