Open SimChucky opened 9 years ago
Hi Chucky,
looks like a problem of libmbus, because MBCONF doesn't fail. Unfortunaley i don't have any M-Bus hardware available. Could you trace the M-Bus messages of MBCONF?
Stefan
Of course, here it is:
TX-Buffer:
10 7B 04 7F 16
RX-Buffer:
68 CC CC 68 08 04 72 73 16 00 00 A3 1D 02 02 00 20 00 00 01 FF 54 01 02 FF 52 05 00 01 FD
DC FF 64 01 01 FF 61 00 01 FF 62 00 06 FF 63 00 00 01 00 00 00 86 10 82 FF 80 FF 00 34 A2 01
00 00 00 86 10 82 FF 81 FF 00 B4 71 00 00 00 00 86 20 82 FF 80 FF 00 00 00 00 00 00 00 86 20
82 FF 81 FF 00 00 00 00 00 00 00 86 90 00 FF 93 FF 10 03 4E 00 00 00 00 86 90 00 FF 93 FF 20
67 51 00 00 00 00 86 A0 00 FF 93 FF 10 00 00 00 00 00 00 86 A0 00 FF 93 FF 20 00 00 00 00 00
00 86 90 00 FF 93 FF 30 45 69 00 00 00 00 86 90 00 FF 93 FF 40 95 20 00 00 00 00 86 A0 00 FF
93 FF 30 00 00 00 00 00 00 86 A0 00 FF 93 FF 40 00 00 00 00 00 00 0F AB 16
It occurred to me that the MBCONF sends a slightly different request message - 7B and 7F instead of 5B and 5F.
Looks like a problem with Frame Count Bit handling. I will try to fix it.
@Chucky89
Please try branch https://github.com/rscada/libmbus/tree/fix-fcb-handling
The changes are only compile tested.
Sorry to report that the outcome is the same. No response frame recieved.
I'm trying to locate the error parallely.
Hi Chucky,
maybe it's a timing issue. If you have the equipment, you could try to trace the UART on your M-Bus master.
Hello.
Every time I try to connect to the Meter ("Gossen Metrawatt") for the first time after turning on, I get the following error, using the function
mbus_read_slave
:I can only recieve the frame if I first run a query via the Windows configuration tool MBCONF. Afterwards everything works as expected.
The libmbus app itself is running on a Wago 750-8202 SPS. Hope you can give me a hand on this error, as I don't know if the problem is the libmbus or the meter itself.