background image

7

Advanced Operation:

All messages are encapsulated in standard XML format.  As per XML standard, It 
is required that the XML version declaration be included at the start of each mes-
sage.  Messages that do not conform to the standard will be ignored.  In addition 
to the XML version declaration, every message must also specify the type of de-
vice (model) and its unique MAC ID (mac) in its root element using the <device> 
tag.  For M4000-PRO, device class is “m4000” and the MAC is expressed with no 
formatting.  An example message would thus look like:

<?xml version=”1.0” ?><device class=”m4000” id=”1065a3030000”>…</
device>

This would be considered the “envelope” for all messages, where the “…” is to 
be considered the “contents” of the message.

Example Event Message

Event message for outlet bank 3 switched ON

<?xml version=”1.0” ?>
<device class=”m4000” id=”1065a30000”>
<event time=”1403729752”>
<settings time=”1403729752”>
<outlet id=”3”>1</outlet>
</settings>
</event>
</device>

There are three types of messages: event messages, information messages and 
command messages.

Event messages are sent in response to a change of device status or settings.  It 
should be noted that events are not sent in reply to a query.  

Command messages are set to the M4000-PRO to query information, change 
settings or initiate an action. 

Information messages are sent from M4000-PRO in response to a query com-
mand.  

Examples of the message format are provided in the table below.  

Example Command Message

Command to switch outlet bank 2 OFF

<?xml version=”1.0” ?>
<device class=”m4000” id=”1065a30000”>
<command>
<outlet id=”2”>1</outlet>
</command>
</device>

Example Information Message

Snippet of the response to <sendinfo> query

<?xml version=”1.0” ?>
<device class=”m4000” id=”1065a30000”>
<info time=”1403729752”>
<sernum>12345678</sernum>
<fwver>1.0.1</fwver>
..
</info>
</device>

The following sections document the possible message content and it should be assumed that the contents are always enclosed by the “envelope” and that the “enve-
lope” text will not be repeated, unless needed for clarity.

Action and Queries

Command messages are sent to the M4000-PRO to have it perform a task.  The task can be to perform a physical action such as switching an outlet bank and is referred 
to as an action.  When the task is to transmit data such as device status it is referred to as a query.  Whether the task is an action or query, the message is classified as a 
command.

General Query Element Structure

All query command messages are contained within a <command> element.  The M4000-PRO responds to the query with a set of elements enclosed in the <info>, 
<status> or <settings> element depending on the type of query.  Every query contains a timestamp attribute “time”.  The timestamp is in standard UNIX time, up to 10 
decimal digit characters and represents the number of seconds that have passed since January 1st 1970 GMT.

A sample query and response:  

Query

 

    

Response

<command><sendinfo/></command> 

<info time=”1403729752”>

     <sernum>12345678</sernum>
     <fwver>1.0</fwver>
     <bootcodever>1.0</bootcodever>
     <ipaddr>3194548209</ipaddr>
     </info>

If the command is for an action such as switching an outlet bank, the M4000-PRO will not necessarily provide a response message.  If it is desired to receive an acknowl-
edgement of receiving the command, the optional “xid” attribute may be included in the <command> element.  Command messages with the “xid” attribute expressed 
will return an acknowledgement enclosed in an <ack> element. 
 
For example, when the message
<?xml version=”1.0” ?><device class=”m4000” id=”1065a3030000”><command xid=”123”><outlet id=”1”>0</outlet></command></device>

Is received by the M4000-PRO, it will respond with
<?xml version=”1.0” ?><device class=”m4000” id=”1065a3030000”><ack xid=”123”></device>

Summary of Contents for M4000-PRO

Page 1: ...VOLTAGE BlueBOLT M4000 PRO ENABLED Power Management with Control System Interactive Functionality 15 Amp Capacity M4000 PRO 7 Rear Panel Outlets and One Front Panel Convenience Outlet in 3 Controlabl...

Page 2: ...Instructions Front Panel Features Overview pg 2 Rear Panel Features Overview Bubble of Protection pg 3 BlueBOLT Setup Registration Trouble Shooting pg 4 OutletSequencingandM4000 PROSpecifications pg 5...

Page 3: ...oduct circuit break ers The M4000 PRO is designed to eliminate these transients by providing a start up delay for the Bank 3 outlets and a shut down delay for the other Outlet Banks This minimizes inr...

Page 4: ...in or moisture does not operate normally or has been dropped 12 Where the power cord is used as the main disconnect device the discon nect device shall remain readily accessible 13 This device must be...

Page 5: ...at 5e RJ 45 8P8C 10 100 1000BASE T compatible PoE compat ible 8 DC Trigger input 3 5mm mono jack 5 24VDC tip ring When a phone plug is connected to the DC trigger applied voltage on the trigger input...

Page 6: ...one DSL line from the M4000 PRO back to modem router s input Step 4 Connect Ethernet cablefrom router modem to BlueBOLT input on M4000 PRO Step 5 Plug in M4000 PRO SYSTEM SETUP 2 Network Equipment NOT...

Page 7: ...n the DC trigger input going from 0V to 5 24VDC or by the sequence com mand received on the Ethernet port When the M4000 PRO is powered up recovering from an over voltage shutoff or recovering from an...

Page 8: ..._______ __________________________________________ __________________________________________ __________________________________________ __________________________________________ ____________________...

Page 9: ...rnum 12345678 sernum fwver 1 0 1 fwver info device The following sections document the possible message content and it should be assumed that the contents are always enclosed by the envelope and that...

Page 10: ...Core Brands use only Query sendsettings Response settings Time stamp of the data provided in UNIX time time timestamp delay id bank Delay for outlet bank bank act action Action 0 turn off delay 1 turn...

Page 11: ...Outlet Bank Command an outlet bank to turn OFF wait for its power cycle delay time and then turn back ON Command cycleoutlet Power cycle an outlet bank Attribute id bank Which outlet bank to control C...

Page 12: ...Outlet Bank Delays Command set delay Set delay settings for an outlet bank Attribute id bank Set delay settings for an outlet bank act 0 1 2 Action 0 OFF delay 1 ON delay 2 Power cycle delay Content d...

Page 13: ...DDR PORT eventmgr commands General Event Element Structure All event messages are contained within an event element which will contain a timestamp attribute time and an event ID attribute evtid The ti...

Page 14: ...2 delay Outlet bank 1 power cycle delay 12 sec triggerena id 1 triggerena Outlet bank 1 trigger enabled brightness 2 brightness Brightness level 2 out of 5 max set Settings Changed A Settings Changed...

Page 15: ...ction Fired event is posted when the M4000 PRO performs a scheduled operation 13 The day element contains the daysofweek value for the days of the week the action is scheduled to fire This element is...

Page 16: ...nto an outlet on a circuit different from that to which the receiver is connected 4 Consult the dealer or an experienced radio TV technician for help Any special accessories needed for compliance must...

Reviews: