Device & Onboarding
SBWF4602/4612
The NET2GRID SBWF4602/4612 is a low-cost home energy gateway (also referred to as a SmartBridge) that collects energy data through the P1 port of DSMR meters. Data is made available either via a local HTTP service on the home network, or optionally via the NET2GRID platform connection.
Installation
The P1 meter interface can typically be accessed directly by the end user installing the SmartBridge:
All smart meters using the SMR5.0 protocol support plug-and-play installation.
Older smart meters may require an additional power cable.
If the P1 port is already in use, the SmartBridge can be installed using a P1-splitter.
LED Status
The LED provides at-a-glance feedback on the device's connection state:
Off
n/a
No power; system reset pending
Fast Blink
0.3 sec
Bluetooth (if rebooted) and WiFi access point active
Slow Blink
1 sec
Waiting for WiFi and platform connection
Solid on
n/a
Connected with platform and operational
Bluetooth Onboarding
All NET2GRID SmartBridges support Bluetooth (v4.2) and Wi-Fi (2.4GHz), which enable a seamless onboarding experience: the user's smartphone discovers the SmartBridge over Bluetooth, retrieves the list of nearby Wi-Fi networks, and passes along credentials so the device can connect to the NET2GRID platform.
All Bluetooth communication is performed through GATT attributes (characteristics), each identified by a Universal Unique IDentifier (UUID). The UUID 4E04, is used to send bluetooth command to the device, and supports the following values:
Factory Reset
00
Discover Wi-Fi networks
01
Connect to Wi-Fi network
02
Onboarding Process
Upon device boot, the connection process of the next flowchart is followed. Initially, upon device boot, the device checks for stored Wi-Fi credentials.
If this is the first onboarding and there are no credentials, LED flashes fast, it waits until they are provided as described in the next paragraphs. If the network connection fails with the provided credentials, the Access Point and Bluetooth remain enabled.
If stored credentials exist:
The device attempts to connect using them.
If the connection fails, the device enables the Access Point and Bluetooth while waiting for new credentials. LED flashes fast. It can accept new credentials at this stage, but also tries to connect to the stored credentials every minute.
If the device disconnects, it will make 10 attempts to reconnect to the network. If all 10 attempts fail, only the Access Point will be enabled. In order to use Bluetooth to provide new credentials, the device must be re-booted.

Step 1: Discover and Connect to the SmartBridge
Ensure the SmartBridge is powered on (connected to the smart meter) — the LED will be blinking.
Search for a Bluetooth device advertised with the
sbwfprefix, and connect to it.Set the MTU to at least 128 bytes.
Read the value of UUID 4E08 to retrieve device information, returned as JSON:
Important: Do not use the Bluetooth MAC address to identify the device — only the
idvalue from the JSON response is valid.
Step 2: Discover Wi-Fi Networks
Once connected to the SmartBridge, a Wi-Fi scan must be performed so the user can select the correct network and provide valid credentials. Follow the steps below to retrieve the list of available Wi-Fi networks.
Ensure the MTU is set to at least 128 bytes.
Enable notifications on UUID 4E06.
Trigger the Wi-Fi scan by writing
01to the command attribute (UUID 4E04).Discovered networks are returned via notification, one per SSID:
Step 3: Connect to a Wi-Fi Network
At this stage, the user selects the desired Wi-Fi network from the scan list and provides the corresponding password. With this information, the SmartBridge can initiate the Wi-Fi connection process. The process is the following:
Enable notifications on UUID 4E05.
Write the selected SSID (UTF-8) to UUID 4E02.
Write the Wi-Fi password (UTF-8) to UUID 4E03.
Trigger the Wi-Fi connection by writing
02to the command attribute (UUID 4E04).The join result is returned via notification on UUID 4E05:
One or more
01(Join in Progress) notifications — up to 10 attemptsA final
00(Success) notification once connected
On success, the SmartBridge closes the Bluetooth session and the LED turns solid on.
The SmartBridge checks for a potential firmware update and reboots if needed.
Join Result
All join results of the Wi-Fi join command can be found in the table below.
Status Code
Meaning
Description
0x00
Success
Device successfully joined the network.
0x01
Join in Progress
Device is attempting join - wait for next notification.
0x02
Beacon Timeout
Access point no longer in range.
0x03
No AP Found
Access point not found. Check SSID and retry.
0x04
Authentication Failed
Unable to join. Check key and retry.
0x05
Association Failed
Check SSID / access point and retry.
0x06
Handshake Timeout
Check SSID / access point and retry.
0x07
No Attempt
Device did not yet receive join command from client.
0x08
Function Error
Internal error. No join attempt was made.
0x09
SSID Error
Invalid SSID from client. No join attempt was made.
0x0A
Unknown Error
-
📘 The status codes 0x04, 0x05 and 0x06 cannot be guaranteed to exactly mean what is listed above. For instance, a wrong password could end up in a handshake timeout, so 0x06 instead of 0x04.
These 3 cases should be treated the same way, and the entire SSID discovery and password entry loop should be retried upon failure.
Last updated
Was this helpful?

