Davis Station by TCP Binding (for inbound-triggered communication)


I own a station Vantage PRO 2 DAVIS, with the WeatherLinkIP plug ( http://www.davisnet.com/weather/products/weather_product.asp?pnum=06555 ). I wish recover data with openHAB 1.8.2 and jre 8u77, on Windows 7 (x64).

I managed to communicate with my station through the TCP connection. In fact I can turn the light of it with a switch.

Switch MeteoDavisStationLamp "Station météo Davis Lamp" <sun> (gRDC) {tcp=">[ON:'MAP(MeteoDavis.map)'], >[OFF:'MAP(MeteoDavis.map)']"}

ON = LAMPS 1\n OFF = LAMPS 0\n

But I don’t understand how to recover data back sent by my console; like <LF><CR>"OK"<LF><CR> turn the lamps:
2016-05-25 10:22:28.514 [INFO ] [runtime.busevents ] - MeteoDavisStationLamp received command ON 2016-05-25 10:22:28.525 [INFO ] [runtime.busevents ] - MeteoDavisStationLamp state updated to ON 2016-05-25 10:22:29.475 [WARN ] [t.protocol.internal.TCPBinding] - Can not parse input OK to match command ON on item MeteoDavisStationLamp 2016-05-25 10:22:29.478 [WARN ] [t.protocol.internal.TCPBinding] - Can not parse input OK to match command OFF on item MeteoDavisStationLamp

My ultimate goal is to automatically receive and decode the chain received with weather data after sending the command “Loop 1” (cf. LOOP command p12 and 21 : http://www.davisnet.com/support/weather/download/VantageSerialProtocolDocs_v261.pdf).
If I replace LAMPS 1\n by LOOP 1\n in my map file, I receive:
[WARN ] [t.i.s.MapTransformationService] - Could not find a mapping for ':spades:LOO¶' in the file 'MeteoDavis.map'. [WARN ] [t.protocol.internal.TCPBinding] - Can not parse input :spades:LOO¶ to match command ON on item MeteoDavisStationLamp

Indeed, I will wish to create a rule that every 10 seconds for example, the command “LOOP 1 \ n” is sent to my Davis station by the TCP binding.
Then I have to retrieve weather data, I have to analyse this data (probably with JavaScript), and display this data in my items file (number by number).
I think this is possible after watching this: https://github.com/openhab/openhab/blob/master/bundles/binding/org.openhab.binding.davis/src/main/java/org/openhab/binding/davis/datatypes/DavisValueType.java and https://github.com/openhab/openhab/blob/master/bundles/binding/org.openhab.binding.tcp/src/main/java/org/openhab/binding/tcp/protocol/internal/TCPBinding.java
But being beginner, I lack some basics to properly do this project.

Thank you in advance for your help.