TELLSTICK_ERROR_COMMUNICATION on dimmer command (patch)

Moderator: Telldus

Post Reply
jstrom
Posts: 36
Joined: Fri Mar 17, 2023 9:45 am

TELLSTICK_ERROR_COMMUNICATION on dimmer command (patch)

Post by jstrom »

Hi!

I just got myself my first dimmable device, a LWMR-210. I get tellstick/tdtool to work fine with it, however, I get TELLSTICK_ERROR_COMMUNICATION when sending any dim/on/off commands to it. The device however reacts as it should.

Some digging indicated that TellStick::send (TellStick_libftdi.cpp) doesn't wait long enough for the answer, just a few hundred us to short.
Increasing retrycnt to 300 yielded success, and some testing indicated that ~ 210 "retries" was required (just slight above 200). In total this amounts to ~3.2s (vs ~620ms for a risingsun codeswitch 'off').

The setup is as follows:

Telldus-core 2.1.0
Tellstick batch 5
LWMR-210, protocol "arctech", model "selflearning-dimmer", house=12000, unit=1
FreeBSD 8.2

An earlier patch (http://developer.telldus.se/changeset/5 ... ibftdi.cpp) lowered it quite a bit, not sure what the clients timeout is though, but it looks like 5s?

Anyway, not sure what a good 'retrycnt' would be, but 200 is just below the threshold on my setup. A better, but more complex, approach would probably be some timer/clock based solution for a more absolute timeout, depending on the commands sent to the device.

Johan
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: TELLSTICK_ERROR_COMMUNICATION on dimmer command (patch)

Post by micke.prag »

Micke Prag
Software
Telldus Technologies
Post Reply