SMA Sunny Boy RS485 Modbus to MQTT Integration
Extract data from legacy SMA inverters without the expensive WebBox. Here is the complete Modbus RTU guide to modernizing your SMA system using a Valtoris edge gateway.
1. Modernizing Legacy SMA Inverters
Older SMA Sunny Boy and Tripower inverters are built like tanks, but their data monitoring capabilities are outdated. Official solutions like the SMA Data Manager M or the discontinued WebBox are prohibitively expensive for simple retrofits.
If your SMA inverter has the optional RS485 Data Module (Piggy-Back) installed, you can easily bypass SMA’s proprietary Speedwire/Webconnect protocols and poll standard Modbus RTU data locally.
2. SMA RS485 Piggy-Back Wiring
Locate the RS485 communication terminal block inside the inverter (usually a 4-pin or 6-pin green connector). Connect it to your Valtoris VT-DTU500 gateway as follows:
| SMA RS485 Terminal (Piggy-Back) | Valtoris VT-DTU500 Terminal | Signal Description |
|---|---|---|
| Pin 2 (Data+) | A+ (Data+) | RS485 A (Positive) |
| Pin 7 (Data-) | B- (Data-) | RS485 B (Negative) |
| Pin 5 (GND) | GND | Signal Ground / Shielding |
* Note: If the Valtoris gateway is at the end of the RS485 daisy chain, ensure the termination resistor jumper on the SMA module is set correctly.
💡 Retrofit SCADA with Zero Coding
Parsing 32-bit registers from SMA inverters often leads to Endianness (byte-swapping) headaches.
The Valtoris VT-DTU500 features a built-in payload parser. It handles the Modbus polling autonomously, converts the hex data to clean JSON, and pushes it to your Azure, AWS, or local Node-RED server over 4G LTE or Ethernet.
View VT-DTU500 Specs3. SMA Modbus Register Map (Key Metrics)
Before polling, ensure Modbus is enabled via SMA’s Sunny Explorer or via the DIP switches. SMA Modbus RTU typically defaults to Baud Rate: 19200 (or 9600), 8N1. The default Slave ID is often 3 (or 126).
SMA maps its Modbus addresses starting in the 30000 range. Use Holding Registers (0x03):
| Register (Dec) | Data Type | Description | Unit |
|---|---|---|---|
| 30775 | S32 | Active Power (Grid Feed-in) | W |
| 30531 | U32 | Total Yield (Lifetime Energy) | kWh |
| 30201 | U32 | Condition (Status) – 35=Fault, 307=Ok | N/A |
| 30769 | S32 | DC Current | 0.001 A |
| 30771 | S32 | DC Voltage | 0.01 V |
4. Troubleshooting SMA Connections
If you cannot establish communication with the Sunny Boy, check these common issues:
- Modbus Not Activated: SMA inverters do not have Modbus enabled by default. If it’s a newer model with a WebUI, you must log in as Installer and explicitly enable “Modbus over RS485”.
- Unexpected Offset: SMA documentation sometimes lists the raw Hex addresses. Depending on your SCADA software or gateway, you may need to apply an offset of -1 (e.g., polling 30774 instead of 30775).
- Data Type Mismatch (U32 vs S32): SMA mixes Unsigned 32-bit (U32) and Signed 32-bit (S32) registers. Active Power can be negative, so ensure your gateway treats register 30775 as a Signed integer to avoid garbage values.
REQUEST A QUOTE
Tell us about your project requirements and get volume pricing.
