BlueTree Master Protocol
BlueTree Master Protocol
MN912078EN, version 6
BlueTree Master
Protocol
Documentation for part number P-SMPR-4401.
For use with SMP Gateway software version 7.0 or later.
All brand and product names appearing in this document are the trademark or registered trademark
of their respective holders.
MN912078EN, version 6
EAS-SA QF-MKT-02 Rev.02
Contents
1 Introduction 1
1.1 Getting Assistance .................................................................................................1
2 Features 3
2.1 Communication .....................................................................................................3
2.2 Supported AT Commands .....................................................................................3
2.3 Supported Report Payload .....................................................................................3
3 Configuration Settings 5
3.1 General Settings ....................................................................................................5
3.2 Analog Input Settings ............................................................................................7
3.3 Binary Input Settings .............................................................................................7
3.4 Binary Output Settings ..........................................................................................8
4 Implementation Details 9
4.1 Related components...............................................................................................9
4.2 Startup Sequence ...................................................................................................9
4.3 Modem Configuration ......................................................................................... 10
4.4 Communication Failure ....................................................................................... 10
4.5 Communication through a NAT-Enabled Router ................................................ 10
5 Troubleshooting 13
Tables
Table 2-1 Supported AT commands ............................................................................................. 3
Table 2-2 Supported report payload subfields .............................................................................. 4
Table 3-1 General settings ............................................................................................................ 7
Table 3-2 Analog input settings .................................................................................................... 7
Table 3-3 Binary inputs settings ................................................................................................... 8
Table 3-4 Binary outputs settings ................................................................................................. 8
Table 5-1 Troubleshooting .......................................................................................................... 13
1 Introduction
This manual provides the information required to install and set up a BlueTree master protocol
component in an SMP Gateway.
This protocol component is used to retrieve I/O information from BlueTree 4000 and 5000 series
modems running firmware BlueX v.2.0 or newer. It can also be used to control outputs of such
devices.
You need to be familiar with the SMP Gateway environment, the master protocol concepts, the
BlueTree Event Reporting Protocol specification and the BlueTree AT commands before
proceeding with this document. You can get this information by reading the following documents:
IO Management and Event Reporting for the BlueTree 4000 and 5000 Series, Version 1.0,
BlueTree Wireless Data Inc.
Protocol Common Concepts Reference Manual, MN912003EN, Eaton.
SMP Gateway User Manual, MN912001EN, Eaton.
Email: [email protected]
Phone: +1.763.595.7775
Toll Free: +1.800.815.2258
Business hours are from 8 a.m. and 5 p.m. CST, Monday to Friday.
2 Features
This chapter enumerates the features provided by the BlueTree master protocol component.
2.1 Communication
The BlueTree master protocol component will use TCP/IP communication links to send AT
commands to configure the BlueTree modems. The modem will also use TCP/IP to send back
event reports to the SMP Gateway
AT Command Description
AT+BDOSET Set Digital Output.
Change the state of the modem outputs (used in control request).
4● Chapter 2: Features
EAS-SA QF-MKT-02 Rev.02
3 Configuration Settings
This chapter enumerates the configuration settings you have to specify for each BlueTree master
protocol instance. The SMP Config software program is generally used to define these settings.
Only the settings specific to the BlueTree protocol are described here. The settings common to all
master protocol components are described in the Cooper Power Systems document
entitled Protocol Common Concepts Reference Manual.
Setting Description
Integrity Report Interval The interval between two consecutive integrity reports. Those reports are
used to refresh analog input values, to verify communication link status and
to detect if the modem lost its configuration.
Setting a short interval will increase the rate at which we receive analog
inputs state but will require more data to be exchanged between the modem
and the SMP Gateway. Setting a long interval will decrease network usage
but analog input values may be inaccurate since they are updated less often.
Range: 1 to 65,000 seconds
Default value: 900 seconds
Report Timeout Time to wait after next expected report before declaring a communication
failure. If such timeout occurs, the BlueTree master will try to reconnect to
the modem to set back its configuration.
For example, if a modem is configured to send integrity report each 900
seconds and this parameter is set to 915,000 milliseconds, the protocol will
declare a communication failure with the device if no report is received in
1,815 seconds.
Range: 1 to 900,000,000 milliseconds
Default value: 915,000 milliseconds
Setting Description
Rx Timeout Timer The amount of time to wait, in milliseconds, for the remote device response
before attempting any retries. This timer is started after AT command
transmissions to the modem.
Setting a short reception timeout may cause the link to operate erratically
(timeout declared even though the response is still coming). Setting a long
reception timeout may cause inefficiencies, with a considerable amount of
bandwidth wasted when communication errors occur.
Range: 350 to 30,000 milliseconds
Default value: 10,000 milliseconds
Rx Retry Count The number of times the master protocol component will try to retransmit an
AT command when a bad response (or no response) is received from the
modem. If that number of retransmissions is reached without receiving a
valid response, a communication failure is declared and an attempt is made to
re-initialize the AT command communication link.
Range: 0 to 10
Default value: 3
Connection Retry Count Maximum number of connection retries to the AT commands TCP/IP port,
before communication with the modem is considered to have failed.
Range: 0 to 14
Default value: 3
Reconnection Delay Delay to wait after a failed connection retry sequence (i.e. maximum
connection retry count reached without success) before attempting a new
connection sequence. This parameter is only used when the AT command
communication link is in “communication failed” state.
Range: 0 to 2,147,483,647 milliseconds.
Default value: 120,000 milliseconds (2 minutes)
GI Retry Delay Delay to wait between modem reconfiguration when the event report
communication link is in "communication failed" state.
In fact, this parameter defines at which interval we send a control request on
the “___ForceGI” binary output of the BlueTree master protocol component
to force the transmission of initialization AT commands to the modem when
there is a problem with the event report reception.
Range: 1 to 1,000,000,000 seconds
Default value: 120 seconds (2 minutes)
Setting Description
Local IP IP address to which event reports will be sent by the modem. If this
parameter is left empty, the system will automatically use the local IP address
of the SMP Gateway configured with this parameter file.
This field is useful to override destination IP address of that modem’s event
reports. For example, if there is a Network Address Translation (NAT)
enabled router between the SMP Gateway and the modem, you might want to
use the public IP address exposed by the router instead of the private SMP
Gateway IP address.
Range: empty or any valid IP address
Default value: empty (automatic)
Local Port TCP/IP port number used on the SMP Gateway to receive event reports
coming from the modem.
By default, a single port number is shared by all BlueTree master protocol
instances, to receive the reports originating from their associated modem. In
that case, the source IP address is used to associate each incoming modem
connection to the right protocol instance.
Range: 1 to 65,535
Default value: 46,810
Setting Description
Label Label used to uniquely identify the analog inputs of the modem.
Labels: PWR (voltage level of positive alimentation)
AI1 (analog input pin #1)
AI2 (analog input pin #2)
AI3 (analog input pin #3)
Setting Description
Label Label used to uniquely identify the digital input or output of the modem.
Labels: DI1 (digital input pin #1)
DI2 (digital input pin #2)
DI3 (digital input pin #3)
DI4 (digital input pin #4)
IGN (ignition sense input)
DO1 (digital output #1)
DO2 (digital output #2)
DO3 (digital output #3)
Setting Description
Label Label used to uniquely identify the digital input or output of the modem.
Labels: DO1 (digital output #1)
DO2 (digital output #2)
DO3 (digital output #3)
4 Implementation Details
the “Local IP” general parameter to override the destination IP address of event reports (see
"General Settings" for more details).
5 Troubleshooting
The following table enumerates solutions to common problems experienced with the BlueTree
master protocol component:
Problem Solution
The SMP Gateway is not This problem can be due to one of the following:
communicating with my
One of the reasons discussed in the Protocol Common
device.
Concepts Reference Manual.
Service TCP port problem: The SMP Gateway cannot connect to the to
the service TCP port of the modem. Be sure the modem service TCP
port number matches the one configured in the TCP/IP connection of
the BlueTree master instance. Also verify the modem’s configuration
to ensure that the service port is accessible by the SMP Gateway.
The BlueTree modem This problem can be due to one of the following:
does not send reports to
Unreachable SMP Gateway: if the SMP Gateway is behind a Network
the SMP Gateway.
Address Translation (NAT) enabled router, the modem might not be
able to reach the SMP Gateway using its local IP address. Either
disable the NAT or reconfigure the system so that event reports get
routed to the SMP Gateway. See section 4.5, “Communication through
a NAT-Enabled Router” for more information on this topic.
The link to my modem This problem can be due to one of the following:
keeps resetting.
One of the reasons discussed in the Protocol Common
Concepts Reference Manual.
Reception timeout problem: The configured Rx Timeout Timer
general setting is too small.