USS (Universal Serial Interface) is the serial protocol of Siemens drives (frequency converters and inverters) on RS-485. The Weble IoT Universal Gateway USS driver is the master of a USS bus: it polls the parameters of up to 32 drives (unit IDs 0 to 31) and exposes them as addresses.
Typical use: read speed, current, power, faults and operating hours of Siemens drives and route them to a logger, a dashboard, BACnet or the cloud.
Read-only. The driver reads drive parameters; it does not write to the drives.
Driver key:
uss— listed as USS under Building Automation in Gateway driver. Licence: required, contact support@weble.ch. Without it the gateway does not connect and its crash log reads missing license. Platforms: Linux and Windows.
serial and pick the interface in Serial Port.1, parameter 27, index 0: %uss:1/27/0.5000 (every 5 seconds) and choose the Datatype, or keep inherit.
Name, Cluster ID and Description are common to all drivers: see Gateways.
| Label | JSON key | Default | Description |
|---|---|---|---|
| Type | json.type |
serial |
Keep serial: the drives are always read through the serial port. |
| Serial Port | json.serialPort |
(empty) | Serial interface of the gateway or USB adapter. Required. |
| BaudRate | json.serialPortBaudRade |
57600 |
9600, 19200, 38400, 57600, 76800 or 115200. |
| Parity | json.serialPortParity |
none |
none, even or odd. Set it to the parity of the drives. |
| Stopbit | json.serialPortStopBit |
1 |
1 or 2. |
| Response timeout | json.responseTimeout |
1000 |
Maximum wait for the answer of a drive, in milliseconds. At least 300 ms are applied. |
| Idle timeout | json.idleTimeout |
100 |
Pause between two requests on the bus, in milliseconds. At least 10 ms are applied. |
| TCP Server active | json.server |
off | Opens a TCP port that passes the raw bytes to and from the serial line, for the commissioning tool of the drive manufacturer. Polling is suspended while a client is connected; one client at a time. |
| TCP Server port | json.serverPort |
21222 |
TCP port of this passthrough. |
| (JSON only) | json.serialPortDataBits |
8 |
Data bits. Not shown in the form. |
Changes to the gateway are applied when the driver restarts, which saving the gateway does.
Enable TCP Server active only while you use the manufacturer's tool, from a trusted network, and disable it afterwards: the passthrough gives the tool direct access to the drives and stops the polling while it is connected.
{
"type": "serial",
"serialPort": "/dev/extcomm/1/0",
"serialPortBaudRade": 19200,
"serialPortParity": "even",
"serialPortStopBit": 1,
"responseTimeout": 1000,
"idleTimeout": 100,
"server": false,
"serverPort": 21222
}
The baud rate key is spelled serialPortBaudRade.
%uss:<unit>[/<parameter>[/<index>]]
| Part | Meaning | Values |
|---|---|---|
<unit> |
USS address (unit ID) of the drive. | 0 to 31 |
<parameter> |
Parameter number of the drive. | Number |
<index> |
Index of the parameter (sub-index of an array parameter). | Number, 0 for a simple parameter |
Examples:
%uss:1/27/0 — parameter 27, index 0, of drive 1%uss:1 — drive 1: reading it checks that the drive answers and reads its addresses that are not polled%uss:1/947 — parameter 947 of drive 1; reading it reads its index addresses that are not polledThe address editor builds the full form %uss:<unit>/<parameter>/<index> from the fields Unit ID, Parameter and Index.
| Label | JSON key | Default | Description |
|---|---|---|---|
| Polling | json.polling |
(empty) | Polling interval in milliseconds, or a cron expression. Empty or 0: not polled, read on demand only. |
| Datatype | json.datatype |
inherit |
Decoding of the parameter value. inherit: the type of the parameter address %uss:<unit>/<parameter> if it has one, otherwise the type given by the drive answer (16-bit, 32-bit or float). Other values: int16BE, uint16BE, int32BE, uint32BE, floatBE and the other types of the list. |
| Scale | json.scale |
(empty) | Multiplier applied to the value read: value = raw × scale. Empty or 0: no scaling. |
| COV | json.cov |
(empty) | A new value is emitted only when it differs from the previous one by at least this amount, in scaled units. Empty or 0: every change. |
Log and Store value work the same way for every driver: see Log and Store value policies.
| Property | Value |
|---|---|
| Readable | Yes — polled at its Polling interval, or read on demand |
| Writable | No |
| Created automatically | No |
| Routable | Yes |
| Loggable | Yes |
Addresses that share the same Polling value are read one after the other in the same loop, with Idle timeout between two requests. A drive that answers with a timeout is polled less often until it answers again.
A drive is shown online only when at least one of its %uss:<unit>/<parameter>/<index> addresses is polled and answers.
To reuse the address list of one drive, right-click it in the address table:
.uss file;
Gateway as in 2.1. Insert the addresses of drive 1, then use Duplicate model to create them for drive 2.
| Address | JSON | Purpose |
|---|---|---|
%uss:1/<speed parameter>/0 |
{ "polling": 10000, "scale": 0.1 } |
Actual speed, scaled to the unit given in the drive manual |
%uss:1/<current parameter>/0 |
{ "polling": 10000, "cov": 0.5 } |
Output current, emitted when it changes by 0.5 A |
%uss:1/<fault parameter>/0 |
{ "polling": 10000 } |
Active fault code; route it to an alarm |
%uss:1/<hours parameter>/0 |
{ "polling": "0 0 * * * *" } |
Operating hours, read every hour |
Take the parameter numbers from the manual of the drive.
| Symptom | Cause | What to do |
|---|---|---|
Gateway does not connect; crash log missing license |
No USS licence on the gateway. | Contact support@weble.ch. |
Log Unable to get serialPort |
Serial Port is empty or the adapter is not found. | Pick the interface again. |
Address status !timeout |
The drive does not answer: wiring, polarity, unit ID, baud rate or parity. | Check the bus and the USS settings of the drive; raise Response timeout for slow drives. |
| Drive stays offline although on-demand reads work | None of its addresses is polled. | Give at least one address a Polling interval. |
| All values freeze | A client is connected to the TCP passthrough. | Disconnect the manufacturer's tool, or disable TCP Server active. |
| A write is refused | The driver is read-only. | Change the parameter with the tool of the drive manufacturer. |
To read the driver log: open the gateway log (see Gateways and Logs and diagnostics).