Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions Gurux.DLMS.XmlClient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Structure of XML
In xml you describe what you want to do. Example below makes Get (read) reguest to the meter.
You give (Interface type, OBIS code and attribute id).

```
<?xml version="1.0" encoding="utf-8"?>
<!--Update new Firmware to the meter.-->
<Messages>
Expand All @@ -48,6 +49,7 @@ You give (Interface type, OBIS code and attribute id).
</GetRequestNormal>
</GetRequest>
</Messages>
```

You can convert DLMS bytes to xml easily. First read your meter with GXDLMSDirector or some other app. Then open [GuruxDLMSTranslator](https://www.gurux.fi/GuruxDLMSTranslator) and
select Messages tab. Paste sent bytes to the left side and press "To Messages" -button. Create file and copy generated xml to file ("sample1.xml")
Expand All @@ -70,6 +72,7 @@ You can read data from Gurux example server using HDLC framing and Logican name
Gurux.DLMS.XmlClient -h localhost -p 4061 -x "Path to the file to execute."

Parameters are:
```
-h host name or IP address.
-p port number or name (Example: 1000).
-S Serial port settings (Example: COM1:9600:8None1).
Expand All @@ -83,10 +86,11 @@ Parameters are:
-w WRAPPER profile is used. HDLC is default.
-t [Error, Warning, Info, Verbose] Trace messages.
-x input XML file.
```

Example:
Gurux DLMS Xml Client TCP/IP connection:
Gurux.DLMS.XmlClient -r LN -c 16 -s 1 -h [Meter IP Address] -p [Meter Port No]
Gurux DLMS Xml Client using serial port connection:
Gurux.DLMS.XmlClient -r SN -c 16 -s 1 -S COM1:9600:8None1 -i
Gurux.DLMS.XmlClient -S COM1:9600:8None1 -c 16 -s 1 -a Low -P [password]
Gurux DLMS Xml Client TCP/IP connection:
`Gurux.DLMS.XmlClient -r LN -c 16 -s 1 -h [Meter IP Address] -p [Meter Port No]`
Gurux DLMS Xml Client using serial port connection:
`Gurux.DLMS.XmlClient -r SN -c 16 -s 1 -S COM1:9600:8None1 -i`
`Gurux.DLMS.XmlClient -S COM1:9600:8None1 -c 16 -s 1 -a Low -P [password]`