Hello everyone.
I have a simple routing function. Each received GA is forwarded to my PC via TCP.
Part of code:
[highlight=epc] if event(readknx(adr,info)) and TCP_ConnectionState == 0 then {
sendtcp(Name_Port, 192.168.1.78,convert(adr,$$)+$=$+convert(info,$$)) ;
}endif [/highlight]
Everythings goes well but i've a strange behaviour when i query a GA (via ETS for example)
If i query for read GA 2/4/2, for example, in the Eibstudio console everythings goes fine:
% 2013-11-30 21:23:51 | Sender: 1.1.49 | GA: "Wh AC Essential BUS-2/4/9" | Value: 428.86 | Type: 32-Bit Floating Point | Write
% 2013-11-30 21:23:55 | Sender: 15.15.0 | GA: "Wh Consumo TOTALE-2/4/2" | Value: ?% | Type: ?% | Read
% 2013-11-30 21:23:55 | Sender: 1.1.49 | GA: "Wh Consumo TOTALE-2/4/2" | Value: 714.3 | Type: 32-Bit Floating Point | Reply
...but...
The readknx function is triggered twice (with the GA received before the queried GA, then with the replied GA)
For example, in the case above, i have:
2/4/9=428.86
2/4/2=714.3
instead of only the
2/4/2=714.3
I need your help because i cannot figure out why this happens.
I have a simple routing function. Each received GA is forwarded to my PC via TCP.
Part of code:
[highlight=epc] if event(readknx(adr,info)) and TCP_ConnectionState == 0 then {
sendtcp(Name_Port, 192.168.1.78,convert(adr,$$)+$=$+convert(info,$$)) ;
}endif [/highlight]
Everythings goes well but i've a strange behaviour when i query a GA (via ETS for example)
If i query for read GA 2/4/2, for example, in the Eibstudio console everythings goes fine:
% 2013-11-30 21:23:51 | Sender: 1.1.49 | GA: "Wh AC Essential BUS-2/4/9" | Value: 428.86 | Type: 32-Bit Floating Point | Write
% 2013-11-30 21:23:55 | Sender: 15.15.0 | GA: "Wh Consumo TOTALE-2/4/2" | Value: ?% | Type: ?% | Read
% 2013-11-30 21:23:55 | Sender: 1.1.49 | GA: "Wh Consumo TOTALE-2/4/2" | Value: 714.3 | Type: 32-Bit Floating Point | Reply
...but...
The readknx function is triggered twice (with the GA received before the queried GA, then with the replied GA)
For example, in the case above, i have:
2/4/9=428.86
2/4/2=714.3
instead of only the
2/4/2=714.3
I need your help because i cannot figure out why this happens.
Kommentar