logo elektroda
logo elektroda
X
logo elektroda

Using RF Module with Raspberry PI to Operate Aluprof Roller Shutters Wirelessly

kolargol22 23157 37
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16039027
    kolargol22
    Level 8  
    Hello,

    I have 3 Aluprof blinds which I currently operate wirelessly using the DC306 remote control (https://e-rolety.eu/pl/aluprof-yooda-dc306-pilot-5-kanalowy.html). The roller shutters already have a radio receiver - I believe operating on the 433Mhz frequency (e.g. http://www.fill.com.pl/!data/attachments/Inst...gramowania%20silownikow%20DM%20serii%20R.pdf).

    What I would like to do is: connect the RF module to my PI raspbera (e.g. one of these: https://botland.com.pl/105-moduly-radiowe) and use it to control the roller shutters. And here I have my questions:

    - will it even work?
    - how is the computer control of such modules?
    - how to listen in on the signals sent by the remote control - so that I can program such a module appropriately later

    my goal is to write a homebridge plugin. Any help is appreciated,

    thanks.
  • ADVERTISEMENT
  • #2 16039209
    michcior
    Level 30  
    Oh! Without precise documentation on what is suitable, the chances are:
    There are several combinations of data transmission parameters in the 433 band:
    - modulation, e.g. OOK / FSK
    - canal
    - symbol-rate
    And on top of that, the protocol, so once you know how RF works, you must understand the data. I would have encrypted such communication so that the neighbor would not break in before eavesdropping, and that is exactly what you do. Maybe I am wrong and is it simple? If so, they must be messing with this pilot.
  • #3 16039226
    kolargol22
    Level 8  
    I wouldn't be surprised if it wasn't encrypted. I found http://zenpro.pl which should control the blinds (cost ~ 800 PLN) but with rpi you can probably do it 10x cheaper and more "opensource". From what knowledge there is "pairing" with this hub - so theoretically it should be possible to do with any other RF - but I can be wrong :)
  • #4 16039264
    michcior
    Level 30  
    RF, as I wrote before, there are two layers. One - RF carrier the other protocol. The mere fact that it is in the 433 band does not help, because as I wrote, there are a dozen or so combinations. And pairing, encryption, security data format is already a protocol. Each manufacturer makes his own invention. Really, I doubt it can be intercepted. You can do it yourself, but it will take some time. In total, the RF transceiver module is about PLN 10, some proc and that's it.
  • #5 16039502
    krzysiek_krm
    Level 40  
    Hello,
    you can play reverse engineering and listen to these remotes and then adjust channels, modulations etc etc etc, lots of robots, possibly to no avail if some variable codes are used (although with shutters it's probably unlikely).
    I think it will be much easier to replace the radio system in the roller shutter controller with your own (you can choose a color). I suspect that this radio circuit in the roller shutter control is rather simple, it is not actually a nuclear bomb sight (with all due respect to the roller shutter). It is possible that there are several two-state signals that control the motors of this roller shutter. In the worst case, there is a microprocessor that communicates with the radio system via some link (probably serial), such a link is much easier to "eavesdrop" than a radio circuit.
    Unless such a variant is not possible, for example due to a warranty.

    Regards
  • #6 16040246
    Eagle
    Level 24  
    Duplicate the original remote and enter the designation of the chip inside. Based on this, you can deduce a lot about the transmission.
  • #7 16043225
    krzbor
    Level 27  
    I can see two solutions - remaking the original remote control, simply connecting to the buttons and controlling them. This solution does not require "cracking" the transmission. The second solution is to replace the receiver in the roller shutter with a system based on the ESP-01 or ESP-12 module. We will immediately be able to control the roller shutters via WiFi.
  • ADVERTISEMENT
  • #8 16045694
    kolargol22
    Level 8  
    an interesting proposition with this connection to the remote control contacts - can you give an example for some DIY? Of course, I want to connect it all to the rpi.
  • #9 16046417
    krzbor
    Level 27  
    I don't have an example, but there are many solutions. The simplest - a low-power relay (although this is an inelegant solution). It can be interesting to use an optocoupler. The diode usually does not require an amplifier (it can be controlled with uP), and the transistor is enough to be connected to the pilot contacts. In both cases we have galvanic separation and the remote control can be powered from the original battery.
  • Helpful post
    #10 16067055
    marek2k
    Level 13  
    From what I checked RFLink Gateway supports roller shutters with the DC306 remote control.
    You only need the Arduino Mega2560 and the 433Mhz transmitter / receiver. Everything is described on the RFLink project website.

    You can use as a controller Domoticz installed on RaspberryPi.
  • ADVERTISEMENT
  • #12 16068171
    marek2k
    Level 13  
    kolargol22 wrote:
    Ooooh not bad, do you think such a kit would do the trick: https://www.nodo-shop.nl/en/rflink-gateway/127-rflink-arduino-antenna.html?

    I didn't buy this set with nodo-shoop.
    I bought an Arduino Mega2650 on eBay, radio modules and connected everything according to the description on the website Link . Cost ~ 12euro

    But RFLink works fine. And not only to control the blinds :)
  • #13 16069503
    kolargol22
    Level 8  
    I bought. I will let you know how it comes and whether it works. I am puzzled by the issue of pairing with engines. There is also a homebridge plugin for rflink (homekit, siri) https://github.com/mlaurijsse/homebridge-rflink so it looks like all the bricks are foldable.
  • #14 16084953
    kolargol22
    Level 8  
    the shipment came yesterday. In the evening I soldered and installed the software - it reports that it works great. From this morning, I can wake up in the morning and tell Siri to open the blinds all over the house. :) thanks for this tip.
    Oh - if someone ever struggled with it, I suggest that the correct homebridge plugin is homebridge-edomoticz
  • #15 16118532
    tuvok7
    Level 9  
    Could you write more details on how it works? I understand that arduino has a soft RFLink installed, but how does Raspberry communicate with Arduino? Via WiFi or cables? How does the "pairing" of roller shutters with Domoticz or RFLink on Arduino look like? Manage to listen to the codes sent by the remote control?
    He himself has been struggling with listening to the remote control of my blinds for some time with hopeless results. Only that all the time I try through 433Mhz modules connected directly to the Raspberry Pi. For unknown reasons, such a module can listen to Chinese remotes transmitting at 433Mhz, but it cannot listen to the remote control for my roller shutter or garage door, although both manufacturers claim that their equipment works at 433Mhz.
  • #16 16118734
    kolargol22
    Level 8  
    tuvok7 wrote:
    Could you write more details on how it works? I understand that arduino has a soft RFLink installed, but how does Raspberry communicate with Arduino? Via WiFi or cables? How does the "pairing" of roller shutters with Domoticz or RFLink on Arduino look like? Manage to listen to the codes sent by the remote control?
    He himself has been struggling with listening to the remote control of my blinds for some time with hopeless results. Only that all the time I try through 433Mhz modules connected directly to the Raspberry Pi. For unknown reasons, such a module can listen to Chinese remotes transmitting at 433Mhz, but it cannot listen to the remote control for my roller shutter or garage door, although both manufacturers claim that their equipment works at 433Mhz.


    Arduino is connected to Rpi via a USB cable. The RFLink card with nodo shop is plugged into the arduino. In rpi it is available under / dev / ttyACM0 and all control is also done there (e.g. domoticz for me). If you have hardware that is not supported by the firmware, you can write to the rflinka guys (here for debugging hardware that is not supported: http://www.nemcon.nl/blog2/development) and they will gladly add this hardware :)
    When it comes to pairing, all I had to do was press the up or down button on the remote control and that was all - domoticz himself "paired" - but my blinds are operated (key motor). The rest when it comes to soft, I can provide on request (configuration, etc.).

    Adds an attachment as it is connected for me
  • #17 16119198
    tuvok7
    Level 9  
    Thanks for the info. So you are using this package with nodo shop?
    https://www.nodo-shop.nl/en/rflink-gateway/127-rflink-arduino-antenna.html
    I have Portos blinds, from what I figured out, the remote control for them is the DC93, which is not directly on the list of supported RFLink equipment, but they say that "many others" so I hope you also catch it

    Added after 3 [hours] 16 [minutes]:

    I am still reading about the necessary components of the whole puzzle and I do not understand one yet - why is this RFLink PCB between the receiver and Arduino? At first it made sense to me and necessary for the RFLink software to run on Arduino, until I read on their website (http://www.nemcon.nl/blog2/wiring) about the various receivers and how to connect them to the Arduino. In particular, for the Aurel component, it is described with which Arduino GPIOs they should be connected DIRECTLY - without any PCB. So why this plate in the nodo-shop kit? What does she bring?
  • #18 16121084
    marek2k
    Level 13  
    tuvok7 wrote:
    I am still reading about the necessary components of the whole puzzle and I do not understand one yet - why is this RFLink PCB between the receiver and Arduino? At first it made sense to me and necessary for the RFLink software to run on Arduino, until I read on their website (http://www.nemcon.nl/blog2/wiring) about the different receivers and how to connect them to Arduino. In particular, for the Aurel component, it is described with which Arduino GPIOs they should be connected DIRECTLY - without any PCB. So why this plate in the nodo-shop kit? What does she bring?


    The plate is not necessary. You can connect radio modules with cables to the GPIO Arduino pins as described on the page http://www.nemcon.nl/blog2/wiring , upload the RFLink software to the Arduino and everything should work.
  • #19 16122967
    tuvok7
    Level 9  
    OK, thanks for the hints. Arduino ordered on ebay, much cheaper than in the nodo shop, transmitters and receivers on 433MHz, I had already purchased various and different prices, but I could not make them work with the Portos remote control using the Raspberry Pi. I hope that RFLink will solve the problem here, I will let you know how I can set everything up with Arduino
  • #20 16183553
    tuvok7
    Level 9  
    For information only - I report that everything went according to plan without any problem. Portosa roller blinds work with RFLink on Arduino Mega 2560 and everything flashes nice.
    In the end, I assembled a slightly different set than the one described above, namely - I gave up the additional PCB for Arduino and the Aurel module. Instead of Aurel, I used a cheap set WL101 + WL102 (433MHz), which I bought for ali, for example here: https://goo.gl/ZrRJx0 for less than $ 2. I must admit that I was very positively surprised by the WL102 transmitter with its range on the attached small antenna - it easily supports the blinds between the ceilings throughout the building, even better than the original Portosa remote control, which did not always manage between floors.
    I put Domoticz on a Banana Pi connected to an Arduino via USB. If someone does not want to invest in a Raspberry or Banana Pi (this is the most expensive element of the whole set), then he may as well place Domoticz on an old laptop and connect the Arduino with RFLink via USB - I checked on the old Windows, it works great.
    To sum up - the most important and the most expensive of the entire set is the Arduino Mega - $ 7. Even the cheapest transmitters / receivers work without any problems and all thanks to RFLink - the same components connected directly to the Raspberry Pi did not want to work with my roller shutters despite many attempts and various configurations.
    Thanks again to everyone for the thread and the way to solve the problem with which I have been struggling for a long time :) In case you had any questions, I'll be glad to help
  • #21 16373258
    nawasaqi
    Level 13  
    tuvok7 wrote:
    ...In case you had any questions, I'll be glad to help


    I have a question because I do not understand it too much, I have blinds at home and I do not have a remote control for them, but I wanted to do automatic control ... I searched a bit and found the RFLINK GETAWAY project. I bought all the necessary things, I put it together, I fired it and something is wrong ...; (

    I have this type of switch ...:
    Using RF Module with Raspberry PI to Operate Aluprof Roller Shutters Wirelessly Using RF Module with Raspberry PI to Operate Aluprof Roller Shutters Wirelessly

    I found an instruction for it:
    http://faher.pl/pliki-do-pobrania/doc_view/22...ugi-przelacznika-z-wbudaniem-odbiorniku-dc282

    I added a nice hardware
    Using RF Module with Raspberry PI to Operate Aluprof Roller Shutters Wirelessly

    In logs:
    Using RF Module with Raspberry PI to Operate Aluprof Roller Shutters Wirelessly

    But unfortunately I have nothing in the devices; (
    And I don't know what to do next to have the roller shutter control done ...

    If someone helped me, I would be grateful ....
  • #22 16374269
    tuvok7
    Level 9  
    What you showed in the picture is not the control unit, but the shutter control button operating in two modes - manual and on the 433MHz band, I have a similar one. RFLink and Domoticz work great with this type of devices, provided that they know the channel on which the button is programmed. To get to know the channel, RFLink listens and notifies when it detects a signal on a given frequency. So without a remote control it will be very difficult, if possible at all. You only need a remote control for a moment to program the manual buttons on this "switchboard" (as you called it) and pair the RFLink with them. Later, the remote control will be unnecessary.
    Without a remote control, you can combine trying to program buttons by sending a signal to them directly via RFLink, but here I have no experience, so I will not help. Try to find information about sending a random code to 433 using RFlink, because that's what it really comes down to in this case. However, as I wrote - it is much easier to borrow a remote control from someone for a few hours
  • #23 16374437
    nawasaqi
    Level 13  
    Ok thanks for the answer ... I will go to the shop what I was buying blinds and I will buy this remote control and then give it back ;)
    The only question is, what kind of remote control should I buy a single-channel one or a 15-channel one? Because I want to be able to control each roller shutter independently.
    The DC90 is a single-channel DC94 with fifteen channels.
  • #24 16374444
    tuvok7
    Level 9  
    Of course, 15-channel :) With a single-channel one, you will be able to control only one roller shutter, while with a 15-channel one on each channel, you program each roller shutter separately. And I assume that you have no more than 15 shutters and each shutter has the same button as you sent in the first post. Because if this button is connected to only one roller blind and someone sold it to you as a "control unit", unfortunately you will not control other roller blinds. Alternatively, Portosa roller shutters may have a receiver 433 built into the roller shutter motor and then such a button is not needed
  • #25 16374504
    nawasaqi
    Level 13  
    Sorry for the bad naming with this "switchboard" somewhere on some website I read it and it follows me, which is wrong ...
    And going back to the blinds, for each roller blind I have such a control button, I also have 10 in total, so such a remote control should do the job.
    Now, regarding this remote control, I understand that I first program the remote control with the receiver, i.e. the button, and after programming it should detect RFLINK signal from the sockets or do I need to use any procedure ??
  • ADVERTISEMENT
  • #26 16403406
    tuvok7
    Level 9  
    Sorry, I just got a reply notification :)
    Yes, you have to do as you wrote - program the remote control with each receiver and then detect the appropriate channels in RFLink. RFLink connected to Domoticz automatically informs about every "movement in the air" on the listening frequency (433MHz), so the appropriate devices eavesdropped on by RFLink can be found immediately in Domoticz in the Setup -> Devices tab
  • #27 16425458
    nawasaqi
    Level 13  
    I have a question, I got it all, but the remote control was needed and it immediately detected the blinds ... But I have another question in domoticz I have to fold / unfold the blinds and is there any magic way to stop the blind, i.e. I have the blinds halfway and I want to stop them or domoticz does not foresee it ??
  • #28 16425604
    tuvok7
    Level 9  
    nawasaqi wrote:
    I have a question, I got it all, but the remote control was needed and it immediately detected the blinds ... But I have another question in domoticz I have to fold / unfold the blinds and is there any magic way to stop the blind, i.e. I have the blinds halfway and I want to stop them or domoticz does not foresee it ??

    I also found out a bit of it :) Domoticz anticipates this, but it is extremely unintuitive - you need to set the switch type (roller shutter) to "Venetian Blinds EU". Only this type has an additional STOP button that can be pressed in the middle of lowering / lifting the roller shutter.
    Unfortunately, I did not find the possibility of opening the roller shutter to a predefined value, e.g. 25%, but it is rather impossible because Domoticz would have to know what your window height is and how fast the roller shutter motor rotates, and these are probably different values for everyone. But I think the LUA script would do the trick here, but I didn't need it so far.
  • #29 16426540
    nawasaqi
    Level 13  
    Ok thanks a lot ;) Today I will try to program each roller blind separately on a different channel to control each roller blind.
    Because I saw that it is possible to create groups and try to group the blinds as all of them and, for example, for the directions of the world, I wonder if it will work ;)
    Well, yesterday I thought that I would immediately control the garage door because I have a lead so that I could manually control the switch. And I will exchange it for one with a radio, for example DC282, so that I can control it via wifi in the same way ;)
    The weather station is also recognized, the cameras are also trying to connect what else to connect and in China I already have light switches ;)
    Apke on the phone, I downloaded everything nicely OpenVPN, fastened and now I have access to everything.
  • #30 16426951
    tuvok7
    Level 9  
    nawasaqi wrote:
    Well, yesterday I thought that I would immediately control the garage door because I have a lead so that I could manually control the switch. And I will exchange it for one with a radio, for example DC282, so that I can control it via wifi in the same way

    From the wifi drivers I can recommend Sonoff (https://www.itead.cc/sonoff-wifi-wireless-switch.html) is ridiculously cheap and incredibly versatile. Anyway, they also have light switches in the EU standard (control via wifi or 433.
    I would also like to be able to get through OpenVPN, but unfortunately I do not have an external IP, so I am left with messing around with the unstable MyDomoticz, which once works and once does not work :(

Topic summary

The discussion revolves around using an RF module with a Raspberry Pi to control Aluprof roller shutters wirelessly. The user currently operates the shutters with a DC306 remote, which communicates on a 433MHz frequency. Participants suggest various approaches, including reverse engineering the remote signals, replacing the existing receiver with an ESP module for WiFi control, or using an Arduino with RFLink to manage the shutters. Key points include the importance of understanding RF transmission parameters, the potential for encryption, and the feasibility of pairing the RFLink with the existing remote. Several users successfully implemented RFLink with Arduino to control their roller shutters, sharing insights on setup and configuration with Domoticz for home automation. The conversation also touches on the need for a remote control for initial pairing and the possibility of controlling multiple shutters independently.
Summary generated by the language model.
ADVERTISEMENT