Page 1 of 1

UPM receiver and Linux rfcmd command

Posted: Fri Mar 17, 2023 9:45 am
by vkulmala
How to get UPM receiver to work with Linux rfcmd command? There is only Waveman, Nexa etc. commands but not UPM.

Re: UPM receiver and Linux rfcmd command

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
rfcmd doesn't support UPM and will be removed soon. Please use tdtool instead.

Re: UPM receiver and Linux rfcmd command

Posted: Fri Mar 17, 2023 9:45 am
by vkulmala
How should I use tdtool that I get UPM receivers to work? Can you show some example commands?

Re: UPM receiver and Linux rfcmd command

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
First, configure them in /etc/tellstick.conf using a text editor or TelldusCenter.
How this file is constructed can be found here: http://developer.telldus.com/wiki/TellStick_conf

If you are using version >= 2.1.0 you need to restartd telldusd to reread its configuration.

To turn device with id 1 on use:

Code: Select all

$ tdtool --on 1
For a complete manual, type:

Code: Select all

$ man tdtool

Re: UPM receiver and Linux rfcmd command

Posted: Fri Mar 17, 2023 9:45 am
by vkulmala
Thanks for answer. My /etc/tellstick.conf looks like this:

Code: Select all

deviceNode = /dev/ttyUSB0

device {
  id = 1
  name = "Example device"
  protocol = "arctech"
  model = "codeswitch"
  parameters {
    house = "A"
    unit = "1"
  }
}

device {
  id = 2
  name = "UPM"
  protocol = "upm"
  parameters {
    house = "789"
    unit = "1"
  }
}
Now when I try to run tdtool I get following error:

Code: Select all

root@slax:/srv/telldus-core-2.1.0/tdtool# tdtool --on 2
Turning on device 2, UPM - TellStick not found
rfcmd-command works and it finds tellstick but tdtool-command doesn't.

What to do now?

Re: UPM receiver and Linux rfcmd command

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
Distribution?

Re: UPM receiver and Linux rfcmd command

Posted: Fri Mar 17, 2023 9:45 am
by vkulmala
Linux distro? Slax 6.x.x. (http://www.slax.org/).

Weird because rfcmd-command works but tdtool-command not...

Re: UPM receiver and Linux rfcmd command

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
rfcmd and tdtool do the communication very differently with the TellStick so it is not strange one work and not the other.

If you compile from source yourself you must make sure udev-rule also work when you plug in TellStick to the computer or start telldusd after plugging in TellStick.
Also try unloading ftdi_sio from the kernel because it can sometimes interfere with telldusd.