BLE Gateway - User Guide
JW1401GWV2
WiFi Network BLE Gateway
Overview
Bluetooth Low Energy Gateway (JW1401GWV2) can scan surrounding BLE broadcast packets and report the concerned RAW data packets to a designated server. It supports data collection from Bluetooth beacons, SOS buttons, temperature and humidity sensors, air pressure sensors, vibration sensors, and more. It can also be used for personnel positioning, asset tracking, etc.
Features
Remote firmware upgradeSupport OTA firmware update via Bluetooth.
Reception sensitivity-91 dBm
Network connectionUses 2.4GHz Wi-Fi for network connection
OEM serviceCustom logo printing and label application available
SecurityAES hardware encryption
Specifications
Bluetooth VersionBLE 4.2, compatible with BLE 4.0+
Power Supply5V/1A USB (battery-free)
OTA UpgradeSupport over-the-air (OTA) firmware upgrade via Bluetooth
J-Link SupportSupport firmware flashing via J-Link cable
Working ModeContinuously scans for surrounding Bluetooth devices and reports data to the server
Configuration ModeConnects to a mobile phone for configuring operating parameters
Transmission PowerDefault 0 dBm
Parameters to ConfigureGateway password, Wi-Fi SSID and password, server IP/URL and MQTT port, communication protocol: MQTT
Quick Setup
- Power on the device Plug into a 5V/1A power adapter or computer USB port. The device will start working automatically. For better signal, position the antenna upward.
- Install the APP Download and install "JoywayBeacon" from:
https://www.joyway.cn/download/android_app/JoywayBeacon.apk
- Search for gateway Open the APP, tap "Search" to find your gateway device.
- Configure parameters Select your gateway, enter the following settings:
- Device password (optional, default is empty)
- Wi-Fi SSID (your local 2.4GHz Wi-Fi name)
- Wi-Fi password (your local Wi-Fi password)
- Server IP/URL (default: broker.joyway.cn)
- Server port (default: 1883 for MQTT)
- MQTT username/password (if required by server)
- MQTT QoS (recommended: 1)
- MQTT keep-alive time (recommended: 60 seconds)
- Optional - Set scan filters Configure RSSI filter, MAC address filter, and raw data filter to only report specific broadcast packets.
Gateway Parameters
| ID | Parameter Name | Description |
| 1 | Device password | Default password is empty. A password can be set to prevent others from modifying gateway parameters. |
| 2 | Wi-Fi name (SSID) | Must be changed to your local Wi-Fi name (only supports 2.4GHz band). |
| 3 | Wi-Fi password | Must be changed to your local Wi-Fi password. |
| 4 | Server IP/URL | broker.joyway.cn. Can be changed to your own server IP/URL. |
| 5 | Server port | 1883. Can be changed to the port corresponding to your own server. The default port for MQTT protocol is 1883. |
| 6 | Communication protocol | It is recommended to choose MQTT. |
| 7 | MQTT username | If the server requires username for login, it must be set. |
| 8 | MQTT password | If the server requires password for login, it must be set. |
| 9 | MQTT QoS | Communication quality requirement. '1' is recommended. |
| 10 | MQTT keep-alive time | 60 seconds is recommended. |
| 11 | RSSI filter | Broadcast packets with signal strength below this value will be ignored. Default: -128 dBm. |
| 12 | MAC address filter | Filter by MAC address. Example: "XX:XX:XX:XX:AA" means packets whose MAC address does not end with AA will be ignored. |
| 13 | Raw data filter | Filter by specifying part of the raw data. Example: expected value "16:05:18", start position "1" means bytes 1-3 must be 0x16, 0x05, 0x18. |
Electrical Parameters
Case ColorBlack
BatteryNo battery (USB powered)
Operating Voltage5V DC
Operating Current150mA (Peak)
Transmission Range0-65 meters (affected by environment)
Antenna2.4GHz, 50 ohm
Net Weight26g
Dimensions10.5 x 2.5 x 5 cm
Package Information
Package TypePP Bag
Quantity5 pcs
Net Weight130g
Gross Weight132g
Dimensions14 x 9 x 3 cm
Paper Box200 pcs
Net: 5.2kg / Gross: 5.5kg
430 x 210 x 270 mm (3# box)
Technical Notes (for developers)
Convert bytes to RSSI value (C# example):
int rssiByte = receiveBytes[rssiByteIndex];
int rssiSign = (rssiByte & 0x80) == 0x80 ? (-1) : (1);
int rssiABS = (~rssiByte) & 0x7F;
int rssiValue = rssiSign * rssiABS;
Indoor Positioning using Gateways and Beacons:
At least three gateways need to be installed to calculate the location of the beacon. The three gateways should not be installed in a straight line; it is best to arrange them in an equilateral triangle to improve positioning accuracy.
Gateway(1) - Distance 1 - Beacon - Distance 3 - Gateway(3)
Gateway(2) - Distance 2 - Beacon
The three gateways sequentially scan the beacon signal and report each scanning event to the server. The reported data includes the RSSI value, from which distances can be calculated. Since the installation positions of the gateways are fixed, the location of the beacon can be calculated using these distances.
Firmware OTA and J-Link support
Security AES hardware encryption