Tellstick Duo resources

Moderator: Telldus

Snakehand
Posts: 15
Joined: Thu Jan 18, 2018 11:08 am

Tellstick Duo resources

Post by Snakehand » Thu Jan 18, 2018 11:08 am

I got hands on the Tellstick Duo (thanks a lot guys :P)- I like the physical package, but doing a lsusb -v, it looks almost identical to the regular Tellstick. I am really looking forward to trying the receiving capability, and have in fact started my own little PIC18F4550 project to this end.

I was expecting a synchronous endpoint that streams RF data, or similar. So my question is, where is the documentation for the receiving features?

Code: Select all

Bus 005 Device 002: ID 1781:0c31 Multiple Vendors 
Device Descriptor:
  idVendor           0x1781 Multiple Vendors
  idProduct          0x0c31 
  bcdDevice            6.00
  iManufacturer           1 Telldus
  iProduct                2 TellStick Duo
  iSerial                 3 FTT7O4YL
  bNumConfigurations      1
  Configuration Descriptor:
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              2 TellStick Duo
      Endpoint Descriptor:
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)

micke.prag
Site Admin
Posts: 2242
Joined: Thu Jan 18, 2018 11:08 am
Location: Lund
Contact:

Post by micke.prag » Thu Jan 18, 2018 11:08 am

TellStick Duo is very similar to TellStick. It uses the same USB-chip but different PID. You can access it in two ways.

1) Using ftdi_sio kernel module. Load it this way:

Code: Select all

modprobe ftdi_sio vendor=0x1781 product=0x0c318
This creates /dev/ttyUSB0

2) Using libftdi or libftd2xx

The baudrate is 9600
Micke Prag
Software
Telldus Technologies

Snakehand
Posts: 15
Joined: Thu Jan 18, 2018 11:08 am

Post by Snakehand » Thu Jan 18, 2018 11:08 am

micke.prag wrote:TellStick Duo is very similar to TellStick. It uses the same USB-chip but different PID. You can access it in two ways.

1) Using ftdi_sio kernel module. Load it this way:

Code: Select all

modprobe ftdi_sio vendor=0x1781 product=0x0c318
This creates /dev/ttyUSB0

2) Using libftdi or libftd2xx

The baudrate is 9600
What can I expect to see on the incoming data ? How is the incoming RF signal encoded on the serial UART (port)?

micke.prag
Site Admin
Posts: 2242
Joined: Thu Jan 18, 2018 11:08 am
Location: Lund
Contact:

Post by micke.prag » Thu Jan 18, 2018 11:08 am

The protocol is encoded by the microcontroller. It is then send in cleartext on the serialport

So far only ArcTech (Nexa, Proove, HomeEasy) selflearning is supported...
Micke Prag
Software
Telldus Technologies

larham
Posts: 1
Joined: Thu Jan 18, 2018 11:08 am

DS18S20Z

Post by larham » Thu Jan 18, 2018 11:08 am

How do I get the data from the DS18S20Z, 1-Wire Power Digital Thermometer? Nice Idea to get the enviromental temperature, cool.
/Lasse

micke.prag
Site Admin
Posts: 2242
Joined: Thu Jan 18, 2018 11:08 am
Location: Lund
Contact:

Post by micke.prag » Thu Jan 18, 2018 11:08 am

It is not implemented yet...
Micke Prag
Software
Telldus Technologies

zyberzero
Posts: 56
Joined: Thu Jan 18, 2018 11:08 am
Location: Göteborg

Post by zyberzero » Thu Jan 18, 2018 11:08 am

Hi!

OK, I received the Duo yesterday. Today, I've tested it, and got it connected to my computer as it should. I can detect signals using

Code: Select all

tail -f /dev/ttyUSB0
I get signals since it detects signals from my Kangtai sender but I cant control any of the receivers using tdtool nor rfcmd:

Code: Select all

rfcmd /dev/ttyUSB0 SARTANO 11000010000 1
.

How should I read the LED? (It only flashes when I press any of the keys of the RF Remote).

/Fritiof

micke.prag
Site Admin
Posts: 2242
Joined: Thu Jan 18, 2018 11:08 am
Location: Lund
Contact:

