SB020100 - Smart Bridge LoRaWAN - MODBUS 2. SAFETY PRECAUTIONS General considerations: • Incorrect handling or installation of the unit may result in injury to personnel as well as damage to the unit or other equipment associated with the system.
SB020100 - Smart Bridge LoRaWAN - MODBUS 3. OVERVIEW Modbus protocol is one of the communication standards more extended in the industrial sector. It is easy to find many applications with devices which integrate this protocol like energy meters, programmable logic controllers (PLCs), sensors and so on.
Page 5
SB020100 - Smart Bridge LoRaWAN - MODBUS Figure 3. Status and configuration parameters can be obtained using the NFC technology in smartphones and SmatrBridge Tool app UMAOC003 Rev E USER MANUAL Page 4 of 38...
SB020100 - Smart Bridge LoRaWAN - MODBUS 4. INSTALLATION 4.1. Electrical diagram Figure 4. Diagram connection for SmartBridge in the RS485 Modbus Network 4.2. Connectors J8.1 J8.2 J8.3 J8.4 J8.5 Figure 5. Connectors location in SmartBridge circuit UMAOC003 Rev E...
Page 7
SB020100 - Smart Bridge LoRaWAN - MODBUS Connector Description Electrical value position J8.1 Not used J8.2 Not used J8.3 RS485 communication output – signal A From -7V to +12V J8.4 RS485 communication output – signal B From -7V to +12V J8.5...
SB020100 - Smart Bridge LoRaWAN - MODBUS 5. COMMISSIONING 5.1. NFC connectivity First step is to configure the equipment to register it in the LoRaWAN network and define the Modbus parameters which must be monitored by the SmartBridge. By default LoRaWAN communication and Modbus parameters are the values used during manufacturing process to guarantee SmartBridge works correctly for delivering to final customer.
SB020100 - Smart Bridge LoRaWAN - MODBUS 5.2. Setting LoRaWAN communication parameters 5.2.1. Understanding SmartBridge LoRaWAN profile class SmartBridge can be integrated in a LoRaWAN network as a class A device. It means the device implement a bi-directional communication profile in which the data sent by server only can be received by the node after performing an uplink transmission.
Page 10
SB020100 - Smart Bridge LoRaWAN - MODBUS Application EUI (AppEUI) This parameter is used in OTAA method. It identifies the application during JOIN request. The length is 8 bytes. Application KEY (AppKey) This parameter is used in OTAA method. It encrypts data during the JOIN request. The length is 16 bytes.
Page 11
SB020100 - Smart Bridge LoRaWAN - MODBUS Table for US915 DataRate Configuration Indicative physical bit rate [bit/s] SF10 / 125kHz SF9 / 125kHz 1760 SF8 / 125kHz 3125 SF7 / 125kHz 5470 (visit https://lora-alliance.org/resource-hub/lorawanr-regional-parameters-v102rb for other regions) Tx Power The output power can be adjusted according to tables below depending on the region (EU868, US915 or AS923).
SB020100 - Smart Bridge LoRaWAN - MODBUS Tx Port SmartBridge port for data transmission. Values from 1 to 223 Rx Port SmartBridge port for data reception. Values from 1 to 223 5.3 Modbus parameters settings 5.3.1 Modbus serial RTU protocol overview Modbus serial RTU is a half-duplex communication protocol which is based on request and answer.
Page 13
SB020100 - Smart Bridge LoRaWAN - MODBUS If Data Type is configured as 0 (Integer 16 bits) then the SmartBridge gets the value of the register defined by “Register address” setting. The value sent in the uplink frame is the same obtained from the slave device.
SB020100 - Smart Bridge LoRaWAN - MODBUS Data format Data length, parity and stop bits defines the format of the Modbus communication data. The values allowed are shown in the table below. Format Data length Parity Stop bits 8 bits...
SB020100 - Smart Bridge LoRaWAN - MODBUS 6. OPERATION SmartBridge is a smart Modbus - LoRaWAN protocol adapter which is powered by batteries. To preserve the battery life, it is very important to reduce the power consumption when equipment is not carrying out any task, therefor the SmartBridge enters in sleep mode.
Page 16
SB020100 - Smart Bridge LoRaWAN - MODBUS Example 1 – all parameters enabled Figure 11. Modbus communication management example 1 Example 1 – parameters from 5 to 12 disabled Figure 12. Modbus communication management example 2 UMAOC003 Rev E USER MANUAL...
Page 18
SB020100 - Smart Bridge LoRaWAN - MODBUS If parameter X was defined as type integer (16 bits) then the value of the parameter can be obtained in the way: vX_hi. High part (8 bits) of the value of the parameter X vX_lo.
SB020100 - Smart Bridge LoRaWAN - MODBUS 7.1.2. UPLINK 01 (Reading data type and address of the requested group of Modbus registers) After receiving the command from the server requesting the addresses of a group of registers SmartBridge will perform in 3 minutes an uplink with this info. The format of the payload is described below...
SB020100 - Smart Bridge LoRaWAN - MODBUS 7.1.3. UPLINK 02 (Reading slave address and function of the requested group of Modbus registers) After receiving the command from the server requesting the slave addresses and the Modbus function of a group of registers SmartBridge will perform in 3 minutes an uplink with this info. The format of the payload is...
SB020100 - Smart Bridge LoRaWAN - MODBUS 7.1.4. UPLINK 03 (Serial Modbus RS485 settings) After receiving the command from the server requesting the Modbus serial communication settings SmartBridge will perform in 3 minutes an uplink with this info. The format of the payload is described below...
SB020100 - Smart Bridge LoRaWAN - MODBUS 7.1.5. UPLINK 04 (SmartBridge status) After receiving the command from the server requesting the device status SmartBridge will perform in 3 minutes an uplink with this info. The format of the payload is described below...
SB020100 - Smart Bridge LoRaWAN - MODBUS 7.2.5. DOWNLINK 06 (Configure Uplink period) byte 1 byte 2 byte 3 tt_hi tt_lo tt. Type of frame (06 - Configure uplink time period) tt_hi. High part of the value to configure the slot time between uplinks tt_lo.
SB020100 - Smart Bridge LoRaWAN - MODBUS 7.2.6. DOWNLINK 07 (Configure Time and Date for the SmartBridge) byte 1 byte 2 byte 3 byte 4 byte 5 byte 6 byte 7 byte 8 tt. Link type of configuration (07. Time and date adjustment) hh.
SB020100 - Smart Bridge LoRaWAN - MODBUS 7.2.7. DOWNLINK 08 (Next data request for uplink) byte 1 byte 2 byte 3 tt. Type of frame (08 - Next data request for uplink) nd. Data Type for next uplink: 00 - Read values from registers of the slave devices in the Modbus network ...
SB020100 - Smart Bridge LoRaWAN - MODBUS 8. TROUBLESHOOTING Problem Cause → Solution Device doesn’t work · Low battery or defective batteries → Replace batteries · Wrong battery replacement → Ensure battery polarity · SmartBridge in deep sleep mode → Tap the SmartBridge with a smartphone with NFC interface enabled.
SB020100 - Smart Bridge LoRaWAN - MODBUS 9. MAINTENANCE AND TECHNICAL SERVICE If the device is going to be switched off for a long time it is recommended to send “Reset Communications” command through Android application tool. If the SmartBridge is not able to join with any LoRaWAN network then after five attempts of joining the device will be enter in deep sleep mode.
Page 32
SB020100 - Smart Bridge LoRaWAN - MODBUS 1. Disconnect SmartBridge from external sensors 2. Remove screws from housing 3. Remove housing from the cover. Be careful with internal antenna cable and wire connectors 4. Connect communication cable to programming connector and press the reset button. GND pin cable must be connected in pin 1 of the circuit connector Figure 13.
SB020100 - Smart Bridge LoRaWAN - MODBUS 10. TECHNICAL FEATURES Power supply Type 2x Type C battery Voltage 3.6V Maximum pulse current 2500mA Capacity 2x 6000mAh Expected battery life 10 years (*) (*) Conditions: 5 uplinks transmissions per day ...
Page 34
SB020100 - Smart Bridge LoRaWAN - MODBUS NFC communication Frequency 13.56MHz Interface Passive NFC Memory access Read - allowed Write - allowed Internal sensor Housing temperature Range: -20ºC...+60ºC Resolution: 0.5ºC Modbus communication Type Modbus RTU Physical link RS485 2 wires (A - B) and shield connection optional...
SB020100 - Smart Bridge LoRaWAN - MODBUS 11. PRODUCT REGULATIONS SmartBridge is a product in conformity with the following directives RED Directive (2014/53/EU) Emissions EN 301 489-3 Radiated Emissions EN 55032 V2.1. Immunity EN 301 489-3 Electrostatic discharges EN61000-4-2 V2.1.
SB020100 - Smart Bridge LoRaWAN - MODBUS 12. TRADEMARKS All referenced brands, product names, services names and trademarks are the property of their respective owners. UMAOC003 Rev E USER MANUAL Page 35 of 38...
SB020100 - Smart Bridge LoRaWAN - MODBUS 13. GUARANTEE AONCHIP guarantees its products against any manufacturing defect for two years after the delivery of the units. AONCHIP will repair or replace any defective factory product returned during the guarantee period.
SB020100 - Smart Bridge LoRaWAN - MODBUS 14. DOCUMENT HISTORY Rev. Date Changes 05-Aug-2019 First edition 08-Aug-2019 Included new functionality to get float values from the Modbus slaves 21-Jul-2020 Included new functionality. Modbus registers management up to 20 registers 24-Feb-2021...
Need help?
Do you have a question about the SB020100 and is the answer not in the manual?
Questions and answers