Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Aritech Alarm Internet Dialler

123457

Comments

  • Registered Users, Registered Users 2 Posts: 3,896 ✭✭✭ozmo


    Oh - I see the issue - I had fixed this in the Aritech version - Chrome changed the way it does websockets - so it needs the same HTML change I'd done previously to the Aritech version to be made to the HKC version-

    Can you try get the latest "Websocket.cpp" from github - and see if that fixes the issue - pm me if it still doesnt work and we can try find whats wrong.

    “Roll it back”



  • Registered Users, Registered Users 2 Posts: 21 Vasarbob


    Cheers Ozmo that worked . I am getting messages now. I have 3 keypads on my panel and a panel extender for extra zones. its shows on the alarm that it has found 4 keypads . rpk id 1 has an id , rpk2 and rpk 3 also , but rpk 4 (Arduino i think has no id ? when i leave the engineer log it says on the Arduino screen Connection closed. Is there a way to set the Id of the Arduino in the code or is it assigned by the panel ?




  • Registered Users, Registered Users 2 Posts: 3,896 ✭✭✭ozmo


    In the Aritech version - you can specify an ID - but in HKC - each device found is assigned an id when you scan for new devices.

    I don't have that many keypads to recreate your issue - maybe remove some keypads to test and add them back one at a time? See if the issue is caused by other keypad?


    The keypad does have a serial number though - might be worth altering a number in the line below - this is the unique serial number of the keypad - eg. try change the 0x08 in this line to 0x09 - see if having a different serial number helps? Its in the file: RKP.cpp

    static byte RKPSerial[] = {0x41, 0xC7, 0x08};

    Post edited by ozmo on

    “Roll it back”



  • Registered Users, Registered Users 2 Posts: 21 Vasarbob


    Changed the code as you said but no joy. it will relay the screen as long as i'm in assign id menu but if i leave then i loose connection.i used an arduino mega to print out the log and i see it registers the arduino to ID#2..... here is the screen grab of the log




  • Registered Users, Registered Users 2 Posts: 21 Vasarbob


    one more thing . if i refresh the page a few times there can be a chance that READY TO ARM shows on the screen when i am out of engineer mode here is a screen shot of what happens in the log when this occurs




  • Advertisement
  • Registered Users, Registered Users 2 Posts: 21 Vasarbob


    Does the unique serial number of the keypad show up in the log .Maybe i could use it in the arduino , as i have a keypad that i do not use.



  • Registered Users, Registered Users 2 Posts: 3,896 ✭✭✭ozmo



    It was printed on a sticker stuck to the microprocessor chip inside the keypads I have here.

    I have two keypads and the serial both starts with 08Cxxx - so they are probably all sequential and so unique as they were made. Any number worked for me as long as it was different to the other two keypads I had connected.

    “Roll it back”



  • Registered Users, Registered Users 2 Posts: 2 Edhi48


    I really like this project! I just finished "refurbishing" all the yellowed parts of the alarm system by spray painting them.

    Every item can be taken apart completely so repainting is easy and it makes everything fresh again.

    Now that the alarm is up and running again I would really like to do this project!

    I would like to use the ESP version but unfortunately I've run into errors when trying to verify/compile from Arduino IDE.

    The steps I took:

    1.install latest version of Arduino IDE 1.8.19

    2.Installed the ESP boards with the following link: hXXps://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

    3.Installed library: esp32_https_server by FHessel v1.0.0

    4.Installed library: ESP8266 and ESP32 OLED driver by ThingPulse v4.3.0

    5.Only touched the IP address setting and WiFi setting in Config.h

    Initially when trying to verify/compile I would receive an error hwcrypto/sha.h could not be found. After googling for a while I read that modifying the file httpconnection.hpp: include "hwcrypto/sha.h" should be changed to include "esp32/sha.h"

    Now compiling goes a bit further but I'm receiving all kinds of UART errors which I have absolutely no clue what to do about :(

    I really hope someone could push me in the right direction as adding the ESP to the alarm system would be a very nice upgrade!

    C:\Users\test\Downloads\CastleAritechArduinoESP32-master\CastleAritechArduinoESP32\RKP.cpp: In static member function 'static void RKPClass::SerialInit()':

    RKP.cpp:70:5: error: 'UART_RXFIFO_FULL_INT_ENA_M' was not declared in this scope

      | UART_RXFIFO_FULL_INT_ENA_M

        ^~~~~~~~~~~~~~~~~~~~~~~~~~

    C:\Users\test\Downloads\CastleAritechArduinoESP32-master\CastleAritechArduinoESP32\RKP.cpp:70:5: note: suggested alternative: 'UART_BUFFER_FULL_ERROR'

      | UART_RXFIFO_FULL_INT_ENA_M

        ^~~~~~~~~~~~~~~~~~~~~~~~~~

        UART_BUFFER_FULL_ERROR

    RKP.cpp:71:5: error: 'UART_RXFIFO_TOUT_INT_ENA_M' was not declared in this scope

      | UART_RXFIFO_TOUT_INT_ENA_M

        ^~~~~~~~~~~~~~~~~~~~~~~~~~

    C:\Users\test\Downloads\CastleAritechArduinoESP32-master\CastleAritechArduinoESP32\RKP.cpp:71:5: note: suggested alternative: 'UART_FIFO_OVF_ERROR'

      | UART_RXFIFO_TOUT_INT_ENA_M

        ^~~~~~~~~~~~~~~~~~~~~~~~~~

        UART_FIFO_OVF_ERROR

    RKP.cpp:72:5: error: 'UART_FRM_ERR_INT_ENA_M' was not declared in this scope

      | UART_FRM_ERR_INT_ENA_M

        ^~~~~~~~~~~~~~~~~~~~~~

    C:\Users\test\Downloads\CastleAritechArduinoESP32-master\CastleAritechArduinoESP32\RKP.cpp:72:5: note: suggested alternative: 'GPIO_PIN26_INT_ENA_M'

      | UART_FRM_ERR_INT_ENA_M

        ^~~~~~~~~~~~~~~~~~~~~~

        GPIO_PIN26_INT_ENA_M

    RKP.cpp:73:5: error: 'UART_RXFIFO_OVF_INT_ENA_M' was not declared in this scope

      | UART_RXFIFO_OVF_INT_ENA_M

        ^~~~~~~~~~~~~~~~~~~~~~~~~

    C:\Users\test\Downloads\CastleAritechArduinoESP32-master\CastleAritechArduinoESP32\RKP.cpp:73:5: note: suggested alternative: 'UART_FIFO_OVF_ERROR'

      | UART_RXFIFO_OVF_INT_ENA_M

        ^~~~~~~~~~~~~~~~~~~~~~~~~

        UART_FIFO_OVF_ERROR

    RKP.cpp:74:5: error: 'UART_BRK_DET_INT_ENA_M' was not declared in this scope

      | UART_BRK_DET_INT_ENA_M

        ^~~~~~~~~~~~~~~~~~~~~~

    C:\Users\test\Downloads\CastleAritechArduinoESP32-master\CastleAritechArduinoESP32\RKP.cpp:74:5: note: suggested alternative: 'GPIO_PIN26_INT_ENA_M'

      | UART_BRK_DET_INT_ENA_M

        ^~~~~~~~~~~~~~~~~~~~~~

        GPIO_PIN26_INT_ENA_M

    RKP.cpp:75:5: error: 'UART_PARITY_ERR_INT_ENA_M' was not declared in this scope

      | UART_PARITY_ERR_INT_ENA_M

        ^~~~~~~~~~~~~~~~~~~~~~~~~

    C:\Users\test\Downloads\CastleAritechArduinoESP32-master\CastleAritechArduinoESP32\RKP.cpp:75:5: note: suggested alternative: 'UART_PARITY_ERR'

      | UART_PARITY_ERR_INT_ENA_M

        ^~~~~~~~~~~~~~~~~~~~~~~~~

        UART_PARITY_ERR

    Multiple libraries were found for "WiFi.h"

     Used: C:\Users\test\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\WiFi

     Not used: C:\Program Files (x86)\Arduino\libraries\WiFi

    Multiple libraries were found for "Preferences.h"

     Used: C:\Users\test\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\Preferences

     Not used: C:\Users\test\Documents\Arduino\libraries\Preferences

    exit status 1

    'UART_RXFIFO_FULL_INT_ENA_M' was not declared in this scope



  • Registered Users, Registered Users 2 Posts: 3,896 ✭✭✭ozmo


    I will try recompile with the latest esp32 sdks and see whats needed- something must have changed with the latest ESP libraries.

    “Roll it back”



  • Registered Users, Registered Users 2 Posts: 2 Edhi48




  • Advertisement
  • Registered Users, Registered Users 2 Posts: 3,896 ✭✭✭ozmo


    Hi - I've updated all my code libraries to latest (Still using Arduino 1.8.13 though) - but with no change to code it all compiles with no errors or warnings - I cannot replicate those message you are getting....

    Can you make sure you have selected an ESP32 Board - eg. "D1 R32", "WEMOS LOLIN32" - you will need install ESP32 Board support via the Arduino IDE if you havent already.

    Also - you may need install "esp8266-oled-ssd1306" and "esp32_https_server" as described in the header of the main ino file.

    If you are not using an ESP32 board - eg. an UNO - there is another project in git for that board.


    pm me if you are stuck.. with details of the esp32 board you are using - versions of software etc. all the best...

    Post edited by ozmo on

    “Roll it back”



  • Registered Users, Registered Users 2 Posts: 987 ✭✭✭Kenny Powers


    Only found this thread today, great project and thanks for a the time and effort put into it. I've a HKC panel does the esp32 code work for this with the Alexa intergration? Would be great to trigger lights and things when the alarm goes off.


    If Arduino is the only option for HKV and email no longer works is there any other way to send a notification maybe connect to a different WiFi Alexa enabled door sensor so you get a push notification the alarm has activated.



  • Registered Users, Registered Users 2 Posts: 1,817 ✭✭✭tnegun


    @ozmo Any plans to do an ESP version of the HKC project? I've been using a Raspberry PI to monitor the serial out of an HKC812 for the last 7 years or so but it's starting to give trouble so was thinking of upgrading over the Christmas holidays!



  • Registered Users, Registered Users 2 Posts: 1,817 ✭✭✭tnegun


    I have the Arduino side up and running with an ethernet shield and can connect to the web keypad but have had no luck connecting the web keypad. It just displays "Not Connected" I've attached a couple of picutre if anyone can see anything wrong with the circuit I built as I'm very much an amateur. I've run through the add and ID devices step too with no luck. It just says RKP 2 has no ID.




  • Registered Users, Registered Users 2 Posts: 1,817 ✭✭✭tnegun


    Troubleshooting I measured the voltage at the Arduino RX/TX pins and RX is 6v and TX5v. I think this means the circuit appears to be working? I've tried a different Arduino clone too but not luck getting it recognised.



  • Registered Users, Registered Users 2 Posts: 3,896 ✭✭✭ozmo


    I had a ESP32 version almost complete I think - I might have some time over Christmas I can have a look see whats needed to complete it - if you want to help me test it pm me and Ill send the code as I have it..

    the rx and tx will be a rapidly changing on/off 0v/5v signal many times a second - you wont be able see it with a multimeter unfortunately but the leds should blink on the arduino to show activity - 6v sounds a little high...maybe double check those resistors in the circuit?

    I would recommend trying connect using the diode first - no circuit needed - see the docs - just use a couple very short wires (under 30 cm) and 1 diode.

    pm me and we can discuss it off thread and post the outcome here later...

    “Roll it back”



  • Registered Users, Registered Users 2 Posts: 3,896 ✭✭✭ozmo



    oh also - Can you double check those transistors are the correct way around? In each case they should be in the order of EBC from left to right in your photo.

    “Roll it back”



  • Registered Users, Registered Users 2 Posts: 3,896 ✭✭✭ozmo


    I have an updated version of this now on ESP32.

    ​This is a simpler build with fewer components - eg. doesn't needing ethernet cards, power board and a easier to build circuit.

    It also adds extra features like LCD screen.. shortly I will have Alexa and Https support and support for more modern email servers.

    I've tested so far on HKC SWB/12 and it works very well.

    ​Github link:

    https://github.com/OzmoOzmo/CastleHKCArduinoESP32

    “Roll it back”



  • Registered Users, Registered Users 2 Posts: 10 altopal


    @ozmo Inspired by your work for the remote keypad for the SecureWatch panel, I intended to set this up at home and bought a panel back in June 2021. Unfortunately I bought a SecureWave panel by mistake, which uses a different protocol.

    Determined not to have wasted my money, I spent a couple of weeks analysing the protocol for that panel, and implemented a working keypad with an ESP32. Your documentation & circuits were a great help, I wouldn't have attempted a project like this if I hadn't seen them!

    I intended to tidy it up and share it, but never got around to it. I finally put a more time into it at the end of last year and actually installed the panel / sensors etc. Now that I've had it working for a few weeks and it seems stable, I've pushed the code up to github:

    https://github.com/altopal/VKP-ESP32

    It has a basic web-based keypad embedded to control it via a WebSocket, but doesn't have any fancy Alexa integration or anything.



  • Registered Users, Registered Users 2 Posts: 3,896 ✭✭✭ozmo


    That's great - really nicely done. Nice webpage - and I like how you even got the beep sound to work on the web pages - I must add that :)

    How did you handle the electrical connection of the ESP to the panel? You say tx and rx is on the same wire - that makes it tricky all right.

    “Roll it back”



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 10 altopal


    I added some images to the doc/ directory in github showing the circuit I'm using.

    The TX & RX on one wire was awkward. At an electrical level, some googling suggested there was a risk of a short circuit if the two were just connected directly together. This document described the problem, I think section 3.1 is what I based the circuit on:

    https://ww1.microchip.com/downloads/en/AppNotes/USART-in-One-Wire-Mode-ApplicationNote-DS00002658.pdf

    On the software side, every time I sent a response frame back to the panel I ended up seeing that frame and have to discard it. I'm tracking the counter that's in each frame to know what I've processed already.



  • Registered Users, Registered Users 2 Posts: 3,896 ✭✭✭ozmo




    That's great you got it working, its a little like my circuit(link) except I don't use one wire on the esp side but separate RX and TX.

    - from what you describe I think yours is likely RS485 - you can get some really cheap converters that will automatically convert these 2 A&B differential signals to ESPs RX and TX pins.

    I tried to use them in my circuit, to simplify making it - but the voltages in HKC and Aritech data lines are 15V - too high for these but look like they might suit your alarm panels more standard voltage data bus.

    https://www.amazon.co.uk/DollaTek-Adapter-Serial-Converter-Module/dp/B07DJ4TGY3 or slower delivery from here - https://www.aliexpress.com/item/1005003741000503.html


    Nice that the SecureWave seems to be standard 8 bit and good fast speed too.

    - the HKC is n,9,1 - and the ESP's UART doesn't do 9 bits (the Arduino UNO could) - so I had use software serial - and there were bugs in the HKC serial comms,

    it erroneously sends an extra half width bit at the start of the first byte of some, but not all, messages - took me ages to spot that - nasty.


    >on the software side, every time I sent a frame back to the panel I ended up seeing that frame repeated and have to discard it. 

    Yes.. I also get that echoed message - but as every message is marked as coming from a keypad or panel - I just discard anything that is not from the panel - so it ignores its own echo as well as other keypads.

    :)

    “Roll it back”



  • Registered Users, Registered Users 2 Posts: 987 ✭✭✭Kenny Powers


    Thanks for sharing, what would be involved in adding a telegram bot notification or signal messages or something instead of email?



  • Registered Users, Registered Users 2 Posts: 3,896 ✭✭✭ozmo



    Sure - That's possible - I've done some tests and can get notification message to appear on a private bot on Telegram from the device to my phone...

    What you think would be useful features of Telegram to implement?

    “Roll it back”



  • Registered Users, Registered Users 2 Posts: 987 ✭✭✭Kenny Powers


    Not sure about what features telegram offers, I was just looking at it for notifications from the panel as I usually leave email notifications off and just check every so often. With Telegram or some other service you could potentially get notified quicker depending on your set up.



  • Registered Users, Registered Users 2 Posts: 10 altopal


    Thanks for the pointer toward RS485, I would probably have saved myself a lot of time and confusion if I'd posted here for help sooner! What I have is working now and seems stable, I'll stick with it unless I ever get around to doing a v2 of the board.

    > That's great you got it working, its a little like my circuit(link) except I don't use one wire on the esp side but separate RX and TX.

    I definitely started with your circuit, but thought at first I wouldn't need similar as the voltages from the panel and expected by the ESP32 were the same (3.3V). I ended up back with something very similar after reading about the risk of short circuit when connecting the RX/TX wires.

    > it erroneously sends an extra half width bit at the start of the first byte of some, but not all, messages - took me ages to spot that - nasty.

    Ouch!

    I recall seeing the problem with the lack of 9-bit UART on the ESP32 (back when I thought I was buying a SecureWatch panel), frustrating to have hardware serial on the ESP32 but not being able to use it.

    If I find some time in the future the next thing I was going to look at was to add mobile backup if WiFi is down. I have a basic push & SMS notifications via a cloud backend, but ideally I'd like something to ring my phone if an alarm goes off (too easy to miss notification on phone), and something that can still notify me if the power goes off.

    Post edited by altopal on


  • Registered Users, Registered Users 2 Posts: 3,896 ✭✭✭ozmo


    Telegram is implemented now in the ESP32 HKC version if anyone wants to give it a try...

    If enabled in the config - it sends a message to your private telegram account (bot) at power up and if there is an alarm - red or yellow warning light. Kinda like a text message alert on your phone.

    Pretty cool - thanks for the idea.

    “Roll it back”



  • Registered Users, Registered Users 2 Posts: 9 joevpt


    Hi Ozmo,

    This is a really great project. I've just had a new HKC panel (SW1070/SW12070) installed and have the HKC app to remotely monitor/set/unset the panel. The issue of couse is, that this convenience comes at a monthly cost (justified by the lads at HKC by the cost of providing the comms and cloud service, and software upgrades blah, blah blah). There was a time when their focus was on building panels and making money on those. Now you pay for the panel, and over 10 years pay another 200%-300% of the initial cost for a notification service (of course you can choose not to have it, but being able to reset the panel remotely is useful - though not at the cost of a Netflix subscription per month !!)

    Your project is a potential workaround, and once the functionality is all incuded, would be a much more cost effective alternative.

    Enough preample, here's the techie question bit:

    I'm wondering whether the keypad bus is the same bus that is presented to the digi board. If it is, then I think the design could be condensed down to an ESP based chip placed on a new daughterboard with a small number of additional components. If that were the case, the potential would be there to use some free online services to provide at least the same useful features as the paid service provides (acknowledging that some services such as firmware upgrades should not be replicated). I only just have the App so, hopefully after a few months I will know whats useful to me (right now I'm thinks the state of each zone, the logs, the ability to set/unset, the ability to see the current panel state ).

    It's a pity we are at the start of the summer, because this sounds like a good winter time project.... I'm book-marking for now, but intend coming back to this later in the year.

    Well done. The work you've done thus far is really great showing that in principle it can be done.



  • Registered Users, Registered Users 2 Posts: 21 Vasarbob


    Class Ozmo. See you got HKC crossed over to an ESP32 . Will give this a go now and get back to let you know how it goes. Cheers



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 3,979 ✭✭✭mp3guy


    Has anyone gotten this running on a SW-1070? I'm confused as it has four ports for the RKP, + - A B.



  • Registered Users, Registered Users 2 Posts: 3,896 ✭✭✭ozmo



    Hi - The HKC's use only 3 wires - +5V, GND - the A and B (receive/transmit) are actually the same - both receive and transmit are done on the one wire.

    So you only need connect up one to the circuit - see image

    https://github.com/OzmoOzmo/CastleHKCArduinoESP32/raw/main/Docs/HKCPinOut.JPG?raw=true

    (The Aritechs use and need all 4 wires)

    “Roll it back”



  • Registered Users, Registered Users 2 Posts: 987 ✭✭✭Kenny Powers


    In the code for the esp32 it refers to rx16 and tx27 do I just change these to 6 & 7 for the D1 32 board?


    On the proto shield layout pins 4&3 are connected to resistors but don't appear to be connected to anything else, can we just leave these out?



  • Registered Users, Registered Users 2 Posts: 3,896 ✭✭✭ozmo




    Oh - Good question - those resistors were for optional feedback leds that show good communication with the panel... leave out or fit leds as in the image below if you like lots of flashing lights (I do) - preferably different colours - Ill update the docs online.

    16 and 27 I think are correct though - the Pins on the ESP D1 32 dont match the Arduino UNO layout and the numbers printed on the board- see eg.

    https://bpb-ap-se2.wpmucdn.com/blogs.auckland.ac.nz/dist/9/698/files/2021/08/2_Pinout_D1_R32.png


    also - this is the display module you can use (about 3 euros) - again optional - it displays some feedback about wifi status. It clips onto pins gnd/18/19/23 partially covering the first transistor.

    https://www.aliexpress.com/item/1005005281308478.html

    “Roll it back”



  • Registered Users, Registered Users 2 Posts: 987 ✭✭✭Kenny Powers


    Thanks a mill for that, I think I need glasses I couldn't see 16 & 27 just 6 & 7 but as per your attachment sure enough they are 16&27



  • Registered Users, Registered Users 2 Posts: 15 MauriceVeenman


    Hello, was this ever resolved? I am having the same error messages. Kind regards from the Netherlands, Maurice



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 3,896 ✭✭✭ozmo


    Those changes the compiler output posted above look fine and easy to change - they seem to have simplified the spelling on some constants the code needs - i’ll update the git code tomorrow.

    Dunno why they keep changing the libraries. Small things like renaming stuff of course is going to break existing code.

    if you want you can change the compiler to compile with an earlier Arduino library also. It should compile with no errors.

    Also look into “Retrobrighting” for making old yellowed plastics white again. Basically use hair products (peroxide) and uv light (or sunlight). The retro gaming community use them all the time for old consoles. Even leaving out for several in sunlight can help…

    “Roll it back”



  • Registered Users, Registered Users 2 Posts: 15 MauriceVeenman


    Ok, thank you! I'll see if I get it running with older libraries, although I have no idea yet how to do that :). I am a newby with these things, but I think it is a cool project, and it would be awesome if I get it up and running. I'll report back if I make some progress.



  • Registered Users, Registered Users 2 Posts: 15 MauriceVeenman


    Ok, I can compile without errors now. I used the suggested variables. I can also flash the code to the Wemos D1 R32 board (first I could not, turned out to be an issue with the micro usb cable). I uncommented the DEBUG_LOG line in Config.h (because nothing was happening in the Serial Monitor.

    I now constantly get the following lines:

    21:26:28.044 -> End EtherInit
    21:26:28.520 -> Connecting..Connecting..Connecting..Connecting..Connecting..Connecting..Connecting..Connecting..Connecting..Connecting..Wifi Down - Start Wifi
    21:26:34.114 -> End EtherInit
    21:26:34.614 -> Connecting..Connecting..Connecting..Connecting..Connecting..Connecting..Connecting..Connecting..Connecting..Connecting..Wifi Down - Start Wifi
    21:26:40.177 -> End EtherInit
    21:26:40.675 -> Connecting..Connecting..Connecting..Connecting..Connecting..Connecting..Connecting..Connecting..Connecting..Connecting..Wifi Down - Start Wifi
    21:26:46.198 -> End EtherInit
    

    So I think it cannot find or connect to my Wifi network. I've put the correct credentials in the config.h file. So, some progress but still a long way to go :)



  • Registered Users, Registered Users 2 Posts: 15 MauriceVeenman


    Ok. Can connect to a different Wifi. The webserver is also running :). But it is not hooked up to the Alarm System yet. I still have an issue with my oLED screen: it remains black.



  • Registered Users, Registered Users 2 Posts: 3,896 ✭✭✭ozmo


    Did you make up the circuit board? Post a clear zoomed in photo of both sides and we can check the wiring…

    “Roll it back”



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 15 MauriceVeenman


    Yes, I soldered the circuit. But should the oLED not also work without the extra circuit, if I just hook up GND, VCC, SCK and SDA to 4 pins on the WEMOS?

    Also, the Prototype Shield has 8 pins on the right with the plastic casing, whereas the underlying WEMOS has 10 pins: the 2 extra being the SCL and SDA. So from your picture on Git I can not clearly see where the oLED is connected to.

    I probably misunderstand something :)

    Directly to the WEMOS:


    The soldered circuit:





  • Registered Users, Registered Users 2 Posts: 3,896 ✭✭✭ozmo


    Thanks for the feedback - Il update docs with that

    I've update the code to support the latest ESP32 SDK - it should compile on latest again (v2.0.14) without issue.

    Your board looks good! - This is my board, it seems very close. I know I have 1 extra resistor - ignore that - It was for testing purposes.

    - the Oled is connected to GND,VCC(+3v), SDA(18) and SCL(19) - see below - as the shield didn't have sockets for the usual pins.

    I removed the black header on bottom right of the shield - I wanted to solder it all to make good contact as that is an important connection.

    The large capacitor is there to make flashing more reliable - try flashing with the shield on if you have issues uploading code to the ESP32.

    Oh - and the top board uses the 14v from the panel to power the bottom (esp32) board via that jack at the top - so this is all you need when done.



    “Roll it back”



  • Registered Users, Registered Users 2 Posts: 15 MauriceVeenman


    Ah, yes. oLED is working now. Tomorrow I'll hook the 4 wires up to the alarm system. I have a CS350 with 3 keypads. The ESP32 will be the 4th pad. But before I test it on the actual system I'll test it on a second CS350 with 1 keypad that I found 2 weeks ago on the Dutch equivalent of E-bay :)

    Thank you for your help so far! I would have been stuck for a long period without it. I'll post my new findings soon.




  • Registered Users, Registered Users 2 Posts: 15 MauriceVeenman


    Ok, seems to work. I hooked the ESP32 up to the spare alarm system. Installed the '2nd' key pad, and voila.

    Still a few issues:

    1) When trying to press the web key pad I initially got 'connection closed' messages. I then remembered that I still had a lot of debugging messages turned on. I commented this out, flashed again, and now the connection lost messages are gone. Could it be that the respons is too slow, when debugging was still turned on?

    2) I cannot connect to the smtp server for sending mails. Not with my personal provider, also not when I made a new account at gmail. Could it be related to this: https://support.google.com/accounts/answer/6010255?hl=en

    3) I could not engage the alarm. It complains about 'open zones'. Probably because I have no sensors connected to the spare alarm and I have also not configured it after the factory reset. I expect that I will not have these issues with my operational alarm system.

    4) I constantly lose the Wifi connection. Don't know why that is. When it happens I obviously can not access the webserver.

    That's it for now. I'll play a bit more with it before I transfer it to the actual alarm system.





  • Registered Users, Registered Users 2 Posts: 3,896 ✭✭✭ozmo


    Thanks for info- so google starting to block logging in using username and password. Will have look another solution. Meanwhile I have telegram app notifications working in the hkc version…could port and use that.

    Yeah- open zones- you need close the zone circuits- usually with resistors that are supplied with the panel for that purpose. Or otherwise inhibit/disable the zones.

    for wifi- make sure to use 2.4ghz rather than 5ghz - more reliable.

    “Roll it back”



  • Registered Users, Registered Users 2 Posts: 15 MauriceVeenman


    Last week I was away. I started experimenting with the setup today. I was able to disable the open zones, so that I am actually able to arm/disarm the alarm. It works. With the ESP32 I am able to operate the alarm.

    But the connection is not stable. After a while, it can vary from 10 min to 30 minutes, I am no longer able to navigate to the webserver. When I hook up the laptop to see the log messages, I see no Wifi related issues. Only messages related to the delay:

    The connection between the ESP and alarm is apparently ok, since the alarm is not tripping. It stays in the current armed or disarmed state. So, there only seems to be an issue with the webserver and/or wifi. When I ping the ESP, I get no response. I tried both http and https versions. In both cases I eventually lose the connection.

    You mentioned to make sure to use 2.4 GHz. When I go to my router, I see that both 2.4 and 5 are enabled. Do I just disable the 5 in the router to make sure I have a 2.4Ghz connection? Or do I have to do that differently? Thanks again.



  • Registered Users, Registered Users 2 Posts: 15 MauriceVeenman


    Ok, I just turned off the 5GHz option in the router. The ESP came back online shortly after without any intervention from me. I'll let it sit like this for a while, and see if it makes a difference. More later.



  • Registered Users, Registered Users 2 Posts: 15 MauriceVeenman


    Well, it didn't improve the situation much. I then switched to a different wifi network, and now the connection seems stable. The problematic one is an old router, acting as an access point. So, don’t know what the issue is, but this problem seems solved with the other wifi network.

    Now I want to include the web interface panel in to Home Assistant. Since I made Home Assistant accessible from outside my local network using duckdns, I can only use https sites. When I use https for the ESP32, things get slow, and I get all sorts of certificate messages. There seems to be workaround with Nginx Proxy Manager. I will first sort this out, and if that works, transfer the ESP to the actual alarm system. Keep you posted.

     



  • Registered Users, Registered Users 2 Posts: 15 MauriceVeenman


    Got it in Home Assistant. It's also accessible when not on the local network via a VPN tunnel. Now I want to 3D print a casing for the ESP32, with access to the oLED screen and reset button. After that hook it to the final alarm system. Almost there :)




  • Registered Users, Registered Users 2 Posts: 15 MauriceVeenman


    Printed a casing. Coming week I'll finalize the project.



  • Advertisement
Advertisement