Don't comment the topic if you have a new question.
You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.
By moshejay, 12 February, 2013
Hi there
i'm using DLMSDirector to try & communicate with a L&G ZMD310 meter via serial on COM1.
I have the L&G communication software as a check (it communicates without any problems).
The meter is set to start with IEC62056-21 at 300 baud 7/e/1 & go to 9600 8/n/1 on switching to mode E of IEC62056-21 (ie DLMS).
This is the log file:
2:47:26 PM Initializing serial connection.
2:47:26 PM HDLC sending:/?!
2:47:27 PM HDLC received: /LGZ5\2ZMD3104407.B31
2:47:27 PM BaudRate is : 9600
2:47:27 PM Moving to mode E.
06 32 35 32 0D 0A
2:47:28 PM Disconnect request
2:47:28 PM Failed to receive reply from the device in given time.
The DLMSdirector sends the 06 32 35 32 0D 0A the meter responds with 06 32 35 32 0D 0A but the DLMSdirector immediately displays the message "Failed to receive reply from the device in given time".
The meter did respond immediately to the 06 32 35 32 0D 0A with the same string and then switches to 9600.
i observed the meter behaving correctly & responding correctly on a serial monitor to both the DLMSdirector & the L&G coms software.
what can i do to proceed beyond this point?
what/where is this timeout?
hi mikko
i have installed all the .Nets & their SPs upto & including .Net4
(2SP2, 3SP2,3.5SP1,4 client profile, 4 extended, 4 multi-targeting pack)
i don't see how to attach a doc on this forum... so here are the contents of the log file..
11:01:30 AM Initializing serial connection.
11:01:31 AM HDLC sending:/?!
11:01:32 AM HDLC received: /LGZ5\2ZMD3104407.B31
11:01:32 AM BaudRate is : 9600
11:01:32 AM Moving to mode E.
06 32 35 32 0D 0A
11:01:33 AM Disconnect request
11:01:33 AM Failed to receive reply from the device in given time.
and here is the contents of another file i see in the same folder "LastError.log"...
System.Exception: Failed to receive reply from the device in given time.
at GXDLMSDirector.GXDLMSDevice.InitializeConnection() in C:\Projects\GXDLMSDirector\Development\GXDLMSDevice.cs:line 346
at GXDLMSDirector.MainForm.Connect(Control sender, Object[] parameters) in C:\Projects\GXDLMSDirector\Development\MainForm.cs:line 964
oops i forgot to add the following...this is the from the serial port monitor, port 3 is monitoring at 300baud & is guruX sending to the meter, port 7 is monitoring at 9600baud & is meter responding to guruX...notice that we can't see the initial response because that is happening at 300baud but that the meter IS RESPONDING to the 252 that guruX is sending BUT IT DOES so at 9600 AND within 500ms!
11:14:31:610 13-Feb-2013 Port 3 - /?![CR][NL]
11:14:31:938 13-Feb-2013 Port 7 - [NUL][NUL][NUL][NUL][NUL][NUL][NUL]plus more
11:14:32:938 13-Feb-2013 Port 3 - [ACK]252[CR][NL]
11:14:33:297 13-Feb-2013 Port 7 - [ACK]252[CR][NL]
Failed to receive reply in time
Hi,
Can you send a log file to me. Select "View Log" from the tools menu.
Have you installed SP1 to .Net 3.5?
You can download it here:
http://www.microsoft.com/download/details.aspx?id=22
BR,
Mikko
Failed to receive reply in time
hi mikko
i have installed all the .Nets & their SPs upto & including .Net4
(2SP2, 3SP2,3.5SP1,4 client profile, 4 extended, 4 multi-targeting pack)
i don't see how to attach a doc on this forum... so here are the contents of the log file..
11:01:30 AM Initializing serial connection.
11:01:31 AM HDLC sending:/?!
11:01:32 AM HDLC received: /LGZ5\2ZMD3104407.B31
11:01:32 AM BaudRate is : 9600
11:01:32 AM Moving to mode E.
06 32 35 32 0D 0A
11:01:33 AM Disconnect request
11:01:33 AM Failed to receive reply from the device in given time.
and here is the contents of another file i see in the same folder "LastError.log"...
System.Exception: Failed to receive reply from the device in given time.
at GXDLMSDirector.GXDLMSDevice.InitializeConnection() in C:\Projects\GXDLMSDirector\Development\GXDLMSDevice.cs:line 346
at GXDLMSDirector.MainForm.Connect(Control sender, Object[] parameters) in C:\Projects\GXDLMSDirector\Development\MainForm.cs:line 964
oops i forgot to add the following...this is the from the serial port monitor, port 3 is monitoring at 300baud & is guruX sending to the meter, port 7 is monitoring at 9600baud & is meter responding to guruX...notice that we can't see the initial response because that is happening at 300baud but that the meter IS RESPONDING to the252 that guruX is sending BUT IT DOES so at 9600 AND within 500ms!
11:14:31:610 13-Feb-2013 Port 3 - /?![CR][NL]
11:14:31:938 13-Feb-2013 Port 7 - [NUL][NUL][NUL][NUL][NUL][NUL][NUL]plus more
11:14:32:938 13-Feb-2013 Port 3 - [ACK]252[CR][NL]
11:14:33:297 13-Feb-2013 Port 7 - [ACK]252[CR][NL]
cheers
moshe
L&G ZMD310
Hi,
In handshake meter tells that it want to communicate with baudrate 9600.
/LGZ5 (Number 5 tells the maximum baudrate.)
We have ZMD310 in our office and we can read it without any problems.
But you are right. There is something wrong when you try to change baudrate.
You can try to do following:
Download source codes of GXDLMSDirector from SourceForge. Instructions are here:
http://www.gurux.fi/OpenSource
Open GXDLMSCommunicator.cs and mofify InitializeIEC method.
change:
char baudrate = p.Reply[4];
To:
char baudrate = '0';
This will affect the transmission rate, it will not attempt to adjust and it is 300 at all time.
I'll add maximum baudrate to the worklist and we will implement it later.
BR,
Mikko