TWO Tellsticks (Raspberry) / Simultaneously SEND+RECEIVE
Posted: Fri Mar 17, 2023 9:45 am
Hi,
I have a setup where a Intertechno motion detector should communicate via Tellstick (Duo) with my home automation application which should then turn on a lamp (also Intertechno). The setting works fine except that it needs 2-3 seconds for the lamp to turn on. This is a not acceptable, uncomfortable delay.
Why the delay? (my guess at least...)
The Intertechno motion detector sends its signal 2-3 seconds to be sure the receiver (here the TellStick Duo) received it properly. This behavior cannot be changed and it might be reasonable for the motion detector sender to send its signal a few times for redundancy reasons.
While this time, i.e., while the Tellstick Duo is receiving the signals from the motion detector, it is unable to SIMULTANEOUSLY send commands to the lamp. These commands to turn the lamp on are queued and get sent right after the motion detector stops sending its signals to the Tellstick (which unfortunately is the 2-3 seconds delay).
If this is the reason - what would you suggest me in order to solve the problem?
My first idea would be to use a second Tellstick (the regular one, NOT the Duo) that just is able to SEND signals. This way I could simultaneously send and receive Intertechno commands.
=> My question: Can I connect a second Tellstick to my raspberry pi? How would I address each one of them in my C program? Could they be distinguished at the c code level at all?? I could not find any documentation regarding this issue yet.
I guess the fall back would be to use a second raspberry just for sending signals and have the raspberries communicate with each other, but this would of course be my least preferred option.
Any help / suggestions are welcome! Thank you!
Chris
I have a setup where a Intertechno motion detector should communicate via Tellstick (Duo) with my home automation application which should then turn on a lamp (also Intertechno). The setting works fine except that it needs 2-3 seconds for the lamp to turn on. This is a not acceptable, uncomfortable delay.
Why the delay? (my guess at least...)
The Intertechno motion detector sends its signal 2-3 seconds to be sure the receiver (here the TellStick Duo) received it properly. This behavior cannot be changed and it might be reasonable for the motion detector sender to send its signal a few times for redundancy reasons.
While this time, i.e., while the Tellstick Duo is receiving the signals from the motion detector, it is unable to SIMULTANEOUSLY send commands to the lamp. These commands to turn the lamp on are queued and get sent right after the motion detector stops sending its signals to the Tellstick (which unfortunately is the 2-3 seconds delay).
If this is the reason - what would you suggest me in order to solve the problem?
My first idea would be to use a second Tellstick (the regular one, NOT the Duo) that just is able to SEND signals. This way I could simultaneously send and receive Intertechno commands.
=> My question: Can I connect a second Tellstick to my raspberry pi? How would I address each one of them in my C program? Could they be distinguished at the c code level at all?? I could not find any documentation regarding this issue yet.
I guess the fall back would be to use a second raspberry just for sending signals and have the raspberries communicate with each other, but this would of course be my least preferred option.
Any help / suggestions are welcome! Thank you!
Chris