TCP Binding - Should I see evidence in Log?

Very new Openhabber here…and I’m dusting off my programming chops…

I’m attempting to issue ASCII commands via TCP to a lighting controller and I can’t seem to get anywhere. When looking at the logs, I see no evidence that the command was sent…I do see notation in the events log, but nothing in the main log.

I’ve also ran Wirehark while testing and I’m seeing nothing coming out of the openhab IP address.

Here’s my item code

Switch HallLights <light> (VANTAGE) { tcp=">[ON:10.5.1.6:3040:'MAP(218.map)')], >[OFF:10.5.1.6:3040:'MAP(218.map)']" }

Any suggestions would be greatly appreciated.

Squid

In fact, you should only see logs in events.log, since openhab.log is for debugging, warnings, errors and info.

So did you generate a 218.map and put it to ./configurations/transformation/?

What’s the content of 218.map?

Here’s the content of my .map file:

ON=VAL@1 218 1 100\x0D
OFF=VLA@1 218 1 0\x0D

The \x0D is to append a carraige return at the end,I have tried it with and without this.

I appreciate your help and assistance.

Just to check the obvious first. Have you added this line to your openhab.cfg?

tcp:refreshinterval=250 - This is a mandatory field in 
order to start up the binding - Refresh interval for the polling thread,
 can be used to manage oh Host CPU Load

@gpbenton

The line is uncommented in the openhab.cfg file

I have also enabled TCP logging…the log file gets created, yet nothing is written to it.

Here’s the TCP bindings section from my config:

################################# TCP - UDP Binding ###################################
#
# all parameters can be applied to both the TCP and UDP binding unless 
# specified otherwise
# Port to listen for incoming connections (vantage 52474)
tcp:port=25152
# Cron-like string to reconnect remote ends, e.g for unstable connection or remote ends
#tcp:reconnectron='0 0 0 * * ?'
# Interval between reconnection attempts when recovering from a communication error, 
# in seconds
#tcp:retryinterval=5
# Queue data whilst recovering from a connection problem (TCP only)
#tcp:queue=true
# Maximum buffer size whilst reading incoming data
tcp:buffersize=1024
# Share connections within the Item binding configurations
tcp:itemsharedconnections=true
# Share connections between Item binding configurations
tcp:bindingsharedconnections=true
# Share connections between inbound and outbound connections
#tcp:directionssharedconnections=false
# Allow masks in ip:port addressing, e.g. 192.168.0.1:* etc
tcp:addressmask=true
# Pre-amble that will be put in front of data being sent
#tcp:preamble=''
# Post-amble that will be appended to data being sent
#tcp:postamble='\r\n'
# Perform all write/read (send/receive) operations in a blocking mode, e.g. the binding
# will wait for a reply from the remote end after data has been sent
#tcp:blocking=false
# timeout, in milliseconds, to wait for a reply when initiating a blocking write/read
#  operation
#tcp:timeout=3000
# Update the status of Items using the response received from the remote end (if the
# remote end sends replies to commands)
#tcp:updatewithresponse=true
# Timeout - or 'refresh interval', in milliseconds, of the worker thread
tcp:refreshinterval=250
# Timeout, in milliseconds, to wait when "Selecting" IO channels ready for communication
#tcp:selecttimeout=1000
# Used character set
tcp:charset=ASCII
udp:charset=ASCII

BUMP! - I’m really stuck!