Meter Reading Sanxing

8 posts / 0 new
Last post
frato
Meter Reading Sanxing

Hi
I am trying to read the meters N34U03 and N12U02 of the company Ningbo Sanxing

these meters have the protocol 62056-21Mode E.

I can't read it with the director dlms, I don't know if it really supports this protocol.

Logs

12:39:31 12:39:31.407 Info Opening
12:39:31 12:39:31.410 Info Serial Port Settings: Port Name: COM5 Baud Rate: 300 Data Bits: 7 Parity: Even Stop Bits: One Flow Control: None Eop: None
12:39:31 12:39:31.414 Info Open
12:39:32 12:39:32.419 Sent 2F 3F 21 0D 0A
12:39:33 12:39:33.608 Received 7F 2F 41 55 58 35 4E 33 34 55 30 33 20 5A 31 2D 30 34 00 0D 0A
12:39:33 12:39:33.621 Sent 06 32 35 32 0D 0A
12:39:35 12:39:35.622 Info Closing
12:39:35 12:39:35.622 Info Closed
12:39:35 12:39:35.623 Info Opening
12:39:35 12:39:35.623 Info Serial Port Settings: Port Name: COM5 Baud Rate: 9600 Data Bits: 8 Parity: None Stop Bits: One Flow Control: None Eop: None
12:39:35 12:39:35.626 Info Open
12:39:36 Send SNRM request.
TX: 7E A0 07 03 21 93 0F 01 7E
12:39:36 12:39:36.674 Sent 7E A0 07 03 21 93 0F 01 7E
12:39:41 Data send failed. Try to resend 1/3
12:39:41 12:39:41.675 Sent 7E A0 07 03 21 93 0F 01 7E
12:39:46 Data send failed. Try to resend 2/3
12:39:46 12:39:46.676 Sent 7E A0 07 03 21 93 0F 01 7E
12:39:51 Failed to receive reply from the device in given time.
12:39:51 Send Disconnect request.
TX: 7E A0 07 03 21 53 03 C7 7E
12:39:51 12:39:51.678 Sent 7E A0 07 03 21 53 03 C7 7E
12:39:56 Data send failed. Try to resend 1/3
12:39:56 12:39:56.680 Sent 7E A0 07 03 21 53 03 C7 7E
12:40:01 Data send failed. Try to resend 2/3
12:40:01 12:40:01.681 Sent 7E A0 07 03 21 53 03 C7 7E

From what can be seen it connects but when it negotiates communication, it does not communicate again.

Here is what I get from communicating with the official MeterReading software from Sanxing.

This communication is initiated to request the ID No.

Obtained with Baud Rate: 300, Data Bit: 7, Parity: Even, Stop Bits: One.

7F 7F 7F 7F 2F 3F 21 0D 0A7F 2F 41 55 58 35 4E 33 34 55 30 33 20 5A 31 2D 30 34 00 0D 0A06 30 35 31 0D 0A757F

Obtained with Baud Rate: 9600, Data Bit: 8, Parity: None, Stop Bits: One.

00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007F 81 50 30 82 28 B2 36 B8 36 35 B8 B7 36 A9 03 6681 50 B2 82 28 B7 35 B1 39 B1 B8 33 36 A9 03 E47F 0681 D2 B1 82 30 30 30 B1 30 30 30 30 36 30 30 B1 30 30 C6 C6 30 B2 28 A9 03 E77F 82 30 30 30 B1 30 30 30 30 36 30 30 B1 30 30 C6 C6 30 B2 28 36 30 30 30 30 33 33 36 A9 03 0681 42 30 03 71

If you can help me, I thank you.

The idea is to be able to read it with DLMS Director, and then use Python to read the meters.

Thanks

Kurumi
Kurumi's picture

Hi,

I believe that N34U03 is not supporting DLMS, but N12U02 is supporting and it have a DLMS certificate.

The trace that you added is not DLMS. I believe it's the manufacturer's own protocol. You can try to read the N12U02 using GXDLMSDirector. There are only a few COSEM objects that meter is supporting according to the certification tests.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

frato

