Error on BrelMotor

433Mhz opensource Receiver & Transmitter.

Moderators: leecollings, Stuntteam

Post Reply
ricorico94
Posts: 94
Joined: Monday 26 October 2015 10:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Error on BrelMotor

Post by ricorico94 »

Hi,

I built a RFLINK and before hooking it up to Domoticz, I'm trying it with RFLinkLoader.
From Terminal window of RFLinkLOader, with SerialPort Logging ON, but not DEBUG mode, it seems I receive some mesages related to a remote controlling a motorized video screen. This remote has 3 buttons: UP, STOP and DOWN.

In RFLinkLoader, I can see the following messages:
20;00;Nodo RadioFrequencyLink - RFLink Gateway V1.1 - R43;
10;version;
20;01;VER=1.1;REV=43;BUILD=0a;
20;03;BrelMotor;ID=8100ba;SWITCH=e1;CMD=DOWN;
20;04;BrelMotor;ID=8100ba;SWITCH=e1;CMD=STOP;
20;06;BrelMotor;ID=8100ba;SWITCH=e1;CMD=UP;
(I deleted the detections of my oregon sensors for the sake of clarity).
So RFLInk seems to recognize the actions sent by the remote control.

But when I try to send commands with RFLinkLoader, it does nothing and I also receive error messages:
10;BrelMotor;ID=8100ba;SWITCH=e1;CMD=DOWN;
20;0F;CMD UNKNOWN;
10;BrelMotor;ID=8100ba;SWITCH=e1;CMD=UP;
20;11;CMD UNKNOWN;
10;BrelMotor;ID=8100ba;SWITCH=e1;CMD=STOP;
20;13;CMD UNKNOWN;
What am I doing wrong ? (I typed for instance "10;BrelMotor;ID=8100ba;SWITCH=e1;CMD=DOWN;" in the text field at bottom of RFLINKLoader and pushed the "send button")

I use firmware v43 (as shown in capture above).

Thanks for your support
Ricorico94
User avatar
Stuntteam
Posts: 399
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Error on BrelMotor

Post by Stuntteam »

That is because you are formulating the commands incorrectly.
Domoticz knows how to talk to RFlink so you should not need to send manual commands.

Anyway.. if you want to try manually you should follow the protocol reference document and look at the samples that are included.
Then you will see the commands need to be as follows:
10;BrelMotor;8100ba;e1;DOWN;
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
ricorico94
Posts: 94
Joined: Monday 26 October 2015 10:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Error on BrelMotor

Post by ricorico94 »

Thanks a lot ! I had read that doc, but I hadn't understood that way..

I have 2 questions regarding usage of RFLink:
- I'd like to send a "script" command to my screen, like "down"+"wait 2500ms"+"Stop". I could make a script in Domoticz for that (which would send requests to RFLink), but I could observe that Domoticz is not very good at handling such short delayed steps (I had made a script to simulate a sequence of pushes on a remote controller's buttons through soldering some relays but it's not very precise..).
Would it be possible to use RFLink to handle such sequence ?

- There are still available "pins" on the Arduino MEGA used by RFLink. Is it possible to make use of it ? (for instance by connecting on the Arduino a pressure or temperature sensor, and having Domoticz reading that sensor) if yes, does it require changes in RFLink program or can it be run in parallel ?


Ricorico94
User avatar
Stuntteam
Posts: 399
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Error on BrelMotor

Post by Stuntteam »

ricorico94 wrote:I have 2 questions regarding usage of RFLink:
- I'd like to send a "script" command to my screen, like "down"+"wait 2500ms"+"Stop". I could make a script in Domoticz for that (which would send requests to RFLink), but I could observe that Domoticz is not very good at handling such short delayed steps (I had made a script to simulate a sequence of pushes on a remote controller's buttons through soldering some relays but it's not very precise..).
Would it be possible to use RFLink to handle such sequence ?
That might be a nice idea for blinds.. we will look into it.
ricorico94 wrote: - There are still available "pins" on the Arduino MEGA used by RFLink. Is it possible to make use of it ? (for instance by connecting on the Arduino a pressure or temperature sensor, and having Domoticz reading that sensor) if yes, does it require changes in RFLink program or can it be run in parallel ?
It would require changes in the RFlink code. No idea if there is much benefit compared to the many wireless sensors that are already supported.
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
ricorico94
Posts: 94
Joined: Monday 26 October 2015 10:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Error on BrelMotor

Post by ricorico94 »

Thanks.
No idea if there is much benefit compared to the many wireless sensors that are already supported.
Well, the idea was to take profit of this Arduino to avoid having to install somewhere (and plug power) another sensor.
The other benefit would be costs: adding one these small modules measuring temp+pressure+humidity (like BME280) cost only 4Euros.

br,
Ricorico94
jdfh
Posts: 1
Joined: Saturday 23 September 2017 15:32
Target OS: -
Domoticz version:
Contact:

Re: Error on BrelMotor

Post by jdfh »

Stuntteam wrote: Sunday 30 October 2016 19:28 That is because you are formulating the commands incorrectly.
Domoticz knows how to talk to RFlink so you should not need to send manual commands.

Anyway.. if you want to try manually you should follow the protocol reference document and look at the samples that are included.
Then you will see the commands need to be as follows:
10;BrelMotor;8100ba;e1;DOWN;
Hi thanks for the info. I've got the Brel Motor working with the Venetian Blinds EU Switch. The Blinds came with a DC306A remote. It has the option of putting the blinds in a user defined middle position. This is done by pressing and holding the stop button for 5 seconds.

I use minicom to see what commands are being received by my RFLink. However pressing and holding the stop button only shows the (...);CMD=STOP; command. Do you know what command is transmitted to put the blinds in the middle position?

