Skip to content

Commit

Permalink
work on V4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xx committed Oct 10, 2024
1 parent d5522f6 commit f5e7309
Show file tree
Hide file tree
Showing 8 changed files with 17,358 additions and 16,603 deletions.
3 changes: 3 additions & 0 deletions firmware/esp32/gdoor/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "src/mqtt_helper.h"
#include "src/wifi_helper.h"
#include "src/printer_helper.h"
#include "src/udp_transmitter.h"

GDOOR_DATA_PROTOCOL gdoor_data_idle(NULL, true);

Expand Down Expand Up @@ -78,6 +79,8 @@ void setup() {
mqtt_topic_bus_rx = WIFI_HELPER::mqtt_topic_bus_rx();
debug = WIFI_HELPER::debug();

UDP_TRANSMITTER::setup();

JSONDEBUG("GDoor Setup done");
JSONDEBUG("RX Pin: ");
JSONDEBUG(WIFI_HELPER::rx_pin());
Expand Down
27 changes: 27 additions & 0 deletions firmware/esp32/gdoor/src/udp_transmitter.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* This file is part of the GDoor distribution (https://github.com/gdoor-org).
* Copyright (c) 2024 GDoor authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef UDP_TRANSMITTER_H

#define UDP_TRANSMITTER_H
#include <Arduino.h>

namespace UDP_TRANSMITTER { //Namespace as we can only use it once
void setup();
};

#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
(footprint "QFN-28-1EP_4x4mm_P0.4mm_EP2.3x2.3mm" (version 20221018) (generator pcbnew)
(layer "F.Cu")
(descr "QFN, 28 Pin (http://www.issi.com/WW/pdf/31FL3731.pdf#page=21), generated with kicad-footprint-generator ipc_noLead_generator.py")
(tags "QFN NoLead")
(attr smd)
(fp_text reference "REF**" (at 0 -3.3) (layer "F.SilkS")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp 1f50abfe-2ca6-40b3-9485-c46c4d7cb2e1)
)
(fp_text value "QFN-28-1EP_4x4mm_P0.4mm_EP2.3x2.3mm" (at 0 3.3) (layer "F.Fab")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp b0702216-a9fc-40a2-a5f4-608948d31abd)
)
(fp_text user "${REFERENCE}" (at 0 0) (layer "F.Fab")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp ad1fe1fe-5598-43c9-a9e3-b88662d3466e)
)
(fp_line (start -2.11 2.11) (end -2.11 1.56)
(stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp 2b841d23-d6f5-414e-99ef-ca9c3636ccef))
(fp_line (start -1.56 -2.11) (end -2.11 -2.11)
(stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp e517852e-439f-4b7f-9704-64bb2cf458d0))
(fp_line (start -1.56 2.11) (end -2.11 2.11)
(stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp cbe7f605-78b8-4082-85d0-543713103820))
(fp_line (start 1.56 -2.11) (end 2.11 -2.11)
(stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp 6bc71d30-6c61-426f-83b2-332371ae984d))
(fp_line (start 1.56 2.11) (end 2.11 2.11)
(stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp d3b22423-461d-4bbf-a3dc-70afc4ad9e66))
(fp_line (start 2.11 -2.11) (end 2.11 -1.56)
(stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp 16a431c4-7774-4716-babf-e3ed50704876))
(fp_line (start 2.11 2.11) (end 2.11 1.56)
(stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp 82aac895-0235-43cf-a549-14d1c4bd6a5c))
(fp_line (start -2.6 -2.6) (end -2.6 2.6)
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp a91baff5-c037-4eae-ab4a-da2d2529d702))
(fp_line (start -2.6 2.6) (end 2.6 2.6)
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp e0d42b8a-2725-48d2-8b04-6b56ccfc1dbb))
(fp_line (start 2.6 -2.6) (end -2.6 -2.6)
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp f1114183-3d7b-4872-8f09-4f82ddc128f9))
(fp_line (start 2.6 2.6) (end 2.6 -2.6)
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp a12151f9-78f9-438b-8080-6170549d1b7f))
(fp_line (start -2 -1) (end -1 -2)
(stroke (width 0.1) (type solid)) (layer "F.Fab") (tstamp 4b062673-5cc7-4305-b6b1-15d11de36b93))
(fp_line (start -2 2) (end -2 -1)
(stroke (width 0.1) (type solid)) (layer "F.Fab") (tstamp 793325ba-80a1-4dc5-8954-9c805377e816))
(fp_line (start -1 -2) (end 2 -2)
(stroke (width 0.1) (type solid)) (layer "F.Fab") (tstamp 7dde1e1c-49b1-44e9-85de-5cbaa4478e11))
(fp_line (start 2 -2) (end 2 2)
(stroke (width 0.1) (type solid)) (layer "F.Fab") (tstamp 3f27a4ef-a5ac-427b-8c00-ddb67984cd2e))
(fp_line (start 2 2) (end -2 2)
(stroke (width 0.1) (type solid)) (layer "F.Fab") (tstamp 56decbab-4409-46ee-974c-ba540a7bf149))
(pad "" smd roundrect (at -0.575 -0.575) (size 0.93 0.93) (layers "F.Paste") (roundrect_rratio 0.25) (tstamp 97e97f2d-279a-4f5f-a4a6-26f2333004fa))
(pad "" smd roundrect (at -0.575 0.575) (size 0.93 0.93) (layers "F.Paste") (roundrect_rratio 0.25) (tstamp 5c2e6ed2-d735-4547-a758-088346ed27d5))
(pad "" smd roundrect (at 0.575 -0.575) (size 0.93 0.93) (layers "F.Paste") (roundrect_rratio 0.25) (tstamp c97ece13-9432-45fa-9198-3712bc0cd90d))
(pad "" smd roundrect (at 0.575 0.575) (size 0.93 0.93) (layers "F.Paste") (roundrect_rratio 0.25) (tstamp d998a073-53cf-4b51-9fcc-a341f9f2e994))
(pad "1" smd roundrect (at -1.9375 -1.2) (size 0.825 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp ce437e19-a678-4377-a385-447538b5d790))
(pad "2" smd roundrect (at -1.9375 -0.8) (size 0.825 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 4213651a-b40e-4c7a-8e80-432afd214a9e))
(pad "3" smd roundrect (at -1.9375 -0.4) (size 0.825 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 8ff33d4d-0eba-4d78-975a-6ae34790e08e))
(pad "4" smd roundrect (at -1.9375 0) (size 0.825 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 821ebaf0-48b6-4589-81dc-ce2e0ce3e777))
(pad "5" smd roundrect (at -1.9375 0.4) (size 0.825 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 0d9ff9d0-3482-4185-97a2-3de440cbfc4d))
(pad "6" smd roundrect (at -1.9375 0.8) (size 0.825 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp b5f7ae29-f931-4402-8d85-8cfc3943b31a))
(pad "7" smd roundrect (at -1.9375 1.2) (size 0.825 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 5a065c19-9e40-4e94-ac1d-6bd375480871))
(pad "8" smd roundrect (at -1.2 1.9375) (size 0.2 0.825) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 891bd6f7-dabf-44f6-94aa-8b0879303227))
(pad "9" smd roundrect (at -0.8 1.9375) (size 0.2 0.825) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp baa28089-1c3d-4396-bf72-7b5ab1394e4c))
(pad "10" smd roundrect (at -0.4 1.9375) (size 0.2 0.825) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 1fce867a-3560-426b-9f39-de093f212844))
(pad "11" smd roundrect (at 0 1.9375) (size 0.2 0.825) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 9da56979-181c-4c5f-a694-b27fa43e7304))
(pad "12" smd roundrect (at 0.4 1.9375) (size 0.2 0.825) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp c93f534b-2d3b-445a-886a-3bd18d52623b))
(pad "13" smd roundrect (at 0.8 1.9375) (size 0.2 0.825) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp b0db91b5-c78a-46e5-a064-599f9be6d6d4))
(pad "14" smd roundrect (at 1.2 1.9375) (size 0.2 0.825) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 97fb186d-a0d1-4ec2-92c9-f3e50bd38de2))
(pad "15" smd roundrect (at 1.9375 1.2) (size 0.825 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 85651010-88c1-4116-afb5-8d1388d49f69))
(pad "16" smd roundrect (at 1.9375 0.8) (size 0.825 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp faaf8faa-2b54-4a74-a284-2008f85de13a))
(pad "17" smd roundrect (at 1.9375 0.4) (size 0.825 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 9ee9eaec-f3fa-474b-b63a-efc92a317dfa))
(pad "18" smd roundrect (at 1.9375 0) (size 0.825 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 23d84437-f391-4942-be26-9a9b0acc97d5))
(pad "19" smd roundrect (at 1.9375 -0.4) (size 0.825 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp f4d0e03d-f9bb-4c7a-90bf-c6786af7675a))
(pad "20" smd roundrect (at 1.9375 -0.8) (size 0.825 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 4e6f7760-ec73-45e0-9b4d-71e7b90e024c))
(pad "21" smd roundrect (at 1.9375 -1.2) (size 0.825 0.2) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 9ea56442-72c2-4b18-a43c-63838b4f5acb))
(pad "22" smd roundrect (at 1.2 -1.9375) (size 0.2 0.825) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 29212b89-1b6c-4ec7-8b3f-af6ee9efb389))
(pad "23" smd roundrect (at 0.8 -1.9375) (size 0.2 0.825) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 26c3bad7-a63c-42c5-b0ef-2418bf919671))
(pad "24" smd roundrect (at 0.4 -1.9375) (size 0.2 0.825) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 283335fe-2f85-4adb-927d-e3d3754c94c9))
(pad "25" smd roundrect (at 0 -1.9375) (size 0.2 0.825) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 62b2c5f7-826a-403b-98d4-69c12264bf2b))
(pad "26" smd roundrect (at -0.4 -1.9375) (size 0.2 0.825) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 0f070f1d-069e-4079-b97a-67cda5488db8))
(pad "27" smd roundrect (at -0.8 -1.9375) (size 0.2 0.825) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 3e0edf7d-5a5b-4cdb-98f6-1a0d82b6a874))
(pad "28" smd roundrect (at -1.2 -1.9375) (size 0.2 0.825) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25) (tstamp 23e94c85-e160-47fb-894c-af48a424d828))
(pad "29" smd rect (at 0 0) (size 2.3 2.3) (layers "F.Cu" "F.Mask") (tstamp beb1bf97-19f2-4a35-8ce2-ba61a121fea5))
(model "${KICAD6_3DMODEL_DIR}/Package_DFN_QFN.3dshapes/QFN-28-1EP_4x4mm_P0.4mm_EP2.3x2.3mm.wrl"
(offset (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
)
27 changes: 27 additions & 0 deletions hardware/esp32/Library.pretty/anschlussklemme2x1_3_5.kicad_mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
(footprint "anschlussklemme2x1_3_5" (version 20221018) (generator pcbnew)
(layer "F.Cu")
(attr through_hole)
(fp_text reference "REF**" (at -1.27 -6.31 unlocked) (layer "F.SilkS")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp 25fd18c6-888c-42fb-87fb-9d8da943f4d7)
)
(fp_text value "anschlussklemme2x1_3_5" (at 0 -1.5 unlocked) (layer "F.Fab")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp a64cc237-3b15-454f-92cc-d97a3b3b5b2d)
)
(fp_text user "${REFERENCE}" (at 0 0 unlocked) (layer "F.Fab")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp b4544511-e530-4b7f-af41-23e4c010e0ee)
)
(fp_line (start -3 -3.5) (end -3 3.5)
(stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp 33ba75dd-3335-4601-871c-849b5235f741))
(fp_rect (start -3.5 -3.5) (end 3.5 3.5)
(stroke (width 0.12) (type solid)) (fill none) (layer "F.SilkS") (tstamp f7602010-9c27-4460-9f65-e3716012381c))
(pad "1" thru_hole circle (at 0 -1.75) (size 2 2) (drill 1.1) (layers "*.Cu" "*.Mask") (tstamp 0d768786-56fd-4968-854c-aeb77f8d9353))
(pad "2" thru_hole circle (at 0 1.75) (size 2 2) (drill 1.1) (layers "*.Cu" "*.Mask") (tstamp df789821-6d49-4d21-871c-b5fc6eba56cd))
(model "${KIPRJMOD}/3dmodels/screwterminal_3_5mm_2.STEP"
(offset (xyz 3.6 -3.5 0))
(scale (xyz 1 1 1))
(rotate (xyz -90 0 -90))
)
)
Loading

0 comments on commit f5e7309

Please sign in to comment.