-
-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not parse, APDU length +1 #112
Comments
Hi @Julius2342 any help on this? |
Hi @ascillato : to be honest, i did not really have a look at it yet ... I was pretty busy with work and family. |
may you print out the packet which fails? Bc then we can write a unit test and fix it against it? |
i just looked at the code (
So the mdpu_len should point directly to what is described as "Data Length" in your description. |
Hi. Thanks for the reply. There is no rush with this. I got my devices working without problem when I reprogram my device to send the actual UDP package but with len -1. When I have that error on XKNX, the console output of my device say:
I found that the ESP_KNX_IP Library send the package with a Checksum at the end. When I made that the UDP package that my device sent, be the same but without the last character, I was taking out the CheckSum Byte. That's why XKNX was not able to process the last byte with the unmodified ESP_KNX_Library. The last Byte was not an APDU part, was a Checksum. So, What do you think? It's a job for XKNX to read the checksum or ESP_KNX_IP Library should eliminate it? |
Following is the code for sending the KNX Telegram on ESP_KNX_IP Library. @sisamiwe have checked that the ESP_KNX_IP library works on a KNX Installation. So, @Julius2342 , XKNX should check the checksum?
If I change the line The checksum is part of KNX-IP Protocol? |
I could not find any information about this. The checksum is part of KNX-IP Protocol ? |
No idea :) @DrMurx : do you know this by chance? |
Not from the back of my head. I'll try to wrap my head around this on the weekend. |
Could not find any info about this, but the author of the KNX Library for ESP8266 (envy) agreed to eliminate the checksum, so now the library works great with XKNX and Home Assistant. Thanks Closing issue... |
Hi,
Great software!
I'm using XKNX v0.8.2 on Home Assistant v0.64.3.
XKNX connects to a KNXd server on the same Raspberry Pi than Home Assistant.
I'm using ESP_KNX_IP on a NodeMCU.
My problem is that using the ESP_KNX_IP as a KNX Switch, XKNX say:
But the KNX protocol is like this:
So, if APDU should be 2 bytes, why XKNX expects 1 byte?
If I modify the ESP_KNX_IP code to send 1 APDU Byte, XKNX recognices the telegram sent by ESP_KNX_IP without error. The ESP_KNX_IP recognices the messages from XKNX without problem.
What I'm missing?
Thanks
The text was updated successfully, but these errors were encountered: