Go Down

Topic: Serial Interfacing with HXE12 electrical meter - IEC62056-21 (Read 3485 times) previous topic - next topic


I am trying to do serial communication with the optical port on HXE12 electricity meter, I have the software provided with the meter and it is working fine to fetch the data from it.

The settings in the software
Optical port

The problem is when i try to access it from hyperterminal i am unable to get any response, i have managed to get a serial dump when the software provided by the meter company is running.

Serial Dump

When i try to send the same command /?! to initiate the connection i am unable to get any response. there are several special characters in the dump before the start of any command.

I am relatively new to this field so any help would be highly appreciated



I have managed to figure out the special characters in the start the ASCII the starting characters in 127 (DEL). Could the Stop bits be affecting the communication because I am still unable to get any response from the meter.


I realise this thread is a bit old, but seeing that no-one has replied and in case you're still trying...    ...I've had some limited success trying to do what you are doing, albeit with a different make/model of meter.

I'm assuming you're trying Hyperterminal from a PC, in which case try initial settings for the com port as follows:
300 bits per seconds, 7 Data bits, Even parity, 1 Stop bit and probably 'None' for flow control (unless the serial converting hardware you're using dictates otherwise..)

You will also need to ensure that the data you send is terminated with carriage return and line feed characters.

Without the spec for your meter I'm assuming it will start communicating at the lowest speed (300 baud) - however line 2 of your dump reads:


where the '4' indicates that the meter is negotiating for a faster speed of 4800 (0 = 300, 1=600, 2=1200, 3=2400, 4=4800) so it may be using a different default.

I used Realterm instead of Hyperterminal as it allowed for sending pre-configured strings of data and also allowed for the baud rate to be changed more easily mid conversation if required.

Hope this helps.

Go Up