IEC 62056-21 Mode E Optical Probe Sign-On and Baud Rate Switch Failure
-
Field Troubleshooting Case
When connecting an optical probe to legacy IEC/DLMS hybrid meters, the sign-on handshake succeeds at 300 bps (7E1 parity), but switching to high-speed HDLC mode at 9600 bps or 19200 bps fails, terminating the session.
Optical Sign-on Trace (300 Baud, 7E1)
- Client -> Meter:
/?!<CR><LF>(2F 3F 21 0D 0A) - Meter -> Client:
/LGZ4ZMD4104400.B34<CR><LF>- Identification character:
Z(Baud rate identification) - Mode character:
2(Mode E - transition to DLMS/HDLC)
- Identification character:
- Client -> Meter: ACK/Option Select:
<ACK> 2 5 2 <CR><LF>(06 32 35 32 0D 0A)2: Normal protocol mode5: Baud rate 9600 bps2: Mode E (HDLC)
The Failure
After sending the ACK message, the gateway switched the serial port baud rate to 9600 bps immediately without inserting the required delay $T_a$, causing the first HDLC SNRM frame to be sent while the meter optical receiver was still re-configuring its UART clock.
- Client -> Meter:
-
Also note that during Mode E sign-on, the parity changes: Initial handshake is 300 baud, 7 data bits, Even parity, 1 stop bit (7E1). Once the baud rate switch occurs for DLMS/HDLC, the UART MUST switch to 8 data bits, No parity, 1 stop bit (8N1).
-
Also note that during Mode E sign-on, the parity changes: Initial handshake is 300 baud, 7 data bits, Even parity, 1 stop bit (7E1). Once the baud rate switch occurs for DLMS/HDLC, the UART MUST switch to 8 data bits, No parity, 1 stop bit (8N1).
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login