A_ADC_Response-PDU or A_SystemNetworkParameter_* not parsed correctly
Opened this issue · 1 comments
Description of problem:
A_ADC_Response-PDU or A_SystemNetworkParameter_* not parsed correctly.
This was received via a tunnelling connection with an unrelated interface once when first installing a new KNX IP Secure Router to the system.
I failed to reproduce the exception after that. It probably resulted from a system broadcast message.
- using xknx standalone
- using Home-Assistant knx integration
Version information:
- xknx release with the issue: 1.0.0
- last working xknx / Home-Assistant release (if known):
Traceback (if applicable):
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 1027, in _read_ready
self._protocol.datagram_received(data, addr)
File "/usr/local/lib/python3.10/site-packages/xknx/io/transport/udp_transport.py", line 49, in datagram_received
self.data_received_callback(data, addr)
File "/usr/local/lib/python3.10/site-packages/xknx/io/transport/udp_transport.py", line 82, in data_received_callback
knxipframe.from_knx(raw)
File "/usr/local/lib/python3.10/site-packages/xknx/knxip/knxip.py", line 115, in from_knx
self.init(self.header.service_type_ident).from_knx(
File "/usr/local/lib/python3.10/site-packages/xknx/knxip/tunnelling_request.py", line 59, in from_knx
pos += self.cemi.from_knx(raw[pos:])
File "/usr/local/lib/python3.10/site-packages/xknx/knxip/cemi_frame.py", line 127, in from_knx
return self.from_knx_data_link_layer(raw)
File "/usr/local/lib/python3.10/site-packages/xknx/knxip/cemi_frame.py", line 187, in from_knx_data_link_layer
self.payload.from_knx(apdu)
File "/usr/local/lib/python3.10/site-packages/xknx/telegram/apci.py", line 472, in from_knx
channel, self.count, self.value = struct.unpack("!BBH", raw[1:])
struct.error: unpack requires a buffer of 4 bytes
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please make sure to update to the latest version of xknx (or Home Assistant) and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.