Is it possible to run multiple server examples (on different devices) and read them via single RS485 port? For example: laptop 1 and 2 are running server examples and laptop 3 reads from both of them (using different serial numbers). All devices are connected via rs485 to USB adapters to each other.
I get something like this when I try to connect. If only one server is running, then it connects and works normally.
Read failed. Timeout occurred.
Read failed.
7E A0 0A 23 00 06 BF F7 FFData send failed. Try to resend 1/3
Read failed. Timeout occurred.
Read failed.
7E A0 0A 23 00 06 BF F7 FF 7E A0 3A 23 00 02 44 D1 30 60 63 E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01
A2 03 02 01 00 A3 05 A0 00 00 34 44 04 00 00 06 5F 1F 04 00 00 1E 1D 02 00 00 07 7A ED 7EData send failed. T
ry to resend 2/3
Read failed. Timeout occurred.
Read failed.
7E A0 0A 23 00 06 BF F7 FF 7E A0 3A 23 00 02 44 D1 30 60 63 E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01
A2 03 02 01 00 A3 05 A0 00 00 34 44 04 00 00 06 5F 1F 04 00 00 1E 1D 02 00 00 07 7A ED 7EData send failed. T
ry to resend 3/3
Read failed. Timeout occurred.
Read failed.
7E A0 0A 23 00 06 BF F7 FF 7E A0 3A 23 00 02 44 D1 30 60 63 E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01
A2 03 02 01 00 A3 05 A0 00 00 34 44 04 00 00 06 5F 1F 04 00 00 1E 1D 02 00 00 07 7A ED 7E FF BE 2E 7D EF 7F
DF FF F5 FFAARQRequest failed (253) Data receive failed.
Failed to make connection
Yes, it's possible and you can do it on the same PC if you have enough serial ports. You need to give a unique server address for each meter and then check is received data for this meter in IsTarget function. http://www.gurux.fi/Gurux.DLMS.Server
Thank you for the answer. But if I create a daemon which constantly reads both devices I cannot contain single connection for both devices, right? Each read, new connection and disconnection has to be made?
I got it running, but seems like example client and multiple servers does not work with GMAC authentication. It's fine if I'm running single client and single server, but If I run multiple servers and reading via same serial port with different serial numbers, I get "Read failed":
Hi,
Hi,
Yes, it's possible and you can do it on the same PC if you have enough serial ports. You need to give a unique server address for each meter and then check is received data for this meter in IsTarget function.
http://www.gurux.fi/Gurux.DLMS.Server
BR,
Mikko
Thank you for the answer. But
Thank you for the answer. But if I create a daemon which constantly reads both devices I cannot contain single connection for both devices, right? Each read, new connection and disconnection has to be made?
Hi,
Hi,
You need to create multiple instances from GXDLMSClient. One instance per meter.
Then you can read meters simultaneously.
The SImulated meter will check is frame sent to it and if it's not it will skip it. The client does the same thing.
BR,
Mikko
I got it running, but seems
I got it running, but seems like example client and multiple servers does not work with GMAC authentication. It's fine if I'm running single client and single server, but If I run multiple servers and reading via same serial port with different serial numbers, I get "Read failed":
7E A0 7A 03 00 02 32 43 30 EA 5D E6 E7 00 61 69 A1 09 06 07 60 85 74 05 08 01 03
A2 03 02 01 00 A3 05 A1 03 02 01 0E A4 0A 04 08 41 42 43 44 45 46 47 48 88 02 07 80 89 07 60 85 74 05 08
02 05 A8 00 00 01 82 F0 F8 7C 3E 9F 4F 27 13 09 84 42 A1 BE 23 04 21 28 1F 30 00 00 03 C9 31 5D 67 BF 09
1E 89 DB FA 6D 06 D4 1E 28 B9 D6 FB 0B 2A 62 06 74 EC CF 7F 91 5A 1A 7E FD 5F AF 6F 9D FF FB FF D1 D9 81
97 AE D1 FF