Post by micke.prag » Thu Jan 18, 2018 11:08 am

Note that the Duo communicates using a baudrate at 9600 instead of 4800.
So, to use rfcmd with Duo, you must change the source code.

Green flashes = Receiving.
Red flashes = Sending.
Micke Prag
Software
Telldus Technologies

zyberzero
Posts: 56
Joined: Thu Jan 18, 2018 11:08 am
Location: Göteborg

Post by zyberzero » Thu Jan 18, 2018 11:08 am

That did the trick! Thanks.

cedricba
Posts: 2
Joined: Thu Jan 18, 2018 11:08 am

ftd2xx.dll informations

Post by cedricba » Thu Jan 18, 2018 11:08 am

Dear,

I have just received the TellStick Duo, it seems to be really nice but still can't make it work...
I'm on Windows 7, it install itself very nice and it seems to be working as when i push on my chacon remote, the led on the Duo blinks.

I have tryed to use the TellDus Center but when i click on a button, it say "TellStick not found".
I'm developping using Windev and there is no problem to use a DLL with this software. I wanted to use the ftd2xx.dll, i have found the doc concerning this dll but i have a small issue, i don't know what i have to send using this dll for exemple to set on a chacon device....
Do you have a small exemple for this ?

Regards,

Cedric

micke.prag
Site Admin
Posts: 2242
Joined: Thu Jan 18, 2018 11:08 am
Location: Lund
Contact:

Post by micke.prag » Thu Jan 18, 2018 11:08 am

Which version of TelldusCenter are you using? Minimum required is 2.0.100, recommended 2.0.101.

If you develop using ftd2xx no other applications will be able to use the TellStick at the same time and you have to implement all protocols by yourself. Do yourself a favor and stick to telldus-core.

If you still want to do everything by yourself, the protocol is described here:
http://developer.telldus.se/doxygen/TellStick.html
Micke Prag
Software
Telldus Technologies

cedricba
Posts: 2
Joined: Thu Jan 18, 2018 11:08 am

Post by cedricba » Thu Jan 18, 2018 11:08 am

I'm using TelldusCenter 2.0.2.

Ok, i think i'll first try to use an other library than ftd2xx....
Where can i download your library ? i haven't found it on the download page.
Still having the same problem with the TelldusCenter....

Cédric

micke.prag
Site Admin
Posts: 2242
Joined: Thu Jan 18, 2018 11:08 am
Location: Lund
Contact:

Post by micke.prag » Thu Jan 18, 2018 11:08 am

http://download.telldus.se/TellStick/So ... .0.101.exe

For all other reading this thread. Do not download this version. It is only intended for development against TellStick Duo.
Micke Prag
Software
Telldus Technologies

MartinV
Posts: 277
Joined: Thu Jan 18, 2018 11:08 am
Contact:

Re:

Post by MartinV » Thu Jan 18, 2018 11:08 am

micke.prag wrote:http://download.telldus.se/TellStick/So ... .0.101.exe

For all other reading this thread. Do not download this version. It is only intended for development against TellStick Duo.
Are there any new versions available built "the same way" as 2.0.101 (different lib?)? I tried 2.0.3 but got "Tellstick not found" (with the Duo connected) and had to go back and install 2.0.101.

(Got Win7 64bit and Win2008 Server 64bit)
Martin | http://www.switchking.se
Testa Switch King Pro i din Android/iPhone/iPod: http://www.switchking.se/sv/demo

micke.prag
Site Admin
Posts: 2242
Joined: Thu Jan 18, 2018 11:08 am
Location: Lund
Contact:

Re: Tellstick Duo resources

Post by micke.prag » Thu Jan 18, 2018 11:08 am

To clarify some things:
2.0.X is our stable branch and doesn't, and never will, support TellStick Duo.
2.0.10X is the unstable development which will become 2.1 when stabilized.

What are you missing in 2.0.101? What was the purpose by installing 2.0.3?
We are preparing for the release of 2.0.102 but it is not finished yet.
Micke Prag
Software
Telldus Technologies

Post Reply