Open 4. Transport to choose how clients connect and how much space is available for DLMS messages.
| Setting | Effect |
|---|---|
| WRAPPER | Enables DLMS WRAPPER over TCP on supported targets. |
| HDLC | Enables direct HDLC communication over the target's serial interface. |
| HdlcWithModeE | Enables an IEC 62056-21 Mode E opening exchange followed by HDLC. |
| Receive DLMS PDU size | Sets the receive PDU buffer size in bytes and limits the request size the server can handle. |
| Send DLMS PDU workspace size | Sets the working space used to construct outgoing DLMS messages. Size it for the requests and responses being handled; the workspace must accommodate the received request. |
| TCP port | Sets the listening port for WRAPPER/TCP. Configure the client to use the same port. |
| HDLC max information TX | Sets the server's HDLC transmit information-field limit. This is a link-layer limit, separate from the DLMS PDU size. |
| HDLC max information RX | Sets the server's receive information-field limit for HDLC. |
| Serial port | Selects the serial device opened by a desktop server, such as /dev/ttyUSB0 or the Windows device path shown in the field. It names the server's port. |
| Baud rate | Sets the serial communication speed for direct HDLC. The peer must use compatible framing and speed. |
| Initial baud rate, Mode E | Sets the opening exchange speed. The expected starting exchange is 300 baud, 7E1. |
| Negotiated baud rate, Mode E | Sets the subsequent HDLC speed, using 8N1 framing. |
Only interfaces supported by the selected target are listed. At least one interface is required. Selecting more than one interface adds their corresponding platform communication paths; account for their resource requirements.
Choosing buffer limits
The default receive and send PDU sizes in the current generator are 1024 bytes each. PDU sizes and HDLC information limits serve different layers. Raising an HDLC limit does not increase the PDU workspace. Increasing buffers also raises memory requirements, especially with static allocation.
WRAPPER additionally needs space for its eight-byte header. The generator checks applicable frame and memory limits; use Validation after changing sizes. Test larger object lists, profile reads and block transfers with the intended client.
Platform details
Desktop TCP servers bind to loopback by default. A port number alone does not expose the server on every network interface.
On ESP32, serial communication uses the device's configured pins. On NUCLEO, firmware uses LPUART1 PA2/PA3; choose the ST-LINK Virtual COM Port in the PC client. No PC COM-port name is embedded in that firmware.
Mode E uses the manufacturer FLAG ID from Standard. A successful TCP test does not verify serial wiring or Mode E behavior.
Return to the manual.