Is it possible to read the Gurux.server.example on linux through another device using a serial port? I have tried it through localhost, and it worked. However, when using the serial port, it becomes like this:
Gurux.DLMS.Client.Example.Net -r sn -h 0.0.40.0.2.255 -p 4060 -S COM13 -t Verbose
Standard: DLMS
Send SNRM request.7E A0 07 03 21 93 0F 01 7E
TX: 6:39:22 PM 7E A0 07 03 21 93 0F 01 7E
TX: 6:39:27 PM 7E A0 07 03 21 93 0F 01 7E
TX: 6:39:32 PM 7E A0 07 03 21 93 0F 01 7E
Disconnecting from the meter.
Failed to receive reply from the device in the given time.
System.Exception: Failed to receive reply from the device in the given time.
What command should I modify?
Thank you very much.
Hi, Yes, that is possible…
Hi,
Yes, that is possible. Your serial port (COM13) is invalid. In Linux serial ports are like this:
/dev/ttyS1
You need to check what serial ports are available in your distro.
BR,
Mikko
I am currently utilizing the…
I am currently utilizing the DLMS client net on my computer to access the Gurux server example running on Linux. The available port is COM13. Should I consider changing the port and host?
Hi, Are you running your…
Hi,
Are you running your Linux in Windows subsystem (WSL)?
How you have connected your Linux and Windows serial ports?
BR,
Mikko
Hello, I apologize for the…
Hello,
I apologize for the incomplete explanation. Currently, I am using the DLMS client net on my Windows computer to access the Gurux server example running on another device, which is a Linux-based Raspberry Pi.
I also attempted to communicate between Gurux.client and Gurux.server using Windows and a serial port. I have confirmed that the connection is successful, and commands from Gurux.client are being received (between two Windows devices) using Docklight: 1/22/2024 8:59:35:22 [RX] - 74 65 73 74 7E A0 07 03 21 93 0F 01 7E 7E A0 07 03 21 93 0F 01 7E
However, when executed through the command prompt (cmd):
E:\Gurux.DLMS.Net\Gurux.DLMS.Net-master\Gurux.DLMS.Client.Example.Net\bin\Release>Gurux.DLMS.Client.Example.Net.exe -r sn -h localhost -p 4060 -S COM6:9600:8None1 -t Verbose
Standard: DLMS
Send SNRM request.7E A0 07 03 21 93 0F 01 7E
TX: 9:00:10 PM 7E A0 07 03 21 93 0F 01 7E
TX: 9:00:15 PM 7E A0 07 03 21 93 0F 01 7E
TX: 9:00:20 PM 7E A0 07 03 21 93 0F 01 7E
Disconnecting from the meter.
Failed to receive a reply from the device in the given time.
System.Exception: Failed to receive a reply from the device in the given time.
Is there any command that I should change?
Hi, I believe that your…
Hi,
I believe that your server is communicating with TCP/IP and your client is trying to connect with a serial port.
You haven't told the server what serial port it should use. What programming language are you using on the server side?
BR,
Mikko
Hello, For the server, I am…
Hello,
For the server, I am using the Java programming language (gurux.dlms.server.example.java)
Hi, I belive that you have…
Hi,
I belive that you have started the example meter without arguments and it's using TCP/IP connection. You need to start server like this:
java -jar gurux.dlms.server.example.java-0.0.1-SNAPSHOT -S YOUR_SERIAL_PORT
BR,
Mikko