Commit Graph

49 Commits

Author SHA1 Message Date
e5b1b864fa spellings (#1767) 2025-08-19 08:50:37 +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
782d478b87 fix xr806
* Update http_tcp_server.c

* Update http_tcp_server.c

* better naming

* debug print

* TRY TO CLEAR UP A BIT

* Update http_tcp_server.c

* Update http_tcp_server.c

* Update http_tcp_server.c

* Update http_tcp_server.c

* Update new_http.c

* XR auth disabled

* clear log

* Update OpenXR806

* Update OpenXR806

* Update new_http.c
2025-04-19 20:33:08 +02:00
a5a5b4b7b9 xr872 (A9 camera) 2025-04-18 18:05:04 +02:00
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
d4d6c69be3 BK7238 (#1527)
* beken new sdk + bk7238

* fix bk7238
2025-02-14 22:22:59 +01:00
532a90313c TR6260 support (#1446)
* TR6260 initial

* fix gh-actions

* various fixes/features

* wifi fast connect fix

* fix gpio, add i2c

* move config to obk
2024-12-12 18:55:26 +01:00
c00f1a968d temporary bl602 fix 2024-07-20 14:52:54 +02:00
e1f8e59e13 simple IR2 driver for sending captures from flipper zero
* test

* Update drv_ir2.c

* fx

* fx

* fx

* qq

* test3

* tok

* test duty

* fx

* hdr

* fx

* fx

* tr

* n header

* tr

* tr

* fx

* fx

* test

* tr

tr

* fx

* simpler

* fx

* test

* fx

* dbg

* tr

* tr

* fx

* fx

* fx

* tr

* fx

* pin select

* fx

* fx

* Update drv_ir2.c

* Update drv_ir2.c

* try

* Update drv_ir2.c

* Update drv_ir2.c

* fx

* Update drv_ir2.c

* args len

* http_fn_cmd_tool: len

* better buffer handling

* try lager buffer

* clear

* Update drv_ir2.c

* long packet self tests

* Update drv_ir2.c

* Update drv_ir2.c

* alternate alias

* Queue size

* fx

* fx

* disable

* sample
2024-07-06 00:42:25 +02:00
03d6824186 Stack size for BL is not enough to execute backlog commands (#1226)
Specifically "Save, Reset SVM and run file as script thread" crashes the chip due to stack overflow
2024-05-12 18:55:22 +02:00
643311d9b9 Increased stack size, added printf 2022-12-26 06:21:02 -06:00
2bcb79989b OTA support 2022-12-25 13:20:39 -06:00
dc00837cbc IDLE MUST RUN!!!
Added idle counter to 1s timer.
Added rtos_delay_milliseconds in 1s timer, inside OTA, and in http tcp server and client threads.
Reason: During OTA, it could get to a state where the IDLE thread got no time.
The problem with this is that the tcp_client thread stack never got released, and so during this time, the heap was reduced by 8k for each call, resulting in no more heap, and death (hang).
2022-10-25 12:31:24 +01:00
ef019647cf increase http client stack size; add LFS read file to buffer function; make sure events are clear 2022-10-23 05:27:03 +02:00
fd4aaeef13 Formatted 2022-10-14 21:08:38 -05:00
fcffa95dca BL0937 - implemented energy counter. TODO: save to flash.
http server - buffer size change, added MQTT status information.
MQTT - connect event counter for debug purpose.
MQTT - debug outputs.
MQTT - ERR-ISCONN result bug fix.
MQTT - Wifi connection check added.
MQTT - connect/reconnect patch
Formatting changes. Reading code was sometimes hard.
bug fix new device.
bug fix http server
2022-10-03 09:45:23 +02:00
89254bb461 RGB set api, silent the tcp message 2022-09-10 18:47:32 +02:00
03a29f4882 EXPERIMENT: buffer tcp chunks up to 1kb and send them as about 1kb chunks, it seems to fix http server unresponsive in some rare cases. TODO: check on more cases if it really helps in general 2022-08-23 00:58:33 +02:00
1706a296a6 xr809 mac change fix/hack as requested by ahkashinobi from Elektroda com 2022-08-09 17:31:58 +02:00
9c913dd99e leave option to use old multithreaded http server 2022-08-09 16:34:33 +02:00
d05551b07d try lower http buffer size, it seemingly makes http smoother (larger packets are split) 2022-08-01 18:47:36 +02:00
7fbcd110f9 fixing compile warnings etc 2022-07-31 20:20:13 +02:00
1c808cb785 EXPERIMENT: avoid memory allocation per TCP client (will help recover device if a memory problem occurs, will help avoid heap fragmentation and frequent malloc/free) 2022-07-17 10:21:54 +02:00
8f657f57a2 that was not needed 2022-07-16 22:36:53 +02:00
82424db897 w800 config and mqtt works 2022-07-11 14:22:53 +02:00
f156c5fecd fix EOL whitespace 2022-05-29 09:32:47 -04:00
fdbf665cfc fix line endings 2022-05-29 09:32:14 -04:00
62a7d676c7 not needed header 2022-05-13 22:42:09 +02:00
9b88617fa0 corrrect names for threads 2022-04-16 02:09:58 +02:00
7ffa51c003 clear up reduntant headers 2022-04-15 20:49:49 +02:00
04f48ac886 bl602 port p1 2022-04-15 20:31:43 +02:00
db603b1ae4 gi, comments 2022-04-15 12:10:20 +02:00
c1c5757574 ports logs and javascript app to xr809, clear up logging from duplicate log functions 2022-03-07 14:01:15 +01:00
ba7aba3cb9 xr809 build logging.c 2022-03-07 09:55:00 +01:00
6fa8049892 add command POST at api/cmnd 2022-03-04 21:27:04 +00:00
94f4a8f600 Newlines all changed to Windows style 2022-02-27 23:21:09 +01:00
50332533da xr809 functional config save, mqtt working, pins save, wifi save, mqtt save 2022-02-15 00:23:04 +01:00
ccc2f92f6e xr809 support - initial version 2022-02-12 23:31:57 +01:00
b4115b9019 Merge remote-tracking branch 'origin/main' into littlefs 2022-02-12 17:58:32 +00:00
7da9528431 XR809 tcp port - not tested 2022-02-12 17:32:16 +01:00
cff74553fa Add HTTP response code support plus other tweaks to help in responding 2022-02-12 11:08:20 +00:00
dd25a5a993 Logging update to include level and feature codes. 2022-02-10 21:07:38 +00:00
62fb793019 working json, plus some bugfixes 2022-02-08 18:45:31 +00:00
6a66798f9d add json parser? 2022-02-08 17:27:40 +00:00
25580f7367 Base http server on 'http_request' structure. It holds everything needed by a respondant to a request. 2022-02-07 18:35:02 +00:00
97142ea969 http server return bugfix 2022-02-06 20:25:19 +00:00
80e8e7f13a All warnings eliminated, 1 bug sorted. 2022-02-02 17:34:03 +00:00
e370b47f41 fix some warnings 2022-02-02 09:14:45 +00:00
a4bd510392 SYNC btsimonh changes 2022-02-01 12:28:09 +01:00