Home

SUNNY WEBBOX - Remote Procedure Call Description Interfaces

image

Contents

1. value permanent Storage m unit min max 100 meta Software BFR value 2 name Software BFR unit Version min 0 1 00 meta Hardware BFS n value 7 Service Procedures SWebBoxRPC BA en 14 29 7 Service Procedures name Hardware BFS unit Version 7 7 RPC SET PARAMETER 7 7 1 Version 1 0 SMA Solar Technology AG Sets parameter values of up to 5 devices and returns the device list submitted in the request with the corresponding current parameter values A check to see whether every parameter value was set successfully must be carried out by the application used Structure RPC version 1 0 proc SetParameter id ID format FORMAT passwd PASSWORT params DEVICES channels CHANNELS 1 30 SWebBoxRPC BA en 14 User Manual SMA Solar Technology AG 7 Service Procedures A list with the device objects whose parameters are to be changed must be transferred as a parameter Every device object contains a list with the parameters that must be set Configuration of the parameters is performed synchronously Thus the response time depends on the number of parameters to be set For the next example the response time is approx 10 seconds PASSWORD MD5 coded hash value of the password for the desired a
2. DEVICE KEY The device key of a device of the type for which the process data channels are to be returned 18 SWebBoxRPC BA en 14 User Manual SMA Solar Technology AG Sample request RPC version 1 0 proc GetProDataChannels id 1 format JSON params device WR715 19 263415747 Sample response RPC version 1 0 proc GetProcessDataChannels neto result WR715 19 263415747 Upv Soll h Total Zac Status E Total Upv lst Riso Uac Pac Fehler Cnt Ipv Netz Ein Seriennummer Fac Fehler User Manual 7 Service Procedures SWebBoxRPC BA en 14 19 7 Service Procedures lac lst 7 4 RPC GET PROCESS DATA 7 4 1 Version 1 0 Returns process data for up to 5 devices per request Structure RPC version 1 0 proc GetProcessData id ID format FORMAT params DEVICES key DEVICE_KEY channels CHANNELS SMA Solar Technology AG A list with the device keys whose process data is to be provided must be transferred as a parameter You can submit a selection of required process data to each device If a selection is omitted all process data will be transmitted DEVICES An array containing objects with the device keys of those devices for which process data is to be returned and optional CHANNELS DEVICE KEY corresponding d
3. The level is determined by transmitting the MD5 hash value of the respective password in the request header Structure RPC version 1 0 proc GetParameterChannels id ID format FORMAT passwd PASSWORD params key DEVICE_KEY PASSWORD MD5 coded hash value of the password for the desired access level DEVICE KEY The device key of a device for whose type the parameter channels are to be returned Sample request RPC version 1 0 proc GetParameterChannels id 1 format JSON passwd a289fa4252ed5af8e3e9f9bee545c172 params device WR715 19 263415747 User Manual SWebBoxRPC BA en 14 23 7 Service Procedures SMA Solar Technology AG Sample response RPC version 1 0 proc GetParameterChannels id 1 result WR715 19 263415747 Plimit SMA Grid Guard SMA SN Betriebsart Control Ripple Ctl Frq PowerBalancer Usoll Konst Upv Start Default Start Ripple Ctl Lev Storage Ripple Ctl Rcvr Software SRR T Stop Software BFR Hardware BFS 24 SWebBoxRPC BA en 14 User Manual SMA Solar Technology AG 7 Service Procedures 7 6 RPC GET PARAMETER 7 6 1 Version 1 0 Returns the parameter values of up to 5 devices depending on the access level The level is determined by transmitting the MD5 hash value of the respective password in the request header
4. null is entered children An array of objects containing sub devices Defining this element is optional If the element is used but no sub devices exist null is entered 12 SWebBoxRPC BA en 14 User Manual SMA Solar Technology AG 6 Object Definitions 6 2 Channel Object Describes a process data or parameter channel of a device RPC meta string name string optional value string unit string optional Imin min string optional n max string optional options array optional meta The meta name which uniquely defines the channel e g ExtSollrr name The translated display name e g External irradiation Defining this element is optional value The value of the channel e g 843 Defining this element is optional unit The unit of the channel e g W m 2 For channels which have no unit an empty string must be entered min The minimum possible value of a channel Defining this element is optional max The maximum possible value of a channel Defining this element is optional options list with the possible values of a parameter channel Defining this element is optional User Manual SWebBoxRPC BA en 14 13 7 Service Procedures SMA Solar Technology AG 7 Service Procedures This section describes the structure of the available service procedures For each procedure a brief description of its task is given This is follo
5. 7 821 kWh Status No error 7 2 RPC GET DEVICES 7 2 1 Version 1 0 Returns a hierarchical list of all detected plant devices Structure RPC version 1 0 proc GetDevices id ID format FORMAT Sample request RPC version 1 0 proc GetDevices id 1 format JSON 16 SWebBoxRPC BA en 14 SMA Solar Technology AG User Manual SMA Solar Technology AG 7 Service Procedures Sample response RPC version 1 0 proc GetDevices id 1 result totalDevicesReturned 6 devices key SCC250H9 1390148531 Sunny Central ET children key SCBFSO16 8945 name Sunny BFS E1 children null key SMU8b004 2567 name String Monitoring Unit E1 children null key SCC250H9 13901 48538 name Sunny Central E2 children key SCBFSO16 8956 name Sunny BFS E2 children null User Manual SWebBoxRPC BA en 14 17 7 Service Procedures SMA Solar Technology AG key SMU8b004 2534 name String Monitoring Unit E2 children null 7 3 RPC_GET_PROCESS_DATA_CHANNELS 7 3 1 Version 1 0 Returns a list with the meta names of the available process data channels for a particular device type Structure RPC version 1 0 proc GetProcessDataChannels id ID format FORMAT params DEVICE_KEY
6. Sunny WebBox The default setting is 192 168 0 168 Hence the default URL is the following http 192 168 0 168 rpc The request is transmitted via HTTP POST in the body of the HTTP request as serialized JSON object according to the conventions established in Section 4 1 Both the client side implementation effort and the resource requirements are relatively high As a general rule communication takes place via the standard port 80 which means that there is no need to make any changes to active firewalls User Manual SWebBoxRPC BA en 14 11 6 Object Definitions SMA Solar Technology AG 6 Object Definitions This section defines the structure of frequently used objects using the JSON syntax In the description the values of the object members define the type of data used All definitions apply accordingly to all other data transmission formats 6 1 Device Object Describes a device within the plant e g Sunny Boy Sunny Sensor Box RPC key string name string or null optional channels array or null optional children array or null optional key unique device key e g SB2 1TLO6 2000106925 name The user definable name of the device e g INV left Defining this element is optional If the element is used but no name was defined null is entered channels array of channel objects of the device Defining this element is optional If the element is used but no channels exist
7. defining the data exchange format of the procedure s result see Section 4 2 Return Value Response page 10 passwd a character sequence comprising the hash value of the password for the desired access level user installer The hash value is calculated using the MD5 algorithm see 4 Password allocation is performed via the security settings in the Sunny WebBox If the object is not transmitted the user level is automatically assumed params an object whose elements are transferred to the procedure as arguments Each parameter must be available in the form of a named JSON object Hence the sequence is arbitrary The number of parameters depends on the given service procedure see Section 7 If the requested procedure does not expect any arguments the entry is omitted User Manual SWebBoxRPC BA en 14 9 4 Procedure Conventions SMA Solar Technology AG 4 2 Return Value Response The data exchange format of the response is defined by the character sequence transmitted in the request The following formats are currently available JSON 4 2 1 JSON The response to a request consists of a serialized JSON object made up of the following compulsory objects version a character sequence which defines the underlying version character sequence which contains the called procedure character sequence which serves to assign the request and response Contains the ID from the
8. 00 www SMA de E Mail info SMA de O 2004 to 2013 SMA Solar Technology AG All rights reserved User Manual SWebBoxRPC BA en 14 34 SMA Solar Technology SMA Solar Technology AG www SMA de SMA Australia Pty Ltd www SMA Australia com au SMA Benelux bvba sprl www SMA Benelux com SMA Beijing Commercial Company Ltd www SMA China com cn SMA Central 8 Eastern Europe s r o www SMA Czech com SMA France S A S www SMA France com SMA Hellas AE www SMA Hellas com SMA Ib rica Tecnolog a Solar S L U www SMA Iberica com SMA Solar India Pvt Ltd www SMA India com SMA Italia S r l www SMA ltalia com SMA Japan K K www SMA Japan com SMA Technology Korea Co Ltd www SMA Korea com SMA Middle East LLC www SMA Me com SMA Portugal Niestetal Services Unipessoal Lda www SMA Portugal com SMA Solar Thailand Co Ltd www SMA Thailand com SMA Solar UK Ltd www SMA UK com
9. 000101001 channels min max meta Betriebsart options Stop Konstantspg Mpp Betrieb Res Res2 Res3 Res4 Res5 value Stop name Betriebsart unit User Manual SWebBoxRPC BA en 14 33 SMA Solar Technology AG Legal Provisions Legal Provisions The information contained in this document is the property of SMA Solar Technology AG Publishing its content either partially or in full requires the written permission of SMA Solar Technology AG Any internal company copying of the document for the purposes of evaluating the product or its correct implementation is allowed and does not require permission Declaration of Conformity SMA Solar Technology AG hereby declares that this equipment is in compliance with the essential requirements and other relevant provisions of Directive 1999 5 EC You can find the entire CE declaration of conformity at www SMA Solar com Trademarks All trademarks are recognized if these are not marked separately Missing designations do not mean that a product or brand is not a registered trademark The Bluetooth word mark and logos are registered trademarks owned by Bluetooth SIG Inc and any use of such marks by SMA Solar Technology AG is under license Code is a registered trademark of DENSO WAVE INCORPORATED SMA Solar Technology AG Sonnenallee 1 34266 Niestetal Germany Tel 49 561 9522 0 Fax 49 561 9522 1
10. Plant Monitoring SUNNY WEBBOX RPC User Manual Remote Procedure Call Description Interfaces and API Definition SWebBoxRPC BA en 14 Version 1 4 SMA Solar Technology AG Table of Contents Table of Contents 1 Intfroduction 5 cere tr s ure SU RETE 5 1 22 Nomenclatura inda 5 1 3 Acronyms and 5 1 4 Referenced Documents and 5 2 System Overview 254 gt 02554 4 6 21 Sunny WebBox RPG eee x Ra 6 2 2 Differences between Sunny WebBox and Sunny WebBox with Bliteloollis tate e ev edt tdm M 6 3 JavaScript Object 7 24 Examples autos oy bm eem e HOMO Ro EXAM ORE 7 4 Procedure 5 9 4 1 Proc dure Call 9 42 Return Value 10 AZ JSON A cites abus moet hO a hon aidan esses 10 43 Guerrera s i LES ER AREA 10 5 Interfaces iii RR Cae RE RES 11 51 RPC 11 572 RAE Vict A P of ca 11 6 Object 12 Device Object igo
11. Structure RPC version 1 0 proc GetParameter id ID format FORMAT passwd PASSWORT params DEVICES key DEVICE_KEY channels CHANNELS A list with the device objects whose parameters are to be provided must be transferred as a parameter You can submit a selection of requested parameters to each device If this selection is omitted all parameters will be transmitted PASSWORD 5 coded hash value of the password for the desired access level DEVICES An array containing the device objects for which parameters are to be returned and an optional selection of certain channels DEVICE KEY corresponding device key see Section 6 1 Device Object page 12 CHANNELS array containing the meta names of the required process data The available meta names can be identified with the command RPC GET PROCESS DATA CHANNELS User Manual SWebBoxRPC BA en 14 25 7 Service Procedures Sample request RPC version 1 0 proc GetParameter id 1 format JSON passwd a289fa4252ed5af8e3e9f9bee545c172 params devices key WR715 19 263415747 Sample response RPC version 1 0 id 1 format JSON proc GetParameter result devices key WR21TL06 2000101000 channels min 0 max Z meta Betriebsart 26 SWebBoxRPC BA en 14 SMA Solar Tech
12. ach having one device object see Section 6 1 Device Object page 12 which in turn contains nested device objects RPC totalDevicesReturned 4 devices key SCC250H9 1390148531 name Sunny Central E1 children key SCBFSO16 8945 name Sunny BFS El children null key SMU8b004 2567 name String Monitoring Unit E1 children null key SCC250H9 1390148538 name Sunny Central E2 children User Manual SWebBoxRPC BA en 14 7 3 JavaScript Object Notation SMA Solar Technology AG key SCBFSO16 8956 name Sunny BFS E2 children null key SMU8b004 2534 name String Monitoring Unit E2 children null 8 SWebBoxRPC BA en 14 User Manual SMA Solar Technology AG 4 Procedure Conventions 4 Procedure Conventions All identifiers used are case sensitive This means that Power and power for instance designate two different objects All characters are transmitted using Unicode in UTF 8 format 4 1 Procedure Call Request Each request consists of one serialized JSON object which possesses the following obligatory members version a character sequence which defines the underlying RPC version proc a character sequence which contains the procedure to be called id a random character sequence max 16 characters which serves to assign a response to the request format a character sequence
13. ccess level DEVICES An array containing objects with the device keys of the devices and an array with the CHANNELS whose parameter values are to be set DEVICE KEY corresponding device key see Section 6 1 Device Object page 12 CHANNELS array containing the channel objects to be set for the respective device A list with the available parameter channels can be obtained by means of the command RPC GET PARAMETER CHANNELS Sample request RPC version 1 0 proc SetParameter id 1 format JSON passwd a289fa4252ed5af8e3e9f9bee545c172 params devices key WR21TLO6 2000101000 channels meta Betriebsart value Mpp Betrieb 1 key WR21TL06 2000101001 channels User Manual SWebBoxRPC BA en 14 31 7 Service Procedures meta Betriebsart value Stop 1 1 Sample response RPC version 1 0 format JSON proc SetParameter result devices key WR21TL06 2000101 000 channels min 7 meta Betriebsart options Stop Konstantspg Mpp Betrieb Res Res2 Res3 32 SWebBoxRPC BA en 14 SMA Solar Technology AG User Manual SMA Solar Technology AG 7 Service Procedures 4 Res5 value Mpp Betrieb name Betriebsart M unit key WR21TLO6 2
14. e is the JavaScript Object Notation JSON see Section 3 JavaScript Object Notation page 7 2 2 Differences between Sunny WebBox and Sunny WebBox with Bluetooth i Different representation for Sunny WebBox and Sunny WebBox with Bluetooth The presentation of the plant data transmitted via the RPC interface is different for the Sunny WebBox and the Sunny WebBox with Bluetooth This document only contains sample responses for the Sunny WebBox and none from the Sunny WebBox with Bluetooth You will find a list of measured values and parameters for the Sunny WebBox with Bluetooth in the technical description Measured Values and Parameters at www SMA Solar com Available service procedures Sunny WebBox Sunny WebBox with Bluetooth GET PLANT OVERVIEW RPC_GET_DEVICES RPC GET PROCESS DATA CHANNELS GET PROCESS DATA GET PARAMETER CHANNELS RPC GET PARAMETER i RPC SET PARAMETER E 6 SWebBoxRPC BA en 14 User Manual SMA Solar Technology AG 3 JavaScript Object Notation 3 JavaScript Object Notation A description and explanation of JavaScript Object Notation JSON can be found on the website http www ison org 3 1 Example The following example shows an illustration of a device list It defines an object made up of the values totalDevicesReturned and devices totalDevicesReturned is a figure with the value 4 The array device has 2 fields e
15. evice key see Section 6 1 Device Object page 12 CHANNELS An array containing the meta names of the required process data The available meta names can be identified with the command RPC GET PROCESS DATA CHANNELS 20 SWebBoxRPC BA en 14 User Manual SMA Solar Technology AG 7 Service Procedures Sample request RPC version 1 0 proc GetProcessData id 1 format ISON params devices key WR715 19 263415747 channels null key WRZ15 19 263415748 key WR715 19 263415748 channels Pac Sample response RPC version 1 0 proc GetProcessData id 1 result devices key WR715 19 2634 15747 channels User Manual SWebBoxRPC BA en 14 21 7 Service Procedures SMA Solar Technology AG meta E Total null value 1160 987 unit kWh meta Fac name null value 49 98 Unit Hz meta Zac null value 1 346 unit Ohm key WR715 19 263415748 key WR715 19 263415748 channels meta Pac null value 630 unit W 22 SWebBoxRPC BA en 14 User Manual SMA Solar Technology AG 7 Service Procedures 7 5 RPC GET PARAMETER CHANNELS 7 5 Version 1 0 Returns a list with the meta names of the available parameter channels for a particular device type depending on access level
16. nology AG User Manual SMA Solar Technology AG User Manual options Stop Konstantspg Mpp Betrieb Res Res2 Res3 Res4 Res5 value Mpp Betrieb name Betriebsart M nm unit min 2150 max 2150 meta Plimit value 2150 name Plimit Unit W min O mox 4294900000 meta SMA SN value 2000101000 SMA SN unit min 125 max 600 meta Upv Start value 150 name Upv Start SWebBoxRPC BA en 14 7 Service Procedures 27 7 Service Procedures 28 unit y min 1 max 300 meta T Stop value 4 name T Stop no unit s min 25 400 meta Usoll Konst value 600 name Usoll Konst Unit my min eov max 300 meta T Start value 10 name T Start nou unit s min O max 100 meta Software SRR value 2 name Software SRR unit Version min 0 005 max 4 SWebBoxRPC BA en 14 SMA Solar Technology AG User Manual SMA Solar Technology AG User Manual meta dFac Max value 0 dFac Max unit Hz s min O 7 meta Storage options permanent volatile 5 1 Res2 Res3 Res4 Res
17. os desse a a EE sete he UR ed 12 6 2 Channel Object oo cete Stc A a a Mosis 13 7 Service 14 71 RPC GET PLANT 14 u ua IM eb beak T SD 14 72 RPC GEV DEVICES rtt we Re uba 16 75221 Verion ele E SUE SIT AZAR 16 User Manual SWebBoxRPC BA en 1 4 3 Table of Contents SMA Solar Technology AG 7 3 7 4 7 5 7 6 7 7 GET PROCESS DATA 18 7 331 Version IQ 18 GET PROCESS 20 Version 1 0 ss A A A REA 20 _ _ _ 5 23 7 54 Mersiom eSI eg 23 PARAMETER retos rero tete xD 25 Mersion nce Ad 25 RFC SET PARAMETER cR ee XR RE IRR 30 LAN Version WO aedis RA Ur TURIN RISE 30 SWebBoxRPCBA en 14 User Manual SMA Solar Technology AG 1 Introduction 1 Introduction 1 1 Validity This document applies to the RPC interface of the Sunny WebBox and the Sunny WebBox with Bluetooth Wireless Technology 1 2 Nomenclature In this document the Sunny WebBox with Bluetooth Wireless Technology is referred to as Sunny WebBox with Bluetooth 1 3 Acronyms and Abbreviations API Application Programmers Interface HTTP Hypertext Transfer Pro
18. respective request result the result of the executed procedure as serialized JSON object If due to an error the procedure cannot be executed successfully the error object will be transmitted instead error an object containing a character string with a description of the error encountered If the procedure is executed without errors this object will not be transmitted 4 3 Query Interval The interval between two queries should not be less than 30 seconds 10 SWebBoxRPC BA en 14 User Manual SMA Solar Technology AG 5 Interfaces 5 Interfaces The Sunny WebBox provides two different access options which differ in the implementation effort required and their runtime utilization of resources 5 1 RPC via UDP Stream The procedure call is transmitted to port 34268 of the Sunny WebBox in the usable data part of the UDP protocol Responses are also sent to port 34268 UDP transport requires a relatively low implementation effort on the client side and saves runtime resources For communication beyond the limits of local networks the port will normally need to be opened by the appropriate firewalls 5 2 RPC via HTTP Data exchange takes place by means of the Hypertext Transfer Protocol via a TCP IP connection to the web server port configured in the Sunny WebBox The default setting is port 80 The URL for all requests is http 1P address rpc The IP address in each case is the currently configured IP address of the
19. tocol JSON Javascript Object Notation UDP User Data Protocol URL Uniform Resource Locator RAS Remote Access Service RFC Request for Comment RPC Remote Procedure Call 1 4 Referenced Documents and Sources 1 RFC 4627 The application json Media Type for Javascript Object Notation JSON http www ietf org ric rfc462 7 txt2number 4627 2 JSON RPC 1 1 Working Draft August 2006 http json rpc org wd JSON RPC 1 1 WD 20060807 html 3 Introducing JSON http www json org 4 The MD5 Message Digest Algorithm http www ietf org rfc rfc132 1 1321 User Manual SWebBoxRPC BA en 14 5 2 System Overview SMA Solar Technology AG 2 System Overview 2 1 Sunny WebBox RPC The data loggers Sunny WebBox and Sunny WebBox with Bluetooth continuously record all the data of a PV plant This is then averaged over a configurable interval and cached The data can be transmitted at regular intervals to the Sunny Portal for analysis and visualization Via the Sunny WebBox and Sunny WebBox with Bluetooth RPC interface selected data from the PV plant can be transmitted to a remote terminal by means of an RPC protocol Remote Procedure Call protocol To do this the Sunny WebBox provides a pool of service procedures see Section 6 Object Definitions page 12 that can be accessed from the remote terminal by means of a Remote Procedure Call protocol RPC protocol via a network or RAS connection The data exchange format used her
20. wed by the structure of the request Variable elements are represented by placeholders in upper case characters In this manual the placeholders VERSION FORMAT and ID are not described for each procedure since their meaning has already been described in Section 4 and it is not necessary to differentiate between all procedures here 7 1 GET PLANT OVERVIEW 7 1 1 Version 1 0 Returns an object with the following plant data POWER DAILY YIELD TOTAL YIELD STATUS ERROR Structure RPC version 1 0 proc GetPlantOverview id ID format FORMAT Sample request RPC version 1 0 proc GetPlantOverview id 1 format JSON 14 SWebBoxRPC BA en 14 User Manual SMA Solar Technology AG 7 Service Procedures Sample response RPC version 1 0 proc GetPlantOverview id 1 result overview meta GriPwr name Momentanleistung value 4250 unit W meta GriEgyTdy name Tagesenergie value 45 23 unit kWh meta GriEgyTot name Gesamtenergie value 7821 unit kWh meta OpStt name Status value MPP unit null meta Msg User Manual SWebBoxRPC BA en 14 15 7 Service Procedures name Fehler value null unit null The following data was transmitted Power 4 250 EToday 45 23 kWh ETotal

Download Pdf Manuals

image

Related Search

Related Contents

CITTA` DI TORINO - Bandi on-line  学校給食施設・設備維持管理マニュアル(PDF:291.5KB)  Manuale Installazione Ingecon Hybrid AC Link (IT)  Samsung UN65ES6500F  CLAMTEC - Conservation-restauration - HE-Arc  DB477C - TDJ Australia  Manual de usuario  Manual de instalación fotoceldas BFT  JVC GET0291-002A User's Manual  baie de disques Sun StorEdge 3310 SCSI  

Copyright © All rights reserved.
Failed to retrieve file