Skip to content
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

KNXD crashes with TPUART-USB-Light (NCN-ESP32 version) #594

Open
JackyKNX opened this issue Nov 20, 2024 · 6 comments
Open

KNXD crashes with TPUART-USB-Light (NCN-ESP32 version) #594

JackyKNX opened this issue Nov 20, 2024 · 6 comments

Comments

@JackyKNX
Copy link

JackyKNX commented Nov 20, 2024

Hi,

I'm still having issues with knxd and the new TPUART-USB-Light (from busware.de).

Debian x64 and knxd updated yesterday to version 0.14.67.1

My knxd.conf:

KNXD_OPTS="--eibaddr=1.1.128 --client-addrs=1.1.30:8 -D -T -R -S -b tpuarts:/dev/knx1"

After a few seconds knxd crashes and reports send timeout and link down, also not being able to bring the link up:

Nov 20 12:15:04 orangepizero2 knxd[9631]: Layer 0 [24:A.tpuarts/log 46.824] Send(018): 80 9C 81 22 82 02 83 2E 84 03 85 D1 86 00 87 00 48 BF
Nov 20 12:15:06 orangepizero2 knxd[9631]: Layer 8 [21:A.tpuarts/LowF 48.824] send timeout: retry
Nov 20 12:15:06 orangepizero2 knxd[9631]: Layer 0 [24:A.tpuarts/log 48.824] Send(018): 80 9C 81 22 82 02 83 2E 84 03 85 D1 86 00 87 00 48 BF
Nov 20 12:15:07 orangepizero2 knxd[9631]: Layer 0 [22:A.tpuarts/log 49.822] Stop
Nov 20 12:15:07 orangepizero2 knxd[9631]: Layer 0 [24:A.tpuarts/log 49.823] Stop
Nov 20 12:15:07 orangepizero2 knxd[9631]: Layer 0 [24:A.tpuarts/log 49.839] Errored
Nov 20 12:15:07 orangepizero2 knxd[9631]: Layer 8 [21:A.tpuarts/LowF 49.839] state: wait > new
Nov 20 12:15:07 orangepizero2 knxd[9631]: Layer 0 [22:A.tpuarts/log 49.839] Errored
Nov 20 12:15:07 orangepizero2 knxd[9631]: Layer 6 [19:A.tpuarts/Conn 49.839] sendNext called, send_more set
Nov 20 12:15:07 orangepizero2 knxd[9631]: Layer 6 [19:A.tpuarts/Conn 49.840] is OK
Nov 20 12:15:07 orangepizero2 knxd[9631]: Layer 5 [19:A.tpuarts/Conn 49.840] up => error
Nov 20 12:15:07 orangepizero2 knxd[9631]: Layer 4 [19:A.tpuarts/Conn 49.840] link state changed: error
Nov 20 12:15:07 orangepizero2 knxd[9631]: Layer 6 [19:A.tpuarts/Conn 49.840] not up
Nov 20 12:15:07 orangepizero2 knxd[9631]: Layer 6 [19:A.tpuarts/Conn 49.840] not up
Nov 20 12:15:07 orangepizero2 knxd[9631]: F00000105: [19:A.tpuarts] Link down, terminating
Nov 20 12:15:07 orangepizero2 knxd[9631]: Layer 4 [19:A.tpuarts/Conn 49.840] R Stopping
Nov 20 12:15:07 orangepizero2 knxd[9631]: Layer 5 [19:A.tpuarts/Conn 49.840] error => >down
Nov 20 12:15:07 orangepizero2 knxd[9631]: Layer 4 [19:A.tpuarts/Conn 49.840] link state changed: error
Nov 20 12:15:07 orangepizero2 knxd[9631]: Layer 0 [22:A.tpuarts/log 49.841] Closing
Nov 20 12:15:07 orangepizero2 knxd[9631]: Layer 2 [21:A.tpuarts/LowF 49.841] Close C
Nov 20 12:15:07 orangepizero2 knxd[9631]: Layer 0 [24:A.tpuarts/log 49.841] Closing
Nov 20 12:15:07 orangepizero2 knxd[9631]: Layer 2 [23:A.tpuarts/TPU_ser 49.841] Close F

I've attached full log file.
knxd.zip

Anyone having same issue, any ideas how to solve?

thanks,
Jacek

@smurfix
Copy link
Member

smurfix commented Nov 20, 2024

Something appears to be eating the data on the serial line. Are you sure that the system doesn't have ModemManager, or a serial console, or something else along these lines on the port?

@JackyKNX
Copy link
Author

Hey, yes, I'm sure, no serial console enabled etc., I've also tested on Rasp3B with serial console disabled, same issues.

BTW, it works like a charm (not a single failure for a few years) with old TP-UART (ATMEGA)...

@JackyKNX
Copy link
Author

JackyKNX commented Nov 20, 2024

I replicated the issue on freshly installed RPI (Raspbian 64bit), the same knxd version and configuration. Attached some additional logs:
knxd_rpi.zip

@mschulte
Copy link

Damn - i think i added a duplicated issue here: #595

pretty much looks similar to my problem.

@JackyKNX
Copy link
Author

Hello Matthias, any chance for a fix? I can send you the light TPUART if this helps... Thanks.

1 similar comment
@JackyKNX
Copy link
Author

Hello Matthias, any chance for a fix? I can send you the light TPUART if this helps... Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants