Page 1 of 1

Send commands via Tellstick to non registered devices?

Posted: Fri Mar 17, 2023 9:45 am
by HaunsTM
Hi!

I have a question regarding TelldusCenter, my TellStick (Batch 8 ) and TelldusNETWrapper telldus-core API on my Win7 x64 PC.

The thing is that I want to avoid registering my wireless NEXA receivers with TelldusCenter and bind device data like, f ex:
  • [house]
    [model]
    [protocol]
to ONE single computer's Win7-register only. Reason? -I want my own database for all the device data! (It would give me a more portable solution that suits my purposes better since I'm trying to experiment with my own developed C#-home-automation-software.)

Facts:
This is my (NOT TelldusCenter in Win-register registered) device:
  • [house] = 23305
    [model] = "selflearning-switch:nexa"
    [protocol] = "arctec"
My question:
Is it possible to send on/off to my wireless NEXA receiver via my TellStick?

Can I use the C#-wrapper method

Code: Select all

public static int tdSendRawCommand(string command, int reserved)

(telldus-core:

Code: Select all

int WINAPI tdSendRawCommand (const char *command, int reserved)
, found on http://developer.telldus.se/doxygen/gro ... 5c9f1aa6a7) somehow?

Re: Send commands via Tellstick to non registered devices?

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
Yes, it is possible. You have to encode all the protocol data yourself though. You have to read the source code for the protocol for methods of encoding.

Re: Send commands via Tellstick to non registered devices?

Posted: Fri Mar 17, 2023 9:45 am
by HaunsTM
Thank's for your quick reply!

I'm absolutely not asking you to solve my entire problem but I wonder if you can help me on track with my NEXA receiver device with a simple example?

If I have this wrapper C# method,

Code: Select all

public static int tdSendRawCommand(string command, int reserved)
What should I put in the parameters

Code: Select all

string command; int reserved
in order to send "On" to the receiver (via my Tellstick)?
  • [house] = 23305
    [unit] = 1
    [model] = "selflearning-switch:nexa"
    [protocol] = "arctec"

Code: Select all

command = ?

Code: Select all

reserved = ?

Re: Send commands via Tellstick to non registered devices?

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
First you need to understand how TellStick communicates:
http://developer.telldus.com/doxygen/TellStick.html

The documentation for tdSendRawCommand() explains the parameters.
Parameters:
command The command for TellStick in its native format.
reserved Reserved for future use.
Algoritm for constructing the command:
http://developer.telldus.com/browser/te ... olNexa.cpp