Hello, sorry for the delay, I was complicated at work.
try to read meter N12U02 again.
When I try to read it it tells me that the manufacturer is "? A?" and not "AUX" as stated for "Ningbo Sanxing Smart Electric Co."
What I do is create a new manufacturer with id "? A?"
after this I get "Unknow baud rate"

Image: 
Kurumi
Kurumi's picture

Hi,

I believe that your serial port settings are wrong because the manufacturer same that the meter sends is invalid. Only the alphabet is allowed in the manufacturer's name.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

frato

thanks for answering.
Indeed it was a communication problem, now that I communicate with RS485 and not with the optical probe, it detects AUX.
but it still doesn't connect. here happened the log:

10:14:12 10:14:12.270 Info Opening
10:14:12 10:14:12.271 Info Serial Port Settings: Port Name: COM5 Baud Rate: 300 Data Bits: 7 Parity: Even Stop Bits: One Flow Control: None Eop: None
10:14:12 10:14:12.273 Info Open
10:14:13 10:14:13.287 Sent 2F 3F 21 0D 0A
10:14:14 10:14:14.579 Received 7F 2F 41 55 58 35 4E 31 32 55 30 32 20 53 30 31 2E 59 31 2E 4A 30 0D 0A
10:14:14 10:14:14.580 Sent 06 32 35 32 0D 0A
10:14:16 10:14:16.582 Info Closing
10:14:16 10:14:16.582 Info Closed
10:14:16 10:14:16.583 Info Opening
10:14:16 10:14:16.583 Info Serial Port Settings: Port Name: COM5 Baud Rate: 9600 Data Bits: 8 Parity: None Stop Bits: One Flow Control: None Eop: None
10:14:16 10:14:16.585 Info Open
10:14:17 Send SNRM request.
TX: 7E A0 07 03 21 93 0F 01 7E
10:14:17 10:14:17.591 Sent 7E A0 07 03 21 93 0F 01 7E
10:14:22 Data send failed. Try to resend 1/3
10:14:22 10:14:22.605 Sent 7E A0 07 03 21 93 0F 01 7E
10:14:27 Data send failed. Try to resend 2/3
10:14:27 10:14:27.609 Sent 7E A0 07 03 21 93 0F 01 7E
10:14:32 Failed to receive reply from the device in given time.
10:14:32 Send Disconnect request.
TX: 7E A0 07 03 21 53 03 C7 7E
10:14:32 10:14:32.621 Sent 7E A0 07 03 21 53 03 C7 7E
10:14:37 Data send failed. Try to resend 1/3
10:14:37 10:14:37.636 Sent 7E A0 07 03 21 53 03 C7 7E
10:14:42 Data send failed. Try to resend 2/3
10:14:42 10:14:42.641 Sent 7E A0 07 03 21 53 03 C7 7E
10:14:47 Failed to receive reply from the device in given time.
10:14:47 10:14:47.646 Sent 01 42 30 03 0D 0A
10:14:52 10:14:52.650 Info Closing
10:14:52 10:14:52.651 Info Closed

I do not know if it works but, compare the first communication at 300bps and find a difference between the original software of the meter and the DLMSDirector

This I get from the communication with the original soft at 300bps
TX: / ?!
RX: / AUX5N12U02 S01.Y1.J0
TX: 051
and this I get with DLMS DIRECTOR
TX: / ?!
RX: / AUX5N12U02 S01.Y1.J0
TX: 252

Could it be that the last parameter that is sent in this case 051 and 252 is to establish the connection at 9600bps? maybe this is the problem why it won't connect.

Kurumi
Kurumi's picture

Hi,

Another application is using IEC 62056-21 and Not DLMS. I'm not sure is your meter version supporting DLMS or only IEC 62056-21

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

frato

I understand, I suspected this since in the original software it said IEC 62056-21, although in the configurations it says DLMS, but it does not provide many configurations. Attached photo of the settings.

Consult you do not know where I can obtain the documentation of the IEC 62056-21 protocol, so in this way I do some research and maybe make a python script to be able to obtain the data I need.

Thank you very much for your attention and your time.

Image: 
Kurumi
Kurumi's picture

Hi,

IEC 62056-21 is standard and you should find it easily. It's quite easy standard, but I need to warn you that it's a very open standard and different manufacturers are using it differently.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi