RAK2461 WisNode Bridge IO Lite Quick Start Guide
Prerequisite
Before going through each and every step in the installation guide of the WisNode Bridge IO Lite, make sure to prepare the necessary items listed below:
Hardware
- RAK2461 WisNode Bridge IO Lite
- USB Type-C configuration cable
- Gateway in range
- A Windows/macOS/Linux Computer
Software
IO.Box Desktop is a software application that will allow you to configure the devices from the RAK24XX series. You can download the application from here:
Package Inclusions
Variant for Wall Mounting
- One (1) RAK2461 WisNode Bridge IO Lite (RS485-DIx4-DOx1 or RS485-DOx4)
- One (1) Screw Kit
- One (1) LoRa Antenna
- One (1) Power Adapter
- One (1) USB Cable (Type C to Type A)
- One (1) 4-Pin Terminal Block
- Two (2) 8-Pin Terminal Block
Variant for DIN Rail Mounting
- One (1) RAK2461 WisNode Bridge IO Lite (RS485-DIx4-DOx1 or RS485-DOx4)
- One (1) DIN rail Mounting Kit
- One (1) LoRa Antenna
- One (1) Power Adapter
- One (1) USB Cable (Type C to Type A)
- One (1) 4-Pin Terminal Block
- Two (2) 8-Pin Terminal Block
Installation
RAK2461 allows for two installation methods: wall mounting and DIN rail installation.
Wall Mounting
- Drill the wall corresponding to the device dimensions and insert the anchors in the holes.
- Fix the device to the wall with two tapping screws.
DIN Rail Mounting
- Attach the DIN rail mounting clip on the device with two M3*6 countersink screws.
- Mount the device to the DIN rail.
Connect the RAK2461 to the Device
In this section, we will demonstrate how to use different interfaces on the RAK2461 to connect devices.
For connecting to other devices, read their specific documentation carefully and connect accordingly.
RS485 Sensor Application
In this section, the RK520-02 Soil Moisture, Temperature and Electrical Conductivity Sensor will be used as an example.
- Connect the sensor device to the RAK2461.
Here are the basic communication parameters of the RK520-02 sensor:
Parameter | Definition |
---|---|
Format | 8-bit binary |
Data bit | 8-bit |
Parity | No |
Stop bit | 1 |
Error checking | CRC |
Baud rate | 9600 |
Digital Input Sensor Application
In this section, the DH-ARD631-50 Outdoor Active PIR sensor will be used as an example.
- Have two devices, one transmitter and one receiver.
- The transmitter's POWER(1/2) is connected to the Vout and GND of the bridge.
- The receiver's POWER(2/3) is connected to the 12V_Out and GND of the bridge.
- The receiver's ALARM(5/6) is connected to the DI4 COM and DI4 IN of the bridge.
Digital Output for Switching Application
- You can connect any module or device to the port of the Digital Output as long as it operates on the recommended voltage rating.
Power On the RAK2461
- The RAK2461 device can be powered either by:
- 9-24 VDC input
- USB type-C
The USB type-C port of the device can be used for configuration. Powering the device from the type-C port will not provide power to the sensor connected to Vout but only to the device itself. To power the device and sensor, you should use the 9-24 VDC input of the RAK2461.
Connect the RAK2461 to the IO.Box
-
Download and open the IO.Box application.
-
Connect the RAK2461 to a computer using the USB type-C cable.
NOTE- Note that this will work for the LoRaWAN configuration, but when configuring the sensor you would need to connect the 9-24 VDC power supply in order to provide power to the sensor itself.
- Make sure that the USB type-C cable that you are using supports data transfer and no other serial software is connected to the COM port that RAK2461 uses.
-
Click Connect Device in the IO.Box console.
If an error occurs that shows no device detected, here are some possible causes for that and how to fix it:
- Double-check the quality of the USB cable and if the correct COM port is used.
- Check if other terminal software is active and still connected to the RAK2461.
-
On the IO.Box dashboard screen, you can see information about the devices connected to the PC in the form of a list of connected devices with device models and EUIs. Choose the device that you wish to configure via the Connect button next to it.
-
On the main menu to the left, choose LoRaWAN to configure the LoRaWAN settings as needed. Do not forget to click Save below the changes.
- Device EUI: This is the unique identifier provided by RAKwireless.
- Region: The LoRaWAN region/band.
- Class: The LoRaWAN class (A,B or C).
- Join Mode: Choose between OTAA and ABP according to LoRaWAN protocol.
- Application EUI: Enter the unique identifier for your application.
- Application Key: Enter the unique secure key for your application.
- Confirm Mode: Activate to receive confirmation messages from the network server for each uplink.
- ADR: Enable Adaptive Data Rate allowing the network server to control the data rate for your device.
- DataRate: Manually set the data transmission rate. Lower rates extend coverage but increase transmission time and power usage. Choose based on the distance and signal quality to the gateway.
- TX Power Level: Adjust the transmission power level. The lower the number the higher the power. 0 is the maximum allowed in the selected region and each incrementation of 1 to the number reduces the power by 2 dBm.
- Data Collection Period: Set up the global data report period of the device. Range: 60–86400 in seconds.
- LoRaWAN Status: Indicates the activity of the device in the LoRaWAN network.
Interface Configuration
This section shows the interface configuration references for different applications.
RS485 Interface
RS485 Interface Configuration
- Go to the System tab from the main menu. Enable the DC12 V Output. Note that the power output interface connected to the example sensor is enabled here. Please enable the power output interface that your sensor is actually connected to.
- Go to the RS485 tab from the main menu and configure the interface according to the sensor/device you are connecting to. Do not forget to save your changes. In this tab you will find:
- Baudrate: Select the communication speed for the RS485 interface, measured in bits per second. Choose a rate that matches your device's requirements.
- Databits: Select the number of data bits for each character in the RS485 communication. Typically, options include 7 or 8 bits, depending on your device's protocol requirements.
- Stopbits: Select the number of stop bits used in the RS485 communication. Common options are 1 or 2, depending on your device's data transmission protocol.
- Parity: Select the parity setting for the RS485 interface. Options typically include None for no parity, Even for even parity, or Odd for odd parity. Choose based on your device's communication requirements.
Add Modbus Poll Task
This section shows how to create a polling task with an integer data type. If you need to create a polling task with a raw binary data type, refer to (Optional) Add a Raw Data in Binary Poll Task.
- In the Modbus Poll Task menu click + Add for a new poll. You will see the Polling Task parameters that need to be configured.
- Fill in the relevant fields according to the specific sensor's datasheet. Here we create a temperature polling task as an example.
- Channel ID: Enter the identifier for the polling task. This ID is included in the device’s uplink data to indicate the task.
- Name: Custom name, length: 4-15.
- Device Address: The Modbus slave address in decimal format. Range: 1-254.
- Function Code: The Modbus function code defines this poll's operation.
- Register Address: The address of the register that you wish to access in hexadecimal format.
- Quantity: The number of register addresses that you want to access.
- Data Type: The data type of the Modbus response.
- Scale: To adjust the raw data from the Modbus response to the desired units. For example, to convert kilograms to grams set the scale to X1000.
- Sensor Type: Choose the unit of the data obtained from the Modbus slave device.
- Enable: Enable or disable this polling task.
- Request: Displays the Modbus command generated based on the settings you've selected above. This command will be used to communicate with the Modbus device.
- Response: Displays the response received from the Modbus slave device.
- Value: This shows the data extracted from the Modbus Response is parsed according to the above configuration.
- Uplink Data: Displays the data payload format that will be sent to the server, based on the configuration above.
- Before saving the task click Check for automatic validation.
- Save the polling task.
- Create moisture and EC polling tasks in the same way.
(Optional) Add a Raw Data in Binary Poll Task
- In the Modbus Poll Task menu click + Add for a new poll. You will see the Polling Task parameters that need to be configured.
- Fill in the relevant fields according to the specific sensor's datasheet. Here we create a temperature polling task as an example.
- Channel ID: Enter the identifier for the polling task. This ID is included in the device’s uplink data to indicate the task.
- Name: Custom name, length: 4-15.
- Device Address: The Modbus slave address in decimal format. Range: 1-254.
- Function Code: The Modbus function code defines this poll's operation.
- Register Address: The address of the register that you wish to access in hexadecimal format.
- Quantity: The number of register addresses that you want to access.
- Data Type: The data type of the Modbus response.
- Sensor Type: Choose the unit of the data obtained from the Modbus slave device.
- Enable: Enable or disable this polling task.
- Request: Displays the Modbus command generated based on the settings you've selected above. This command will be used to communicate with the Modbus device.
- Response: Displays the response received from the Modbus slave device.
- Value: This shows the data extracted from the Modbus Response is parsed according to the above configuration.
- Uplink Data: Displays the data payload format that will be sent to the server, based on the configuration above.
- Before saving the task click Check for automatic validation.
- Save the polling task.
- Create moisture and EC polling tasks in the same way.
Digital Input Interface
-
Go to the System tab from the main menu.
-
Enable the DC Vout Output and the DC 12 V Output power outputs. Note that the power output interface connected to the example sensor is enabled here. Please enable the power output interface that your sensor is actually connected to.
- Go to the DI/DO tab. After enabling DI4 and reloading, you will see the input state enabled.
- Port ID: The identifier of the digital input port. You can find the port ID on the device’s enclosure label.
- Channel ID: An identifier of the polling task. The ID will be included in the uplink data to indicate the source of the data.
- Debounce: Set a delay (Range: 50-2000 ms) to stabilize the signal from a switch or button, ensuring only a single action is registered and eliminating false triggers due to contact bounce.
- Input State: Displays this digital input port's status (active or inactive).
- Enable: Toggle to activate the polling task for this port, allowing it to report the port’s state.
Digital Output Interface
- Go to the DI/DO tab from the main menu.
-
Port ID: The identifier of the digital input port. You can find the port ID on the device’s enclosure label.
-
Channel ID: An identifier of the polling task. The ID will be included in the uplink data to indicate the source of the data.
-
Output State: Toggle to change this digital output port's current state (active or inactive).
-
Enable: Toggle to activate the polling task for this port, allowing it to report the port’s state.
- When the output state is enable, the left bulb is supplied, when it is disabled, the right bulb is supplied.
- Enable the Enable button to activate the polling task for this digital output port and report the current state of the port.
Connect the RAK2461 to LoRa Network Server
This section provides you with operation guidance for connecting the RAK2461 to different LoRaWAN network servers.
Built-in Network Server
In this section, the RAK2461 Bridge Lite IO will be connected to an RAKwireless gateway. For the gateway, the built-in LNS will be used.
Set-up the Built-in Network Server
- Start by accessing the gateway. You can see how to do it on the WisGateOS V2 user manual.
- Once logged in, head to the LoRa menu.
- By default, the gateway works as a Built-In Network Server. If not, switch the Work mode to Built-in network server.
Adding Application
- Once the gateway is in Built-in network server mode, head to the Applications tab.
- Click the Add application button or add one now link to add a new application. On the new page, fill in the following information:
- Application name: type a name for the application.
- Application description: optionally you can write a description of the application.
- Application Type: from the drop-down menu select the type of application.
- Unified Application key: all devices will use the same application key. Selecting this option pops up an Application Key field. This value needs to be consistent with the value from the end device. You can type your application key there or use the Autogenerate button to generate one.
The Auto Add Device switch activates the Application EUI field. The device will be automatically added to the application after the application EUI and key verification.
- Separate Application keys – each device will have its own application key. The key is added when registering the device.
- Payload type: from the drop-down, select CayenneLPP payload type and turn on the Only forward data object feature.
- Once set, click Save application to add the application.
- After the application is added, head to the End devices tab. The devices should automatically register upon join request if you are using the Auto Add Device feature. If that’s not the case, click the Add end device button. On the End device information page fill in the following information:
- Activation Mode: choose the activation mode of your device.
- OTAA
- ABP: This mode pops up two additional fields:
- Application Session Key
- Network Session Key
- End device (group) name – the name of the device.
- End device description (optional) – optionally, you can add a description for the device.
- Class – the class of the device.
- Frame Counter width – the width of the frame counter. Leave it as default.
- LoRaWAN MAC Version – the LoRaWAN MAC version.
Adding the Device
-
Once everything is set, click Add end devices to go to the page and add the device.
-
On the Adding end devices page, type the device EUI at the End Device EUI (main) and click Add to “End Devices list”.
- If the EUI is correct, the device will show in the End devices list.
- If the EUI is not correct, the devices will show in the End devices with an error.
- Once the device is added to the End devices list click Add end devices. Confirm you are adding the device.
- After the device has successfully joined the LNS, you will see the LoRaWAN status in the IO.Box console toggles as activated. You might need to refresh the page.
Wait a while and you will see the uplink data from the LoRaWAN network.
The following is an example of RS485 application uplink data. The format of the uplink message would be as follows:
01 + 67(tem) + 00e1(Hex) 22.5(Dec) 22.5℃ 02 + 70(RH) + 01d5(Hex) 469(Dec) 46.9%
03 + 7f(EC) + 000128e0(Hex) 76000(Dec) 76.000us/cm