Commit Graph

125 Commits

Author SHA1 Message Date
Thomas Kunze
d1bdc6ef51 -remove hack for 0 terminating string in groupobjects
-fix logging on linux
-add parameters to python bindings
2024-09-12 00:16:49 +02:00
Thomas Kunze
b687cd24d9 fix build 2024-08-30 21:29:16 +02:00
Thomas Kunze
f9ba9acc3d more logging, chang knxPython 2024-08-30 20:47:43 +02:00
Thomas Kunze
71c1972217 build arm 2024-08-28 21:02:59 +02:00
Thomas Kunze
de6d6388f4 introduce Knx namespace 2024-08-28 20:12:21 +02:00
Thomas Kunze
628970a53d compiling again. 2024-08-20 01:37:35 +02:00
Thomas Kunze
1b68cd0ef7 no more std::string 2024-08-19 23:24:21 +02:00
Thomas Kunze
9294257985 reduce footprint with KNX_NO_PRINT 2024-08-19 18:07:27 +02:00
Thomas Kunze
546300d705 Logging in memory and linuxplatform 2024-08-19 16:25:30 +02:00
Thomas Kunze
774a6b1d71 logger split up 2024-08-18 00:38:54 +02:00
Thomas Kunze
897acfe10f turn TUNNELLING of again 2024-08-18 00:05:30 +02:00
Thomas Kunze
2585deb52c add logging 2024-08-17 17:27:27 +02:00
Thomas Kunze
cd62a78eb4 do away with some feature #ifdefs add #ifndef KNX_NO_* if necessary 2024-08-17 12:51:31 +02:00
Thomas Kunze
32bd812ace fix build 2024-08-17 01:30:15 +02:00
Thomas Kunze
31b765ab14 move files around and refactor cmake 2024-08-16 22:19:48 +02:00
Thomas Kunze
fcfeef3334 Refactor IP-Tunneling to use IpParameterObject directly instead of via BusAccessUnit 2024-08-10 00:18:50 +02:00
Thomas Kunze
5293dd8894 no more warnings 2024-08-09 21:30:35 +02:00
Thomas Kunze
84808912dc del files 2024-08-09 20:42:28 +02:00
Thomas Kunze
ee4d4ba3da Merge commit '7f11927' into openknx-merge 2024-08-09 20:30:39 +02:00
Thomas Kunze
2b11ecc4e1 Merge branch 'master' into openknx-merge 2024-08-09 19:56:10 +02:00
Thomas Kunze
9a88b48467 merge 2024-08-09 19:32:41 +02:00
Thomas Kunze
f676cd2a20 Merge commit '06e0365' into openknx-merge 2024-08-09 19:32:26 +02:00
Ing-Dom
85ac27a6ec add rp2040 build environment to knx-demo example for both example project and ci 2024-08-09 19:08:47 +02:00
Thomas Kunze
27ef9ee1f7 cmake changes 2024-08-09 19:08:03 +02:00
Ing-Dom
194de33ee2 update rp2040 plattform version in examples and ci 2024-07-22 23:27:07 +02:00
thelsing
df12374425
Update platformio-ci.ini 2024-07-21 17:14:42 +02:00
thelsing
8acf2f737d
Update platformio.ini 2024-07-21 15:55:56 +02:00
thelsing
18471e2e78
Update platformio-ci.ini
fix ci
2024-07-21 15:55:05 +02:00
Thomas Kunze
bfe5ffd91f update pybind11 2024-06-29 16:50:08 +02:00
Dom
7cbc0d8fff
Merge pull request #21 from OpenKNX/features/add_rp2040_to_demo
add rp2040 to knx-demo example
2024-04-23 17:20:46 +02:00
Dom
1ef4856740
Update platformio-ci.ini
use newest atmelsam plattform
2024-04-22 13:22:15 +02:00
Ing-Dom
cacbd9f175 add rp2040 build environment to knx-demo example for both example project and ci 2024-02-26 12:40:29 +01:00
Ing-Dom
defffbd573 fix build pipeline errors
custom_hwids.py was never executed in the ci pipeline, but the missing script was just a warning. With Plattform I/O Core 6.1.11 missing scripts are errors, so the pipeline fails.
2024-01-30 10:49:26 +01:00
Matthias B
8af9121f6f
H8I8O Example (#210)
Firmware for the H8I8O that allows configuring pins as input, output or PWM output in a similar way to the original.
2022-08-15 11:27:57 +02:00
thelsing
5dc3d7666b
Update platformio.ini 2022-08-15 11:12:48 +02:00
thelsing
476d9ce57d
Update platformio.ini 2022-08-15 11:12:30 +02:00
thelsing
6631d278a0
Update platformio-ci.ini 2022-08-15 11:12:16 +02:00
thelsing
2049321071
Update platformio-ci.ini 2022-08-15 11:11:57 +02:00
thelsing
704c334ffe
Update platformio-ci.ini 2022-08-15 11:10:06 +02:00
Matthias B
8b9ff4fce1
H8I8O (#209)
* Add defines for LED, button and serial port

To make supporting different board layouts easier, this introduces some new defines:

For all platforms:
- `KNX_LED` -  the programming LED, defaults to `LED_BUILTIN`
- `KNX_BUTTON` - the programming button, defaults to `0`

For Arduino platforms:
- `KNX_DEBUG_SERIAL` - the serial port that is used for debugging, defaults to `Serial`
- `KNX_SERIAL` - the serial port used for communication with the TPUART, default depends on platform

* GD32 flash workaround

Addressing #181

At least some GD32 devices seem to require unlocking the flash twice. As the unlock function exits with `HAL_OK` if the flash is already unlocked, STM32 devices can run the same code without issues.

* Add H8I8O and H8C09 configurations to knx-demo

Addressing #181

These configurations both serve as examples for the use of these boards and other custom boards that don't use the standard pinout.

* Add STM32 unlock target

This copies the brute force unlock approach by @pavkriz into a custom target. With this commit, it is possible to automatically unlock e.g. a H8I8O board without leaving the PlatformIO IDE.

See #181
2022-06-08 21:13:34 +02:00
croghostrider
bf70e162f8
fix constant comparison (#162)
* fix constant comparison

* .
2021-12-29 17:20:46 +01:00
Sonnengruesser
87edd3dfe0
Fix callback sequence (#153)
Save-/restore callbacks need to be defined before knx.readMemory() to ensure the restore callback is called.
2021-12-13 11:17:36 +01:00
croghostrider
6254fc9b67
fix bulid (#143)
fix bulid


fix bulid


fix bulid
2021-06-14 08:10:48 +02:00
croghostrider
2450c1c458
fix ESP32 IP KNX Demo (#139) 2021-06-02 17:55:07 +02:00
OutOfSync1
14162fb1a4
fix userdata saverestore (#133)
* * fix for save/restore of userdata

* change declaration of restore() in knx_facade.h to "const uint8_t* restore(const uint8_t* buffer)" to avoid calling default implementation in save_restore.h

* change typedefs to separate SaveCallback and RestoreCallback

* fix BME60 example, knx.setRestoreCallback() needs to use const uint8_t* as well

* fix commitToEeprom for ESP32

* trigger dirty flag for ESP32 to make sure data is committed
2021-04-14 23:46:03 +02:00
mumpf
164bf59166
added alternative GroupObject with less mangagement footprint (#125)
* corrected float with DPT9

* Switch Programming-LED also via Bus/ETS

* Again: Prog-LED switchable from bus/ETS

* DPT16 (to bus) implemented

* - added SMALL_GROUPOBJECT

* - added knx-demo-small-go example
- added config.h option (commented)
- changed platformio-ci.ini with -DSMALL_GROUPOBJECT
- changed plantformio.ini with tested -DSMALL_GROUPOBJECT

* - removed duplicate files

Co-authored-by: Waldemar Porscha <waldemar@porscha.eu>
Co-authored-by: Waldemar Porscha <waldemar.porscha@sap.com>
2021-02-18 09:40:35 +01:00
zelogik
21a05ae9b3
Add knx-433 (#122)
* knx-pzem004v30

Add first draft of a pzem-004t power/current/tension/etc.. on your main line (BE CAREFUL WITH VOLTAGE!)

PZEM-004t-v30 wired on a samd21 with the use of Sercom2

Use with slight modification of: https://github.com/mandulaj/PZEM-004T-v30
View issue:  https://github.com/mandulaj/PZEM-004T-v30/issues/43

* Rename examples/knx-pzem0004t.xml to examples/knx-pzem004/knx-pzem0004t.xml

* Delete knx-pzem004t.knxprod

* Delete pzem-004t-v30.ino

* Update: 'just move to right directory'

* Update knx-pzem0004t.xml

* Add: ProgMode

* Fix/Update/Add

Add: ResetEnergy function with datetime
Update: led Class
Fix: many typo, errors

* Cleaning

Some strange bug/feature...
Information is transmitted only when the device got time from KNX, I have put 
        if (timeStatus() == timeSet && resetPeriod != 0)
        {
           resetEnergyLoop();
        }

But don't know if it's enough...

* Create knx-433Dio.ino

* Add Files:

README.md

.xml and knxprod files

* Delete pzem-004t-v30.ino

* Update pzem-004t-v30.ino
2021-02-09 02:37:14 +01:00
Thomas Kunze
cddef776f7 move MAX,MIN,ABS to bits.h 2021-02-08 20:54:49 +01:00
Dennis Fleurbaaij
f169e20f2f
opt-out global KNX, ability to DIY construct knx object, minor cleanups (#121)
* Refactored the knx_facade a bit to make the auto-building of the global knx object and the buttonUp() ISR function opt-in. Also added the ability to quite easily attach another serial (in this case tested with Serial2 of an ESP32).

* Added visual studio code temp files to .gitignore

* Fix for missing build flag for WifiManager in ESP32_ip demo

* Added example in which we DIY build the KNX object and use ESP32's second UART to connect so that you can debug with the first one that's connected to USB.

* Minor platform cleanups to remove compilation warnings.

* ESP32 can't handle the defaulted 8192 byte EPROM. Next to that I needed to begin() the eprom lib in my setup() to get it to work and that requires knowing how much memory KNX will use. This fix makes the default more conservative and moves it's definition to the .h file so that other files can always use it as well.

* After comments from thelsing, inverted the logic. The default global knx object is now opt-out by defining KNX_NO_AUTOMATIC_GLOBAL_INSTANCE. See the knx-demo-diy project for an example.
Minor syntactic cleanups.

* Removed hardwareserial from facade (detail which was not needed)
Placed facade constructors together
Minor syntactic cleanup

* Fixed knx-cc1310 where own button routine was calling now private internal knx facade variable.
Renamed files in knx-demo-diy
Minor syntactic stuff

* Added gitattributes for binary knxprod files
2021-02-05 15:57:45 +01:00
zelogik
58d3721571
Add: 'Demo example for PZEM004t-V3 (#120)
* knx-pzem004v30

Add first draft of a pzem-004t power/current/tension/etc.. on your main line (BE CAREFUL WITH VOLTAGE!)

PZEM-004t-v30 wired on a samd21 with the use of Sercom2

Use with slight modification of: https://github.com/mandulaj/PZEM-004T-v30
View issue:  https://github.com/mandulaj/PZEM-004T-v30/issues/43

* Rename examples/knx-pzem0004t.xml to examples/knx-pzem004/knx-pzem0004t.xml

* Delete knx-pzem004t.knxprod

* Delete pzem-004t-v30.ino

* Update: 'just move to right directory'

* Update knx-pzem0004t.xml

* Add: ProgMode

* Fix/Update/Add

Add: ResetEnergy function with datetime
Update: led Class
Fix: many typo, errors
2021-01-21 18:41:55 +01:00