Feeling silly again ... :-)
I am trying to send irtrans commands (arbitrary one-line ASCII text) via the TCP binding. This is my first attempt on setting up an outgoing TCP binding, so probably I misunderstood something. My setup looks like this:
items entry:
String remote1 "IrTrans remote1" { tcp=">[C11:blablaix:21000:'MAP(iremote.map)']"}
iremote.map:
C11=ASC.....
OpenHAB (1.4.0 nightly) connects to port 21000 during startup (and keeps connected ...). When I am sending a C11 comand to remote1, nothing happens at TCP binding level (no log entry, iremote.map is not changing last access time, tcpdump does not see any packets transmitted). What am I doing wrong?
Log excerpt (names and IPs obfuscated):
21:19:28.459 INFO o.o.b.t.p.internal.TCPBinding[:184]- Updating states with returned values will be set to the default vaulue of true
21:19:28.461 DEBUG o.o.b.t.AbstractSocketChannelBinding[:1315]- Setting up the outbound channel Channel [item=remote1, command=C11, direction=OUT, remote=blablaix/
192.168.16.1:21000, buffer=, isBlocking=false, isReconnecting=false, channel=, host=blablaix, port=21000]
21:19:28.462 INFO o.o.b.t.AbstractSocketChannelBinding[:1318]- Connecting the channel Channel [item=remote1, command=C11, direction=OUT, remote=blablaix/
192.168.16.1:21000, buffer=, isBlocking=false, isReconnecting=false, channel=, host=blablaix, port=21000]
21:19:28.462 INFO o.o.b.t.AbstractSocketChannelBinding[:1525]- The channel for blablaix/
192.168.16.1:21000 is now connected
Console:
osgi> openhab send remote1 C11
08:48:33.317 DEBUG o.o.i.t.m.i.MqttBrokerConnection[:414] - Publishing message to topic /openHAB/out/remote1/command
08:48:33.319 INFO runtime.busevents[:22] - remote1 received command C11
Command has been sent successfully.
Kind regards,
Tom