Hi everyone,
I'm an electronic engineering student and I'm working on a smart meter reading project. I am testing the provided example code in python to implement it on a raspberry Pi. I am looking to have connection to the meter as shown in the example of the python code with serial communication. However, I get an error sending data "Data send failed. Try to resend 1/2". After two attempts, the disconnection request is sent automatically. How can I solve this problem?
The meter is an MCS301, from the METCOM brand, in addition, I am using the RS-485 serial communication, with an RS-485 to USB converter to connect it with the computer. Thanks a lot.
There are two reasons why communication usually fails with a serial port.
The client or server address is wrong or serial port settings are wrong.
Try to change Interface from HDLC to HdlcWithModeE. Check your cables if the meter is not replying anything. Serial port settings for Mode E are
Baudrate: 300
7Even1
Thanks for the reply. I changed the serial port values to the ones you mention but I still get the same problem. How can I change the HDLC mode to HdlcWithModeE. Thanks a lot.
If it also fails with GXDLMSDirector check your cables. Did you try to change Interface from HDLC to HdlcWithModeE? There is something wrong with your cables or serial port settings If you didn't receive any reply from the meter.
Hi,
Hi,
There are two reasons why communication usually fails with a serial port.
The client or server address is wrong or serial port settings are wrong.
Try to change Interface from HDLC to HdlcWithModeE. Check your cables if the meter is not replying anything. Serial port settings for Mode E are
Baudrate: 300
7Even1
BR,
Mikko
Thanks for the reply. I
Thanks for the reply. I changed the serial port values to the ones you mention but I still get the same problem. How can I change the HDLC mode to HdlcWithModeE. Thanks a lot.
Hi,
Hi,
Can you try this with GXDLMSDirector first? When you can connect with it I can give you the communication parameters.
BR,
Mikko
Yes. I've tried with
Yes. I've tried with GXDLMSDirector before, but i had the same problem, thats why i'm trying with the python example.
Hi,
Hi,
If it also fails with GXDLMSDirector check your cables. Did you try to change Interface from HDLC to HdlcWithModeE? There is something wrong with your cables or serial port settings If you didn't receive any reply from the meter.
BR,
Mikko