Skip to content

connection timed out, retrying... #15

@hellosingam

Description

@hellosingam

knx client always giving connection timeout using knxnet/ip?

Kindly looking into it?

[info] "2025-05-05T04:08:52.705Z" 'Loading knx: KNXnet/IP protocol implementation for Node(>=6.x), version: 2.5.4'
[warn] 2025-05-05 04:08:56.350 connection timed out, retrying...
[warn] 2025-05-05 04:08:59.356 connection timed out, retrying...
[warn] 2025-05-05 04:09:08.386 connection timed out, retrying...
[warn] 2025-05-05 04:09:11.404 connection timed out, retrying...
[warn] 2025-05-05 04:09:23.459 connection timed out, retrying...
[warn] 2025-05-05 04:09:26.466 connection timed out, retrying...
[warn] 2025-05-05 04:09:41.494 connection timed out, retrying...
[warn] 2025-05-05 04:09:44.498 connection timed out, retrying...
[warn] 2025-05-05 04:10:02.516 connection timed out, retrying...
[warn] 2025-05-05 04:10:05.520 connection timed out, retrying...
[warn] 2025-05-05 04:10:26.559 connection timed out, retrying...
[warn] 2025-05-05 04:10:29.573 connection timed out, retrying...
[warn] 2025-05-05 04:10:53.602 connection timed out, retrying...
[warn] 2025-05-05 04:10:56.605 connection timed out, retrying...
[warn] 2025-05-05 04:11:23.636 connection timed out, retrying...
[warn] 2025-05-05 04:11:26.643 connection timed out, retrying...
[warn] 2025-05-05 04:11:56.662 connection timed out, retrying...
[warn] 2025-05-05 04:11:59.669 connection timed out, retrying...
[warn] 2025-05-05 04:12:32.694 connection timed out, retrying...
[warn] 2025-05-05 04:12:35.698 connection timed out, retrying...
[warn] 2025-05-05 04:13:11.732 connection timed out, retrying...
[warn] 2025-05-05 04:13:14.733 connection timed out, retrying...

client code :

const knx = require('knx');

// Create a connection to the KNX/IP interface
const connection = knx.Connection({
ipAddr: '127.0.0.1', // Replace with your KNX gateway IP
ipPort: 3671, // Default KNX port
//physAddr: '15.15.15', // Optional: your KNX physical address
loglevel: 'info', // Logging level (optional)
handlers: {
connected: function () {
console.log('Connected to KNX');

  // Example: Write ON (true) to group address 1/0/9
  connection.write('1/1/1', true, function (err) {
    if (err) {
      console.error('Write error:', err);
    } else {
      console.log('Light switched ON');
    }
  });

  // Read current value from group address
  connection.read('1/1/2');
},

event: function (evt, src, dest, value) {
  console.log(`KNX Event: ${evt} from ${src} to ${dest} with value ${value}`);
},

error: function (connstatus) {
  console.error('KNX connection error:', connstatus);
}

}
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions