logo elektroda
logo elektroda
X
logo elektroda

Integration of SATEL INTEGRA ETHM-1 with the ITEAD SONOFF S20 module

Duch__ 13245 16
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • Integration of SATEL INTEGRA ETHM-1 with the ITEAD SONOFF S20 module

    Hello.

    Today presents a device that I programmed a few days ago. It is used to automatically switch off the 230V receiver after arming the SATEL INTEGRA 128 alarm system.

    For the implementation of the project, I used a ready-made SONOFF S20 socket from ITEAD, purchased for ALLEGRO. From the very beginning, I knew that the original embedded ESP8266-12E software goes into oblivion and replaces it with its own software written in the ARDUINO IDE.

    The principle of operation is as follows:
    The processor connects to the SATEL ETHM-1 module. It sends a query to the ETHM module about the status of zones, inputs, outputs and failures, calculating the CRC of data to be sent, and after receiving the data, it checks whether the CRC of the received data is correct. I do not use ready-made frames. The processor counts everything on foot, I only indicate to him which command of the Integration protocol I am asking about. Incorrect data is ignored.

    After receiving the answer from the ETHM-1 module and its verification, a transition to control the relay takes place. In my case, if the zone programmed in the module is armed, the relay is turned off and 230V is cut off from the connected receiver. The opposite situation occurs after disabling the standby - the 230V receiver is turned on.

    The ranges of the random polling time of the ETHM-1 module at the time of arming and disarming are set individually. Thanks to this, when the alarm system is armed, I can ask about the arming status more often than when disarmed.

    Unfortunately, the ETHM-1 module is able to handle only one TCP / IP connection at a time. If at a given moment another device tries to ask for integration, the answer is "BUSY" - BUSY.
    The ESP8266 processor detects this state, randomizes the time after which it re-joins.

    Each connection with ETHM-1, regardless of whether it is successful or not, ends with disconnecting from the WIFI and waiting for a specific randomly selected time. After the time has been counted down, the procedure is repeated.

    Briefly, the procedure works as follows:

    Connection with WIFI -> Connection with ETHM-1 -> Asking questions -> Disconnecting from ETHM -> Disconnecting from WIFI -> Relay control -> Waiting for the drawn time.

    Signaling by LEDs:
    Blue on: relay is activated
    Green slowly blinking: pause time measurement
    Green fast blinking: connecting to WIFI
    Green goes out briefly: ETHM BUSY status detected

    The tests carried out so far indicate the correct operation of the system, but just in case I used the software WATCHDOGA - in the event of an error, it should reset the processor.

    Time for photos and a video of the action:

    Integration of SATEL INTEGRA ETHM-1 with the ITEAD SONOFF S20 module Integration of SATEL INTEGRA ETHM-1 with the ITEAD SONOFF S20 module Integration of SATEL INTEGRA ETHM-1 with the ITEAD SONOFF S20 module





    In the attachment, soft ready to be uploaded after entering your configuration data. I would like to remind you that the processor must be powered from 3.3V, and the TX and RX lines also tolerate the same voltage level.

    Feel free to comment.

    !!!!! ATTENTION !!!!!
    THERE ARE TENSIONS DANGEROUS TO HEALTH AND LIFE IN THE PRESENTED SYSTEM.
    I CANNOT BE LIABLE FOR LOSS OR DAMAGES ARISING FROM THE USE OF THE INFORMATION CONTAINED IN THIS SUBJECT.
    \





    .................................................. ..........
    mod: suvorov
    Also worth reading:

    Satel Integra - system installation and configuration - selected issues



    I invite you to read the other guides, highlighted topics and articles on security systems :
    Stationary security. Alarm systems, Cameras, Intercoms, Gate and roller shutter drives, Home automation. Highlighted topics and guides.
    If you cannot find the answer to your question in the above-mentioned topics, please visit the forum
    https://www.elektroda.pl/rtvforum/forum77.html


    I also encourage you to visit the General Guides section, where you will find materials from other forum sections, including those for those who are starting their adventure with electronics. :
    https://www.elektroda.pl/rtvforum/forum510.html

    Cool? Ranking DIY
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
    About Author
    Duch__
    Level 31  
    Offline 
    Duch__ wrote 2332 posts with rating 1593, helped 33 times. Live in city Opole. Been with us since 2004 year.
  • ADVERTISEMENT
  • #2 16292527
    skyguy
    Level 15  
    It looks pretty good, congratulations on the project, it took some work, it cost both modules to get along.
    One question, why didn't you do it with the dedicated socket from Satellite ASW-100 E after ABAX?
    Is it about distances?
  • #3 16292558
    Duch__
    Level 31  
    I just don't have an ABAX module in Integra. But I have ETHM. An additional advantage is the possibility of remote control via the Internet.
  • ADVERTISEMENT
  • #4 16292559
    krisRaba
    Level 31  
    Do you have a photo of this tile from the bottom?
    I admit that a very interesting thing with this socket, i.e. that you can freely reprogram the brick "from the store shelf" :)
  • ADVERTISEMENT
  • #5 16293157
    piterek-23
    Level 33  
    krisRaba wrote:
    Do you have a photo of this tile from the bottom?

    Found on the web:

    Integration of SATEL INTEGRA ETHM-1 with the ITEAD SONOFF S20 module Integration of SATEL INTEGRA ETHM-1 with the ITEAD SONOFF S20 module
  • #6 16293317
    krisRaba
    Level 31  
    piterek-23 wrote:
    krisRaba wrote:
    Do you have a photo of this tile from the bottom?

    Found on the web:

    Integration of SATEL INTEGRA ETHM-1 with the ITEAD SONOFF S20 module Integration of SATEL INTEGRA ETHM-1 with the ITEAD SONOFF S20 module


    Oh, thank you so much :-) I was curious if they gave a module there or if they transferred everything to their PCB :-)
  • #7 16294278
    Duch__
    Level 31  
    Do any of your honorable colleagues have any experience in coding integration? At the moment I know where to set the key and how to turn it on. However, I did not find any information about the data encoding / decoding method.
  • #8 16294545
    krzbor
    Level 27  
    I do not have Integra, but I was interested in this socket - it is ESP, and the programming lines are easily accessible. Unfortunately, I did not find this socket on Allegro. I found an interesting ITEAD website where we have a schematic of the devices. The described socket Link and another layout Link which is more accessible and cheaper.
  • #9 16294761
    Duch__
    Level 31  
    Are available. Search for "smart socket" :D

    There are also other modules:
    Integration of SATEL INTEGRA ETHM-1 with the ITEAD SONOFF S20 module . Search for "itead".
  • ADVERTISEMENT
  • #11 16302890
    Duch__
    Level 31  
    I am familiar with the subject, but I am not interested in setting domotics.
  • #12 16309627
    Duch__
    Level 31  
    After consulting Satel and trying many times, I was able to figure out the encryption. Now I just need to get it over to ESP.
  • #13 16309706
    xury
    Automation specialist
    The worst thing is that you can only connect to ETHM-1 with one device at a time. I just tested domoticza and everything is fine, but unfortunately it takes all the time to connect so you can't do anything else.
  • #14 16310233
    Duch__
    Level 31  
    That's why I hang up after each question and give other devices a chance to ask a question. I even noticed that Guardx after ETHM cannot get along with heavily loaded integration.
  • #15 16327454
    Duch__
    Level 31  
    Anyone have an idea for some WEBCONFIG to set network parameters, zone, IP address of the ETHM module to make such a universal soft?
  • #16 16384271
    mgis
    Level 9  
    Have you considered the default state of the relay when it fails to establish a connection for some time? Is nothing changed?
    And whether the default state after energizing the network is the relay turned off?
  • #17 16388329
    Duch__
    Level 31  
    The default device state is turned off. If he fails to establish a connection with ETHM or does not receive a response from it, he leaves the original state as previously set.

Topic summary

The discussion revolves around the integration of the SATEL INTEGRA ETHM-1 module with the ITEAD SONOFF S20 smart socket. The user has developed a system that automatically switches off a 230V receiver upon arming the SATEL INTEGRA 128 alarm system. The original firmware of the SONOFF S20, based on the ESP8266-12E, was replaced with custom software written in the Arduino IDE. The system queries the ETHM-1 module for the status of zones and inputs, ensuring data integrity through CRC checks. Participants discuss the advantages of using the ETHM-1 over the ABAX module, the reprogrammability of the SONOFF S20, and challenges related to data encoding and connection limitations with the ETHM-1. The conversation also touches on the default states of the relay and the need for a universal configuration interface for network settings.
Summary generated by the language model.
ADVERTISEMENT