King Pigeon BL102 User manual

Page 2 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
Preface
Thanks for choosing King Pigeon PLC Modbus IOT Gateway BL102. Reading this manual with full
attention will help you quickly learn device functions and operation methods.
Copyright
This user manual is owned by King Pigeon Communication Co., Ltd. No one is authorized to copy,
distribute or forward any part of this document without written approval of King Pigeon. Any violation
will be subject to legal liability.
Disclaimer
This document is designed for assisting user to better understand the device. As the described
device BL102 is under continuous improvement, this manual may be updated or revised from time to
time without prior notice. This PLC Gateway is mainly used for industrial data transmission over
Ethernet or 4G network. Please follow the instructions in the manual. Any damages caused by
wrong operation will be beyond warranty.
Revision History
Revision Date
Version
Description
Owner
July 8, 2021
V1.0
Initial Release
HYQ
1 Gateway Introduction..............................................................................................................................6

Page 3 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
General Description......................................................................................................................... 6
Application Illustration......................................................................................................................7
Packing List....................................................................................................................................... 7
Features...........................................................................................................................................10
Technical Parameters.................................................................................................................... 11
Model Selection.............................................................................................................................. 13
2 Hardware Introduction.......................................................................................................................... 14
Outline Dimension.......................................................................................................................... 14
Power Source Interface.................................................................................................................15
SIM & SD Card Slots..................................................................................................................... 15
Debugging & Upgrading Interface............................................................................................... 15
Gateway Grounding....................................................................................................................... 15
4G Antenna Interface.....................................................................................................................16
LED Indicator.................................................................................................................................. 16
Reset Button....................................................................................................................................17
COM Port & Power Output Interface...........................................................................................17
WAN & LAN Ports........................................................................................................................ 18
3 Gateway Mounting................................................................................................................................ 18
Wall-Mounting................................................................................................................................. 19
DIN Rail Mounting.......................................................................................................................... 19
4 Configuration Software Introduction...................................................................................................19
Login to Configuration Software...................................................................................................19
4.1.1 Open Configuration Software............................................................................................... 20
4.1.2 Search for Devices.................................................................................................................20
4.1.3 Connecting Gateway............................................................................................................. 21
Configuration Software Introduction............................................................................................ 22
4.2.1 System..................................................................................................................................... 22
4.2.2 COM Port Configuration........................................................................................................ 24
4.2.2.1 COM Port Attribute Configuration.................................................................................24
4.2.2.2 Add COM Port Connected Device................................................................................25
4.2.2.3 Add COM Port Device Datapoint.................................................................................. 26

Page 4 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
4.2.3 LAN Port Configuration......................................................................................................... 28
4.2.3.1 LAN Port Attribute Configuration.................................................................................. 28
4.2.3.2 Add Device to LAN Port................................................................................................. 29
4.2.3.3 Add LAN Port Device Datapoint................................................................................... 31
4.2.4 WAN Port Configuration........................................................................................................ 31
4.2.4.1 WAN Port Attribute Configuration................................................................................. 31
4.2.4.2 Add Device to WAN Port................................................................................................32
4.2.4.3 Add WAN Port Device Datapoint.................................................................................. 33
4.2.5 4G Network Introduction....................................................................................................... 34
4.2.6 Alarms and Events Configuration........................................................................................ 34
4.2.6.1 Alarm Point Configuration.............................................................................................. 35
4.2.6.2 Alarm Event Configuration.............................................................................................36
4.2.7 Task Plan Configuration........................................................................................................ 37
4.2.8 Data Service............................................................................................................................38
4.2.8.1 Transparent Transmission............................................................................................. 38
4.2.8.2 Modbus RTU to Modbus TCP....................................................................................... 39
4.2.8.3 Modbus TCP Server....................................................................................................... 40
4.2.8.4 OPC UA............................................................................................................................ 42
4.2.9 Cloud Platform........................................................................................................................ 43
4.2.9.1 MQTT Client One............................................................................................................ 43
4.2.9.2 MQTT Client Two............................................................................................................ 45
4.2.9.3 Alibaba Cloud...................................................................................................................45
4.2.9.4 HUAWEI Cloud................................................................................................................47
4.2.9.5 AWS Cloud....................................................................................................................... 50
4.2.9.6 King Pigeon Cloud via MQTT....................................................................................... 52
4.2.9.7 King Pigeon Cloud via Modbus.....................................................................................55
5 Gateway BL102 Application Example................................................................................................57
FX3U & S7-200SMART Connect to Gateway BL102...............................................................57
Configuration Software.................................................................................................................. 58
5.2.1 Add Device and Datapoint.................................................................................................... 58
5.2.1.1 COM Port Configuration.................................................................................................58

