2964 Commits

Author SHA1 Message Date
Tester23
12dc29bce6 add assertion keyword 2025-03-23 23:26:32 +01:00
Tester23
bae7ffdb0b but only in self test 2025-03-23 23:12:41 +01:00
Tester23
7973525bbb comment out sleep 2025-03-23 23:10:51 +01:00
Tester23
5aac062144 fx? 2025-03-23 21:08:34 +01:00
Tester23
0808d7b327 fxes 2025-03-23 20:31:26 +01:00
Tester23
472e6697ed more 2025-03-23 18:32:42 +01:00
Tester23
145d593c29 stubs 2025-03-23 18:17:00 +01:00
Tester23
e73a72f8c7 better? 2025-03-23 16:19:42 +01:00
Tester23
8b020ce97e fxes 2025-03-23 15:57:30 +01:00
Tester23
745f096d1a fxes? 2025-03-23 15:48:37 +01:00
Tester23
8981fe396e fx 2025-03-23 15:32:37 +01:00
Tester23
3f82e936da fx 2025-03-23 15:24:30 +01:00
Tester23
eb332f01b6 fxes 2025-03-23 15:20:35 +01:00
Tester23
db90731012 fxes 2025-03-23 15:05:17 +01:00
Tester23
5f9aacbd80 fxes 2025-03-23 14:33:38 +01:00
Tester23
32a5fc012f fxes
f
2025-03-23 14:30:59 +01:00
Tester23
1b9e4c5d4e fxes 2025-03-23 14:21:58 +01:00
Tester23
01cb0666a8 fxes 2025-03-23 14:18:32 +01:00
Tester23
467aeaa7a2 Merge branch 'linux2' of https://github.com/openshwprojects/OpenBK7231T_App into linux2 2025-03-23 14:11:45 +01:00
Tester23
875a1a3540 fx 2025-03-23 14:11:32 +01:00
Tester23
627834fcf8 tr 2025-03-23 14:08:43 +01:00
openshwprojects
21585b0566 Merge branch 'main' into linux2 2025-03-23 13:54:49 +01:00
Tester23
fd09085718 netdb 2025-03-23 13:50:38 +01:00
Tester23
b80fff5d40 added TuyaMCU delta option for per-dpID calibration like temperature, etc 2025-03-23 09:23:57 +01:00
Tester23
64b4136283 command to send mqtt group 2025-03-23 08:49:14 +01:00
Pavel Rochnyak
c30dcbf205 DS1820: Fixes and style improvement (#1572)
* drv_ds1820_simple.c: Refactor using "Return Early Pattern"

Function DS1820_OnEverySecond() has too much nesting conditions.
Nonlinear flow of the code is hard to follow.

Also added define for magic constants.

* drv_ds1820_simple.c: Fixed incorrect first reading

DS1820_DiscoverFamily() call between OWReset() and OWWriteByte(Pin, COMMAND) causes command to ignore.

Closes: #1571

* drv_ds1820_simple.c: reset all state variables on driver start

* drv_ds1820_simple.c: Implemented DS1820_SetResolution command

* drv_ds1820_simple.c: Mark functions as static

* drv_ds1820_simple.c: Call DS1820_DiscoverFamily() from DS1820_driver_Init() so DS1820_SetResolution could be called from autoexec.bat
2025-03-17 08:38:45 +01:00
NonPIayerCharacter
9ad08c17b6 bl0937 (#1569) 2025-03-16 08:25:42 +01:00
NonPIayerCharacter
7ace8c31ba tr6260 (#1564) 2025-03-13 09:01:58 +01:00
Bartosz Nitka
9af814c490 Expand testRealloc (#1563)
* Expand testRealloc

I was debugging an issue in another pull request and I noticed that
`realloc` was behaving weird on my OpenBK7231T device.

I've found #298, so it looked like a known problem.

The old test doesn't hang my device, so extended it and it looks like
sometimes reallocated memory gets overwritten.

Here's a log from my device:
```
Info:CMD:Realloc difference: rep 90, i 2 j 0 initialra1 230 ra1 242 msg[j] 8 (j % 100) 0
Info:CMD:Realloc difference: rep 90, i 2 j 1 initialra1 230 ra1 242 msg[j] 121 (j % 100) 1
Info:CMD:Realloc difference: rep 90, i 2 j 2 initialra1 230 ra1 242 msg[j] 66 (j % 100) 2
Info:CMD:Realloc difference: rep 90, i 2 j 3 initialra1 230 ra1 242 msg[j] 0 (j % 100) 3
Info:CMD:Realloc difference: rep 90, i 2 j 4 initialra1 230 ra1 242 msg[j] 88 (j % 100) 4
Info:CMD:Realloc difference: rep 90, i 2 j 5 initialra1 230 ra1 242 msg[j] 1 (j % 100) 5
Info:CMD:Realloc difference: rep 90, i 2 j 6 initialra1 230 ra1 242 msg[j] 0 (j % 100) 6
Info:CMD:Realloc difference: rep 90, i 2 j 7 initialra1 230 ra1 242 msg[j] 0 (j % 100) 7
Info:CMD:Realloc has been tested! Total calls 90, reps now 100, reallocBroken 1
```

It's pretty non-deterministic, but during my debugging I've noticed it's
related to timers and one way we use timers is logging.

Issue #298 mentions eaf4e1a606/platforms/bk7231t/bk7231t_os/beken378/os/mem_arch.c (L30)
which references `platform_is_in_interrupt_context` which I assume is
related to timers as well.

* Technically malloc and realloc could return NULL

* Unbreak CI by restoring obk_config.h
2025-03-12 15:00:34 +01:00
NonPIayerCharacter
544f48d022 ECR6600 (#1553)
* ECR6600

* fix macstr

* uart, bl0937

* vbat adc, ota

* pwm freq

* static ip, change mac

* update partitions
2025-03-07 22:11:42 +01:00
NonPIayerCharacter
a5301939a7 Update hal_wifi_bk7231.c (#1560)
Ensure that connected event is triggered only once.
2025-03-06 21:07:46 +01:00
alexsandroz
86fbfe90e0 Mqtt-mbedtls (#960)
* Update package.json

Update repo url for build

* MQTT over TLS first build

* MQTT TLS boot ok

* Funcional version MQTT secure TLS

* Add option for mqtt to use tls in web config

* Versao funcional pendente otimizacao de rom

* Versao funcional com verify certificate disabled

* Adicao de informacoes para debug

* Versao funcional com verificacao do certificado

* Otimizacoes de rom e heap usage

* Versao com webserver enable/disable

* Versao boa para mqtt mbedtls boa uso

* Invert CFG enable_web_server to disable_web_server

* MQTT over TLS first build

* MQTT TLS boot ok

* Funcional version MQTT secure TLS

* Add option for mqtt to use tls in web config

* Versao funcional pendente otimizacao de rom

* Versao funcional com verify certificate disabled

* Adicao de informacoes para debug

* Versao funcional com verificacao do certificado

* Otimizacoes de rom e heap usage

* Versao com webserver enable/disable

* Versao boa para mqtt mbedtls boa uso

* Invert CFG enable_web_server to disable_web_server

* Same documentation

* Rever submodulos configuration

* Rever ignore submodules

Rever ignore submodules

* Fix for git actions

* Fix build start_type_pub only in platform Beken

* Fix build git w600

* Fix BL602 build

* Remove format only changes

* Delete src/driver/drv_ir.cpp

Space changes only

* Updates to pull request

* Revert space only changes

* Change cfg bool to byte and some documentation

* Fix get initial time from compile time

* Fix base64.c duplicate module

* Fix base64.c duplicate module for git workflow

* Fix strange behavior on BK7231n. Connection completed only in the second callback WIFI_STA_CONNECTED

* MQTT-MBEDTLS default disable

* Fix SERIOUS bug breaking all platforms except BK7231N (did you want to set g_bHasWiFiConnected  in #else?)

---------

Co-authored-by: Tester23 <85486843+openshwprojects@users.noreply.github.com>
2025-03-05 19:27:51 +01:00
Tester23
49a466aecb float change callback temp fix 2025-03-05 08:51:37 +01:00
Tester23
8c01b0cf83 test for addChangeHandler Channel20 != 0 2025-03-05 07:27:02 +01:00
openshwprojects
55e76b504a PWM frequncy select and move freq code outside hal (#1554)
* test

* w

* fx

* fx

* reapply to change pwm ffreq?

* array
2025-03-02 15:03:20 +01:00
XJ
1cc0603748 Cmd Flags 64bit repair + webui (#1548)
* flags 64bit cmd repair + webui

* uint32

* flags 0 webui strange char repair
2025-03-01 06:17:38 +01:00
NonPIayerCharacter
969e5bfa50 RTL8720D (#1550)
* ambd

* update sdk, get current fw idx

* test

* ota

* reset if hard fault

* revert and fix

* uart flow control

* disable uart tcp debug by default

* test

* wifi test

* adjust lwip
adjust scan

* increase timeout

* enable ssdp, close uart tcp sockets on restart

* test

* pwm

* fix bl0942

* cut some code
2025-02-28 08:43:00 +01:00
Tester23
23e67076c3 ip parse test 2025-02-26 22:32:11 +01:00
Tester23
e67d605964 Fix warnign 2025-02-26 22:27:33 +01:00
Tester23
0d18dd0a22 expression test 2025-02-26 20:43:40 +01:00
Tester23
1b455ef82e most basic tests 2025-02-26 20:40:18 +01:00
Tester23
a00d88b2a1 add test driver - disabled by default 2025-02-26 20:35:26 +01:00
XJ
3c22b5e4ad Twin BL0942 mod - Two BL0942 on two UARTs on one power metering device (#1531)
* Twin BL0942 mod

* Energy data more checks for index 0

* BL09XX_ResetEnergyCounter reset lastSavedEnergyCounterValue

* added ENABLE_BL_TWIN compiler option, default disabled

* added more ENABLE_BL_TWIN
2025-02-26 11:51:22 +01:00
openshwprojects
974d97acda try ln flash read (#1547)
* try flash read

* fx

* clera buffer so we won't get nonsense

* clear buffer
2025-02-25 22:58:29 +01:00
Tester23
9b9f6359d4 remove printf per request 2025-02-24 10:06:05 +01:00
Tester23
1ea3519307 script pwm 2025-02-23 20:35:18 +01:00
openshwprojects
80111be27e Update hal_pins_ln882h.c 2025-02-20 08:35:07 +01:00
openshwprojects
e88875a458 Update hal_generic_bk7231.c 2025-02-15 10:34:33 +01:00
NonPIayerCharacter
d4d6c69be3 BK7238 (#1527)
* beken new sdk + bk7238

* fix bk7238
2025-02-14 22:22:59 +01:00
Tester23
437bd68daa xr806 p2 2025-02-10 00:02:02 +01:00