You mentioned the protocol reference document. Is it available on the Internet? Google wasn't very helpfull.

Thanks in advance,

Joris
smhdlb
Posts: 2
Joined: Thursday 29 November 2018 13:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Error on BrelMotor

Post by smhdlb »

jdfh wrote: Saturday 23 September 2017 15:49
Stuntteam wrote: Sunday 30 October 2016 19:28 That is because you are formulating the commands incorrectly.
Domoticz knows how to talk to RFlink so you should not need to send manual commands.

Anyway.. if you want to try manually you should follow the protocol reference document and look at the samples that are included.
Then you will see the commands need to be as follows:
10;BrelMotor;8100ba;e1;DOWN;
Hi thanks for the info. I've got the Brel Motor working with the Venetian Blinds EU Switch. The Blinds came with a DC306A remote. It has the option of putting the blinds in a user defined middle position. This is done by pressing and holding the stop button for 5 seconds.

I use minicom to see what commands are being received by my RFLink. However pressing and holding the stop button only shows the (...);CMD=STOP; command. Do you know what command is transmitted to put the blinds in the middle position?

You mentioned the protocol reference document. Is it available on the Internet? Google wasn't very helpfull.

Thanks in advance,

Joris
Hi Joris,

Did you find a solution for your issue regarding the 'User definded' position?
I also want to send a 5 second 'Stop' command so my screen jumps to the pre-defined position.

Anyone a suggestion?

Stanley
smhdlb
Posts: 2
Joined: Thursday 29 November 2018 13:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Error on BrelMotor

Post by smhdlb »

smhdlb wrote: Thursday 29 November 2018 13:24
jdfh wrote: Saturday 23 September 2017 15:49
Stuntteam wrote: Sunday 30 October 2016 19:28 That is because you are formulating the commands incorrectly.
Domoticz knows how to talk to RFlink so you should not need to send manual commands.

Anyway.. if you want to try manually you should follow the protocol reference document and look at the samples that are included.
Then you will see the commands need to be as follows:
10;BrelMotor;8100ba;e1;DOWN;
Hi thanks for the info. I've got the Brel Motor working with the Venetian Blinds EU Switch. The Blinds came with a DC306A remote. It has the option of putting the blinds in a user defined middle position. This is done by pressing and holding the stop button for 5 seconds.

I use minicom to see what commands are being received by my RFLink. However pressing and holding the stop button only shows the (...);CMD=STOP; command. Do you know what command is transmitted to put the blinds in the middle position?

You mentioned the protocol reference document. Is it available on the Internet? Google wasn't very helpfull.

Thanks in advance,

Joris
Hi Joris,

Did you find a solution for your issue regarding the 'User definded' position?
I also want to send a 5 second 'Stop' command so my screen jumps to the pre-defined position.

Anyone a suggestion?

Stanley
Ok, this is how i resolved my issue with the user defined middle position.
Besides the existing and working remote control for the Brel motor, i also created a virtualswitch called 'Rolgordijn 2 MidPosition'.
Next i altered an existing sample script from the WiKi.
(https://wiki.domoticz.com/wiki/LUA_comm ... n_Domoticz)

If the virtualswitch changes to 'On', the Stop command will be send 5 times (emulating the 5 seconds press on the stop-button). In my case the blind will change its position to the user defined middle position.
immediately after, the virtualswitch will be reset to 'Off'.

My simple LUA Script:
===================
commandArray = {}
if (devicechanged['Rolgordijn 2 MidPosition'] == 'On') then -- My Virtual Switch
print('Re-rolling to MidPosition...')
commandArray['Rolgordijn']='Stop REPEAT 5 INTERVAL 1' -- command will be repeated 5 times with 1 seconds interval
commandArray['Rolgordijn 2 MidPosition']='Off AFTER 5' -- Reset virtual switch to Off after 5 SECONDS
end
return commandArray
====================

Hopefully this will help other people as well.

Stanley
poostrom
Posts: 16
Joined: Tuesday 26 January 2016 14:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Gorinchem - Netherlands
Contact:

Re: Error on BrelMotor

Post by poostrom »

Hi Stanley,

How did you get that working? I used your script and I do see:
Status: RFLink Sending: 10;BrelMotor;fd3222;a1;STOP; (repeated 5 times).
But my curtain just holds :( no movement at all. Works fine with the remote.

I've been playing around with the times, annd also send the stop command 8 times (in case is misses one). nothing happens.... Any ideas?

Regards,
Patrick
poostrom
Posts: 16
Joined: Tuesday 26 January 2016 14:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Gorinchem - Netherlands
Contact:

Re: Error on BrelMotor

Post by poostrom »

Hi guys,

Anyone with a reply?

I found that my Brel motors do not respond when I send a command once a second. They need be sent at about .5 seconds. Domoticz will not do that. I've tried with LUA, DZvents, bash script. Everything seems to be queued and Domoticz sends out the command just every second. So no go.....

Any ideas? Is there a way to "program" the RFLink so it send the commands x times with .5 seconds interval?

Regards,

Patrick
User avatar
sincze
Posts: 1302
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Error on BrelMotor

Post by sincze »

poostrom wrote:Hi guys,

Anyone with a reply?

I found that my Brel motors do not respond when I send a command once a second. They need be sent at about .5 seconds. Domoticz will not do that. I've tried with LUA, DZvents, bash script. Everything seems to be queued and Domoticz sends out the command just every second. So no go.....

Any ideas? Is there a way to "program" the RFLink so it send the commands x times with .5 seconds interval?

Regards,

Patrick
Hope this can be fixed as looks like a nice feature to me :)

Sent from my ONEPLUS A6003 using Tapatalk

Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest