Do you have a question about the RAVEn and is the answer not in the manual?
Questions and answers
Summary of Contents for Rainforest Automation RAVEn
Page 1
RAVEn™ Radio Adaptor for Viewing Energy XML API Manual Version 1.27 March 2013 www.rainforestautomation.com...
Page 2
Except as expressly provided in any written license agreement from Rainforest Automation, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property.
RAVEn™ XML API Manual RAVEn™ – Radio Adapter for Viewing Energy RFA-Z106 Version 1.27 XML API Manual Table of Contents OVERVIEW ........................5
RAVEn™ XML API ...................... 5
Communications Model ....................5
Data Structures ......................6
...
RAVEn™. Communications Model The RAVEn™ is a USB device; the USB port is mapped to a virtual serial port, which shows up as a standard COM port. Applications that can connect to a COM port can also connect to the RAVEn™.
XML API Manual Data Structures The RAVEn™ sends and receives data as a serial stream. The data is structured as XML Fragments. An XML Fragment is a stripped down XML Element. The RAVEn™ uses XML Fragments to simplify the parsing of the data stream, while providing a data structure that is flexible and human readable.
Page 7
The first element of every notification is always the MAC ID of the RAVEn™ that generated the notification. Note: the RAVEn™ does not send or require the MAC ID of the meter when in single meter operation. This may change in the future. For multiple meters, the meter MAC ID will always be required.
RAVEn™ XML API Manual Features RAVEN™ XML Fragments are loosely organized as Features, where each Feature is a logical grouping of notifications and commands. The API is organized into these Features: Feature Description RAVEn™ RAVEn™ device specific information Meter Meter specific information...
• 1. Command: INITIALIZE Send the INITIALIZE command to have the RAVEn™ reinitialize the XML parser. Use this command when first connecting to the RAVEn™ prior to sending any other commands. While initialization is not required, it will speed up the initial connection.
The RAVEn™ will send a ConnectionStatus notification in response. <Command> <Name>get_connection_status</Name> </Command> 5. Notify: ConnectionStatus The RAVEn™ will send notifications during the start-up sequence and during the join/re-join sequence. These notifications are useful for diagnostic purposes. <ConnectionStatus> <DeviceMacId>0xFFFFFFFFFFFFFFFF</DeviceMacId> <MeterMacId>0xFFFFFFFFFFFFFFFF</MeterMacId> <Status>{enumeration}</Status>...
8. Command: GET_SCHEDULE Send the GET_SCHEDULE command to get the RAVEn™ scheduler information. The RAVEn™ will send the ScheduleInfo notification in response; or, RAVEn™ will send a series of ScheduleInfo notifications if the Event field is omitted. <Command>...
N: the scheduled event will not execute. 10. Command: SET_SCHEDULE Send the SET_SCHEDULE command to update the RAVEn™ scheduler. The command options include setting the frequency of the command in seconds, and disabling the event. If the event is disabled the frequency is set to 0xFFFFFFFF.
The type of event being scheduled; if omitted, summation | message command applies to all scheduled items. 12. Command: GET_METER_LIST Send the GET_METER_LIST command to get the list of meters the RAVEn™ is connected to. The RAVEn™ will send a MeterList notification in response. <Command> <Name>get_meter_list</Name>...
Getting information about the type of meter and its identifiers • Finding the status of the network connection and the quality of the link • 1. Command: GET_METER_INFO Send the GET_METER_INFO Command to get the meter information. The RAVEn™ will send a MeterInfo notification in response. <Command> <Name>get_meter_info</Name> [<MeterMacId>0xFFFFFFFFFFFFFFFF</MeterMacId>] </Command>...
Y: to start transmitting data to host N: to stop transmitting data to host 3. Command: GET_NETWORK_INFO Send the GET_NETWORK_STATUS Command to get the status of device on the network. The RAVEn™ will send a NetworkInfo notification in response. <Command> <Name>get_network_info</Name> </Command>...
Meter nick name Account Text; Optional Account Identification Auth Text; Optional Authentication code Host Text; Optional Hosting Provider Enabled Y | N; Optional Y: to start transmitting data to host N: to stop transmitting data to host Rainforest Automation, Inc.
Notify what the time is on a smart meter • Ask for the latest time from a smart meter • 1. Command: GET_TIME Send the GET_TIME command to get the current time. The RAVEn™ will send a TimeCluster notification in response. <Command> <Name>get_time</Name> [<MeterMacId>0xFFFFFFFFFFFFFFFF</MeterMacId>] [<Refresh>{enumeration}</Refresh>]...
Message notifications when a smart meter receives a message • Message confirmation by the User • 1. Command: GET_MESSAGE Send the GET_MESSAGE command to have the RAVEn™ get the current text message. The RAVEn™ will send a MessageCluster notification in response. <Command> <Name>get_message</Name> [<MeterMacId>0xFFFFFFFFFFFFFFFF</MeterMacId>] [<Refresh>{text}</Refresh>]...
Cancel Pending: Indicates message is in cancel pending queue 3. Command: CONFIRM_MESSAGE Send the CONFIRM_MESSAGE command to have the RAVEn™ confirm the message as indicated by the ID. To verify that the message confirmation was sent, use a GET_MESSAGE command with Refresh=Y.
The Price field is an integer; the Trailing Digits field indicates where the decimal place goes (i.e., the divisor). The user-defined price will override the meter price. Setting the user-defined price to zero will clear the user entered price in the RAVEn™, and the meter price will be used, if available.
PriceCluster notification provides the current price in effect on the meter, or the user-defined price set on the RAVEn™. If the user-defined price is set, the meter price is ignored. If the user- defined price is not set and the meter price is not set, then the price returned is zero. Either the TierLabel or the RateLabel, or neither, may be provided;...
Last Period Summation notification from the RAVEn™ • Fast Poll mode allows the RAVEn™ to return almost real time data readings from the • smart meter; usually for when the User wants to see the effect of turning something on or off.
Send the GET_INSTANTANEOUS_DEMAND command to get the demand information from the RAVEn™. Set the Refresh element to Y to force the RAVEn™ to get the information from the meter, rather than its local cache. The RAVEn™ will send an InstantaneousDemand notification in response.
Send the GET_CURRENT_SUMMATION_DELIVERED command to get the summation data from the RAVEn™. Set the Refresh element to Y to force the RAVEn™ to get the data from the meter, rather than its local cache. The RAVEn™ will send a CurrentSummationDelivered notification in response.
CurrentPeriodUsage notification provides the total consumption for the current accumulation period, as calculated by the RAVEn™. The Multiplier and Divisor are used to calculate the actual decimal value from the CurrentPeriod, which is an integer. If the Multiplier and Divisor are Zero, then ignore them for calculation purposes (i.e., treat them as a value of one).
UTC Time of the start of the current period data accumulation 7. Command: GET_LAST_PERIOD_USAGE Send the GET_LAST_PERIOD_USAGE command to get the previous period accumulation data from the RAVEn™. The RAVEn™ will send a LastPeriodUsage notification in response. <Command> <Name>get_last_period_usage</Name> [<MeterMacId>0xFFFFFFFFFFFFFFFF</MeterMacId>] </Command>...
8. Notify: LastPeriodUsage LastPeriodUsage notification provides the total consumption for the previous accumulation period as calculated by the RAVEn™. The Start Date and End Date are UTC timestamps indicating the start and end times that define the previous period. <LastPeriodUsage>...
XML API Manual 10. Command: SET_FAST_POLL Send the SET_FAST_POLL command to have the RAVEn™ set the fast poll mode on the meter. In fast poll mode, the meter will send Instantaneous Demand updates at the frequency requested. This is a ZigBee Smart Energy 1.1 feature.
XML API Manual 12. Notify: ProfileData The RAVEn™ sends the ProfileData notification in response to the GET_PROFILE_DATA command. It provides a series of interval data as recorded by the meter. The interval data was captured with a periodicity specified by the ProfileIntervalPeriod field. The content of the interval data depends on the type of information requested using the IntervalChannel field in the GET_PROFILE_DATA command.
Need help?
Do you have a question about the RAVEn and is the answer not in the manual?
Questions and answers