Now media state is open, How do I send msg to meter
Media state is open and cursor is blinking
root@localhost:~/dlms_mildtrix/Push# python3 main.py -p 4059 -T 5452493030303030 -A 5472695F5F5F556E6963617374417363 -B 5472695F5F5F556E6963617374417363 -t Verbose
pkg_resources not found
[('p', '4059'), ('T', '5452493030303030'), ('A', '5472695F5F5F556E6963617374417363'), ('B', '5472695F5F5F556E6963617374417363'), ('t', 'Verbose')]
TCP Server localhost:4059
Press any key to close the application.
trace:16:02:27 TraceTypes.INFO MediaState.OPENING
Media state changed. MediaState.OPENING
trace:16:02:27 TraceTypes.INFO MediaState.OPEN
Media state changed. MediaState.OPEN
..
Error! Index: 3 Invalid Block number. It is 23 and it should be 1.
Invalid Block number. It is 23 and it should be 1.
Traceback (most recent call last):
File "/root/dlms_gurux/Client/GXDLMSReader.py", line 437, in getReadOut
val = self.read(it, pos)
File "/root/dlms_gurux/Client/GXDLMSReader.py", line 326, in read
self.readDataBlock(data, reply)
File "/root/dlms_gurux/Client/GXDLMSReader.py", line 182, in readDataBlock
self.readDLMSPacket(data, reply)
File "/root/dlms_gurux/Client/GXDLMSReader.py", line 118, in readDLMSPacket
self.readDLMSPacket2(data, reply)
File "/root/dlms_gurux/Client/GXDLMSReader.py", line 169, in readDLMSPacket2
raise e
File "/root/dlms_gurux/Client/GXDLMSReader.py", line 149, in readDLMSPacket2
while not self.client.getData(rd, reply, notify):
File "/root/dlms_gurux/Client/gurux_dlms/GXDLMSClient.py", line 1190, in getData
raise ex
File "/root/dlms_gurux/Client/gurux_dlms/GXDLMSClient.py", line 1187, in getData
ret = GXDLMS.getData(self.settings, reply, data, notify)
File "/root/dlms_gurux/Client/gurux_dlms/GXDLMS.py", line 2297, in getData
GXDLMS.getPdu(settings, target)
File "/root/dlms_gurux/Client/gurux_dlms/GXDLMS.py", line 2032, in getPdu
GXDLMS.handleGloDedResponse(settings, data, index)
File "/root/dlms_gurux/Client/gurux_dlms/GXDLMS.py", line 2175, in handleGloDedResponse
GXDLMS.getPdu(settings, data)
File "/root/dlms_gurux/Client/gurux_dlms/GXDLMS.py", line 2001, in getPdu
if not GXDLMS.handleGetResponse(settings, data, index):
File "/root/dlms_gurux/Client/gurux_dlms/GXDLMS.py", line 1907, in handleGetResponse
GXDLMS.handleGetResponseNextDataBlock(settings, reply, index)
File "/root/dlms_gurux/Client/gurux_dlms/GXDLMS.py", line 1851, in handleGetResponseNextDataBlock
raise ValueError("Invalid Block number. It is " + str(number) + " and it should be " + str(expectedIndex) + ".")
Hi,
Hi,
Remove host address and try to run with these parameters:
-p 4059 -T 5452493030303030 -A
5472695F5F5F556E6963617374417363 -B 5472695F5F5F556E6963617374417363 -t Verbose
If it still fails, make sure that the port number is not used by some other app.
BR,
Mikko
Hi Mikko thanks
Hi Mikko thanks
Now media state is open, How do I send msg to meter
Media state is open and cursor is blinking
root@localhost:~/dlms_mildtrix/Push# python3 main.py -p 4059 -T 5452493030303030 -A 5472695F5F5F556E6963617374417363 -B 5472695F5F5F556E6963617374417363 -t Verbose
pkg_resources not found
[('p', '4059'), ('T', '5452493030303030'), ('A', '5472695F5F5F556E6963617374417363'), ('B', '5472695F5F5F556E6963617374417363'), ('t', 'Verbose')]
TCP Server localhost:4059
Press any key to close the application.
trace:16:02:27 TraceTypes.INFO MediaState.OPENING
Media state changed. MediaState.OPENING
trace:16:02:27 TraceTypes.INFO MediaState.OPEN
Media state changed. MediaState.OPEN
..
Regards
Ravi Chandra
Hi,
Hi,
Gurux.DLMS.Push.Listener.Example listens push messages from the meter. It doesn't send anything, just listens.
If you want to read the meter you need to use Gurux.DLMS.Client.Example
https://github.com/Gurux/Gurux.DLMS.Python/tree/master/Gurux.DLMS.Clien…
BR,
Mikko
OK sir but DLMS.Client is
OK sir but DLMS.Client is running in background on port 4059,
But now DLMS.Push cant run on the same port.. What to do sir
Hi,
Hi,
DLMS.Client is using meters port number 4059. Or are you simulating the meters on the same meter?
Check what is allocating the Port 4059.
You can change the port to something else. See "Send destination and method" attribute.
http://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSPushSetup
Not simulating sir,
Not simulating sir,
Can I run DLMS.Push on 4061??
and Im getting error while running Client
Error! Index: 3 Invalid Block number. It is 23 and it should be 1.
Invalid Block number. It is 23 and it should be 1.
Traceback (most recent call last):
File "/root/dlms_gurux/Client/GXDLMSReader.py", line 437, in getReadOut
val = self.read(it, pos)
File "/root/dlms_gurux/Client/GXDLMSReader.py", line 326, in read
self.readDataBlock(data, reply)
File "/root/dlms_gurux/Client/GXDLMSReader.py", line 182, in readDataBlock
self.readDLMSPacket(data, reply)
File "/root/dlms_gurux/Client/GXDLMSReader.py", line 118, in readDLMSPacket
self.readDLMSPacket2(data, reply)
File "/root/dlms_gurux/Client/GXDLMSReader.py", line 169, in readDLMSPacket2
raise e
File "/root/dlms_gurux/Client/GXDLMSReader.py", line 149, in readDLMSPacket2
while not self.client.getData(rd, reply, notify):
File "/root/dlms_gurux/Client/gurux_dlms/GXDLMSClient.py", line 1190, in getData
raise ex
File "/root/dlms_gurux/Client/gurux_dlms/GXDLMSClient.py", line 1187, in getData
ret = GXDLMS.getData(self.settings, reply, data, notify)
File "/root/dlms_gurux/Client/gurux_dlms/GXDLMS.py", line 2297, in getData
GXDLMS.getPdu(settings, target)
File "/root/dlms_gurux/Client/gurux_dlms/GXDLMS.py", line 2032, in getPdu
GXDLMS.handleGloDedResponse(settings, data, index)
File "/root/dlms_gurux/Client/gurux_dlms/GXDLMS.py", line 2175, in handleGloDedResponse
GXDLMS.getPdu(settings, data)
File "/root/dlms_gurux/Client/gurux_dlms/GXDLMS.py", line 2001, in getPdu
if not GXDLMS.handleGetResponse(settings, data, index):
File "/root/dlms_gurux/Client/gurux_dlms/GXDLMS.py", line 1907, in handleGetResponse
GXDLMS.handleGetResponseNextDataBlock(settings, reply, index)
File "/root/dlms_gurux/Client/gurux_dlms/GXDLMS.py", line 1851, in handleGetResponseNextDataBlock
raise ValueError("Invalid Block number. It is " + str(number) + " and it should be " + str(expectedIndex) + ".")
Pls help
Hi,
Hi,
Can you run the app -t Verbose argument? I need the hex trace so I can check what is happening.
BR,
Mikko