Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Elias Karakoulakis
@ekarak
give it a try
datapoint.on('event', function(evt, jsvalue) { ... where evt is GroupValue_Write etc and jsvalue is the interpreted value
Patrik Åkerfeldt
@pakerfeldt
Thanks! Will do, tomorrow.
Elias Karakoulakis
@ekarak
I'll leave you to do the node-red change. I guess the best thing is to add a 2nd output connector to emit all events from the new emitter and leave the existing 1st output connector to only emit changes
warm regards and happy new year!
Patrik Åkerfeldt
@pakerfeldt
@ekarak A second output on the same node you mean? Or a new node type? Or just a flag on the configuration of the node? :)
And happy new year to you too!
Elias Karakoulakis
@ekarak
2nd connector on the knx-device node, yeah
it could also be a flag. But I think the 2nd connector is easier to implement
and now that NR has added connector labels its easier to discern which connector does what
Patrik Åkerfeldt
@pakerfeldt
Also, there seems to be a bug in node-red-contrib-knxjs. If I add a knx-device for some GA and deploy and then later change it to some other GA the old listener seems to persist and push messages out through the node.
I'll see if I can troubleshoot the issue.
Chris
@cr79
Hello everybody,
does anyone have any idea how to emulate KNX events for development environments and tests? Thank you in advance.
Chris
Elias Karakoulakis
@ekarak
hey Chris, what do you want to be emulating ?
you can emulate the KNX UDP packets in your local network, if you like. Should you need to test against real KNX devices then you'll need an KNX/IP router
(or a machine running eibd/knxd)
@pakerfeldt thanks for the bug report. I'll try to look into this later
Chris
@cr79
I need a solution for development of my visualization frontend and automation solution without my KNX bus in the near. To generate and assert UDP packets sounds good. My hope is to find a solution without going down to the network layer. May be I can intercept knx.js datapoint-communication in a good way and give them a simulated behaviour. Any smart idea?
Elias Karakoulakis
@ekarak
have you taken a look at already existing apps?
like iobroker for example
because its a different thing if you have the time and capacity to build a visualisation from scratch...
Chris
@cr79
Yes, I tried some apps but nothing worked perfect in my case.
Patrik Åkerfeldt
@pakerfeldt
@ekarak Are you considering anything in particular regarding https://bitbucket.org/ekarak/knx.js/pull-requests/29/issue-45-emit-raw-events-from-datapoints/diff or can we get it merged? Maybe after my comment? :)
Patrik Åkerfeldt
@pakerfeldt
@cr79 One idea is to create an SSH tunnel to your local network to access KNX bridge. I do that from time to time.
That isn't solving the problem with tests ofc.
olapola85
@olapola85

Hello all! Im getting this

KNX Connection Error: E_CONNECTION_ID
KNX: successfully connected to 192.168.1.3:3671

And it just keeps going on
koenti
@koenti

Hi @ekarak , I'm able to receive all KNX packages from by bus through Siemens IP Interface N148. But sending packages to the bus isn't working in my case. After spending some hours, I need some advice.
On the same PC and with KNX ETS software I'm able to receive and send packages.
Can you give me some advice?? I used 'connection.write("0/1/24", 1);' after receivig the first event.
This is the debug output info:
2018-01-27 14:59:29.698 (uninitialized): initializing private connection to 192.168.2.xx
2018-01-27 14:59:29.705 (uninitialized): candidate interface: Ethernet ({"address":"192.168.2.xxx","netmask":"255.255.255.0","family":"IPv4","mac":"xxxxx","internal":false,"cidr":"192.168.2.xxx/24"})
2018-01-27 14:59:29.722 (uninitialized): IpTunnelingConnection.BindSocket 192.168.2.115:58456
2018-01-27 14:59:29.724 (connecting): useTunneling=true
2018-01-27 14:59:29.726 (connecting): Connecting via 192.168.2.xxx...
2018-01-27 14:59:29.730 (connecting): Sending CONNECT_REQUEST ==> {"header_length":6,"protocol_version":16,"service_type":517,"total_length":26,"hpai":{"protocol_type":1,"tunnel_endpoint":"0.0.0.0:0"},"tunn":{"protocol_type":1,"tunnel_endpoint":"0.0.0.0:0"},"cri":{"connection_type":4,"knx_layer":2,"unused":0},"connstate":{"state":0}}
2018-01-27 14:59:29.732 (connecting): UDP send OK: CONNECT_REQUEST 06100205001a0801000000000000080100000000000004040200
2018-01-27 14:59:29.734 (connecting): Inbound message: 06100206001441000801000000000000040411da
2018-01-27 14:59:29.737 (connecting): Received CONNECT_RESPONSE message: {"header_length":6,"protocol_version":16,"service_type":518,"total_length":20,"connstate":{"channel_id":65,"status":0},"hpai":{"header_length":8,"protocol_type":1,"tunnel_endpoint":"0.0.0.0:0"},"cri":{"header_length":4,"connection_type":4,"knx_layer":17,"unused":218}}
2018-01-27 14:59:29.738 (connecting): got connect response
2018-01-27 14:59:29.740 (connecting): Sending CONNECTIONSTATE_REQUEST ==> {"header_length":6,"protocol_version":16,"service_type":519,"total_length":16,"hpai":{"protocol_type":1,"tunnel_endpoint":"0.0.0.0:0"},"connstate":{"channel_id":65,"state":0}}
2018-01-27 14:59:29.742 (connecting): UDP send OK: CONNECTIONSTATE_REQUEST 06100207001041000801000000000000
2018-01-27 14:59:29.743 (connecting): Inbound message: 0610020800084100
2018-01-27 14:59:29.744 (connecting): Received CONNECTIONSTATE_RESPONSE message: {"header_length":6,"protocol_version":16,"service_type":520,"total_length":8,"connstate":{"channel_id":65,"status":0}}
2018-01-27 14:59:29.745 (connecting): Got connection state response, connstate: NO_ERROR, channel ID: 65
2018-01-27 14:59:29.747 (connected): --- Connected in TUNNELING mode ---
2018-01-27 14:59:29.749 (idle): idle...
Connected!
2018-01-27 14:59:31.121 (idle): Inbound message: 061004200015044100002900bcd011fe1800010081
2018-01-27 14:59:31.128 (idle): Received TUNNELING_REQUEST_L_Data.ind message: {"header_length":6,"protocol_version":16,"service_type":1056,"total_length":21,"tunnstate":{"header_length":4,"channel_id":65,"seqnum":0,"rsvd":0},"cemi":{"msgcode":41,"addinfo_length":0,"ctrl":{"frameType":1,"reserved":0,"repeat":1,"broadcast":1,"priority":3,"acknowledge":0,"confirm":0,"destAddrType":1,"hopCount":5,"extendedFrame":0},"src_addr":"1.1.254","dest_addr":"3/0/0","apdu":{"apdu_length":1,"apdu_raw":{"type":"Buffer","data":[0,129]},"tpci":0,"apci":"GroupValue_Write","data":{"type":"Buffer","data":[1]}}}}
2018-01-27 14:59:31.130 (recvTunnReqIndication): Sending TUNNELING_ACK ==> {"header_length":6,"protocol_version":16,"service_type":1057,"total_length":10,"hpai":{"protocol_type":1,"tunnel_endpoint":"0.0.0.0:0"},"tunnstate":{"channel_id":65,"tunnel_endpoint":"192.168.2.98:3671","seqnum":0}}
2018-01-27 14:59:31.131 (idle): idle...

2018-01-27 14:59:31 ** KNX EVENT: GroupValue_Write, src: 1.1.254, dest: 3/0/0, value: 1

output of the write is too long for this post......

koenti
@koenti
Somebody an idea why my sended packages are not seen on the bus?
Cristian Andres Vargas Gonzalez
@cristian-programmer
hello guys!!!!
I am from colombia
:)
I am a question, is posible use library knx in windows ?
Elias Karakoulakis
@ekarak
it should be, yes
there's no native binding in knx.js that you would need to compile
giggo
@giggo
Any idea why KNX events get duplicated the longer it runs?
verbose: 2019-01-31 22:42:43 KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43
KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43 KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43
KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43 KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43
KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43 KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43
KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43 KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43
KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43 KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43
KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43 KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43
KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43 KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43
KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43 KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43
KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43 KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43
KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43 KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43
KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43 KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43
KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43 KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43
KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43 KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43
KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43 KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43
KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
verbose: 2019-01-31 22:42:43 ** KNX EVENT: GroupValue_Write, dst: 4/2/6, value: "false"
giggo
@giggo
This is using a tunneled connection
Pablo Peinado
@papeiso92_twitter
Hello guys!
Does anyone know of a raspberry pi adapter that makes it so you don't need an IP router in the house?
Matthias Fechner
@mfechner
How can I tell the module to disconnect again?
Elias Karakoulakis
@ekarak
hey @papeiso92_twitter - there's http://busware.de/tiki-index.php?page=PIG_OW
I just started using it on an old RPi1 I had - works great
It takes a bit of tinkering around though, you have to change the default kernel serial port etc. - ping me if you want a copy of my SDcard
Shakir Ahmedov
@angy71
HI, from where can I download the Basic API usage document
The link is saying not found
Pablo Peinado
@papeiso92_twitter
Hello @ekarak I would be very grateful if you can give me a copy
msj-fr
@msj-fr
Hello ! I would like to know how to get the label/comment of an object ... Is that possible
mdumont-arcom
@mdumont-arcom
Hi !

How can I remove the debug logs from the knx library?
in node-red-log, I have this kind of message "[debug]" 2019-08-09T12: 40: 46.092Z "'./knx/src/dpt20.js: input value = 2 apdu_data = \ u0002' ".

thank you

Jorde Vorstenbosch
@JordeSBSS_gitlab
@mdumont-arcom set the log level back to info