Page 5 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
5.2.1.2 Add COM Port Device-Mitsubish PLC FX3U..............................................................59
5.2.1.3 Add FX3U Datapoints.....................................................................................................59
5.2.1.4 LAN Port Configuration.................................................................................................. 60
5.2.1.5 Add LAN Port Device-Siemens PLC S7-200SMART................................................ 62
5.2.1.6 Add LAN Port Device PLC S7-200SMART Datapoints.............................................62
5.2.2 Upload PLC FX3U & S7-200SMART Data to Cloud.........................................................63
5.2.2.1 Modbus TCP Server Configuration.............................................................................. 64
5.2.2.2 View Data in KEPServerEX 6....................................................................................... 64
5.2.2.3 OPC UA Configuration................................................................................................... 67
5.2.2.4 View Data in KEPServerEX 6....................................................................................... 67
5.2.2.5 Alibaba Cloud Configuration..........................................................................................69
5.2.2.6 View Data in Alibaba Cloud........................................................................................... 70
5.2.2.7 HUAWEI Cloud Configuration....................................................................................... 72
5.2.2.8 View Data in HUAWEI Cloud........................................................................................ 74
5.2.2.9 AWS Cloud Configuration.............................................................................................. 76
5.2.2.10 View Data in AWS Cloud............................................................................................. 77
5.2.2.11 King Pigeon Cloud via Modbus Configuration..........................................................79
5.2.2.12 View Data in King Pigeon Cloud via Modbus...........................................................79
5.2.2.13 King Pigeon Cloud via MQTT Configuration............................................................ 82
5.2.2.14 View Data in King Pigeon Cloud via MQTT..............................................................82
5.2.2.15 King Pigeon Cloud MQTT Data Format.................................................................... 84
6 Firmware Upgrading............................................................................................................................. 87
7 Warranty Terms.....................................................................................................................................88
8 Technical Support................................................................................................................................. 88

Page 6 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
1 Gateway Introduction
General Description
BL102 is a Gateway that collects Siemens, Mitsubishi, Omron, Delta,Allen-Bradley and Schneider
PLC data and converts to Modbus TCP, OPC UA, MQTT, HUAWEI Cloud, AWS, Alibaba Cloud, King
Pigeon Cloud protocols
It’s developed on embedded Linux operation system with high stability and various interfaces,
1RS485(optional RS232), 2 power inputs, 1 power output, 2 RJ45 Ethernet ports, 2 USB port, 1 SIM
card slot and 1 SD card slot. With 4G cellular and Ethernet network, it features with high speed and
low latency data transmission.
From downlink it supports various PLCs like Siemens, Mitsubishi, Omron, Delta, Allen-Bradley,
Schneider,etc. From uplink it supports Modbus TCP, MQTT, OPC UA, HUAWEI Cloud, Alibaba Cloud,
AWS, ThingsBoard, King Pigeon cloud, etc. Users can quickly connect many different industrial
equipment to cloud platforms, SCADA, OPC UA, MES and other master computers. Devices can be
online in various cloud platforms and master computers simultaneously.
With TSL/SSL encryption, routing function and cascaded switch data collection, it can be used in
most of industrial application scenarios for secure data acquisition and remote monitoring purpose.

Page 7 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
Application Illustration
Packing List
Before using Gateway BL102, please make sure below parts are included in the package:
(Below pictures are for reference only. If any discrepancy, please follow real products)
1x Gateway BL102

Page 8 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
1x 4PIN 3.5mm Wiring Terminal for power input
1x 5PIN 3.5mm Wiring Terminal for RS485 or RS232 power output
1 x 4G SMA Cellular Network Antenna
2 x Wall-Mount Clip Kit

Page 9 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
1 x DIN-Rail Mount Clip Kit
1 x User Manual (PDF soft copy)
(Note: Scan QR code to download the user manual)
1 x SIM Card Picking Pin
1 x Product Qualification Certificate
1 x Warranty Card
Note: if any items are missing, please contact King Pigeon sales representative.

Page 10 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
Features
Downlink supports: Siemens, Mitsubishi, OMRON, Delta, Allen-Bradley, Schneider and other
PLCs
Uplink supports: Modbus TCP, MQTT, OPC UA, HUAWEI Cloud, Alibaba Cloud, AWS,
ThingsBoard Cloud, King Pigeon Cloud, etc.
DC 9-36V wide power voltage input with wiring terminal. There’re 2 channels of power input
redundancy design with inverse connection protection. Either channel can be selected.
1 power output, output voltage is equal to input voltage.
1 RS485/ (optional RS232) serial port input
Serial port baud rate 2400bps-115200bps; stop bit supports 1, 2 bits; data bit supports 7,8 bits;
parity bit supports None, Odd, Even.
2 RJ45 ports for Ethernet connection, 1 WAN and 1 LAN. Data can be collected from devices
connected to WAN and LAN port or cascaded switch devices. Network link and rate indicators
are available. Built-in isolation transformer with up to 2KV electromagnetic insulation.
Support POE PD (Powered Device) for saving wiring cost (Optional function).
Support TSL\SSL data encryption for security.
Support routing function to provide network for other devices.
Support 4G cellular network and APN setting. Ethernet network will be used if it’s available. It will
shift to 4G network automatically if Ethernet is not available.
Support Modbus RTU to Modbus TCP and transparent transmission.
Support RESET button for returning to factory settings (Long press the button until RUN indicator
off with power) to avoid wrong parameter settings.
Support software and hardware watchdog for high reliability.
Metal case with IP30 protection grade. Metal case and system are safely isolated, especially
suitable for industrial site applications.
Compact device size: 30mm*83mm*110mm, support wall-mounting and DIN-Rail mounting.

Page 11 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
Technical Parameters
Item
Parameter
Description
System
Processor
ARM9, clock speed 300Mhz
Storage
128MB( scalable to 1G)
Flash Memory
64MB
Power
Source
Input Voltage
DC 9~36V
Power
Consumption
Normal: 85mA@12V, max 117mA@12V
Wiring
Support Inverse Connection Protection
Ethernet Port
Interface Spec
2 x RJ45, 10/100Mbps, adaptive MDI/MDIX
Port Protection
ESD ±16kV (contact), ±18kV (air),
EFT 40A (5/50ns),
Lightening 6A (8/20µs)
Serial Port
Serial Port Qty
1 x RS485/ optional RS232
Baud Rate
2400bps-115200bps
Data Bit
7, 8
Parity Bit
None, Even, Odd
Stop Bit
1, 2
Port Protection
ESD ±8kV (contact), ±15kV (air)
EFT 2KV, 40A (5/50ns)
Power Output
Output Voltage
1 channel DC 9~36 V power output
(Output voltage is equal to input voltage)
SIM Card
Qty
1 SIM Card Slot
Spec
Drawer type slot, support 1.8V/3V SIM/UIM card
(NANO)
Protection
Built-in 15KV ESD Protection
SD Card
Qty
1 SD Card slot reserved for future development
USB Port
Qty
1*program downloading+1* program debugging
Spec
Micro USB OTG
Protection
Over Current Protection
4G Network
(Optional)
Antenna Qty
1
Antenna Type
SMA Hole Type
L-E version
GSM/EDGE:900,1800MHz
WCDMA:B1,B5,B8
FDD-LTE:B1,B3,B5,B7,B8,B20
TDD-LTE:B38,B40,B41
L-CE version
GSM/EDGE:900,1800MHz

Page 12 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
WCDMA:B1,B8
TD-SCDMA:B34,B39
FDD-LTE:B1,B3,B8
TDD-LTE:B38,B39,B40,B41
L-A version
WCDMA:B2,B4,B5
FDD-LTE:B2,B4,B12
L-AU version
GSM/EDGE:850,900,1800MHz
WCDMA:B1,B2,B5,B8
FDD-LTE:B1,B3,B4,B5,B7,B8,B28
TDD-LTE:B40
L-AF version
WCDMA:B2,B4,B5
FDD-LTE:B2,B4,B5,B12,B13,B14,B66,B71
CAT-1 version
GSM:900,1800
FDD-LTE:B1,B3,B5,B8
TDD-LTE:B34,B38,B39,B40,B41
Indicator
RUN
Steady light if device is powered on
Flickering if device is running
Off if device is not running
NET
Flickering if communication is over Ethernet network
Steady light if communication is over 4G network
Off if no data communication
TXD
Flickering if device is transmitting data
Off if there’s no data transmitting
RXD
Flickering if device is receiving data
Off if there is no data receiving
Software
Parameter
Internet
Protocol
IPV4, TCP/UDP, DHCP, DNS, etc
IP Retrieving
Static IP / DHCP
Transmission
Support Transparent Transmission
DNS
Support Domain Name Resolution
Configuration
PC configuration software, support WIN XP, WIN 7, WIN
8 and WIN 10
Internet Cache
Size
Transmitting: 8Kbyte; Receiving: 8Kbyte
Login Package
Support custom login package
Heartbeat
Package
Support custom heartbeat package
Safety
Certification
MTBF
≥100,000 hours
EMC
EN 55022: 2006/A1: 2007 (CE &RE) Class B

