By jozsad, 9 February, 2023 Forums Gurux.DLMS Hi, I am trying to communicate with SL7000 meter using GuruxDLMS.c library. I've made a cross compilation for i.MX6 processor for the library and the GuruxDLMSClientExample. The Processor card is connecting to the meter using RS232, when I tried to connect I got an error message : Invalid frame 10. Expected 30. I attached to log for the communication. Can you help me to solved this problem ? Thank you for the information and your feedback, Best regards, Dávid Image Hi, Can you share this as a… Hi, Can you share this as a text? Picture is so hard to read. BR, Mikko The .log file format is not… The .log file format is not a valid extension for upload form, so I put it to comment. Log: # ./gurux.dlms.client.bin -S /dev/ttymxc2 -t Verbose -i HDLC -c 1 InitializeConnection TX: 7E A0 07 03 03 93 8C 11 7E RX: 7E A0 07 03 03 93 8C 11 7E TX: 7E A0 2B 03 03 10 78 BF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF C5 E4 7E RX: 7E A0 2B 03 03 10 78 BF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF C5 E4 7EInvalid frame 10. Expected 30. Data send failed. Try to resend 1/3 7E A0 2B 03 03 10 78 BF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF C5 E4 7EInvalid frame 10. Expected 30. Data send failed. Try to resend 2/3 7E A0 2B 03 03 10 78 BF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF C5 E4 7EInvalid frame 10. Expected 30. Data send failed. Try to resend 3/3 7E A0 2B 03 03 10 78 BF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF C5 E4 7EInvalid frame 10. Expected 30. AARQRequest failed Data receive failed. TX: 7E A0 07 03 03 53 80 D7 7E RX: 7E A0 07 03 03 53 80 D7 7E Data receive failed. ============================================================================================ ./gurux.dlms.client.bin -S /dev/ttymxc2 -t Verbose -i HDLC -c 1 -a Low -P ABCDEFGH InitializeConnection TX: 7E A0 07 03 03 93 8C 11 7E RX: 7E A0 07 03 03 93 8C 11 7E TX: 7E A0 44 03 03 10 65 94 E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 41 42 43 44 45 46 47 48 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 19 02 7E RX: 7E A0 44 03 03 10 65 94 E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 41 42 43 44 45 46 47 48 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 19 02 7EInvalid frame 10. Expected 30. Data send failed. Try to resend 1/3 7E A0 44 03 03 10 65 94 E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 41 42 43 44 45 46 47 48 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 19 02 7EInvalid frame 10. Expected 30. Data send failed. Try to resend 2/3 7E A0 44 03 03 10 65 94 E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 41 42 43 44 45 46 47 48 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 19 02 7EInvalid frame 10. Expected 30. Data send failed. Try to resend 3/3 7E A0 44 03 03 10 65 94 E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 41 42 43 44 45 46 47 48 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 19 02 7EInvalid frame 10. Expected 30. AARQRequest failed Data receive failed. TX: 7E A0 07 03 03 53 80 D7 7E RX: 7E A0 07 03 03 53 80 D7 7E Data receive failed. Hi, You are only receiving… Hi, You are only receiving the echo from the RS-232 converter. If you remove the device you get the same reply. The meter doesn't reply for some reason. Your server address might also be different than the meter expects. Try this: -S /dev/ttymxc2 -t Verbose -i HDLC -s 145 Check your cables if you still don't can't connect to the meter. BR, Mikko Hi, The echo problem is… Hi, The echo problem is solved, there was an RS485 cable instead of RS232. Unfortunately after I request the meter there is no reply data. Best regards, Dávid Log in or register to post comments
The .log file format is not… The .log file format is not a valid extension for upload form, so I put it to comment. Log: # ./gurux.dlms.client.bin -S /dev/ttymxc2 -t Verbose -i HDLC -c 1 InitializeConnection TX: 7E A0 07 03 03 93 8C 11 7E RX: 7E A0 07 03 03 93 8C 11 7E TX: 7E A0 2B 03 03 10 78 BF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF C5 E4 7E RX: 7E A0 2B 03 03 10 78 BF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF C5 E4 7EInvalid frame 10. Expected 30. Data send failed. Try to resend 1/3 7E A0 2B 03 03 10 78 BF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF C5 E4 7EInvalid frame 10. Expected 30. Data send failed. Try to resend 2/3 7E A0 2B 03 03 10 78 BF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF C5 E4 7EInvalid frame 10. Expected 30. Data send failed. Try to resend 3/3 7E A0 2B 03 03 10 78 BF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF C5 E4 7EInvalid frame 10. Expected 30. AARQRequest failed Data receive failed. TX: 7E A0 07 03 03 53 80 D7 7E RX: 7E A0 07 03 03 53 80 D7 7E Data receive failed. ============================================================================================ ./gurux.dlms.client.bin -S /dev/ttymxc2 -t Verbose -i HDLC -c 1 -a Low -P ABCDEFGH InitializeConnection TX: 7E A0 07 03 03 93 8C 11 7E RX: 7E A0 07 03 03 93 8C 11 7E TX: 7E A0 44 03 03 10 65 94 E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 41 42 43 44 45 46 47 48 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 19 02 7E RX: 7E A0 44 03 03 10 65 94 E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 41 42 43 44 45 46 47 48 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 19 02 7EInvalid frame 10. Expected 30. Data send failed. Try to resend 1/3 7E A0 44 03 03 10 65 94 E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 41 42 43 44 45 46 47 48 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 19 02 7EInvalid frame 10. Expected 30. Data send failed. Try to resend 2/3 7E A0 44 03 03 10 65 94 E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 41 42 43 44 45 46 47 48 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 19 02 7EInvalid frame 10. Expected 30. Data send failed. Try to resend 3/3 7E A0 44 03 03 10 65 94 E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 41 42 43 44 45 46 47 48 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 19 02 7EInvalid frame 10. Expected 30. AARQRequest failed Data receive failed. TX: 7E A0 07 03 03 53 80 D7 7E RX: 7E A0 07 03 03 53 80 D7 7E Data receive failed.
Hi, You are only receiving… Hi, You are only receiving the echo from the RS-232 converter. If you remove the device you get the same reply. The meter doesn't reply for some reason. Your server address might also be different than the meter expects. Try this: -S /dev/ttymxc2 -t Verbose -i HDLC -s 145 Check your cables if you still don't can't connect to the meter. BR, Mikko
Hi, The echo problem is… Hi, The echo problem is solved, there was an RS485 cable instead of RS232. Unfortunately after I request the meter there is no reply data. Best regards, Dávid
Hi, Can you share this as a…
Hi,
Can you share this as a text? Picture is so hard to read.
BR,
Mikko
The .log file format is not…
The .log file format is not a valid extension for upload form, so I put it to comment.
Log:
# ./gurux.dlms.client.bin -S /dev/ttymxc2 -t Verbose -i HDLC -c 1
InitializeConnection
TX: 7E A0 07 03 03 93 8C 11 7E
RX: 7E A0 07 03 03 93 8C 11 7E
TX: 7E A0 2B 03 03 10 78 BF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF C5 E4 7E
RX: 7E A0 2B 03 03 10 78 BF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF C5 E4 7EInvalid frame 10. Expected 30.
Data send failed. Try to resend 1/3
7E A0 2B 03 03 10 78 BF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF C5 E4 7EInvalid frame 10. Expected 30.
Data send failed. Try to resend 2/3
7E A0 2B 03 03 10 78 BF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF C5 E4 7EInvalid frame 10. Expected 30.
Data send failed. Try to resend 3/3
7E A0 2B 03 03 10 78 BF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF C5 E4 7EInvalid frame 10. Expected 30.
AARQRequest failed Data receive failed.
TX: 7E A0 07 03 03 53 80 D7 7E
RX: 7E A0 07 03 03 53 80 D7 7E
Data receive failed.
============================================================================================
./gurux.dlms.client.bin -S /dev/ttymxc2 -t Verbose -i HDLC -c 1 -a Low -P ABCDEFGH
InitializeConnection
TX: 7E A0 07 03 03 93 8C 11 7E
RX: 7E A0 07 03 03 93 8C 11 7E
TX: 7E A0 44 03 03 10 65 94 E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 41 42 43 44 45 46 47 48 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 19 02 7E
RX: 7E A0 44 03 03 10 65 94 E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 41 42 43 44 45 46 47 48 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 19 02 7EInvalid frame 10. Expected 30.
Data send failed. Try to resend 1/3
7E A0 44 03 03 10 65 94 E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 41 42 43 44 45 46 47 48 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 19 02 7EInvalid frame 10. Expected 30.
Data send failed. Try to resend 2/3
7E A0 44 03 03 10 65 94 E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 41 42 43 44 45 46 47 48 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 19 02 7EInvalid frame 10. Expected 30.
Data send failed. Try to resend 3/3
7E A0 44 03 03 10 65 94 E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 41 42 43 44 45 46 47 48 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 19 02 7EInvalid frame 10. Expected 30.
AARQRequest failed Data receive failed.
TX: 7E A0 07 03 03 53 80 D7 7E
RX: 7E A0 07 03 03 53 80 D7 7E
Data receive failed.
Hi, You are only receiving…
Hi,
You are only receiving the echo from the RS-232 converter. If you remove the device you get the same reply. The meter doesn't reply for some reason.
Your server address might also be different than the meter expects. Try this:
-S /dev/ttymxc2 -t Verbose -i HDLC -s 145
Check your cables if you still don't can't connect to the meter.
BR,
Mikko
Hi, The echo problem is…
Hi,
The echo problem is solved, there was an RS485 cable instead of RS232.
Unfortunately after I request the meter there is no reply data.
Best regards,
Dávid