Commit Graph

909 Commits

Author SHA1 Message Date
9581b34b95 bl602 fast connect (#1868) 2025-11-22 16:32:21 +01:00
2086cb84fc Implementation of girier MCU driver for 2ch dimmer (#1846)
* Implementation of girier MCU driver for 2ch dimmer

* Fixed review notices

* makefiles

* dpType = 0; // TODO - uninitialized

* header

* add to vcproj

* header

* #if ENABLE_DRIVER_GIRIERMCU

* clear

---------

Co-authored-by: Tester <85486843+openshwprojects@users.noreply.github.com>
2025-11-18 22:00:19 +01:00
60ca11183f Add support for Frequency variable in AddChangeHandler (#1853)
* add support for frequency variable in AddChangeHandler

* bl0942 frequency variable rounding correction

* move frequency to last args for VCPPublishThreshold

* frequency selftest precision adjustments

---------

Co-authored-by: kcstonacek <stonacek@stonacek.nz>
2025-11-11 21:35:39 +01:00
b35a6731e4 reduce stack size iusage n ha discovery, next enum self test 2025-10-18 01:17:03 +02:00
0ec4b6a404 fix leak 2 2025-10-18 00:28:43 +02:00
42976ee561 few more fixes 2025-10-17 23:04:33 +02:00
60a7d1371c HA ENUMS PR FIX (remove 1kB from stack) 2025-10-17 22:47:16 +02:00
f5a3b2642b RTL new fix OTA (#1836)
* RTL new fix OTA
clean-up workflow

* fix esp cache?
2025-10-17 08:44:13 +02:00
4ad9a85a08 Add ChType_Enum and enable SetChannelEnum. (#1830)
* create a ChType_Enum to go with SetChannelEnum

* resolve build errors for ChType_Enum PR

* fixing build errors for simulator and others for cmd_enums.c

* added ChType_ReadOnlyEnum and assocaited enum selftests

* ChType_Enum simulation and memory error corrections

* ChType_Enum documentation updates

---------

Co-authored-by: root <root@stonacek.nz>
2025-10-14 09:21:18 +02:00
6279bcd07a Add Chip internal temperature as sensor in JSON (#1821)
* Add MCU temperature to json_interface.c

* Write chip temp even if there is no other sensor present

* Send chip temperature always as sensor "ESP32"
2025-10-05 00:01:57 +02:00
f60d242fbb Flag13 - extend pin state display to PLATFORM_GPIO_MAX (#1823)
* Update http_fns.c

* Update http_fns.c

* Update http_fns.c

* Revert "Update http_fns.c"

This reverts commit c899cb45b0.

* Revert "Update http_fns.c"

This reverts commit 012c49c32d.

* Update http_fns.c
2025-10-03 14:50:09 +02:00
4a2ae013ed HLW8112 Driver for energy measurments (#1810)
* initial test driver for hlw8112

Signed-off-by: Nizam <code@maxters.net>

* restrict build to BK7231N
will stub other platforms later

Signed-off-by: Nizam <code@maxters.net>

* fix newer gcc build

Signed-off-by: Nizam <code@maxters.net>

* fix channel b stat restore
after all i still doesnt get pointer arithmetic

Signed-off-by: Nizam <code@maxters.net>

* clean up flashvar bk7231 still use emetering struct to store data

Signed-off-by: Nizam <code@maxters.net>

* fix OpenBK7231N_ALT build fail

Signed-off-by: Nizam <code@maxters.net>

* disable incomplete spi device raw access commands and ui

Signed-off-by: Nizam <code@maxters.net>

* remove mqtt hack for commands. leverage existing tasmota command framework

Signed-off-by: Nizam <code@maxters.net>

* missed flashvar restore

Signed-off-by: Nizam <code@maxters.net>

* disable hlw812 driver for upstream pr

Signed-off-by: Nizam <code@maxters.net>

---------

Signed-off-by: Nizam <code@maxters.net>
2025-09-30 15:04:15 +02:00
6083ddfca5 RDA5981 (#1813) 2025-09-29 08:41:36 +02:00
98a115cb54 match Tasmtoas DS18B20 standard 2025-09-28 10:20:34 +02:00
d0dfea0822 battery sensor publish with no bl0937 build fix by dedamraz 2025-09-27 18:22:02 +02:00
c1d258fb60 Add DS1820 to JSON sensor output (#1809)
* first try for DS1820 sensors

* fix windows build

* Fix wrong comment format

* Fix code

* fix missing includes

* fix missing defines (only check if driver is included)

* Add DS1820 to sensors in "DRV_IsSensor
Fix string might be not empty

* fix output for long string in case of many DS1820 sensors
2025-09-27 09:15:20 +02:00
81d5ffa396 StripState pin (led_enableAll state output for transistor control for… (#1799)
* StripState pin (led_enableAll state output for transistor control for DMX LED strip)

* header
2025-09-16 11:10:53 +02:00
481cc0ede2 DMX works on ESP32 LilyGO, other platforms requires porting code to change baudrate
* ENABLE DMX on ESP

* test

* s

* Update hal_uart_espidf.c

* Update obk_main.cmake

* w

* test

* Update hal_uart_espidf.c

* Update drv_dmx512.c

* test

* test

* test

* w

* t

* c

* t

* test

* T

* Update drv_dmx512.c

* test

* test

* try flush

* try wait

* ticks w

* t

* fx

* 100 ms

* SIM fx

* Update cmd_newLEDDriver.c

* test 2x

* tests

* fixes

* free

* fix

* misc

* b

* hal

* s

* Update workflow.yaml

* pin

* fin

* test

* Update hal_uart_espidf.c
2025-09-14 21:07:24 +02:00
f68c6ac9f2 al;low empty entries in led remap (#1789)
* test

* some verification

* ha disc?
2025-09-06 10:30:11 +02:00
0d007112b1 TXW817 support (#1779)
* txw81x base no makefile

* txw81x

* gpio fix?

* non-working ota

* mic
2025-09-03 11:46:06 +02:00
f3d3ff412a BL602 irRemoteESP (#1777) 2025-08-30 21:24:04 +02:00
707bd127ac Split interrupts code into HAL - part 1
* bl602 test

* w600 test

* simplify

* rtl clear

* t

* draft for beken etc

* draft w600

* fxes

* fxes bl602

* realtek

* fx bl_gpio_intmask

* xradio

* esp

* gpio_isr_handler_add cast

* not needed

* reorg

* fx

* ecr

* fxes

* almost?

* HAL_DetachInterrupt fx

* newline

* use hal_pins.h

* counter

* silly fx

* Update hal_pins.h

* XR FIX? HOW I DIDN'T SEE THAT EARLIER

* guard for double call of HAL_DetachInterrupt

* do not do much in interrupt handler routine, apply deltas in quick tick

* try w800 blindly

* try

* tls_clr_gpio_irq_status

* try intptr_t to see if it compiles

* call tls_clr_gpio_irq_status  first?

* fx 2 omg

* frgot

* change to pullup input by default, add partially counter_r

* more

* ADD POS/NEG EDGE FOR MORE PLATFORMS

* esp
2025-08-24 17:29:17 +02:00
e5b1b864fa spellings (#1767) 2025-08-19 08:50:37 +02:00
36218fd38e ota cosmetic (#1762)
* step 1

* Update obk_main.mk

* Update OpenBeken.mk

* Update obk_main.cmake

* Update hal_ota_bk7231.c

* Update hal_ota_bk7231.c

* m

* split

* guards

* Update hal_ota_bl602.c

* Update hal_ota_bl602.c

* bk

* better

* header

* w

* TMP

* tttttttt

* Update rest_interface.c

* hal_ota is xradio header....

* undoi

* header

* move

* xradio

* read

* fx

* t

* makefile

* move out xradi o read

* fx

* move out esp

* move out bl602

* move out beken, ln

* move out w8

* ecr tr

* realtek

* Update rest_interface.c

* win

* forgot

* tr6260 split

* Update hal_ota_tr6260.c

* rename ota_progress

* use OTA_GetProgress on all paltforms

* fx

* not needed header

* call OTA_IncrementProgress on OTA so we at laest know that something is happening
2025-08-16 16:04:57 +02:00
b6662ec8b8 Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 2025-08-12 20:20:07 +02:00
a1501c00c4 RTL8721DA (AmebaDplus) and RTL8720E (AmebaLite) (#1718)
* amebadplus

* fix + amebalite

* ota, lfs, fast connect fix

* Fix TCP_MSL and hostname

* Readme and releaserc
fix esp irq

* small fixes

* setting mac on amebad/1

* ameba ir

* win ef

* update sdk & disable rtl8720e rest ota

* fix
2025-08-12 17:28:36 +02:00
d65e0db83e remove unused stubs 2025-08-12 11:02:17 +02:00
b8965817f6 bl602 deep sleep & ecr sdk update (#1743)
* bl602 deep sleep & ecr sdk update

* esp8266 disable wpa3

* platforms.md
2025-08-10 17:08:33 +02:00
94812a2587 BK7231T/U/ESP32/LN882H SPI LED (#1749)
* BK7231U/T_ALT SPI LED

* esp32 spi led dma

* ln882h led spi dma

* simplify

---------

Co-authored-by: Tester23 <85486843+openshwprojects@users.noreply.github.com>
2025-08-10 14:46:01 +02:00
0fb70227df add pinmutex driver (potentially for shutters); disabled by default
* draft

* Update drv_pinMutex.c

* working with self test?

* Update selftest_cmd_generic.c

* ENABLE_DRIVER_PINMUTEX on beken

* ChType_StopUpDown

* addRepeatingEventUID

* rest

* Update obk_config.h
2025-08-10 14:27:26 +02:00
aaaa95a8d1 correct spelling and grammar (#1747)
* Update http_fns.c

* Update flags.json

* Update flags.md

* Update selftest_mqtt_get.c

* Update flags.md

* Update flags.json

* Update http_fns.c

* Update user_main.c

* Update drv_ir_new.cpp

* Update subpages.json

* Update flags.json

* Update http_fns.c

* Update flags.md

* Update tcpServer.md

* Update hal_flashConfig.h

* Update flash_pub.h

* Update win_flash_stub.c

* Update hal_flashConfig_bk7231.c
2025-08-10 08:46:49 +02:00
a72fe4a4c5 add software SPI flash support (disabled by default) along with ultra-fast BK7231 software SPI and ability to store littlefs on that SPI , rel: https://www.elektroda.pl/rtvforum/topic4133583.html
* tt

* tt

* kk

* Update drv_spi_flash.c

* Update drv_spi_flash.c

* Update drv_spi_flash.c

* Update drv_spi_flash.c

* Update drv_spi_flash.c

* nodelay

* Update drv_spi_flash.c

* Update drv_spi_flash.c

* Update drv_spi_flash.c

* Update drv_spi_flash.c

* Update drv_spi_flash.c

* Update drv_spi_flash.c

* test

* test

* test

* tt

* Update our_lfs.c

* Update our_lfs.c

* Update our_lfs.c

* Update our_lfs.c

* Update our_lfs.c

* t

* Update drv_spi_flash.c

* Update drv_spi_flash.c

* ttt

* Update drv_spi_flash.c

* unrolll

* Update drv_spi_flash.c

* Update drv_spi_flash.c

* Update drv_spi_flash.c

* Update drv_spi_flash.c

* Update drv_spi_flash.c

* Update drv_spi_flash.c

* better wait for logic

* Update drv_spi_flash.c

* revert

* Update drv_spi_flash.c

* PLATFORM_BEKEN_NEW fix???

* faster?>

* faster?

* test memory

* test2

* restore

* coarse time test

* test

* restore

* DISABLE
2025-08-09 19:13:17 +02:00
eb77165be9 Update hass.h - add missing "hass_init_textField_info()" to avoid breaking ESP builds (#1753)
ESP builds with "-Werror=implicit-function-declaration", so we get

 error: implicit declaration of function 'hass_init_textField_info';
2025-08-09 19:10:58 +02:00
54ffddc75f textfield 2025-08-07 23:47:12 +02:00
8ee93ace88 Update http_fns.c 2025-08-07 23:44:19 +02:00
6ae05de560 textfield hass discovery? 2025-08-07 23:44:04 +02:00
6bb7a5743d Fix spacing in main page (#1738) 2025-07-26 15:53:54 +02:00
1c7cdd4881 Ds1820 simple+full as separate drivers (#1705)
* Seperate simple and full driver, introduce "common" for shared code

* Fix command prefixes

* Generate command as multiline if requested

* Fix JS linebreak

* Only use simple dirver - check sizes of firmware images

* Update obk_config.h - enable Full driver for all platforms to allow testing

* Change parsing sttring to device address to allow compact form
Change obk_config.h: remove extra entry for W800, add "FULL" driver to windows build

* fix windows code for "fake" DS18B20

* fix missing files in openBeken_win32_mvsc2017.vcxproj

* fix handle missing task.h for windows

* change Windows emulation to MAX/2 fake sensors

* try fix BL602

* change "fake temperature" of sensors in windows

* change windows sensor temperature once more

* shorten commands by alias

* fix escaping linebreak

* Fix broken JS code ...

* Fix ESP32 is crashing if interrupts are disabled during OWReset for > 480us

* Change output for unused channels
Test if DS1820 channels are in use

* fix warning/error for channel (<=64) printed into a char[5] value

* removeunuses quotes for address

* Fix language

* Capial "S" in Menu entry "Sensors"

* restore obk_config - #define ENABLE_DRIVER_DS1820_FULLonly for WINDOWS and SENSORS variant
2025-07-19 08:03:46 +02:00
01c029898d Show correct BSSID in json status instead of a "fake" one (#1689)
* Add HAL_GetWiFiBSSID() and HAL_GetWiFiChannel() commands
Display correct BSSID and channel in JSON status

* Testing bssid RTL

* Typo and new try for RTL

* Fix BSSID returned

* bettter

* test

* Update hal_wifi_xradio.c

---------

Co-authored-by: Tester23 <85486843+openshwprojects@users.noreply.github.com>
2025-07-10 21:51:05 +02:00
7bb04bdda2 safer str op 2025-07-10 15:27:26 +02:00
d4fb118c91 temporary fall back to sprintf 2025-07-10 09:28:08 +02:00
570feeef37 tasmota fields 2025-07-10 08:49:24 +02:00
ce465a15e6 http override 2025-07-09 21:13:27 +02:00
7f0b7b75d3 allow serving gz files from lfs with gz header 2025-07-09 08:15:30 +02:00
3c85604378 fix windows server 2025-07-09 08:03:41 +02:00
a261a71ab1 Update ESP-IDF to v5.5-beta1 and add minimal ESP8266 support (#1707)
* update esp-idf

* esp8266

* fix

* pwm, uart and wifi fix

* fix ota

* fix 1m and ps

* update workflow
2025-07-06 07:54:23 +02:00
55ce270fef simple correction in config page (#1708)
Since I saw this in an illustration for an "issue".
If I'm not mistaken, I changed the GUI some time ago so the additional input appears/vanishes as soon as role is changed to button. So no need to wait for saving...
2025-07-03 15:40:11 +02:00
217dd1e3e1 fix GET/POST for all platforms, remove some not needed os_* mappings (os_strcpy, os_memset, etc)
* get and post to PLATFORM_ECR6600

* test

* Update http_client.c

* t

* need timer

* iotx_net_init ?

* Update utils_timer.c

* try os_time_get

* try ENABLE_SEND_POSTANDGET on bl602 as welll

* Update utils_net.h

* add httpclient to boufallo mk

* Update utils_timer.c

* Update new_common.h

* time

* try ln882h

* Update utils_timer.c

* OS_STRCPY ETCCC

* esp IDF

* Update new_common.h

* Update utils_timer.c

* Update new_common.h

* remove hal_machw_time_past dependency

* lwip_close_force better

* stub

* simplifyu

* omg typo

* revert

* remove os_strcpy

* remove os_strlen

* memmove

* os_strcmp

* os_strstr

* mem func

* try on xradio

* #define lwip_close_force(x) lwip_close(x)

* SWAP

* typo

* Update utils_timer.c

* rtl

* Update new_common.h

* tr

* #include <stdint.h> is reduntant

* clean hdr

* those headers could be common

* those headers could be common

* disable

---------

Co-authored-by: Tester23 <85486843+openshwprojects@users.noreply.github.com>
2025-07-02 20:46:00 +02:00
69121fb252 merge gosund sw2 port (not clear if it will be used) 2025-06-30 21:56:13 +02:00
3b99b17cc2 Xradios (#1695)
* Xradios

* deep sleep

* xr806

* small adjustments
2025-06-30 18:47:47 +02:00