Page 13 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
IEC 61000-4-2 (ESD) Level 4
IEC 61000-4-3 (RS) Level 4
IEC 61000-4-4 (EFT) Level 4
IEC 61000-4-5 (Surge)Level 3
IEC 61000-4-6 (CS)Level 4
IEC 61000-4-8 (M/S) Level 4
Other
CE, FCC
Environment
Working
-40~80℃, 5~95% RH
Storage
-40~85℃,5~95% RH
Others
Case
Metal Case
Size
30mm×83mm×110mm(L*W*H)
Protection
Grade
IP30
Net Weight
291.2g
Mounting
Wall-Mounting, DIN-Rail Mounting
Model Selection
Model No.
WAN
LAN
COM
(Default is RS485
Optional RS232)
OPC-UA
4G
POE PD
(Powered
Device)
BL102
1
1
1
X
√
Optional
BL102E
1
1
1
X
X
Optional
BL102UA
1
1
1
√
X
Optional

Page 14 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
2 Hardware Introduction
Outline Dimension
Unit: mm

Page 15 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
Power Source Interface
2 optional channels of power input support DC 9~36V voltage with inverse connection protection.
SIM & SD Card Slots
Make sure device is powered off before inserting or removing SIM card. Insert SIM card Picking PIN
into the hole with tiny force to eject out the card tray.
Note: Place the device flat like above picture if inserting or removing SIM card.
Debugging & Upgrading Interface
DEBUG is the interface for debugging, DOWNLOAD is the interface for upgrading.
Gateway Grounding
Before connecting the device, please do equipment grounding with grounding screw to prevent
electromagnetic interference

Page 16 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
4G Antenna Interface
LED Indicator
Reset Button
Once gateway is running normally, use a PIN to press RESET button for 10seconds until RUN
LED Indicator Introduction
Item Name
Status
Description
RUN
Device Running
Indicator
Flickering
Device running normally
Off
Device faulty
NET
Ethernet or 4G
Communication
Indicator
Flickering
Ethernet Communication
On
4G communication
Off
No network
TX
Data Transmitting
Indicator
Flickering
Serial port is transmitting
data
Off
No data transmitting in
serial port
RX
Data Receiving
Indicator
Flickering
Serial port is receiving
data
Off
No data receiving in serial
port
Note: RUN indicator will be on if device is powered. If it’s not on, please
check whether there’s reverse wiring or power source problem.
Connect 4G Antenna

Page 17 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
indicator is off. Gateway BL102 will return to default factory setting.
COM Port & Power Output Interface
WAN & LAN Ports
RS485 or RS232 and Power Output
Item
Description
VOUT+
Positive Pole of Power Output
VOUT-
Negative Pole of Power Output
B/RX
RS485 data-(B)/ receiving data
A/TX
RS485 data +(A)/ transmitting data
GND
Grounding
Note: Power output voltage is equal to input voltage:
DC 9~36V
Ethernet Network Port
Indicator
Color
Status
Description

Page 18 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
3 Gateway Mounting
Gateway BL102 can be placed on desk, mounted on the wall and DIN-Rail.
Wall-Mounting
Wall Mounting
Rate
Indicator
Green
ON
100Mbps mode
OFF
10Mbps mode
Network Link
Indicator
Yellow
ON
Connected
Flickering
It’s transferring data
OFF
Disconnected

Page 19 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
DIN Rail Mounting
4 Configuration Software Introduction
Login to Configuration Software
Connect BL102 to router or switch through WAN port with standard direct network cable or cross
network cable. Make sure BL101 and PC are in the same local area network. If it’s necessary to
connect the gateway to PC directly, use standard cross network cable to connect through BL101 LAN
port. (If BL101 is connected to PC directly, PC IP must be specified to 192.168.3.1 as default LAN IP
of gateway is 192.168.3.1 from factory setting)
Note: WAN port IP is retrieved automatically, LAN port IP is 192.168.3.1 from factory setting
Connecting BL102 to Router, Switch or PC with following way.
DIN Rail Assembling
DIN Rail is Assembled

Page 20 of 88 Pages King Pigeon Communication Co., Ltd.
www.iot-solution.com
PLC/Modbus to MQTT/OPC UA Gateway BL102
4.1.1 Open Configuration Software
Double click on PC to run BL102 configuration software and enter below
page
4.1.2 Search for Devices
Click Device Search to get all devices which are in the same local area network with PC. If no device
is found, please follow the procedure on the right notice box to check the root cause. Below is the
example of connecting Gateway BL102 with switch through WAN. A device with IP 192.168.1.164 is
searched out.
Table of contents
Other King Pigeon Gateway manuals
Popular Gateway manuals by other brands

Milesight
Milesight UR32L quick guide

Ultrakeet
Ultrakeet WNTD WiFi Gateway quick start guide

SMSEagle
SMSEagle NXS-9750-4G user manual

West Mountain Radio
West Mountain Radio Super PWRgate PG 40S owner's manual

ZyXEL Communications
ZyXEL Communications VMG1312-T20B quick start guide

B+B SmartWorx
B+B SmartWorx MESR321 series quick start guide