Home

ST7570 S-FSK power line networking System-on-Chip

image

Contents

1. 16 3 5 3 Synchronization services 17 3 6 Additional features 18 3 6 1 Signal and noise estimation 18 3 6 2 Demodulation method count 19 3 6 3 Receiving gain PGA estimation 19 3 6 4 Electrical delta phase detection 20 3 6 5 Transmitting digital gain 20 3 6 6 DON Jah shang IIIA IIIA E 21 3 6 7 Programmable digital output 21 3 6 8 Zero crossing signal fault detection 21 4 MAG lavel siese sie die ED ie NG DONA AG AGE Ee aa 22 4 1 OVEIVIOW 24222 EE EN OK EE OE EA OE tba canned lt x 22 4 2 Operating modes 22 4 2 1 Additional operating mode 22 4 3 Services 23 4 3 1 Dataservices 23 2 113 Doc ID 17389 Rev 2 ky UM0934 Contents 4 3 2 Alarm services 24 4 3 3 Synchronization Services 24 44 BEd Ie EROSIE N ENIG IDEA GEOES WANANE UAE 25 45 Address management 27 4 5 1 Local MAC address
2. 54 CMD DataConfirm Syntax ESE SE SE eee eee eae 54 CMD DataConfirm ConfirmData PHY or MAC mode 55 CMD Alarmlndication Syntax EE SE eee eee eae 55 CMD Alarmlndication Data PHY or MAC mode 56 CMD AlarmRequest Syntax 56 CMD_AlarmConfirm SYNTAX aaa anG AGA KAN GG LA KAG KUR RR GL ABUEL BAGAY 56 CMD AlarmConfirm Data PHY or MAC mode 57 Doc ID 17389 Rev 2 UM0934 Table 49 Table 50 Table 51 Table 52 Table 53 Table 54 Table 55 Table 56 Table 57 Table 58 Table 59 Table 60 Table 61 Table 62 Table 63 Table 64 Table 65 Table 66 Table 67 Table 68 Table 69 Table 70 Table 71 Table 72 Table 73 Table 74 Table 75 Table 76 Table 77 Table 78 Table 79 Table 80 Table 81 Table 82 Table 83 Table 84 Table 85 Table 86 Table 87 Table 88 Table 89 Table 90 Table 91 Table 92 Table 93 Table 94 Table 95 Table 96 Table 97 Table 98 Table 99 Table 100 od List of tables SPY No Subframelndication Syntax 57 SPY No Subframelndication SpyData PHY mode only 57 SPY Subframelndication SyntaK 57 SPY Subframelndication SpyData PHY mode 58
3. 58 5 3 20 SPY SynchroFoundlndication DOh 59 5 3 21 SPY No Alarmlndication EOh 60 5 3 22 SPY Alarmlndication FOh 60 5 3 23 CMD RC Reguest 61h 61 5 3 24 CMD RC Confirm 62h 62 5 3 25 5 CMD IS Indication 15h 63 5 3 26 CMD SyntaxError 20h 63 Management information base MIB 64 6 1 MIB write request 64 6 2 MIB read request 65 6 3 MIB error message codes 65 6 4 Mia ARA 66 6 5 MIB parameters 67 6 5 1 0000h first and last initiator address FIMA LIMA 67 6 5 2 0001h local MAC address and the initiator MAC address 68 6 5 3 0002h timeout synchro confirmation 68 6 5 4 0003h timeout frame not OK 69 6 5 5 0004h timeout frame not addressed 69 6 5 6 0005h MAC group addresses 70 6 5 7 0006h invalid frame counter 70 Doc ID 17389 Rev 2 UM0934 Contents 6 5 8 0007h minimum delta credit
4. 42 5 2 3 Host interface timeouts 44 5 3 Command codes IIIA IIIA Pe odes AA 44 5 3 1 CMD Synchrolndication 10h 46 5 3 2 CMD SynchroStatus 85h 48 5 3 3 CMD DesynchroRequest 11h 48 Doc ID 17389 Rev 2 3 113 Contents 4 113 UM0934 5 3 4 CMD ResetRequest 21h 49 5 3 5 CMD WriteDBRequest 41h 49 5 3 6 CMD WriteDBConfirm 42h 50 5 3 7 CMD WriteDBError 43h 50 5 3 8 CMD ReadDBRequest 90h 51 5 3 9 CMD ReadDBConfirm 91h 51 5 3 10 CMD ReadDBError 92h 51 5 3 11 CMD Datalndication 50h 52 5 3 12 CMD DataRequest 51h 53 5 3 13 CMD DataConfirm 52h 54 5 3 14 CMD Alarmlndication 8Ah 55 5 3 15 CMD AlarmRequest 88h 56 5 3 16 CMD AlarmConfirm 89h 56 5 3 17 SPY No Subframelndication AOh 57 5 3 18 8 SPY Subframelndication BOh 57 5 3 19 SPY SearchSynchrolndication COh
5. 82 Table 126 MIB object 0083h Read write confirm dataformat 82 Table 127 MIB object 0083h Write error data format aaa 82 Table 128 MIB object 0084h Write request dataformat 83 Table 129 MIB object 0084h Read write confirm dataformat 83 Table 130 MIB object 0084h Write error dataformat 83 Table 131 MIB object 0085h Write request dataformat 84 Table 132 MIB object 0085h Write error dataformat 84 Table 133 MIB object 0086h Write request dataformat 85 Table 134 MIB object 0086h Write error dataformat 85 Table 135 MIB object OOAOh Write request dataformat 85 Table 136 MIB object OOAOh Write error dataformat 85 Table 137 MIB object OOAih Write request dataformat 86 Table 138 MIB object OOA1h Write error dataformat 87 Table 139 MIB object OOA4h Write request dataformat 87 Table 140 MIB object OOA4h Write error dataformat 87 Table 141 MIB object 000Ch Write request dataformat
6. 71 6 5 9 0008h disable frame type check and disable CRC check 72 6 5 10 0009h Timeout Intelligent Synchronization 72 6 5 11 OOOAh validframecounter 73 6 5 12 000Bh TIC selector and repeater setting 73 6 5 13 000Ch RC Threshold 75 6 5 14 OOODh SO NO PGA 75 6 5 15 OOOEh S1 N1 phase 76 6 5 16 OOOFh transmitted frame counter 77 6 5 17 0010h repeated frame counter 77 6 5 18 0011h bad frame indicator counter 78 6 5 19 0012h frame indicator 78 6 5 20 0013h smart phase detection 79 6 5 21 0014h phase 79 6 5 22 0015h auto synchro reject 80 6 5 23 0016h Intelligent synchronization threshold 81 6 5 24 0082h TX output gain and current limiting 81 6 5 25 0083h received alarm counter 82 6 5 26 0084h transmitted alarm counter 83 6 5 27 0085h alarm repetition alarm before indication alarm reject window 84 6 5 28 0086h alarm indication repetition SN indication disable
7. 28 4 5 2 Address Space iii OR RR EES HEAT ee ee IAEA 28 4 5 3 PCCCOUOM AE AE HE EE EE EE EE OE EE IY LG Wa 28 4 54 WANSMISSIOA ii TE N OE N NG bh 29 4 5 5 UDA IIIA 29 4 6 Time slotsynchronization 29 4 6 1 aak d i EN OE AA R NA NAA AN ERE S 29 4 6 2 MAC layer 30 4 6 3 Initiator MAC address 30 4 7 UA UE IE ee eee doe eee eee A 31 4 7 1 Synchronization confirmation timeout 31 4 7 2 Timeout frame not OK 31 4 7 3 Timeout not addressed 31 4 8 Credit management and repetitions 31 4 8 1 Initial credit IC 31 4 8 2 Current eredi CO issie EDE RARR ES die Hd DEAR AN Er 32 4 8 3 Delta credit DC 32 4 8 4 aa AA 32 4 8 5 POND IA AIKAELI IIIA 32 4 9 Additional features 35 4 9 1 Delta phase detection at 2400 bps baud rate 35 Host interface 36 5 1 UART 36 5 2 Communication protocol 37 5 2 1 Frame WOES 4 2 mami DER RD GE LA GE RE EE EE HD Ee OU ws 37 5 2 2 Local port arbitration rules
8. ES SE SE SE es 68 MIB object 0001h Write request dataformat 68 MIB object 0001h Write errordataformat 68 MIB object 0002h Write request dataformat 68 MIB object 0002h Write error data format SE SE SE ees 69 MIB object 0003h Write request dataformat 69 MIB object 0003h Write error data format ES SE SE SE es 69 MIB object 0004h Write request dataformat 69 MIB object 0004h Write error data format SE SE ees 70 MIB object 0005h Write request dataformat 70 MIB object 0005h Write error data format ES SE SE SE ees 70 MIB object 0006h Write request dataformat 71 MIB object 0006h Read write confirm data format 71 MIB object 0006h Write error data format SE SE SE SE es es ees 71 MIB object 0007h Write request dataformat 71 MIB object 0007h Read write confirm data format 71 MIB object 0007h Write error data format ES SE SE SE ees 71 MIB object 0008h Write request dataformat 72 MIB object 0008h Write error data format SE SE es 72 MIB object 0009h Write request dataf
9. 84 6 5 29 OOAOh New synchronization 85 6 5 30 OOA1h PLC configuration 86 6 5 31 O0A4h PRESLOT ZC TS BIT and ZC IN D configuration 87 6 5 32 OOABh Max PGAGain 88 653 OUACKI SON Stall IIIA a a neds dene DNA PAKA ne Gees 88 6 5 34 O0C2h time slot delay bit 89 6 5 35 OODf1h ZC delay compensation 90 Extended functions 92 7 1 Automatic reconfiguration 92 7 1 1 PHY reconfiguration 93 7 1 2 MAC reconfiguration 94 7 2 Alarm management 94 7 2 1 Alarm transmission 94 7 2 2 Alarm tse so AA AA AA 95 7 2 3 Alarm repetition 96 Doc ID 17389 Rev 2 5 113 Contents 10 11 12 6 113 UM0934 7 3 Repeater call EE SE EE ee eee eee 97 7 3 1 CINCH ARRESTEER EN 97 7 3 2 ea AA PAPA 98 Modem configuration 99 PHY mode communication example 101 MAC mode communication example 103 10 1 Step 1 address configuration 103 10 1 1 Station1 Client 0
10. ST7570 CMD WriteDBError ErrorData Table 30 CMD WriteDBError ErrorData Error code 11h ERR UNAVAILABLE RESOURCE the selected MIB object does not exist or it does not exist for the current operating mode MAC or PHY 12h ERR REQUEST NOT ALLOWED the writing request to a MIB object ERROR failed 22h ERR_ILLEGAL_DATA_COMMAND the format or value of the request data is not valid for the selected object 23h ERR ILLEGAL LOCAL MAC ADR invalid local MAC address 24h ERR_ILLEGAL_INITIATOR_MAC_ADR invalid initiator MAC address Doc ID 17389 Rev 2 a UM0934 5 3 8 5 3 9 5 3 10 Host interface CMD ReadDBRequest 90h This command is used by the external host to read the current value of an MIB object The ST7570 checks the parameters for validation if valid the request is accepted and the ST7570 returns the object value through a CMD ReadDBConfirm Section 5 3 9 if the check is not valid the request is rejected and the ST7570 replies with a CMD ReadDBError Section 5 3 10 Table 31 CMD ReadDBRequest Syntax Source Command Args Possible response Request accepted Ext host CMD ReadDBRequest RequestData CMD ReadDBConfirrm RequestData Error CMD ReadDBError ErrorCode Table 32 CMD ReadDBReduest RequestData 0 1 INDEX Database entry index Refer to MIB table for available objects LSByte sent first the MSByte is always set at OOh CMD ReadDBConfirm 91h This command
11. ESE SS eee eee ee 48 CMD DesynchroRequest Reset 48 CMD ResetRequest Syntax 49 CMD ResetRequest ResetData SE ce eee es ee 49 CMD ResetRequest ResetConfirm 49 CMD WriteDBRequest Syntax SE SE eee eee 49 CMD WriteDBRequest RequestData 50 CMD WriteDBConfirm Syntak 50 CMD WriteDBError Syntax 0 0 0 0 SE SEE SE ss SE ee se se es ee se eee eens 50 CMD WriteDBError ErrorData 50 CMD ReadDBRequest Syntax SE SE EE eee eee eens 51 CMD ReadDBReduest ReguestData 51 CMD ReadDBConfirm Syntax 51 CMD ReadDBError SyntakK 51 CMD ReadDBError ErrorData 52 CMD Datalndication Syntax 52 CMD Datalndication IndicationData PHY mode 52 CMD Datalndication IndicationData MAC mode 53 CMD DataRequest Syntax 53 CMD DataRequest RequestData PHY mode SS ESE ESE SE SES es ee 53 CMD DataReguest RequestData MAC mode
12. I Management information base MIB Table 93 MIB object 0009h Write error data format Returned value Error description ERR UNAVAILABLE RESOURCE The modem is not configured as MAC ERR ILLEGAL DATA COMMAND Wrong number of data bytes ERR REQUEST NOT ALLOWED The modem is configured as MONITOR 000Ah valid frame counter This object stores the number of the valid received MAC frames The counter is increased if all the FI fields number of NS subframes and the CRC are correct The confirm message of a CMD ReadDBRequest returns the current value of the counter without changing it The CMD WriteDBRequest resets the value of the counter O and the confirm message returns the reset value 0 Table 94 MIB object OOOAh Write request data format Table 95 MIB object OOOAh Read write confirm data format Valid frame counter Valid frame counter value 0 FFFFFFFFh Ho Table 96 MIB object OOOAh Write error data format Returned value Error description ERR UNAVAILABLE RESOURCE The modem is not configured as MAC ERR ILLEGAL DATA COMMAND Wrong number of data bytes 000Bh TIC selector and repeater setting This object stores the ST7570 repeater settings and the inter character timeout TIC value Both parameters are available in MAC mode whereas in PHY mode only the inter character timeout selector bit b7 is active and all the other bits must be set at O otherwise an ERR ILLEGAL DATA COMMAND error message i
13. The confirm message of a CMD_ReadDBReqgquest returns the current constant without changing it The CMD_WriteDBRequest sets the corresponding time value and the confirm message returns it Table 147 MIB object 00D1h Write request data format b0 19 13us delay steps 000000h OFFFFFh 000000h 0 2 ZC delay compensation Read write confirm data format The same as request x Doc ID 17389 Rev 2 UM0934 Management information base MIB Table 148 MIB object 00D1h Write error data format Returned value Error description ERR ILLEGAL DATA COMMAND Wrong number of data bytes ERR REQUEST NOT ALLOWED The writing request failed I Doc ID 17389 Rev 2 91 113 Extended functions UM0934 7 7 1 92 113 Extended functions The ST7570 embeds the following extended functions Automatic reconfiguration Support for alarm management Repeater Call service Automatic reconfiguration This feature allows automatic reconfiguration of the PHY and MAC layer settings after an unexpected modem reset If a reset occurs the modem checks the integrity of the internal settings and the reconfiguration takes place if no corruption is detected Otherwise the settings are reset to their factory default values The settings of PHY and MAC are managed independently Doc ID 17389 Rev 2 ky UM0934 Extended functions 7 1 1 PHY reconfiguration Table 149 lists all the PHY layer settings managed by the auto reconfigu
14. It provides an M Data Indication upon receipt of MAC frame CC 3 The following repetitions CC 2 CC 1 CC 0 are neglected REPEATER B the link between the Client and this node is assumed to be noisy with the noise corrupting the reception of MAC frames marked with CC 3 This node provides an M Data Indication upon receipt of MAC frame CC 2 The node joins the repetitions by transmitting 2 frames with CC 1 and CC 0 Server C the link between the Client and this node is assumed to be noisy with the noise corrupting the reception of MAC frames marked with CC 3 and CC 2 This node provides an M Data Indication upon receipt of MAC frame CC 1 coming from Server B The following repetition CC 0 is neglected Doc ID 17389 Rev 2 33 113 MAC layer UM0934 Figure 12 Repetitions example M Data request D A 0XxFFF M sdu IC 3 CC 3 DC 0 timeslot i 0 timeslot i 1 timeslot i 2 timeslot i 3 CLIENT MAC Frame MAC Frame MAC Frame MAC Frame IC 3 CC 3 IC 3 CC 2 IC 3 CC 1 C 3 CC 0 M_Data indication DA 0xFFF SA M_sdu IC 3 CC 3 DC 0 SERVERA M_Data indication DA O0xFFF SA M_sdu IC 3 CC 2 DC 0 Invalid MAC MAC Frame MAC Frame MAC Frame Frame IC 3 CC 2 IC 3 CC 1 C 3 CC 0 SERVER B REPEATER MAC Frame MAC Frame IC 3 CC 1 IC 3 CC 0 M_Data indication DA OxFFF SA M sdu IC 3 CC 1 DC 0 Invalid MAC Invalid MAC MAC Frame MAC Frame Frame Frame IC 3 CC 1 1C 3 C C 0 SERVE
15. User manual ky UM0934 517570 S FSK power line networking System on Chip Description This user manual targets application developers and provides complete information on how to use the ST7570 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 and mechanical and electrical device characteristics please refer to the ST7570 S FSK power line networking system on chip datasheet September 2011 Doc ID 17389 Rev 2 1 113 www st com Contents UM0934 Contents 1 Documentation conventions 11 1 1 List of abbreviations 11 2 Functional overview 12 2 1 POIOCOI SACK CA AA AA 12 2 2 Access points 13 3 Physical lay f ia IAA eee RE Ee 14 3 1 OvervieW snanan 14 3 2 Frame structure SEE eee Ee se se ee 14 3 3 Frame timing and time slot synchronization 14 3 4 Operating modes 15 3 4 1 Additional operating modes for the physical layer 15 3 5 elle ER EE EE edhe a he whe SR ES HO REESE 15 3 5 1 Data services 16 3 5 2 Alarm services
16. padding ZC b0 b2 000b padding b3 0b 50 Hz mains frequency b4 b7 000b padding Gain b0 b7 10h TxGain parameter 31 15 16d 10h Fo 74000Hz 12110h transmitted LSByte first F 63300Hz gt F744h transmitted LSByte first Layer 02h MAC mode Tx Current Control 01h enabled CMD WriteDBConfirm The confirmation message from the ST7570 consists of a local frame with a command CMD WriteDBConfirm message different from previous local frames on command code checksum codes only memex wae 2 cm 0 PAD oe EET 02h 13h 42h A1 00h 09h 00h 10h 10 21 01h 44 F7 00h 00 00 00h 02h 01h 7F 02h STX Doc ID 17389 Rev 2 ky UM0934 9 a PHY mode communication example PHY mode communication example This example shows how to use the PHY data services Section 3 5 1 in order to perform the transmission of a PHY frame from station1 to station2 Figure 29 with a detailed time diagram of data exchanged on the UART interfaces of both stations Figure 30 It is assumed that both station1 and station2 have been initialized in accordance with the initialization procedure as in Section 8 1 and they have been further set with the same value for MIB object OOA1h with access layer mode equal to PHY except for operating mode that is Client for station1 and Server for station2 Figure 29 Data communication P Data indication Powerline P Data network confirm ST7570 External External PHY host
17. bit rate transmission on ch 1 e 6 Test on Ch 0 and Ch 1 Alternate tones continuous transmission b3 b4 bit rate e 0 1200 bit s 0 1 e 1 2400 bit s b3 zero crossing Synchronization PLL e 0 Mains frequency is 50 Hz 0 1 50 Hz 0 PEL lied e 1 Mains frequency is 60 Hz be EET b5 7 unused Target output The gain used during transmission as 00h 4Eh gain attenuation from 31 to O dB 3 6 5 Any value in CENELEC o ta Data 1 frequency Hz Any value in CENELEC 63300 Hz ae ara A B C ad 911 11 PAD Paddingbytes bytes 10 Access layer 1 Physical layer mode PHY PHY mode 2 MAC layer mode MAC HY TX current limiting enable flag current 9 disabled 0 1 0 Disabled limiting 1 enabled Read write confirm data format The same as reguest a 86 113 Doc ID 17389 Rev 2 UM0934 Management information base MIB Table 138 MIB object OOAih Write error data format Returned value Error description ERR ILLEGAL DATA COMMAND Wrong number of data bytes or value out of available range ERR PARAM VAL OUTOFRANGE At least one configuration value is out of the related available range 6 5 31 00A4h PRESLOT ZC TS BIT and ZC IN D configuration This parameter configures the operating functions of PRESLOT ZC TS BIT output and ZC IN D pins The confirm message of a CMD ReadDBRequest returns the current values without changing them The CMD WriteDBRequest sets the corresponding operating functions and
18. the confirm message returns the corresponding value Table 139 MIB object 00A4h Write request data format DO b2 PRESLOT ZC TS BIT e 0 PRESLOT e 1 ZC e2 TS e 3 BIT PRESLOT e4 TXP PRESLOT ZC TS BIT and ZC IN D 5 RXP e 6 TXRXP b3 ZC IN D e0 ZC IN D OFF 0 1 ZC IN D OFF e1 ZC IN D ON Read write confirm data format The same as reguest Table 140 MIB object OOA4h Write error data format Returned value Error description LO ERR ILLEGAL DATA COMMAND Wrong number of data bytes a Doc ID 17389 Rev 2 87 113 Management information base MIB UM0934 6 5 32 6 5 33 88 113 00ABh Max PGA Gain This object stores the Maximum Value Gain to limit the PGA control block amplification The confirm message of a CMD ReadDBRequest will return the current value without changing it The CMD WriteDBRequest will set the value and the confirm message will return it Table 141 MIB object 000Ch Write request data format GAIN Maximum PGA gain 0000h 0008h 0008h Padding bytes 0000h 0000h Read write confirm data format The same as request Table 142 MIB object 0005h Write error data format Returned value Error description po ERR ILLEGAL DATA COMMAND Wrong number of data bytes OOACh soft start This object stores the time value to reach the fixed output gain during a frame The value stored in the MIB object has to be multiplied by a constant interval edual to 13 us to calcul
19. 0 0 0 eee 103 10 1 2 Station2 Server 104 10 2 Step 2 Server time outs configuration 104 10 2 1 Synchronization confirmation timeout reading 105 10 2 2 Timeout frame not ok reading 105 10 2 3 Timeout frame not addressed reading 105 10 3 Step 3 Transmitting a MAC frame from Client to Server 106 10 3 1 Slationd Client 106 10 32 Stdtiom2 SEVEN KENA WAIUA sa 107 10 4 Step 4 Transmitting a MAC frame from Server to Client 108 10 4 1 Station2 Server 109 10 4 2 Station Client lt o 4 des dct een taveedexdaerinw ee HOA 110 MGICIGNCCS EEU He AAA AA ED WA UU eee ee ens oe wee os 111 Revision history nsananaanza 112 Doc ID 17389 Rev 2 ky UM0934 List of figures List of figures Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 Figure 9 Figure 10 Figure 11 Figure 12 Figure 13 Figure 14 Figure 15 Figure 16 Figure 17 Figure 18 Figure 19 Figure 20 Figure 21 Figure 22 Figure 23 Figure 24 Figure 25 Figure 26 Figure 27 Figure 28 Figure 29 Figure 30 Figure 31 Figure 32 power line Figure 33 FUNCHONALOVENIEW ia Ede ORR ESE DE AA EE RR NANA LABAN Ee 12 Physicalf
20. 0006h Read write confirm data format Invalid frame counter Invalid frame counter value O FFFFFFFFh O YA Table 86 MIB object 0006h Write error data format Returned value Error description EN ERR UNAVAILABLE RESOURCE The modem is not configured as MAC i ERR ILLEGAL DATA COMMAND Wrong number of data bytes 0007h minimum delta credit This object stores the minimum value of the delta credit DC parameter among all MAC frames received The confirm message of a CMD_ReadDBRequest returns the current value of the min delta credit and keeps the value itself unchanged the CMD WriteDBRequest resets the value of the min delta credit 7 and the confirm message returns its reset value 7 Table Tr MIB TI ae 0007h Write reduest data format Byte Label Label Description Available range Available range Factory default Factory default noe NN PAD word can be any value credit Table 88 MIB object 0007h Read write confirm data format Minimum delta Minimum delta credit value 0 7 7 credit Table 89 MIB object 0007h Write error data format Returned value Error description ERR UNAVAILABLE RESOURCE The modem is not configured as MAC ERR ILLEGAL DATA COMMAND Wrong number of data bytes Doc ID 17389 Rev 2 71 113 Management information base MIB UM0934 6 5 9 6 5 10 72 113 0008h disable frame type check and disable CRC check The frame type check i e the check of the FI field
21. 00h 58 00h Station2 Server For a Server station the local MAC address is usually NEW or within the range 001h and FIMA 1 COOh as default value while the initiator MAC address should be set equal to the initiator i e Client local MAC address In this example local MAC address 001h initiator MAC address COOh For station2 the CMD WriteDBRequest is composed as pea DATA ni MAC Ad 02h 09h 41h 01 00h 01 00h 00 0Ch 58 00h And the expected CMD ReadDBRequest from the ST7570 device pa DATA int MAC Ada 02h 09h 42h 01 00h 01 00h 00 0Ch 59 00h Step 2 Server time outs configuration The MAC time outs Section 4 6 must be programmed to suitable values according to the application requirements The factory default values are used in this example The factory default values are read through CMD ReadDBRequest Figure 31 only to show the of use of the command Figure 31 Host interface MIB object reading command sequence CMD ReadDB Confirm CMD ReadDB Request Local Frame Doc ID 17389 Rev 2 ky UM0934 10 2 1 10 2 2 10 2 3 MAC mode communication example Synchronization confirmation timeout reading The local frame encapsulating the CMD ReadDBRequest to read the MIB object 0002h DATA 02h 05h 90h 02 00h 97 00h and the expected CMD ReadDBConfirm returned by the ST7570 DATA 02h O7h 91h 02 00h 03 00h 9D 00h Therefore the synchronization confirmation timeout
22. 12 A9 00h 5D 00h 2A 00h 13 09 01h 33 FD 00h C1 05h 131415 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25h STX The ASKO ASK1 FSK SNRO and SNR1 fields can be decoded to obtain the estimated values of the demodulated signals ASKO OOA9h 169 bits equal to O decoded independently ASK1 005Dh 93 bits equal to 1 decoded independently FSK 002Ah 42 bits decoded through measurements on both tones SNRO 10913h 67859d gt 24 936 dBuVams SNRO FD33h 64819d 23 819 dBuVans Station1 CMD_DataConfirm sent from ST7570 to the external host meaning that the transmission of the PHY frame over the power line has finished DATA 02h 04h 52h FFh 55 01h KN 6 6 6 STX The only label in the data field is the Confirm Code Section 5 3 13 equal to the FFh value meaning that the P SDU transmission was performed with no errors The checksum is equal to 155h value Doc ID 17389 Rev 2 x UM0934 10 10 1 10 1 1 MAC mode communication example MAC mode communication example This section provides an example which describes how to properly configure two ST7570 modems in MAC mode as Client and Server respectively and perform a communication with a suitable address and credits through the following steps to be followed after the initialization and basic configuration steps described in Section 8 1 Address configuration optional 2 Server time outs configuration optional 3 Transmitting
23. 4 180 Delta Credit O No repeater CMD DataRequest The local frame encapsulating the CMD DataRequest DATA EIE SE TEE 54h 00h 00 1C 00h 00h 00 01 0203 04 05 06 07 08 09 0A 0B 0C 0D OE 0F 10 11 12 13 14 15 16 17 18 19h D4 01h The fields are filled in the same way as the data request from Client to Server Section 10 3 1 with the only exception on the address sub field SA 001h DA COOh gt Address C0 00 01h CMD DataConfirm As soon as the transmission over the power line is complete station2 generates locally a CMD_DataConfirm as follows STX DATA 02h 04h 52h FFh 55 01h The data value egual to FFh LP OK Section 5 3 13 notifies that the transmission completed successfully Doc ID 17389 Rev 2 109 113 MAC mode communication example UM0934 10 4 2 Station1 Client CMD Datalndication As soon as the whole MAC frame is received assuming that no corruption occurred station1 notifies the reception of the M sdu through a CMD Datalndication as follows ol mel Re OB 02h 22h 50h 00h O00 1C OOh 00h 00 01 0203 04 05 06 07 08 09 0A 0B 0C 0D OE 0F 10 11 12 13 14 15 16 17 18 19h D3 01h Below is the meaning of the sub fields encapsulated in the data field Credit 00h IC 000b CC 000b DC 00b Address 00 1C 00h SA 001h DA COOh M sduz 00h 01h 18h 19h 110 113 Doc ID 17389 Rev 2 AY UM0934 References 11 References 1 STMicroelectronics ST7570 S FSK power l
24. 88 Table 142 MIB object 0005h Write errordataformat 88 Table 143 MIB object OOACh Write request data format 88 Table 144 MIB object OOACh Write error dataformat 88 Table 145 MIB object OOC2h Write request dataformat 89 Table 146 MIB object 00C2h Write error dataformat 90 Table 147 MIB object OOD1h Write request dataformat 90 Table 148 MIB object OODih Write error dataformat 91 Table 149 MIB objects checked after reset event in PHY mode 93 Table 150 MIB objects checked after reset event in MAC mode 94 Table 151 Document revision history EE ce ee ee se se es ee 112 10 113 Doc ID 17389 Rev 2 ky UM0934 1 1 1 I Documentation conventions Documentation conventions List of abbreviations The following abbreviations are used Table 1 List of abbreviations ME pinageran ups Yn poea atan Doc ID 17389 Rev 2 11 113 Functional overview UMO0934 2 Functional overview The ST7570 embeds full S FSK PHY and MAC protocol layers and services compliant with the IEC 61334 5 1 standard 2 mainly developed for smart metering applications in CENELEC A band but suitable also for other command and control appli
25. CMD Alarmlndication Data PHY or MAC mode Alarms received counter If a long alarm indication is selected Amplitude estimation of channel O signal CMD AlarmRequest 88h This command exports the following services to the external host PHY mode P Alarm Request MAC mode M Alarm Request This command is sent by the external host to request the transmission of an alarm A positive or negative confirmation CMD AlarmConfirm follows this request if accepted the request is accomplished in the next alarm slot Table 46 CMD_AlarmRequest Syntax Source Command Args Possible response Ext Host CMD AlarmRequest none CMD AlarmConfirm Data CMD AlarmConfirm 89h This command exports the following services to the external host PHY mode P Alarm Confirm MAC mode M Alarm Confirm This command is sent by the ST7570 to confirm an alarm request The data field is a 1 byte field containing the result of the previous request Table 47 CMD AlarmConfirm Syntax Source Command Args Possible response ST7570 EMD _AlarmConfirm Data g Doc ID 17389 Rev 2 UM0934 5 3 17 5 3 18 a Host interface Table 48 CMD AlarmConfirm Data PHY or MAC mode LP TU 00h Modem busy Physical i hronized CONFIRM CODE LP NS 04h P Iss ayer is not Me ronized _ LP IS 05h Modem is during Intelligent Synchronization search LP OK FFh The request has been successfully accomplished SPY
26. Error description LO ERR ILLEGAL DATA COMMAND Wrong number of data bytes 0083h received alarm counter This object counts the number of received alarms The confirm message of a CMD ReadDBRequest returns the current value of the counter without changing it The CMD WriteDBRequest resets the value of the counter to 0 and the confirm message returns the reset value 0 Table 125 MIB object 0083h Write request data format Received alarm counter PAD word any value 0 FFFFFFFFh N EN Table 126 MIB object 0083h Read write confirm data format Received alarm counter Received alarm counter value O FFFFFFFFh o 1 Table 127 MIB object 0083h Write error data format Returned value Error description EN ERR ILLEGAL DATA COMMAND Wrong number of data bytes KI Doc ID 17389 Rev 2 UM0934 6 5 26 a Management information base MIB 0084h transmitted alarm counter This object counts the number of the transmitted alarms even if repeated The confirm message of a CMD ReadDBRequest returns the current value of the counter without changing it The CMD WriteDBRequest resets the value of the counter 0 and the confirm message returns the reset value 0 Table 128 MIB object 0084h Write request data format Transmitted alarm counter PAD word any value 0 FFFFFFFFh O a 129 MIB object 0084h Read write confirm data format Byte Label babel Description Description A
27. MAC address The field Initiator MAC address in the MIB object 0001h can be used by upper layers to force a Server to accept the time slot synchronization coming only from a specific node as described in Section 4 6 2 Valid values for the initiator MAC address are shown in Table 7 Table 7 Initiator MAC address NO BODY default value Any time slot synchronization is confirmed time slot synchronization is confirmed Any value between FIMA and LIMA locked ny ime st smehronzaton cones time slot synchronization coming from the specified node is confirmed KI Doc ID 17389 Rev 2 UM0934 MAC layer 4 7 4 7 1 4 7 2 4 7 3 4 8 4 8 1 Timeouts The MAC layers of a Server node handle 3 timeouts aimed at Managing the time slot synchronization as described in Section 4 7 1 through the synchronization confirmation timeout and timeout frame not OK Checking the validity of the local MAC address through the timeout not addressed The time outs can be programmed with the desired values through dedicated MIB objects 0002h Timeout Synchro Confirmation Section 6 5 3 0003h Timeout Frame Not OK Section 6 5 4 and 0004h Timeout Frame Not Addressed Section 6 5 5 Synchronization confirmation timeout Refer to Section 4 6 2 Timeout frame not OK Refer to Section 4 6 2 Timeout not addressed This timeout is aimed at periodically checking the validity of the local MAC address
28. MIB object 0011h Write request data format Table 110 MIB object 0011h Read write confirm data format 0 3 Bad frame indicator Bad frame indicator counter O FFFFFFFFh counter value Table 111 MIB object 0011h Write error data format Returned value Error description ERR_UNAVAILABLE_RESOURCE The modem is not configured as MAC ERR ILLEGAL DATA COMMAND Wrong number of data bytes 0012h frame indicator The frame indicator value is used to build the frame indicator parameter Fl ina MAC frame to be transmitted During a MAC frame reception the frame indicator is always checked on the default value long MAC frame 0000h Table 112 MIB object 0012h Write request data format User defined TX frame indicator 0000h FFFFh 0000h g Doc ID 17389 Rev 2 UM0934 6 5 20 6 5 21 a Management information base MIB Read write confirm data format The same as request Table 113 MIB object 0012h Write error data format Returned value Error description ERR UNAVAILABLE RESOURCE The modem is not configured as MAC ERR ILLEGAL DATA COMMAND Wrong number of data bytes 0013h smart phase detection This MIB parameter takes effect at 2400 bps operating baud rate only and can be used in order to avoid ambiguity about positive or negative zero crossing on the time slot starting instant see Section 4 9 1 for parameter description The confirm message of a CMD ReadDBRequest returns the current value with
29. No Subframelndication A0h If the ST7570 is configured to operate in PHY mode and as Monitor refer to Section 3 4 1 and it is mains synchronized this command is sent to indicate that no valid preamble SSD sequence has been detected during the current time slot Available in PHY mode only Table 49 SPY No Subframelndication Syntax Source Command Args Possible response ST7570 SPY_No_Subframelndication SpyData Table 50 SPY No Subframelndication SpyData PHY mode only 6 8 Sr Sanalampiuo estate on chanel oct Raw estimaron SPY_Subframelndication BOh If the ST7570 is configured to operate in PHY mode and as Monitor Section 3 4 1 and is mains synchronized this command is sent to indicate the reception of a valid physical subframe This command replaces the CMD_Datalndication used for Client and Server operating modes Available in PHY mode only Table 51 SPY_Subframelndication Syntax Source Command Args Possible response ST7570 SPY Subframelndication SpyData Doc ID 17389 Rev 2 57 113 Host interface UM0934 5 3 19 58 113 Table 52 SPY Subframelndication SpyData PHY mode 6 8 1 Sgnlamphugeasimatad on channel 1 Secon Faw state 12 13 ASKO Number of bits demodulated using an ASK method on channel 0 Section 3 6 2 14 15 ASK Number of bits demodulated using an ASK method on channel 1 Section 3 6 2 SPY SearchSynchrolndication COh If the ST7570 is conf
30. RC Result are always generated to the host The ST7570 configures as a Client will transmit the RC message at position O first sub timeslot whatever is the value of parameter TxPosition in the CMD RC Request The Figure 26 shows an example with a Client sending a MAC frame with IC CC 3 and a M sdu of 26 bytes Figure 26 Repeater call for client NORMAL MODE LI d CMD RC Co nfirm CMD RC Confirm CMD RC Requestfany CMD RC Request any RC pattern transmitted in the first sub time slot REQUEST REFUSED REQUEST ACCEPTED a es eee a le Doc ID 17389 Rev 2 97 113 Extended functions UM0934 7 3 2 98 113 Server The ST7570 set as Server also accepts a CMD RC Request if the command is received from the external host while a transmission reception or repetition is in progress over the powerline only otherwise it refuses it A positive or negative confirmation CMD RC Confirm RC Result is always generated If accepted the node will start the Repeater Call mode at the beginning of the first timeslot after the completion of the current transmission reception or repetition During the Repeater Call mode the Server listens for RC messages and may also transmit a RC pattern The transmitting subtimeslot position is different according the local MAC address if the node is registered address not equal to NEW the transmitting position of the RC message transmitted matches the local MAC address The p
31. SPY SearchSynchrolndication Syntax 58 SPY SynchroFoundlndication Syntak 59 SPY SynchroFoundlndication SpyData PHY mode 59 SPY No Alarmlndication Syntax 60 SPY No Alarmlndication SpyData PHY mode 60 SPY Alarmlndication SyntaK 60 SPY Alarmlndication SpyData PHY mode 60 CMD RC Request Syntax 61 CMD RC Request RequestData 61 CMD RC Confirm Syntax Aa aaa 62 CMD RC Confirm ConfirmData 62 CMD IS Indication Syntax 63 CMD IS Indication ConfirmmData 63 CMD SyntaxError Syntax 2 KA 63 CMD SyntaxError ErrorData SS ee eee eee es ee ee 64 MIB write request Data 64 MiBreadreguest Data 65 MiBerrormessageCcodes 65 WA el ee AA RE EE EE EE ANA ULA ANA NAA NAA 66 MIB object 0000h Write request dataformat 67 MIB object 0000h Write error data format
32. ZC square wave toggling on every positive zero crossing event Its period is equal to double the mains period 5 TS square wave synchronous to the time slot reference generated by the internal PLL Its period is equal to time slot BIT square wave toggling at every bit time start generated by the internal PLL Its period is 2 bit time TX P itis high when a transmission is in progress low otherwise RX_P itis high when a reception is in progress low otherwise 5 TXRX P it is high when the device is involved in a communication transmission or reception through powerline The desired information to be output can be selected through the MIB object 00A4h PRESLOT ZC TS BIT and ZC IN D configuration Section 6 5 31 Zero crossing signal fault detection This feature always active is used to detect fault conditions on the external zero crossing signal causing loss of proper synchronization If no falling edges are detected on the input ZC signal within a given timeout 1 3 s as the default value no time slot events are generated After this fault condition a reset is required Doc ID 17389 Rev 2 21 113 MAC layer 4 4 1 4 2 4 2 1 22 113 UM0934 MAC layer Overview The ST7570 embeds a MAC layer compliant with 2 with additional functions for the electrical delta phase measurement In order to meet the application s functions and physical channel characteristics many parameters involved at th
33. a MAC frame from Client to Server 4 Transmitting a MAC frame from Server to Client It is assumed that both station1 and station2 have identical MIB object OOATh PLC configuration with the exception of operating mode parameter Access layer mode MAC mode Operating mode Client for station1 Server for station2 Baud rate 2400 bps Mains frequency 50 Hz fo 74 kHz f 63 3 kHz Target output gain 15 dB Tx current control enabled Step 1 address configuration Addresses can be configured by accessing MIB object 0001h local MAC address and the initiator MAC address through command CMD_WriteDBRequest The time diagram of the commands exchanged between the ST7570 and its external host is the same as Figure 28 as a CMD_WriteDBRequest is still involved Station1 Client For a Client station also called initiator the local MAC address is usually within the FIMA range COOh as default value and LIMA DFFh as default value while the initiator MAC address has no meaning In this example local MAC address COOh initiator MAC address 000h NO BODY For station the CMD_WriteDBRequest is composed as DATA Int MAC Ada 02h 09h 41h 01 00h 00 0Ch 00 00h 57 00h Doc ID 17389 Rev 2 103 113 MAC mode communication example UM0934 10 1 2 10 2 104 113 The expected CMD_WriteDBConfirm local frame on the ST7570 TXD pin has the fields represented as Ss DATA int MAC Ad 02h 09h 42h 01 00h 00 0Ch 00
34. a long MAC frame it receives the IC and DC credit values from the SMAE and they are usually specific to the destination address DA The MAC fills the MAC frame header with the passed IC and DC values while CC is equal to IC for the first transmitted frame When a MAC frame is received the MAC automatically decodes the IC CC DC values and notifies them to the upper layers SMAE Repeater The REPEATER is basically a Server being able in addition to perform repetitions A dedicated MIB object 000Bh TIC selector and repeater state 6 5 12 can be used to configure a Server as a REPEATER Example Figure 12 shows a repetition example Upper layers of the Client station requests a broadcast DA FFFh transmission of a MAC frame made of a single subframe with IC CC 3 The Client performs the transmission of the original frame IC CC 3 followed by 3 repetitions for a total amount of 4 transmissions All the other nodes in the network both Server and REPEATER receive the transmissions and provide an M Data Indication to the local host upon receipt of the first valid MAC frame i e with valid FCS while the following transmissions are neglected as they are detected as being repetitions Doc ID 17389 Rev 2 ky UM0934 MAC layer Below is the expected behavior of the nodes Server A as the link between the Client and this node is assumed to be good in this example the node receives the 4 valid frames i e with valid FCS
35. and if necessary at releasing it Once the Server has achieved the time slot synchronization it expects to receive at least one valid MAC frame addressed to it i e a frame with field DA equal to the local MAC address of the node within timeout not addressed The timeout counter is refreshed at any valid MAC frame with DA equal to MAC local address reception If the timeout not addressed has elapsed the local MAC address is automatically reset to the default value NEW FFEh and the time slot synchronization is rejected Credit management and repetitions In a real power line network several undesired electrical phenomena such as signal attenuation noise and narrow band interferers may impact on communication performance preventing a message being delivered to a destination node In order to overcome this problem in accordance with 2 the MAC layer provides a repetition mechanism based on credits IC CC and DC and on specific Server nodes called REPEATERs behaving exactly as a Server but being able in addition to perform repetitions according to IC and CC values Credit information is embedded in the header of each long MAC frame with the meaning described in the following sections Initial credit IC The initial credit IC is a 3 bit long field with a maximum value equal to 7 and counts how many times the frame must be repeated When receiving the field IC is extracted and notified to the upper layers throu
36. as data P sdu coming from the power line has been received Figure 3 PHY data services Embedded MAC layer PHY or external Host Layer PHY Embedded MAC layer Layer or external Host P Data request P Data indication P Data confirm Remote Node Local Node Power Line Alarm services The alarm services provided by the physical layer allow the embedded MAC layer in the case of a MAC access point or the external host in the case of a PHY access point to manage alarm transfer on the power line Three primitives are available P Alarm Request to ask the PHY layer for the transmission of an alarm eo P Alarm Confirm T result generated by the PHY layer as a response to a previous P_Data Request with the result of transmission T_result eo P Alarm Indication generated by the PHY layer as soon as an alarm coming from the power line has been received Doc ID 17389 Rev 2 ky 16 113 UM0934 Physical layer Figure 4 PHY alarm services Embedded MAC layer Embedded MAC layer or external Host or extemal Host P Alarm request P Alarm indication P Alarm confirm Local Node Remote Node Power Line 3 5 3 Synchronization services The synchronization services provided by the physical layer allow the embedded MAC layer in the case of a MAC access point or the external host in the case of a PHY access point to manage the time slot synchronization Two primitives are available P Sync
37. data transmission LSBit first from bO to b7 b23 b12 MAC source address b11 b0 MAC destination address UART data transmission MSByte first Therefore the 3 bytes are 1 3 ADDRESS transmitted following this order e From b16 to b23 e From b8 to b15 e From DO to b7 1 byte padding MAC service data unit up to 242 bytes 5 246 M_SDU sae mow UART data transmission MSByte first CMD DataRequest 51h This command exports the following services to the external host PHY mode P Data Request MAC mode M Data Request This command is sent by the external host to request data transmission The request can be accepted or refused by the ST7570 f accepted the ST7570 performs a transmission starting on the next time slot A positive CMD DataConfirm Section 5 3 13 is generated at the end of the transmission If refused the modem generates an immediate negative CMD DataConfirm Section 5 3 13 Table 39 CMD DataRequest Syntax Source Command Args Possible response Ext Host CMD DataRequest RequestData CMD DataConfirm ConfirmData Table 40 CMD DataRequest RequestData PHY mode P SDU Physical service data unit Doc ID 17389 Rev 2 53 113 Host interface UM0934 5 3 13 54 113 Table 41 CMD DataRequest RequestData MAC mode Credit information b7 b5 Initial credit IC CREDIT b4 b2 Current credit CC b1 b0 Delta credit DC UART data transmission LSBit first fr
38. host layer STATION 1 STATION 2 Figure 30 Time diagram host interface communication CMD DataRequest CMD DataConfir P Data request P Data confirm Local Frame Local Frame Status Powerline PRE P SDU frame transmission P CM EE CMD Datalndication P Sync indication P Data indcation Local Frame Local Frame Station 2 The exchanged local frames as in Figure 30 have the following syntaxes Doc ID 17389 Rev 2 101 113 PHY mode communication example UM0934 102 113 1 Station1 CMD DataRequest from external host to ST7570 assuming a P sdu 00h 01h 02h 25h STX DATA 02h 29h 51h 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0DOE OF 10 11 12 13 14 15161718 19 1A1BACADA E1 F 20 21 22 23 24 25h 39 O3h 2 Station2 CMD Synchrolndication sent from ST 7570 to the external host The 517570 modem received a PRE SSD sequence correctly and it notified the change in its synchronization status O ODA 02h 11h 10h F6 19 00h 04 11 00h 1A 1A 00h B6 0F 00h 08h Oth 4A 02h The SO NO S1 N1 fields can be decoded to obtain the RMS values in dBuV units S0 19F6h 6646d gt 66 46 dBuVans NO 1104h 4356d gt 43 56 dBuVans 1 1A1Ah 6682d gt 71 848 dBuVans N1 FB6h 4022d gt 40 22 dBuVays 3 Station2 CMD_Datalndication sent from ST7570 to the external host to notify the receipt of P_sdu STX DATA 02h 35h 50h 00 01 02 03 04 05 06 0 7 08 09 0A 0B 0C 0D 0E 0F 10 11
39. is sent by the ST7570 to acknowledge a CMD ReadDBRequest performed by the external host if the request has been accepted and executed without errors The ConfirmData field returned by this command has the same format and content of the field RequestData Table 27 of the CMD WriteDBReguest Table 33 CMD ReadDBConfirm Syntax Source Command Args Possible response 517570 CMD ReadDBConfirm ConfirmData CMD ReadDBError 92h This command is sent by the ST7570 to notify that a CMD ReadDBReguest performed by the external host has been rejected because of an invalid request data Table 34 CMD ReadDBError Syntax Source Command Args Possible response ST7570 CMD ReadDBError ErrorData Doc ID 17389 Rev 2 51 113 Host interface UM0934 5 3 11 52 113 Table 35 CMD ReadDBError ErrorData Error code 11h ERR UNAVAILABLE RESOURCE the selected MIB object does not exist or it does not exist for the current operating mode MAC or PHY 12h ERR REQUEST NOT ALLOWED the writing request to an MIB object ERROR failed 22h ERR ILLEGAL DATA COMMAND the format or value of the request data is not valid for the selected object CMD Datalndication 50h This command exports the following services to the external host PHY mode P Data Indication MAC mode M Data Indication This command is sent by the ST7570 to indicate the reception of data at PHY or MAC level according to the operating mode sel
40. of the MAC subframes can be disabled only if the ST7570 operating mode is Monitor If the frame type check is disabled a received MAC frame provides a CMD Datalndication to the host even if the value of field FI is not 0000h however the bad frame init counter MIB object 001 1h and the invalid frame counter MIB object 0006h are increased The CRC check can be disabled only if the ST7570 operating mode is a Monitor If the CRC check is disabled a received MAC frame provides a CMD_Datalndication to the host even if the FCS check fails however the invalid frame counter is increased MIB object 0006h Table 90 MIB object 0008h Write request data format DO Disable frame type check e 0 Enable frame type check e 1 Disable frame type check 00h OFh b1 Disable CRC check e 0 Enable frame CRC check e 1 Disable frame CRC check Read write confirm data format The same as request Table 91 MIB object 0008h Write error data format 0009h Timeout Intelligent Synchronization This object stores the value in minutes of the Timeout Intelligent Synchronization procedure This object is applicable to the SERVER mode only Table 92 MIB object 0009h Write request data format Timeout intelligent j izati i 0 1 9 Intelligent synchronization timeout 0 65535 min Gi synchronization value minutes Read write confirm data format The same as reguest a Doc ID 17389 Rev 2 UM0934 6 5 11 6 5 12
41. the ST7570 to the host RXD carries data from the host to the ST7570 The UART communication has the following settings Half duplex mode Standard NRZ bit coding LSBit first transmission the bits within each byte are sent LSBit to MSBit The exchanged frames are composed of characters A single character is composed of 1 start bit 8 data bits and 1 stop bit 0 5 V or 0 3 3 V levels on TXD RXD T REO signals Figure 14 shows the character format Figure 14 Local port character format IDLE state LSB MSB i Hi Cor foe os oe os oe or o M Rit D1 D7 Rit Po Ty r n as gt t gt aas ansanannn m BE BANANAS BE t0 ontana sasan anas t msa 8 data bits ty it S i 3 3 f i H H i 3 1 i I it BA EE PAA AA AA NAA ER N EE AA AAAH AASA AA AA H f H LI 1 character Communication protocol The host interface process implemented in the ST7570 device performs the following tasks Frame format definition Reception mechanism the UART standard on the half duplex data channel is implemented and collisions are avoided Acknowledgement to received frames Timeout management 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 data exchanged between the ST7570 and the external host The communication protocol defines sev
42. the error messages returned for each parameter Doc ID 17389 Rev 2 ky UM0934 Management information base MIB 6 2 MIB read request This command is used by the external host to read the value of an object of the ST7570 MIB A CMD ReadDBReduest contains the MIB parameter to be read Table 69 MIB read request Data Database entry index Refer to the MIB table Table 71 for available objects LSByte weet NEA sent first The ST7570 checks the request for validation Then according to the result of the check if valid the object is read from the MIB and the ST7570 replies with a CMD_ReadDBConfirm if not valid the request is rejected and the ST7570 replies with a CMD ReadDBError 6 3 MIB error message codes All the error message codes are listed and described in Table 70 with identifier values Please note that these are only the error codes common to all the MIB parameters for specific error codes of every MIB object refer to the single MIB parameters description Table 70 MIB error message codes ero N N a ERR_UNAVAILABLE_RESOURCE _ Unavailable resource no MIB parameter with the specified index 011h ERR REQUEST NOT ALLOWED Request not allowed 012h a Doc ID 17389 Rev 2 65 113 Management information base MIB UM0934 6 4 MIB table Table 71 lists all the available MIB objects with the related indexes the default values and the allowed request type read and write Table 71 Database ob
43. within FIMA LIMA interval during Intelligent Synchronization first phase niiator MAG Address Max Received Signal level between SO S1 expressed as 100 dBUV Doc ID 17389 Rev 2 47 113 Host interface UM0934 5 3 2 5 3 3 Note 48 113 CMD SynchroStatus 85h Only in PHY mode can the host retrieve the synchronization status at any time Table 19 CMD SynchroStatus Syntax Source Command Data field Possible response Ext host CMD_SynchroStatus none CMD SynchroStatus SyncStatus Where the SyncStatus parameter can be egual to the following values Table 20 CMD SynchroStatus SyncStatus PHY mee 1 LP SYNC FOUND Synchronization found valid preamble SSD STATUS sequence detected 2 LP SYNC LOSS Synchronization lost or not found CMD DesynchroRequest 11h This command exports the following services to the external host PHY mode P Sync Request MAC mode M Sync Request This command is used by the external host to force the ST7570 to discard the current synchronization paa 21 CMD DesynchroRequest Syntax Command Data field Possible response PHY mode none Ext host CMD_DesynchroRequest Reset MAC mode CMD_Synchrolndication SyncData Table 22 CMD DesynchroRequest Reset NE NN RESET 1 Rejects current synchronization The SyncData field returned by the CMD Synchrolndication is filled as listed in Section 5 3 1 with SYNC parameter equal to 4 and CAUSE e
44. 7 Table 48 8 113 EIS OL GDOICVIANONG iis ass onera ADAN BUGA ADAM ade debe NG GALEMA DRADE 11 Baud rate vs mainsfreguency 15 SNR estimator values conversion 19 Electrical delta phase coding 20 Local MAG addiESS 6 224204 ones AR Rd Bode AR Ese MR MPG NG NG Se HD Gn ME AG 28 Pre defined groupaddresses 29 Initiator MAG addies8 s asses EE DAE R PAS KERR RR EE KA SR ERA ee ee OAR REEKS TWO 30 Delta phasedetection 35 WAA OR EE OR PA bes aoe 36 Local rame format HIII KI AA KN ER E 38 Status message composition 39 BEE do OE AR EE EE OE IIIA 41 ACK and NAK messagecodes 42 Host interface timeout values ES SE SE ee ee es es es es ee 44 Listofavailablecommandcodes 44 CMD Synchrolndication Syntax 46 CMD Synchrolndication SyncData PHY mode 46 CMD Synchrolndication SyncData MAC mode 47 CMD SynchroStatus Syntax III RM EES RE EE KABA ELLE EE GE EA 48 CMD SynchroStatus SyncStatus PHY mode 48 CMD DesynchroRequest Syntax
45. 8 and NaEy 9 Figure 25 Alarm repetition NODE 1 Initiator of alarms Reject Window N ae Repetition Nrx Reception Nrx Alarm Indication O Alarm RECEPTION LI Alarm TRANSMISSION RA Alarm IGNORED a 96 113 Doc ID 17389 Rev 2 UM0934 7 3 7 3 1 d Extended functions Repeater call The Repeater Call RC is a special service supported by the ST7570 at MAC layer with specific short messages RC messages During the Repeater Call mode the physical layer does not send or receive the frames over powerline in the usual form In fact the physical time slot Section 3 3 is split down into 21 sub timeslots SubT slot with a duration equivalent to 2 bytes Since the Pause Alarm time is not used by the RepeaterCall function the alarms remain active during this period During each sub timeslot of the RepeaterCall mode a node can either receive or send a 2 byte fixed pattern 2EC5h with a behavior in accordance with its configuration Client or Server Client The ST7570 will accepta CMD RC Request if this command is received while a transmission or reception on powerline is in progress only and refused otherwise If accepted the node will start the Repeater Call mode at the beginning of the first timeslot after the current transmission or reception completion The Client leaves the Repeater Call mode and goes back to the normal mode after one timeslot A confirmation and an exit code CMD RC Confirm
46. C group addresses This object stores the values of the 5 MAC group addresses refer to 2 Table 82 MIB object 0005h Write request data format aa MAC group adress 4 SF MAC group aros 0000 OFFFH ooon Read write confirm data format The same as request Table 83 MIB object 0005h Write error data format Returned value Error description ERR UNAVAILABLE RESOURCE The modem is not configured as MAC ERR ILLEGAL DATA COMMAND Wrong number of data bytes or at least one address value out of range 6 5 7 0006h invalid frame counter This object stores the number of the invalid received MAC frames After checking FI and Ns parameters in the received MAC frame the counter is increased if at least one of the two following events occurred 5 The frame indicator parameter FI is not equal to LONG MAC FRAME 0000h even if the frame type check is disabled in Monitor modes only The number of subframes Ns field in a received MAC frame is not correct The CRC field is wrong even if CRC check is disabled Section 6 5 9 The confirm message of a CMD ReadDBRequest returns the current value of the counter without changing it The CMD WriteDBRequest resets the value of the counter 0 and the confirm message returns the reset value 0 a 70 113 Doc ID 17389 Rev 2 UM0934 6 5 8 I Management information base MIB Table 84 MIB object 0006h Write request data format Table 85 MIB object
47. C00h LIMA Last initiator MAC address 0000h OFFFh ODFFh Read write confirm data format The same as write request Doc ID 17389 Rev 2 67 113 Management information base MIB UM0934 Table 73 MIB object 0000h Write error data format Returned value Error description ERR UNAVAILABLE RESOURCE The modem is not configured as MAC ERR ILLEGAL DATA COMMAND Wrong number of data bytes ERR ILLEGAL INITIATOR MAC ADR Parameter value is out of the allowed range 6 5 2 0001h local MAC address and the initiator MAC address This object stores the values of the local MAC address and the Initiator MAC address Table 74 MIB object 0001h Write request data format BEL Local MAC address 0000h lt x lt OFFFh NEW NEW OFFER 0000h NO BODY InitMACAdd Initiator MAC address a npa Ta NOBODY 0000h Read write confirm data format The same as write request Table 75 MIB object 0001h Write error data format Returned value Error description ERR UNAVAILABLE RESOURCE The modem is not configured as MAC ERR ILLEGAL DATA COMMAND Wrong number of data bytes ERR ILLEGAL LOCAL MAC ADR sa MAC Address value is out of the allowed ERR ILLEGAL INITIATOR MAC ADR a MAC Address value is out of the allowed 6 5 3 0002h timeout synchro confirmation This object stores the value in seconds of the synchronization confirmation timeout Section 4 6 This object is applicable in Server mode only Table 76 MIB object 0002h W
48. Ch Nodes with local MAC address different from NEW Broadcast address All the network nodes generate an M Data Indication if ER ROSAS nna the DA field in the received MAC frame is equal to BROADCAST Time slot synchronization As explained in Section 3 3 all the nodes belonging to the network must use the same time slot division in order to be able to communicate The time slot synchronization is first achieved by the Client by choosing an arbitrary time slot start while all the other nodes Server acquire the Client s time slot division as described in following sections PHY layer At PHY layer the time slot synchronization is acquired by a Server as soon as it receives the PRE SSD sequence As the PHY layer does not perform any check on frame CRC and addresses the reception of any physical frame sent over the network whatever the source address and even if corrupted by noise causes the Server to acquire the time slot synchronization if not already synchronized Upon receipt of the PRE SSD sequence the PHY notifies to the MAC a P Sync Indication Doc ID 17389 Rev 2 29 113 MAC layer 4 6 2 4 6 3 30 113 UM0934 MAC layer At MAC layer two further checks are performed in order to confirm or reject the time slot synchronization acquired by the PHY 1 Frame integrity a valid MAC frame i e with a valid CRC must be received within synchronization confirmation timeout Section 4 7 from the reception o
49. LE RESOURCE The modem is not configured as MAC ERR ILLEGAL DATA COMMAND Wrong number of data bytes 0015h auto synchro reject This MIB object is related only to Monitor MAC mode Section 4 2 1 The auto synchro reject is used to reject the synchronization at the end of each received frame when activated this setting allows a modem in Monitor MAC mode to receive any MAC frame without constraints on time slot synchronization Table 118 MIB object 0015h Write request data format Auto synchro reject Es 0 1 y l 1 enabled Read write confirm data format The same as request Table 119 MIB object 0015h Write error data format Returned value Error description ERR_UNAVAILABLE_RESOURCE The modem is not configured as MAC ERR_ILLEGAL_DATA_COMMAND Wrong number of data bytes ERR_REQUEST_NOT_ALLOWED The modem is not configured as Monitor ERR_PARAM_VAL_OUTOFRANGE The value is out of the available range a Doc ID 17389 Rev 2 UM0934 6 5 23 6 5 24 Management information base MIB 0016h Intelligent synchronization threshold During the Intelligent Synchronization procedure this parameter defines the minimum received signal level which triggers the Fast Intelligent Synchronization procedure The value is expressed in 100 dBuV Table 120 MIB object 0016h Write request data format IS threshold Intelligent synchronization threshold 0 FFFFFFh FFFFFFh Read write confirm data format The sa
50. R C a 34 113 Doc ID 17389 Rev 2 UM0934 4 9 4 9 1 d MAC layer Additional features Delta phase detection at 2400 bps baud rate When the ST7570 is running at 2400 bps the delta phase detection is affected by 4180 ambiguity due to the fact that time slots start alternatively on positive zero crossing or negative zero crossing In order to remove such ambiguity the transmitter can be forced to start the transmission of a new frame on a positive zero crossing only The detection algorithm in the receiver can be adapted in the same way MIB object 0013h smart phase detection can be used to configure this special feature Admitted values and corresponding behavior during transmission and reception are shown in Table 8 Table 8 Delta phase detection Value DISA The transmission of a new PHY frame starts on Na i Normal BLED a positive or negative zero crossing The transmission of a new PHY frame starts on 1 TX kali Normal a positive zero crossing only Delta phase detection is calculated taking into account all MAC frame fields The transmission of a new PHY frame starts on a positive or negative zero crossing Delta phase detection is calculated taking into account all MAC frame fields The transmission of a new PHY frame starts on a positive zero crossing only The typical configuration is TX for a Client and RX for a Server If enabled the phase estimated by the smart phase detection
51. TER REPEATER STATE 1 ALWAYS REPEATER 2 NO REPEATER 3 REPEATER In the case the node is a SERVER and the RESULT field is LP OK additional data are appended about the RC pattern received Estimated signal amplitude 100 dBuV averaged on both channels Estimated noise amplitude 100 dBuV averaged on both channels RX Position sub timeslot where the RC pattern has been received g 62 113 Doc ID 17389 Rev 2 UM0934 Host interface 5 3 25 CMD IS Indication 15h This command is sent by the ST7570 to external host to notify it after the MIB object 0009h Timeout Intelligent Synchronization Section 6 5 10 value will be elapsed Table 64 CMD IS Indication Syntax Source Command Args Possible response 517570 CMD IS Indication IndicationData Table 65 CMD IS Indication ConfirmData LM LOCKED 01h A valid MAC frame has been received within the Intelligent Ee Timeout by at least one Initiator with a MAC address within FIMA and LIMA LM NOT LOCKED 02h A valid MAC frame has not been received within the Intelligent Synchronization Timeout by at least one Initiator with a MAC address IS STATUS within FIMA and LIMA LM NOT REGISTERED 03h after receiving a valid MAC frame during Intelligent Synchronization first phase the node has not been registered its Local MAC address is still equal to NEW LM TO NOT ADDRESSED 04h after receiving a valid MAC frame during Intelligent Synchronization first pha
52. a format Returned value Error description po ERR ILLEGAL DATA COMMAND Wrong number of data bytes 6 5 29 00A0h New synchronization This MIB parameter is used to force the ST7570 in MAC mode to discard the current synchronization and look for a new one The CMD WriteDBRequest sets the coded values and the confirm message returns them Table 135 MIB object OOAOh Write request data format New synchronization request New ge 0 no effect 0 1 synchronization l 1 discard current sync and look for a new sync As this MIB parameter is used for immediate effect by setting it to the discard current sync coded value it can t be read by the external host command Write confirm data format The same as request Table 136 MIB object OOAOh Write error data format Returned value Error description EN ERR ILLEGAL DATA COMMAND Wrong number of data bytes or value out of the available range ky Doc ID 17389 Rev 2 85 113 Management information base MIB UM0934 6 5 30 00A1h PLC configuration This object stores the settings used to configure the modem Table 137 below lists these features Table 137 MIB object OOAih Write request data format b0 b2 operating mode e 0 IDLE Not Set or Not Configured e 1 Client Master e 2 Server Slave e 3 Monitor Spy or Sniffer e 4 Test on Ch 0 Single tone continuous IDLE 0 transmission on ch 0 Operating mode 5 Test on Ch 1 Single tone continuous
53. address Reception When a valid long MAC frame is received by a server the MAC compares the destination address DA and the local MAC address and generates an M Data Indication DA SA M sdu if at least one of the following cases is verified DA matches the local MAC address DA matches one of the group addresses e DAis the broadcast address In the case of a Client receiving the long frame it generates an M Data Indication DA SA M sdu regardless of the originator and destination of the frame Doc ID 17389 Rev 2 ky UM0934 4 5 4 4 5 5 4 6 4 6 1 I MAC layer Transmission When upper layers request a transmission through an M Data Request DA M sdu the MAC builds the long frame header by copying the DA value into the destination address field and by copying the local MAC address value into the source address field Group addresses The MAC supports pre defined group addresses Table 6 Further custom group addresses up to 5 can be specified through MIB object 0005h MAC Group Addresses Section 6 5 6 Table 6 Pre defined group addresses ano we O O le Reserved value it can t be assigned to any node in the network NO BODY 000h If a frame with DA equal to NO BODY is received a Client always generates a M_Data Indication while a Server generates a M Data Indication only if at least one MAC group addresses is equal to 0x000 FFEh Nodes with local MAC address equal to NEW NOT NEW FF
54. arameter TxPosition in the CMD RC Request Section 5 3 23 has to be equal to 0000h if the node is not registered address NEW or its local MAC address is higher the transmitting position of the RC message transmitted matches the parameter TxPosition declared in the CMD RC Request Section 5 3 23 message received During RC messages reception the Server performs an estimation of signal Spc and noise Npc by averaging the amplitude of signal and amplitude of noise on both channels fo and f4 Equation 4 So S Sge gt N N Ne The RC message is considered valid only if the Sac gt Ngc and Sp is greater than the RC detection threshold passed in CMD RC Redquest Section 5 3 23 or if RC THRESHOLD 0 written into MIB object OOOCh RC Threshold Section 6 5 13 Figure 27 shows and example of Repeater Call procedure for Server with both received and transmitted patterns Figure 27 Repeater Call for Server NORMAL MODE RC MODE NORMAL MODE by 1 D rkrfri i2 RC pattem eventually received and notified S N levels and TX position Jin EN CMD_RC_Confrm Ah CMD RC Re guest RC pattem transmitted in subimeslot expressed in CMD RC Request CMD RC Confirm Lee Tee LEBER eee Pee eee IE EE RE QUEST RE FUSED REQUEST ACCEPTED a Doc ID 17389 Rev 2 UM0934 Modem configuration 8 Modem configuration The first step to configure the ST7570 modem in accordance with the required operating co
55. ate the soit start duration The confirm message of a CMD ReadDBRequest returns the current value without changing it The CMD WriteDBRequest sets the corresponding time value and the confirm message returns it Table 143 MIB object OOACh Write request data format b0 19 13 us delay steps 000000h OFFFFFh 000000h 0 2 Soft Start Read write confirm data format The same as request Table 144 MIB object OOACh Write error data format Returned value Error description ERR ILLEGAL DATA COMMAND Wrong number of data bytes ERR REQUEST NOT ALLOWED The writing request failed SZA Doc ID 17389 Rev 2 UM0934 6 5 34 d Management information base MIB 00C2h time slot delay bit This object stores the delay between the external mains zero crossing signal and the internal reference used to set the starting position of the time slot The time unit is the bit This object is useful for the Client operating mode only as the Server fixes the internal time slot reference after receiving a frame transmission by the Client The value n stored is equal to n 7 delay bit number an n value equal to 1 means that the Client aligns its time slot with the external zero crossing event A value equal to 2 means that the Client forces its time slot to start 1 bit before the external zero crossing event Any change to this value takes effect only after a de synchronization of the Client Figure 21 shows some examples of th
56. ation 16 NO Amplitude of noise on channel 0 Raw estimation performed on received ii preamble 4 SSD sequence Section Raw estimation S1 Amplitude of signal on channel 1 Raw estimation performed on received preamble SSD sequence Section Raw estimation 10 12 Amplitude of noise on channel 1 Raw estimation performed on received preamble 4 SSD sequence Section Raw estimation Gain of the reception PGA PHASE Electrical delta phase If SYNC 2 Synchronization CONFIRMED dt Pa Padding byte Not used CE ea OOOO Destination address If SYNC 4 Synchronization LOST 1 Timeout not addressed expired 2 Timeout frame not OK expired 3 Timeout synchronization confirm expired CAUSE 4 addressed by a wrong initiator 5 Desynchronization request from host by accessing MIB object OOAOh Section 6 5 29 ao oe MAC address if CAUSE 1 2 3 5 6 7 8 root as MAC address if CAUSE 4 ADD Initiator MAC address if CAUSE 1 2 3 5 6 7 8 Destination MAC address if CAUSE 4 If SYNC 5 Synchronization INTELLIGENT LM_IS_INIT O6h Synchronization AutoReject after the reception of a valid MAC frame by an Initiator MAC address within FIMA LIMA interval during Intelligent Synchronization first phase 1 CAUSE LM IS SYNC FAST 07h Fast Synchronization achieved LM IS NOT INIT 08h Synchronization AutoReject after the reception of a valid MAC frame by a node not configured as Initiator MAC address not
57. ation2 is now synchronized and able to send frames The external host of station2 can initiate the transmission by sending a CMD DataRequest to the ST7570 with the following sample parameters M sduz 00h O1h 02h 18h 19h IC 0 CC 0 DC 0 DA COOh Figure 33 shows the exchanged local frames during a transmission from Server to Client Figure 33 MAC frame transmission from Server to Client CMD Data Confirm Status Local Frame CMD_Data Request Station 2 Powerline network PHY frame transmission CMD Data Indication Local Frame Station 1 Doc ID 17389 Rev 2 ky UM0934 MAC mode communication example 10 4 1 STX 02h 22h As station1 has already achieved the time slot synchronization it does not generate any CMD Synchrolndication notification Station2 Server Status message Before sending the data request the external host must set the T REG signal at low level and wait for the status message from the ST7570 modem The status message can be used by the external host to quickly retrieve useful information about the status of the modem A typical status message is as follows Ee 3 byte ASCII y 3Fh 22h E4h 80h e Byte 0 3Fh ASCII code Byte 1 22h gt MAC server mode not NEW synchronized not busy Byte 2 E4h gt TS COUNTER 7 alarm not received in the previous time slot PLL not ZC FAIL device out of hardware reset boot FW release 1 Byte 3 80h gt Phase
58. ayer Figure 9 MAC synchronization services Upper Layers ext Host M Sync ma M Sync reguast P Sync request time slot synchronization reject time slot synchronization change found or loss P_Sync indication i Local Node Power Line 44 Framing The framing process performed by the MAC layer is depicted in Figure 11 Upper layers running in the external host reguest a transmission through the primitive M Data Request passing to the MAC the service data unit M sdu to be transmitted and additional information regarding addresses and repetition credits Such information is used by the MAC to build the long MAC frame made up of the following fields Header e M NS number of subframes building the long frame SA source address 12 bit DA destination address 12 bit Repetition credits information used for repetition management 8 bits _sdu from 1 up to 242 bytes FCS 24 bit CRC The long MAC frame is then divided into several 38 byte fixed length protocol data units M pdu called MAC subframes the structure is depicted in Figure 10 The frame indicator Fl is always equal to OOOOh to mark it as a subframe of a long MAC frame Doc ID 17389 Rev 2 25 113 MAC layer 26 113 UM0934 Figure 10 MAC subframe structure MAC Protocol Data Unit M pdu e NA Frame Indicator Data FI te EE 36 bytes 2 bytes MAC subframes are then pres
59. ble Response CMD_RC_Request RequestData CMD_RC_Confirm ConfirmData Table 61 CMD_RC_Request RequestData TX_POS Transmitting position SNR threshold value to be expressed in 100 dBuV A node set as 2 3 RC THRESHOLD Server or Monitor will decide its Repeater Status after comparison with this value If the two listed parameters of the command are filled to zero and the node is set as MAC server 5 TX POS will be filled by ST7570 equal to node Local MAC Address if the node is NEW it won t take part to Repeater Call procedure RC THRESHOLD value will be read by ST7570 from MIB object 000Ch RC Threshold Section 6 5 13 Doc ID 17389 Rev 2 61 113 Host interface UM0934 5 3 24 CMD RC Confirm 62h This command is sent by the ST7570 to confirm a Repeater Call request Table 62 CMD RC Confirm Syntax Source Command Args Possible response ST7570 CMD RC Confirm ConfirmData Table 63 CMD RC Confirm ConfirmData LP TU 00h Repeater Call has been refused LP NI 01h Modem not yet initialized for Repeater Call local MAC Address NEW TxPosition 0 LP_NS 04h Modem is not synchronized RESULT LP_NOT_VALID 06h Repeater Call has been refused because the modem is configured as NEVER_REPEATER MIB object OOOBh TIC selector and Repeater Setting Section 6 5 12 LP_OK FFh Repeater Call was accepted and ended successfully Repeater state set during the Repeater Call session 0 NEVER_REPEA
60. cation Section 5 3 20 In order to convert from a raw number value as stored in the MIB to an RMS voltage value expressed in dBuV use Equation 1 Doc ID 17389 Rev 2 ky UM0934 3 6 2 3 6 3 Physical layer Equation 1 Vams dB uV value 100 Table 3 shows some conversion examples Table 3 SNR estimator values conversion Values provided by the ST7570 RMS amplitude dBuV Value 002C8Fh 114 07 002B0Ch 110 20 Name Fine estimation This function provides an estimation of the signal to noise ratio for both channels O and 1 as detected by the ST7570 at the RX IN pin The estimation is performed on the P sdu payload 304 bits The estimated ratios are automatically provided through unsolicited indications CMD Datalndication Section 5 3 11 In order to convert from a raw number value as stored in the MIB to an RMS voltage value expressed in dB use Equation 2 Equation 2 SNR dB 10 64 value l0g 9 2 2 Demodulation method count For each received PHY frame the ST7570 provides a statistic of the ways used to demodulate each single bit of the P SDU payload 304 bits based on the signal quality During each bit time the demodulator returns the received binary symbol on the basis of numerical processing performed on measured data for both tones If these data are processed independently and a binary symbol is chosen without combining them an ASK counter ASKO if the d
61. cations and remote load management in CENELEC B and C bands A local port UART is available for communication with an external host exporting all the functions and services required to configure and control the device and its protocol stack 2 1 Protocol stack Below is a list of the protocol layers and functions embedded in the ST7570 Physical layer implemented in the PHY processor and exporting all the primitive functions listed in 2 plus additional services for configuration alarm management signal and noise amplitude estimation phase detection and statistical information MAC layer implemented on the protocol controller and exporting all the primitive functions listed in 2 plus additional services for configuration Management information base MIB an information database with all the data required for proper configuration of the system at both PHY and MAC layers Host interface all the services of the PHY MAC and MIB are exported to an external host through the local UART port Figure 1 Functional overview ST7570 Local Port UART KY RXD HOST Interface ji ii MIB i EG External MAC Layer HOST PHY Layer Sa o 9 dal c O O o O da 9 a PHY Processor 12 113 Doc ID 17389 Rev 2 KY UM0934 Functional overview 2 2 Access points The external host can access the protocol stack at two points MAC access or MAC mode the external host operates and controls t
62. d ST7570 replies with a CMD WriteDBConfirm Section 5 3 6 f the check is not valid the request is rejected and the ST7570 replies with a CMD WriteDBError Section 5 3 7 Table 26 8 CMD WriteDBRequest Syntax Source Command Args Possible response Request accepted Ext host CMD WriteDBRequest RequestData CMD WriteDBConfirm RequestData Request rejected CMD WriteDBError ErrorData I Doc ID 17389 Rev 2 49 113 Host interface UM0934 5 3 6 5 3 7 50 113 Table 27 CMD WriteDBRequest RequestData 0 1 INDEX Database entry index Refer to the MIB table for available objects ii LSByte sent first the MSB is set at OOh DATA Data to be written in the MIB location INDEX CMD_WriteDBConfirm 42h This command is sent by the ST7570 to acknowledge a CMD_WriteDBRequest if the request has been accepted and executed without errors Otherwise a CMD_WriteDBError is returned The field ConfirmData returned by this command has the same format and content of the field RequestData Table 27 of the CMD_WriteDBRequest Table 28 CMD_WriteDBConfirm Syntax Source Command Args Possible response ST7570 CMD WriteDBConfirm ConfirmData CMD WriteDBError 43h This command is sent by the ST7570 to notify that a CMD WriteDBRequest performed by the external host has been rejected because of invalid request data Table 29 CMD WriteDBError Syntax Source Command Args Possible response
63. d so that the wrong MAC frames are notified Auto synchro reject this parameter makes the Monitor able to automatically reject the synchronism at the end of each received MAC frame Doc ID 17389 Rev 2 ky UM0934 4 3 4 3 1 a MAC layer Services The following services are available Data services to transmit and receive data on the power line Alarm services to transmit and receive alarms on the power line Synchronization services to notify or reject a time slot synchronization Data services The data services provided by the MAC layer allow the upper protocol layers embedded in the external host to manage data transfer on the power line Three primitives are available 5 M Data Request DA M sdu IC CC DC to ask the MAC layer for the transmission of data M sdu on the power line to a destination node whose local MAC address is DA with credit values IC CC and DC see Section 4 8 5 M Data Confirm T status generated by the MAC layer as a response to a previous M Data Request with the result of the transmission T status M Data Indication DA SA M sdu IC CC DC generated by the MAC layer as soon as data M sdu coming from the power line has been received The local MAC address of the sender is SA the destination address is DA while credit values are IC CC and DC Figure 7 MAC data services SI L SMT KAA Upper NAAN Layers ayer ext Host Upper Layers ext Host M Da
64. description ERR UNAVAILABLE RESOURCE The modem is not configured as MAC ERR ILLEGAL DATA COMMAND Wrong number of data bytes 0010h repeated frame counter This object stores the number of MAC frame repetitions The confirm message of a CMD ReadDBRequest returns the current value of the counter without changing it The CMD WriteDBRequest resets the value of the counter 0 and the confirm message returns the reset value 0 Table 106 MIB object 0010h Write request data format Table 107 MIB object 0010h Read write confirm data format Repeated frame counter Repeated frame counter value O FFFFFFFFh O Doc ID 17389 Rev 2 77 113 Management information base MIB UM0934 6 5 18 6 5 19 78 113 Table 108 MIB object 0010h Write error data format Returned value Error description ERR UNAVAILABLE RESOURCE The modem is not configured as MAC ERR ILLEGAL DATA COMMAND Wrong number of data bytes 0011h bad frame indicator counter This object stores the number of the received MAC frames with the invalid long frame indicator field F1 The counter is increased each time the FI is not equal to LONG MAC FRAME 0000h even if the frame type check is disabled Monitor modes only The confirm message of a CMD ReadDBRequest returns the current value of the counter without changing it The CMD WriteDBRequest resets the value of the counter O and the confirm message returns the reset value 0 Table 109
65. e PHY mode LP TU 00h PHY layer is busy e g another transmission is already pending or in progress data request outside the acceptance window LM SE 03h Length not correct on DataRequest LP NS 04h Modem is not mains synchronized LP NOT VALID 06h No data request pending or error at physical layer LP OK FFh No error CONFIRM CODE MAG mode LM TU 00h MAC layer is busy LM NI 01h Not available type LP HF 02h Error at physical level LM SE 03h Length not correct on DataRequest LM NS 04h Modem is not synchronized LM IS 05h Modem is during Intelligent Synchronization Search LM NOT VALID 06h No data request pending LM OK FFh No error CMD Alarmlndication 8Ah This command exports the following services to the external host PHY mode P Alarm Indication MAC mode M Alarm Indication This command is sent by the ST7570 to indicate the receipt of an alarm The additional data provided depends on the indication format selected through MIB object 0086h SN indication Section 6 5 28 Short alarm indication the modem sends a 4 byte counter for the number of alarms received Long alarm indication the modem sends a 4 byte alarm counter followed by the signal and noise estimations Table 44 CMD Alarmlndication Syntax Source Command Args Possible response ST7570 GMD _Alarmindication Data Doc ID 17389 Rev 2 55 113 Host interface UM0934 5 3 15 5 3 16 56 113 Table 45
66. e received Parameter Npx is programmable through the MIB object 0085h Section 6 5 27 After the CMD Alarmlndication message the ST7570 ignores all the alarms that may occur in the next Npg time slots lf a CMD_AlarmRequest message is sent during the alarm reception or the reject window the ST7570 provides an immediate positive confirmation but it does not transmit any additional alarms Default values are Npy 2 and Neg 9 Figure 24 shows the behavior of a node node 2 with Nax 2 assuming that node 1 is transmitting an alarm burst with Nyy 8 and Npg 9 Doc ID 17389 Rev 2 95 113 Extended functions UM0934 Figure 24 Alarm reception NODE 1 Initiator of alarms Alarm Reject Window Na Reception Nk Alarm Indication O Alarm RECEPTION C Alarm TRANSMISSION gt Alarm IGNORED 7 2 3 Alarm repetition If the node is a Server and is configured as REPEATER or ALWAYS REPEATER through the MIB object 000Bh Section 6 5 12 it repeats the alarms by sending Nry alarms After the transmission is complete it ignores all alarms that it eventually receives in the next Npg time slots If a CMD_AlarmRequest is sent during the alarm reception repetition or the reject window the ST7570 provides a positive confirm message without sending any additional alarms Figure 25 shows the behavior of a server configured as REPEATER node 2 with Nax 2 assuming that node 1 is transmitting an alarm burst with Nyy
67. e relation between the external zero crossing signal and internal reference for some values of n Figure 21 Time slot delay bit Client ZC reference Internal ZC reference for n 2 1200bps n 3 2400bps Internal ZC reference for n 13 1200bps n 25 2400bps l Internal Internal ZC reference for ZC reference for n 24 1200bps n 3 1200bps N 47 2400bps n 5 2400bps The confirm message of a CMD ReadDBReguest returns the current constant without changing it The CMD_WriteDBRequest sets the corresponding time value and the confirm message returns it Table 145 MIB object 00C2h Write request data format b0 19 bit time delay 000000h OFFFFFh 0 2 Time slot delay bit Read write confirm data format The same as request Doc ID 17389 Rev 2 89 113 Management information base MIB UM0934 6 5 35 90 113 Table 146 MIB object 00C2h Write error data format Returned value Error description ERR ILLEGAL DATA COMMAND Wrong number of data bytes ERR REQUEST NOT ALLOWED The writing request failed 00D1h ZC delay compensation This object stores the delay At between the power line zero crossing and the ST7570 zero crossing internal reference The step is 13 us The ST7570 changes its internal ZC reference as soon as the value is written on the MIB object Equation 3 At compensation 13us Figure 22 ZC delay compensation external ZC events internal ZC reference
68. ected When operating in MAC mode and a frame with repetitions i e with credits IC and CC 5 0 is received the CMD Datalndication is always notified upon receipt of the first valid MAC frame within the repetition burst Figure 19 Figure 19 Receipt of a MAC frame with repetitions example with IC 3 CMD Datalndication DA SA M sdu IC 3 CC 3 DC 0 MAC Frame MAC Frame MAC Frame MAC Frame IC 3 CC 3 IC 3 CC 2 IC 3 CC 1 IC 3 CC 0 Table 36 CMD_Datalndication Syntax Source Command Args Possible response ST7570 CMD Datalndication IndicationData Table 37 CMD Datalndication IndicationData PHY mode Byte index Label Description LIE bytes containing the received data at the physical layer P SDU PHYsical service data unit 38 39 ASKO Number of bits equal to 0 demodulated incrementing the ASK counter Section 3 6 2 40 41 ASK Number of bits equal to 1 demodulated incrementing the ASK counter Section 3 6 2 42 43 Number of bits demodulated incrementing the SFSK counter Section 3 6 2 44 46 SNRO Estimated signal to noise ratio on channel O Section Fine estimation 47 49 SNR1 Estimated signal to noise ratio on channel 1 Section Fine estimation Doc ID 17389 Rev 2 ky UM0934 5 3 12 a Host interface Table 38 CMD Datalndication IndicationData MAC mode Credit information b7 b5 Initial credit IC CREDIT b4 b2 Current credit CC b1 b0 Delta credit DC UART
69. emodulated bit value is equal to O ASK1 otherwise is incremented however if the bit is returned after a combination of measured data the SESK counter is incremented The values of the counters are automatically provided by means of unsolicited indications CMD_Datalndication Section 5 3 11 Receiving gain PGA estimation The internal PGA block refer to 7 is driven by an automatic control algorithm to find the best gain maximizing the dynamic range of the input signal The found PGA gain is then written into the MIB object OOODh SO NO PGA Section 5 3 14 and automatically provided through unsolicited indications CMD_Datalndication Section 5 3 11 Doc ID 17389 Rev 2 19 113 Physical layer UM0934 3 6 4 3 6 5 20 113 SPY Subframelndication Section 5 3 18 SPY No Subframelndication Section 5 3 17 Such gain value is useful to estimate the input signal amplitude Electrical delta phase detection During the reception of a valid sequence of preamble and SSD bytes the ST7570 automatically performs a measurement of the mains phase difference between the local zero crossing reference and the received sequence The result is then written into the MIB object OOOEh S1 N1 phase Section 6 5 15 and automatically provided through unsolicited indications CMD Datalndication Section 5 3 11 SPY Subframelndication Section 5 3 18 SPY No Subframelndication Section 5 3 17 The meaning of each code is desc
70. ented to the underlaying PHY layer for encapsulation and transmission on the medium According to the length of the M sdu to be transferred from 1 up to 242 bytes the MAC could use from 1 up to 7 subframes corresponding to 1 up to 7 consecutive time slots on the medium During reception the PHY layer presents all the received P pdu frames to the MAC for further processing If the P pdu frames are recognized as being part of one long MAC frame checking information NS the MAC assembles them in order to rebuild the original long frame The long frame is then presented to upper layers through M Data Indication according to the result of the FCS and address checks Doc ID 17389 Rev 2 ky UM0934 MAC layer Figure 11 MAC and PHY layer framing M Data request M Data indication M sdu DA IC CC DC M sdu SA DA IC CC DC Long MAC Header M sdu Zero FCS Frame padding 1G 7 bytes 1 242 bytes variable 3 bytes from 1 up to 7 sub frames according to M_sdu length Sub Sub frame 2 frame 7 PRE Sub PRE Sub PRE Sub SSD frame 1 SSD frame 2 SSD frame 7 PAG 4 bytes 38 bytes 4 bytes 38 bytes PHY Frame Pause PHY Frame Pause PHY Frame Pause Power line a EE PIL E medium tc 42 bytes 3 bytes 42 bytes 3 bytes 42 bytes 3 bytes TIMESLOT i 1 th TIMESLOT i 2 th TIMESLOT i 7 th 4 5 Address management Each long MAC frame contains two address fields source address SA identifying the stati
71. er 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 2011 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 A DoelDI7SB9Reva 1 113
72. eral frame formats for the different steps of the communication protocol access to ST7570 services acknowledgement device status All the ST7570 resources and services PHY layer MAC 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 next paragraphs Doc ID 17389 Rev 2 37 113 Host interface UM0934 38 113 As described in Section 2 2 the ST7570 protocol stack implemented in compliance with 2 can be accessed at the physical layer PHY mode or at the MAC layer MAC mode Several commands of the host interface may present a different format and behavior according to the selected mode Local frames The format of the frame used in the local communication between the 5T7570 and the external host is graphically represented in Figure 15 Figure 15 Local frame format STX DATA The frame fields are described in Table 10 Table 10 Local frame format Fo one on NE EE NE ET tenet 1 anena 0 247 Data fold 247 byte max The checksum of the local frame is the result of the addition Checksum 2 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 Byte endianness for fields data and checksum with a length greater than one byte is Data field structured in sub fields in accordance with command code specifica
73. est dataformat 78 Table 110 MIB object 0011h Read write confirm dataformat 78 Table 111 MIB object 0011h Writeerrordataformat 78 Table 112 MIB object 0012h Write request dataformat 78 Table 113 MIB object 0012h Writeerrordataformat 79 Table 114 MIB object 0013h Write request dataformat 79 Table 115 MIB object 0013h Writeerrordataformat 79 Table 116 MIB object 0014h Write request dataformat 80 Table 117 MIB object 0014h Write error data format aaa 80 Table 118 MIB object 0015h Write request dataformat 80 Table 119 MIB object 0015h Writeerrordataformat 80 Table 120 MIB object 0016h Write request dataformat 81 Table 121 MIB object 0016h Writeerrordataformat 81 Table 122 MIB object 0082h Write request dataformat 81 Table 123 MIB object 0082h Read write confirm dataformat 82 Table 124 MIB object 0082h Write error data format 82 Table 125 MIB object 0083h Write request dataformat
74. f the PRE SSD causing the synchronization This condition is aimed at avoiding the acquisition of a fake synchronization caused by the reception of a PRE SSD simulated by the noise on the line 2 Address check two operating modes are available unlocked mode no checks on addresses are performed Only condition 1 is used to accept or refuse the synchronization locked mode both source SA and destination DA addresses are checked and compared against a local MIB object called Initiator MAC address programmed by upper layers usually with the address of the network s Client also called initiator If at least one SA or DA matches with the Initiator MAC address value the synchronization is confirmed or otherwise rejected This condition is aimed at forcing a Server to accept only the time slot synchronization coming from a specific node usually the network s Client by confirming the time slot synchronization only on frames originating from or addressed to that node After having confirmed the time slot synchronization according to the conditions mentioned above the MAC layer keeps on monitoring the validity of the synchronization through the timeout frame not OK At least one valid MAC frame must be received within this timeout The timeout counter is reset at any valid MAC frame reception If no valid MAC frame is received within this time interval time slot synchronization is rejected Initiator
75. firm Local Frame ocal Frame CMD Data Request Local Frame ACK ACK Z Powerline PRE P SDU M AC frame transmission CMD Sync CMD Data Indication Indication Local Frame Local Frame 10 3 1 Station1 Client CMD Data Request The local frame encapsulating the CMD DataRequest aa SY 02h 22h 51h 00h C0 00 01h 00h 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E OF 10 11 12 13 14 15 16 17 18 19h 79 O h STX The credit and address fields are filled as follows IC 000b CC 000b DC 00b 00h SA COOh DA 001h gt CO0 00 01h This request causes the modem to start the transmission of the MAC frame over the power line 106 113 Doc ID 17389 Rev 2 ST UM0934 10 3 2 MAC mode communication example CMD Synchrolndication As this is the first transmission performed after the modem configuration step 1 station1 generates locally a CMD Synclndication to notify that a time slot synchronization has been successfully found DATA 02h 12h 10h 01h 00 00 00h 00 00 00h 90 00 00h 00 00 00h OOh OOh 23 00h STX As the node was not synchronized no estimation is performed Therefore values of fields SO NO S1 N1 PGA phase are equal to zero while field Sync is as follows Sync 01h means that the time slot synchronization has been achieved but still to be confirmed CMD DataConfirm As soon as the transmission over the power line is complete station1 generates locally a CMD DataConfirm as f
76. frameformat 14 PHY dala SGIVICOS ii se EES AA ER EA DASSE EE LABNINAANAGA UE epee 16 PHY alani IS bie 0 5 4 4 oe dope a N OE EE EE EE Wu N 17 PHY synchronization services 18 ST7570 transmission path block diagram 20 MAG dalaSeInviCes 3 425242 HEER MAANGA IS DEAD RE NG EE DO DEE DOE ERAS NE 23 MAG alarm Services se se 562 bacedee Ge NG PAG AD nl BING Ee NEE N RE EL EER RR PG 24 MAC synchronization services 25 MAC subframe structure 26 MAG and PHY layer framing UWIII kira KN Uie N WE eo de NG 27 Repetitionsekample 34 ST7570 and external host UART connections 36 Local port character format 37 Local Tame ONNA AA AA 38 Timeout inter character TIC 42 Data flow from external host to the ST7570 43 Data flow from the ST7570 to the external host 43 Receipt of a MAC frame with repetitions example with IC 23 52 Transmission of a MAC frame with repetitions example with IC 3 54 N ES edel EN ie RS ON OE tat HIII EN a KA oG 89 ZC delay compen
77. gh the M Data Indication upon receipt of the first valid MAC frame within the repetition burst Such information is not used by the MAC layer Doc ID 17389 Rev 2 31 113 MAC layer 4 8 2 4 8 3 4 8 4 4 8 5 32 113 UM0934 When upper layers request a transmission through an M Data Request according to the node type Client and REPEATER the node originates IC 1 consecutive transmissions of the same MAC frame Server whatever the value of the IC the node performs only 1 transmission of the MAC frame Current credit CC The current credit CC is a 3 bit long field with an initial value equal to IC and automatically decremented by the MAC layer after each repetition When receiving the CC field is extracted and notified to the upper layers through the M Data Indication upon receipt of the first valid MAC frame within the repetition burst Moreover only in the case of REPEATER does the node join the repetition by transmitting CC frames in the next time slots CC field is automatically decremented by the MAC layer after each repetition Delta credit DC Delta credit DC is 2 bits long and used by the system management application entity SMAE of the Client for credit management while it has no meaning for a Server or a REPEATER It represents the difference IC CC of the last communication originated by the system identified by the DA address to the system identified by the SA address When the MAC builds
78. h invalid frame counter MIN CREDIT 3 0 Minimum delta credit Possible values from O to 7 REPEATER Repeater status 0 not a repeater 1 repeater Doc ID 17389 Rev 2 41 113 Host interface UM0934 5 2 2 42 113 Acknowledgement messages After receiving a local frame on the host interface both the external host and ST7570 must send an acknowledgement or not acknowledgement message through either TXD ST7570 or RXD external host The two messages have the same format for both ST7570 and the external host and they are 1 byte long Table 13 lists their fixed codes Table 13 ACK and NAK message codes Local port arbitration rules The ST7570 modem is always the communication master In the case of no local transfer the ST7570 can initiate a local communication without taking into account the external host status On the other hand when the external host wants to send data using a local frame it must first send a request through the T_REQ transmitting request input port Then the S1T7570 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 byte flow into a frame flow the ST7570 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 character
79. h Request to ask the PHY layer for the rejection of the current time slot synchronization if any P Synch Indication generated by the PHY layer as soon as a new time slot synchronization is achieved a Doc ID 17389 Rev 2 17 113 Physical layer UM0934 3 6 3 6 1 18 113 Figure 5 PHY synchronization services Embedded MAC layer PHY or external Host Layer P Sync request Current time slot synchronization Is rejected New time slot synchronization P Sync indication Local Node Power Line Additional features The ST7570 embeds additional features in the PHY layer to collect or estimate additional information useful for MAC and upper layers Signal and noise estimation The ST7570 performs an estimation of signal and noise on every received physical frame Two estimations are provided with different accuracy Raw estimation performed on PRE SSD sequence Fine estimation performed on P sdu Raw estimation This function provides an estimation of signal and noise amplitudes as detected by the ST7570 at the RX IN pin Signal and noise amplitudes are estimated separately on channel 0 and channel 1 during the preamble PRE and SSD sequence 4 bytes The estimated amplitudes are stored in the MIB objects OOODh SO NO PGA Section 6 5 14 and OOOEh S1 N1 phase Section 6 5 15 and provided through unsolicited indications CMD Synchrolndication Section 5 3 1 and SPY SynchroFoundlndi
80. h of a physical frame PHY Frame 45 bytes The start of each time slot is usually aligned with the mains zero crossing and the bit time is automatically adapted to the mains frequency and can be chosen from two values 24 bits mains period 48 bits mains period Doc ID 17389 Rev 2 ky UM0934 3 4 3 4 1 3 5 d Physical layer Therefore the effective baud rate of the data communication depends on the mains frequency in accordance with Table 2 Table 2 Baud rate vs mains freduency 24 bits mains period 15 mains cycle time slot 1200 bps 1440 bps 48 bits mains period 7 5 mains cycle time slot 2400 bps 2880 bps All the nodes belonging to the network must use the same time slot division in order to be able to communicate The achievement of a common time division is the so called time slot synchronization process Time slot synchronization is first achieved by the master Client of the network by choosing an arbitrary time slot start usually aligned with the zero crossing event of one of the three phases of the mains All the other nodes in the network are slaves Server and they acquire the master s time slot synchronization as soon as a sequence composed by PRE SSD is received Operating modes The following operating modes are supported as defined by 2 Client is the master of the communication Server is the slave of the communication Before being allowed to transmit the 517570 modem needs to ach
81. he ST7570 through its embedded MAC The host interface exports all the MAC functions and services on the local port PHY access or PHY mode the embedded MAC layer is bypassed and the external host can directly access the PHY layer The host interface exports all the PHY functions and services on the local port AYP ID ABBQReV2 Tas Physical layer UM0934 3 3 1 3 2 3 3 14 113 Physical layer Overview The ST7570 embeds a PHY layer compliant with 2 with additional functions for alarm management and electrical delta phase detection In order to meet the application s functions and physical channel characteristics many parameters involved at this layer can be programmed by the user Frame structure The frame at the physical level PHY_Frame is made up of 45 bytes 360 bits as follows 2 bytes preamble PRE AAAAh 2 bytes start subframe delimiter SSD 54C7h 38 bytes physical service data unit P_sdu i e the payload transmitted by the MAC layer 3 bytes pause or alarm The bytes are sent from the most significant byte MSB to the least significant byte LSB Bits within the byte are packed with the same order Figure 2 Physical frame format 38 bytes Preamble EE g Pause Alarm PRE SSD PHY Frame Frame timing and time slot synchronization The time domain in the network is divided into recurrent time slots with a fixed length egual to the lengt
82. ieve the slot synchronization Additional operating modes for the physical layer In addition to the operating modes defined by 2 the ST7570 adds operating modes for specific tasks monitor and test Monitor similar to the Server being able in addition to provide extended information on physical events This mode is also called the SPY or SNIFFER mode and is used to ease the debugging of a PLC network It is normally not used in operating conditions Test embedded test modes to generate test tones useful to check EMI compliance of the output S FSK signal Services The following services are available Data services to transmit and receive data on the power line Alarm services to transmit and receive alarms on the power line Synchronization services to notify or reject a time slot synchronization Doc ID 17389 Rev 2 15 113 Physical layer UM0934 3 5 1 3 5 2 Data services The data services provided by the physical layer allow the embedded MAC layer in the case of a MAC access point or the external host in the case of a PHY access point to manage data transfer on the power line Three primitives are available eo P Data Request P sdu to ask the PHY layer for the transmission of data P sdu eo P Data Confirm T result generated by the PHY layer as a response to a previous P Data Request with the result of transmission T result P Data Indication P sdu generated by the PHY layer as soon
83. igured to operate in PHY mode and as Monitor Section 3 4 1 and is not mains synchronized this command is sent from the ST 7570 to the external host on the beginning of each time slot until a valid synchronization is found Available in PHY mode only Table 53 SPY SearchSynchrolndication Syntax Source Command Args Possible response SPY SearchSynchrolndication none SZA Doc ID 17389 Rev 2 UM0934 5 3 20 a Host interface SPY SynchroFoundlndication DOh If the ST 7570 is configured to operate in PHY mode and as Monitor refer to Section 3 4 1 it generates the SPY SynchroFoundlndication as soon as it changes its synchronization status from not synchronized to synchronized Available in PHY mode only Table 54 SPY SynchroFoundlndication Syntax Source Command Args Possible response 517570 SPY SynchroFoundlndication Spy Data Table 55 SPY SynchroFoundlndication SpyData PHY mode es s1 Sina ameinua estimated on chanel Seton a estimation 12 13 ASKO Number of bits demodulated using an ASK method on channel 0 Section 3 6 2 14 15 ASK Number of bits demodulated using an ASK method on channel 1 Section 3 6 2 16 17 Number of bits demodulated using an SFSK method Section 3 6 2 PGA gain code Section 3 6 3 Doc ID 17389 Rev 2 59 113 Host interface UM0934 5 3 21 5 3 22 60 113 SPY No Alarmlndication EOh If the ST7570 is configured to operate in PHY mode and as Mon
84. ine networking system on chip datasheet 2 International Electrotechnical Commission IEC IEC 61334 5 1 ed2 0 AYA DoeIDI7389Reva2 oo Os Revision history UM0934 12 Revision history Table 151 Document revision history KA em 08 Nov 2010 Initial release Commands and MIB objects added for Repeater Call and Intelligent Synchronization features in Section 5 on page 36 20 Sep 2011 D New Status Message format MIB object Max PGA Gain Section 6 5 32 on page 88 selections for PRESLOT ZC TS BIT pin Section 6 5 31 on page 87 and conversion formula for S N raw estimators a 112 113 Doc ID 17389 Rev 2 UM0934 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 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 par
85. is layer can be programmed by the user Operating modes The following operating modes are supported as defined by 2 Client is the master of the communication Server is the slave of the communication Before being allowed to transmit the 517570 modem needs to achieve the slot synchronization Additional operating mode In addition to the operating modes Client and Server defined by 2 the MAC layer of the S1T7570 also embeds a Monitor mode for specific tasks Monitor mode When the node is running as Monitor Allthe time outs Section 4 7 are disabled to allow the reception of frames even if they are not valid i e invalid FCS or after a long silence period Every received frame causes an CMD_Synchrolndication Section 5 3 1 to be sent to the host All the valid frames i e valid FCS are notified through an CMD Datalndication Section 5 3 11 whatever the source address and destination address Each repetition is notified through an CMD_Datalndication Section 5 3 11 independently if the modem is set as well as a REPEATER Section 4 8 5 Special MIB objects disable frame type check and disable CRC check 0008h Section 6 5 9 and auto synchro reject 0015h Section 6 5 22 let the Monitor be configured as a Sniffer capable of receiving and notifying all the frames Disable frame type check and disable CRC check these flags allow the long MAC frame type and frame CRC check to be disable
86. is set at 3s Timeout frame not ok reading The local frame encapsulating the CMD ReadDBRequest to read the MIB object 0003h DATA 02h 05h 90h 03 00h 98 00h and the expected CMD ReadDBConfirm returned by the ST7570 DATA MIB Index Object Value 02h 07h 91h 03 00h 28 00h C3 00h STX Therefore the timeout frame not ok default value is set at 40s Timeout frame not addressed reading The local frame encapsulating the CMD ReadDBReauest to read the MIB object 0004h DATA 02h 05h 90h 04 00h 99 00h and the expected CMD ReadDBConfirm returned by the ST7570 DATA MIB Index Object Value 02h O7h 91h 04 00h 68 01h 05 01h STX Therefore the timeout frame not addressed default value is set at 40 s Doc ID 17389 Rev 2 105 113 MAC mode communication example UM0934 10 3 Step 3 Transmitting a MAC frame from Client to Server After having configured both station1 and station2 it is now possible to send a MAC frame from station1 Client to station2 Server The external host of station1 can initiate the transmission by sending a CMD DataRequest to the ST7570 with the following sample parameters M sdu 00h Oth 02h 18h 19h e IC 0 CC 0 DC 0 eo DA OOfh Figure 32 shows the exchanged local frames during a transmission from Client to Server Figure 32 Host interface communication during a MAC frame transmission from Client to Server on power line CMD Sync CMD Data Indication Con
87. is written in the MIB object 0014h Phase This object is updated only when the sender of the frame was an initiator i e the source MAC address is in the range FIMA LIMA of the receiver Doc ID 17389 Rev 2 35 113 Host interface UM0934 5 5 1 36 113 Host interface The host interface is a communication port used by the external host to exchange data with the ST7570 The host interface consists of a local port a standard UART a communication protocol and a set of commands exchanged between ST7570 and the external host It manages the communication and arbitration on the local port and provides access to all the ST7570 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 REG signal to manage the communication The connection diagram of the ST7570 using UART as the host interface port is shown in Figure 13 Figure 13 ST7570 and external host UART connections A ja UART Local Port ee EE ME e EE mm ma mm mm ma mm me External HOST External UART Baudrate selection The communication baud rate is selected after the ST 7570 reset in accordance with the status of local input ports BRO and BR1 listed in Table 9 Table 9 UART baud rate a Doc ID 17389 Rev 2 UM0934 5 2 5 2 1 Host interface The UART interface has two data channels TXD carries data from
88. ission ACK or NAK Figure 17 Data flow from external host to the ST7570 Local Frame from External Host If the length and the checksum of the local frame are both correct the ST7570 acknowledges with an ACK character In other cases it answers with an NAK character In the case of an NAK response or no acknowledgement from the ST7570 within the Tack timeout a complete sequence must be restarted to repeat the frame Data communication from the ST7570 to the external host When the ST7570 needs to transmit a frame to the host it can directly send it without any previous request Figure 18 Data flow from the ST7570 to the external host Local Frame Local Frame Local Frame from ST7570 from ST7570 from ST7570 If the length and the checksum of the local frame are both correct the external host micro acknowledges with an ACK character In other cases it answers with an NAK character Doc ID 17389 Rev 2 43 113 Host interface UM0934 5 2 3 5 3 44 113 In the case of an NAK response from the external host the ST7570 repeats the frame only once after a delay corresponding to Twpc wait before continue A missed response from the external host or a framing error when an ACK character is awaited is considered as an acknowledgment Host interface timeouts All the default values of host interface time outs are reported in Table 14 Table 14 Host interface timeout values eo Command codes Each co
89. istics the frame reception ends The time interval between two consecutive characters two local frames including start and stop bits in a local frame must not exceed Tc timeout inter character the receiving part ST7570 host interface or external host no longer accepts any character after this delay expiration Figure 16 Timeout inter character TIC The timeout inter character Tic is set by default at 10 ms after a reset and can be modified by writing a dedicated MIB object Section 6 5 12 If the length and the checksum are both correct the received frame is accepted otherwise all previous characters are discarded Doc ID 17389 Rev 2 ky UM0934 a Host interface Data communication from the external host to the ST7570 When the external host needs to initiate a data transfer to the ST7570 it must set the T REQ signal at low level The ST7570 answers within the Tpp delay 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 within the Tsp delay The T REQ signal is set to a high logic value as soon as the first character STX of the local frame Section 5 2 1 has been sent If the first byte of the local frame is not received before the Tsp delay the ST7570 ignores it At the end of the data reception on the RXD line the ST7570 sends an acknowledgement message on the TXD line to inform the status of the transm
90. itor and is mains synchronized this command is sent to indicate that no alarms have been received Available in PHY mode only Table 56 SPY No Alarmlndication Syntax Source Command Args Possible response ST7570 SPY No Alarmlndication SpyData Table 57 SPY No Alarmlndication SpyData PHY mode 6 8 As Siena ample estate on chanel oct Raw ostinato SPY Alarmlndication FOh If the ST 7570 is configured to operate in PHY mode and as Monitor and it is mains synchronized this command is sent to indicate that an alarm has been received Available in PHY mode only Table 58 SPY Alarmlndication Syntax Source Command Args Possible response ST7570 SPY Alarmindication SpyData Table 59 SPY Alarmlndication SpyData PHY mode AL SO Signal amplitude estimated on channel 0 Section Raw estimation AL NO Noise amplitude estimated on channel 0 Section Raw estimation 6 8 Jasi Signa ampitude ese on channel Seton Raw estimator g Doc ID 17389 Rev 2 UM0934 5 3 23 Host interface CMD RC Request 61h This command is sent by the external host to request a Repeater Call session Section 7 3 The request can be accepted or refused by the MAC layer only and it is always followed by a positive or negative confirmation CMD RC Confirm Section 5 3 24 If the node is set at PHY layer the command does not take any effect Table 60 CMD RC Request Syntax Source Command Args Possi
91. jects 0000h FIMA LIMA 0C00h ODFFh 0001h LocalMacAdd InitMacAdd NEW OFFEh NOBODY 0000h 0005h MAC group addresses 0000h 0000h 0000h 0000h 0000h RW 0007h Minimum delta credit 0008h Disable frame type check E UU Disable CRC check Enabled 0 0009h Timeout intelligent synchronization w sonora oo la om WAA Sd oon manearen o law orn Repeatedtane o law on Taste nara a me Ed synchronization 0016h Ed 2968h 106 dBpV RAW RAW RAW RAW aw 0017h Unused ad a kyy TX output gain 0082h Current control disabled 0 10h Current limiting 66 113 Doc ID 17389 Rev 2 UM0934 6 5 6 5 1 I Management information base MIB Table 71 Database objects continued Alarm repeater Alarm before indication Alarm reject window Alarm indication Enabled 0 Repetition disable Enabled 0 SN indication disable Disabled 1 0087h Unused 009Fh PHY mode IDLE state bit rate 1200 bits s ZC PLL PLC configuration 50 Hz f9 74 0kHz f4 63 3 kHz current control disabled om foo Reeves o wrea law ooi Ese compensation Lo aw MIB parameters In this section all the MIB object are described in detail 0000h first and last initiator address FIMA LIMA This object stores the values of the FIMA first initiator MAC address and LIMA last initiator MAC address addresses Table 72 MIB object 0000h Write request data format FIMA First initiator MAC address 0000h OFFFh 0
92. l and noise amplitude values measured for frequency f and the electrical delta phase measured during the last MAC frame reception Refer to Section Raw estimation to convert the returned codes for N1 and S1 to electrical values measured in dBuV Write request data format As this parameter is read only the CMD ReadDBRequest can be used the CMD WriteDBRequest cannot Table 102 MIB object 000Eh Read confirm data na Casa Measured signal level at frequency f during a NG last MAC frame preamble SSD sequence PAD DOEL a OO Measured noise level at frequency f during the last MAC frame preamble SSD sequence LE EE ene 0000h OOFFh a 76 113 Doc ID 17389 Rev 2 UM0934 6 5 16 6 5 17 a Management information base MIB 000Fh transmitted frame counter This object stores the number of the transmitted MAC frames The confirm message of a CMD ReadDBRequest returns the current value of the counter without changing it The CMD WriteDBRequest resets the value of the counter 0 and the confirm message returns the reset value 0 Table 103 MIB object 000Fh Write request data format 104 MIB object 000Fh Read write confirm data format Byte Label tabel Description Description Available range Available range Factory default Factory default 0 3 Transmitted frame Transmitted frame counter 0 FEEFFEEFh counter value Table 105 MIB object OOOFh Write error data format Returned value Error
93. larm events to be rejected after a Alarm reject window Spp ce transmission reception or repetition of an O FFh NREJ alarm Read write confirm data format The same as request Table 132 MIB object 0085h Write error data format Returned value Error description LO ERR ILLEGAL DATA COMMAND Wrong number of data bytes 6 5 28 0086h alarm indication repetition SN indication disable This MIB parameter keeps three types of settings related to alarm management Alarm indication bit to enable disable the transmission of CMD Alarmlndication to the host Alarm repetition bit to enable disable the alarm message repetition Alarm S N indication bit to append or not the signal and noise levels to the CMD Alarmlndication sent to the host The ST 7570 configured as Monitor in PHY mode always sends an alarm indication even if the alarm indication bit is disabled The confirm message of a CMD ReadDBRequest returns the current value without changing it The CMD WriteDBRequest sets the coded values and the confirm message returns them 84 113 Doc ID 17389 Rev 2 ky UM0934 Management information base MIB Table 133 MIB object 0086h Write request data format Alarm indication e 0 kaa e 1 disabled b1 Alarm repetition e 0 enabled e 1 disabled b2 Alarm S N indication e 0 enabled e 1 disabled Read write confirm data format The same as request Table 134 MIB object 0086h Write error dat
94. me as Request Table 121 MIB object 0016h Write error data format Returned value Error description ERR UNAVAILABLE RESOURCE The modem is not configured as MAC ERR ILLEGAL DATA COMMAND Wrong number of data bytes 0082h TX output gain and current limiting This object controls the TX output gain and the current limiting feature This object has the same function of parameters TX output gain and TX current limiting of MIB object O0A1h PLC configuration Table 122 MIB object 0082h Write request data format 0 disabled t limiti 0 1 Selects the desired TX output gain as attenuation ranging from 31 dB to 0 dB with respect to the T Er maximum output voltage Gr sag 16 10h arget CUIPU JAN Note that if the current limiting is enabled the j ie desired value may not be reached in the case of overcurrent d Doc ID 17389 Rev 2 81 113 Management information base MIB UM0934 Table 123 MIB object 0082h Read write confirm data format 0 disabled C t limiti 0 1 Target output gain Desired output gain set by means of the write request Actual output gain Depending on the current limiting e disabled this value is equal to the target output Actual output gain gain 0 31 16 e enabled this value represents the actual output gain chosen by the current limiting algorithm in order to avoid overcurrent 6 5 25 82 113 Table 124 MIB object 0082h Write error data format Returned value
95. mited 0 no overcurrent 1 overcurrent THERMAL STOP a thermal shutdown see ST7570 power line networking system on chip datasheet previously occurred 0 no thermal shutdown 1 thermal shutdown MODE operating mode 0 Idle mode Test modes 1 Client 2 Server 3 Monitor SYNC Synchronization status 0 modem synchronized 1 modem not synchronized LAYER access point 0 PHY layer 1 MAC layer BUSY Physical layer is busy a transmission or reception is in progress or a transmission has been requested but not yet started 0 not busy 1 busy RESET last Reset event cause 0 Hardware Reset boot or RESETn low 1 Software Reset through CMD ResetRequest FW RELEASE embedded firmware version 40 113 Doc ID 17389 Rev 2 Of UM0934 Host interface ALARM alarm reception notification if the bit is active one time only at the next status message sent by the ST7570 after receiving an alarm only 0 No alarm reception after the previous Status Message 1 Alarm reception after the previous Status Message ZC FAILURE notification of Zero Crossing loss 0 the internal ZC PLL is properly locked at the frequency set 50 Hz or 60 Hz 1 the internal ZC PLL is not locked at the frequency set TS COUNTERI2 0 Time slot counter Possible values from O to 7 DELTA PHASEI 2 0 Electrical delta phase Table 12 Delta phase Ed Weeg Ta INVALID FRAME 7 0 Invalid frames LSByte of MIB object 0006
96. mmand frame exchanged between the host controller and the ST7570 carries a command identified by a unique command code declared in the command code field as in Figure 15 It is possible to distinguish three different commands types Request commands sent by the external host to use an ST7570 service Confirm Error commands sent by the ST7570 to answer a previous request command Indication commands sent by the ST7570 to inform the external host of a change on its services these are unsolicited commands not following any request Table 15 lists all the available commands grouped according to the different types of services offered by the ST7570 Table 15 List of available command codes Cte ome CMD ReadDBRequest CMD ReadDBConfirm CMD ReadDBError Doc ID 17389 Rev 2 ky CMD_WriteDBRequest CMD WriteDBConfirm CMD WriteDBError UM0934 I Host interface Table 15 List of available command codes continued o w ommend SPY_No_Subframelndication SPY Subframelndication SPY SearchSynchrolndication COh coh Doc ID 17389 Rev 2 45 113 Host interface UM0934 5 3 1 46 113 CMD Synchrolndication 10h This command exports the following services to the external host PHY mode P Sync Indication MAC mode M Sync Indication This command is generated by the ST7570 itself to indicate to the host a change in the synchronization status Section 3 3 Its meaning is different in accordance wi
97. nditions is the writing operation of MIB object OOA1h PLC configuration Section 6 5 30 This step is aimed at allowing the ST7570 device to communicate through a power line network and the time diagram of the commands exchanged between the ST7570 and its external host is represented in Figure 28 Figure 28 Host interface MIB object writing command sequence CMD WriteDB Con firm Local Frame CMD WriteDB Request For example in order to set the operating parameters as listed below leaving the other parameters involved in MIB object OOA1h at their default values Access layer mode MAC mode Operating mode Client Mains frequency 50 Hz Bit rate 2400 bps Target output gain 15 dB Current Limiting enabled The exchanged local frames are as follows CMD_WriteDBRequest The local frame is built and sent by the external host through the host interface with the dedicated command CMDWriteDBRequest after receiving a Status Message NOT SET bit 1 from the ST7570 Memex wie ze can a J Pax 1x EET 02h 13h 41h A1 00h 09h OOh 10h 10 21 01h 44 F7 00h 00 00 00h 02h 01h 7E 02h STX Doc ID 17389 Rev 2 99 113 Modem configuration UM0934 100 113 The byte graphical ordering from left to right reflects the byte time ordering every sub field is sent LSByte first In particular the labels in the data fields assume the values Mode b0 b2 100b Client mode b3 b4 10b 2400 bps baud rate b5 b7 000b
98. ollows STX DATA 02h 04h 52h FFh 55 01h The data value equal to FFh LP OK Section 5 3 13 notifies that the transmission completed successfully Station2 Server CMD Synchrolndication The reception of the PRE SSD sequence causes station2 to generate locally a CMD Synchrolndication DATA 02h 12h 10h Oth DF 28 00h 22 17 00h 03 29 00h B0 16 00h 04h 01h 5A 02h STX The Label values can be decoded in the same way as in Section 10 3 1 Sinc 01h means that the modem synchronization has been achieved S0 0028DFh 10463d 104 63 dBuVpays NO 001722h 5922d 59 22 dBuVaus S1 002903h 10499d 104 99 dBUVpms N1 0016B0h 5808d 58 08 dBUVpms PGA 04h Phase 0fh Doc ID 17389 Rev 2 107 113 MAC mode communication example UM0934 02h 22h 10 4 108 113 CMD Datalndication As soon as the whole MAC frame is received assuming that no corruption occurred station2 notifies the reception of the M sdu through a CMD Datalndication as follows ei ba Oo 50h 00h C0 00 01h OOh 00 01 02 03 04 05 06 07 08 09 OA OB 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19h 78 02 Below is the meaning of the sub fields encapsulated in the data field Credit 00h IC 000b CC 000b DC 00b Address C0 00 01h SA COOh DA 001h M sdu 00h 01h 18h 19h Step 4 Transmitting a MAC frame from Server to Client Thanks to the valid MAC frame received from station1 st
99. om bO to b7 b23 b12 MAC source address b11 b0 MAC destination address UART data transmission MSByte first LSBit first Therefore the 3 bytes 1 3 ADDRESS are transmitted following this order e From b16 to b23 e From b8 to b15 e From DO to b7 1 byte padding equal to 00h Mac service data unit up to 242 bytes 5 246 M SDU sae mow UART data transmission MSByte first CMD DataConfirm 52h This command exports the following services to the external host PHY mode P Data Confirm MAC mode M Data Confirm This command is sent by the ST7570 to provide a positive or negative confirmation to a data request previously requested by the external host The data field is a 1 byte field containing the result of the previous request When operating in MAC mode and a frame with repetitions i e with credits IC and CC 5 0 is transmitted the CMD DataConfirm is always notified as soon as the transmission of the first MAC frame within the repetition burst is completed Figure 20 Figure 20 Transmission of a MAC frame with repetitions example with IC 3 CMD DataConfirm MAC Frame MAC Frame MAC Frame MAC Frame IC 3 CC 3 IC 3 CC 2 IC 3 CC 1 IC 3 CC 0 Table 42 CMD DataConfirm Syntax Source Command Args Possible response ST7570 CMD_DataConfirm ConfirmData SZA Doc ID 17389 Rev 2 UM0934 5 3 14 a Host interface Table 43 CMD DataConfirm ConfirmData PHY or MAC mod
100. on the frame has been transmitted from destination address DA identifying the station the frame has been transmitted to Both SA and DA fields are 12 bits long There are three types of destination addresses individual address used for point to point unicast communication group addresses used for multipoint multicast broadcasting address a Doc ID 17389 Rev 2 27 113 MAC layer 4 5 1 4 5 2 4 5 3 28 113 UM0934 Local MAC address Each station in the network is identified through a unique local MAC address stored in the MIB object 0001h local MAC address Section 6 5 2 When the node has been configured as Server or Monitor by default the initial value for the local MAC address is NEW FFEh When the node has been configured as Client the local MAC address is automatically set equal to FIMA address It is then the responsibility of the upper layers to assign a unique address to each station within the range address space 000h FFFh Address space The available address space ranging from 000h up to FFFh is allocated to nodes belonging to the network according to The node type Client or Server Application related parameters programmable through MIB objects First initiator MAC address FIMA is the first address available for Clients Last initiator MAC address LIMA is the last address available for Clients Refer to Table 5 for local MAC address fixed values Table 5 Local MAC
101. ormat 72 MIB object 0009h Write error dataformat 73 MIB object OOOAh Write request dataformat 73 MIB object OOOAh Read write confirm data format 73 MIB object OOOAh Write error data format SE SE ees 73 MIB object OOOBh Write request dataformat 74 MIB object OOOBh Write error data format SE SE ees 74 MIB object 000Ch Write request dataformat 75 MIB object 0005h Write error data format SE SE SE ees 75 Doc ID 17389 Rev 2 9 113 List of tables UM0934 Table 101 MIB object 000Dh Read confirm dataformat 75 Table 102 MIB object OOOEh Read confirm dataformat 76 Table 103 MIB object OOOFh Write request dataformat 77 Table 104 MIB object OOOFh Read write confirm data format 77 Table 105 MIB object OOOFh Write error data format SS ESE SE SS ES eee 77 Table 106 MIB object 0010h Write request dataformat 77 Table 107 MIB object 0010h Read write confirm dataformat 77 Table 108 MIB object 0010h Writeerrordataformat 78 Table 109 MIB object 0011h Write requ
102. out changing it The CMD WriteDBRequest sets the suitable parameter and the confirm message returns its value Table 114 MIB object 0013h Write request data format 0 SMART DISABLED 1 SMART TX Smart phase detect 2 SMART RX 0 3 3 SMART TXRX Read write confirm data format The same as request Table 115 MIB object 0013h Write error data format Returned value Error description ERR UNAVAILABLE RESOURCE The modem is not configured as MAC ERR ILLEGAL DATA COMMAND Wrong number of data bytes 0014h phase This object stores the delta phase extracted on the last received MAC frame and adjusted after taking all MAC frame fields Ns CC IC into account to remove ambiguity regarding zero crossing positive or negative on the time slot starting instant The parameter value is refreshed only in the case of smart phase detection active on reception i e Smart phase detection parameter equal to Smart RX or Smart TXRX and a message originated by an initiator The confirm message of a CMD ReadDBRequest returns the current value without changing it The CMD WriteDBRequest cannot be applied on this read only parameter Doc ID 17389 Rev 2 79 113 Management information base MIB UM0934 6 5 22 80 113 Table 116 MIB object 0014h Write request data format Read write confirm data format The same as request Table 117 MIB object 0014h Write error data format Returned value Error description ERR UNAVAILAB
103. qual to 5 In the case of MAC mode this command has the same effect of setting the MIB object 00A0h New synchronization Section 6 5 29 to a high logic value by using the CMD WriteDBRequest Section 5 3 5 function g Doc ID 17389 Rev 2 UM0934 Host interface 5 3 4 CMD ResetRequest 21h This command is used by the external host to force a software reset in the ST7570 The host can decide to keep the current configuration automatically refreshed through the auto reconfiguration procedure or to reload the factory default settings After the reset the ST7570 sends a confirmation with the same command code Table 23 CMD ResetRequest Syntax Source Command Args Possible response Ext host CMD_ResetRequest ResetData CMD_ResetRequest ResetConfirm Table 24 CMD_ResetRequest ResetData Auto reconfiguration bypass 0 OFF The system performs an auto reconfiguration All the registers are refreshed with the previous configuration if no corruption occurred RESET i Section 7 2 1 ON The auto reconfiguration is by passed All the registers are loaded with the factory default values Table 25 CMD_ResetRequest ResetConfirm O RESET 0 The reset request has been taken into account 5 3 5 CMD WriteDBRequest 41h This command is used by the external host to access an object of the MIB The ST7570 checks the parameters for validation f the check is valid the object is updated in the database an
104. ration feature Table 149 MIB objects checked after reset event in PHY mode 0086h alarm indication repetition SN indication disable rere dl output 00A4h PRESLOT ZC TS BIT and ZC_IN_D configuration Time slot delay bit 00C2h time slot delay bit ZC delay compensation 00D1h ZC delay compensation Doc ID 17389 Rev 2 93 113 a Extended functions UM0934 7 1 2 7 2 7 2 1 94 113 MAC reconfiguration Table 150 lists all the MAC settings managed by the auto reconfiguration feature Table 150 MIB objects checked after reset event in MAC mode 0000h first and last initiator address FIMA LIMA Synchronization confirm timeout 0002h timeout synchro confirmation Not ok timeout 0003h timeout frame not OK Not addressed timeout 0004h timeout frame not addressed Intelligent synchronization timeout 0009h timeout intelligent synchronization Disable frame type check 0008h disable frame type check and disable CRC check Disable CRC check 0008h disable frame type check and disable CRC check Auto synchronization reject 0015h auto synchro reject Repeater call threshold 000Ch RC threshold Intelligent synchronization threshold 0016h intelligent synchronization threshold Smart phase detection 0013h smart phase detection Alarm management The ST7570 features advanced alarm messages management aimed at Avoiding false alarm detections through the programmable alarm filtering used in recep
105. ribed in Table 4 Table 4 Electrical delta phase coding Value returned Delta phase degree by the AGA 1200 bps 2400 bps Co Nai oag Cf con Cg fo o O om2 Transmitting digital gain The level of the output signal can be digitally adjusted by accessing the MIB object 0082h TX output gain and current limiting Section 6 5 24 controlling the gain control block depicted in Figure 6 Figure 6 ST7570 transmission path block diagram Target Output Gain The amplitude of the transmitted signal can be set on a 32 step logarithmic scale through the target output gain parameter of the MIB object 0082h introducing an attenuation ranging from O dB typ down to 31 dB typ For further details refer to 1 Doc ID 17389 Rev 2 ky UM0934 3 6 6 3 6 7 3 6 8 Physical layer Soft Start When the 5T7570 modem starts transmitting the soft start feature allows to linearly increase the power amplifier output gain from zero to the target value in a given time This option can be used to reduce the EM emissions The duration of the soft start is programmable by steps of 13 us through the MIB object OOACh soft start Section 6 5 33 Programmable digital output Pin PRESLOT ZC TS BIT refer to 7 can be programmed to output the following information PRESLOT as soon as time slot synchronization is achieved it is low when the device is able to accept a P Data Request or M Data Request and high otherwise
106. rite request data format Timeout synchro confirmation 0 65585 Read write confirm data format The same as write request a 68 113 Doc ID 17389 Rev 2 UM0934 Management information base MIB Table 77 MIB object 0002h Write error data format Returned value Error description ERR UNAVAILABLE RESOURCE The modem is not configured as MAC ERR ILLEGAL DATA COMMAND Wrong number of data bytes ERR REQUEST NOT ALLOWED The modem is configured as Monitor 6 5 4 0003h timeout frame not OK This object stores the value in seconds of the timeout frame not OK Section 4 6 This object is applicable in Server mode only Table 78 MIB object 0003h Write request data format Read write confirm data format The same as request Table 79 MIB object 0003h Write error data format 6 5 5 0004h timeout frame not addressed This object stores the value in minutes of the timeout not addressed Section 4 6 This object is applicable in Server mode only Table 80 MIB object 0004h Write request data format Read write confirm data format The same as request I Doc ID 17389 Rev 2 69 113 Management information base MIB UM0934 Table 81 MIB object 0004h Write error data format Returned value Error description ERR UNAVAILABLE RESOURCE The modem is not configured as MAC ERR ILLEGAL DATA COMMAND Wrong number of data bytes ERR REQUEST NOT ALLOWED The modem is configured as Monitor 6 5 6 0005h MA
107. s returned Doc ID 17389 Rev 2 73 113 Management information base MIB UM0934 Table 97 MIB object 000Bh Write request data format bO0 b1 repeater settings MAC mode only 00b NEVER REPEATER node is not a REPEATER 01b ALWAYS REPEATER node is a REPEATER 10b NO REPEATER node is not a Repeater for Repeater Call session Section 7 3 11b REPEATER node is a Repeater for Repeater Call repeater session Section 7 3 00h FFh MAC 00h or 80h PHY setting b2 b6 unused BESO b7 inter character timeout Tie 0 the T value represents 5 characters depending on the UART communication speed defined by two local input ports BRO and BR1 1 the Tj value is equal to 10 ms TIC selector Read write confirm data format The same as request Table 98 MIB object OOOBh Write error data format Returned value Error description ERR ILLEGAL DATA COMMAND Wrong number of data bytes or value out of the available range PHY only SZA 74 113 Doc ID 17389 Rev 2 UM0934 Management information base MIB 6 5 13 000Ch RC Threshold This object stores the RC detection threshold value expressed in 100 dBuV The RC message is considered valid only if the SRC gt NRC and SRC is greater than the RC detection threshold parameter Refer to 2 chapter Repeater Call Heading 1 The confirm message of a CMD ReadDBRequest will return the current value without changing it The CMD WriteDBRequest will set the thre
108. sation 90 Fat Melle MicclON AA AA 95 Alarni se ss iet EE N EE ET oda amp tere Cate oes cas ENE ED Ed 96 Alara AA GANA EE KAM AG BREED MEDE ANA DEE kee EE 96 Repeater call for client 97 RepeaterCallforServer 98 Host interface MIB object writing command sequence 99 Data COMMUNICAUON saes ses AREA KAR AARDE RE HA KORE AA ULI DA ANG RR EE 101 Time diagram host interface communication 101 Host interface MIB object reading command sequence 104 Host interface communication during a MAC frame transmission from Client to Server on EES EN EE EE OE EE EEN EE OE OR FOK AA 106 MAC frame transmission from Server to Client 108 Doc ID 17389 Rev 2 7 113 List of tables UM0934 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 4
109. se the Timeout frame not addressed elapsed In the case the In the case the IS STATUS is equal to LM LOCKED the following additional bytes are appended STATUS is equal to LM LOCKED the In the case the IS STATUS is equal to LM LOCKED the following additional bytes are appended additional bytes are appended Initiator MAC Address of the MAC frame received with the highest signal level during Intelligent Synchronization first phase EE Max Received Signal level between SO S1 expressed as 100 dBuV 5 3 26 CMD SyntaxError 20h This command is sent by the ST7570 to the external host after receiving a local frame with syntax errors meaning that at least one of the following cases has been detected the value declared in the length field has not been respected in the data field transmission the value declared in command code does not correspond to any command listed in Table 15 After the reception of a local frame with a wrong checksum field an NAK acknowledgement is sent Table 66 CMD SyntaxError Syntax Source Command Args Possible response ST7570 CMD SyntaxError ErrorData a Doc ID 17389 Rev 2 63 113 Management information base MIB UM0934 6 1 64 113 Table 67 CMD SyntaxError ErrorData 0 ERROR 01h Error Management information base MIB The MIB collects all the parameters that allow the host to set and control the modem operation The host can update an MIB object thro
110. shold value and the confirm message will return the value Table 99 MIB object 000Ch Write request data format Minimum signal amplitude value to be 28A0h 0 1 RC threshold measured during a Repeater Call 0000h FFFFh detection 104 dBuV Padding Bytes 0000h 0000h Read write confirm data format The same as request Table 100 MIB object 0005h Write error data format Returned value Error description ERR UNAVAILABLE RESOURCE The modem is not configured as MAC ERR ILLEGAL DATA COMMAND Wrong number of data bytes 6 5 14 000Dh SO NO PGA This object stores the Signal and Noise amplitude values measured for frequency fg and the PGA gain set during the last CMD Datalndication Refer to Section Raw estimation to convert the returned codes for NO and SO to electrical values measured in dBpV Write request data format As this parameter is read only the CMD ReadDBRequest can be used the CMD WriteDBRequest cannot Table 101 MIB object 000Dh Read confirm data format Measured signal level at frequency fg during the last MAC frame preamble SSD sequence POTON EEEE oon Measured noise level at frequency fy during the last MAC frame preamble SSD sequence AE EE oes RX programmable gain amplifier 0 8 level set 8 9 Poa during the last MAC frame received EE BAUAN od Doc ID 17389 Rev 2 75 113 Management information base MIB UM0934 6 5 15 000Eh S1 N1 phase This parameter keeps the signa
111. ta reguest P Data indication M Local Node Power Line Remote Node Doc ID 17389 Rev 2 23 113 MAC layer 4 3 2 4 3 3 24 113 UM0934 Alarm services The alarm services provided by the MAC layer allow the upper protocol layers embedded in the external host to manage alarm transfer on the power line Three primitives are available M Alarm Request to ask the MAC layer for the transmission of an alarm M Alarm Confirm T result generated by the MAC layer as a response to a previous M Alarm Request with the result of transmission T result M Alarm Indication generated by the MAC layer as soon as an alarm coming from the power line has been received Figure 8 MAC alarm services SM Upper PHY Layers L Layer ext Host ext Host P Alarm indication P Alarm confirm 2234 Local Node Power Line Remote Node Synchronization services The synchronization services provided by the MAC layer allow the upper protocol layers embedded in the external host to manage the time slot synchronization Two primitives are available M Sync Request to ask the MAC layer for the rejection of the current time slot synchronization if any M Sync Indication S state generated by the MAC layer as soon as a change in the time slot synchronization has happened with a description of the status S state g Doc ID 17389 Rev 2 UM0934 MAC l
112. th the operating mode PHY mode this indication is generated every time a valid PRE SSD sequence is found MAC mode this indication is generated every time a change in the synchronization state occurs Table 16 CMD Synchrolndication Syntax Source Command Data Possible response ST7570 CMD Synchrolndication SyncData Table 17 CMD Synchrolndication SyncData Sita mpe a9 Amplitude of signal on channel 0 Raw estimation performed on received 7 preamble SSD sequence Section Raw estimation 35 NO Amplitude of noise on channel 0 Raw estimation performed on received E preamble SSD sequence Section Raw estimation Si Amplitude of signal on channel 1 Raw estimation performed on received preamble 4 SSD seduence Section Raw estimation 9 1 N1 Amplitude of noise on channel 1 Raw estimation performed on received preamble SSD sequence Section Raw estimation 12 PGA Gain of the reception PGA PHASE Electrical delta phase a Doc ID 17389 Rev 2 UM0934 a Host interface Table 18 CMD Synchrolndication SyncData MAC mode Status of synchronization change 1 Synchronization FOUND SYNC 2 Synchronization CONFIRMED 4 Synchronization LOST 5 Synchronization INTELLIGENT 0x05 Other bytes differ according to the SYNC byte status If SYNC 1 Synchronization FOUND 13 So Amplitude of signal on channel 0 Raw estimation performed on received j preamble SSD sequence Section Raw estim
113. tion Avoiding echo effects by ignoring all the alarms that can occur immediately after alarm transmission reception or repetition in MAC mode Alarms can be used in both PHY and MAC modes Alarm transmission The host can request the ST7570 transmitting burst of Nyy alarms by using the command CMD_AlarmRequest As soon as the transmission is completed the ST7570 ignores all the alarms that may occur in the next Nag time slots The confirmation to the alarm request CMD_AlarmConfirm is generated immediately after the first alarm burst If other CMD AlarmRequests are sent during the alarm transmission or the reject window the ST7570 provides an immediate positive confirmation but it does not send any additional alarms Doc ID 17389 Rev 2 ky UM0934 7 2 2 a Extended functions Both Nyy and Neg values are programmable by accessing the MIB object 0085h Section 6 5 27 Default values are Nyy 8 and Neg 9 Figure 23 shows the transmission of an alarm with default values Figure 23 Alarm transmission CAAA EASA d SN Alarm Transmission Ny Reject Window Npe Alarm Request Alarm Confirm O Alarm RECEPTION C Alarm TRANSMISSION gt Alarm IGNORED Alarm reception As soon as a burst of alarms is received the ST7570 generates a CMD Alarmlndication message to the host In order to avoid the detection of fake or corrupted alarm messages the system generates an indication only if Ngx consecutive alarms ar
114. tions described in 5 3 Sub fields with a length greater than one byte are sent LSByte first unless otherwise specified Checksum field is sent LSByte first a Doc ID 17389 Rev 2 UM0934 Host interface Status message The status message is composed of 4 bytes filled according to the operating mode selected The first byte byte index 0 is always the character ASCII code 3Fh Other bytes are set asin Table 11 Table 11 Status message composition mens wor e ee Loe ASCII code 3Fh Not set PHY and MAC mode OO ovencuanenr memso wese o o wen o Ca o o else Fwreease 1 0 EER Co o fe fo o o o o Client PHY mode LE MAMA ee ANKE AL IN ME MEN EE MEE GEEN MEE DE AL OIE BA FI 8 FE Sb LE BP Client MAC mode OVERCURRENT THERMAL STOP MODE a SYNC LAYER BUSY TS COUNTER 2 0 RESET FW RELEASE 1 ALARM ZC FAIL INVALID FRAME 7 0 Server PHY mode ef o RESET FW RELEASE Server MAC mode OVERCURRENT THERMAL STOP MODE SYNC LAYER BUSY TS COUNTER 2 0 RESET FW RELEASE 1 ALARM ZC FAIL DELTA PHASE 2 0 MIN CREDIT 3 0 REPEATER Monitor only PHY mode a o o oewre am z0 ran o bara o fo o o o a Doc ID 17389 Rev 2 39 113 Host interface UM0934 The status fields mentioned in Table 11 are coded as follows OVERCURRENT at least one frame previously transmitted by the device has been current li
115. ty 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 UNLESS EXPRESSLY APPROVED IN WRITING BY TWO AUTHORIZED ST REPRESENTATIVES ST PRODUCTS ARE NOT RECOMMENDED AUTHORIZED OR WARRANTED FOR USE IN MILITARY AIR CRAFT SPACE LIFE SAVING OR LIFE SUSTAINING APPLICATIONS NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY DEATH OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE ST PRODUCTS WHICH ARE NOT SPECIFIED AS AUTOMOTIVE GRADE MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK 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 whatsoev
116. ugh a CMD WriteDBRequest specifying the object index and related value s The modem returns a confirmation message CMD WriteDBConfirm if the write request was correct otherwise it returns an error message CMD WriteDBError according to the command failure Each MIB object can also be read by using the CMD ReadDBRequest command If the read request is correct the modem returns a confirmation message CMD ReadDBConfirm otherwise it returns an error message CMD ReadDBError according to the command failure Both read and write confirm messages CMD WriteDBConfirm and CMD ReadDBConfirm have the same syntax and are specific for each MIB parameter MIB write request This command is used by the external host to update the value of an object of the ST7570 MIB A CMD WriteDBRequest is composed of two fields as in Table 68 Table 68 MIB write request Data INDEX Object index 2bytes Refer to the MIB table Table 71 for available objects DATA Data to be written into the MIB location INDEX Both index and data field must be sent LSByte first The ST7570 checks the request for validation Then according to the result of the check if valid the object is updated in the MIB and the ST7570 replies with a CMD WriteDBConfirm if not valid the request is rejected and the ST 7570 replies with a CMD WriteDBError In the following sections the details of all accepted index and data fields are described as well as
117. vailable range Available range Factory default Factory default Transmitted alarm Transmitted alarm counter O FFFFFFFFh oo counter value Table 130 MIB object 0084h Write error data format Returned value Error description EN ERR ILLEGAL DATA COMMAND Wrong number of data bytes Doc ID 17389 Rev 2 83 113 Management information base MIB UM0934 6 5 27 0085h alarm repetition alarm before indication alarm reject window This object controls the alarm management Section 7 2 Alarm repetition it sets the number of alarms that are sent when an alarm transmission is requested If the alarm repetition feature is enabled Section 6 5 28 the same number of alarms is sent also as soon as an alarm coming from another node is received Alarm before indication number of alarms to be received before sending an CMD Alarmlndication to the host Alarm reject window number of alarm events to be rejected after an indication repetition or transmission The confirm message of a CMD ReadDBRequest returns the current value without changing it The CMD WriteDBRequest sets the threshold value and the confirm message returns the value Table 131 MIB object 0085h Write request data format 0 Alarm repetition NTx Number of repeated alarm transmissions O FFh es Alarm before indication Number of alarm events to be received before 1 iar O FFh 2 Ngy sending an alarm indication to the host l Number of a

Download Pdf Manuals

image

Related Search

Related Contents

Cellular Line INVISIBLEC5230 mobile phone case  Cropico DO7 Plus Manual  取扱説明書 - アルケア  Cliccate qui per un nuovo  Manual    Philips Brilliance LED monitor 241P3LYES  NEXUS X-BLUE - AQUACENTRUM    

Copyright © All rights reserved.
Failed to retrieve file