
Support for serial port is added later.Īfter you have set parameters you can try to connect to the meter.įirst you should send SNRM request and handle UA response.Īfter that you will send AARQ request and handle AARE response. If you are using IEC handshake you must first send identify command and move to mode E. ServerAddress = GXDLMSClient.getServerAddress2(logical Address, physical Address, Address size in bytes) # Count server address from logican and physical address. ServerAddress = GXDLMSClient.getServerAddressFromSerialNumber(Serial number) # Count server address from serial number. You can use GetServerAddress method for that. You can count server address from serial number of the meter.

Usually you can use value 1 for meter address. Server address is divided to Logical address and Physical address. # Is used Logican Name or Short Name referencing.Įach meter has own server address. # All default parameters are given in constructor. If you find an issue, please report it here:įirst you need to install the library: pip install gurux_dlmsīefore use you must set following device parameters. You can use any connection (TCP, serial, PLC) library you want to. If you have problems you can ask your questions in Gurux Forum. Read Instructions for making your own meter reading application or build own Read should read DLMS/COSEM FAQ first to get started. We are updating documentation on Gurux web page. We have try to make component so easy to use that you do not need understand protocol at all. Gurux_dlms library is a high-performance Python component that helps you to read you DLMS/COSEM compatible electricity, gas or water meters. Join the Gurux Community or follow for project updates.
