diff --git a/.gitignore b/.gitignore index df8a0932f..84fdf05ee 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,6 @@ CMakeLists.txt.user CMakeCache.txt CMakeFiles CMakeScripts -Testing Makefile cmake_install.cmake install_manifest.txt diff --git a/README.md b/README.md index 3fd846d60..52178ec3e 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ A 3d-printable housing can be found here: https://www.thingiverse.com/thing:4571 - + @@ -27,12 +27,23 @@ A 3d-printable housing can be found here: https://www.thingiverse.com/thing:4571 -##### Rolling - (2020-11-15) +##### 4.1.0 Configuration editor- (2020-11-30) + +* Implementation of configuration editor (including basic and expert mode) + +* Adjustable time zone to adjust to local time setting (incl. daylight saving time) + +* MQTT: additional topic for error reporting -* based on v4.0.0 (2020-11-15) +* standardized access to current logfile via `http://IP-ADRESS/logfileact` + +* Update digital CNN to v7.2.0, analog CNN to 6.3.0 + +* Bug fixing: truncation error, CheckDigitConsistency & PreValue implementation + ##### 4.0.0 Tflite Core - (2020-11-15) * Implementation of rolling log-files diff --git a/code/.DS_Store b/code/.DS_Store deleted file mode 100644 index 017ffc682..000000000 Binary files a/code/.DS_Store and /dev/null differ diff --git a/code/.gitignore b/code/.gitignore index acd418f81..89cc49cbd 100644 --- a/code/.gitignore +++ b/code/.gitignore @@ -3,4 +3,3 @@ .vscode/c_cpp_properties.json .vscode/launch.json .vscode/ipch -.helper diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index 0c2fcbe11..1ecfa657d 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.16.0) +cmake_minimum_required(VERSION 3.13.4) list(APPEND EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common) diff --git a/code/components/connect_wlan/CMakeLists.txt b/code/components/connect_wlan/CMakeLists.txt new file mode 100644 index 000000000..8470774ad --- /dev/null +++ b/code/components/connect_wlan/CMakeLists.txt @@ -0,0 +1,7 @@ +FILE(GLOB_RECURSE app_sources ${CMAKE_CURRENT_SOURCE_DIR}/*.*) + +idf_component_register(SRCS ${app_sources} + INCLUDE_DIRS "." + REQUIRES jomjol_helper) + + diff --git a/code/lib/connect_wlan/connect_wlan.cpp b/code/components/connect_wlan/connect_wlan.cpp similarity index 100% rename from code/lib/connect_wlan/connect_wlan.cpp rename to code/components/connect_wlan/connect_wlan.cpp diff --git a/code/lib/connect_wlan/connect_wlan.h b/code/components/connect_wlan/connect_wlan.h similarity index 100% rename from code/lib/connect_wlan/connect_wlan.h rename to code/components/connect_wlan/connect_wlan.h diff --git a/code/components/esp32-camera-master/.gitignore b/code/components/esp32-camera-master/.gitignore new file mode 100644 index 000000000..5509140f2 --- /dev/null +++ b/code/components/esp32-camera-master/.gitignore @@ -0,0 +1 @@ +*.DS_Store diff --git a/code/components/esp32-camera-master/CMakeLists.txt b/code/components/esp32-camera-master/CMakeLists.txt new file mode 100644 index 000000000..489aebac8 --- /dev/null +++ b/code/components/esp32-camera-master/CMakeLists.txt @@ -0,0 +1,35 @@ +if(IDF_TARGET STREQUAL "esp32") + set(COMPONENT_SRCS + driver/camera.c + driver/sccb.c + driver/sensor.c + driver/xclk.c + sensors/ov2640.c + sensors/ov3660.c + sensors/ov5640.c + sensors/ov7725.c + sensors/ov7670.c + sensors/nt99141.c + conversions/yuv.c + conversions/to_jpg.cpp + conversions/to_bmp.c + conversions/jpge.cpp + conversions/esp_jpg_decode.c + ) + + set(COMPONENT_ADD_INCLUDEDIRS + driver/include + conversions/include + ) + + set(COMPONENT_PRIV_INCLUDEDIRS + driver/private_include + sensors/private_include + conversions/private_include + ) + + set(COMPONENT_REQUIRES driver) + set(COMPONENT_PRIV_REQUIRES freertos nvs_flash) + + register_component() +endif() diff --git a/code/components/esp32-camera-master/Kconfig b/code/components/esp32-camera-master/Kconfig new file mode 100644 index 000000000..5af456949 --- /dev/null +++ b/code/components/esp32-camera-master/Kconfig @@ -0,0 +1,71 @@ +menu "Camera configuration" + + config OV7670_SUPPORT + bool "Support OV7670 VGA" + default y + help + Enable this option if you want to use the OV7670. + Disable this option to safe memory. + + config OV7725_SUPPORT + bool "Support OV7725 SVGA" + default n + help + Enable this option if you want to use the OV7725. + Disable this option to save memory. + + config NT99141_SUPPORT + bool "Support NT99141 HD" + default y + help + Enable this option if you want to use the NT99141. + Disable this option to save memory. + + config OV2640_SUPPORT + bool "Support OV2640 2MP" + default y + help + Enable this option if you want to use the OV2640. + Disable this option to save memory. + + config OV3660_SUPPORT + bool "Support OV3660 3MP" + default y + help + Enable this option if you want to use the OV3360. + Disable this option to save memory. + + config OV5640_SUPPORT + bool "Support OV5640 5MP" + default y + help + Enable this option if you want to use the OV5640. + Disable this option to save memory. + + choice SCCB_HARDWARE_I2C_PORT + bool "I2C peripheral to use for SCCB" + default SCCB_HARDWARE_I2C_PORT1 + + config SCCB_HARDWARE_I2C_PORT0 + bool "I2C0" + config SCCB_HARDWARE_I2C_PORT1 + bool "I2C1" + + endchoice + + choice CAMERA_TASK_PINNED_TO_CORE + bool "Camera task pinned to core" + default CAMERA_CORE0 + help + Pin the camera handle task to a certain core(0/1). It can also be done automatically choosing NO_AFFINITY. + + config CAMERA_CORE0 + bool "CORE0" + config CAMERA_CORE1 + bool "CORE1" + config CAMERA_NO_AFFINITY + bool "NO_AFFINITY" + + endchoice + +endmenu diff --git a/code/lib/tfmicro/LICENSE b/code/components/esp32-camera-master/LICENSE similarity index 100% rename from code/lib/tfmicro/LICENSE rename to code/components/esp32-camera-master/LICENSE diff --git a/code/components/esp32-camera-master/README.md b/code/components/esp32-camera-master/README.md new file mode 100644 index 000000000..96616bcaa --- /dev/null +++ b/code/components/esp32-camera-master/README.md @@ -0,0 +1,358 @@ +# ESP32 Camera Driver + +## General Information + +This repository hosts ESP32 compatible driver for OV2640, OV3660, OV5640, OV7670 and OV7725 image sensors. Additionally it provides a few tools, which allow converting the captured frame data to the more common BMP and JPEG formats. + +## Important to Remember + +- Except when using CIF or lower resolution with JPEG, the driver requires PSRAM to be installed and activated. +- Using YUV or RGB puts a lot of strain on the chip because writing to PSRAM is not particularly fast. The result is that image data might be missing. This is particularly true if WiFi is enabled. If you need RGB data, it is recommended that JPEG is captured and then turned into RGB using `fmt2rgb888` or `fmt2bmp`/`frame2bmp`. +- When 1 frame buffer is used, the driver will wait for the current frame to finish (VSYNC) and start I2S DMA. After the frame is acquired, I2S will be stopped and the frame buffer returned to the application. This approach gives more control over the system, but results in longer time to get the frame. +- When 2 or more frame bufers are used, I2S is running in continuous mode and each frame is pushed to a queue that the application can access. This approach puts more strain on the CPU/Memory, but allows for double the frame rate. Please use only with JPEG. + +## Installation Instructions + + +### Using esp-idf + +- Clone or download and extract the repository to the components folder of your ESP-IDF project +- Enable PSRAM in `menuconfig` +- Include `esp_camera.h` in your code + +### Using PlatformIO + +The easy way -- on the `env` section of `platformio.ini`, add the following: + +```ini +[env] +lib_deps = + esp32-camera +``` + +Now the `esp_camera.h` is available to be included: + +```c +#include "esp_camera.h" +``` + +Enable PSRAM on `menuconfig` or type it direclty on `sdkconfig`. Check the [official doc](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/kconfig.html#config-esp32-spiram-support) for more info. + +``` +CONFIG_ESP32_SPIRAM_SUPPORT=y +``` + +***Arduino*** The easy-way (content above) only seems to work if you're using `framework=arduino` which seems to take a bunch of the guesswork out (thanks Arduino!) but also suck up a lot more memory and flash, almost crippling the performance. If you plan to use the `framework=espidf` then read the sections below carefully!! + +## Platform.io lib/submodule (for framework=espidf) + +It's probably easier to just skip the platform.io library registry version and link the git repo as a submodule. (i.e. using code outside the platform.io library management). In this example we will install this as a submodule inside the platform.io $project/lib folder: +``` +cd $project\lib +git submodule add -b master https://github.com/espressif/esp32-camera.git +``` + +Then in `platformio.ini` file +``` +build_flags = + -I../lib/esp32-camera +``` +After that `#include "esp_camera.h"` statement will be available. Now the module is included, and you're hopefully back to the same place as the easy-Arduino way. + +**Warning about platform.io/espidf and fresh (not initialized) git repos** +There is a sharp-edge on you'll discover in the platform.io build process (in espidf v3.3 & 4.0.1) where a project which has only had `git init` but nothing committed will crash platform.io build process with highly non-useful output. The cause is due to lack of a version (making you think you did something wrong, when you didn't at all) - the output is horribly non-descript. Solution: the devs want you to create a file called version.txt with a number in it, or simply commit any file to the projects git repo and use git. This happens because platform.io build process tries to be too clever and determine the build version number from the git repo - it's a sharp edge you'll only encounter if you're experimenting on a new project with no commits .. like wtf is my camera not working let's try a 'clean project'?! + +## Platform.io Kconfig +Kconfig is used by the platform.io menuconfig (accessed by running: `pio run -t menuconfig`) to interactively manage the various #ifdef statements throughout the espidf and supporting libraries (i.e. this repo: esp32-camera and arduino-esp32.git). The menuconfig process generates the `sdkconfig` file which is ultimately used behind the scenes by espidf compile+build process. + +**Make sure to append or symlink** [this `Kconfig`](./Kconfig) content into the `Kconfig` of your project. + +You symlink (or copy) the included Kconfig into your platform.io projects src directory. The file should be named `Kconfig.projbuild` in your projects src\ directory or you could also add the library path to a CMakefile.txt and hope the `Kconfig` (or `Kconfig.projbuild`) gets discovered by the menuconfig process, though this unpredictable for me. + +The unpredictable wonky behavior in platform.io build process around Kconfig naming (Kconfig vs. Kconfig.projbuild) occurs between espidf versions 3.3 and 4.0 - but if you don't see "Camera configuration" in your `pio run -t menuconfig` then there is no point trying to test camera code (it may compile, but it probably won't work!) and it seems the platform.io devs (when they built their wrapper around the espidf menuconfig) didn't implement it properly. You've probably already figured out you can't use the espidf build tools since the files are in totally different locations and also different versions with sometimes different syntax. This is one of those times you might consider changing the `platformio.ini` from `platform=espressif32` to `platform=https://github.com/platformio/platform-espressif32.git#develop` to get a more recent version of the espidf 4.0 tools. + +However with a bit of patience and experimenting you'll figure the Kconfig out. Once Kconfig (or Kconfig.projbuild) is working then you will be able to choose the configurations according to your setup or the camera libraries will be compiled. Although you might also need to delete your .pio/build directory before the options appear .. again, the `pio run -t menuconfig` doens't always notice the new Kconfig files! + +If you miss-skip-ignore this critical step the camera module will compile but camera logic inside the library will be 'empty' because the Kconfig sets the proper #ifdef statements during the build process to initialize the selected cameras. It's very not optional! + +### Kconfig options + +| config | description | default | +| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------ | +| CONFIG_OV2640_SUPPORT | Support for OV2640 camera | enabled | +| CONFIG_OV7725_SUPPORT | Support for OV7725 camera | disabled | +| CONFIG_OV3660_SUPPORT | Support for OV3660 camera | enabled | +| CONFIG_OV5640_SUPPORT | Support for OV5640 camera | enabled | +| CONFIG_SCCB_HARDWARE_I2C | Enable this option if you want to use hardware I2C to control the camera. Disable this option to use software I2C. | enabled | +| CONFIG_SCCB_HARDWARE_I2C_PORT | I2C peripheral to use for SCCB. Can be I2C0 and I2C1. | CONFIG_SCCB_HARDWARE_I2C_PORT1 | +| CONFIG_CAMERA_TASK_PINNED_TO_CORE | Pin the camera handle task to a certain core(0/1). It can also be done automatically choosing NO_AFFINITY. Can be CAMERA_CORE0, CAMERA_CORE1 or NO_AFFINITY. | CONFIG_CAMERA_CORE0 | + +## Examples + +### Initialization + +```c +#include "esp_camera.h" + +//WROVER-KIT PIN Map +#define CAM_PIN_PWDN -1 //power down is not used +#define CAM_PIN_RESET -1 //software reset will be performed +#define CAM_PIN_XCLK 21 +#define CAM_PIN_SIOD 26 +#define CAM_PIN_SIOC 27 + +#define CAM_PIN_D7 35 +#define CAM_PIN_D6 34 +#define CAM_PIN_D5 39 +#define CAM_PIN_D4 36 +#define CAM_PIN_D3 19 +#define CAM_PIN_D2 18 +#define CAM_PIN_D1 5 +#define CAM_PIN_D0 4 +#define CAM_PIN_VSYNC 25 +#define CAM_PIN_HREF 23 +#define CAM_PIN_PCLK 22 + +static camera_config_t camera_config = { + .pin_pwdn = CAM_PIN_PWDN, + .pin_reset = CAM_PIN_RESET, + .pin_xclk = CAM_PIN_XCLK, + .pin_sscb_sda = CAM_PIN_SIOD, + .pin_sscb_scl = CAM_PIN_SIOC, + + .pin_d7 = CAM_PIN_D7, + .pin_d6 = CAM_PIN_D6, + .pin_d5 = CAM_PIN_D5, + .pin_d4 = CAM_PIN_D4, + .pin_d3 = CAM_PIN_D3, + .pin_d2 = CAM_PIN_D2, + .pin_d1 = CAM_PIN_D1, + .pin_d0 = CAM_PIN_D0, + .pin_vsync = CAM_PIN_VSYNC, + .pin_href = CAM_PIN_HREF, + .pin_pclk = CAM_PIN_PCLK, + + //XCLK 20MHz or 10MHz for OV2640 double FPS (Experimental) + .xclk_freq_hz = 20000000, + .ledc_timer = LEDC_TIMER_0, + .ledc_channel = LEDC_CHANNEL_0, + + .pixel_format = PIXFORMAT_JPEG,//YUV422,GRAYSCALE,RGB565,JPEG + .frame_size = FRAMESIZE_UXGA,//QQVGA-QXGA Do not use sizes above QVGA when not JPEG + + .jpeg_quality = 12, //0-63 lower number means higher quality + .fb_count = 1 //if more than one, i2s runs in continuous mode. Use only with JPEG +}; + +esp_err_t camera_init(){ + //power up the camera if PWDN pin is defined + if(CAM_PIN_PWDN != -1){ + pinMode(CAM_PIN_PWDN, OUTPUT); + digitalWrite(CAM_PIN_PWDN, LOW); + } + + //initialize the camera + esp_err_t err = esp_camera_init(&camera_config); + if (err != ESP_OK) { + ESP_LOGE(TAG, "Camera Init Failed"); + return err; + } + + return ESP_OK; +} + +esp_err_t camera_capture(){ + //acquire a frame + camera_fb_t * fb = esp_camera_fb_get(); + if (!fb) { + ESP_LOGE(TAG, "Camera Capture Failed"); + return ESP_FAIL; + } + //replace this with your own function + process_image(fb->width, fb->height, fb->format, fb->buf, fb->len); + + //return the frame buffer back to the driver for reuse + esp_camera_fb_return(fb); + return ESP_OK; +} +``` + +### JPEG HTTP Capture + +```c +#include "esp_camera.h" +#include "esp_http_server.h" +#include "esp_timer.h" + +typedef struct { + httpd_req_t *req; + size_t len; +} jpg_chunking_t; + +static size_t jpg_encode_stream(void * arg, size_t index, const void* data, size_t len){ + jpg_chunking_t *j = (jpg_chunking_t *)arg; + if(!index){ + j->len = 0; + } + if(httpd_resp_send_chunk(j->req, (const char *)data, len) != ESP_OK){ + return 0; + } + j->len += len; + return len; +} + +esp_err_t jpg_httpd_handler(httpd_req_t *req){ + camera_fb_t * fb = NULL; + esp_err_t res = ESP_OK; + size_t fb_len = 0; + int64_t fr_start = esp_timer_get_time(); + + fb = esp_camera_fb_get(); + if (!fb) { + ESP_LOGE(TAG, "Camera capture failed"); + httpd_resp_send_500(req); + return ESP_FAIL; + } + res = httpd_resp_set_type(req, "image/jpeg"); + if(res == ESP_OK){ + res = httpd_resp_set_hdr(req, "Content-Disposition", "inline; filename=capture.jpg"); + } + + if(res == ESP_OK){ + if(fb->format == PIXFORMAT_JPEG){ + fb_len = fb->len; + res = httpd_resp_send(req, (const char *)fb->buf, fb->len); + } else { + jpg_chunking_t jchunk = {req, 0}; + res = frame2jpg_cb(fb, 80, jpg_encode_stream, &jchunk)?ESP_OK:ESP_FAIL; + httpd_resp_send_chunk(req, NULL, 0); + fb_len = jchunk.len; + } + } + esp_camera_fb_return(fb); + int64_t fr_end = esp_timer_get_time(); + ESP_LOGI(TAG, "JPG: %uKB %ums", (uint32_t)(fb_len/1024), (uint32_t)((fr_end - fr_start)/1000)); + return res; +} +``` + +### JPEG HTTP Stream + +```c +#include "esp_camera.h" +#include "esp_http_server.h" +#include "esp_timer.h" + +#define PART_BOUNDARY "123456789000000000000987654321" +static const char* _STREAM_CONTENT_TYPE = "multipart/x-mixed-replace;boundary=" PART_BOUNDARY; +static const char* _STREAM_BOUNDARY = "\r\n--" PART_BOUNDARY "\r\n"; +static const char* _STREAM_PART = "Content-Type: image/jpeg\r\nContent-Length: %u\r\n\r\n"; + +esp_err_t jpg_stream_httpd_handler(httpd_req_t *req){ + camera_fb_t * fb = NULL; + esp_err_t res = ESP_OK; + size_t _jpg_buf_len; + uint8_t * _jpg_buf; + char * part_buf[64]; + static int64_t last_frame = 0; + if(!last_frame) { + last_frame = esp_timer_get_time(); + } + + res = httpd_resp_set_type(req, _STREAM_CONTENT_TYPE); + if(res != ESP_OK){ + return res; + } + + while(true){ + fb = esp_camera_fb_get(); + if (!fb) { + ESP_LOGE(TAG, "Camera capture failed"); + res = ESP_FAIL; + break; + } + if(fb->format != PIXFORMAT_JPEG){ + bool jpeg_converted = frame2jpg(fb, 80, &_jpg_buf, &_jpg_buf_len); + if(!jpeg_converted){ + ESP_LOGE(TAG, "JPEG compression failed"); + esp_camera_fb_return(fb); + res = ESP_FAIL; + } + } else { + _jpg_buf_len = fb->len; + _jpg_buf = fb->buf; + } + + if(res == ESP_OK){ + res = httpd_resp_send_chunk(req, _STREAM_BOUNDARY, strlen(_STREAM_BOUNDARY)); + } + if(res == ESP_OK){ + size_t hlen = snprintf((char *)part_buf, 64, _STREAM_PART, _jpg_buf_len); + + res = httpd_resp_send_chunk(req, (const char *)part_buf, hlen); + } + if(res == ESP_OK){ + res = httpd_resp_send_chunk(req, (const char *)_jpg_buf, _jpg_buf_len); + } + if(fb->format != PIXFORMAT_JPEG){ + free(_jpg_buf); + } + esp_camera_fb_return(fb); + if(res != ESP_OK){ + break; + } + int64_t fr_end = esp_timer_get_time(); + int64_t frame_time = fr_end - last_frame; + last_frame = fr_end; + frame_time /= 1000; + ESP_LOGI(TAG, "MJPG: %uKB %ums (%.1ffps)", + (uint32_t)(_jpg_buf_len/1024), + (uint32_t)frame_time, 1000.0 / (uint32_t)frame_time); + } + + last_frame = 0; + return res; +} +``` + +### BMP HTTP Capture + +```c +#include "esp_camera.h" +#include "esp_http_server.h" +#include "esp_timer.h" + +esp_err_t bmp_httpd_handler(httpd_req_t *req){ + camera_fb_t * fb = NULL; + esp_err_t res = ESP_OK; + int64_t fr_start = esp_timer_get_time(); + + fb = esp_camera_fb_get(); + if (!fb) { + ESP_LOGE(TAG, "Camera capture failed"); + httpd_resp_send_500(req); + return ESP_FAIL; + } + + uint8_t * buf = NULL; + size_t buf_len = 0; + bool converted = frame2bmp(fb, &buf, &buf_len); + esp_camera_fb_return(fb); + if(!converted){ + ESP_LOGE(TAG, "BMP conversion failed"); + httpd_resp_send_500(req); + return ESP_FAIL; + } + + res = httpd_resp_set_type(req, "image/x-windows-bmp") + || httpd_resp_set_hdr(req, "Content-Disposition", "inline; filename=capture.bmp") + || httpd_resp_send(req, (const char *)buf, buf_len); + free(buf); + int64_t fr_end = esp_timer_get_time(); + ESP_LOGI(TAG, "BMP: %uKB %ums", (uint32_t)(buf_len/1024), (uint32_t)((fr_end - fr_start)/1000)); + return res; +} +``` + + + diff --git a/code/components/esp32-camera-master/component.mk b/code/components/esp32-camera-master/component.mk new file mode 100644 index 000000000..e4ffee182 --- /dev/null +++ b/code/components/esp32-camera-master/component.mk @@ -0,0 +1,4 @@ +COMPONENT_ADD_INCLUDEDIRS := driver/include conversions/include +COMPONENT_PRIV_INCLUDEDIRS := driver/private_include conversions/private_include sensors/private_include +COMPONENT_SRCDIRS := driver conversions sensors +CXXFLAGS += -fno-rtti diff --git a/code/lib/conversions/esp_jpg_decode.c b/code/components/esp32-camera-master/conversions/esp_jpg_decode.c similarity index 100% rename from code/lib/conversions/esp_jpg_decode.c rename to code/components/esp32-camera-master/conversions/esp_jpg_decode.c diff --git a/code/lib/conversions/esp_jpg_decode.h b/code/components/esp32-camera-master/conversions/include/esp_jpg_decode.h similarity index 100% rename from code/lib/conversions/esp_jpg_decode.h rename to code/components/esp32-camera-master/conversions/include/esp_jpg_decode.h diff --git a/code/lib/conversions/img_converters.h b/code/components/esp32-camera-master/conversions/include/img_converters.h similarity index 100% rename from code/lib/conversions/img_converters.h rename to code/components/esp32-camera-master/conversions/include/img_converters.h diff --git a/code/lib/conversions/jpge.cpp b/code/components/esp32-camera-master/conversions/jpge.cpp similarity index 100% rename from code/lib/conversions/jpge.cpp rename to code/components/esp32-camera-master/conversions/jpge.cpp diff --git a/code/lib/conversions/jpge.h b/code/components/esp32-camera-master/conversions/private_include/jpge.h similarity index 100% rename from code/lib/conversions/jpge.h rename to code/components/esp32-camera-master/conversions/private_include/jpge.h diff --git a/code/lib/conversions/yuv.h b/code/components/esp32-camera-master/conversions/private_include/yuv.h similarity index 100% rename from code/lib/conversions/yuv.h rename to code/components/esp32-camera-master/conversions/private_include/yuv.h diff --git a/code/lib/conversions/to_bmp.c b/code/components/esp32-camera-master/conversions/to_bmp.c similarity index 97% rename from code/lib/conversions/to_bmp.c rename to code/components/esp32-camera-master/conversions/to_bmp.c index 59455dedb..85f9c8872 100644 --- a/code/lib/conversions/to_bmp.c +++ b/code/components/esp32-camera-master/conversions/to_bmp.c @@ -20,6 +20,17 @@ #include "sdkconfig.h" #include "esp_jpg_decode.h" +#include "esp_system.h" +#if ESP_IDF_VERSION_MAJOR >= 4 // IDF 4+ +#if CONFIG_IDF_TARGET_ESP32 // ESP32/PICO-D4 +#include "esp32/spiram.h" +#else +#error Target CONFIG_IDF_TARGET is not supported +#endif +#else // ESP32 Before IDF 4.0 +#include "esp_spiram.h" +#endif + #if defined(ARDUINO_ARCH_ESP32) && defined(CONFIG_ARDUHAL_ESP_LOG) #include "esp32-hal-log.h" #define TAG "" diff --git a/code/lib/conversions/to_jpg.cpp b/code/components/esp32-camera-master/conversions/to_jpg.cpp similarity index 98% rename from code/lib/conversions/to_jpg.cpp rename to code/components/esp32-camera-master/conversions/to_jpg.cpp index 0502ff802..f8987a84e 100644 --- a/code/lib/conversions/to_jpg.cpp +++ b/code/components/esp32-camera-master/conversions/to_jpg.cpp @@ -16,7 +16,7 @@ #include "esp_attr.h" #include "soc/efuse_reg.h" #include "esp_heap_caps.h" -#include +#include "esp_camera.h" #include "img_converters.h" #include "jpge.h" #include "yuv.h" @@ -215,8 +215,7 @@ bool fmt2jpg(uint8_t *src, size_t src_len, uint16_t width, uint16_t height, pixf { //todo: allocate proper buffer for holding JPEG data //this should be enough for CIF frame size -// int jpg_buf_len = 64*1024; - int jpg_buf_len = 256*1024; // Anpassung wg. zu kleiner Bitmaps + int jpg_buf_len = 64*1024; uint8_t * jpg_buf = (uint8_t *)_malloc(jpg_buf_len); diff --git a/code/lib/conversions/yuv.c b/code/components/esp32-camera-master/conversions/yuv.c similarity index 100% rename from code/lib/conversions/yuv.c rename to code/components/esp32-camera-master/conversions/yuv.c diff --git a/code/lib/driver/camera.c b/code/components/esp32-camera-master/driver/camera.c similarity index 92% rename from code/lib/driver/camera.c rename to code/components/esp32-camera-master/driver/camera.c index 632a20ae8..1fe438716 100644 --- a/code/lib/driver/camera.c +++ b/code/components/esp32-camera-master/driver/camera.c @@ -36,14 +36,6 @@ #include "esp_camera.h" #include "camera_common.h" #include "xclk.h" - -#define CONFIG_OV2640_SUPPORT 1 -//#define CONFIG_OV7725_SUPPORT 1 -//#define CONFIG_OV7725_SUPPORT 1 -//#define CONFIG_OV3660_SUPPORT 1 -//#define CONFIG_OV5640_SUPPORT 1 - - #if CONFIG_OV2640_SUPPORT #include "ov2640.h" #endif @@ -56,6 +48,12 @@ #if CONFIG_OV5640_SUPPORT #include "ov5640.h" #endif +#if CONFIG_NT99141_SUPPORT +#include "nt99141.h" +#endif +#if CONFIG_OV7670_SUPPORT +#include "ov7670.h" +#endif typedef enum { CAMERA_NONE = 0, @@ -64,6 +62,8 @@ typedef enum { CAMERA_OV2640 = 2640, CAMERA_OV3660 = 3660, CAMERA_OV5640 = 5640, + CAMERA_OV7670 = 7670, + CAMERA_NT99141 = 9141, } camera_model_t; #define REG_PID 0x0A @@ -377,12 +377,10 @@ static inline void IRAM_ATTR i2s_conf_reset() } } -static void i2s_init() +static void i2s_gpio_init(const camera_config_t* config) { - camera_config_t* config = &s_state->config; - // Configure input GPIOs - gpio_num_t pins[] = { + const gpio_num_t pins[] = { config->pin_d7, config->pin_d6, config->pin_d5, @@ -399,15 +397,21 @@ static void i2s_init() .mode = GPIO_MODE_INPUT, .pull_up_en = GPIO_PULLUP_ENABLE, .pull_down_en = GPIO_PULLDOWN_DISABLE, - .intr_type = GPIO_INTR_DISABLE + .intr_type = GPIO_INTR_DISABLE, + .pin_bit_mask = 0LL }; for (int i = 0; i < sizeof(pins) / sizeof(gpio_num_t); ++i) { if (rtc_gpio_is_valid_gpio(pins[i])) { rtc_gpio_deinit(pins[i]); } - conf.pin_bit_mask = 1LL << pins[i]; - gpio_config(&conf); + conf.pin_bit_mask |= 1LL << pins[i]; } + gpio_config(&conf); +} + +static void i2s_init() +{ + camera_config_t* config = &s_state->config; // Route input GPIOs to I2S peripheral using GPIO matrix gpio_matrix_in(config->pin_d0, I2S0I_DATA_IN0_IDX, false); @@ -963,11 +967,15 @@ esp_err_t camera_probe(const camera_config_t* config, camera_model_t* out_camera return ESP_ERR_NO_MEM; } - ESP_LOGD(TAG, "Enabling XCLK output"); - camera_enable_out_clock(config); + if(config->pin_xclk >= 0) { + ESP_LOGD(TAG, "Enabling XCLK output"); + camera_enable_out_clock(config); + } - ESP_LOGD(TAG, "Initializing SSCB"); - SCCB_Init(config->pin_sscb_sda, config->pin_sscb_scl); + if (config->pin_sscb_sda != -1) { + ESP_LOGD(TAG, "Initializing SSCB"); + SCCB_Init(config->pin_sscb_sda, config->pin_sscb_scl); + } if(config->pin_pwdn >= 0) { ESP_LOGD(TAG, "Resetting camera by power down line"); @@ -1019,16 +1027,33 @@ esp_err_t camera_probe(const camera_config_t* config, camera_model_t* out_camera slv_addr = SCCB_Probe(); } #endif +#if CONFIG_NT99141_SUPPORT + if (slv_addr == 0x2a) + { + ESP_LOGD(TAG, "Resetting NT99141"); + SCCB_Write16(0x2a, 0x3008, 0x01);//bank sensor + } +#endif s_state->sensor.slv_addr = slv_addr; s_state->sensor.xclk_freq_hz = config->xclk_freq_hz; -#if (CONFIG_OV3660_SUPPORT || CONFIG_OV5640_SUPPORT) +#if (CONFIG_OV3660_SUPPORT || CONFIG_OV5640_SUPPORT || CONFIG_NT99141_SUPPORT) if(s_state->sensor.slv_addr == 0x3c){ id->PID = SCCB_Read16(s_state->sensor.slv_addr, REG16_CHIDH); id->VER = SCCB_Read16(s_state->sensor.slv_addr, REG16_CHIDL); vTaskDelay(10 / portTICK_PERIOD_MS); ESP_LOGD(TAG, "Camera PID=0x%02x VER=0x%02x", id->PID, id->VER); + } else if(s_state->sensor.slv_addr == 0x2a){ + id->PID = SCCB_Read16(s_state->sensor.slv_addr, 0x3000); + id->VER = SCCB_Read16(s_state->sensor.slv_addr, 0x3001); + vTaskDelay(10 / portTICK_PERIOD_MS); + ESP_LOGD(TAG, "Camera PID=0x%02x VER=0x%02x", id->PID, id->VER); + if(config->xclk_freq_hz > 10000000) + { + ESP_LOGE(TAG, "NT99141: only XCLK under 10MHz is supported, and XCLK is now set to 10M"); + s_state->sensor.xclk_freq_hz = 10000000; + } } else { #endif id->PID = SCCB_Read(s_state->sensor.slv_addr, REG_PID); @@ -1039,7 +1064,7 @@ esp_err_t camera_probe(const camera_config_t* config, camera_model_t* out_camera ESP_LOGD(TAG, "Camera PID=0x%02x VER=0x%02x MIDL=0x%02x MIDH=0x%02x", id->PID, id->VER, id->MIDH, id->MIDL); -#if (CONFIG_OV3660_SUPPORT || CONFIG_OV5640_SUPPORT) +#if (CONFIG_OV3660_SUPPORT || CONFIG_OV5640_SUPPORT || CONFIG_NT99141_SUPPORT) } #endif @@ -1068,6 +1093,18 @@ esp_err_t camera_probe(const camera_config_t* config, camera_model_t* out_camera *out_camera_model = CAMERA_OV5640; ov5640_init(&s_state->sensor); break; +#endif +#if CONFIG_OV7670_SUPPORT + case OV7670_PID: + *out_camera_model = CAMERA_OV7670; + ov7670_init(&s_state->sensor); + break; +#endif +#if CONFIG_NT99141_SUPPORT + case NT99141_PID: + *out_camera_model = CAMERA_NT99141; + NT99141_init(&s_state->sensor); + break; #endif default: id->PID = 0; @@ -1124,6 +1161,20 @@ esp_err_t camera_init(const camera_config_t* config) frame_size = FRAMESIZE_QSXGA; } break; +#endif +#if CONFIG_OV7670_SUPPORT + case OV7670_PID: + if (frame_size > FRAMESIZE_VGA) { + frame_size = FRAMESIZE_VGA; + } + break; +#endif +#if CONFIG_NT99141_SUPPORT + case NT99141_PID: + if (frame_size > FRAMESIZE_HD) { + frame_size = FRAMESIZE_HD; + } + break; #endif default: return ESP_ERR_CAMERA_NOT_SUPPORTED; @@ -1134,7 +1185,7 @@ esp_err_t camera_init(const camera_config_t* config) if (pix_format == PIXFORMAT_GRAYSCALE) { s_state->fb_size = s_state->width * s_state->height; - if (s_state->sensor.id.PID == OV3660_PID || s_state->sensor.id.PID == OV5640_PID) { + if (s_state->sensor.id.PID == OV3660_PID || s_state->sensor.id.PID == OV5640_PID || s_state->sensor.id.PID == NT99141_PID) { if (is_hs_mode()) { s_state->sampling_mode = SM_0A00_0B00; s_state->dma_filter = &dma_filter_yuyv_highspeed; @@ -1155,20 +1206,28 @@ esp_err_t camera_init(const camera_config_t* config) } s_state->fb_bytes_per_pixel = 1; // frame buffer stores Y8 } else if (pix_format == PIXFORMAT_YUV422 || pix_format == PIXFORMAT_RGB565) { - s_state->fb_size = s_state->width * s_state->height * 2; - if (is_hs_mode() && s_state->sensor.id.PID != OV7725_PID) { - s_state->sampling_mode = SM_0A00_0B00; - s_state->dma_filter = &dma_filter_yuyv_highspeed; - } else { - s_state->sampling_mode = SM_0A0B_0C0D; - s_state->dma_filter = &dma_filter_yuyv; - } - s_state->in_bytes_per_pixel = 2; // camera sends YU/YV - s_state->fb_bytes_per_pixel = 2; // frame buffer stores YU/YV/RGB565 + s_state->fb_size = s_state->width * s_state->height * 2; + if (is_hs_mode() && s_state->sensor.id.PID != OV7725_PID) { + if(s_state->sensor.id.PID == OV7670_PID) { + s_state->sampling_mode = SM_0A0B_0B0C; + }else{ + s_state->sampling_mode = SM_0A00_0B00; + } + s_state->dma_filter = &dma_filter_yuyv_highspeed; + } else { + s_state->sampling_mode = SM_0A0B_0C0D; + s_state->dma_filter = &dma_filter_yuyv; + } + s_state->in_bytes_per_pixel = 2; // camera sends YU/YV + s_state->fb_bytes_per_pixel = 2; // frame buffer stores YU/YV/RGB565 } else if (pix_format == PIXFORMAT_RGB888) { s_state->fb_size = s_state->width * s_state->height * 3; if (is_hs_mode()) { - s_state->sampling_mode = SM_0A00_0B00; + if(s_state->sensor.id.PID == OV7670_PID) { + s_state->sampling_mode = SM_0A0B_0B0C; + }else{ + s_state->sampling_mode = SM_0A00_0B00; + } s_state->dma_filter = &dma_filter_rgb888_highspeed; } else { s_state->sampling_mode = SM_0A0B_0C0D; @@ -1177,7 +1236,7 @@ esp_err_t camera_init(const camera_config_t* config) s_state->in_bytes_per_pixel = 2; // camera sends RGB565 s_state->fb_bytes_per_pixel = 3; // frame buffer stores RGB888 } else if (pix_format == PIXFORMAT_JPEG) { - if (s_state->sensor.id.PID != OV2640_PID && s_state->sensor.id.PID != OV3660_PID && s_state->sensor.id.PID != OV5640_PID) { + if (s_state->sensor.id.PID != OV2640_PID && s_state->sensor.id.PID != OV3660_PID && s_state->sensor.id.PID != OV5640_PID && s_state->sensor.id.PID != NT99141_PID) { ESP_LOGE(TAG, "JPEG format is only supported for ov2640, ov3660 and ov5640"); err = ESP_ERR_NOT_SUPPORTED; goto fail; @@ -1264,8 +1323,13 @@ esp_err_t camera_init(const camera_config_t* config) vsync_intr_disable(); err = gpio_install_isr_service(ESP_INTR_FLAG_LEVEL1 | ESP_INTR_FLAG_IRAM); if (err != ESP_OK) { - ESP_LOGE(TAG, "gpio_install_isr_service failed (%x)", err); - goto fail; + if (err != ESP_ERR_INVALID_STATE) { + ESP_LOGE(TAG, "gpio_install_isr_service failed (%x)", err); + goto fail; + } + else { + ESP_LOGW(TAG, "gpio_install_isr_service already installed"); + } } err = gpio_isr_handler_add(s_state->config.pin_vsync, &vsync_isr, NULL); if (err != ESP_OK) { @@ -1309,6 +1373,7 @@ esp_err_t camera_init(const camera_config_t* config) esp_err_t esp_camera_init(const camera_config_t* config) { camera_model_t camera_model = CAMERA_NONE; + i2s_gpio_init(config); esp_err_t err = camera_probe(config, &camera_model); if (err != ESP_OK) { ESP_LOGE(TAG, "Camera probe failed with error 0x%x", err); @@ -1327,6 +1392,10 @@ esp_err_t esp_camera_init(const camera_config_t* config) ESP_LOGI(TAG, "Detected OV3660 camera"); } else if (camera_model == CAMERA_OV5640) { ESP_LOGI(TAG, "Detected OV5640 camera"); + } else if (camera_model == CAMERA_OV7670) { + ESP_LOGI(TAG, "Detected OV7670 camera"); + } else if (camera_model == CAMERA_NT99141) { + ESP_LOGI(TAG, "Detected NT99141 camera"); } else { ESP_LOGI(TAG, "Camera not supported"); err = ESP_ERR_CAMERA_NOT_SUPPORTED; @@ -1373,9 +1442,12 @@ esp_err_t esp_camera_deinit() } dma_desc_deinit(); camera_fb_deinit(); + + if(s_state->config.pin_xclk >= 0) { + camera_disable_out_clock(); + } free(s_state); s_state = NULL; - camera_disable_out_clock(); periph_module_disable(PERIPH_I2S0_MODULE); return ESP_OK; } diff --git a/code/lib/driver/esp_camera.h b/code/components/esp32-camera-master/driver/include/esp_camera.h similarity index 99% rename from code/lib/driver/esp_camera.h rename to code/components/esp32-camera-master/driver/include/esp_camera.h index 8435c9a84..dadd0c098 100644 --- a/code/lib/driver/esp_camera.h +++ b/code/components/esp32-camera-master/driver/include/esp_camera.h @@ -65,9 +65,6 @@ #pragma once -#ifndef ESPCAMERADEF -#define ESPCAMERADEF - #include "esp_err.h" #include "driver/ledc.h" #include "sensor.h" @@ -196,5 +193,3 @@ esp_err_t esp_camera_load_from_nvs(const char *key); #include "img_converters.h" -#endif - diff --git a/code/lib/jomjol_controlcamera/sensor.h b/code/components/esp32-camera-master/driver/include/sensor.h similarity index 99% rename from code/lib/jomjol_controlcamera/sensor.h rename to code/components/esp32-camera-master/driver/include/sensor.h index 3ea7e2ce7..ad6cd890d 100644 --- a/code/lib/jomjol_controlcamera/sensor.h +++ b/code/components/esp32-camera-master/driver/include/sensor.h @@ -11,11 +11,13 @@ #include #include +#define NT99141_PID (0x14) #define OV9650_PID (0x96) #define OV7725_PID (0x77) #define OV2640_PID (0x26) #define OV3660_PID (0x36) #define OV5640_PID (0x56) +#define OV7670_PID (0x76) typedef enum { PIXFORMAT_RGB565, // 2BPP/RGB565 diff --git a/code/lib/driver/camera_common.h b/code/components/esp32-camera-master/driver/private_include/camera_common.h similarity index 100% rename from code/lib/driver/camera_common.h rename to code/components/esp32-camera-master/driver/private_include/camera_common.h diff --git a/code/lib/driver/sccb.h b/code/components/esp32-camera-master/driver/private_include/sccb.h similarity index 100% rename from code/lib/driver/sccb.h rename to code/components/esp32-camera-master/driver/private_include/sccb.h diff --git a/code/lib/driver/xclk.h b/code/components/esp32-camera-master/driver/private_include/xclk.h similarity index 100% rename from code/lib/driver/xclk.h rename to code/components/esp32-camera-master/driver/private_include/xclk.h diff --git a/code/lib/driver/sccb.c b/code/components/esp32-camera-master/driver/sccb.c similarity index 72% rename from code/lib/driver/sccb.c rename to code/components/esp32-camera-master/driver/sccb.c index d2f5fb951..8befb7c26 100644 --- a/code/lib/driver/sccb.c +++ b/code/components/esp32-camera-master/driver/sccb.c @@ -19,11 +19,8 @@ static const char* TAG = "sccb"; #endif -//#undef CONFIG_SCCB_HARDWARE_I2C - #define LITTLETOBIG(x) ((x<<8)|(x>>8)) -#ifdef CONFIG_SCCB_HARDWARE_I2C #include "driver/i2c.h" #define SCCB_FREQ 100000 /*!< I2C master frequency*/ @@ -39,14 +36,10 @@ const int SCCB_I2C_PORT = 1; const int SCCB_I2C_PORT = 0; #endif static uint8_t ESP_SLAVE_ADDR = 0x3c; -#else -#include "twi.h" -#endif int SCCB_Init(int pin_sda, int pin_scl) { ESP_LOGI(TAG, "pin_sda %d pin_scl %d\n", pin_sda, pin_scl); -#ifdef CONFIG_SCCB_HARDWARE_I2C //log_i("SCCB_Init start"); i2c_config_t conf; conf.mode = I2C_MODE_MASTER; @@ -58,15 +51,11 @@ int SCCB_Init(int pin_sda, int pin_scl) i2c_param_config(SCCB_I2C_PORT, &conf); i2c_driver_install(SCCB_I2C_PORT, conf.mode, 0, 0, 0); -#else - twi_init(pin_sda, pin_scl); -#endif return 0; } uint8_t SCCB_Probe() { -#ifdef CONFIG_SCCB_HARDWARE_I2C uint8_t slave_addr = 0x0; while(slave_addr < 0x7f) { i2c_cmd_handle_t cmd = i2c_cmd_link_create(); @@ -82,28 +71,10 @@ uint8_t SCCB_Probe() slave_addr++; } return ESP_SLAVE_ADDR; -#else - uint8_t reg = 0x00; - uint8_t slv_addr = 0x00; - - ESP_LOGI(TAG, "SCCB_Probe start"); - for (uint8_t i = 0; i < 127; i++) { - if (twi_writeTo(i, ®, 1, true) == 0) { - slv_addr = i; - break; - } - - if (i!=126) { - vTaskDelay(10 / portTICK_PERIOD_MS); // Necessary for OV7725 camera (not for OV2640). - } - } - return slv_addr; -#endif } uint8_t SCCB_Read(uint8_t slv_addr, uint8_t reg) { -#ifdef CONFIG_SCCB_HARDWARE_I2C uint8_t data=0; esp_err_t ret = ESP_FAIL; i2c_cmd_handle_t cmd = i2c_cmd_link_create(); @@ -125,28 +96,10 @@ uint8_t SCCB_Read(uint8_t slv_addr, uint8_t reg) ESP_LOGE(TAG, "SCCB_Read Failed addr:0x%02x, reg:0x%02x, data:0x%02x, ret:%d", slv_addr, reg, data, ret); } return data; -#else - uint8_t data=0; - - int rc = twi_writeTo(slv_addr, ®, 1, true); - if (rc != 0) { - data = 0xff; - } else { - rc = twi_readFrom(slv_addr, &data, 1, true); - if (rc != 0) { - data=0xFF; - } - } - if (rc != 0) { - ESP_LOGE(TAG, "SCCB_Read [%02x] failed rc=%d\n", reg, rc); - } - return data; -#endif } uint8_t SCCB_Write(uint8_t slv_addr, uint8_t reg, uint8_t data) { -#ifdef CONFIG_SCCB_HARDWARE_I2C esp_err_t ret = ESP_FAIL; i2c_cmd_handle_t cmd = i2c_cmd_link_create(); i2c_master_start(cmd); @@ -160,23 +113,10 @@ uint8_t SCCB_Write(uint8_t slv_addr, uint8_t reg, uint8_t data) ESP_LOGE(TAG, "SCCB_Write Failed addr:0x%02x, reg:0x%02x, data:0x%02x, ret:%d", slv_addr, reg, data, ret); } return ret == ESP_OK ? 0 : -1; -#else - uint8_t ret=0; - uint8_t buf[] = {reg, data}; - - if(twi_writeTo(slv_addr, buf, 2, true) != 0) { - ret=0xFF; - } - if (ret != 0) { - ESP_LOGE(TAG, "SCCB_Write [%02x]=%02x failed\n", reg, data); - } - return ret; -#endif } uint8_t SCCB_Read16(uint8_t slv_addr, uint16_t reg) { -#ifdef CONFIG_SCCB_HARDWARE_I2C uint8_t data=0; esp_err_t ret = ESP_FAIL; uint16_t reg_htons = LITTLETOBIG(reg); @@ -201,32 +141,11 @@ uint8_t SCCB_Read16(uint8_t slv_addr, uint16_t reg) ESP_LOGE(TAG, "W [%04x]=%02x fail\n", reg, data); } return data; -#else - uint8_t data=0; - uint16_t reg_htons = LITTLETOBIG(reg); - uint8_t *reg_u8 = (uint8_t *)®_htons; - uint8_t buf[] = {reg_u8[0], reg_u8[1]}; - - int rc = twi_writeTo(slv_addr, buf, 2, true); - if (rc != 0) { - data = 0xff; - } else { - rc = twi_readFrom(slv_addr, &data, 1, true); - if (rc != 0) { - data=0xFF; - } - } - if (rc != 0) { - ESP_LOGE(TAG, "R [%04x] fail rc=%d\n", reg, rc); - } - return data; -#endif } uint8_t SCCB_Write16(uint8_t slv_addr, uint16_t reg, uint8_t data) { static uint16_t i = 0; -#ifdef CONFIG_SCCB_HARDWARE_I2C esp_err_t ret = ESP_FAIL; uint16_t reg_htons = LITTLETOBIG(reg); uint8_t *reg_u8 = (uint8_t *)®_htons; @@ -243,18 +162,4 @@ uint8_t SCCB_Write16(uint8_t slv_addr, uint16_t reg, uint8_t data) ESP_LOGE(TAG, "W [%04x]=%02x %d fail\n", reg, data, i++); } return ret == ESP_OK ? 0 : -1; -#else - uint8_t ret=0; - uint16_t reg_htons = LITTLETOBIG(reg); - uint8_t *reg_u8 = (uint8_t *)®_htons; - uint8_t buf[] = {reg_u8[0], reg_u8[1], data}; - - if(twi_writeTo(slv_addr, buf, 3, true) != 0) { - ret = 0xFF; - } - if (ret != 0) { - ESP_LOGE(TAG, "W [%04x]=%02x %d fail\n", reg, data, i++); - } - return ret; -#endif } diff --git a/code/lib/driver/sensor.c b/code/components/esp32-camera-master/driver/sensor.c similarity index 100% rename from code/lib/driver/sensor.c rename to code/components/esp32-camera-master/driver/sensor.c diff --git a/code/lib/driver/xclk.c b/code/components/esp32-camera-master/driver/xclk.c similarity index 97% rename from code/lib/driver/xclk.c rename to code/components/esp32-camera-master/driver/xclk.c index 4c10c55ba..f58747d5f 100644 --- a/code/lib/driver/xclk.c +++ b/code/components/esp32-camera-master/driver/xclk.c @@ -18,12 +18,9 @@ esp_err_t xclk_timer_conf(int ledc_timer, int xclk_freq_hz) timer_conf.duty_resolution = 2; timer_conf.freq_hz = xclk_freq_hz; timer_conf.speed_mode = LEDC_HIGH_SPEED_MODE; - #if ESP_IDF_VERSION_MAJOR >= 4 timer_conf.clk_cfg = LEDC_AUTO_CLK; #endif -// timer_conf.clk_cfg = LEDC_USE_APB_CLK; - timer_conf.timer_num = (ledc_timer_t)ledc_timer; esp_err_t err = ledc_timer_config(&timer_conf); if (err != ESP_OK) { diff --git a/code/components/esp32-camera-master/examples/take_picture.c b/code/components/esp32-camera-master/examples/take_picture.c new file mode 100644 index 000000000..6bd3f8226 --- /dev/null +++ b/code/components/esp32-camera-master/examples/take_picture.c @@ -0,0 +1,150 @@ +/** + * This example takes a picture every 5s and print its size on serial monitor. + */ + +// =============================== SETUP ====================================== + +// 1. Board setup (Uncomment): +// #define BOARD_WROVER_KIT +#define BOARD_ESP32CAM_AITHINKER + +/** + * 2. Kconfig setup + * + * If you have a Kconfig file, copy the content from + * https://github.com/espressif/esp32-camera/blob/master/Kconfig into it. + * In case you haven't, copy and paste this Kconfig file inside the src directory. + * This Kconfig file has definitions that allows more control over the camera and + * how it will be initialized. + */ + +/** + * 3. Enable PSRAM on sdkconfig: + * + * CONFIG_ESP32_SPIRAM_SUPPORT=y + * + * More info on + * https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/kconfig.html#config-esp32-spiram-support + */ + +// ================================ CODE ====================================== + +#include +#include +#include +#include +#include +#include + +#include "freertos/FreeRTOS.h" +#include "freertos/task.h" + +#include "esp_camera.h" + +// WROVER-KIT PIN Map +#ifdef BOARD_WROVER_KIT + +#define CAM_PIN_PWDN -1 //power down is not used +#define CAM_PIN_RESET -1 //software reset will be performed +#define CAM_PIN_XCLK 21 +#define CAM_PIN_SIOD 26 +#define CAM_PIN_SIOC 27 + +#define CAM_PIN_D7 35 +#define CAM_PIN_D6 34 +#define CAM_PIN_D5 39 +#define CAM_PIN_D4 36 +#define CAM_PIN_D3 19 +#define CAM_PIN_D2 18 +#define CAM_PIN_D1 5 +#define CAM_PIN_D0 4 +#define CAM_PIN_VSYNC 25 +#define CAM_PIN_HREF 23 +#define CAM_PIN_PCLK 22 + +#endif + +// ESP32Cam (AiThinker) PIN Map +#ifdef BOARD_ESP32CAM_AITHINKER + +#define CAM_PIN_PWDN 32 +#define CAM_PIN_RESET -1 //software reset will be performed +#define CAM_PIN_XCLK 0 +#define CAM_PIN_SIOD 26 +#define CAM_PIN_SIOC 27 + +#define CAM_PIN_D7 35 +#define CAM_PIN_D6 34 +#define CAM_PIN_D5 39 +#define CAM_PIN_D4 36 +#define CAM_PIN_D3 21 +#define CAM_PIN_D2 19 +#define CAM_PIN_D1 18 +#define CAM_PIN_D0 5 +#define CAM_PIN_VSYNC 25 +#define CAM_PIN_HREF 23 +#define CAM_PIN_PCLK 22 + +#endif + +static const char *TAG = "example:take_picture"; + +static camera_config_t camera_config = { + .pin_pwdn = CAM_PIN_PWDN, + .pin_reset = CAM_PIN_RESET, + .pin_xclk = CAM_PIN_XCLK, + .pin_sscb_sda = CAM_PIN_SIOD, + .pin_sscb_scl = CAM_PIN_SIOC, + + .pin_d7 = CAM_PIN_D7, + .pin_d6 = CAM_PIN_D6, + .pin_d5 = CAM_PIN_D5, + .pin_d4 = CAM_PIN_D4, + .pin_d3 = CAM_PIN_D3, + .pin_d2 = CAM_PIN_D2, + .pin_d1 = CAM_PIN_D1, + .pin_d0 = CAM_PIN_D0, + .pin_vsync = CAM_PIN_VSYNC, + .pin_href = CAM_PIN_HREF, + .pin_pclk = CAM_PIN_PCLK, + + //XCLK 20MHz or 10MHz for OV2640 double FPS (Experimental) + .xclk_freq_hz = 20000000, + .ledc_timer = LEDC_TIMER_0, + .ledc_channel = LEDC_CHANNEL_0, + + .pixel_format = PIXFORMAT_JPEG, //YUV422,GRAYSCALE,RGB565,JPEG + .frame_size = FRAMESIZE_VGA, //QQVGA-UXGA Do not use sizes above QVGA when not JPEG + + .jpeg_quality = 12, //0-63 lower number means higher quality + .fb_count = 1 //if more than one, i2s runs in continuous mode. Use only with JPEG +}; + +static esp_err_t init_camera() +{ + //initialize the camera + esp_err_t err = esp_camera_init(&camera_config); + if (err != ESP_OK) + { + ESP_LOGE(TAG, "Camera Init Failed"); + return err; + } + + return ESP_OK; +} + +void app_main() +{ + init_camera(); + + while (1) + { + ESP_LOGI(TAG, "Taking picture..."); + camera_fb_t *pic = esp_camera_fb_get(); + + // use pic->buf to access the image + ESP_LOGI(TAG, "Picture taken! Its size was: %zu bytes", pic->len); + + vTaskDelay(5000 / portTICK_RATE_MS); + } +} \ No newline at end of file diff --git a/code/components/esp32-camera-master/idf_component.yml b/code/components/esp32-camera-master/idf_component.yml new file mode 100644 index 000000000..9f9e0fcba --- /dev/null +++ b/code/components/esp32-camera-master/idf_component.yml @@ -0,0 +1,5 @@ +name: "esp32-camera" + +version: "1.0.0" + +description: This package hosts ESP32 compatible driver for OV2640 image sensors. Additionally it provides a few tools, which allow converting the captured frame data to the more common BMP and JPEG formats. diff --git a/code/components/esp32-camera-master/library.json b/code/components/esp32-camera-master/library.json new file mode 100644 index 000000000..0fbf02658 --- /dev/null +++ b/code/components/esp32-camera-master/library.json @@ -0,0 +1,25 @@ +{ + "name": "esp32-camera", + "version": "1.0.0", + "keywords": "esp32, camera, espressif, esp32-cam", + "description": "ESP32 compatible driver for OV2640, OV3660, OV5640, OV7670 and OV7725 image sensors.", + "repository": { + "type": "git", + "url": "https://github.com/espressif/esp32-camera" + }, + "frameworks": "espidf", + "platforms": "*", + "build": { + "flags": [ + "-Idriver/include", + "-Iconversions/include", + "-Idriver/private_include", + "-Iconversions/private_include", + "-Isensors/private_include", + "-fno-rtti" + ], + "includeDir": ".", + "srcDir": ".", + "srcFilter": ["-<*>", "+", "+", "+"] + } +} diff --git a/code/components/esp32-camera-master/sensors/nt99141.c b/code/components/esp32-camera-master/sensors/nt99141.c new file mode 100644 index 000000000..07a9cc4a6 --- /dev/null +++ b/code/components/esp32-camera-master/sensors/nt99141.c @@ -0,0 +1,1032 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * NT99141 driver. + * + */ +#include +#include +#include +#include "sccb.h" +#include "nt99141.h" +#include "nt99141_regs.h" +#include "nt99141_settings.h" +#include "freertos/FreeRTOS.h" +#include "freertos/task.h" + +#if defined(ARDUINO_ARCH_ESP32) && defined(CONFIG_ARDUHAL_ESP_LOG) +#include "esp32-hal-log.h" +#else +#include "esp_log.h" +static const char *TAG = "NT99141"; +#endif + +//#define REG_DEBUG_ON + +static int read_reg(uint8_t slv_addr, const uint16_t reg) +{ + int ret = SCCB_Read16(slv_addr, reg); +#ifdef REG_DEBUG_ON + + if (ret < 0) { + ESP_LOGE(TAG, "READ REG 0x%04x FAILED: %d", reg, ret); + } + +#endif + return ret; +} + +static int check_reg_mask(uint8_t slv_addr, uint16_t reg, uint8_t mask) +{ + return (read_reg(slv_addr, reg) & mask) == mask; +} + +static int read_reg16(uint8_t slv_addr, const uint16_t reg) +{ + int ret = 0, ret2 = 0; + ret = read_reg(slv_addr, reg); + + if (ret >= 0) { + ret = (ret & 0xFF) << 8; + ret2 = read_reg(slv_addr, reg + 1); + + if (ret2 < 0) { + ret = ret2; + } else { + ret |= ret2 & 0xFF; + } + } + + return ret; +} + + +static int write_reg(uint8_t slv_addr, const uint16_t reg, uint8_t value) +{ + int ret = 0; +#ifndef REG_DEBUG_ON + ret = SCCB_Write16(slv_addr, reg, value); +#else + int old_value = read_reg(slv_addr, reg); + + if (old_value < 0) { + return old_value; + } + + if ((uint8_t)old_value != value) { + ESP_LOGD(TAG, "NEW REG 0x%04x: 0x%02x to 0x%02x", reg, (uint8_t)old_value, value); + ret = SCCB_Write16(slv_addr, reg, value); + } else { + ESP_LOGD(TAG, "OLD REG 0x%04x: 0x%02x", reg, (uint8_t)old_value); + ret = SCCB_Write16(slv_addr, reg, value);//maybe not? + } + + if (ret < 0) { + ESP_LOGE(TAG, "WRITE REG 0x%04x FAILED: %d", reg, ret); + } + +#endif + return ret; +} + +static int set_reg_bits(uint8_t slv_addr, uint16_t reg, uint8_t offset, uint8_t mask, uint8_t value) +{ + int ret = 0; + uint8_t c_value, new_value; + ret = read_reg(slv_addr, reg); + + if (ret < 0) { + return ret; + } + + c_value = ret; + new_value = (c_value & ~(mask << offset)) | ((value & mask) << offset); + ret = write_reg(slv_addr, reg, new_value); + return ret; +} + +static int write_regs(uint8_t slv_addr, const uint16_t (*regs)[2]) +{ + int i = 0, ret = 0; + + while (!ret && regs[i][0] != REGLIST_TAIL) { + if (regs[i][0] == REG_DLY) { + vTaskDelay(regs[i][1] / portTICK_PERIOD_MS); + } else { + ret = write_reg(slv_addr, regs[i][0], regs[i][1]); + } + + i++; + } + + return ret; +} + +static int write_reg16(uint8_t slv_addr, const uint16_t reg, uint16_t value) +{ + if (write_reg(slv_addr, reg, value >> 8) || write_reg(slv_addr, reg + 1, value)) { + return -1; + } + + return 0; +} + +static int write_addr_reg(uint8_t slv_addr, const uint16_t reg, uint16_t x_value, uint16_t y_value) +{ + if (write_reg16(slv_addr, reg, x_value) || write_reg16(slv_addr, reg + 2, y_value)) { + return -1; + } + + return 0; +} + +#define write_reg_bits(slv_addr, reg, mask, enable) set_reg_bits(slv_addr, reg, 0, mask, enable?mask:0) + +static int calc_sysclk(int xclk, bool pll_bypass, int pll_multiplier, int pll_sys_div, int pll_pre_div, bool pll_root_2x, int pll_seld5, bool pclk_manual, int pclk_div) +{ + const int pll_pre_div2x_map[] = { 2, 3, 4, 6 };//values are multiplied by two to avoid floats + const int pll_seld52x_map[] = { 2, 2, 4, 5 }; + + if (!pll_sys_div) { + pll_sys_div = 1; + } + + int pll_pre_div2x = pll_pre_div2x_map[pll_pre_div]; + int pll_root_div = pll_root_2x ? 2 : 1; + int pll_seld52x = pll_seld52x_map[pll_seld5]; + + int VCO = (xclk / 1000) * pll_multiplier * pll_root_div * 2 / pll_pre_div2x; + int PLLCLK = pll_bypass ? (xclk) : (VCO * 1000 * 2 / pll_sys_div / pll_seld52x); + int PCLK = PLLCLK / 2 / ((pclk_manual && pclk_div) ? pclk_div : 1); + int SYSCLK = PLLCLK / 4; + + ESP_LOGD(TAG, "Calculated VCO: %d Hz, PLLCLK: %d Hz, SYSCLK: %d Hz, PCLK: %d Hz", VCO * 1000, PLLCLK, SYSCLK, PCLK); + return SYSCLK; +} + +static int set_pll(sensor_t *sensor, bool bypass, uint8_t multiplier, uint8_t sys_div, uint8_t pre_div, bool root_2x, uint8_t seld5, bool pclk_manual, uint8_t pclk_div) +{ + return -1; +} + +static int set_ae_level(sensor_t *sensor, int level); + +static int reset(sensor_t *sensor) +{ + + int ret = 0; + // Software Reset: clear all registers and reset them to their default values + ret = write_reg(sensor->slv_addr, SYSTEM_CTROL0, 0x01); + + if (ret) { + ESP_LOGE(TAG, "Software Reset FAILED!"); + return ret; + } + + vTaskDelay(100 / portTICK_PERIOD_MS); + ret = write_regs(sensor->slv_addr, sensor_default_regs); //re-initial + + if (ret == 0) { + ESP_LOGD(TAG, "Camera defaults loaded"); + ret = set_ae_level(sensor, 0); + vTaskDelay(100 / portTICK_PERIOD_MS); + } + + return ret; +} + +static int set_pixformat(sensor_t *sensor, pixformat_t pixformat) +{ + int ret = 0; + const uint16_t (*regs)[2]; + + switch (pixformat) { + case PIXFORMAT_YUV422: + regs = sensor_fmt_yuv422; + break; + + case PIXFORMAT_GRAYSCALE: + regs = sensor_fmt_grayscale; + break; + + case PIXFORMAT_RGB565: + case PIXFORMAT_RGB888: + regs = sensor_fmt_rgb565; + break; + + case PIXFORMAT_JPEG: + regs = sensor_fmt_jpeg; + break; + + case PIXFORMAT_RAW: + regs = sensor_fmt_raw; + break; + + default: + ESP_LOGE(TAG, "Unsupported pixformat: %u", pixformat); + return -1; + } + + ret = write_regs(sensor->slv_addr, regs); + + if (ret == 0) { + sensor->pixformat = pixformat; + ESP_LOGD(TAG, "Set pixformat to: %u", pixformat); + } + + return ret; +} + +static int set_image_options(sensor_t *sensor) +{ + int ret = 0; + uint8_t reg20 = 0; + uint8_t reg21 = 0; + uint8_t reg4514 = 0; + uint8_t reg4514_test = 0; + + // V-Flip + if (sensor->status.vflip) { + reg20 |= 0x01; + reg4514_test |= 1; + } + + // H-Mirror + if (sensor->status.hmirror) { + reg21 |= 0x02; + reg4514_test |= 2; + } + + switch (reg4514_test) { + + } + + if (write_reg(sensor->slv_addr, TIMING_TC_REG20, reg20 | reg21)) { + ESP_LOGE(TAG, "Setting Image Options Failed"); + ret = -1; + } + + ESP_LOGD(TAG, "Set Image Options: Compression: %u, Binning: %u, V-Flip: %u, H-Mirror: %u, Reg-4514: 0x%02x", + sensor->pixformat == PIXFORMAT_JPEG, sensor->status.binning, sensor->status.vflip, sensor->status.hmirror, reg4514); + return ret; +} + +static int set_framesize(sensor_t *sensor, framesize_t framesize) +{ + int ret = 0; + + sensor->status.framesize = framesize; + ret = write_regs(sensor->slv_addr, sensor_default_regs); + + if (framesize == FRAMESIZE_QVGA) { + ESP_LOGD(TAG, "Set FRAMESIZE_QVGA"); + ret = write_regs(sensor->slv_addr, sensor_framesize_QVGA); +#if CONFIG_NT99141_SUPPORT_XSKIP + ESP_LOGD(TAG, "Set FRAMESIZE_QVGA: xskip mode"); + ret = write_regs(sensor->slv_addr, sensor_framesize_QVGA_xskip); +#elif CONFIG_NT99141_SUPPORT_CROP + ESP_LOGD(TAG, "Set FRAMESIZE_QVGA: crop mode"); + ret = write_regs(sensor->slv_addr, sensor_framesize_QVGA_crop); +#endif + } else if (framesize == FRAMESIZE_VGA) { + ESP_LOGD(TAG, "Set FRAMESIZE_VGA"); + // ret = write_regs(sensor->slv_addr, sensor_framesize_VGA); + ret = write_regs(sensor->slv_addr, sensor_framesize_VGA_xyskip);// Resolution:640*360 This configuration is equally-scaled without deforming +#ifdef CONFIG_NT99141_SUPPORT_XSKIP + ESP_LOGD(TAG, "Set FRAMESIZE_QVGA: xskip mode"); + ret = write_regs(sensor->slv_addr, sensor_framesize_VGA_xskip); +#elif CONFIG_NT99141_SUPPORT_CROP + ESP_LOGD(TAG, "Set FRAMESIZE_QVGA: crop mode"); + ret = write_regs(sensor->slv_addr, sensor_framesize_VGA_crop); +#endif + } else if (framesize >= FRAMESIZE_HD) { + ESP_LOGD(TAG, "Set FRAMESIZE_HD"); + ret = write_regs(sensor->slv_addr, sensor_framesize_HD); + } else { + ESP_LOGD(TAG, "Dont suppost this size, Set FRAMESIZE_VGA"); + ret = write_regs(sensor->slv_addr, sensor_framesize_VGA); + } + + return 0; +} + +static int set_hmirror(sensor_t *sensor, int enable) +{ + int ret = 0; + sensor->status.hmirror = enable; + ret = set_image_options(sensor); + + if (ret == 0) { + ESP_LOGD(TAG, "Set h-mirror to: %d", enable); + } + + return ret; +} + +static int set_vflip(sensor_t *sensor, int enable) +{ + int ret = 0; + sensor->status.vflip = enable; + ret = set_image_options(sensor); + + if (ret == 0) { + ESP_LOGD(TAG, "Set v-flip to: %d", enable); + } + + return ret; +} + +static int set_quality(sensor_t *sensor, int qs) +{ + int ret = 0; + ret = write_reg(sensor->slv_addr, COMPRESSION_CTRL07, qs & 0x3f); + + if (ret == 0) { + sensor->status.quality = qs; + ESP_LOGD(TAG, "Set quality to: %d", qs); + } + + return ret; +} + +static int set_colorbar(sensor_t *sensor, int enable) +{ + int ret = 0; + ret = write_reg_bits(sensor->slv_addr, PRE_ISP_TEST_SETTING_1, TEST_COLOR_BAR, enable); + + if (ret == 0) { + sensor->status.colorbar = enable; + ESP_LOGD(TAG, "Set colorbar to: %d", enable); + } + + return ret; +} + +static int set_gain_ctrl(sensor_t *sensor, int enable) +{ + int ret = 0; + ret = write_reg_bits(sensor->slv_addr, 0x32bb, 0x87, enable); + + if (ret == 0) { + ESP_LOGD(TAG, "Set gain_ctrl to: %d", enable); + sensor->status.agc = enable; + } + + return ret; +} + +static int set_exposure_ctrl(sensor_t *sensor, int enable) +{ + int ret = 0; + int data = 0; + // ret = write_reg_bits(sensor->slv_addr, 0x32bb, 0x87, enable); + data = read_reg(sensor->slv_addr, 0x3201); + ESP_LOGD(TAG, "set_exposure_ctrl:enable"); + if (enable) { + ESP_LOGD(TAG, "set_exposure_ctrl:enable"); + ret = write_reg(sensor->slv_addr, 0x3201, (1 << 5) | data); + } else { + ESP_LOGD(TAG, "set_exposure_ctrl:disable"); + ret = write_reg(sensor->slv_addr, 0x3201, (~(1 << 5)) & data); + } + + if (ret == 0) { + ESP_LOGD(TAG, "Set exposure_ctrl to: %d", enable); + sensor->status.aec = enable; + } + + return ret; +} + +static int set_whitebal(sensor_t *sensor, int enable) +{ + int ret = 0; + + if (ret == 0) { + ESP_LOGD(TAG, "Set awb to: %d", enable); + sensor->status.awb = enable; + } + + return ret; +} + +//Advanced AWB +static int set_dcw_dsp(sensor_t *sensor, int enable) +{ + int ret = 0; + + if (ret == 0) { + ESP_LOGD(TAG, "Set dcw to: %d", enable); + sensor->status.dcw = enable; + } + + return ret; +} + +//night mode enable +static int set_aec2(sensor_t *sensor, int enable) +{ + int ret = 0; + + if (ret == 0) { + ESP_LOGD(TAG, "Set aec2 to: %d", enable); + sensor->status.aec2 = enable; + } + + return ret; +} + +static int set_bpc_dsp(sensor_t *sensor, int enable) +{ + int ret = 0; + + if (ret == 0) { + ESP_LOGD(TAG, "Set bpc to: %d", enable); + sensor->status.bpc = enable; + } + + return ret; +} + +static int set_wpc_dsp(sensor_t *sensor, int enable) +{ + int ret = 0; + + if (ret == 0) { + ESP_LOGD(TAG, "Set wpc to: %d", enable); + sensor->status.wpc = enable; + } + + return ret; +} + +//Gamma enable +static int set_raw_gma_dsp(sensor_t *sensor, int enable) +{ + int ret = 0; + + if (ret == 0) { + ESP_LOGD(TAG, "Set raw_gma to: %d", enable); + sensor->status.raw_gma = enable; + } + + return ret; +} + +static int set_lenc_dsp(sensor_t *sensor, int enable) +{ + int ret = 0; + + if (ret == 0) { + ESP_LOGD(TAG, "Set lenc to: %d", enable); + sensor->status.lenc = enable; + } + + return ret; +} + +static int get_agc_gain(sensor_t *sensor) +{ + ESP_LOGD(TAG, "get_agc_gain can not be configured at present"); + return 0; +} + +//real gain +static int set_agc_gain(sensor_t *sensor, int gain) +{ + ESP_LOGD(TAG, "set_agc_gain can not be configured at present"); + // ESP_LOGD(TAG, "GAIN = %d\n", gain); + int cnt = gain / 2; + + switch (cnt) { + case 0: + ESP_LOGD(TAG, "set_agc_gain: 1x"); + write_reg(sensor->slv_addr, 0X301D, 0X00); + break; + + case 1: + ESP_LOGD(TAG,"set_agc_gain: 2x"); + write_reg(sensor->slv_addr, 0X301D, 0X0F); + break; + + case 2: + ESP_LOGD(TAG,"set_agc_gain: 4x"); + write_reg(sensor->slv_addr, 0X301D, 0X2F); + break; + + case 3: + ESP_LOGD(TAG,"set_agc_gain: 6x"); + write_reg(sensor->slv_addr, 0X301D, 0X37); + break; + + case 4: + ESP_LOGD(TAG,"set_agc_gain: 8x"); + write_reg(sensor->slv_addr, 0X301D, 0X3F); + break; + + default: + ESP_LOGD(TAG,"fail set_agc_gain"); + break; + } + + return 0; +} + +static int get_aec_value(sensor_t *sensor) +{ + ESP_LOGD(TAG, "get_aec_value can not be configured at present"); + return 0; +} + +static int set_aec_value(sensor_t *sensor, int value) +{ + ESP_LOGD(TAG, "set_aec_value can not be configured at present"); + int ret = 0; + // ESP_LOGD(TAG, " set_aec_value to: %d", value); + ret = write_reg_bits(sensor->slv_addr, 0x3012, 0x00, (value >> 8) & 0xff); + ret = write_reg_bits(sensor->slv_addr, 0x3013, 0x01, value & 0xff); + + if (ret == 0) { + ESP_LOGD(TAG, " set_aec_value to: %d", value); + // sensor->status.aec = enable; + } + + return ret; +} + +static int set_ae_level(sensor_t *sensor, int level) +{ + ESP_LOGD(TAG, "set_ae_level can not be configured at present"); + int ret = 0; + + if (level < 0) { + level = 0; + } else if (level > 9) { + level = 9; + } + + for (int i = 0; i < 5; i++) { + ret += write_reg(sensor->slv_addr, sensor_ae_level[ 5 * level + i ][0], sensor_ae_level[5 * level + i ][1]); + } + + if (ret) { + ESP_LOGE(TAG, " fail to set ae level: %d", ret); + } + + return 0; +} + +static int set_wb_mode(sensor_t *sensor, int mode) +{ + int ret = 0; + + if (mode < 0 || mode > 4) { + return -1; + } + + ret = write_reg(sensor->slv_addr, 0x3201, (mode != 0)); + + if (ret) { + return ret; + } + + switch (mode) { + case 1://Sunny + ret = write_reg16(sensor->slv_addr, 0x3290, 0x01) + || write_reg16(sensor->slv_addr, 0x3291, 0x38) + || write_reg16(sensor->slv_addr, 0x3296, 0x01) + || write_reg16(sensor->slv_addr, 0x3297, 0x68) + || write_reg16(sensor->slv_addr, 0x3060, 0x01); + + break; + + case 2://Cloudy + + ret = write_reg16(sensor->slv_addr, 0x3290, 0x01) + || write_reg16(sensor->slv_addr, 0x3291, 0x51) + || write_reg16(sensor->slv_addr, 0x3296, 0x01) + || write_reg16(sensor->slv_addr, 0x3297, 0x00) + || write_reg16(sensor->slv_addr, 0x3060, 0x01); + break; + + case 3://INCANDESCENCE] + ret = write_reg16(sensor->slv_addr, 0x3290, 0x01) + || write_reg16(sensor->slv_addr, 0x3291, 0x30) + || write_reg16(sensor->slv_addr, 0x3296, 0x01) + || write_reg16(sensor->slv_addr, 0x3297, 0xCB) + || write_reg16(sensor->slv_addr, 0x3060, 0x01); + break; + + case 4://FLUORESCENT + ret = write_reg16(sensor->slv_addr, 0x3290, 0x01) + || write_reg16(sensor->slv_addr, 0x3291, 0x70) + || write_reg16(sensor->slv_addr, 0x3296, 0x01) + || write_reg16(sensor->slv_addr, 0x3297, 0xFF) + || write_reg16(sensor->slv_addr, 0x3060, 0x01); + break; + + default://AUTO + break; + } + + if (ret == 0) { + ESP_LOGD(TAG, "Set wb_mode to: %d", mode); + sensor->status.wb_mode = mode; + } + + return ret; +} + +static int set_awb_gain_dsp(sensor_t *sensor, int enable) +{ + int ret = 0; + int old_mode = sensor->status.wb_mode; + int mode = enable ? old_mode : 0; + + ret = set_wb_mode(sensor, mode); + + if (ret == 0) { + sensor->status.wb_mode = old_mode; + ESP_LOGD(TAG, "Set awb_gain to: %d", enable); + sensor->status.awb_gain = enable; + } + + return ret; +} + +static int set_special_effect(sensor_t *sensor, int effect) +{ + int ret = 0; + + if (effect < 0 || effect > 6) { + return -1; + } + + uint8_t *regs = (uint8_t *)sensor_special_effects[effect]; + ret = write_reg(sensor->slv_addr, 0x32F1, regs[0]) + || write_reg(sensor->slv_addr, 0x32F4, regs[1]) + || write_reg(sensor->slv_addr, 0x32F5, regs[2]) + || write_reg(sensor->slv_addr, 0x3060, regs[3]); + + if (ret == 0) { + ESP_LOGD(TAG, "Set special_effect to: %d", effect); + sensor->status.special_effect = effect; + } + + return ret; +} + +static int set_brightness(sensor_t *sensor, int level) +{ + int ret = 0; + uint8_t value = 0; + bool negative = false; + + switch (level) { + case 3: + value = 0xA0; + break; + + case 2: + value = 0x90; + break; + + case 1: + value = 0x88; + break; + + case -1: + value = 0x78; + negative = true; + break; + + case -2: + value = 0x70; + negative = true; + break; + + case -3: + value = 0x60; + negative = true; + break; + + default: // 0 + break; + } + + ret = write_reg(sensor->slv_addr, 0x32F2, value); + + if (ret == 0) { + ESP_LOGD(TAG, "Set brightness to: %d", level); + sensor->status.brightness = level; + } + + return ret; +} + +static int set_contrast(sensor_t *sensor, int level) +{ + int ret = 0; + uint8_t value1 = 0, value2 = 0 ; + bool negative = false; + + switch (level) { + case 3: + value1 = 0xD0; + value2 = 0xB0; + break; + + case 2: + value1 = 0xE0; + value2 = 0xA0; + break; + + case 1: + value1 = 0xF0; + value2 = 0x90; + break; + + case 0: + value1 = 0x00; + value2 = 0x80; + break; + + case -1: + value1 = 0x10; + value2 = 0x70; + break; + + case -2: + value1 = 0x20; + value2 = 0x60; + break; + + case -3: + value1 = 0x30; + value2 = 0x50; + break; + + default: // 0 + break; + } + + ret = write_reg(sensor->slv_addr, 0x32FC, value1); + ret = write_reg(sensor->slv_addr, 0x32F2, value2); + ret = write_reg(sensor->slv_addr, 0x3060, 0x01); + + if (ret == 0) { + ESP_LOGD(TAG, "Set contrast to: %d", level); + sensor->status.contrast = level; + } + + return ret; +} + +static int set_saturation(sensor_t *sensor, int level) +{ + int ret = 0; + + if (level > 4 || level < -4) { + return -1; + } + + uint8_t *regs = (uint8_t *)sensor_saturation_levels[level + 4]; + { + ret = write_reg(sensor->slv_addr, 0x32F3, regs[0]); + + if (ret) { + return ret; + } + } + + if (ret == 0) { + ESP_LOGD(TAG, "Set saturation to: %d", level); + sensor->status.saturation = level; + } + + return ret; +} + +static int set_sharpness(sensor_t *sensor, int level) +{ + int ret = 0; + + if (level > 3 || level < -3) { + return -1; + } + + uint8_t mt_offset_2 = (level + 3) * 8; + uint8_t mt_offset_1 = mt_offset_2 + 1; + + ret = write_reg_bits(sensor->slv_addr, 0x5308, 0x40, false)//0x40 means auto + || write_reg(sensor->slv_addr, 0x5300, 0x10) + || write_reg(sensor->slv_addr, 0x5301, 0x10) + || write_reg(sensor->slv_addr, 0x5302, mt_offset_1) + || write_reg(sensor->slv_addr, 0x5303, mt_offset_2) + || write_reg(sensor->slv_addr, 0x5309, 0x10) + || write_reg(sensor->slv_addr, 0x530a, 0x10) + || write_reg(sensor->slv_addr, 0x530b, 0x04) + || write_reg(sensor->slv_addr, 0x530c, 0x06); + + if (ret == 0) { + ESP_LOGD(TAG, "Set sharpness to: %d", level); + sensor->status.sharpness = level; + } + + return ret; +} + +static int set_gainceiling(sensor_t *sensor, gainceiling_t level) +{ + ESP_LOGD(TAG, "set_gainceiling can not be configured at present"); + return 0; +} + +static int get_denoise(sensor_t *sensor) +{ + + return (read_reg(sensor->slv_addr, 0x5306) / 4) + 1; +} + +static int set_denoise(sensor_t *sensor, int level) +{ + ESP_LOGD(TAG, "set_denoise can not be configured at present"); + return 0; +} + +static int get_reg(sensor_t *sensor, int reg, int mask) +{ + int ret = 0, ret2 = 0; + + if (mask > 0xFF) { + ret = read_reg16(sensor->slv_addr, reg); + + if (ret >= 0 && mask > 0xFFFF) { + ret2 = read_reg(sensor->slv_addr, reg + 2); + + if (ret2 >= 0) { + ret = (ret << 8) | ret2 ; + } else { + ret = ret2; + } + } + } else { + ret = read_reg(sensor->slv_addr, reg); + } + + if (ret > 0) { + ret &= mask; + } + + return ret; +} + +static int set_reg(sensor_t *sensor, int reg, int mask, int value) +{ + int ret = 0, ret2 = 0; + + if (mask > 0xFF) { + ret = read_reg16(sensor->slv_addr, reg); + + if (ret >= 0 && mask > 0xFFFF) { + ret2 = read_reg(sensor->slv_addr, reg + 2); + + if (ret2 >= 0) { + ret = (ret << 8) | ret2 ; + } else { + ret = ret2; + } + } + } else { + ret = read_reg(sensor->slv_addr, reg); + } + + if (ret < 0) { + return ret; + } + + value = (ret & ~mask) | (value & mask); + + if (mask > 0xFFFF) { + ret = write_reg16(sensor->slv_addr, reg, value >> 8); + + if (ret >= 0) { + ret = write_reg(sensor->slv_addr, reg + 2, value & 0xFF); + } + } else if (mask > 0xFF) { + ret = write_reg16(sensor->slv_addr, reg, value); + } else { + ret = write_reg(sensor->slv_addr, reg, value); + } + + return ret; +} + +static int set_res_raw(sensor_t *sensor, int startX, int startY, int endX, int endY, int offsetX, int offsetY, int totalX, int totalY, int outputX, int outputY, bool scale, bool binning) +{ + int ret = 0; + ret = write_addr_reg(sensor->slv_addr, X_ADDR_ST_H, startX, startY) + || write_addr_reg(sensor->slv_addr, X_ADDR_END_H, endX, endY) + || write_addr_reg(sensor->slv_addr, X_OFFSET_H, offsetX, offsetY) + || write_addr_reg(sensor->slv_addr, X_TOTAL_SIZE_H, totalX, totalY) + || write_addr_reg(sensor->slv_addr, X_OUTPUT_SIZE_H, outputX, outputY); + + if (!ret) { + sensor->status.scale = scale; + sensor->status.binning = binning; + ret = set_image_options(sensor); + } + + return ret; +} + +static int _set_pll(sensor_t *sensor, int bypass, int multiplier, int sys_div, int root_2x, int pre_div, int seld5, int pclk_manual, int pclk_div) +{ + return set_pll(sensor, bypass > 0, multiplier, sys_div, pre_div, root_2x > 0, seld5, pclk_manual > 0, pclk_div); +} + +esp_err_t xclk_timer_conf(int ledc_timer, int xclk_freq_hz); +static int set_xclk(sensor_t *sensor, int timer, int xclk) +{ + int ret = 0; + if (xclk > 10) + { + ESP_LOGE(TAG, "only XCLK under 10MHz is supported, and XCLK is now set to 10M"); + xclk = 10; + } + sensor->xclk_freq_hz = xclk * 1000000U; + ret = xclk_timer_conf(timer, sensor->xclk_freq_hz); + return ret; +} + +static int init_status(sensor_t *sensor) +{ + sensor->status.brightness = 0; + sensor->status.contrast = 0; + sensor->status.saturation = 0; + sensor->status.sharpness = (read_reg(sensor->slv_addr, 0x3301)); + sensor->status.denoise = get_denoise(sensor); + sensor->status.ae_level = 0; + sensor->status.gainceiling = read_reg16(sensor->slv_addr, 0x32F0) & 0xFF; + sensor->status.awb = check_reg_mask(sensor->slv_addr, ISP_CONTROL_01, 0x10); + sensor->status.dcw = !check_reg_mask(sensor->slv_addr, 0x5183, 0x80); + sensor->status.agc = !check_reg_mask(sensor->slv_addr, AEC_PK_MANUAL, AEC_PK_MANUAL_AGC_MANUALEN); + sensor->status.aec = !check_reg_mask(sensor->slv_addr, AEC_PK_MANUAL, AEC_PK_MANUAL_AEC_MANUALEN); + sensor->status.hmirror = check_reg_mask(sensor->slv_addr, TIMING_TC_REG21, TIMING_TC_REG21_HMIRROR); + sensor->status.vflip = check_reg_mask(sensor->slv_addr, TIMING_TC_REG20, TIMING_TC_REG20_VFLIP); + sensor->status.colorbar = check_reg_mask(sensor->slv_addr, PRE_ISP_TEST_SETTING_1, TEST_COLOR_BAR); + sensor->status.bpc = check_reg_mask(sensor->slv_addr, 0x5000, 0x04); + sensor->status.wpc = check_reg_mask(sensor->slv_addr, 0x5000, 0x02); + sensor->status.raw_gma = check_reg_mask(sensor->slv_addr, 0x5000, 0x20); + sensor->status.lenc = check_reg_mask(sensor->slv_addr, 0x5000, 0x80); + sensor->status.quality = read_reg(sensor->slv_addr, COMPRESSION_CTRL07) & 0x3f; + sensor->status.special_effect = 0; + sensor->status.wb_mode = 0; + sensor->status.awb_gain = check_reg_mask(sensor->slv_addr, 0x3000, 0x01); + sensor->status.agc_gain = get_agc_gain(sensor); + sensor->status.aec_value = get_aec_value(sensor); + sensor->status.aec2 = check_reg_mask(sensor->slv_addr, 0x3000, 0x04); + return 0; +} + +int NT99141_init(sensor_t *sensor) +{ + sensor->reset = reset; + sensor->set_pixformat = set_pixformat; + sensor->set_framesize = set_framesize; + sensor->set_contrast = set_contrast; + sensor->set_brightness = set_brightness; + sensor->set_saturation = set_saturation; + sensor->set_sharpness = set_sharpness; + sensor->set_gainceiling = set_gainceiling; + sensor->set_quality = set_quality; + sensor->set_colorbar = set_colorbar; + sensor->set_gain_ctrl = set_gain_ctrl; + sensor->set_exposure_ctrl = set_exposure_ctrl; + sensor->set_whitebal = set_whitebal; + sensor->set_hmirror = set_hmirror; + sensor->set_vflip = set_vflip; + sensor->init_status = init_status; + sensor->set_aec2 = set_aec2; + sensor->set_aec_value = set_aec_value; + sensor->set_special_effect = set_special_effect; + sensor->set_wb_mode = set_wb_mode; + sensor->set_ae_level = set_ae_level; + sensor->set_dcw = set_dcw_dsp; + sensor->set_bpc = set_bpc_dsp; + sensor->set_wpc = set_wpc_dsp; + sensor->set_awb_gain = set_awb_gain_dsp; + sensor->set_agc_gain = set_agc_gain; + sensor->set_raw_gma = set_raw_gma_dsp; + sensor->set_lenc = set_lenc_dsp; + sensor->set_denoise = set_denoise; + + sensor->get_reg = get_reg; + sensor->set_reg = set_reg; + sensor->set_res_raw = set_res_raw; + sensor->set_pll = _set_pll; + sensor->set_xclk = set_xclk; + return 0; +} diff --git a/code/lib/sensors/ov2640.c b/code/components/esp32-camera-master/sensors/ov2640.c similarity index 100% rename from code/lib/sensors/ov2640.c rename to code/components/esp32-camera-master/sensors/ov2640.c diff --git a/code/lib/sensors/ov3660.c b/code/components/esp32-camera-master/sensors/ov3660.c similarity index 100% rename from code/lib/sensors/ov3660.c rename to code/components/esp32-camera-master/sensors/ov3660.c diff --git a/code/lib/sensors/ov5640.c b/code/components/esp32-camera-master/sensors/ov5640.c similarity index 100% rename from code/lib/sensors/ov5640.c rename to code/components/esp32-camera-master/sensors/ov5640.c diff --git a/code/components/esp32-camera-master/sensors/ov7670.c b/code/components/esp32-camera-master/sensors/ov7670.c new file mode 100644 index 000000000..285fe134c --- /dev/null +++ b/code/components/esp32-camera-master/sensors/ov7670.c @@ -0,0 +1,439 @@ +/* + * This file is part of the OpenMV project. + * author: Juan Schiavoni + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * OV7725 driver. + * + */ +#include +#include +#include +#include "sccb.h" +#include "ov7670.h" +#include "ov7670_regs.h" +#include "freertos/FreeRTOS.h" +#include "freertos/task.h" +#include + +#if defined(ARDUINO_ARCH_ESP32) && defined(CONFIG_ARDUHAL_ESP_LOG) +#include "esp32-hal-log.h" +#else +#include "esp_log.h" +static const char* TAG = "ov7760"; +#endif + +static int ov7670_clkrc = 0x01; + +/* + * The default register settings, as obtained from OmniVision. There + * is really no making sense of most of these - lots of "reserved" values + * and such. + * + * These settings give VGA YUYV. + */ +struct regval_list { + uint8_t reg_num; + uint8_t value; +}; + +static struct regval_list ov7670_default_regs[] = { + /* Sensor automatically sets output window when resolution changes. */ + {TSLB, 0x04}, + + /* Frame rate 30 fps at 12 Mhz clock */ + {CLKRC, 0x00}, + {DBLV, 0x4A}, + + {COM10, COM10_VSYNC_NEG | COM10_PCLK_MASK}, + + /* Improve white balance */ + {COM4, 0x40}, + + /* Improve color */ + {RSVD_B0, 0x84}, + + /* Enable 50/60 Hz auto detection */ + {COM11, COM11_EXP|COM11_HZAUTO}, + + /* Disable some delays */ + {HSYST, 0}, + {HSYEN, 0}, + + {MVFP, MVFP_SUN}, + + /* More reserved magic, some of which tweaks white balance */ + {AWBC1, 0x0a}, + {AWBC2, 0xf0}, + {AWBC3, 0x34}, + {AWBC4, 0x58}, + {AWBC5, 0x28}, + {AWBC6, 0x3a}, + + {AWBCTR3, 0x0a}, + {AWBCTR2, 0x55}, + {AWBCTR1, 0x11}, + {AWBCTR0, 0x9e}, + + {COM8, COM8_FAST_AUTO|COM8_STEP_UNLIMIT|COM8_AGC_EN|COM8_AEC_EN|COM8_AWB_EN}, + + /* End marker is FF because in ov7670 the address of GAIN 0 and default value too. */ + {0xFF, 0xFF}, +}; + +static struct regval_list ov7670_fmt_yuv422[] = { + { COM7, 0x0 }, /* Selects YUV mode */ + { RGB444, 0 }, /* No RGB444 please */ + { COM1, 0 }, /* CCIR601 */ + { COM15, COM15_R00FF }, + { MVFP, MVFP_SUN }, + { COM9, 0x6A }, /* 128x gain ceiling; 0x8 is reserved bit */ + { MTX1, 0x80 }, /* "matrix coefficient 1" */ + { MTX2, 0x80 }, /* "matrix coefficient 2" */ + { MTX3, 0 }, /* vb */ + { MTX4, 0x22 }, /* "matrix coefficient 4" */ + { MTX5, 0x5e }, /* "matrix coefficient 5" */ + { MTX6, 0x80 }, /* "matrix coefficient 6" */ + { COM13, COM13_UVSAT }, + { 0xff, 0xff }, /* END MARKER */ +}; + +static struct regval_list ov7670_fmt_rgb565[] = { + { COM7, COM7_FMT_RGB565 }, /* Selects RGB mode */ + { RGB444, 0 }, /* No RGB444 please */ + { COM1, 0x0 }, /* CCIR601 */ + { COM15, COM15_RGB565 |COM15_R00FF }, + { MVFP, MVFP_SUN }, + { COM9, 0x6A }, /* 128x gain ceiling; 0x8 is reserved bit */ + { MTX1, 0xb3 }, /* "matrix coefficient 1" */ + { MTX2, 0xb3 }, /* "matrix coefficient 2" */ + { MTX3, 0 }, /* vb */ + { MTX4, 0x3d }, /* "matrix coefficient 4" */ + { MTX5, 0xa7 }, /* "matrix coefficient 5" */ + { MTX6, 0xe4 }, /* "matrix coefficient 6" */ + { COM13, COM13_UVSAT }, + { 0xff, 0xff }, /* END MARKER */ +}; + + +static struct regval_list ov7670_vga[] = { + { COM3, 0x00 }, + { COM14, 0x00 }, + { SCALING_XSC, 0x3A }, + { SCALING_YSC, 0x35 }, + { SCALING_DCWCTR, 0x11 }, + { SCALING_PCLK_DIV, 0xF0 }, + { SCALING_PCLK_DELAY, 0x02 }, + { 0xff, 0xff }, +}; + +static struct regval_list ov7670_qvga[] = { + { COM3, 0x04 }, + { COM14, 0x19 }, + { SCALING_XSC, 0x3A }, + { SCALING_YSC, 0x35 }, + { SCALING_DCWCTR, 0x11 }, + { SCALING_PCLK_DIV, 0xF1 }, + { SCALING_PCLK_DELAY, 0x02 }, + { 0xff, 0xff }, +}; + +static struct regval_list ov7670_qqvga[] = { + { COM3, 0x04 }, //DCW enable + { COM14, 0x1a }, //pixel clock divided by 4, manual scaling enable, DCW and PCLK controlled by register + { SCALING_XSC, 0x3a }, + { SCALING_YSC, 0x35 }, + { SCALING_DCWCTR, 0x22 }, //downsample by 4 + { SCALING_PCLK_DIV, 0xf2 }, //pixel clock divided by 4 + { SCALING_PCLK_DELAY, 0x02 }, + { 0xff, 0xff }, +}; + +/* + * Write a list of register settings; ff/ff stops the process. + */ +static int ov7670_write_array(sensor_t *sensor, struct regval_list *vals) +{ +int ret = 0; + + while ( (vals->reg_num != 0xff || vals->value != 0xff) && (ret == 0) ) { + ret = SCCB_Write(sensor->slv_addr, vals->reg_num, vals->value); + + ESP_LOGD(TAG, "reset reg %02X, W(%02X) R(%02X)", vals->reg_num, + vals->value, SCCB_Read(sensor->slv_addr, vals->reg_num) ); + + vals++; + } + + return ret; +} + +/* + * Calculate the frame control registers. + */ +static int ov7670_frame_control(sensor_t *sensor, int hstart, int hstop, int vstart, int vstop) +{ +struct regval_list frame[7]; + + frame[0].reg_num = HSTART; + frame[0].value = (hstart >> 3); + + frame[1].reg_num = HSTOP; + frame[1].value = (hstop >> 3); + + frame[2].reg_num = HREF; + frame[2].value = (((hstop & 0x07) << 3) | (hstart & 0x07)); + + frame[3].reg_num = VSTART; + frame[3].value = (vstart >> 2); + + frame[4].reg_num = VSTOP; + frame[4].value = (vstop >> 2); + + frame[5].reg_num = VREF; + frame[5].value = (((vstop & 0x02) << 2) | (vstart & 0x02)); + + /* End mark */ + frame[5].reg_num = 0xFF; + frame[5].value = 0xFF; + + return ov7670_write_array(sensor, frame); +} + +static int reset(sensor_t *sensor) +{ + int ret; + + // Reset all registers + SCCB_Write(sensor->slv_addr, COM7, COM7_RESET); + + // Delay 10 ms + vTaskDelay(10 / portTICK_PERIOD_MS); + + ret = ov7670_write_array(sensor, ov7670_default_regs); + + // Delay + vTaskDelay(30 / portTICK_PERIOD_MS); + + return ret; +} + +static int set_pixformat(sensor_t *sensor, pixformat_t pixformat) +{ +int ret; + + switch (pixformat) { + case PIXFORMAT_RGB565: + case PIXFORMAT_RGB888: + ret = ov7670_write_array(sensor, ov7670_fmt_rgb565); + break; + + case PIXFORMAT_YUV422: + case PIXFORMAT_GRAYSCALE: + default: + ret = ov7670_write_array(sensor, ov7670_fmt_yuv422); + break; + } + + vTaskDelay(30 / portTICK_PERIOD_MS); + + /* + * If we're running RGB565, we must rewrite clkrc after setting + * the other parameters or the image looks poor. If we're *not* + * doing RGB565, we must not rewrite clkrc or the image looks + * *really* poor. + * + * (Update) Now that we retain clkrc state, we should be able + * to write it unconditionally, and that will make the frame + * rate persistent too. + */ + if (pixformat == PIXFORMAT_RGB565) { + ret = SCCB_Write(sensor->slv_addr, CLKRC, ov7670_clkrc); + } + + return ret; +} + +static int set_framesize(sensor_t *sensor, framesize_t framesize) +{ + int ret; + + // store clkrc before changing window settings... + ov7670_clkrc = SCCB_Read(sensor->slv_addr, CLKRC); + + switch (framesize){ + case FRAMESIZE_VGA: + if( (ret = ov7670_write_array(sensor, ov7670_vga)) == 0 ) { + /* These values from Omnivision */ + ret = ov7670_frame_control(sensor, 158, 14, 10, 490); + } + break; + case FRAMESIZE_QVGA: + if( (ret = ov7670_write_array(sensor, ov7670_qvga)) == 0 ) { + /* These values from Omnivision */ + ret = ov7670_frame_control(sensor, 158, 14, 10, 490); + } + break; + case FRAMESIZE_QQVGA: + if( (ret = ov7670_write_array(sensor, ov7670_qqvga)) == 0 ) { + /* These values from Omnivision */ + ret = ov7670_frame_control(sensor, 158, 14, 10, 490); + } + break; + + default: + ret = -1; + } + + vTaskDelay(30 / portTICK_PERIOD_MS); + + if (ret == 0) { + sensor->status.framesize = framesize; + } + + return ret; +} + +static int set_colorbar(sensor_t *sensor, int enable) +{ + uint8_t ret = 0; + // Read register scaling_xsc + uint8_t reg = SCCB_Read(sensor->slv_addr, SCALING_XSC); + + // Pattern to set color bar bit[0]=0 in every case + reg = SCALING_XSC_CBAR(reg); + + // Write pattern to SCALING_XSC + ret = SCCB_Write(sensor->slv_addr, SCALING_XSC, reg); + + // Read register scaling_ysc + reg = SCCB_Read(sensor->slv_addr, SCALING_YSC); + + // Pattern to set color bar bit[0]=0 in every case + reg = SCALING_YSC_CBAR(reg, enable); + + // Write pattern to SCALING_YSC + ret = ret | SCCB_Write(sensor->slv_addr, SCALING_YSC, reg); + + // return 0 or 0xFF + return ret; +} + +static int set_whitebal(sensor_t *sensor, int enable) +{ + // Read register COM8 + uint8_t reg = SCCB_Read(sensor->slv_addr, COM8); + + // Set white bal on/off + reg = COM8_SET_AWB(reg, enable); + + // Write back register COM8 + return SCCB_Write(sensor->slv_addr, COM8, reg); +} + +static int set_gain_ctrl(sensor_t *sensor, int enable) +{ + // Read register COM8 + uint8_t reg = SCCB_Read(sensor->slv_addr, COM8); + + // Set white bal on/off + reg = COM8_SET_AGC(reg, enable); + + // Write back register COM8 + return SCCB_Write(sensor->slv_addr, COM8, reg); +} + +static int set_exposure_ctrl(sensor_t *sensor, int enable) +{ + // Read register COM8 + uint8_t reg = SCCB_Read(sensor->slv_addr, COM8); + + // Set white bal on/off + reg = COM8_SET_AEC(reg, enable); + + // Write back register COM8 + return SCCB_Write(sensor->slv_addr, COM8, reg); +} + +static int set_hmirror(sensor_t *sensor, int enable) +{ + // Read register MVFP + uint8_t reg = SCCB_Read(sensor->slv_addr, MVFP); + + // Set mirror on/off + reg = MVFP_SET_MIRROR(reg, enable); + + // Write back register MVFP + return SCCB_Write(sensor->slv_addr, MVFP, reg); +} + +static int set_vflip(sensor_t *sensor, int enable) +{ + // Read register MVFP + uint8_t reg = SCCB_Read(sensor->slv_addr, MVFP); + + // Set mirror on/off + reg = MVFP_SET_FLIP(reg, enable); + + // Write back register MVFP + return SCCB_Write(sensor->slv_addr, MVFP, reg); +} + +static int init_status(sensor_t *sensor) +{ + sensor->status.awb = 0; + sensor->status.aec = 0; + sensor->status.agc = 0; + sensor->status.hmirror = 0; + sensor->status.vflip = 0; + sensor->status.colorbar = 0; + return 0; +} + +static int set_dummy(sensor_t *sensor, int val){ return -1; } +static int set_gainceiling_dummy(sensor_t *sensor, gainceiling_t val){ return -1; } + +int ov7670_init(sensor_t *sensor) +{ + // Set function pointers + sensor->reset = reset; + sensor->init_status = init_status; + sensor->set_pixformat = set_pixformat; + sensor->set_framesize = set_framesize; + sensor->set_colorbar = set_colorbar; + sensor->set_whitebal = set_whitebal; + sensor->set_gain_ctrl = set_gain_ctrl; + sensor->set_exposure_ctrl = set_exposure_ctrl; + sensor->set_hmirror = set_hmirror; + sensor->set_vflip = set_vflip; + + //not supported + sensor->set_brightness= set_dummy; + sensor->set_saturation= set_dummy; + sensor->set_quality = set_dummy; + sensor->set_gainceiling = set_gainceiling_dummy; + sensor->set_aec2 = set_dummy; + sensor->set_aec_value = set_dummy; + sensor->set_special_effect = set_dummy; + sensor->set_wb_mode = set_dummy; + sensor->set_ae_level = set_dummy; + sensor->set_dcw = set_dummy; + sensor->set_bpc = set_dummy; + sensor->set_wpc = set_dummy; + sensor->set_awb_gain = set_dummy; + sensor->set_agc_gain = set_dummy; + sensor->set_raw_gma = set_dummy; + sensor->set_lenc = set_dummy; + sensor->set_sharpness = set_dummy; + sensor->set_denoise = set_dummy; + + // Retrieve sensor's signature + sensor->id.MIDH = SCCB_Read(sensor->slv_addr, REG_MIDH); + sensor->id.MIDL = SCCB_Read(sensor->slv_addr, REG_MIDL); + sensor->id.PID = SCCB_Read(sensor->slv_addr, REG_PID); + sensor->id.VER = SCCB_Read(sensor->slv_addr, REG_VER); + + ESP_LOGD(TAG, "OV7670 Attached"); + + return 0; +} diff --git a/code/lib/sensors/ov7725.c b/code/components/esp32-camera-master/sensors/ov7725.c similarity index 100% rename from code/lib/sensors/ov7725.c rename to code/components/esp32-camera-master/sensors/ov7725.c diff --git a/code/components/esp32-camera-master/sensors/private_include/nt99141.h b/code/components/esp32-camera-master/sensors/private_include/nt99141.h new file mode 100644 index 000000000..287a74295 --- /dev/null +++ b/code/components/esp32-camera-master/sensors/private_include/nt99141.h @@ -0,0 +1,16 @@ +/* + * This file is part of the OpenMV project. + * Copyright (c) 2013/2014 Ibrahim Abdelkader + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * NT99141 driver. + * + */ +#ifndef __NT99141_H__ +#define __NT99141_H__ + +#include "sensor.h" + +int NT99141_init(sensor_t *sensor); + +#endif // __NT99141_H__ diff --git a/code/components/esp32-camera-master/sensors/private_include/nt99141_regs.h b/code/components/esp32-camera-master/sensors/private_include/nt99141_regs.h new file mode 100644 index 000000000..8301db901 --- /dev/null +++ b/code/components/esp32-camera-master/sensors/private_include/nt99141_regs.h @@ -0,0 +1,211 @@ +/* + * NT99141 register definitions. + */ +#ifndef __NT99141_REG_REGS_H__ +#define __NT99141_REG_REGS_H__ + +/* system control registers */ +#define SYSTEM_CTROL0 0x3021 // Bit[7]: Software reset + // Bit[6]: Software power down + // Bit[5]: Reserved + // Bit[4]: SRB clock SYNC enable + // Bit[3]: Isolation suspend select + // Bit[2:0]: Not used + +/* output format control registers */ +#define FORMAT_CTRL 0x501F // Format select + // Bit[2:0]: + // 000: YUV422 + // 001: RGB + // 010: Dither + // 011: RAW after DPC + // 101: RAW after CIP + +/* format control registers */ +#define FORMAT_CTRL00 0x4300 + +/* frame control registers */ +#define FRAME_CTRL01 0x4201 // Control Passed Frame Number When both ON and OFF number set to 0x00,frame control is in bypass mode + // Bit[7:4]: Not used + // Bit[3:0]: Frame ON number +#define FRAME_CTRL02 0x4202 // Control Masked Frame Number When both ON and OFF number set to 0x00,frame control is in bypass mode + // Bit[7:4]: Not used + // BIT[3:0]: Frame OFF number + +/* ISP top control registers */ +#define PRE_ISP_TEST_SETTING_1 0x3025 // Bit[7]: Test enable + // 0: Test disable + // 1: Color bar enable + // Bit[6]: Rolling + // Bit[5]: Transparent + // Bit[4]: Square black and white + // Bit[3:2]: Color bar style + // 00: Standard 8 color bar + // 01: Gradual change at vertical mode 1 + // 10: Gradual change at horizontal + // 11: Gradual change at vertical mode 2 + // Bit[1:0]: Test select + // 00: Color bar + // 01: Random data + // 10: Square data + // 11: Black image + +//exposure = {0x3500[3:0], 0x3501[7:0], 0x3502[7:0]} / 16 Ă— tROW + +/* AEC/AGC control functions */ +#define AEC_PK_MANUAL 0x3201 // AEC Manual Mode Control + // Bit[7:6]: Reserved + // Bit[5]: Gain delay option + // Valid when 0x3503[4]=1’b0 + // 0: Delay one frame latch + // 1: One frame latch + // Bit[4:2]: Reserved + // Bit[1]: AGC manual + // 0: Auto enable + // 1: Manual enable + // Bit[0]: AEC manual + // 0: Auto enable + // 1: Manual enable + +//gain = {0x350A[1:0], 0x350B[7:0]} / 16 + +/* mirror and flip registers */ +#define TIMING_TC_REG20 0x3022 // Timing Control Register + // Bit[2:1]: Vertical flip enable + // 00: Normal + // 11: Vertical flip + // Bit[0]: Vertical binning enable +#define TIMING_TC_REG21 0x3022 // Timing Control Register + // Bit[5]: Compression Enable + // Bit[2:1]: Horizontal mirror enable + // 00: Normal + // 11: Horizontal mirror + // Bit[0]: Horizontal binning enable + +#define CLOCK_POL_CONTROL 0x3024// Bit[5]: PCLK polarity 0: active low + // 1: active high + // Bit[3]: Gate PCLK under VSYNC + // Bit[2]: Gate PCLK under HREF + // Bit[1]: HREF polarity + // 0: active low + // 1: active high + // Bit[0] VSYNC polarity + // 0: active low + // 1: active high +#define DRIVE_CAPABILITY 0x306a // Bit[7:6]: + // 00: 1x + // 01: 2x + // 10: 3x + // 11: 4x + + +#define X_ADDR_ST_H 0x3800 //Bit[3:0]: X address start[11:8] +#define X_ADDR_ST_L 0x3801 //Bit[7:0]: X address start[7:0] +#define Y_ADDR_ST_H 0x3802 //Bit[2:0]: Y address start[10:8] +#define Y_ADDR_ST_L 0x3803 //Bit[7:0]: Y address start[7:0] +#define X_ADDR_END_H 0x3804 //Bit[3:0]: X address end[11:8] +#define X_ADDR_END_L 0x3805 //Bit[7:0]: +#define Y_ADDR_END_H 0x3806 //Bit[2:0]: Y address end[10:8] +#define Y_ADDR_END_L 0x3807 //Bit[7:0]: +// Size after scaling +#define X_OUTPUT_SIZE_H 0x3808 //Bit[3:0]: DVP output horizontal width[11:8] +#define X_OUTPUT_SIZE_L 0x3809 //Bit[7:0]: +#define Y_OUTPUT_SIZE_H 0x380a //Bit[2:0]: DVP output vertical height[10:8] +#define Y_OUTPUT_SIZE_L 0x380b //Bit[7:0]: +#define X_TOTAL_SIZE_H 0x380c //Bit[3:0]: Total horizontal size[11:8] +#define X_TOTAL_SIZE_L 0x380d //Bit[7:0]: +#define Y_TOTAL_SIZE_H 0x380e //Bit[7:0]: Total vertical size[15:8] +#define Y_TOTAL_SIZE_L 0x380f //Bit[7:0]: +#define X_OFFSET_H 0x3810 //Bit[3:0]: ISP horizontal offset[11:8] +#define X_OFFSET_L 0x3811 //Bit[7:0]: +#define Y_OFFSET_H 0x3812 //Bit[2:0]: ISP vertical offset[10:8] +#define Y_OFFSET_L 0x3813 //Bit[7:0]: +#define X_INCREMENT 0x3814 //Bit[7:4]: Horizontal odd subsample increment + //Bit[3:0]: Horizontal even subsample increment +#define Y_INCREMENT 0x3815 //Bit[7:4]: Vertical odd subsample increment + //Bit[3:0]: Vertical even subsample increment +// Size before scaling +//#define X_INPUT_SIZE (X_ADDR_END - X_ADDR_ST + 1 - (2 * X_OFFSET)) +//#define Y_INPUT_SIZE (Y_ADDR_END - Y_ADDR_ST + 1 - (2 * Y_OFFSET)) + +#define ISP_CONTROL_01 0x3021 // Bit[5]: Scale enable + // 0: Disable + // 1: Enable + +#define SCALE_CTRL_1 0x5601 // Bit[6:4]: HDIV RW + // DCW scale times + // 000: DCW 1 time + // 001: DCW 2 times + // 010: DCW 4 times + // 100: DCW 8 times + // 101: DCW 16 times + // Others: DCW 16 times + // Bit[2:0]: VDIV RW + // DCW scale times + // 000: DCW 1 time + // 001: DCW 2 times + // 010: DCW 4 times + // 100: DCW 8 times + // 101: DCW 16 times + // Others: DCW 16 times + +#define SCALE_CTRL_2 0x5602 // X_SCALE High Bits +#define SCALE_CTRL_3 0x5603 // X_SCALE Low Bits +#define SCALE_CTRL_4 0x5604 // Y_SCALE High Bits +#define SCALE_CTRL_5 0x5605 // Y_SCALE Low Bits +#define SCALE_CTRL_6 0x5606 // Bit[3:0]: V Offset + +#define PCLK_RATIO 0x3824 // Bit[4:0]: PCLK ratio manual +#define VFIFO_CTRL0C 0x460C // Bit[1]: PCLK manual enable + // 0: Auto + // 1: Manual by PCLK_RATIO + +#define VFIFO_X_SIZE_H 0x4602 +#define VFIFO_X_SIZE_L 0x4603 +#define VFIFO_Y_SIZE_H 0x4604 +#define VFIFO_Y_SIZE_L 0x4605 + +#define SC_PLLS_CTRL0 0x303a // Bit[7]: PLLS bypass +#define SC_PLLS_CTRL1 0x303b // Bit[4:0]: PLLS multiplier +#define SC_PLLS_CTRL2 0x303c // Bit[6:4]: PLLS charge pump control + // Bit[3:0]: PLLS system divider +#define SC_PLLS_CTRL3 0x303d // Bit[5:4]: PLLS pre-divider + // 00: 1 + // 01: 1.5 + // 10: 2 + // 11: 3 + // Bit[2]: PLLS root-divider - 1 + // Bit[1:0]: PLLS seld5 + // 00: 1 + // 01: 1 + // 10: 2 + // 11: 2.5 + +#define COMPRESSION_CTRL00 0x4400 // +#define COMPRESSION_CTRL01 0x4401 // +#define COMPRESSION_CTRL02 0x4402 // +#define COMPRESSION_CTRL03 0x4403 // +#define COMPRESSION_CTRL04 0x4404 // +#define COMPRESSION_CTRL05 0x4405 // +#define COMPRESSION_CTRL06 0x4406 // +#define COMPRESSION_CTRL07 0x3401 // Bit[5:0]: QS +#define COMPRESSION_ISI_CTRL 0x4408 // +#define COMPRESSION_CTRL09 0x4409 // +#define COMPRESSION_CTRL0a 0x440a // +#define COMPRESSION_CTRL0b 0x440b // +#define COMPRESSION_CTRL0c 0x440c // +#define COMPRESSION_CTRL0d 0x440d // +#define COMPRESSION_CTRL0E 0x440e // + +/** + * @brief register value + */ +#define TEST_COLOR_BAR 0x02 /* Enable Color Bar roling Test */ + +#define AEC_PK_MANUAL_AGC_MANUALEN 0x02 /* Enable AGC Manual enable */ +#define AEC_PK_MANUAL_AEC_MANUALEN 0x01 /* Enable AEC Manual enable */ + +#define TIMING_TC_REG20_VFLIP 0x01 /* Vertical flip enable */ +#define TIMING_TC_REG21_HMIRROR 0x02 /* Horizontal mirror enable */ + +#endif // __NT99141_REG_REGS_H__ diff --git a/code/components/esp32-camera-master/sensors/private_include/nt99141_settings.h b/code/components/esp32-camera-master/sensors/private_include/nt99141_settings.h new file mode 100644 index 000000000..1ffec2053 --- /dev/null +++ b/code/components/esp32-camera-master/sensors/private_include/nt99141_settings.h @@ -0,0 +1,825 @@ +#ifndef _NT99141_SETTINGS_H_ +#define _NT99141_SETTINGS_H_ + +#include +#include +#include "esp_attr.h" +#include "nt99141_regs.h" + +static const ratio_settings_t ratio_table[] = { + // mw, mh, sx, sy, ex, ey, ox, oy, tx, ty + { 1280, 720, 0, 4, 1283, 723, 0, 4, 1660, 963 }, + +}; + +#define REG_DLY 0xffff +#define REGLIST_TAIL 0x0000 + +static const DRAM_ATTR uint16_t sensor_default_regs[][2] = { + //initial +{0x3021, 0x00}, +{REG_DLY, 100}, // delay 100ms +{0x3109, 0x04}, +{0x3040, 0x04}, +{0x3041, 0x02}, +{0x3042, 0xFF}, +{0x3043, 0x08}, +{0x3052, 0xE0}, +{0x305F, 0x33}, +{0x3100, 0x07}, +{0x3106, 0x03}, +{0x3105, 0x01}, +{0x3108, 0x05}, +{0x3110, 0x22}, +{0x3111, 0x57}, +{0x3112, 0x22}, +{0x3113, 0x55}, +{0x3114, 0x05}, +{0x3135, 0x00}, +{0x32F0, 0x01}, +{0x3290, 0x01}, +{0x3291, 0x80}, +{0x3296, 0x01}, +{0x3297, 0x73}, +{0x3250, 0x80}, +{0x3251, 0x03}, +{0x3252, 0xFF}, +{0x3253, 0x00}, +{0x3254, 0x03}, +{0x3255, 0xFF}, +{0x3256, 0x00}, +{0x3257, 0x50}, +{0x3270, 0x00}, +{0x3271, 0x0C}, +{0x3272, 0x18}, +{0x3273, 0x32}, +{0x3274, 0x44}, +{0x3275, 0x54}, +{0x3276, 0x70}, +{0x3277, 0x88}, +{0x3278, 0x9D}, +{0x3279, 0xB0}, +{0x327A, 0xCF}, +{0x327B, 0xE2}, +{0x327C, 0xEF}, +{0x327D, 0xF7}, +{0x327E, 0xFF}, +{0x3302, 0x00}, +{0x3303, 0x40}, +{0x3304, 0x00}, +{0x3305, 0x96}, +{0x3306, 0x00}, +{0x3307, 0x29}, +{0x3308, 0x07}, +{0x3309, 0xBA}, +{0x330A, 0x06}, +{0x330B, 0xF5}, +{0x330C, 0x01}, +{0x330D, 0x51}, +{0x330E, 0x01}, +{0x330F, 0x30}, +{0x3310, 0x07}, +{0x3311, 0x16}, +{0x3312, 0x07}, +{0x3313, 0xBA}, +{0x3326, 0x02}, +{0x32F6, 0x0F}, +{0x32F9, 0x42}, +{0x32FA, 0x24}, +{0x3325, 0x4A}, +{0x3330, 0x00}, +{0x3331, 0x0A}, +{0x3332, 0xFF}, +{0x3338, 0x30}, +{0x3339, 0x84}, +{0x333A, 0x48}, +{0x333F, 0x07}, +{0x3360, 0x10}, +{0x3361, 0x18}, +{0x3362, 0x1f}, +{0x3363, 0x37}, +{0x3364, 0x80}, +{0x3365, 0x80}, +{0x3366, 0x68}, +{0x3367, 0x60}, +{0x3368, 0x30}, +{0x3369, 0x28}, +{0x336A, 0x20}, +{0x336B, 0x10}, +{0x336C, 0x00}, +{0x336D, 0x20}, +{0x336E, 0x1C}, +{0x336F, 0x18}, +{0x3370, 0x10}, +{0x3371, 0x38}, +{0x3372, 0x3C}, +{0x3373, 0x3F}, +{0x3374, 0x3F}, +{0x338A, 0x34}, +{0x338B, 0x7F}, +{0x338C, 0x10}, +{0x338D, 0x23}, +{0x338E, 0x7F}, +{0x338F, 0x14}, +{0x3375, 0x08}, +{0x3376, 0x0C}, +{0x3377, 0x18}, +{0x3378, 0x20}, +{0x3012, 0x02}, +{0x3013, 0xD0}, +{0x3025, 0x02}, //colorbar +{REGLIST_TAIL, 0x00}, // tail +}; + +static const DRAM_ATTR uint16_t sensor_fmt_jpeg[][2] = { + {0x32F0, 0x70}, // YUV422 + {REGLIST_TAIL, 0x00}, // tail +}; + +static const DRAM_ATTR uint16_t sensor_fmt_raw[][2] = { + {0x32F0, 0x50}, // RAW + {REGLIST_TAIL, 0x00}, // tail +}; + +static const DRAM_ATTR uint16_t sensor_fmt_grayscale[][2] = { + {0x32F1, 0x01}, + {REGLIST_TAIL, 0x00}, // tail +}; + +static const DRAM_ATTR uint16_t sensor_fmt_yuv422[][2] = { + {0x32F0, 0x00}, // YUV422 + {REGLIST_TAIL, 0x00}, // tail +}; + +static const DRAM_ATTR uint16_t sensor_fmt_rgb565[][2] = { + {0x32F0, 0x01}, // RGB + {REGLIST_TAIL, 0x00}, // tail +}; + +static const DRAM_ATTR uint8_t sensor_saturation_levels[9][1] = { + {0x60},//-4 + {0x68},//-3 + {0x70},//-2 + {0x78},//-1 + {0x80},//0 + {0x88},//+1 + {0x90},//+2 + {0x98},//+3 + {0xA0},//+4 +}; + +static const DRAM_ATTR uint8_t sensor_special_effects[7][4] = { + {0x00, 0x80, 0x80, 0x01},//Normal + {0x03, 0x80, 0x80, 0x01},//Negative + {0x01, 0x80, 0x80, 0x01},//Grayscale + {0x05, 0x2A, 0xF0, 0x01},//Red Tint + {0x05, 0x60, 0x20, 0x01},//Green Tint + {0x05, 0xF0, 0x80, 0x01},//Blue Tint + {0x02, 0x80, 0x80, 0x01},//Sepia + +}; + +// AE LEVEL +static const DRAM_ATTR uint16_t sensor_ae_level[][2] = { + +// 1. [AE_Target : 0x24] +// Set_Device_Format = FORMAT_16_8 +// SET_Device_Addr = 0x54 + {0x32B8, 0x29 }, + {0x32B9, 0x1F }, + {0x32BC, 0x24 }, + {0x32BD, 0x27 }, + {0x32BE, 0x21 }, +//------------------------------------------------------------------------ +// 2. [AE_Target : 0x28] +// Set_Device_Format = FORMAT_16_8 +// SET_Device_Addr = 0x54 + {0x32B8, 0x2D }, + {0x32B9, 0x23 }, + {0x32BC, 0x28 }, + {0x32BD, 0x2B }, + {0x32BE, 0x25 }, +//------------------------------------------------------------------------ +// 3. [AE_Target : 0x2C] +// Set_Device_Format = FORMAT_16_8 +// SET_Device_Addr = 0x54 + {0x32B8, 0x32 }, + {0x32B9, 0x26 }, + {0x32BC, 0x2C }, + {0x32BD, 0x2F }, + {0x32BE, 0x29 }, +//------------------------------------------------------------------------ +// 4, [AE_Target : 0x30] +// Set_Device_Format = FORMAT_16_8 +// SET_Device_Addr = 0x54 + {0x32B8, 0x36 }, + {0x32B9, 0x2A }, + {0x32BC, 0x30 }, + {0x32BD, 0x33 }, + {0x32BE, 0x2D }, +//------------------------------------------------------------------------ +// 5. [AE_Target : 0x34] +// Set_Device_Format = FORMAT_16_8 +// SET_Device_Addr = 0x54 + {0x32B8, 0x3B }, + {0x32B9, 0x2D }, + {0x32BC, 0x34 }, + {0x32BD, 0x38 }, + {0x32BE, 0x30 }, +//------------------------------------------------------------------------ +// 6. [AE_Target : 0x38] +// Set_Device_Format = FORMAT_16_8 +// SET_Device_Addr = 0x54 + {0x32B8, 0x3F }, + {0x32B9, 0x31 }, + {0x32BC, 0x38 }, + {0x32BD, 0x3C }, + {0x32BE, 0x34 }, +//------------------------------------------------------------------------ +// 7. [AE_Target : 0x3D] +// Set_Device_Format = FORMAT_16_8 +// SET_Device_Addr = 0x54 + {0x32B8, 0x44 }, + {0x32B9, 0x34 }, + {0x32BC, 0x3C }, + {0x32BD, 0x40 }, + {0x32BE, 0x38 }, +//------------------------------------------------------------------------ +// 8. [AE_Target : 0x40] +// Set_Device_Format = FORMAT_16_8 +// SET_Device_Addr = 0x54 + {0x32B8, 0x48 }, + {0x32B9, 0x38 }, + {0x32BC, 0x40 }, + {0x32BD, 0x44 }, + {0x32BE, 0x3C }, +//------------------------------------------------------------------------ +// 9. [AE_Target : 0x44] +// Set_Device_Format = FORMAT_16_8 +// SET_Device_Addr = 0x54 + {0x32B8, 0x4D }, + {0x32B9, 0x3B }, + {0x32BC, 0x44 }, + {0x32BD, 0x49 }, + {0x32BE, 0x3F }, +}; + +static const DRAM_ATTR uint16_t sensor_framesize_HD[][2] = { +//[JPEG_1280x720_8.18_8.18_Fps] +{0x3021, 0x00}, +{REG_DLY, 100}, // delay 100ms +{0x32BF, 0x60}, +{0x32C0, 0x5A}, +{0x32C1, 0x5A}, +{0x32C2, 0x5A}, +{0x32C3, 0x00}, +{0x32C4, 0x20}, +{0x32C5, 0x20}, +{0x32C6, 0x20}, +{0x32C7, 0x00}, +{0x32C8, 0x3C}, +{0x32C9, 0x5A}, +{0x32CA, 0x7A}, +{0x32CB, 0x7A}, +{0x32CC, 0x7A}, +{0x32CD, 0x7A}, +{0x32DB, 0x5E}, +{0x32F0, 0x70}, +{0x3400, 0x08}, +{0x3400, 0x00}, +{0x3401, 0x4E}, +{0x3404, 0x00}, +{0x3405, 0x00}, +{0x3410, 0x00}, +{0x3200, 0x3E}, +{0x3201, 0x0F}, +{0x3028, 0x0F}, +{0x3029, 0x00}, +{0x302A, 0x08}, +{0x3022, 0x24}, +{0x3023, 0x24}, +{0x3002, 0x00}, +{0x3003, 0x04}, +{0x3004, 0x00}, +{0x3005, 0x04}, +{0x3006, 0x05}, +{0x3007, 0x03}, +{0x3008, 0x02}, +{0x3009, 0xD3}, +{0x300A, 0x06}, +{0x300B, 0x7C}, +{0x300C, 0x02}, +{0x300D, 0xE0}, +{0x300E, 0x05}, +{0x300F, 0x00}, +{0x3010, 0x02}, +{0x3011, 0xD0}, +{0x32B8, 0x3F}, +{0x32B9, 0x31}, +{0x32BB, 0x87}, +{0x32BC, 0x38}, +{0x32BD, 0x3C}, +{0x32BE, 0x34}, +{0x3201, 0x3F}, +{0x3021, 0x06}, +{0x3025, 0x00}, //normal +{0x3400, 0x01}, +{0x3060, 0x01}, +{REGLIST_TAIL, 0x00}, // tail +}; + +static const DRAM_ATTR uint16_t sensor_framesize_VGA[][2] = { +//[JPEG_640x480_10.14_10.14_Fps] +{0x3021, 0x00}, +{REG_DLY, 100}, // delay 100ms +{0x32BF, 0x60}, +{0x32C0, 0x5A}, +{0x32C1, 0x5A}, +{0x32C2, 0x5A}, +{0x32C3, 0x00}, +{0x32C4, 0x20}, +{0x32C5, 0x20}, +{0x32C6, 0x20}, +{0x32C7, 0x00}, +{0x32C8, 0x4B}, +{0x32C9, 0x5A}, +{0x32CA, 0x7A}, +{0x32CB, 0x7A}, +{0x32CC, 0x7A}, +{0x32CD, 0x7A}, +{0x32DB, 0x62}, +{0x32F0, 0x70}, +{0x3400, 0x08}, +{0x3400, 0x00}, +{0x3401, 0x4E}, +{0x3404, 0x00}, +{0x3405, 0x00}, +{0x3410, 0x00}, +{0x32E0, 0x02}, +{0x32E1, 0x80}, +{0x32E2, 0x01}, +{0x32E3, 0xE0}, +{0x32E4, 0x00}, +{0x32E5, 0x80}, +{0x32E6, 0x00}, +{0x32E7, 0x80}, +{0x3200, 0x3E}, +{0x3201, 0x0F}, +{0x3028, 0x0F}, +{0x3029, 0x00}, +{0x302A, 0x08}, +{0x3022, 0x24}, +{0x3023, 0x24}, +{0x3002, 0x00}, +{0x3003, 0xA4}, +{0x3004, 0x00}, +{0x3005, 0x04}, +{0x3006, 0x04}, +{0x3007, 0x63}, +{0x3008, 0x02}, +{0x3009, 0xD3}, +{0x300A, 0x05}, +{0x300B, 0x3C}, +{0x300C, 0x02}, +{0x300D, 0xE0}, +{0x300E, 0x03}, +{0x300F, 0xC0}, +{0x3010, 0x02}, +{0x3011, 0xD0}, +{0x32B8, 0x3F}, +{0x32B9, 0x31}, +{0x32BB, 0x87}, +{0x32BC, 0x38}, +{0x32BD, 0x3C}, +{0x32BE, 0x34}, +{0x3201, 0x7F}, +{0x3021, 0x06}, +{0x3025, 0x00}, //normal +{0x3400, 0x01}, +{0x3060, 0x01}, +{REGLIST_TAIL, 0x00}, // tail +}; + +static const DRAM_ATTR uint16_t sensor_framesize_QVGA[][2] = { +//[JPEG_320x240_10.14_10.14_Fps] +{0x3021, 0x00}, +{REG_DLY, 100}, // delay 100ms +{0x32BF, 0x60}, +{0x32C0, 0x5A}, +{0x32C1, 0x5A}, +{0x32C2, 0x5A}, +{0x32C3, 0x00}, +{0x32C4, 0x20}, +{0x32C5, 0x20}, +{0x32C6, 0x20}, +{0x32C7, 0x00}, +{0x32C8, 0x4B}, +{0x32C9, 0x5A}, +{0x32CA, 0x7A}, +{0x32CB, 0x7A}, +{0x32CC, 0x7A}, +{0x32CD, 0x7A}, +{0x32DB, 0x62}, +{0x32F0, 0x70}, +{0x3400, 0x08}, +{0x3400, 0x00}, +{0x3401, 0x4E}, +{0x3404, 0x00}, +{0x3405, 0x00}, +{0x3410, 0x00}, +{0x32E0, 0x01}, +{0x32E1, 0x40}, +{0x32E2, 0x00}, +{0x32E3, 0xF0}, +{0x32E4, 0x02}, +{0x32E5, 0x02}, +{0x32E6, 0x02}, +{0x32E7, 0x03}, +{0x3200, 0x3E}, +{0x3201, 0x0F}, +{0x3028, 0x0F}, +{0x3029, 0x00}, +{0x302A, 0x08}, +{0x3022, 0x24}, +{0x3023, 0x24}, +{0x3002, 0x00}, +{0x3003, 0xA4}, +{0x3004, 0x00}, +{0x3005, 0x04}, +{0x3006, 0x04}, +{0x3007, 0x63}, +{0x3008, 0x02}, +{0x3009, 0xD3}, +{0x300A, 0x05}, +{0x300B, 0x3C}, +{0x300C, 0x02}, +{0x300D, 0xE0}, +{0x300E, 0x03}, +{0x300F, 0xC0}, +{0x3010, 0x02}, +{0x3011, 0xD0}, +{0x32B8, 0x3F}, +{0x32B9, 0x31}, +{0x32BB, 0x87}, +{0x32BC, 0x38}, +{0x32BD, 0x3C}, +{0x32BE, 0x34}, +{0x3201, 0x7F}, +{0x3021, 0x06}, +{0x3025, 0x00}, //normal +{0x3400, 0x01}, +{0x3060, 0x01}, +{REGLIST_TAIL, 0x00}, // tail +}; + +static const DRAM_ATTR uint16_t sensor_framesize_VGA_xyskip[][2] = { +// [JPEG_640x360_20.00_25.01_Fps_XY_Skip] +// Set_Device_Format = FORMAT_16_8 +// SET_Device_Addr = 0x54 +{0x3021, 0x00}, +{REG_DLY, 100}, // delay 100ms +{0x32BF, 0x60 }, +{0x320A, 0xB2 }, +{0x32C0, 0x64 }, +{0x32C1, 0x64 }, +{0x32C2, 0x64 }, +{0x32C3, 0x00 }, +{0x32C4, 0x20 }, +{0x32C5, 0x20 }, +{0x32C6, 0x20 }, +{0x32C7, 0x00 }, +{0x32C8, 0x62 }, +{0x32C9, 0x64 }, +{0x32CA, 0x84 }, +{0x32CB, 0x84 }, +{0x32CC, 0x84 }, +{0x32CD, 0x84 }, +{0x32DB, 0x68 }, +{0x32F0, 0x70 }, +{0x3400, 0x08 }, +{0x3400, 0x00 }, +{0x3401, 0x4E }, +{0x3404, 0x00 }, +{0x3405, 0x00 }, +{0x3410, 0x00 }, +{0x3200, 0x3E }, +{0x3201, 0x0F }, +{0x3028, 0x0F }, +{0x3029, 0x00 }, +{0x302A, 0x08 }, +{0x3022, 0x24 }, +{0x3023, 0x6C }, +{0x3002, 0x00 }, +{0x3003, 0x04 }, +{0x3004, 0x00 }, +{0x3005, 0x04 }, +{0x3006, 0x05 }, +{0x3007, 0x03 }, +{0x3008, 0x02 }, +{0x3009, 0xD3 }, +{0x300A, 0x03 }, +{0x300B, 0xFC }, +{0x300C, 0x01 }, +{0x300D, 0x88 }, +{0x300E, 0x02 }, +{0x300F, 0x80 }, +{0x3010, 0x01 }, +{0x3011, 0x68 }, +{0x32B8, 0x3F }, +{0x32B9, 0x31 }, +{0x32BB, 0x87 }, +{0x32BC, 0x38 }, +{0x32BD, 0x3C }, +{0x32BE, 0x34 }, +{0x3201, 0x3F }, +{0x3025, 0x00 }, //normal +{0x3021, 0x06 }, +{0x3400, 0x01 }, +{0x3060, 0x01 }, +{REGLIST_TAIL, 0x00}, // tail +}; + +static const DRAM_ATTR uint16_t sensor_framesize_VGA_xskip[][2] = { +//[JPEG_640x480_Xskip_13.32_13.32_Fps] +{0x3021, 0x00}, +{REG_DLY, 100}, // delay 100ms +{0x32BF, 0x60}, +{0x32C0, 0x5A}, +{0x32C1, 0x5A}, +{0x32C2, 0x5A}, +{0x32C3, 0x00}, +{0x32C4, 0x20}, +{0x32C5, 0x20}, +{0x32C6, 0x20}, +{0x32C7, 0x00}, +{0x32C8, 0x62}, +{0x32C9, 0x5A}, +{0x32CA, 0x7A}, +{0x32CB, 0x7A}, +{0x32CC, 0x7A}, +{0x32CD, 0x7A}, +{0x32DB, 0x68}, +{0x32F0, 0x70}, +{0x3400, 0x08}, +{0x3400, 0x00}, +{0x3401, 0x4E}, +{0x3404, 0x00}, +{0x3405, 0x00}, +{0x3410, 0x00}, +{0x32E0, 0x02}, +{0x32E1, 0x80}, +{0x32E2, 0x01}, +{0x32E3, 0xE0}, +{0x32E4, 0x00}, +{0x32E5, 0x00}, +{0x32E6, 0x00}, +{0x32E7, 0x80}, +{0x3200, 0x3E}, +{0x3201, 0x0F}, +{0x3028, 0x0F}, +{0x3029, 0x00}, +{0x302A, 0x08}, +{0x3022, 0x24}, +{0x3023, 0x2C}, +{0x3002, 0x00}, +{0x3003, 0x04}, +{0x3004, 0x00}, +{0x3005, 0x04}, +{0x3006, 0x05}, +{0x3007, 0x03}, +{0x3008, 0x02}, +{0x3009, 0xD3}, +{0x300A, 0x03}, +{0x300B, 0xFC}, +{0x300C, 0x02}, +{0x300D, 0xE0}, +{0x300E, 0x02}, +{0x300F, 0x80}, +{0x3010, 0x02}, +{0x3011, 0xD0}, +{0x32B8, 0x3F}, +{0x32B9, 0x31}, +{0x32BB, 0x87}, +{0x32BC, 0x38}, +{0x32BD, 0x3C}, +{0x32BE, 0x34}, +{0x3201, 0x7F}, +{0x3021, 0x06}, +{0x3025, 0x00}, //normal +{0x3400, 0x01}, +{0x3060, 0x01}, +{REGLIST_TAIL, 0x00}, // tail +}; + +static const DRAM_ATTR uint16_t sensor_framesize_QVGA_xskip[][2] = { +{0x3021, 0x00}, +{REG_DLY, 100}, // delay 100ms +//[JPEG_320x240_Xskip_13.32_13.32_Fps] +{0x32BF, 0x60}, +{0x32C0, 0x5A}, +{0x32C1, 0x5A}, +{0x32C2, 0x5A}, +{0x32C3, 0x00}, +{0x32C4, 0x20}, +{0x32C5, 0x20}, +{0x32C6, 0x20}, +{0x32C7, 0x00}, +{0x32C8, 0x62}, +{0x32C9, 0x5A}, +{0x32CA, 0x7A}, +{0x32CB, 0x7A}, +{0x32CC, 0x7A}, +{0x32CD, 0x7A}, +{0x32DB, 0x68}, +{0x32F0, 0x70}, +{0x3400, 0x08}, +{0x3400, 0x00}, +{0x3401, 0x4E}, +{0x3404, 0x00}, +{0x3405, 0x00}, +{0x3410, 0x00}, +{0x32E0, 0x01}, +{0x32E1, 0x40}, +{0x32E2, 0x00}, +{0x32E3, 0xF0}, +{0x32E4, 0x01}, +{0x32E5, 0x01}, +{0x32E6, 0x02}, +{0x32E7, 0x03}, +{0x3200, 0x3E}, +{0x3201, 0x0F}, +{0x3028, 0x0F}, +{0x3029, 0x00}, +{0x302A, 0x08}, +{0x3022, 0x24}, +{0x3023, 0x2C}, +{0x3002, 0x00}, +{0x3003, 0x04}, +{0x3004, 0x00}, +{0x3005, 0x04}, +{0x3006, 0x05}, +{0x3007, 0x03}, +{0x3008, 0x02}, +{0x3009, 0xD3}, +{0x300A, 0x03}, +{0x300B, 0xFC}, +{0x300C, 0x02}, +{0x300D, 0xE0}, +{0x300E, 0x02}, +{0x300F, 0x80}, +{0x3010, 0x02}, +{0x3011, 0xD0}, +{0x32B8, 0x3F}, +{0x32B9, 0x31}, +{0x32BB, 0x87}, +{0x32BC, 0x38}, +{0x32BD, 0x3C}, +{0x32BE, 0x34}, +{0x3201, 0x7F}, +{0x3021, 0x06}, +{0x3025, 0x00}, //normal +{0x3400, 0x01}, +{0x3060, 0x01}, +{REGLIST_TAIL, 0x00}, // tail +}; + + +static const DRAM_ATTR uint16_t sensor_framesize_VGA_crop[][2] = { +//[JPEG_640x480_Crop_19.77_19.77_Fps] +{0x3021, 0x00}, +{REG_DLY, 100}, // delay 100ms +{0x32BF, 0x60}, +{0x32C0, 0x5A}, +{0x32C1, 0x5A}, +{0x32C2, 0x5A}, +{0x32C3, 0x00}, +{0x32C4, 0x20}, +{0x32C5, 0x20}, +{0x32C6, 0x20}, +{0x32C7, 0x00}, +{0x32C8, 0x62}, +{0x32C9, 0x5A}, +{0x32CA, 0x7A}, +{0x32CB, 0x7A}, +{0x32CC, 0x7A}, +{0x32CD, 0x7A}, +{0x32DB, 0x68}, +{0x32F0, 0x70}, +{0x3400, 0x08}, +{0x3400, 0x00}, +{0x3401, 0x4E}, +{0x3404, 0x00}, +{0x3405, 0x00}, +{0x3410, 0x00}, +{0x3200, 0x3E}, +{0x3201, 0x0F}, +{0x3028, 0x0F}, +{0x3029, 0x00}, +{0x302A, 0x08}, +{0x3022, 0x24}, +{0x3023, 0x24}, +{0x3002, 0x01}, +{0x3003, 0x44}, +{0x3004, 0x00}, +{0x3005, 0x7C}, +{0x3006, 0x03}, +{0x3007, 0xC3}, +{0x3008, 0x02}, +{0x3009, 0x5B}, +{0x300A, 0x03}, +{0x300B, 0xFC}, +{0x300C, 0x01}, +{0x300D, 0xF0}, +{0x300E, 0x02}, +{0x300F, 0x80}, +{0x3010, 0x01}, +{0x3011, 0xE0}, +{0x32B8, 0x3F}, +{0x32B9, 0x31}, +{0x32BB, 0x87}, +{0x32BC, 0x38}, +{0x32BD, 0x3C}, +{0x32BE, 0x34}, +{0x3201, 0x3F}, +{0x3021, 0x06}, +{0x3025, 0x00}, //normal +{0x3400, 0x01}, +{0x3060, 0x01}, +{REGLIST_TAIL, 0x00}, // tail +}; + +static const DRAM_ATTR uint16_t sensor_framesize_QVGA_crop[][2] = { +//[JPEG_320x240_Crop_19.77_19.77_Fps] +{0x3021, 0x00}, +{REG_DLY, 100}, // delay 100ms +{0x32BF, 0x60}, +{0x32C0, 0x5A}, +{0x32C1, 0x5A}, +{0x32C2, 0x5A}, +{0x32C3, 0x00}, +{0x32C4, 0x20}, +{0x32C5, 0x20}, +{0x32C6, 0x20}, +{0x32C7, 0x00}, +{0x32C8, 0x62}, +{0x32C9, 0x5A}, +{0x32CA, 0x7A}, +{0x32CB, 0x7A}, +{0x32CC, 0x7A}, +{0x32CD, 0x7A}, +{0x32DB, 0x68}, +{0x32F0, 0x70}, +{0x3400, 0x08}, +{0x3400, 0x00}, +{0x3401, 0x4E}, +{0x3404, 0x00}, +{0x3405, 0x00}, +{0x3410, 0x00}, +{0x32E0, 0x01}, +{0x32E1, 0x40}, +{0x32E2, 0x00}, +{0x32E3, 0xF0}, +{0x32E4, 0x01}, +{0x32E5, 0x01}, +{0x32E6, 0x01}, +{0x32E7, 0x02}, +{0x3200, 0x3E}, +{0x3201, 0x0F}, +{0x3028, 0x0F}, +{0x3029, 0x00}, +{0x302A, 0x08}, +{0x3022, 0x24}, +{0x3023, 0x24}, +{0x3002, 0x01}, +{0x3003, 0x44}, +{0x3004, 0x00}, +{0x3005, 0x7C}, +{0x3006, 0x03}, +{0x3007, 0xC3}, +{0x3008, 0x02}, +{0x3009, 0x5B}, +{0x300A, 0x03}, +{0x300B, 0xFC}, +{0x300C, 0x01}, +{0x300D, 0xF0}, +{0x300E, 0x02}, +{0x300F, 0x80}, +{0x3010, 0x01}, +{0x3011, 0xE0}, +{0x32B8, 0x3F}, +{0x32B9, 0x31}, +{0x32BB, 0x87}, +{0x32BC, 0x38}, +{0x32BD, 0x3C}, +{0x32BE, 0x34}, +{0x3201, 0x7F}, +{0x3021, 0x06}, +{0x3025, 0x00}, //normal +{0x3400, 0x01}, +{0x3060, 0x01}, +{REGLIST_TAIL, 0x00}, // tail +}; + +#endif + + diff --git a/code/lib/sensors/ov2640.h b/code/components/esp32-camera-master/sensors/private_include/ov2640.h similarity index 100% rename from code/lib/sensors/ov2640.h rename to code/components/esp32-camera-master/sensors/private_include/ov2640.h diff --git a/code/lib/sensors/ov2640_regs.h b/code/components/esp32-camera-master/sensors/private_include/ov2640_regs.h similarity index 100% rename from code/lib/sensors/ov2640_regs.h rename to code/components/esp32-camera-master/sensors/private_include/ov2640_regs.h diff --git a/code/lib/sensors/ov2640_settings.h b/code/components/esp32-camera-master/sensors/private_include/ov2640_settings.h similarity index 100% rename from code/lib/sensors/ov2640_settings.h rename to code/components/esp32-camera-master/sensors/private_include/ov2640_settings.h diff --git a/code/lib/sensors/ov3660.h b/code/components/esp32-camera-master/sensors/private_include/ov3660.h similarity index 100% rename from code/lib/sensors/ov3660.h rename to code/components/esp32-camera-master/sensors/private_include/ov3660.h diff --git a/code/lib/sensors/ov3660_regs.h b/code/components/esp32-camera-master/sensors/private_include/ov3660_regs.h similarity index 100% rename from code/lib/sensors/ov3660_regs.h rename to code/components/esp32-camera-master/sensors/private_include/ov3660_regs.h diff --git a/code/lib/sensors/ov3660_settings.h b/code/components/esp32-camera-master/sensors/private_include/ov3660_settings.h similarity index 100% rename from code/lib/sensors/ov3660_settings.h rename to code/components/esp32-camera-master/sensors/private_include/ov3660_settings.h diff --git a/code/lib/sensors/ov5640.h b/code/components/esp32-camera-master/sensors/private_include/ov5640.h similarity index 100% rename from code/lib/sensors/ov5640.h rename to code/components/esp32-camera-master/sensors/private_include/ov5640.h diff --git a/code/lib/sensors/ov5640_regs.h b/code/components/esp32-camera-master/sensors/private_include/ov5640_regs.h similarity index 100% rename from code/lib/sensors/ov5640_regs.h rename to code/components/esp32-camera-master/sensors/private_include/ov5640_regs.h diff --git a/code/lib/sensors/ov5640_settings.h b/code/components/esp32-camera-master/sensors/private_include/ov5640_settings.h similarity index 100% rename from code/lib/sensors/ov5640_settings.h rename to code/components/esp32-camera-master/sensors/private_include/ov5640_settings.h diff --git a/code/components/esp32-camera-master/sensors/private_include/ov7670.h b/code/components/esp32-camera-master/sensors/private_include/ov7670.h new file mode 100644 index 000000000..cdf845cf1 --- /dev/null +++ b/code/components/esp32-camera-master/sensors/private_include/ov7670.h @@ -0,0 +1,14 @@ +/* + * This file is part of the OpenMV project. + * author: Juan Schiavoni + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * OV7670 driver. + * + */ +#ifndef __OV7670_H__ +#define __OV7670_H__ +#include "sensor.h" + +int ov7670_init(sensor_t *sensor); +#endif // __OV7670_H__ diff --git a/code/components/esp32-camera-master/sensors/private_include/ov7670_regs.h b/code/components/esp32-camera-master/sensors/private_include/ov7670_regs.h new file mode 100644 index 000000000..699354877 --- /dev/null +++ b/code/components/esp32-camera-master/sensors/private_include/ov7670_regs.h @@ -0,0 +1,354 @@ +/* + * This file is for the OpenMV project so the OV7670 can be used + * author: Juan Schiavoni + * + * OV7670 register definitions. + */ +#ifndef __OV7670_REG_REGS_H__ +#define __OV7670_REG_REGS_H__ +#define GAIN 0x00 /* AGC – Gain control gain setting */ +#define BLUE 0x01 /* AWB – Blue channel gain setting */ +#define RED 0x02 /* AWB – Red channel gain setting */ +#define VREF 0x03 /* AWB – Green channel gain setting */ +#define COM1 0x04 /* Common Control 1 */ +#define BAVG 0x05 /* U/B Average Level */ +#define GAVG 0x06 /* Y/Gb Average Level */ +#define AECH 0x07 /* Exposure VAlue - AEC MSB 5 bits */ +#define RAVG 0x08 /* V/R Average Level */ + +#define COM2 0x09 /* Common Control 2 */ +#define COM2_SOFT_SLEEP 0x10 /* Soft sleep mode */ +#define COM2_OUT_DRIVE_1x 0x00 /* Output drive capability 1x */ +#define COM2_OUT_DRIVE_2x 0x01 /* Output drive capability 2x */ +#define COM2_OUT_DRIVE_3x 0x02 /* Output drive capability 3x */ +#define COM2_OUT_DRIVE_4x 0x03 /* Output drive capability 4x */ + +#define REG_PID 0x0A /* Product ID Number MSB */ +#define REG_VER 0x0B /* Product ID Number LSB */ + +#define COM3 0x0C /* Common Control 3 */ +#define COM3_SWAP_OUT 0x40 /* Output data MSB/LSB swap */ +#define COM3_TRI_CLK 0x20 /* Tri-state output clock */ +#define COM3_TRI_DATA 0x10 /* Tri-state option output */ +#define COM3_SCALE_EN 0x08 /* Scale enable */ +#define COM3_DCW 0x04 /* DCW enable */ + +#define COM4 0x0D /* Common Control 4 */ +#define COM4_PLL_BYPASS 0x00 /* Bypass PLL */ +#define COM4_PLL_4x 0x40 /* PLL frequency 4x */ +#define COM4_PLL_6x 0x80 /* PLL frequency 6x */ +#define COM4_PLL_8x 0xc0 /* PLL frequency 8x */ +#define COM4_AEC_FULL 0x00 /* AEC evaluate full window */ +#define COM4_AEC_1_2 0x10 /* AEC evaluate 1/2 window */ +#define COM4_AEC_1_4 0x20 /* AEC evaluate 1/4 window */ +#define COM4_AEC_2_3 0x30 /* AEC evaluate 2/3 window */ + +#define COM5 0x0E /* Common Control 5 */ +#define COM5_AFR 0x80 /* Auto frame rate control ON/OFF selection (night mode) */ +#define COM5_AFR_SPEED 0x40 /* Auto frame rate control speed selection */ +#define COM5_AFR_0 0x00 /* No reduction of frame rate */ +#define COM5_AFR_1_2 0x10 /* Max reduction to 1/2 frame rate */ +#define COM5_AFR_1_4 0x20 /* Max reduction to 1/4 frame rate */ +#define COM5_AFR_1_8 0x30 /* Max reduction to 1/8 frame rate */ +#define COM5_AFR_4x 0x04 /* Add frame when AGC reaches 4x gain */ +#define COM5_AFR_8x 0x08 /* Add frame when AGC reaches 8x gain */ +#define COM5_AFR_16x 0x0c /* Add frame when AGC reaches 16x gain */ +#define COM5_AEC_NO_LIMIT 0x01 /* No limit to AEC increase step */ + +#define COM6 0x0F /* Common Control 6 */ +#define COM6_AUTO_WINDOW 0x01 /* Auto window setting ON/OFF selection when format changes */ + +#define AEC 0x10 /* AEC[7:0] (see register AECH for AEC[15:8]) */ +#define CLKRC 0x11 /* Internal Clock */ + +#define COM7 0x12 /* Common Control 7 */ +#define COM7_RESET 0x80 /* SCCB Register Reset */ +#define COM7_RES_VGA 0x00 /* Resolution VGA */ +#define COM7_RES_QVGA 0x40 /* Resolution QVGA */ +#define COM7_BT656 0x20 /* BT.656 protocol ON/OFF */ +#define COM7_SENSOR_RAW 0x10 /* Sensor RAW */ +#define COM7_FMT_GBR422 0x00 /* RGB output format GBR422 */ +#define COM7_FMT_RGB565 0x04 /* RGB output format RGB565 */ +#define COM7_FMT_RGB555 0x08 /* RGB output format RGB555 */ +#define COM7_FMT_RGB444 0x0C /* RGB output format RGB444 */ +#define COM7_FMT_YUV 0x00 /* Output format YUV */ +#define COM7_FMT_P_BAYER 0x01 /* Output format Processed Bayer RAW */ +#define COM7_FMT_RGB 0x04 /* Output format RGB */ +#define COM7_FMT_R_BAYER 0x03 /* Output format Bayer RAW */ +#define COM7_SET_FMT(r, x) ((r&0xFC)|((x&0x5)<<0)) + +#define COM8 0x13 /* Common Control 8 */ +#define COM8_FAST_AUTO 0x80 /* Enable fast AGC/AEC algorithm */ +#define COM8_STEP_VSYNC 0x00 /* AEC - Step size limited to vertical blank */ +#define COM8_STEP_UNLIMIT 0x40 /* AEC - Step size unlimited step size */ +#define COM8_BANDF_EN 0x20 /* Banding filter ON/OFF */ +#define COM8_AEC_BANDF 0x10 /* Enable AEC below banding value */ +#define COM8_AEC_FINE_EN 0x08 /* Fine AEC ON/OFF control */ +#define COM8_AGC_EN 0x04 /* AGC Enable */ +#define COM8_AWB_EN 0x02 /* AWB Enable */ +#define COM8_AEC_EN 0x01 /* AEC Enable */ +#define COM8_SET_AGC(r, x) ((r&0xFB)|((x&0x1)<<2)) +#define COM8_SET_AWB(r, x) ((r&0xFD)|((x&0x1)<<1)) +#define COM8_SET_AEC(r, x) ((r&0xFE)|((x&0x1)<<0)) + +#define COM9 0x14 /* Common Control 9 */ +#define COM9_HISTO_AVG 0x80 /* Histogram or average based AEC/AGC selection */ +#define COM9_AGC_GAIN_2x 0x00 /* Automatic Gain Ceiling 2x */ +#define COM9_AGC_GAIN_4x 0x10 /* Automatic Gain Ceiling 4x */ +#define COM9_AGC_GAIN_8x 0x20 /* Automatic Gain Ceiling 8x */ +#define COM9_AGC_GAIN_16x 0x30 /* Automatic Gain Ceiling 16x */ +#define COM9_AGC_GAIN_32x 0x40 /* Automatic Gain Ceiling 32x */ +#define COM9_DROP_VSYNC 0x04 /* Drop VSYNC output of corrupt frame */ +#define COM9_DROP_HREF 0x02 /* Drop HREF output of corrupt frame */ +#define COM9_SET_AGC(r, x) ((r&0x8F)|((x&0x07)<<4)) + +#define COM10 0x15 /* Common Control 10 */ +#define COM10_NEGATIVE 0x80 /* Output negative data */ +#define COM10_HSYNC_EN 0x40 /* HREF changes to HSYNC */ +#define COM10_PCLK_FREE 0x00 /* PCLK output option: free running PCLK */ +#define COM10_PCLK_MASK 0x20 /* PCLK output option: masked during horizontal blank */ +#define COM10_PCLK_REV 0x10 /* PCLK reverse */ +#define COM10_HREF_REV 0x08 /* HREF reverse */ +#define COM10_VSYNC_FALLING 0x00 /* VSYNC changes on falling edge of PCLK */ +#define COM10_VSYNC_RISING 0x04 /* VSYNC changes on rising edge of PCLK */ +#define COM10_VSYNC_NEG 0x02 /* VSYNC negative */ +#define COM10_OUT_RANGE_8 0x01 /* Output data range: Full range */ +#define COM10_OUT_RANGE_10 0x00 /* Output data range: Data from [10] to [F0] (8 MSBs) */ + +#define RSVD_16 0x16 /* Reserved register */ + +#define HSTART 0x17 /* Horizontal Frame (HREF column) Start high 8-bit(low 3 bits are at HREF[2:0]) */ +#define HSTOP 0x18 /* Horizontal Frame (HREF column) end high 8-bit (low 3 bits are at HREF[5:3]) */ +#define VSTART 0x19 /* Vertical Frame (row) Start high 8-bit (low 2 bits are at VREF[1:0]) */ +#define VSTOP 0x1A /* Vertical Frame (row) End high 8-bit (low 2 bits are at VREF[3:2]) */ +#define PSHFT 0x1B /* Data Format - Pixel Delay Select */ +#define REG_MIDH 0x1C /* Manufacturer ID Byte – High */ +#define REG_MIDL 0x1D /* Manufacturer ID Byte – Low */ + +#define MVFP 0x1E /* Mirror/Vflip Enable */ +#define MVFP_MIRROR 0x20 /* Mirror image */ +#define MVFP_FLIP 0x10 /* Vertical flip */ +#define MVFP_SUN 0x02 /* Black sun enable */ +#define MVFP_SET_MIRROR(r,x) ((r&0xDF)|((x&1)<<5)) /* change only bit5 according to x */ +#define MVFP_SET_FLIP(r,x) ((r&0xEF)|((x&1)<<4)) /* change only bit4 according to x */ + +#define LAEC 0x1F /* Fine AEC Value - defines exposure value less than one row period (Reserved?) */ +#define ADCCTR0 0x20 /* ADC control */ +#define ADCCTR1 0x21 /* reserved */ +#define ADCCTR2 0x22 /* reserved */ +#define ADCCTR3 0x23 /* reserved */ +#define AEW 0x24 /* AGC/AEC - Stable Operating Region (Upper Limit) */ +#define AEB 0x25 /* AGC/AEC - Stable Operating Region (Lower Limit) */ +#define VPT 0x26 /* AGC/AEC Fast Mode Operating Region */ +#define BBIAS 0x27 /* B channel signal output bias (effective only when COM6[3]=1) */ +#define GbBIAS 0x28 /* Gb channel signal output bias (effective only when COM6[3]=1) */ +#define RSVD_29 0x29 /* reserved */ +#define EXHCH 0x2A /* Dummy Pixel Insert MSB */ +#define EXHCL 0x2B /* Dummy Pixel Insert LSB */ +#define RBIAS 0x2C /* R channel signal output bias (effective only when COM6[3]=1) */ +#define ADVFL 0x2D /* LSB of Insert Dummy Rows in Vertical Sync (1 bit equals 1 row) */ +#define ADVFH 0x2E /* MSB of Insert Dummy Rows in Vertical Sync */ +#define YAVE 0x2F /* Y/G Channel Average Value */ +#define HSYST 0x30 /* HSync rising edge delay */ +#define HSYEN 0x31 /* HSync falling edge delay */ +#define HREF 0x32 /* Image Start and Size Control DIFFERENT CONTROL SEQUENCE */ +#define CHLF 0x33 /* Array Current control */ +#define ARBLM 0x34 /* Array reference control */ +#define RSVD_35 0x35 /* Reserved */ +#define RSVD_36 0x36 /* Reserved */ +#define ADC 0x37 /* ADC control */ +#define ACOM 0x38 /* ADC and analog common mode control */ +#define OFON 0x39 /* ADC offset control */ +#define TSLB 0x3A /* Line buffer test option */ + +#define COM11 0x3B /* Common control 11 */ +#define COM11_EXP 0x02 +#define COM11_HZAUTO 0x10 /* Auto detect 50/60 Hz */ + +#define COM12 0x3C /* Common control 12 */ + +#define COM13 0x3D /* Common control 13 */ +#define COM13_GAMMA 0x80 /* Gamma enable */ +#define COM13_UVSAT 0x40 /* UV saturation auto adjustment */ + +#define COM14 0x3E /* Common Control 14 */ + +#define EDGE 0x3F /* edge enhancement adjustment */ +#define COM15 0x40 /* Common Control 15 DIFFERENT CONTROLS */ +#define COM15_SET_RGB565(r,x) ((r&0xEF)|((x&1)<<4)) /* set rgb565 mode */ +#define COM15_RGB565 0x10 /* RGB565 output */ +#define COM15_R00FF 0xC0 /* Output range: [00] to [FF] */ + +#define COM16 0x41 /* Common Control 16 DIFFERENT CONTROLS */ +#define COM16_AWBGAIN 0x08 /* AWB gain enable */ +#define COM17 0x42 /* Common Control 17 */ + +#define AWBC1 0x43 /* Reserved */ +#define AWBC2 0x44 /* Reserved */ +#define AWBC3 0x45 /* Reserved */ +#define AWBC4 0x46 /* Reserved */ +#define AWBC5 0x47 /* Reserved */ +#define AWBC6 0x48 /* Reserved */ + +#define RSVD_49 0x49 /* Reserved */ +#define RSVD_4A 0x4A /* Reserved */ + +#define REG4B 0x4B /* Register 4B */ +#define DNSTH 0x4C /* Denoise strength */ + +#define RSVD_4D 0x4D /* Reserved */ +#define RSVD_4E 0x4E /* Reserved */ + +#define MTX1 0x4F /* Matrix coefficient 1 */ +#define MTX2 0x50 /* Matrix coefficient 2 */ +#define MTX3 0x51 /* Matrix coefficient 3 */ +#define MTX4 0x52 /* Matrix coefficient 4 */ +#define MTX5 0x53 /* Matrix coefficient 5 */ +#define MTX6 0x54 /* Matrix coefficient 6 */ +#define BRIGHTNESS 0x55 /* Brightness control */ +#define CONTRAST 0x56 /* Contrast control */ +#define CONTRASCENTER 0x57 /* Contrast center */ +#define MTXS 0x58 /* Matrix coefficient sign for coefficient 5 to 0*/ + +#define RSVD_59 0x59 /* Reserved */ +#define RSVD_5A 0x5A /* Reserved */ +#define RSVD_5B 0x5B /* Reserved */ +#define RSVD_5C 0x5C /* Reserved */ +#define RSVD_5D 0x5D /* Reserved */ +#define RSVD_5E 0x5E /* Reserved */ +#define RSVD_5F 0x5F /* Reserved */ +#define RSVD_60 0x60 /* Reserved */ +#define RSVD_61 0x61 /* Reserved */ + +#define LCC1 0x62 /* Lens correction option 1 */ + +#define LCC2 0x63 /* Lens correction option 2 */ +#define LCC3 0x64 /* Lens correction option 3 */ +#define LCC4 0x65 /* Lens correction option 4 */ +#define LCC5 0x66 /* Lens correction option 5 */ + +#define MANU 0x67 /* Manual U Value */ +#define MANV 0x68 /* Manual V Value */ +#define GFIX 0x69 /* Fix gain control */ +#define GGAIN 0x6A /* G channel AWB gain */ + +#define DBLV 0x6B /* PLL and clock ? */ + +#define AWBCTR3 0x6C /* AWB Control 3 */ +#define AWBCTR2 0x6D /* AWB Control 2 */ +#define AWBCTR1 0x6E /* AWB Control 1 */ +#define AWBCTR0 0x6F /* AWB Control 0 */ +#define SCALING_XSC 0x70 /* test pattern and horizontal scaling factor */ +#define SCALING_XSC_CBAR(r) (r&0x7F) /* make sure bit7 is 0 for color bar */ +#define SCALING_YSC 0x71 /* test pattern and vertical scaling factor */ +#define SCALING_YSC_CBAR(r,x) ((r&0x7F)|((x&1)<<7)) /* change bit7 for color bar on/off */ +#define SCALING_DCWCTR 0x72 /* DCW control */ +#define SCALING_PCLK_DIV 0x73 /* */ +#define REG74 0x74 /* */ +#define REG75 0x75 /* */ +#define REG76 0x76 /* */ +#define REG77 0x77 /* */ + +#define RSVD_78 0x78 /* Reserved */ +#define RSVD_79 0x79 /* Reserved */ + +#define SLOP 0x7A /* Gamma curve highest segment slope */ +#define GAM1 0x7B /* Gamma Curve 1st Segment Input End Point 0x04 Output Value */ +#define GAM2 0x7C /* Gamma Curve 2nd Segment Input End Point 0x08 Output Value */ +#define GAM3 0x7D /* Gamma Curve 3rd Segment Input End Point 0x10 Output Value */ +#define GAM4 0x7E /* Gamma Curve 4th Segment Input End Point 0x20 Output Value */ +#define GAM5 0x7F /* Gamma Curve 5th Segment Input End Point 0x28 Output Value */ +#define GAM6 0x80 /* Gamma Curve 6rd Segment Input End Point 0x30 Output Value */ +#define GAM7 0x81 /* Gamma Curve 7th Segment Input End Point 0x38 Output Value */ +#define GAM8 0x82 /* Gamma Curve 8th Segment Input End Point 0x40 Output Value */ +#define GAM9 0x83 /* Gamma Curve 9th Segment Input End Point 0x48 Output Value */ +#define GAM10 0x84 /* Gamma Curve 10th Segment Input End Point 0x50 Output Value */ +#define GAM11 0x85 /* Gamma Curve 11th Segment Input End Point 0x60 Output Value */ +#define GAM12 0x86 /* Gamma Curve 12th Segment Input End Point 0x70 Output Value */ +#define GAM13 0x87 /* Gamma Curve 13th Segment Input End Point 0x90 Output Value */ +#define GAM14 0x88 /* Gamma Curve 14th Segment Input End Point 0xB0 Output Value */ +#define GAM15 0x89 /* Gamma Curve 15th Segment Input End Point 0xD0 Output Value */ + +#define RSVD_8A 0x8A /* Reserved */ +#define RSVD_8B 0x8B /* Reserved */ + +#define RGB444 0x8C /* */ + +#define RSVD_8D 0x8D /* Reserved */ +#define RSVD_8E 0x8E /* Reserved */ +#define RSVD_8F 0x8F /* Reserved */ +#define RSVD_90 0x90 /* Reserved */ +#define RSVD_91 0x91 /* Reserved */ + +#define DM_LNL 0x92 /* Dummy line low 8 bit */ +#define DM_LNH 0x93 /* Dummy line high 8 bit */ +#define LCC6 0x94 /* Lens correction option 6 */ +#define LCC7 0x95 /* Lens correction option 7 */ + +#define RSVD_96 0x96 /* Reserved */ +#define RSVD_97 0x97 /* Reserved */ +#define RSVD_98 0x98 /* Reserved */ +#define RSVD_99 0x99 /* Reserved */ +#define RSVD_9A 0x9A /* Reserved */ +#define RSVD_9B 0x9B /* Reserved */ +#define RSVD_9C 0x9C /* Reserved */ + +#define BD50ST 0x9D /* 50 Hz banding filter value */ +#define BD60ST 0x9E /* 60 Hz banding filter value */ +#define HAECC1 0x9F /* Histogram-based AEC/AGC control 1 */ +#define HAECC2 0xA0 /* Histogram-based AEC/AGC control 2 */ + +#define RSVD_A1 0xA1 /* Reserved */ + +#define SCALING_PCLK_DELAY 0xA2 /* Pixel clock delay */ + +#define RSVD_A3 0xA3 /* Reserved */ + +#define NT_CNTRL 0xA4 /* */ +#define BD50MAX 0xA5 /* 50 Hz banding step limit */ +#define HAECC3 0xA6 /* Histogram-based AEC/AGC control 3 */ +#define HAECC4 0xA7 /* Histogram-based AEC/AGC control 4 */ +#define HAECC5 0xA8 /* Histogram-based AEC/AGC control 5 */ +#define HAECC6 0xA9 /* Histogram-based AEC/AGC control 6 */ + +#define HAECC7 0xAA /* Histogram-based AEC/AGC control 7 */ +#define HAECC_EN 0x80 /* Histogram-based AEC algorithm enable */ + +#define BD60MAX 0xAB /* 60 Hz banding step limit */ + +#define STR_OPT 0xAC /* Register AC */ +#define STR_R 0xAD /* R gain for led output frame */ +#define STR_G 0xAE /* G gain for led output frame */ +#define STR_B 0xAF /* B gain for led output frame */ +#define RSVD_B0 0xB0 /* Reserved */ +#define ABLC1 0xB1 /* */ +#define RSVD_B2 0xB2 /* Reserved */ +#define THL_ST 0xB3 /* ABLC target */ +#define THL_DLT 0xB5 /* ABLC stable range */ + +#define RSVD_B6 0xB6 /* Reserved */ +#define RSVD_B7 0xB7 /* Reserved */ +#define RSVD_B8 0xB8 /* Reserved */ +#define RSVD_B9 0xB9 /* Reserved */ +#define RSVD_BA 0xBA /* Reserved */ +#define RSVD_BB 0xBB /* Reserved */ +#define RSVD_BC 0xBC /* Reserved */ +#define RSVD_BD 0xBD /* Reserved */ + +#define AD_CHB 0xBE /* blue channel black level compensation */ +#define AD_CHR 0xBF /* Red channel black level compensation */ +#define AD_CHGb 0xC0 /* Gb channel black level compensation */ +#define AD_CHGr 0xC1 /* Gr channel black level compensation */ + +#define RSVD_C2 0xC2 /* Reserved */ +#define RSVD_C3 0xC3 /* Reserved */ +#define RSVD_C4 0xC4 /* Reserved */ +#define RSVD_C5 0xC5 /* Reserved */ +#define RSVD_C6 0xC6 /* Reserved */ +#define RSVD_C7 0xC7 /* Reserved */ +#define RSVD_C8 0xC8 /* Reserved */ + +#define SATCTR 0xC9 /* Saturation control */ +#define SET_REG(reg, x) (##reg_DEFAULT|x) + +#endif //__OV7670_REG_REGS_H__ diff --git a/code/lib/sensors/ov7725.h b/code/components/esp32-camera-master/sensors/private_include/ov7725.h similarity index 100% rename from code/lib/sensors/ov7725.h rename to code/components/esp32-camera-master/sensors/private_include/ov7725.h diff --git a/code/lib/sensors/ov7725_regs.h b/code/components/esp32-camera-master/sensors/private_include/ov7725_regs.h similarity index 100% rename from code/lib/sensors/ov7725_regs.h rename to code/components/esp32-camera-master/sensors/private_include/ov7725_regs.h diff --git a/code/components/jomjol_controlcamera/CMakeLists.txt b/code/components/jomjol_controlcamera/CMakeLists.txt new file mode 100644 index 000000000..41380d133 --- /dev/null +++ b/code/components/jomjol_controlcamera/CMakeLists.txt @@ -0,0 +1,9 @@ +FILE(GLOB_RECURSE app_sources ${CMAKE_CURRENT_SOURCE_DIR}/*.*) + +list(APPEND EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common) + +idf_component_register(SRCS ${app_sources} + INCLUDE_DIRS "." + REQUIRES esp32-camera-master esp_http_server jomjol_logfile jomjol_image_proc nvs_flash) + + diff --git a/code/lib/jomjol_controlcamera/ClassControllCamera.cpp b/code/components/jomjol_controlcamera/ClassControllCamera.cpp similarity index 68% rename from code/lib/jomjol_controlcamera/ClassControllCamera.cpp rename to code/components/jomjol_controlcamera/ClassControllCamera.cpp index bea60d388..bd6eec6be 100644 --- a/code/lib/jomjol_controlcamera/ClassControllCamera.cpp +++ b/code/components/jomjol_controlcamera/ClassControllCamera.cpp @@ -8,7 +8,128 @@ #include "Helper.h" #include "CFindTemplate.h" -#include "camera_define.h" +// #include "camera_define.h" + +///////////////////////////////////////////////////////////////////////////////////////// +///////////////////////////////////////////////////////////////////////////////////////// +#define BOARD_ESP32CAM_AITHINKER + +/** + * 2. Kconfig setup + * + * If you have a Kconfig file, copy the content from + * https://github.com/espressif/esp32-camera/blob/master/Kconfig into it. + * In case you haven't, copy and paste this Kconfig file inside the src directory. + * This Kconfig file has definitions that allows more control over the camera and + * how it will be initialized. + */ + +/** + * 3. Enable PSRAM on sdkconfig: + * + * CONFIG_ESP32_SPIRAM_SUPPORT=y + * + * More info on + * https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/kconfig.html#config-esp32-spiram-support + */ + +// ================================ CODE ====================================== + +#include +#include +#include +#include +#include +#include + +#include "freertos/FreeRTOS.h" +#include "freertos/task.h" + +#include "esp_camera.h" + +// WROVER-KIT PIN Map +#ifdef BOARD_WROVER_KIT + +#define CAM_PIN_PWDN -1 //power down is not used +#define CAM_PIN_RESET -1 //software reset will be performed +#define CAM_PIN_XCLK 21 +#define CAM_PIN_SIOD 26 +#define CAM_PIN_SIOC 27 + +#define CAM_PIN_D7 35 +#define CAM_PIN_D6 34 +#define CAM_PIN_D5 39 +#define CAM_PIN_D4 36 +#define CAM_PIN_D3 19 +#define CAM_PIN_D2 18 +#define CAM_PIN_D1 5 +#define CAM_PIN_D0 4 +#define CAM_PIN_VSYNC 25 +#define CAM_PIN_HREF 23 +#define CAM_PIN_PCLK 22 + +#endif + +// ESP32Cam (AiThinker) PIN Map +#ifdef BOARD_ESP32CAM_AITHINKER + +#define CAM_PIN_PWDN (gpio_num_t) 32 +#define CAM_PIN_RESET -1 //software reset will be performed +#define CAM_PIN_XCLK 0 +#define CAM_PIN_SIOD 26 +#define CAM_PIN_SIOC 27 + +#define CAM_PIN_D7 35 +#define CAM_PIN_D6 34 +#define CAM_PIN_D5 39 +#define CAM_PIN_D4 36 +#define CAM_PIN_D3 21 +#define CAM_PIN_D2 19 +#define CAM_PIN_D1 18 +#define CAM_PIN_D0 5 +#define CAM_PIN_VSYNC 25 +#define CAM_PIN_HREF 23 +#define CAM_PIN_PCLK 22 + +#endif + +static const char *TAG = "example:take_picture"; + +static camera_config_t camera_config = { + .pin_pwdn = CAM_PIN_PWDN, + .pin_reset = CAM_PIN_RESET, + .pin_xclk = CAM_PIN_XCLK, + .pin_sscb_sda = CAM_PIN_SIOD, + .pin_sscb_scl = CAM_PIN_SIOC, + + .pin_d7 = CAM_PIN_D7, + .pin_d6 = CAM_PIN_D6, + .pin_d5 = CAM_PIN_D5, + .pin_d4 = CAM_PIN_D4, + .pin_d3 = CAM_PIN_D3, + .pin_d2 = CAM_PIN_D2, + .pin_d1 = CAM_PIN_D1, + .pin_d0 = CAM_PIN_D0, + .pin_vsync = CAM_PIN_VSYNC, + .pin_href = CAM_PIN_HREF, + .pin_pclk = CAM_PIN_PCLK, + + //XCLK 20MHz or 10MHz for OV2640 double FPS (Experimental) + .xclk_freq_hz = 20000000, + .ledc_timer = LEDC_TIMER_0, + .ledc_channel = LEDC_CHANNEL_0, + + .pixel_format = PIXFORMAT_JPEG, //YUV422,GRAYSCALE,RGB565,JPEG + .frame_size = FRAMESIZE_UXGA, //QQVGA-UXGA Do not use sizes above QVGA when not JPEG + + + + .jpeg_quality = 5, //0-63 lower number means higher quality + .fb_count = 1 //if more than one, i2s runs in continuous mode. Use only with JPEG +}; + +///////////////////////////////////////////////////////////////////////////////////////////////// +///////////////////////////////////////////////////////////////////////////////////////////////// #include "driver/ledc.h" @@ -270,12 +391,12 @@ esp_err_t CCamera::InitCam() { printf("Init Flash\n"); //power up the camera if PWDN pin is defined - if(PWDN_GPIO_NUM != -1){ + if(CAM_PIN_PWDN != -1){ // Init the GPIO - gpio_pad_select_gpio(PWDN_GPIO_NUM); + gpio_pad_select_gpio(CAM_PIN_PWDN); /* Set the GPIO as a push/pull output */ - gpio_set_direction(PWDN_GPIO_NUM, GPIO_MODE_OUTPUT); - gpio_set_level(PWDN_GPIO_NUM, 0); + gpio_set_direction(CAM_PIN_PWDN, GPIO_MODE_OUTPUT); + gpio_set_level(CAM_PIN_PWDN, 0); } printf("Init Camera\n"); diff --git a/code/lib/jomjol_controlcamera/ClassControllCamera.h b/code/components/jomjol_controlcamera/ClassControllCamera.h similarity index 96% rename from code/lib/jomjol_controlcamera/ClassControllCamera.h rename to code/components/jomjol_controlcamera/ClassControllCamera.h index 4c8cf3652..07e63e2f3 100644 --- a/code/lib/jomjol_controlcamera/ClassControllCamera.h +++ b/code/components/jomjol_controlcamera/ClassControllCamera.h @@ -9,7 +9,7 @@ #include "esp_camera.h" #include -#include "esp_http_server.h" +#include #define CAMERA_MODEL_AI_THINKER diff --git a/code/lib/jomjol_controlcamera/img_converters.h b/code/components/jomjol_controlcamera/img_converters.h similarity index 100% rename from code/lib/jomjol_controlcamera/img_converters.h rename to code/components/jomjol_controlcamera/img_converters.h diff --git a/code/lib/driver/sensor.h b/code/components/jomjol_controlcamera/sensor.h similarity index 100% rename from code/lib/driver/sensor.h rename to code/components/jomjol_controlcamera/sensor.h diff --git a/code/lib/jomjol_controlcamera/server_camera.cpp b/code/components/jomjol_controlcamera/server_camera.cpp similarity index 100% rename from code/lib/jomjol_controlcamera/server_camera.cpp rename to code/components/jomjol_controlcamera/server_camera.cpp diff --git a/code/lib/jomjol_controlcamera/server_camera.h b/code/components/jomjol_controlcamera/server_camera.h similarity index 100% rename from code/lib/jomjol_controlcamera/server_camera.h rename to code/components/jomjol_controlcamera/server_camera.h diff --git a/code/components/jomjol_fileserver_ota/CMakeLists.txt b/code/components/jomjol_fileserver_ota/CMakeLists.txt new file mode 100644 index 000000000..752bc5d11 --- /dev/null +++ b/code/components/jomjol_fileserver_ota/CMakeLists.txt @@ -0,0 +1,7 @@ +FILE(GLOB_RECURSE app_sources ${CMAKE_CURRENT_SOURCE_DIR}/*.*) + +idf_component_register(SRCS ${app_sources} + INCLUDE_DIRS "." + REQUIRES tfmicro esp_http_server app_update esp_http_client nvs_flash jomjol_tfliteclass jomjol_flowcontroll spiffs jomjol_helper) + + diff --git a/code/lib/jomjol_fileserver_ota/miniz.c b/code/components/jomjol_fileserver_ota/miniz.c similarity index 100% rename from code/lib/jomjol_fileserver_ota/miniz.c rename to code/components/jomjol_fileserver_ota/miniz.c diff --git a/code/lib/jomjol_fileserver_ota/miniz.h b/code/components/jomjol_fileserver_ota/miniz.h similarity index 100% rename from code/lib/jomjol_fileserver_ota/miniz.h rename to code/components/jomjol_fileserver_ota/miniz.h diff --git a/code/lib/jomjol_fileserver_ota/server_file.cpp b/code/components/jomjol_fileserver_ota/server_file.cpp similarity index 91% rename from code/lib/jomjol_fileserver_ota/server_file.cpp rename to code/components/jomjol_fileserver_ota/server_file.cpp index 78f45a74f..3c8eb2dc1 100644 --- a/code/lib/jomjol_fileserver_ota/server_file.cpp +++ b/code/components/jomjol_fileserver_ota/server_file.cpp @@ -23,7 +23,7 @@ #include "esp_log.h" #include "esp_vfs.h" -#include "esp_spiffs.h" +#include #include "esp_http_server.h" #include "ClassLogFile.h" @@ -216,6 +216,70 @@ static esp_err_t http_resp_dir_html(httpd_req_t *req, const char *dirpath, const (strcasecmp(&filename[strlen(filename) - sizeof(ext) + 1], ext) == 0) +static esp_err_t logfileact_get_handler(httpd_req_t *req) +{ + LogFile.WriteToFile("logfileact_get_handler"); + char filepath[FILE_PATH_MAX]; + FILE *fd = NULL; + struct stat file_stat; + printf("uri: %s\n", req->uri); + + const char filename = 'log_current.txt'; + + printf("uri: %s, filename: %s, filepath: %s\n", req->uri, &filename, filepath); + + std::string currentfilename = LogFile.GetCurrentFileName(); + + + fd = fopen(currentfilename.c_str(), "r"); + if (!fd) { + ESP_LOGE(TAG, "Failed to read existing file : %s", filepath); + /* Respond with 500 Internal Server Error */ + httpd_resp_send_err(req, HTTPD_500_INTERNAL_SERVER_ERROR, "Failed to read existing file"); + return ESP_FAIL; + } + + httpd_resp_set_hdr(req, "Access-Control-Allow-Origin", "*"); + +// ESP_LOGI(TAG, "Sending file : %s (%ld bytes)...", &filename, file_stat.st_size); + set_content_type_from_file(req, &filename); + + /* Retrieve the pointer to scratch buffer for temporary storage */ + char *chunk = ((struct file_server_data *)req->user_ctx)->scratch; + size_t chunksize; + do { + /* Read file in chunks into the scratch buffer */ + chunksize = fread(chunk, 1, SCRATCH_BUFSIZE, fd); + + /* Send the buffer contents as HTTP response chunk */ + if (httpd_resp_send_chunk(req, chunk, chunksize) != ESP_OK) { + fclose(fd); + ESP_LOGE(TAG, "File sending failed!"); + /* Abort sending file */ + httpd_resp_sendstr_chunk(req, NULL); + /* Respond with 500 Internal Server Error */ + httpd_resp_send_err(req, HTTPD_500_INTERNAL_SERVER_ERROR, "Failed to send file"); + return ESP_FAIL; + } + + /* Keep looping till the whole file is sent */ + } while (chunksize != 0); + + /* Close file after sending complete */ + fclose(fd); + ESP_LOGI(TAG, "File sending complete"); + + /* Respond with an empty chunk to signal HTTP response completion */ + httpd_resp_send_chunk(req, NULL, 0); + return ESP_OK; +} + + + + + + + /* Handler to download a file kept on the server */ static esp_err_t download_get_handler(httpd_req_t *req) { @@ -707,6 +771,17 @@ void register_server_file_uri(httpd_handle_t server, const char *base_path) }; httpd_register_uri_handler(server, &file_download); + + + httpd_uri_t file_logfileact = { + .uri = "/logfileact", // Match all URIs of type /path/to/file + .method = HTTP_GET, + .handler = logfileact_get_handler, + .user_ctx = server_data // Pass server data as context + }; + httpd_register_uri_handler(server, &file_logfileact); + + /* URI handler for uploading files to server */ httpd_uri_t file_upload = { .uri = "/upload/*", // Match all URIs of type /upload/path/to/file diff --git a/code/lib/jomjol_fileserver_ota/server_file.h b/code/components/jomjol_fileserver_ota/server_file.h similarity index 100% rename from code/lib/jomjol_fileserver_ota/server_file.h rename to code/components/jomjol_fileserver_ota/server_file.h diff --git a/code/src/server_help.cpp b/code/components/jomjol_fileserver_ota/server_help.cpp similarity index 100% rename from code/src/server_help.cpp rename to code/components/jomjol_fileserver_ota/server_help.cpp diff --git a/code/src/server_help.h b/code/components/jomjol_fileserver_ota/server_help.h similarity index 100% rename from code/src/server_help.h rename to code/components/jomjol_fileserver_ota/server_help.h diff --git a/code/lib/jomjol_fileserver_ota/server_ota.cpp b/code/components/jomjol_fileserver_ota/server_ota.cpp similarity index 99% rename from code/lib/jomjol_fileserver_ota/server_ota.cpp rename to code/components/jomjol_fileserver_ota/server_ota.cpp index bef94bb0a..c18409c77 100644 --- a/code/lib/jomjol_fileserver_ota/server_ota.cpp +++ b/code/components/jomjol_fileserver_ota/server_ota.cpp @@ -14,14 +14,14 @@ #include "esp_event.h" #include "esp_event_loop.h" #include "esp_log.h" -#include "esp_ota_ops.h" +#include #include "esp_http_client.h" #include "esp_flash_partitions.h" #include "esp_partition.h" -#include "nvs.h" +#include #include "nvs_flash.h" #include "driver/gpio.h" -#include "protocol_examples_common.h" +// #include "protocol_examples_common.h" #include "errno.h" #include diff --git a/code/lib/jomjol_fileserver_ota/server_ota.h b/code/components/jomjol_fileserver_ota/server_ota.h similarity index 100% rename from code/lib/jomjol_fileserver_ota/server_ota.h rename to code/components/jomjol_fileserver_ota/server_ota.h diff --git a/code/components/jomjol_flowcontroll/CMakeLists.txt b/code/components/jomjol_flowcontroll/CMakeLists.txt new file mode 100644 index 000000000..670be1713 --- /dev/null +++ b/code/components/jomjol_flowcontroll/CMakeLists.txt @@ -0,0 +1,7 @@ +FILE(GLOB_RECURSE app_sources ${CMAKE_CURRENT_SOURCE_DIR}/*.*) + +idf_component_register(SRCS ${app_sources} + INCLUDE_DIRS "." + REQUIRES jomjol_tfliteclass jomjol_helper jomjol_controlcamera jomjol_mqtt jomjol_fileserver_ota) + + diff --git a/code/lib/jomjol_flowcontroll/ClassFlow.cpp b/code/components/jomjol_flowcontroll/ClassFlow.cpp similarity index 90% rename from code/lib/jomjol_flowcontroll/ClassFlow.cpp rename to code/components/jomjol_flowcontroll/ClassFlow.cpp index a378c2fbc..5913d304a 100644 --- a/code/lib/jomjol_flowcontroll/ClassFlow.cpp +++ b/code/components/jomjol_flowcontroll/ClassFlow.cpp @@ -11,10 +11,12 @@ void ClassFlow::SetInitialParameter(void) ListFlowControll = NULL; } -std::vector ClassFlow::ZerlegeZeile(std::string input) +//std::vector ClassFlow::ZerlegeZeile(std::string input, std::string delimiter); + +std::vector ClassFlow::ZerlegeZeile(std::string input, std::string delimiter) { std::vector Output; - std::string delimiter = " =,"; +// std::string delimiter = " =,"; input = trim(input, delimiter); size_t pos = findDelimiterPos(input, delimiter); diff --git a/code/lib/jomjol_flowcontroll/ClassFlow.h b/code/components/jomjol_flowcontroll/ClassFlow.h similarity index 87% rename from code/lib/jomjol_flowcontroll/ClassFlow.h rename to code/components/jomjol_flowcontroll/ClassFlow.h index 18260229c..11a5b25d7 100644 --- a/code/lib/jomjol_flowcontroll/ClassFlow.h +++ b/code/components/jomjol_flowcontroll/ClassFlow.h @@ -23,7 +23,8 @@ struct HTMLInfo class ClassFlow { protected: - std::vector ZerlegeZeile(string input); +// std::vector ZerlegeZeile(string input); + std::vector ZerlegeZeile(string input, string delimiter = " =, "); bool isNewParagraph(string input); bool GetNextParagraph(FILE* pfile, string& aktparamgraph); bool getNextLine(FILE* pfile, string* rt); diff --git a/code/lib/jomjol_flowcontroll/ClassFlowAlignment.cpp b/code/components/jomjol_flowcontroll/ClassFlowAlignment.cpp similarity index 100% rename from code/lib/jomjol_flowcontroll/ClassFlowAlignment.cpp rename to code/components/jomjol_flowcontroll/ClassFlowAlignment.cpp diff --git a/code/lib/jomjol_flowcontroll/ClassFlowAlignment.h b/code/components/jomjol_flowcontroll/ClassFlowAlignment.h similarity index 100% rename from code/lib/jomjol_flowcontroll/ClassFlowAlignment.h rename to code/components/jomjol_flowcontroll/ClassFlowAlignment.h diff --git a/code/lib/jomjol_flowcontroll/ClassFlowAnalog.cpp b/code/components/jomjol_flowcontroll/ClassFlowAnalog.cpp similarity index 100% rename from code/lib/jomjol_flowcontroll/ClassFlowAnalog.cpp rename to code/components/jomjol_flowcontroll/ClassFlowAnalog.cpp diff --git a/code/lib/jomjol_flowcontroll/ClassFlowAnalog.h b/code/components/jomjol_flowcontroll/ClassFlowAnalog.h similarity index 100% rename from code/lib/jomjol_flowcontroll/ClassFlowAnalog.h rename to code/components/jomjol_flowcontroll/ClassFlowAnalog.h diff --git a/code/lib/jomjol_flowcontroll/ClassFlowControll.cpp b/code/components/jomjol_flowcontroll/ClassFlowControll.cpp similarity index 91% rename from code/lib/jomjol_flowcontroll/ClassFlowControll.cpp rename to code/components/jomjol_flowcontroll/ClassFlowControll.cpp index a50de9871..68f3dce64 100644 --- a/code/lib/jomjol_flowcontroll/ClassFlowControll.cpp +++ b/code/components/jomjol_flowcontroll/ClassFlowControll.cpp @@ -1,5 +1,7 @@ #include "ClassFlowControll.h" +#include "freertos/task.h" + #include #include #include "ClassLogFile.h" @@ -104,6 +106,9 @@ ClassFlow* ClassFlowControll::CreateClassFlow(std::string _type) if (toUpper(_type).compare("[DEBUG]") == 0) cfc = this; + if (toUpper(_type).compare("[SYSTEM]") == 0) + cfc = this; + return cfc; } @@ -259,12 +264,12 @@ bool ClassFlowControll::ReadParameter(FILE* pfile, string& aktparamgraph) return false; - if ((toUpper(aktparamgraph).compare("[AUTOTIMER]") != 0) && (toUpper(aktparamgraph).compare("[DEBUG]") != 0)) // Paragraph passt nicht zu MakeImage + if ((toUpper(aktparamgraph).compare("[AUTOTIMER]") != 0) && (toUpper(aktparamgraph).compare("[DEBUG]") != 0) && (toUpper(aktparamgraph).compare("[SYSTEM]") != 0)) // Paragraph passt nicht zu MakeImage return false; while (this->getNextLine(pfile, &aktparamgraph) && !this->isNewParagraph(aktparamgraph)) { - zerlegt = this->ZerlegeZeile(aktparamgraph); + zerlegt = this->ZerlegeZeile(aktparamgraph, " ="); if ((toUpper(zerlegt[0]) == "AUTOSTART") && (zerlegt.size() > 1)) { if (toUpper(zerlegt[1]) == "TRUE") @@ -291,6 +296,19 @@ bool ClassFlowControll::ReadParameter(FILE* pfile, string& aktparamgraph) { LogFile.SetRetention(std::stoi(zerlegt[1])); } + + if ((toUpper(zerlegt[0]) == "TIMEZONE") && (zerlegt.size() > 1)) + { + string zw = "Set TimeZone: " + zerlegt[1]; + setTimeZone(zerlegt[1]); + } + + if ((toUpper(zerlegt[0]) == "TIMEUPDATEINTERVALL") && (zerlegt.size() > 1)) + { + TimeUpdateIntervall = stof(zerlegt[1]); + xTaskCreate(&task_doTimeSync, "update_time", configMINIMAL_STACK_SIZE * 16, &TimeUpdateIntervall, tskIDLE_PRIORITY, NULL); + } + } return true; } diff --git a/code/lib/jomjol_flowcontroll/ClassFlowControll.h b/code/components/jomjol_flowcontroll/ClassFlowControll.h similarity index 97% rename from code/lib/jomjol_flowcontroll/ClassFlowControll.h rename to code/components/jomjol_flowcontroll/ClassFlowControll.h index 91eac5fa5..aceb79cc2 100644 --- a/code/lib/jomjol_flowcontroll/ClassFlowControll.h +++ b/code/components/jomjol_flowcontroll/ClassFlowControll.h @@ -23,6 +23,7 @@ class ClassFlowControll : float AutoIntervall; void SetInitialParameter(void); std::string aktstatus; + int TimeUpdateIntervall; public: diff --git a/code/lib/jomjol_flowcontroll/ClassFlowDigit.cpp b/code/components/jomjol_flowcontroll/ClassFlowDigit.cpp similarity index 100% rename from code/lib/jomjol_flowcontroll/ClassFlowDigit.cpp rename to code/components/jomjol_flowcontroll/ClassFlowDigit.cpp diff --git a/code/lib/jomjol_flowcontroll/ClassFlowDigit.h b/code/components/jomjol_flowcontroll/ClassFlowDigit.h similarity index 100% rename from code/lib/jomjol_flowcontroll/ClassFlowDigit.h rename to code/components/jomjol_flowcontroll/ClassFlowDigit.h diff --git a/code/lib/jomjol_flowcontroll/ClassFlowImage.cpp b/code/components/jomjol_flowcontroll/ClassFlowImage.cpp similarity index 100% rename from code/lib/jomjol_flowcontroll/ClassFlowImage.cpp rename to code/components/jomjol_flowcontroll/ClassFlowImage.cpp diff --git a/code/lib/jomjol_flowcontroll/ClassFlowImage.h b/code/components/jomjol_flowcontroll/ClassFlowImage.h similarity index 100% rename from code/lib/jomjol_flowcontroll/ClassFlowImage.h rename to code/components/jomjol_flowcontroll/ClassFlowImage.h diff --git a/code/lib/jomjol_flowcontroll/ClassFlowMQTT.cpp b/code/components/jomjol_flowcontroll/ClassFlowMQTT.cpp similarity index 88% rename from code/lib/jomjol_flowcontroll/ClassFlowMQTT.cpp rename to code/components/jomjol_flowcontroll/ClassFlowMQTT.cpp index 92396e2bc..4d6a9fb10 100644 --- a/code/lib/jomjol_flowcontroll/ClassFlowMQTT.cpp +++ b/code/components/jomjol_flowcontroll/ClassFlowMQTT.cpp @@ -10,6 +10,7 @@ ClassFlowMQTT::ClassFlowMQTT() { uri = ""; topic = ""; + topicError = ""; clientname = "watermeter"; OldValue = ""; flowpostprocessing = NULL; @@ -21,6 +22,7 @@ ClassFlowMQTT::ClassFlowMQTT(std::vector* lfc) { uri = ""; topic = ""; + topicError = ""; clientname = "watermeter"; OldValue = ""; flowpostprocessing = NULL; @@ -71,6 +73,10 @@ bool ClassFlowMQTT::ReadParameter(FILE* pfile, string& aktparamgraph) { this->topic = zerlegt[1]; } + if ((toUpper(zerlegt[0]) == "TOPICERROR") && (zerlegt.size() > 1)) + { + this->topicError = zerlegt[1]; + } if ((toUpper(zerlegt[0]) == "CLIENTID") && (zerlegt.size() > 1)) { this->clientname = zerlegt[1]; @@ -90,11 +96,13 @@ bool ClassFlowMQTT::ReadParameter(FILE* pfile, string& aktparamgraph) bool ClassFlowMQTT::doFlow(string zwtime) { std::string result; + std::string resulterror = ""; string zw = ""; if (flowpostprocessing) { result = flowpostprocessing->getReadoutParam(false, true); + resulterror = flowpostprocessing->getReadoutError(); } else { @@ -110,9 +118,13 @@ bool ClassFlowMQTT::doFlow(string zwtime) } } } - + MQTTPublish(topic, result); + if (topicError.length() > 0) { + MQTTPublish(topicError, resulterror); + } + OldValue = result; diff --git a/code/lib/jomjol_flowcontroll/ClassFlowMQTT.h b/code/components/jomjol_flowcontroll/ClassFlowMQTT.h similarity index 90% rename from code/lib/jomjol_flowcontroll/ClassFlowMQTT.h rename to code/components/jomjol_flowcontroll/ClassFlowMQTT.h index a22173ef1..48e93f0ff 100644 --- a/code/lib/jomjol_flowcontroll/ClassFlowMQTT.h +++ b/code/components/jomjol_flowcontroll/ClassFlowMQTT.h @@ -9,7 +9,7 @@ class ClassFlowMQTT : public ClassFlow { protected: - std::string uri, topic, clientname; + std::string uri, topic, topicError, clientname; std::string OldValue; ClassFlowPostProcessing* flowpostprocessing; std::string user, password; diff --git a/code/lib/jomjol_flowcontroll/ClassFlowMakeImage.cpp b/code/components/jomjol_flowcontroll/ClassFlowMakeImage.cpp similarity index 100% rename from code/lib/jomjol_flowcontroll/ClassFlowMakeImage.cpp rename to code/components/jomjol_flowcontroll/ClassFlowMakeImage.cpp diff --git a/code/lib/jomjol_flowcontroll/ClassFlowMakeImage.h b/code/components/jomjol_flowcontroll/ClassFlowMakeImage.h similarity index 100% rename from code/lib/jomjol_flowcontroll/ClassFlowMakeImage.h rename to code/components/jomjol_flowcontroll/ClassFlowMakeImage.h diff --git a/code/lib/jomjol_flowcontroll/ClassFlowPostProcessing.cpp b/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp similarity index 90% rename from code/lib/jomjol_flowcontroll/ClassFlowPostProcessing.cpp rename to code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp index 686b08694..a19f0fe5d 100644 --- a/code/lib/jomjol_flowcontroll/ClassFlowPostProcessing.cpp +++ b/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp @@ -13,7 +13,7 @@ string ClassFlowPostProcessing::GetPreValue() { std::string result; - result = to_string(PreValue); + result = RundeOutput(PreValue, -DecimalShift); for (int i = 0; i < ListFlowControll->size(); ++i) { @@ -90,7 +90,6 @@ bool ClassFlowPostProcessing::LoadPreValue(void) void ClassFlowPostProcessing::SavePreValue(float value, string zwtime) { FILE* pFile; - PreValue = value; pFile = fopen(FilePreValue.c_str(), "w"); @@ -131,6 +130,7 @@ ClassFlowPostProcessing::ClassFlowPostProcessing() useMaxRateValue = false; checkDigitIncreaseConsistency = false; DecimalShift = 0; + ErrorMessageText = ""; FilePreValue = FormatFileName("/sdcard/config/prevalue.ini"); } @@ -146,6 +146,7 @@ ClassFlowPostProcessing::ClassFlowPostProcessing(std::vector* lfc) useMaxRateValue = false; checkDigitIncreaseConsistency = false; DecimalShift = 0; + ErrorMessageText = ""; FilePreValue = FormatFileName("/sdcard/config/prevalue.ini"); ListFlowControll = lfc; } @@ -264,9 +265,10 @@ bool ClassFlowPostProcessing::doFlow(string zwtime) bool isanalog = false; int AnzahlAnalog = 0; string zw; - string error = ""; time_t imagetime = 0; + ErrorMessageText = ""; + for (int i = 0; i < ListFlowControll->size(); ++i) { if (((*ListFlowControll)[i])->name().compare("ClassFlowMakeImage") == 0) @@ -323,6 +325,9 @@ bool ClassFlowPostProcessing::doFlow(string zwtime) } Value = std::stof(ReturnValue); ReturnValueNoError = ReturnValue; + + PreValueOkay = true; + PreValue = Value; SavePreValue(Value, zwtime); } @@ -342,25 +347,29 @@ bool ClassFlowPostProcessing::doFlow(string zwtime) if ((!AllowNegativeRates) && (Value < PreValue)) { - error = error + "Negative Rate - Returned old value - read value: " + zwvalue + " "; + ErrorMessageText = ErrorMessageText + "Negative Rate - Returned old value - read value: " + zwvalue + " "; Value = PreValue; zwvalue = RundeOutput(Value, AnzahlAnalog - DecimalShift); } if (useMaxRateValue && (abs(Value - PreValue) > MaxRateValue)) { - error = error + "Rate too high - Returned old value - read value: " + zwvalue + " "; + ErrorMessageText = ErrorMessageText + "Rate too high - Returned old value - read value: " + zwvalue + " "; Value = PreValue; zwvalue = RundeOutput(Value, AnzahlAnalog - DecimalShift); } ReturnValueNoError = zwvalue; ReturnValue = zwvalue; - if (ErrorMessage && (error.length() > 0)) - ReturnValue = ReturnValue + "\t" + error; + if (ErrorMessage && (ErrorMessageText.length() > 0)) + ReturnValue = ReturnValue + "\t" + ErrorMessageText; - if (error.length() == 0) + if (ErrorMessageText.length() == 0) + { + PreValue = Value; SavePreValue(Value, zwtime); + } + return true; } @@ -422,6 +431,7 @@ float ClassFlowPostProcessing::checkDigitConsistency(float input, int _decilamsh int aktdigit_before, olddigit_before; int pot, pot_max; float zw; + bool no_nulldurchgang = false; pot = _decilamshift; if (!_isanalog) // falls es keine analogwerte gibt, kann die letzte nicht bewertet werden @@ -442,15 +452,31 @@ float ClassFlowPostProcessing::checkDigitConsistency(float input, int _decilamsh zw = PreValue / pow(10, pot); olddigit = ((int) zw) % 10; - if (aktdigit != olddigit) { - if (olddigit_before <= aktdigit_before) // stelle vorher hat noch keinen Nulldurchgang --> nachfolgestelle sollte sich nicht verändern + no_nulldurchgang = (olddigit_before <= aktdigit_before); + + if (no_nulldurchgang) + { + if (aktdigit != olddigit) { input = input + ((float) (olddigit - aktdigit)) * pow(10, pot); // Neue Digit wird durch alte Digit ersetzt; } } + else + { + if (aktdigit == olddigit) // trotz Nulldurchgang wurde Stelle nicht hochgezählt --> addiere 1 + { + input = input + ((float) (1)) * pow(10, pot); // addiere 1 an der Stelle + } + } pot++; } return input; } + + +string ClassFlowPostProcessing::getReadoutError() +{ + return ErrorMessageText; +} diff --git a/code/lib/jomjol_flowcontroll/ClassFlowPostProcessing.h b/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.h similarity index 93% rename from code/lib/jomjol_flowcontroll/ClassFlowPostProcessing.h rename to code/components/jomjol_flowcontroll/ClassFlowPostProcessing.h index b9e74b9e5..c92513502 100644 --- a/code/lib/jomjol_flowcontroll/ClassFlowPostProcessing.h +++ b/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.h @@ -24,6 +24,7 @@ class ClassFlowPostProcessing : string ReturnRawValue; // Rohwert (mit N & fĂĽhrenden 0) string ReturnValue; // korrigierter RĂĽckgabewert, ggf. mit Fehlermeldung string ReturnValueNoError; // korrigierter RĂĽckgabewert ohne Fehlermeldung + string ErrorMessageText; // Fehlermeldung bei Consistency Check bool LoadPreValue(void); string ShiftDecimal(string in, int _decShift); @@ -39,6 +40,7 @@ class ClassFlowPostProcessing : bool doFlow(string time); string getReadout(); string getReadoutParam(bool _rawValue, bool _noerror); + string getReadoutError(); void SavePreValue(float value, string time = ""); string GetPreValue(); diff --git a/code/lib/jomjol_flowcontroll/camera_define.h b/code/components/jomjol_flowcontroll/camera_define.h similarity index 100% rename from code/lib/jomjol_flowcontroll/camera_define.h rename to code/components/jomjol_flowcontroll/camera_define.h diff --git a/code/components/jomjol_helper/CMakeLists.txt b/code/components/jomjol_helper/CMakeLists.txt new file mode 100644 index 000000000..bd92d82db --- /dev/null +++ b/code/components/jomjol_helper/CMakeLists.txt @@ -0,0 +1,7 @@ +FILE(GLOB_RECURSE app_sources ${CMAKE_CURRENT_SOURCE_DIR}/*.*) + +idf_component_register(SRCS ${app_sources} + INCLUDE_DIRS "." + REQUIRES tfmicro) + + diff --git a/code/lib/jomjol_helper/Helper.cpp b/code/components/jomjol_helper/Helper.cpp similarity index 100% rename from code/lib/jomjol_helper/Helper.cpp rename to code/components/jomjol_helper/Helper.cpp diff --git a/code/lib/jomjol_helper/Helper.h b/code/components/jomjol_helper/Helper.h similarity index 100% rename from code/lib/jomjol_helper/Helper.h rename to code/components/jomjol_helper/Helper.h diff --git a/code/lib/jomjol_image_proc/CFindTemplate.cpp b/code/components/jomjol_image_proc/CFindTemplate.cpp similarity index 100% rename from code/lib/jomjol_image_proc/CFindTemplate.cpp rename to code/components/jomjol_image_proc/CFindTemplate.cpp diff --git a/code/lib/jomjol_image_proc/CFindTemplate.h b/code/components/jomjol_image_proc/CFindTemplate.h similarity index 100% rename from code/lib/jomjol_image_proc/CFindTemplate.h rename to code/components/jomjol_image_proc/CFindTemplate.h diff --git a/code/components/jomjol_image_proc/CMakeLists.txt b/code/components/jomjol_image_proc/CMakeLists.txt new file mode 100644 index 000000000..df20b56b9 --- /dev/null +++ b/code/components/jomjol_image_proc/CMakeLists.txt @@ -0,0 +1,7 @@ +FILE(GLOB_RECURSE app_sources ${CMAKE_CURRENT_SOURCE_DIR}/*.*) + +idf_component_register(SRCS ${app_sources} + INCLUDE_DIRS "." + REQUIRES jomjol_helper jomjol_logfile) + + diff --git a/code/lib/jomjol_image_proc/bitmap_image.hpp b/code/components/jomjol_image_proc/bitmap_image.hpp similarity index 100% rename from code/lib/jomjol_image_proc/bitmap_image.hpp rename to code/components/jomjol_image_proc/bitmap_image.hpp diff --git a/code/lib/jomjol_image_proc/make_stb.cpp b/code/components/jomjol_image_proc/make_stb.cpp similarity index 100% rename from code/lib/jomjol_image_proc/make_stb.cpp rename to code/components/jomjol_image_proc/make_stb.cpp diff --git a/code/lib/jomjol_image_proc/stb_image.h b/code/components/jomjol_image_proc/stb_image.h similarity index 100% rename from code/lib/jomjol_image_proc/stb_image.h rename to code/components/jomjol_image_proc/stb_image.h diff --git a/code/lib/jomjol_image_proc/stb_image_resize.h b/code/components/jomjol_image_proc/stb_image_resize.h similarity index 100% rename from code/lib/jomjol_image_proc/stb_image_resize.h rename to code/components/jomjol_image_proc/stb_image_resize.h diff --git a/code/lib/jomjol_image_proc/stb_image_write.h b/code/components/jomjol_image_proc/stb_image_write.h similarity index 100% rename from code/lib/jomjol_image_proc/stb_image_write.h rename to code/components/jomjol_image_proc/stb_image_write.h diff --git a/code/components/jomjol_logfile/CMakeLists.txt b/code/components/jomjol_logfile/CMakeLists.txt new file mode 100644 index 000000000..c7f46e106 --- /dev/null +++ b/code/components/jomjol_logfile/CMakeLists.txt @@ -0,0 +1,7 @@ +FILE(GLOB_RECURSE app_sources ${CMAKE_CURRENT_SOURCE_DIR}/*.*) + +idf_component_register(SRCS ${app_sources} + INCLUDE_DIRS "." + REQUIRES jomjol_time_sntp jomjol_helper) + + diff --git a/code/lib/jomjol_logfile/ClassLogFile.cpp b/code/components/jomjol_logfile/ClassLogFile.cpp similarity index 91% rename from code/lib/jomjol_logfile/ClassLogFile.cpp rename to code/components/jomjol_logfile/ClassLogFile.cpp index ccb75cf0f..78b0df19e 100644 --- a/code/lib/jomjol_logfile/ClassLogFile.cpp +++ b/code/components/jomjol_logfile/ClassLogFile.cpp @@ -75,6 +75,21 @@ void ClassLogFile::WriteToFile(std::string info, bool _time) WriteToDedicatedFile(logpath, info, _time); } +std::string ClassLogFile::GetCurrentFileName() +{ + time_t rawtime; + struct tm* timeinfo; + char buffer[30]; + + time(&rawtime); + timeinfo = localtime(&rawtime); + + strftime(buffer, 30, logfile.c_str(), timeinfo); + std::string logpath = logroot + "/" + buffer; + + return logpath; +} + void ClassLogFile::RemoveOld() { if (retentionInDays == 0) { diff --git a/code/lib/jomjol_logfile/ClassLogFile.h b/code/components/jomjol_logfile/ClassLogFile.h similarity index 93% rename from code/lib/jomjol_logfile/ClassLogFile.h rename to code/components/jomjol_logfile/ClassLogFile.h index 5915c329c..8f7841ba6 100644 --- a/code/lib/jomjol_logfile/ClassLogFile.h +++ b/code/components/jomjol_logfile/ClassLogFile.h @@ -18,6 +18,8 @@ class ClassLogFile void WriteToFile(std::string info, bool _time = true); void WriteToDedicatedFile(std::string _fn, std::string info, bool _time = true); void RemoveOld(); + + std::string GetCurrentFileName(); }; extern ClassLogFile LogFile; \ No newline at end of file diff --git a/code/components/jomjol_mqtt/CMakeLists.txt b/code/components/jomjol_mqtt/CMakeLists.txt new file mode 100644 index 000000000..432727ebb --- /dev/null +++ b/code/components/jomjol_mqtt/CMakeLists.txt @@ -0,0 +1,7 @@ +FILE(GLOB_RECURSE app_sources ${CMAKE_CURRENT_SOURCE_DIR}/*.*) + +idf_component_register(SRCS ${app_sources} + INCLUDE_DIRS "." + REQUIRES tfmicro mqtt jomjol_logfile) + + diff --git a/code/lib/jomjol_mqtt/interface_mqtt.cpp b/code/components/jomjol_mqtt/interface_mqtt.cpp similarity index 100% rename from code/lib/jomjol_mqtt/interface_mqtt.cpp rename to code/components/jomjol_mqtt/interface_mqtt.cpp diff --git a/code/lib/jomjol_mqtt/interface_mqtt.h b/code/components/jomjol_mqtt/interface_mqtt.h similarity index 100% rename from code/lib/jomjol_mqtt/interface_mqtt.h rename to code/components/jomjol_mqtt/interface_mqtt.h diff --git a/code/components/jomjol_tfliteclass/CMakeLists.txt b/code/components/jomjol_tfliteclass/CMakeLists.txt new file mode 100644 index 000000000..8d1407516 --- /dev/null +++ b/code/components/jomjol_tfliteclass/CMakeLists.txt @@ -0,0 +1,7 @@ +FILE(GLOB_RECURSE app_sources ${CMAKE_CURRENT_SOURCE_DIR}/*.*) + +idf_component_register(SRCS ${app_sources} + INCLUDE_DIRS "." + REQUIRES jomjol_image_proc jomjol_logfile esp_http_server esp32-camera-master jomjol_controlcamera jomjol_flowcontroll) + + diff --git a/code/lib/jomjol_tfliteclass/CTfLiteClass.cpp b/code/components/jomjol_tfliteclass/CTfLiteClass.cpp similarity index 100% rename from code/lib/jomjol_tfliteclass/CTfLiteClass.cpp rename to code/components/jomjol_tfliteclass/CTfLiteClass.cpp diff --git a/code/lib/jomjol_tfliteclass/CTfLiteClass.h b/code/components/jomjol_tfliteclass/CTfLiteClass.h similarity index 100% rename from code/lib/jomjol_tfliteclass/CTfLiteClass.h rename to code/components/jomjol_tfliteclass/CTfLiteClass.h diff --git a/code/src/server_tflite.cpp b/code/components/jomjol_tfliteclass/server_tflite.cpp similarity index 100% rename from code/src/server_tflite.cpp rename to code/components/jomjol_tfliteclass/server_tflite.cpp diff --git a/code/src/server_tflite.h b/code/components/jomjol_tfliteclass/server_tflite.h similarity index 100% rename from code/src/server_tflite.h rename to code/components/jomjol_tfliteclass/server_tflite.h diff --git a/code/components/jomjol_time_sntp/CMakeLists.txt b/code/components/jomjol_time_sntp/CMakeLists.txt new file mode 100644 index 000000000..948e38290 --- /dev/null +++ b/code/components/jomjol_time_sntp/CMakeLists.txt @@ -0,0 +1,7 @@ +FILE(GLOB_RECURSE app_sources ${CMAKE_CURRENT_SOURCE_DIR}/*.*) + +idf_component_register(SRCS ${app_sources} + INCLUDE_DIRS "." + REQUIRES tfmicro jomjol_logfile) + + diff --git a/code/lib/jomjol_time_sntp/time_sntp.cpp b/code/components/jomjol_time_sntp/time_sntp.cpp similarity index 66% rename from code/lib/jomjol_time_sntp/time_sntp.cpp rename to code/components/jomjol_time_sntp/time_sntp.cpp index 6c8b90474..4ea55dfe2 100644 --- a/code/lib/jomjol_time_sntp/time_sntp.cpp +++ b/code/components/jomjol_time_sntp/time_sntp.cpp @@ -17,10 +17,12 @@ #include "esp_log.h" #include "esp_attr.h" #include "esp_sleep.h" -#include "nvs_flash.h" -#include "protocol_examples_common.h" +// #include "nvs_flash.h" +// #include "protocol_examples_common.h" #include "esp_sntp.h" +#include "ClassLogFile.h" + static const char *TAG = "sntp"; RTC_DATA_ATTR int boot_count = 0; @@ -56,8 +58,8 @@ std::string gettimestring(const char * frm) } char strftime_buf[64]; - setenv("TZ", "UTC-2", 1); - tzset(); +// setenv("TZ", "UTC-2", 1); +// tzset(); localtime_r(&now, &timeinfo); strftime(strftime_buf, sizeof(strftime_buf), frm, &timeinfo); @@ -65,7 +67,7 @@ std::string gettimestring(const char * frm) return result; } -void setup_time(void) +void setup_time() { ++boot_count; ESP_LOGI(TAG, "Boot count: %d", boot_count); @@ -84,10 +86,10 @@ void setup_time(void) } char strftime_buf[64]; - // Set timezone to Berlin Standard Time - setenv("TZ", "UTC+9", 1); -// setenv("TZ", "Europe/Berlin", 1); - tzset(); + setTimeZone("CET-1CEST,M3.5.0,M10.5.0/3"); +// setTimeZone("Europe/Berlin"); +// setTimeZone("Asia/Tokyo"); + localtime_r(&now, &timeinfo); strftime(strftime_buf, sizeof(strftime_buf), "%c", &timeinfo); ESP_LOGI(TAG, "The current date/time in Berlin is: %s", strftime_buf); @@ -96,14 +98,22 @@ void setup_time(void) ESP_LOGI(TAG, "The current date/time in Berlin is: %s", strftime_buf); std::string zw = gettimestring("%Y%m%d-%H%M%S"); - printf("time %s\n", zw.c_str()); + printf("timeist %s\n", zw.c_str()); } +void setTimeZone(std::string _tzstring) +{ + setenv("TZ", _tzstring.c_str(), 1); + tzset(); + printf("TimeZone set to %s\n", _tzstring.c_str()); + _tzstring = "Time zone set to " + _tzstring; + LogFile.WriteToFile(_tzstring); +} static void obtain_time(void) { // initialize_sntp(); - + // wait for time to be set time_t now = 0; struct tm timeinfo = {}; @@ -113,6 +123,14 @@ static void obtain_time(void) ESP_LOGI(TAG, "Waiting for system time to be set... (%d/%d)", retry, retry_count); vTaskDelay(2000 / portTICK_PERIOD_MS); } + if (retry == retry_count) { + LogFile.WriteToFile("Time Synchzronisation nicht erfolgreich ..."); + } + else + { + LogFile.WriteToFile("Time erfolgreich ..."); + } + time(&now); localtime_r(&now, &timeinfo); } @@ -125,3 +143,32 @@ static void initialize_sntp(void) sntp_set_time_sync_notification_cb(time_sync_notification_cb); sntp_init(); } + + +void task_doTimeSync(void *pvParameter) +{ + time_t now; + struct tm timeinfo; + char strftime_buf[64]; + int *zw_int = (int*) pvParameter; + + printf("Start Autoupdate Time every: %d Stunden\n", *zw_int ); + TickType_t xDelay = ((*zw_int) * 60 * 60 * 1000) / portTICK_PERIOD_MS; + + while (1) + { + obtain_time(); + localtime_r(&now, &timeinfo); + strftime(strftime_buf, sizeof(strftime_buf), "%c", &timeinfo); + ESP_LOGI(TAG, "The current date/time in Berlin is: %s", strftime_buf); + + strftime(strftime_buf, sizeof(strftime_buf), "%Y-%m-%d_%H:%M", &timeinfo); + ESP_LOGI(TAG, "The current date/time in Berlin is: %s", strftime_buf); + + std::string zw = gettimestring("%Y%m%d-%H%M%S"); + printf("time %s\n", zw.c_str()); + + vTaskDelay( xDelay ); + } + vTaskDelete(NULL); //Delete this task if it exits from the loop above +} \ No newline at end of file diff --git a/code/lib/jomjol_time_sntp/time_sntp.h b/code/components/jomjol_time_sntp/time_sntp.h similarity index 68% rename from code/lib/jomjol_time_sntp/time_sntp.h rename to code/components/jomjol_time_sntp/time_sntp.h index 8aa71e654..62847c972 100644 --- a/code/lib/jomjol_time_sntp/time_sntp.h +++ b/code/components/jomjol_time_sntp/time_sntp.h @@ -9,7 +9,7 @@ #include "esp_log.h" #include "esp_attr.h" #include "esp_sleep.h" -#include "nvs_flash.h" +// #include "nvs_flash.h" #include "esp_sntp.h" @@ -17,4 +17,6 @@ extern int boot_count; void setup_time(void); -std::string gettimestring(const char * frm); \ No newline at end of file +std::string gettimestring(const char * frm); +void task_doTimeSync(void *pvParameter); +void setTimeZone(std::string _tzstring); \ No newline at end of file diff --git a/code/lib/tfmicro/CMakeLists.txt b/code/components/tfmicro/CMakeLists.txt similarity index 100% rename from code/lib/tfmicro/CMakeLists.txt rename to code/components/tfmicro/CMakeLists.txt diff --git a/code/lib/tfmicro/tensorflow/core/public/version.h b/code/components/tfmicro/tensorflow/core/public/version.h similarity index 100% rename from code/lib/tfmicro/tensorflow/core/public/version.h rename to code/components/tfmicro/tensorflow/core/public/version.h diff --git a/code/lib/tfmicro/tensorflow/lite/c/builtin_op_data.h b/code/components/tfmicro/tensorflow/lite/c/builtin_op_data.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/c/builtin_op_data.h rename to code/components/tfmicro/tensorflow/lite/c/builtin_op_data.h diff --git a/code/lib/tfmicro/tensorflow/lite/c/common.c b/code/components/tfmicro/tensorflow/lite/c/common.c similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/c/common.c rename to code/components/tfmicro/tensorflow/lite/c/common.c diff --git a/code/lib/tfmicro/tensorflow/lite/c/common.h b/code/components/tfmicro/tensorflow/lite/c/common.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/c/common.h rename to code/components/tfmicro/tensorflow/lite/c/common.h diff --git a/code/lib/tfmicro/tensorflow/lite/core/api/error_reporter.cc b/code/components/tfmicro/tensorflow/lite/core/api/error_reporter.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/core/api/error_reporter.cc rename to code/components/tfmicro/tensorflow/lite/core/api/error_reporter.cc diff --git a/code/lib/tfmicro/tensorflow/lite/core/api/error_reporter.h b/code/components/tfmicro/tensorflow/lite/core/api/error_reporter.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/core/api/error_reporter.h rename to code/components/tfmicro/tensorflow/lite/core/api/error_reporter.h diff --git a/code/lib/tfmicro/tensorflow/lite/core/api/flatbuffer_conversions.cc b/code/components/tfmicro/tensorflow/lite/core/api/flatbuffer_conversions.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/core/api/flatbuffer_conversions.cc rename to code/components/tfmicro/tensorflow/lite/core/api/flatbuffer_conversions.cc diff --git a/code/lib/tfmicro/tensorflow/lite/core/api/flatbuffer_conversions.h b/code/components/tfmicro/tensorflow/lite/core/api/flatbuffer_conversions.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/core/api/flatbuffer_conversions.h rename to code/components/tfmicro/tensorflow/lite/core/api/flatbuffer_conversions.h diff --git a/code/lib/tfmicro/tensorflow/lite/core/api/op_resolver.cc b/code/components/tfmicro/tensorflow/lite/core/api/op_resolver.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/core/api/op_resolver.cc rename to code/components/tfmicro/tensorflow/lite/core/api/op_resolver.cc diff --git a/code/lib/tfmicro/tensorflow/lite/core/api/op_resolver.h b/code/components/tfmicro/tensorflow/lite/core/api/op_resolver.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/core/api/op_resolver.h rename to code/components/tfmicro/tensorflow/lite/core/api/op_resolver.h diff --git a/code/lib/tfmicro/tensorflow/lite/core/api/profiler.h b/code/components/tfmicro/tensorflow/lite/core/api/profiler.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/core/api/profiler.h rename to code/components/tfmicro/tensorflow/lite/core/api/profiler.h diff --git a/code/lib/tfmicro/tensorflow/lite/core/api/tensor_utils.cc b/code/components/tfmicro/tensorflow/lite/core/api/tensor_utils.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/core/api/tensor_utils.cc rename to code/components/tfmicro/tensorflow/lite/core/api/tensor_utils.cc diff --git a/code/lib/tfmicro/tensorflow/lite/core/api/tensor_utils.h b/code/components/tfmicro/tensorflow/lite/core/api/tensor_utils.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/core/api/tensor_utils.h rename to code/components/tfmicro/tensorflow/lite/core/api/tensor_utils.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/common.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/common.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/common.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/common.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/compatibility.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/compatibility.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/compatibility.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/compatibility.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/cppmath.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/cppmath.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/cppmath.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/cppmath.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/max.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/max.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/max.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/max.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/min.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/min.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/min.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/min.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/optimized/neon_check.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/optimized/neon_check.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/optimized/neon_check.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/optimized/neon_check.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/portable_tensor.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/portable_tensor.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/portable_tensor.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/portable_tensor.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/quantization_util.cc b/code/components/tfmicro/tensorflow/lite/kernels/internal/quantization_util.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/quantization_util.cc rename to code/components/tfmicro/tensorflow/lite/kernels/internal/quantization_util.cc diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/quantization_util.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/quantization_util.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/quantization_util.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/quantization_util.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/add.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/add.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/add.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/add.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/arg_min_max.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/arg_min_max.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/arg_min_max.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/arg_min_max.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/binary_function.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/binary_function.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/binary_function.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/binary_function.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/ceil.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/ceil.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/ceil.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/ceil.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/comparisons.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/comparisons.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/comparisons.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/comparisons.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/concatenation.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/concatenation.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/concatenation.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/concatenation.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/conv.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/conv.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/conv.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/conv.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/depthwiseconv_uint8.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/depthwiseconv_uint8.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/depthwiseconv_uint8.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/depthwiseconv_uint8.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/dequantize.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/dequantize.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/dequantize.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/dequantize.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/floor.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/floor.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/floor.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/floor.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/fully_connected.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/fully_connected.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/fully_connected.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/fully_connected.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/hard_swish.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/hard_swish.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/hard_swish.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/hard_swish.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/add.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/add.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/add.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/add.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/conv.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/conv.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/conv.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/conv.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/depthwise_conv.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/depthwise_conv.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/depthwise_conv.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/depthwise_conv.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/fully_connected.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/fully_connected.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/fully_connected.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/fully_connected.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/l2normalization.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/l2normalization.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/l2normalization.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/l2normalization.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/logistic.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/logistic.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/logistic.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/logistic.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/mean.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/mean.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/mean.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/mean.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/mul.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/mul.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/mul.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/mul.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/pooling.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/pooling.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/pooling.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/pooling.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/tanh.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/tanh.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/tanh.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/integer_ops/tanh.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/l2normalization.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/l2normalization.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/l2normalization.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/l2normalization.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/logistic.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/logistic.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/logistic.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/logistic.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/maximum_minimum.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/maximum_minimum.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/maximum_minimum.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/maximum_minimum.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/mul.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/mul.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/mul.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/mul.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/neg.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/neg.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/neg.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/neg.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/pad.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/pad.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/pad.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/pad.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/pooling.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/pooling.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/pooling.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/pooling.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/prelu.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/prelu.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/prelu.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/prelu.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/process_broadcast_shapes.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/process_broadcast_shapes.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/process_broadcast_shapes.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/process_broadcast_shapes.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/quantize.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/quantize.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/quantize.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/quantize.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/reduce.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/reduce.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/reduce.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/reduce.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/requantize.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/requantize.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/requantize.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/requantize.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/resize_nearest_neighbor.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/resize_nearest_neighbor.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/resize_nearest_neighbor.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/resize_nearest_neighbor.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/round.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/round.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/round.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/round.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/softmax.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/softmax.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/softmax.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/softmax.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/strided_slice.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/strided_slice.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/strided_slice.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/strided_slice.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/sub.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/sub.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/sub.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/sub.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/tanh.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/reference/tanh.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/reference/tanh.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/reference/tanh.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/strided_slice_logic.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/strided_slice_logic.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/strided_slice_logic.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/strided_slice_logic.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/tensor_ctypes.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/tensor_ctypes.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/tensor_ctypes.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/tensor_ctypes.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/internal/types.h b/code/components/tfmicro/tensorflow/lite/kernels/internal/types.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/internal/types.h rename to code/components/tfmicro/tensorflow/lite/kernels/internal/types.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/kernel_util.cc b/code/components/tfmicro/tensorflow/lite/kernels/kernel_util.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/kernel_util.cc rename to code/components/tfmicro/tensorflow/lite/kernels/kernel_util.cc diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/kernel_util.h b/code/components/tfmicro/tensorflow/lite/kernels/kernel_util.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/kernel_util.h rename to code/components/tfmicro/tensorflow/lite/kernels/kernel_util.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/op_macros.h b/code/components/tfmicro/tensorflow/lite/kernels/op_macros.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/op_macros.h rename to code/components/tfmicro/tensorflow/lite/kernels/op_macros.h diff --git a/code/lib/tfmicro/tensorflow/lite/kernels/padding.h b/code/components/tfmicro/tensorflow/lite/kernels/padding.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/kernels/padding.h rename to code/components/tfmicro/tensorflow/lite/kernels/padding.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/all_ops_resolver.cc b/code/components/tfmicro/tensorflow/lite/micro/all_ops_resolver.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/all_ops_resolver.cc rename to code/components/tfmicro/tensorflow/lite/micro/all_ops_resolver.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/all_ops_resolver.h b/code/components/tfmicro/tensorflow/lite/micro/all_ops_resolver.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/all_ops_resolver.h rename to code/components/tfmicro/tensorflow/lite/micro/all_ops_resolver.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/benchmarks/keyword_scrambled_model_data.cc b/code/components/tfmicro/tensorflow/lite/micro/benchmarks/keyword_scrambled_model_data.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/benchmarks/keyword_scrambled_model_data.cc rename to code/components/tfmicro/tensorflow/lite/micro/benchmarks/keyword_scrambled_model_data.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/benchmarks/keyword_scrambled_model_data.h b/code/components/tfmicro/tensorflow/lite/micro/benchmarks/keyword_scrambled_model_data.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/benchmarks/keyword_scrambled_model_data.h rename to code/components/tfmicro/tensorflow/lite/micro/benchmarks/keyword_scrambled_model_data.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/compatibility.h b/code/components/tfmicro/tensorflow/lite/micro/compatibility.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/compatibility.h rename to code/components/tfmicro/tensorflow/lite/micro/compatibility.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/debug_log.cc b/code/components/tfmicro/tensorflow/lite/micro/debug_log.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/debug_log.cc rename to code/components/tfmicro/tensorflow/lite/micro/debug_log.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/debug_log.h b/code/components/tfmicro/tensorflow/lite/micro/debug_log.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/debug_log.h rename to code/components/tfmicro/tensorflow/lite/micro/debug_log.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/activation_utils.h b/code/components/tfmicro/tensorflow/lite/micro/kernels/activation_utils.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/activation_utils.h rename to code/components/tfmicro/tensorflow/lite/micro/kernels/activation_utils.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/activations.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/activations.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/activations.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/activations.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/add.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/add.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/add.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/add.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/arg_min_max.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/arg_min_max.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/arg_min_max.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/arg_min_max.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/ceil.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/ceil.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/ceil.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/ceil.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/circular_buffer.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/circular_buffer.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/circular_buffer.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/circular_buffer.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/comparisons.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/comparisons.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/comparisons.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/comparisons.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/concatenation.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/concatenation.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/concatenation.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/concatenation.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/conv.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/conv.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/conv.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/conv.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/depthwise_conv.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/depthwise_conv.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/depthwise_conv.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/depthwise_conv.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/dequantize.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/dequantize.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/dequantize.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/dequantize.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/elementwise.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/elementwise.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/elementwise.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/elementwise.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/ethosu.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/ethosu.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/ethosu.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/ethosu.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/floor.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/floor.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/floor.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/floor.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/fully_connected.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/fully_connected.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/fully_connected.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/fully_connected.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/fully_connected.h b/code/components/tfmicro/tensorflow/lite/micro/kernels/fully_connected.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/fully_connected.h rename to code/components/tfmicro/tensorflow/lite/micro/kernels/fully_connected.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/hard_swish.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/hard_swish.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/hard_swish.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/hard_swish.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/kernel_runner.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/kernel_runner.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/kernel_runner.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/kernel_runner.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/kernel_runner.h b/code/components/tfmicro/tensorflow/lite/micro/kernels/kernel_runner.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/kernel_runner.h rename to code/components/tfmicro/tensorflow/lite/micro/kernels/kernel_runner.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/kernel_util.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/kernel_util.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/kernel_util.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/kernel_util.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/kernel_util.h b/code/components/tfmicro/tensorflow/lite/micro/kernels/kernel_util.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/kernel_util.h rename to code/components/tfmicro/tensorflow/lite/micro/kernels/kernel_util.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/l2norm.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/l2norm.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/l2norm.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/l2norm.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/logical.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/logical.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/logical.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/logical.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/logistic.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/logistic.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/logistic.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/logistic.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/maximum_minimum.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/maximum_minimum.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/maximum_minimum.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/maximum_minimum.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/micro_ops.h b/code/components/tfmicro/tensorflow/lite/micro/kernels/micro_ops.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/micro_ops.h rename to code/components/tfmicro/tensorflow/lite/micro/kernels/micro_ops.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/micro_utils.h b/code/components/tfmicro/tensorflow/lite/micro/kernels/micro_utils.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/micro_utils.h rename to code/components/tfmicro/tensorflow/lite/micro/kernels/micro_utils.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/mul.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/mul.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/mul.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/mul.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/neg.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/neg.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/neg.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/neg.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/pack.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/pack.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/pack.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/pack.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/pad.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/pad.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/pad.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/pad.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/pooling.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/pooling.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/pooling.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/pooling.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/prelu.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/prelu.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/prelu.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/prelu.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/quantize.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/quantize.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/quantize.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/quantize.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/reduce.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/reduce.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/reduce.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/reduce.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/reshape.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/reshape.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/reshape.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/reshape.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/resize_nearest_neighbor.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/resize_nearest_neighbor.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/resize_nearest_neighbor.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/resize_nearest_neighbor.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/round.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/round.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/round.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/round.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/shape.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/shape.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/shape.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/shape.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/softmax.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/softmax.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/softmax.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/softmax.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/split.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/split.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/split.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/split.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/split_v.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/split_v.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/split_v.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/split_v.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/strided_slice.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/strided_slice.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/strided_slice.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/strided_slice.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/sub.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/sub.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/sub.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/sub.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/svdf.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/svdf.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/svdf.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/svdf.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/tanh.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/tanh.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/tanh.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/tanh.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/kernels/unpack.cc b/code/components/tfmicro/tensorflow/lite/micro/kernels/unpack.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/kernels/unpack.cc rename to code/components/tfmicro/tensorflow/lite/micro/kernels/unpack.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/memory_helpers.cc b/code/components/tfmicro/tensorflow/lite/micro/memory_helpers.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/memory_helpers.cc rename to code/components/tfmicro/tensorflow/lite/micro/memory_helpers.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/memory_helpers.h b/code/components/tfmicro/tensorflow/lite/micro/memory_helpers.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/memory_helpers.h rename to code/components/tfmicro/tensorflow/lite/micro/memory_helpers.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/memory_planner/greedy_memory_planner.cc b/code/components/tfmicro/tensorflow/lite/micro/memory_planner/greedy_memory_planner.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/memory_planner/greedy_memory_planner.cc rename to code/components/tfmicro/tensorflow/lite/micro/memory_planner/greedy_memory_planner.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/memory_planner/greedy_memory_planner.h b/code/components/tfmicro/tensorflow/lite/micro/memory_planner/greedy_memory_planner.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/memory_planner/greedy_memory_planner.h rename to code/components/tfmicro/tensorflow/lite/micro/memory_planner/greedy_memory_planner.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/memory_planner/linear_memory_planner.cc b/code/components/tfmicro/tensorflow/lite/micro/memory_planner/linear_memory_planner.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/memory_planner/linear_memory_planner.cc rename to code/components/tfmicro/tensorflow/lite/micro/memory_planner/linear_memory_planner.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/memory_planner/linear_memory_planner.h b/code/components/tfmicro/tensorflow/lite/micro/memory_planner/linear_memory_planner.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/memory_planner/linear_memory_planner.h rename to code/components/tfmicro/tensorflow/lite/micro/memory_planner/linear_memory_planner.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/memory_planner/memory_planner.h b/code/components/tfmicro/tensorflow/lite/micro/memory_planner/memory_planner.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/memory_planner/memory_planner.h rename to code/components/tfmicro/tensorflow/lite/micro/memory_planner/memory_planner.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/micro_allocator.cc b/code/components/tfmicro/tensorflow/lite/micro/micro_allocator.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/micro_allocator.cc rename to code/components/tfmicro/tensorflow/lite/micro/micro_allocator.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/micro_allocator.h b/code/components/tfmicro/tensorflow/lite/micro/micro_allocator.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/micro_allocator.h rename to code/components/tfmicro/tensorflow/lite/micro/micro_allocator.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/micro_error_reporter.cc b/code/components/tfmicro/tensorflow/lite/micro/micro_error_reporter.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/micro_error_reporter.cc rename to code/components/tfmicro/tensorflow/lite/micro/micro_error_reporter.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/micro_error_reporter.h b/code/components/tfmicro/tensorflow/lite/micro/micro_error_reporter.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/micro_error_reporter.h rename to code/components/tfmicro/tensorflow/lite/micro/micro_error_reporter.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/micro_interpreter.cc b/code/components/tfmicro/tensorflow/lite/micro/micro_interpreter.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/micro_interpreter.cc rename to code/components/tfmicro/tensorflow/lite/micro/micro_interpreter.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/micro_interpreter.h b/code/components/tfmicro/tensorflow/lite/micro/micro_interpreter.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/micro_interpreter.h rename to code/components/tfmicro/tensorflow/lite/micro/micro_interpreter.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/micro_mutable_op_resolver.h b/code/components/tfmicro/tensorflow/lite/micro/micro_mutable_op_resolver.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/micro_mutable_op_resolver.h rename to code/components/tfmicro/tensorflow/lite/micro/micro_mutable_op_resolver.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/micro_op_resolver.h b/code/components/tfmicro/tensorflow/lite/micro/micro_op_resolver.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/micro_op_resolver.h rename to code/components/tfmicro/tensorflow/lite/micro/micro_op_resolver.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/micro_profiler.cc b/code/components/tfmicro/tensorflow/lite/micro/micro_profiler.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/micro_profiler.cc rename to code/components/tfmicro/tensorflow/lite/micro/micro_profiler.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/micro_profiler.h b/code/components/tfmicro/tensorflow/lite/micro/micro_profiler.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/micro_profiler.h rename to code/components/tfmicro/tensorflow/lite/micro/micro_profiler.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/micro_string.cc b/code/components/tfmicro/tensorflow/lite/micro/micro_string.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/micro_string.cc rename to code/components/tfmicro/tensorflow/lite/micro/micro_string.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/micro_string.h b/code/components/tfmicro/tensorflow/lite/micro/micro_string.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/micro_string.h rename to code/components/tfmicro/tensorflow/lite/micro/micro_string.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/micro_time.cc b/code/components/tfmicro/tensorflow/lite/micro/micro_time.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/micro_time.cc rename to code/components/tfmicro/tensorflow/lite/micro/micro_time.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/micro_time.h b/code/components/tfmicro/tensorflow/lite/micro/micro_time.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/micro_time.h rename to code/components/tfmicro/tensorflow/lite/micro/micro_time.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/micro_utils.cc b/code/components/tfmicro/tensorflow/lite/micro/micro_utils.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/micro_utils.cc rename to code/components/tfmicro/tensorflow/lite/micro/micro_utils.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/micro_utils.h b/code/components/tfmicro/tensorflow/lite/micro/micro_utils.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/micro_utils.h rename to code/components/tfmicro/tensorflow/lite/micro/micro_utils.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/recording_micro_allocator.cc b/code/components/tfmicro/tensorflow/lite/micro/recording_micro_allocator.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/recording_micro_allocator.cc rename to code/components/tfmicro/tensorflow/lite/micro/recording_micro_allocator.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/recording_micro_allocator.h b/code/components/tfmicro/tensorflow/lite/micro/recording_micro_allocator.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/recording_micro_allocator.h rename to code/components/tfmicro/tensorflow/lite/micro/recording_micro_allocator.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/recording_micro_interpreter.h b/code/components/tfmicro/tensorflow/lite/micro/recording_micro_interpreter.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/recording_micro_interpreter.h rename to code/components/tfmicro/tensorflow/lite/micro/recording_micro_interpreter.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/recording_simple_memory_allocator.cc b/code/components/tfmicro/tensorflow/lite/micro/recording_simple_memory_allocator.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/recording_simple_memory_allocator.cc rename to code/components/tfmicro/tensorflow/lite/micro/recording_simple_memory_allocator.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/recording_simple_memory_allocator.h b/code/components/tfmicro/tensorflow/lite/micro/recording_simple_memory_allocator.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/recording_simple_memory_allocator.h rename to code/components/tfmicro/tensorflow/lite/micro/recording_simple_memory_allocator.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/simple_memory_allocator.cc b/code/components/tfmicro/tensorflow/lite/micro/simple_memory_allocator.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/simple_memory_allocator.cc rename to code/components/tfmicro/tensorflow/lite/micro/simple_memory_allocator.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/simple_memory_allocator.h b/code/components/tfmicro/tensorflow/lite/micro/simple_memory_allocator.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/simple_memory_allocator.h rename to code/components/tfmicro/tensorflow/lite/micro/simple_memory_allocator.h diff --git a/code/lib/tfmicro/tensorflow/lite/micro/test_helpers.cc b/code/components/tfmicro/tensorflow/lite/micro/test_helpers.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/test_helpers.cc rename to code/components/tfmicro/tensorflow/lite/micro/test_helpers.cc diff --git a/code/lib/tfmicro/tensorflow/lite/micro/test_helpers.h b/code/components/tfmicro/tensorflow/lite/micro/test_helpers.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/micro/test_helpers.h rename to code/components/tfmicro/tensorflow/lite/micro/test_helpers.h diff --git a/code/components/tfmicro/tensorflow/lite/micro/testing/micro_test.h b/code/components/tfmicro/tensorflow/lite/micro/testing/micro_test.h new file mode 100644 index 000000000..d74d8f4f1 --- /dev/null +++ b/code/components/tfmicro/tensorflow/lite/micro/testing/micro_test.h @@ -0,0 +1,238 @@ +/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +==============================================================================*/ + +// An ultra-lightweight testing framework designed for use with microcontroller +// applications. Its only dependency is on TensorFlow Lite's ErrorReporter +// interface, where log messages are output. This is designed to be usable even +// when no standard C or C++ libraries are available, and without any dynamic +// memory allocation or reliance on global constructors. +// +// To build a test, you use syntax similar to gunit, but with some extra +// decoration to create a hidden 'main' function containing each of the tests to +// be run. Your code should look something like: +// ---------------------------------------------------------------------------- +// #include "path/to/this/header" +// +// TF_LITE_MICRO_TESTS_BEGIN +// +// TF_LITE_MICRO_TEST(SomeTest) { +// TF_LITE_LOG_EXPECT_EQ(true, true); +// } +// +// TF_LITE_MICRO_TESTS_END +// ---------------------------------------------------------------------------- +// If you compile this for your platform, you'll get a normal binary that you +// should be able to run. Executing it will output logging information like this +// to stderr (or whatever equivalent is available and written to by +// ErrorReporter): +// ---------------------------------------------------------------------------- +// Testing SomeTest +// 1/1 tests passed +// ~~~ALL TESTS PASSED~~~ +// ---------------------------------------------------------------------------- +// This is designed to be human-readable, so you can just run tests manually, +// but the string "~~~ALL TESTS PASSED~~~" should only appear if all of the +// tests do pass. This makes it possible to integrate with automated test +// systems by scanning the output logs and looking for that magic value. +// +// This framework is intended to be a rudimentary alternative to no testing at +// all on systems that struggle to run more conventional approaches, so use with +// caution! + +#ifndef TENSORFLOW_LITE_MICRO_TESTING_MICRO_TEST_H_ +#define TENSORFLOW_LITE_MICRO_TESTING_MICRO_TEST_H_ + +#include "tensorflow/lite/c/common.h" +#include "tensorflow/lite/micro/micro_error_reporter.h" + +namespace micro_test { +extern int tests_passed; +extern int tests_failed; +extern bool is_test_complete; +extern bool did_test_fail; +extern tflite::ErrorReporter* reporter; +} // namespace micro_test + +#define TF_LITE_MICRO_TESTS_BEGIN \ + namespace micro_test { \ + int tests_passed; \ + int tests_failed; \ + bool is_test_complete; \ + bool did_test_fail; \ + tflite::ErrorReporter* reporter; \ + } \ + \ + int main(int argc, char** argv) { \ + micro_test::tests_passed = 0; \ + micro_test::tests_failed = 0; \ + tflite::MicroErrorReporter error_reporter; \ + micro_test::reporter = &error_reporter; + +#define TF_LITE_MICRO_TESTS_END \ + micro_test::reporter->Report( \ + "%d/%d tests passed", micro_test::tests_passed, \ + (micro_test::tests_failed + micro_test::tests_passed)); \ + if (micro_test::tests_failed == 0) { \ + micro_test::reporter->Report("~~~ALL TESTS PASSED~~~\n"); \ + return kTfLiteOk; \ + } else { \ + micro_test::reporter->Report("~~~SOME TESTS FAILED~~~\n"); \ + return kTfLiteError; \ + } \ + } + +// TODO(petewarden): I'm going to hell for what I'm doing to this poor for loop. +#define TF_LITE_MICRO_TEST(name) \ + micro_test::reporter->Report("Testing " #name); \ + for (micro_test::is_test_complete = false, \ + micro_test::did_test_fail = false; \ + !micro_test::is_test_complete; micro_test::is_test_complete = true, \ + micro_test::tests_passed += (micro_test::did_test_fail) ? 0 : 1, \ + micro_test::tests_failed += (micro_test::did_test_fail) ? 1 : 0) + +#define TF_LITE_MICRO_EXPECT(x) \ + do { \ + if (!(x)) { \ + micro_test::reporter->Report(#x " failed at %s:%d", __FILE__, __LINE__); \ + micro_test::did_test_fail = true; \ + } \ + } while (false) + +// TODO(b/139142772): this macro is used with types other than ints even though +// the printf specifier is %d. +#define TF_LITE_MICRO_EXPECT_EQ(x, y) \ + do { \ + auto vx = x; \ + auto vy = y; \ + if ((vx) != (vy)) { \ + micro_test::reporter->Report(#x " == " #y " failed at %s:%d (%d vs %d)", \ + __FILE__, __LINE__, static_cast(vx), \ + static_cast(vy)); \ + micro_test::did_test_fail = true; \ + } \ + } while (false) + +#define TF_LITE_MICRO_EXPECT_NE(x, y) \ + do { \ + if ((x) == (y)) { \ + micro_test::reporter->Report(#x " != " #y " failed at %s:%d", __FILE__, \ + __LINE__); \ + micro_test::did_test_fail = true; \ + } \ + } while (false) + +// TODO(wangtz): Making it more generic once needed. +#define TF_LITE_MICRO_ARRAY_ELEMENT_EXPECT_NEAR(arr1, idx1, arr2, idx2, \ + epsilon) \ + do { \ + auto delta = ((arr1)[(idx1)] > (arr2)[(idx2)]) \ + ? ((arr1)[(idx1)] - (arr2)[(idx2)]) \ + : ((arr2)[(idx2)] - (arr1)[(idx1)]); \ + if (delta > epsilon) { \ + micro_test::reporter->Report( \ + #arr1 "[%d] (%f) near " #arr2 "[%d] (%f) failed at %s:%d", \ + static_cast(idx1), static_cast((arr1)[(idx1)]), \ + static_cast(idx2), static_cast((arr2)[(idx2)]), \ + __FILE__, __LINE__); \ + micro_test::did_test_fail = true; \ + } \ + } while (false) + +#define TF_LITE_MICRO_EXPECT_NEAR(x, y, epsilon) \ + do { \ + auto vx = (x); \ + auto vy = (y); \ + auto delta = ((vx) > (vy)) ? ((vx) - (vy)) : ((vy) - (vx)); \ + if (delta > epsilon) { \ + micro_test::reporter->Report( \ + #x " (%f) near " #y " (%f) failed at %s:%d", \ + static_cast(vx), static_cast(vy), __FILE__, \ + __LINE__); \ + micro_test::did_test_fail = true; \ + } \ + } while (false) + +#define TF_LITE_MICRO_EXPECT_GT(x, y) \ + do { \ + if ((x) <= (y)) { \ + micro_test::reporter->Report(#x " > " #y " failed at %s:%d", __FILE__, \ + __LINE__); \ + micro_test::did_test_fail = true; \ + } \ + } while (false) + +#define TF_LITE_MICRO_EXPECT_LT(x, y) \ + do { \ + if ((x) >= (y)) { \ + micro_test::reporter->Report(#x " < " #y " failed at %s:%d", __FILE__, \ + __LINE__); \ + micro_test::did_test_fail = true; \ + } \ + } while (false) + +#define TF_LITE_MICRO_EXPECT_GE(x, y) \ + do { \ + if ((x) < (y)) { \ + micro_test::reporter->Report(#x " >= " #y " failed at %s:%d", __FILE__, \ + __LINE__); \ + micro_test::did_test_fail = true; \ + } \ + } while (false) + +#define TF_LITE_MICRO_EXPECT_LE(x, y) \ + do { \ + if ((x) > (y)) { \ + micro_test::reporter->Report(#x " <= " #y " failed at %s:%d", __FILE__, \ + __LINE__); \ + micro_test::did_test_fail = true; \ + } \ + } while (false) + +#define TF_LITE_MICRO_EXPECT_TRUE(x) \ + do { \ + if (!(x)) { \ + micro_test::reporter->Report(#x " was not true failed at %s:%d", \ + __FILE__, __LINE__); \ + micro_test::did_test_fail = true; \ + } \ + } while (false) + +#define TF_LITE_MICRO_EXPECT_FALSE(x) \ + do { \ + if (x) { \ + micro_test::reporter->Report(#x " was not false failed at %s:%d", \ + __FILE__, __LINE__); \ + micro_test::did_test_fail = true; \ + } \ + } while (false) + +#define TF_LITE_MICRO_FAIL(msg) \ + do { \ + micro_test::reporter->Report("FAIL: %s", msg, __FILE__, __LINE__); \ + micro_test::did_test_fail = true; \ + } while (false) + +#define TF_LITE_MICRO_EXPECT_STRING_EQ(string1, string2) \ + do { \ + for (int i = 0; string1[i] != '\0' && string2[i] != '\0'; i++) { \ + if (string1[i] != string2[i]) { \ + micro_test::reporter->Report("FAIL: %s did not match %s", string1, \ + string2, __FILE__, __LINE__); \ + micro_test::did_test_fail = true; \ + } \ + } \ + } while (false) + +#endif // TENSORFLOW_LITE_MICRO_TESTING_MICRO_TEST_H_ diff --git a/code/components/tfmicro/tensorflow/lite/micro/testing/test_conv_model.cc b/code/components/tfmicro/tensorflow/lite/micro/testing/test_conv_model.cc new file mode 100644 index 000000000..358479c31 --- /dev/null +++ b/code/components/tfmicro/tensorflow/lite/micro/testing/test_conv_model.cc @@ -0,0 +1,1799 @@ +/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +==============================================================================*/ + +#include "tensorflow/lite/micro/testing/test_conv_model.h" + +extern const unsigned char kTestConvModelData[] = { + 0x24, 0x00, 0x00, 0x00, 0x54, 0x46, 0x4c, 0x33, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x1c, 0x00, 0x04, 0x00, + 0x08, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x14, 0x00, 0x00, 0x00, 0x18, 0x00, + 0x12, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0xb4, 0x52, 0x00, 0x00, + 0x3c, 0x42, 0x00, 0x00, 0x24, 0x42, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, + 0x08, 0x00, 0x0c, 0x00, 0x04, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, + 0x08, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, + 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x00, 0x0f, 0x00, 0x00, 0x00, + 0xd4, 0x41, 0x00, 0x00, 0xc0, 0x41, 0x00, 0x00, 0x64, 0x41, 0x00, 0x00, + 0xc0, 0x40, 0x00, 0x00, 0x7c, 0x40, 0x00, 0x00, 0x58, 0x40, 0x00, 0x00, + 0x44, 0x13, 0x00, 0x00, 0xa0, 0x12, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x00, + 0x80, 0x00, 0x00, 0x00, 0x6c, 0x00, 0x00, 0x00, 0x58, 0x00, 0x00, 0x00, + 0x44, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0xd6, 0xbe, 0xff, 0xff, 0x04, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, + 0x31, 0x2e, 0x35, 0x2e, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x94, 0xb2, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa4, 0xb2, 0xff, 0xff, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0xb4, 0xb2, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0xc4, 0xb2, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd4, 0xb2, 0xff, 0xff, + 0x00, 0x00, 0x00, 0x00, 0x46, 0xbf, 0xff, 0xff, 0x04, 0x00, 0x00, 0x00, + 0x00, 0x12, 0x00, 0x00, 0x7d, 0x6a, 0x24, 0xa1, 0xf6, 0xca, 0x70, 0x2f, + 0x8e, 0xb1, 0xe8, 0x15, 0x42, 0x08, 0x32, 0xf6, 0xe9, 0xfb, 0xa0, 0xda, + 0xe4, 0xf1, 0x0a, 0x9d, 0x72, 0x66, 0x88, 0x37, 0xe9, 0x9e, 0x08, 0x54, + 0x61, 0x51, 0x40, 0x93, 0x4d, 0xcf, 0xe2, 0x08, 0x36, 0xad, 0xb1, 0x8e, + 0xfc, 0xe4, 0x02, 0xd1, 0x9a, 0x1e, 0x05, 0x67, 0xa3, 0x3b, 0xa6, 0xde, + 0x5d, 0x2a, 0xcc, 0x8c, 0x3c, 0x2e, 0xd2, 0x15, 0xc2, 0x60, 0xab, 0xea, + 0x73, 0xe4, 0x88, 0xc1, 0x66, 0x21, 0xb0, 0xe5, 0x5b, 0x55, 0xda, 0x69, + 0x2d, 0x0c, 0x66, 0x07, 0x74, 0x36, 0xcd, 0x79, 0x81, 0xf9, 0x5c, 0x2c, + 0xb5, 0x93, 0xab, 0x76, 0xa1, 0x1f, 0x20, 0x90, 0x89, 0xe1, 0x41, 0xc7, + 0x32, 0xc2, 0xa3, 0x03, 0x77, 0x86, 0x79, 0xf7, 0x89, 0xc1, 0xb1, 0x42, + 0x2a, 0x75, 0xc7, 0xc1, 0x2f, 0xbb, 0xf6, 0xe8, 0x23, 0x99, 0x9b, 0x74, + 0x9c, 0xe5, 0x91, 0x15, 0xc6, 0x08, 0x0e, 0xae, 0x7c, 0xd3, 0x27, 0x54, + 0xfb, 0xa7, 0x49, 0x65, 0x52, 0x2f, 0x63, 0x33, 0x8b, 0x5f, 0x67, 0x21, + 0x25, 0xe0, 0xcf, 0x95, 0x03, 0x05, 0x19, 0x0c, 0x3d, 0xfc, 0x95, 0x42, + 0xa9, 0x26, 0x27, 0x54, 0xa3, 0x71, 0xb4, 0x70, 0x7a, 0x40, 0x0d, 0xc1, + 0x72, 0x04, 0x81, 0x3b, 0xb9, 0xb7, 0xd2, 0xc1, 0x4e, 0xf8, 0xff, 0xca, + 0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, 0x4f, 0x2a, 0x0b, 0x91, 0xff, 0xf0, 0x96, 0x14, 0x00, + 0xaa, 0xfb, 0x1a, 0x44, 0x21, 0x9b, 0xe8, 0x71, 0x31, 0x9e, 0xd6, 0x58, + 0x7f, 0x02, 0x36, 0x5e, 0x92, 0x8d, 0x93, 0x99, 0xac, 0xb6, 0x87, 0x39, + 0xda, 0x47, 0xef, 0x70, 0xd4, 0xf7, 0x8d, 0x2a, 0xbd, 0x08, 0x40, 0x4d, + 0xec, 0xeb, 0x4e, 0x1b, 0x85, 0x5d, 0x55, 0x64, 0x4c, 0xf3, 0x5e, 0x8f, + 0x68, 0x1e, 0x5e, 0x64, 0xc3, 0xb8, 0x92, 0x24, 0x41, 0x98, 0x78, 0x09, + 0x85, 0x87, 0x17, 0x2c, 0x88, 0x9e, 0x62, 0x86, 0x4f, 0x44, 0x71, 0x9c, + 0xa8, 0x73, 0xb3, 0x14, 0x1f, 0x3c, 0x96, 0x6b, 0xab, 0xad, 0x43, 0xdf, + 0x67, 0x34, 0x66, 0x30, 0x1d, 0x15, 0xd3, 0xe7, 0xd5, 0x8b, 0x00, 0xaa, + 0x11, 0x77, 0xea, 0x36, 0xc9, 0x49, 0x99, 0x93, 0x01, 0x6e, 0x00, 0x4a, + 0x93, 0x08, 0x2c, 0x44, 0x01, 0x91, 0xe0, 0x91, 0xdd, 0xab, 0x70, 0x4b, + 0xe7, 0xbf, 0x2d, 0x0f, 0xd4, 0x52, 0xa0, 0xf1, 0x5d, 0xa0, 0xcc, 0xb9, + 0x1b, 0xa2, 0x62, 0xeb, 0x23, 0x1e, 0x8e, 0xbb, 0x2b, 0xb6, 0xc5, 0x3a, + 0xdf, 0x32, 0x99, 0xde, 0x2e, 0x94, 0xcf, 0x98, 0x99, 0x34, 0x59, 0x60, + 0xcf, 0x57, 0xe0, 0xb0, 0xd9, 0x89, 0xaa, 0xc2, 0x4f, 0x1e, 0x38, 0x88, + 0xca, 0x32, 0x93, 0x9b, 0xa3, 0x2b, 0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db, 0xe6, 0x40, 0x23, 0xa4, 0xe9, 0x24, + 0x48, 0xb8, 0x73, 0x23, 0x67, 0xbf, 0x26, 0xca, 0x95, 0x4f, 0xa0, 0x60, + 0x95, 0xa2, 0x0f, 0x29, 0xed, 0x5d, 0x71, 0x66, 0x94, 0xa3, 0xd0, 0x2a, + 0x4e, 0x17, 0x32, 0x18, 0xe6, 0xd6, 0x75, 0x84, 0xa5, 0x2a, 0x72, 0x18, + 0x60, 0x85, 0xde, 0x66, 0x22, 0x52, 0xf6, 0x45, 0xd6, 0xf0, 0xed, 0x93, + 0x0f, 0x5a, 0xa9, 0x12, 0x2a, 0xc4, 0xa8, 0x3d, 0x97, 0xc9, 0xc7, 0x84, + 0x71, 0x14, 0xb3, 0x54, 0xb6, 0xf7, 0x92, 0x7a, 0xc0, 0x6e, 0x02, 0xf7, + 0x48, 0xdb, 0x7c, 0xc1, 0x45, 0x21, 0xdb, 0x1b, 0x51, 0xc3, 0xea, 0xc0, + 0x19, 0x31, 0xe4, 0x6c, 0x20, 0x5f, 0x08, 0xe7, 0x88, 0xf7, 0xc0, 0x6e, + 0xee, 0x5f, 0x20, 0x33, 0x68, 0xef, 0xc5, 0x33, 0x1b, 0x40, 0x66, 0xc5, + 0xa3, 0x68, 0xdb, 0xbc, 0x8a, 0xb7, 0x54, 0xdb, 0xc7, 0xc5, 0x2c, 0x42, + 0x65, 0x51, 0xab, 0x56, 0x94, 0x73, 0xec, 0xd9, 0x95, 0xfa, 0x6a, 0x56, + 0xef, 0x22, 0x95, 0xa4, 0x75, 0x46, 0xee, 0x60, 0x8b, 0x25, 0xa6, 0x92, + 0x0a, 0x8e, 0xc1, 0x39, 0x97, 0x69, 0xa9, 0x19, 0x97, 0xf1, 0x0f, 0x61, + 0xc2, 0x40, 0x7d, 0x62, 0xe9, 0x5e, 0x22, 0x1f, 0x27, 0xe5, 0xc7, 0xe7, + 0xa4, 0x35, 0x5d, 0x90, 0xc7, 0x38, 0x38, 0x2d, 0xb0, 0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8d, + 0x78, 0xe7, 0x27, 0xf6, 0x67, 0x7e, 0x17, 0xa3, 0x18, 0xdc, 0x13, 0x08, + 0x1e, 0x4b, 0xc7, 0x8e, 0xf6, 0xba, 0x90, 0xb3, 0x32, 0x42, 0x37, 0x6b, + 0x60, 0xa9, 0x23, 0xb5, 0x89, 0x57, 0x7b, 0xdb, 0x98, 0x35, 0x1f, 0x95, + 0x86, 0xa5, 0x83, 0x36, 0xd1, 0x8c, 0x8e, 0xc0, 0x77, 0x5c, 0x40, 0x8e, + 0xec, 0xdf, 0x25, 0x69, 0x0a, 0x83, 0x8f, 0xdf, 0x91, 0x52, 0x31, 0xab, + 0xd5, 0x61, 0x37, 0xbd, 0x83, 0x1d, 0x4c, 0x8b, 0xa1, 0x4a, 0x81, 0x8b, + 0xa0, 0xf4, 0x41, 0xbd, 0x54, 0x36, 0x36, 0x56, 0x6d, 0x4c, 0xe7, 0xd9, + 0xc7, 0x09, 0xd9, 0x4b, 0xf0, 0x54, 0x45, 0x3c, 0x62, 0x47, 0x17, 0x54, + 0x1f, 0x55, 0x2f, 0x74, 0xdc, 0x11, 0xe9, 0xa3, 0xb5, 0x75, 0xe9, 0x10, + 0xde, 0x62, 0xa9, 0x24, 0x39, 0xd4, 0x17, 0xbb, 0x15, 0xe4, 0x48, 0x09, + 0x26, 0x6a, 0xbd, 0x3b, 0x10, 0xa1, 0x55, 0xe5, 0x99, 0x53, 0x1e, 0xd2, + 0xee, 0x7c, 0x54, 0xd8, 0x06, 0x8b, 0x1e, 0xe7, 0x3f, 0x08, 0x38, 0x9b, + 0x2e, 0x41, 0xdf, 0x0b, 0x7e, 0x83, 0x7f, 0x04, 0x38, 0xa5, 0x1f, 0x46, + 0x8b, 0x94, 0x28, 0x9f, 0xb8, 0x8c, 0x41, 0xfe, 0x96, 0xe2, 0x24, 0xd1, + 0x97, 0xa4, 0xcb, 0xba, 0xfa, 0x19, 0xc9, 0x57, 0x30, 0x0f, 0x88, 0x58, + 0xa9, 0x67, 0x31, 0x74, 0x51, 0x34, 0x03, 0xbc, 0xff, 0x3b, 0x12, 0x61, + 0x84, 0x63, 0x74, 0xec, 0x4d, 0xda, 0xa3, 0x56, 0xc3, 0xe5, 0x5e, 0x4a, + 0x03, 0x26, 0x88, 0x1a, 0x1d, 0x7f, 0xe8, 0x3f, 0x61, 0x78, 0xb6, 0xc5, + 0x66, 0xb7, 0xb4, 0xc1, 0xe7, 0x82, 0xc1, 0x44, 0xdf, 0xf9, 0x30, 0x30, + 0xe1, 0xd0, 0xf8, 0xf5, 0x40, 0x5a, 0x72, 0x29, 0xef, 0x30, 0xe1, 0x01, + 0xca, 0x1b, 0xb0, 0xa6, 0xa3, 0x17, 0x2b, 0x58, 0x03, 0xda, 0x25, 0x0f, + 0xdc, 0x49, 0x7c, 0xc5, 0x8f, 0x2d, 0x83, 0xca, 0x43, 0x08, 0xc0, 0x36, + 0x70, 0x1e, 0x42, 0xfd, 0xac, 0x4d, 0x31, 0xcf, 0x68, 0x4a, 0xda, 0xd8, + 0xcb, 0xee, 0xaa, 0xfc, 0xcf, 0xcc, 0xe6, 0xb2, 0x77, 0x8b, 0x83, 0x5b, + 0xd5, 0x3d, 0x55, 0xba, 0x03, 0x45, 0xce, 0x51, 0x78, 0x36, 0xcb, 0xcd, + 0x9a, 0x0f, 0x58, 0xbe, 0x15, 0x10, 0xdb, 0x3f, 0x1d, 0x28, 0x27, 0x11, + 0x69, 0xca, 0x95, 0x68, 0xa8, 0xc8, 0xff, 0x0c, 0x3f, 0xd5, 0x11, 0x91, + 0x35, 0x45, 0x35, 0x9d, 0x1c, 0x58, 0xa2, 0xe5, 0xab, 0x83, 0x95, 0x10, + 0x44, 0xd4, 0xc0, 0x27, 0xf4, 0xc2, 0x72, 0x0f, 0x1a, 0x3d, 0x1c, 0xf2, + 0x7f, 0xb9, 0x54, 0xf2, 0x41, 0x24, 0xa8, 0x67, 0x30, 0xa0, 0x57, 0x67, + 0x00, 0xa8, 0x06, 0x60, 0xc3, 0x74, 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 0x25, 0xab, 0x0d, 0x8f, + 0xb1, 0x0a, 0xbf, 0x63, 0x0e, 0xf2, 0x0c, 0x9d, 0x39, 0xa1, 0x98, 0x98, + 0x69, 0x91, 0xd1, 0x9b, 0xe8, 0xcf, 0x16, 0x65, 0x02, 0xc9, 0x67, 0x72, + 0x71, 0x7c, 0xfb, 0x41, 0x2d, 0xe4, 0xd3, 0xfb, 0x44, 0x8a, 0x7a, 0x88, + 0x32, 0x62, 0x26, 0x63, 0xfe, 0x5b, 0x0c, 0x4f, 0x6c, 0xad, 0x2f, 0x64, + 0x6f, 0xc9, 0xda, 0x95, 0x10, 0xbe, 0xd1, 0xfa, 0x8b, 0x67, 0x64, 0x35, + 0x2d, 0xed, 0xca, 0xf3, 0x12, 0xb7, 0x06, 0xc3, 0xa9, 0x8e, 0x3f, 0x09, + 0x4d, 0x1f, 0x50, 0x3a, 0x97, 0xb7, 0xa7, 0xce, 0x4d, 0x46, 0xf1, 0x61, + 0xc1, 0x06, 0x95, 0x0d, 0x07, 0xa2, 0xbc, 0xed, 0xeb, 0x45, 0xb4, 0x69, + 0x05, 0x7a, 0x30, 0x47, 0xa3, 0xbf, 0x81, 0xa9, 0xa7, 0xf0, 0x53, 0x36, + 0x31, 0x37, 0x13, 0xe5, 0x0e, 0xd6, 0xe6, 0xc7, 0x17, 0x17, 0x21, 0x6d, + 0x36, 0xd0, 0xf6, 0x2a, 0xea, 0x2d, 0x32, 0x0e, 0x90, 0x03, 0x30, 0x4d, + 0x30, 0x31, 0xaa, 0x79, 0x2d, 0xae, 0x2e, 0xb0, 0x13, 0xad, 0x63, 0x69, + 0x67, 0xd8, 0xf3, 0x6e, 0xa4, 0x34, 0xcf, 0x02, 0x10, 0xdd, 0x76, 0xfa, + 0xa7, 0xb0, 0x92, 0xea, 0x47, 0xbd, 0xff, 0xf9, 0xac, 0x8a, 0x1f, 0x31, + 0xf8, 0x05, 0xd4, 0xce, 0x23, 0xad, 0x32, 0x8c, 0x6c, 0x92, 0x85,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0x57, 0x10, 0xec, 0x7a, 0xb7, 0x89, 0x05, 0x26, 0xf1, 0xb2, 0x53, + 0xa1, 0x91, 0xc5, 0x2a, 0xfb, 0x5a, 0xce, 0x5d, 0xd1, 0x6b, 0xbc, 0xb7, + 0x39, 0x09, 0x43, 0xdf, 0x20, 0xd3, 0xc1, 0x74, 0x8d, 0xf4, 0x0b, 0x2a, + 0xc7, 0xe8, 0xa1, 0x5f, 0xb2, 0xfe, 0x1a, 0x96, 0x3a, 0x92, 0xbc, 0x8f, + 0x85, 0xe2, 0x22, 0x73, 0x3f, 0x49, 0xb3, 0x6b, 0x90, 0xbd, 0xcb, 0x3f, + 0x36, 0x6c, 0x3d, 0xe3, 0x00, 0x00, 0x00, 0x00, 0x56, 0xd1, 0xff, 0xff, + 0x04, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x1f, 0x05, 0x81, 0x3f, + 0x25, 0x68, 0xde, 0x72, 0x88, 0x26, 0x66, 0x2d, 0xe4, 0xc8, 0x81, 0xf8, + 0x5d, 0x98, 0xa2, 0xc2, 0x02, 0x62, 0x63, 0x47, 0xe6, 0x61, 0x7f, 0xee, + 0xca, 0x3f, 0x81, 0xd7, 0x1e, 0xa9, 0xbf, 0x66, 0x59, 0x7f, 0xc3, 0x35, + 0x03, 0xae, 0xe5, 0xf2, 0x4d, 0x81, 0x82, 0x78, 0x5e, 0xaf, 0xaa, 0xd1, + 0x27, 0x41, 0x19, 0x93, 0xa8, 0x9b, 0x78, 0x4e, 0x95, 0x89, 0x7f, 0xce, + 0x49, 0xd0, 0x45, 0xb5, 0x7f, 0x1d, 0xe9, 0xee, 0x7f, 0x91, 0xf4, 0x0a, + 0x67, 0x7d, 0x75, 0xff, 0x38, 0x81, 0x27, 0x90, 0x14, 0xa5, 0x99, 0x40, + 0x5b, 0xe6, 0x9a, 0x81, 0x75, 0x22, 0x5f, 0x18, 0x81, 0x34, 0xb7, 0x54, + 0x2e, 0x8d, 0x81, 0x36, 0x0e, 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xcf, 0xe6, 0x22, 0x27, + 0x17, 0xea, 0x75, 0x3f, 0x69, 0xd4, 0xcf, 0x53, 0x92, 0x98, 0xf4, 0xfe, + 0x13, 0xa8, 0xe2, 0xb2, 0x48, 0x5f, 0x64, 0xab, 0x2b, 0x61, 0x97, 0xf5, + 0xc5, 0xb6, 0xef, 0x32, 0x4e, 0x47, 0x26, 0x42, 0x48, 0x9c, 0x5b, 0x24, + 0xa3, 0xcb, 0x70, 0xc7, 0x31, 0x6c, 0xc8, 0x4d, 0x5c, 0x02, 0xca, 0x71, + 0x1e, 0x56, 0xdb, 0x27, 0x66, 0x5d, 0x4f, 0x0b, 0x09, 0x57, 0xbe, 0x72, + 0x17, 0x3b, 0xce, 0xdd, 0xd2, 0x20, 0x13, 0x67, 0x32, 0x04, 0xee, 0xc4, + 0x66, 0x23, 0x0e, 0x97, 0x5e, 0x21, 0x30, 0xb2, 0xe4, 0x16, 0x06, 0x57, + 0xc3, 0x9b, 0x29, 0x5b, 0x76, 0xd0, 0x36, 0xac, 0xe6, 0xa2, 0x91, 0x57, + 0x96, 0x4e, 0x1c, 0x6f, 0x4a, 0x03, 0x50, 0x55, 0x6d, 0xaf, 0x9a, 0x29, + 0xc9, 0x61, 0x6c, 0x18, 0x4c, 0xb9, 0xd5, 0x41, 0xf8, 0x75, 0x2b, 0xc3, + 0x0e, 0x69, 0x9f, 0x45, 0x93, 0x2f, 0xa6, 0xf9, 0x30, 0x65, 0x05, 0x13, + 0xe3, 0x00, 0x54, 0x0e, 0xa4, 0xb5, 0x89, 0x6d, 0x4d, 0x11, 0x3d, 0x2a, + 0x29, 0x99, 0xd9, 0xdf, 0x75, 0xce, 0x01, 0x21, 0xbc, 0x26, 0xb3, 0x22, + 0xf9, 0xb0, 0x45, 0x5c, 0xf8, 0xea, 0xb2, 0x08, 0x1a, 0xf7, 0xa0, 0x70, + 0x65, 0xa8, 0xab, 0xe1, 0x92, 0xcc, 0xcc, 0x1f, 0x0e, 0x36, 0x60, 0xb7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, 0x6e, 0x53, 0xff, 0x95, 0xf3, 0xc1, 0x9b, + 0xcd, 0x21, 0x15, 0x3b, 0x5f, 0xfe, 0x4e, 0xaf, 0x3f, 0xf8, 0xe3, 0xa8, + 0x35, 0xee, 0x44, 0x33, 0xc7, 0x8c, 0x9c, 0x1c, 0x33, 0x55, 0x3c, 0x4a, + 0xa4, 0x35, 0xf6, 0xf0, 0x32, 0x8e, 0xed, 0x6d, 0x06, 0xff, 0x8d, 0x24, + 0x05, 0x72, 0x4c, 0xa2, 0x97, 0x25, 0x93, 0x3d, 0x79, 0x18, 0x22, 0x15, + 0xec, 0x5c, 0xc4, 0x10, 0x65, 0xec, 0x90, 0x6d, 0x28, 0xba, 0x93, 0xb5, + 0x2f, 0x53, 0xe4, 0x00, 0x9c, 0x39, 0xf5, 0x4c, 0xde, 0x51, 0x39, 0xc3, + 0xd8, 0x03, 0xc3, 0x97, 0xe1, 0xa8, 0x3e, 0x06, 0x26, 0x4d, 0xd9, 0x49, + 0x75, 0xbb, 0xd5, 0x69, 0x20, 0xfb, 0x85, 0x12, 0xc9, 0xac, 0xfc, 0x05, + 0xad, 0x57, 0xa9, 0x58, 0xcd, 0xfd, 0xbe, 0x64, 0x31, 0x50, 0x4d, 0xa4, + 0x93, 0xb6, 0x23, 0x3b, 0xfd, 0xd9, 0xdb, 0x46, 0xdd, 0x1f, 0x07, 0x54, + 0xc2, 0xc2, 0xd6, 0xad, 0xf6, 0x21, 0x39, 0xa1, 0x96, 0x53, 0x12, 0x46, + 0x5a, 0xc8, 0xf3, 0xf8, 0xe2, 0xa3, 0xd0, 0x29, 0x3f, 0x30, 0xca, 0x0b, + 0x57, 0xab, 0xcf, 0x1e, 0x08, 0x59, 0x3d, 0x41, 0x6a, 0xf7, 0xb2, 0xfc, + 0xff, 0x33, 0x46, 0xd1, 0x1a, 0xa6, 0x91, 0x54, 0xca, 0x27, 0x5a, 0x94, + 0x13, 0xf4, 0xf0, 0xcf, 0x58, 0xe0, 0x96, 0x50,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 0x09, 0x93, 0x5a, 0x70, 0xc3, 0x21, + 0x5f, 0xce, 0xc2, 0xdd, 0xcf, 0x61, 0xed, 0x1c, 0xfb, 0x2f, 0x57, 0xf7, + 0x31, 0xb8, 0x3e, 0x92, 0x29, 0xd4, 0x47, 0x6a, 0x19, 0x66, 0x00, 0xc2, + 0xc4, 0x6c, 0xb5, 0xc5, 0x68, 0x24, 0xa8, 0x64, 0x26, 0x72, 0x43, 0x20, + 0x9f, 0xf1, 0x3f, 0xac, 0x64, 0xb5, 0x12, 0x26, 0x13, 0x76, 0x52, 0x05, + 0xda, 0x57, 0xe3, 0x53, 0x73, 0x30, 0x21, 0x27, 0x75, 0x8d, 0x37, 0xd1, + 0x77, 0x40, 0x97, 0x2a, 0xb7, 0x0b, 0x2e, 0x9e, 0x4c, 0x36, 0x75, 0x44, + 0x15, 0xdb, 0x96, 0x70, 0xf9, 0x33, 0x9a, 0x1e, 0x6e, 0x13, 0x05, 0x38, + 0x2c, 0xbf, 0x0a, 0xdd, 0x2b, 0x2b, 0x38, 0x77, 0xa9, 0x00, 0x2d, 0x5e, + 0xee, 0x4b, 0xf3, 0x20, 0x7a, 0x90, 0x97, 0x44, 0xdf, 0x55, 0xfd, 0x50, + 0xe3, 0x24, 0x25, 0xa9, 0xd9, 0x3f, 0x6d, 0x09, 0x32, 0x67, 0xb5, 0x43, + 0xf1, 0xc7, 0xa7, 0xfb, 0x92, 0xde, 0xc3, 0xbf, 0x64, 0x6b, 0x35, 0xda, + 0x08, 0x94, 0x68, 0xb0, 0xc8, 0x3f, 0xb5, 0x9f, 0x15, 0x05, 0xff, 0x6c, + 0xbc, 0x22, 0x61, 0xf4, 0x67, 0xf8, 0x1f, 0x2e, 0x91, 0xc8, 0x12, 0xdc, + 0xcb, 0x22, 0x05, 0xb8, 0xab, 0x0d, 0x0e, 0xd7, 0x04, 0x8e, 0x32, 0x0e, + 0xfe, 0x72, 0x79, 0xc3, 0xba, 0xd8, 0x68, 0x3e, 0x5d, 0xab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, 0x3d, 0x59, 0x72, + 0x94, 0x48, 0x60, 0xeb, 0xe7, 0xaa, 0x68, 0x72, 0x22, 0x15, 0x39, 0xf0, + 0x47, 0x43, 0xeb, 0x37, 0xb1, 0x3b, 0x9e, 0x05, 0x12, 0xdb, 0x74, 0x18, + 0xfe, 0x11, 0xcb, 0xae, 0xe0, 0xed, 0x1c, 0xe3, 0x19, 0x71, 0x56, 0xa6, + 0x04, 0xe6, 0x20, 0x62, 0xfd, 0xb1, 0x57, 0x44, 0xca, 0x3f, 0xdf, 0x51, + 0x23, 0x76, 0x3b, 0x70, 0x27, 0x33, 0x62, 0x74, 0x94, 0xff, 0x70, 0xcc, + 0xd4, 0xbf, 0x67, 0x12, 0x17, 0x5f, 0x71, 0xf8, 0x8f, 0x09, 0xca, 0xb5, + 0x49, 0x38, 0xcf, 0x1f, 0x94, 0x9a, 0xe6, 0x76, 0x0e, 0xa6, 0x5a, 0x2c, + 0x36, 0x61, 0x41, 0x2d, 0x14, 0x2f, 0x35, 0xa2, 0xaa, 0x2d, 0xd5, 0x54, + 0x3c, 0x4e, 0xa0, 0x63, 0xa9, 0x9e, 0xe9, 0x65, 0x62, 0xcf, 0x5a, 0x1a, + 0xb9, 0x70, 0xf7, 0xf1, 0x8a, 0xc7, 0x19, 0x6e, 0x34, 0xa0, 0xbb, 0x1b, + 0x76, 0x9b, 0x60, 0x20, 0xfd, 0xff, 0xe1, 0x40, 0x5e, 0xd7, 0x49, 0xd3, + 0x3c, 0x0f, 0x52, 0xae, 0x37, 0x38, 0x1d, 0xd5, 0xd0, 0xe7, 0xd6, 0xfc, + 0x06, 0x3b, 0x50, 0x06, 0x9c, 0xb4, 0x37, 0x9a, 0x53, 0x09, 0x56, 0xa4, + 0xa8, 0x64, 0x70, 0xa7, 0xaf, 0xb9, 0xd9, 0x19, 0xbc, 0x5b, 0x04, 0x07, + 0x68, 0xc0, 0xa4, 0xc0, 0x3d, 0x32, 0x36, 0x94, 0x24, 0xd3, 0x36, 0x1f,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 0x98, + 0x39, 0x58, 0x52, 0x11, 0xed, 0x95, 0x3c, 0x94, 0xf0, 0x6c, 0xa2, 0x3e, + 0x5f, 0x5f, 0x05, 0x98, 0xf1, 0x73, 0xab, 0xc7, 0xa8, 0x4b, 0x92, 0x73, + 0xda, 0x59, 0x1d, 0x56, 0x11, 0xc2, 0x38, 0x43, 0xdb, 0x4b, 0xbe, 0x08, + 0xdd, 0xf2, 0x5d, 0x47, 0x26, 0xdc, 0x16, 0xf9, 0x62, 0xf8, 0x92, 0x19, + 0x5c, 0x6f, 0x2b, 0xe1, 0x15, 0x66, 0xfa, 0xdb, 0x3a, 0xe0, 0x92, 0x9c, + 0x70, 0x91, 0x3f, 0xb8, 0xb0, 0x01, 0xc1, 0x44, 0xf6, 0x62, 0x47, 0x37, + 0xe9, 0xd9, 0x4c, 0x0f, 0x99, 0x6a, 0xc4, 0x60, 0x26, 0x2f, 0xc6, 0x43, + 0x50, 0x62, 0xee, 0x44, 0x21, 0xbd, 0xad, 0x50, 0x2d, 0x58, 0x78, 0xea, + 0x5a, 0x5f, 0x5c, 0xf7, 0x28, 0xa9, 0xdf, 0x0e, 0xd3, 0x67, 0xdf, 0x1f, + 0x4c, 0xd3, 0xe9, 0x5e, 0x0f, 0xa3, 0xb7, 0x56, 0xa5, 0x4e, 0x5f, 0x2a, + 0xb6, 0x14, 0x5e, 0x2f, 0x16, 0x71, 0x48, 0x59, 0x77, 0x6b, 0xf9, 0x6c, + 0x79, 0xba, 0xc4, 0x26, 0x30, 0x44, 0x61, 0x62, 0x60, 0xef, 0x35, 0x95, + 0xe3, 0x77, 0xd5, 0xc8, 0x44, 0xa4, 0xf8, 0x95, 0xba, 0xd1, 0x73, 0x6f, + 0x92, 0xf2, 0xd3, 0x98, 0x4c, 0x8f, 0xe0, 0x2e, 0x27, 0xaa, 0x2f, 0x63, + 0x00, 0x00, 0x00, 0x00, 0x06, 0xff, 0xff, 0xff, 0x04, 0x00, 0x00, 0x00, + 0x08, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x80, 0x04, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x26, 0xff, 0xff, 0xff, 0x04, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, + 0x0e, 0xfe, 0xff, 0xff, 0xbb, 0xfd, 0xff, 0xff, 0xe1, 0x05, 0x00, 0x00, + 0x4b, 0x0f, 0x00, 0x00, 0x8e, 0x15, 0x00, 0x00, 0x7f, 0x04, 0x00, 0x00, + 0x02, 0x02, 0x00, 0x00, 0x53, 0xe6, 0xff, 0xff, 0xa6, 0x04, 0x00, 0x00, + 0xdf, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x66, 0xff, 0xff, 0xff, 0x04, 0x00, 0x00, 0x00, + 0x80, 0x00, 0x00, 0x00, 0x7f, 0xfd, 0xff, 0xff, 0x3e, 0xf8, 0xff, 0xff, + 0xae, 0x03, 0x00, 0x00, 0x5c, 0xfe, 0xff, 0xff, 0x82, 0xfa, 0xff, 0xff, + 0xbd, 0xf8, 0xff, 0xff, 0x04, 0xfe, 0xff, 0xff, 0x8c, 0xfe, 0xff, 0xff, + 0x9b, 0xf8, 0xff, 0xff, 0x51, 0x02, 0x00, 0x00, 0x19, 0xfe, 0xff, 0xff, + 0x54, 0xfe, 0xff, 0xff, 0x8f, 0xff, 0xff, 0xff, 0xe7, 0xfd, 0xff, 0xff, + 0xc2, 0x07, 0x00, 0x00, 0x36, 0x06, 0x00, 0x00, 0x57, 0xfd, 0xff, 0xff, + 0xa3, 0x03, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x79, 0x03, 0x00, 0x00, + 0x9b, 0xf7, 0xff, 0xff, 0xc7, 0x04, 0x00, 0x00, 0xbf, 0x06, 0x00, 0x00, + 0x86, 0xfe, 0xff, 0xff, 0x20, 0xfb, 0xff, 0xff, 0x90, 0xfc, 0xff, 0xff, + 0x16, 0x00, 0x00, 0x00, 0x8e, 0xff, 0xff, 0xff, 0xa0, 0x03, 0x00, 0x00, + 0xc7, 0xff, 0xff, 0xff, 0x51, 0x01, 0x00, 0x00, 0x24, 0xf8, 0xff, 0xff, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x06, 0x00, 0x08, 0x00, 0x04, 0x00, 0x06, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0xee, 0x01, 0x00, 0x00, + 0xda, 0x02, 0x00, 0x00, 0xa9, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, + 0xc4, 0xfe, 0xff, 0xff, 0xfa, 0xfc, 0xff, 0xff, 0xc0, 0xff, 0xff, 0xff, + 0x6a, 0xff, 0xff, 0xff, 0x92, 0x02, 0x00, 0x00, 0xa4, 0xff, 0xff, 0xff, + 0xfd, 0xfe, 0xff, 0xff, 0x4e, 0xfd, 0xff, 0xff, 0x87, 0x00, 0x00, 0x00, + 0x19, 0xfe, 0xff, 0xff, 0x17, 0xff, 0xff, 0xff, 0xa0, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0xf4, 0xf3, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x04, 0xf4, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x4d, 0x4c, 0x49, 0x52, + 0x20, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 0x2e, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, + 0x18, 0x00, 0x04, 0x00, 0x08, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x14, 0x00, + 0x0e, 0x00, 0x00, 0x00, 0xf8, 0x01, 0x00, 0x00, 0xec, 0x01, 0x00, 0x00, + 0xe0, 0x01, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x6d, 0x61, 0x69, 0x6e, 0x00, 0x00, 0x00, 0x00, + 0x07, 0x00, 0x00, 0x00, 0xa4, 0x01, 0x00, 0x00, 0x4c, 0x01, 0x00, 0x00, + 0xfc, 0x00, 0x00, 0x00, 0xa8, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, + 0x38, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x82, 0xfe, 0xff, 0xff, + 0x05, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x18, 0x00, 0x08, 0x00, + 0x0c, 0x00, 0x10, 0x00, 0x07, 0x00, 0x14, 0x00, 0x0e, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x08, 0x03, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, + 0x0c, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xc8, 0xf4, 0xff, 0xff, + 0x01, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, + 0x0b, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, + 0xe6, 0xfe, 0xff, 0xff, 0x02, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, + 0x02, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x0e, 0x00, 0x1a, 0x00, 0x08, 0x00, 0x0c, 0x00, 0x10, 0x00, + 0x07, 0x00, 0x14, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, + 0x01, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, + 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x18, 0x00, 0x07, 0x00, + 0x08, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x14, 0x00, 0x0e, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, + 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x0a, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, + 0xc2, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x01, 0x24, 0x00, 0x00, 0x00, + 0x18, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xb4, 0xff, 0xff, 0xff, + 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, + 0x08, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x0e, 0x00, 0x14, 0x00, 0x00, 0x00, 0x08, 0x00, 0x0c, 0x00, + 0x07, 0x00, 0x10, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, + 0x30, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, + 0x0c, 0x00, 0x10, 0x00, 0x06, 0x00, 0x08, 0x00, 0x0c, 0x00, 0x07, 0x00, + 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, + 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x10, 0x00, 0x04, 0x00, + 0x08, 0x00, 0x0c, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x10, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x0d, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0xb8, 0x0d, 0x00, 0x00, + 0x64, 0x0c, 0x00, 0x00, 0x64, 0x0a, 0x00, 0x00, 0xe8, 0x09, 0x00, 0x00, + 0x9c, 0x09, 0x00, 0x00, 0x20, 0x09, 0x00, 0x00, 0x6c, 0x07, 0x00, 0x00, + 0x78, 0x04, 0x00, 0x00, 0x74, 0x03, 0x00, 0x00, 0x68, 0x02, 0x00, 0x00, + 0xbc, 0x01, 0x00, 0x00, 0x28, 0x01, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, + 0x54, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xc8, 0xff, 0xff, 0xff, + 0x28, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x02, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x0a, 0x00, 0x00, 0x00, + 0x08, 0x00, 0x00, 0x00, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x0a, 0x00, 0x00, 0x00, 0x14, 0x00, 0x10, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, + 0x14, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, + 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x0c, 0x00, 0x00, 0x00, 0x63, 0x6f, 0x6e, 0x76, 0x32, 0x64, 0x5f, 0x69, + 0x6e, 0x70, 0x75, 0x74, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x30, 0xf3, 0xff, 0xff, 0x00, 0x00, 0x00, 0x09, + 0x6c, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, + 0x14, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, + 0xff, 0xff, 0xff, 0xff, 0x0a, 0x00, 0x00, 0x00, 0x14, 0xf3, 0xff, 0xff, + 0x2c, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x13, 0xc2, 0x47, 0x3b, + 0x01, 0x00, 0x00, 0x00, 0x8d, 0xf4, 0xad, 0x3e, 0x01, 0x00, 0x00, 0x00, + 0x15, 0x00, 0xe0, 0xbe, 0x0d, 0x00, 0x00, 0x00, 0x49, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x6e, 0x74, 0x38, 0x00, 0x00, 0x00, + 0x02, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, + 0xb0, 0xf3, 0xff, 0xff, 0x00, 0x00, 0x00, 0x09, 0x7c, 0x00, 0x00, 0x00, + 0x0c, 0x00, 0x00, 0x00, 0x54, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, + 0x80, 0x04, 0x00, 0x00, 0x94, 0xf3, 0xff, 0xff, 0x30, 0x00, 0x00, 0x00, + 0x24, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x6c, 0x02, 0xa5, 0x3a, + 0x01, 0x00, 0x00, 0x00, 0x6a, 0x5d, 0xa4, 0x3e, 0x01, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x1a, 0x00, 0x00, 0x00, 0x73, 0x65, 0x71, 0x75, + 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2f, 0x66, 0x6c, 0x61, 0x74, 0x74, + 0x65, 0x6e, 0x2f, 0x52, 0x65, 0x73, 0x68, 0x61, 0x70, 0x65, 0x00, 0x00, + 0x02, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, + 0x40, 0xf4, 0xff, 0xff, 0x00, 0x00, 0x00, 0x09, 0x8c, 0x00, 0x00, 0x00, + 0x0b, 0x00, 0x00, 0x00, 0x5c, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, + 0x06, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, + 0x2c, 0xf4, 0xff, 0xff, 0x30, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, + 0x18, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x6c, 0x02, 0xa5, 0x3a, 0x01, 0x00, 0x00, 0x00, + 0x6a, 0x5d, 0xa4, 0x3e, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x20, 0x00, 0x00, 0x00, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x74, 0x69, + 0x61, 0x6c, 0x2f, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x69, + 0x6e, 0x67, 0x32, 0x64, 0x2f, 0x4d, 0x61, 0x78, 0x50, 0x6f, 0x6f, 0x6c, + 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x06, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, + 0xe8, 0xf4, 0xff, 0xff, 0x00, 0x00, 0x00, 0x09, 0xec, 0x00, 0x00, 0x00, + 0x0a, 0x00, 0x00, 0x00, 0x5c, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, + 0x0c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, + 0xd4, 0xf4, 0xff, 0xff, 0x30, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, + 0x18, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x6c, 0x02, 0xa5, 0x3a, 0x01, 0x00, 0x00, 0x00, + 0x6a, 0x5d, 0xa4, 0x3e, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x83, 0x00, 0x00, 0x00, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x74, 0x69, + 0x61, 0x6c, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x32, 0x64, 0x5f, 0x31, 0x2f, + 0x52, 0x65, 0x6c, 0x75, 0x3b, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x74, + 0x69, 0x61, 0x6c, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x32, 0x64, 0x5f, 0x31, + 0x2f, 0x42, 0x69, 0x61, 0x73, 0x41, 0x64, 0x64, 0x3b, 0x73, 0x65, 0x71, + 0x75, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2f, 0x63, 0x6f, 0x6e, 0x76, + 0x32, 0x64, 0x5f, 0x31, 0x2f, 0x43, 0x6f, 0x6e, 0x76, 0x32, 0x44, 0x3b, + 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2f, 0x63, + 0x6f, 0x6e, 0x76, 0x32, 0x64, 0x5f, 0x31, 0x2f, 0x42, 0x69, 0x61, 0x73, + 0x41, 0x64, 0x64, 0x2f, 0x52, 0x65, 0x61, 0x64, 0x56, 0x61, 0x72, 0x69, + 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x0c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, + 0xf0, 0xf5, 0xff, 0xff, 0x00, 0x00, 0x00, 0x09, 0xe4, 0x00, 0x00, 0x00, + 0x09, 0x00, 0x00, 0x00, 0x5c, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, + 0x0e, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, + 0xdc, 0xf5, 0xff, 0xff, 0x30, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, + 0x18, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x15, 0xa1, 0x10, 0x3b, 0x01, 0x00, 0x00, 0x00, + 0x74, 0x10, 0x10, 0x3f, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x7b, 0x00, 0x00, 0x00, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x74, 0x69, + 0x61, 0x6c, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x32, 0x64, 0x2f, 0x52, 0x65, + 0x6c, 0x75, 0x3b, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x74, 0x69, 0x61, + 0x6c, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x32, 0x64, 0x2f, 0x42, 0x69, 0x61, + 0x73, 0x41, 0x64, 0x64, 0x3b, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x74, + 0x69, 0x61, 0x6c, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x32, 0x64, 0x2f, 0x43, + 0x6f, 0x6e, 0x76, 0x32, 0x44, 0x3b, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, + 0x74, 0x69, 0x61, 0x6c, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x32, 0x64, 0x2f, + 0x42, 0x69, 0x61, 0x73, 0x41, 0x64, 0x64, 0x2f, 0x52, 0x65, 0x61, 0x64, + 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x2f, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, + 0x10, 0x00, 0x00, 0x00, 0x3a, 0xf8, 0xff, 0xff, 0x00, 0x00, 0x00, 0x09, + 0xd4, 0x02, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0xac, 0x02, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0xc4, 0xf6, 0xff, 0xff, 0x1c, 0x02, 0x00, 0x00, + 0x94, 0x01, 0x00, 0x00, 0x0c, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, + 0xb9, 0x37, 0x74, 0x3a, 0x8b, 0xfe, 0x77, 0x3a, 0x54, 0xc7, 0x75, 0x3a, + 0xc4, 0x11, 0x78, 0x3a, 0xb9, 0x90, 0x74, 0x3a, 0x3b, 0x97, 0x7b, 0x3a, + 0xe8, 0x57, 0x75, 0x3a, 0x0c, 0x0e, 0x74, 0x3a, 0x76, 0x8b, 0x79, 0x3a, + 0x2b, 0x7b, 0x6d, 0x3a, 0x17, 0xad, 0x71, 0x3a, 0xe4, 0x9b, 0x77, 0x3a, + 0x0b, 0xab, 0x7a, 0x3a, 0x9e, 0x12, 0x75, 0x3a, 0x8c, 0xcf, 0x79, 0x3a, + 0xa0, 0x5a, 0x79, 0x3a, 0x74, 0xc3, 0x78, 0x3a, 0x0e, 0xa9, 0x74, 0x3a, + 0x6b, 0xf8, 0x6f, 0x3a, 0x53, 0xeb, 0x72, 0x3a, 0xff, 0xe2, 0x73, 0x3a, + 0x3b, 0x38, 0x78, 0x3a, 0xed, 0x9e, 0x76, 0x3a, 0x77, 0xbc, 0x6d, 0x3a, + 0x4f, 0xf5, 0x71, 0x3a, 0x17, 0xc9, 0x74, 0x3a, 0x87, 0x84, 0x6b, 0x3a, + 0x4b, 0xc5, 0x78, 0x3a, 0xdd, 0x02, 0x75, 0x3a, 0x0e, 0xcf, 0x78, 0x3a, + 0x14, 0x40, 0x75, 0x3a, 0x2e, 0xca, 0x72, 0x3a, 0x20, 0x00, 0x00, 0x00, + 0x95, 0x2f, 0xef, 0x3d, 0x47, 0x1c, 0xf0, 0x3d, 0xc5, 0xdb, 0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f1, 0xbd, 0x2a, 0xa7, 0xe9, 0xbd, + 0x3c, 0x93, 0xf3, 0xbd, 0xf8, 0x2b, 0xf3, 0xbd, 0xf6, 0x35, 0xed, 0xbd, + 0x94, 0xf4, 0xed, 0xbd, 0x70, 0x94, 0xe9, 0xbd, 0x39, 0xfb, 0xf1, 0xbd, + 0xcb, 0x47, 0xf6, 0xbd, 0x88, 0xb9, 0xe7, 0xbd, 0x49, 0x62, 0xe9, 0xbd, + 0x64, 0x11, 0xf0, 0xbd, 0x85, 0xdf, 0xf2, 0xbd, 0x5c, 0x61, 0xe8, 0xbd, + 0x22, 0x46, 0xf3, 0xbd, 0x5a, 0x8e, 0xf0, 0xbd, 0x70, 0xdd, 0xf6, 0xbd, + 0x94, 0x55, 0xf3, 0xbd, 0x57, 0xba, 0xf0, 0xbd, 0x1a, 0x00, 0x00, 0x00, + 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2f, 0x63, + 0x6f, 0x6e, 0x76, 0x32, 0x64, 0x5f, 0x31, 0x2f, 0x43, 0x6f, 0x6e, 0x76, + 0x32, 0x44, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, + 0x03, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, + 0x2a, 0xfb, 0xff, 0xff, 0x00, 0x00, 0x00, 0x09, 0x94, 0x01, 0x00, 0x00, + 0x07, 0x00, 0x00, 0x00, 0x6c, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0xb4, 0xf9, 0xff, 0xff, 0x1c, 0x01, 0x00, 0x00, 0xd4, 0x00, 0x00, 0x00, + 0x8c, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, + 0xe6, 0x69, 0xc5, 0x3a, 0xa0, 0x8d, 0xa8, 0x3a, 0xfe, 0x5c, 0xc1, 0x3a, + 0x84, 0x01, 0xcb, 0x3a, 0xa2, 0xc2, 0xb5, 0x3a, 0x42, 0x01, 0xd1, 0x3a, + 0xd7, 0x01, 0xcc, 0x3a, 0x20, 0xd8, 0xc7, 0x3a, 0x28, 0x80, 0xa4, 0x3a, + 0xd9, 0x25, 0xbe, 0x3a, 0x39, 0x6f, 0xc4, 0x3a, 0x59, 0x6c, 0xcb, 0x3a, + 0xb8, 0x0a, 0xc2, 0x3a, 0x73, 0x3f, 0xca, 0x3a, 0xb9, 0xed, 0xc5, 0x3a, + 0xe9, 0x9f, 0xc1, 0x3a, 0x10, 0x00, 0x00, 0x00, 0x5b, 0x2e, 0x2f, 0x3e, + 0x3e, 0xd9, 0x06, 0x3e, 0x44, 0xda, 0x3f, 0x3e, 0xd3, 0x09, 0x22, 0x3e, + 0x1d, 0x57, 0x34, 0x3e, 0xa4, 0xb6, 0x44, 0x3e, 0xd3, 0x69, 0x4a, 0x3e, + 0x70, 0x48, 0x46, 0x3e, 0x28, 0x37, 0x23, 0x3e, 0xe6, 0xdb, 0x06, 0x3e, + 0x3c, 0x1d, 0x34, 0x3e, 0x36, 0xba, 0x16, 0x3e, 0x24, 0xa4, 0x34, 0x3e, + 0xf4, 0xfb, 0x37, 0x3e, 0xd6, 0x7b, 0x8a, 0x3d, 0x00, 0x85, 0xe3, 0x3d, + 0x10, 0x00, 0x00, 0x00, 0x12, 0xdf, 0x43, 0xbe, 0x85, 0x3c, 0x27, 0xbe, + 0x54, 0xcd, 0x0d, 0xbe, 0x81, 0x6b, 0x49, 0xbe, 0x33, 0xb1, 0xe7, 0xbd, + 0x3f, 0x5f, 0x4f, 0xbe, 0xa1, 0x63, 0x3e, 0xbe, 0xbb, 0xa7, 0xea, 0xbd, + 0x2d, 0x8c, 0x0e, 0xbe, 0x8d, 0xa9, 0x3c, 0xbe, 0x5b, 0xe6, 0x42, 0xbe, + 0x80, 0xd5, 0x49, 0xbe, 0xa3, 0x86, 0x40, 0xbe, 0xf4, 0xaa, 0x48, 0xbe, + 0xde, 0x61, 0x44, 0xbe, 0xa9, 0x1c, 0x40, 0xbe, 0x18, 0x00, 0x00, 0x00, + 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2f, 0x63, + 0x6f, 0x6e, 0x76, 0x32, 0x64, 0x2f, 0x43, 0x6f, 0x6e, 0x76, 0x32, 0x44, + 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, + 0x03, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0xda, 0xfc, 0xff, 0xff, 0x00, 0x00, 0x00, 0x09, 0x64, 0x00, 0x00, 0x00, + 0x06, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x64, 0xfb, 0xff, 0xff, 0x2c, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, + 0x14, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x07, 0x72, 0x1e, 0x3a, 0x01, 0x00, 0x00, 0x00, 0x32, 0xe2, 0x9b, 0x3d, + 0x01, 0x00, 0x00, 0x00, 0x23, 0x35, 0x9d, 0xbd, 0x17, 0x00, 0x00, 0x00, + 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2f, 0x64, + 0x65, 0x6e, 0x73, 0x65, 0x2f, 0x4d, 0x61, 0x74, 0x4d, 0x75, 0x6c, 0x00, + 0x02, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, + 0x52, 0xfd, 0xff, 0xff, 0x00, 0x00, 0x00, 0x02, 0x38, 0x00, 0x00, 0x00, + 0x05, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, + 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2f, 0x66, + 0x6c, 0x61, 0x74, 0x74, 0x65, 0x6e, 0x2f, 0x43, 0x6f, 0x6e, 0x73, 0x74, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, + 0x9a, 0xfd, 0xff, 0xff, 0x00, 0x00, 0x00, 0x02, 0x68, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x8c, 0xfd, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0xfc, 0x41, 0x4c, 0x35, 0x30, 0x00, 0x00, 0x00, + 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2f, 0x64, + 0x65, 0x6e, 0x73, 0x65, 0x2f, 0x42, 0x69, 0x61, 0x73, 0x41, 0x64, 0x64, + 0x2f, 0x52, 0x65, 0x61, 0x64, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, + 0x65, 0x4f, 0x70, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, + 0x12, 0xfe, 0xff, 0xff, 0x00, 0x00, 0x00, 0x02, 0xdc, 0x01, 0x00, 0x00, + 0x03, 0x00, 0x00, 0x00, 0x9c, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x04, 0xfe, 0xff, 0xff, 0x0c, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, + 0x03, 0xf9, 0x09, 0x36, 0x3a, 0x1b, 0x0c, 0x36, 0xc6, 0xda, 0x0a, 0x36, + 0x16, 0x26, 0x0c, 0x36, 0x4b, 0x2b, 0x0a, 0x36, 0x60, 0x23, 0x0e, 0x36, + 0xd3, 0x9b, 0x0a, 0x36, 0x78, 0xe1, 0x09, 0x36, 0x78, 0xfb, 0x0c, 0x36, + 0xb6, 0x2a, 0x06, 0x36, 0x6f, 0x89, 0x08, 0x36, 0x7e, 0xe3, 0x0b, 0x36, + 0xf0, 0x9d, 0x0d, 0x36, 0xae, 0x74, 0x0a, 0x36, 0xef, 0x21, 0x0d, 0x36, + 0xe0, 0xdf, 0x0c, 0x36, 0x79, 0x8a, 0x0c, 0x36, 0x0a, 0x39, 0x0a, 0x36, + 0xbb, 0x92, 0x07, 0x36, 0x39, 0x3d, 0x09, 0x36, 0x25, 0xc9, 0x09, 0x36, + 0xd1, 0x3b, 0x0c, 0x36, 0x93, 0x54, 0x0b, 0x36, 0x9a, 0x4f, 0x06, 0x36, + 0x3c, 0xb2, 0x08, 0x36, 0x23, 0x4b, 0x0a, 0x36, 0xbe, 0x0e, 0x05, 0x36, + 0x83, 0x8b, 0x0c, 0x36, 0xc7, 0x6b, 0x0a, 0x36, 0x07, 0x91, 0x0c, 0x36, + 0x5d, 0x8e, 0x0a, 0x36, 0x7f, 0x2a, 0x09, 0x36, 0x33, 0x00, 0x00, 0x00, + 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2f, 0x63, + 0x6f, 0x6e, 0x76, 0x32, 0x64, 0x5f, 0x31, 0x2f, 0x42, 0x69, 0x61, 0x73, + 0x41, 0x64, 0x64, 0x2f, 0x52, 0x65, 0x61, 0x64, 0x56, 0x61, 0x72, 0x69, + 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x0e, 0x00, 0x18, 0x00, 0x08, 0x00, 0x07, 0x00, 0x0c, 0x00, + 0x10, 0x00, 0x14, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, + 0x2c, 0x01, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0xec, 0x00, 0x00, 0x00, + 0x10, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x08, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, + 0xe1, 0x22, 0xc6, 0x36, 0x90, 0x2b, 0xa9, 0x36, 0x2d, 0x12, 0xc2, 0x36, + 0xbc, 0xbf, 0xcb, 0x36, 0xf2, 0x6c, 0xb6, 0x36, 0x19, 0xc5, 0xd1, 0x36, + 0xff, 0xc0, 0xcc, 0x36, 0x62, 0x93, 0xc8, 0x36, 0x4c, 0x1a, 0xa5, 0x36, + 0x05, 0xd8, 0xbe, 0x36, 0x49, 0x27, 0xc5, 0x36, 0xf5, 0x2a, 0xcc, 0x36, + 0x8a, 0xc0, 0xc2, 0x36, 0xf5, 0xfc, 0xca, 0x36, 0x2f, 0xa7, 0xc6, 0x36, + 0x57, 0x55, 0xc2, 0x36, 0x31, 0x00, 0x00, 0x00, 0x73, 0x65, 0x71, 0x75, + 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x32, + 0x64, 0x2f, 0x42, 0x69, 0x61, 0x73, 0x41, 0x64, 0x64, 0x2f, 0x52, 0x65, + 0x61, 0x64, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, + 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x14, 0x00, 0x1c, 0x00, + 0x08, 0x00, 0x07, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x14, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x18, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, + 0x88, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x68, 0x00, 0x00, 0x00, + 0x28, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0xff, 0xff, 0xff, 0xff, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x14, 0x00, 0x04, 0x00, 0x08, 0x00, + 0x0c, 0x00, 0x10, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, + 0x24, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xf0, 0x77, 0x80, 0x3b, + 0x01, 0x00, 0x00, 0x00, 0xf0, 0xee, 0x7f, 0x3f, 0x01, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x63, 0x6f, 0x6e, 0x76, + 0x32, 0x64, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x74, + 0x38, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x06, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x54, 0x00, 0x00, 0x00, + 0x40, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0xca, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x06, + 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x08, 0x00, 0x07, 0x00, + 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x72, 0xe6, 0xff, 0xff, 0xff, + 0x00, 0x00, 0x00, 0x09, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, + 0x06, 0x00, 0x05, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x16, 0x0a, 0x00, + 0x0e, 0x00, 0x07, 0x00, 0x00, 0x00, 0x08, 0x00, 0x0a, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x11, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, + 0x0c, 0x00, 0x07, 0x00, 0x00, 0x00, 0x08, 0x00, 0x0a, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x03, 0x03, 0x00, 0x00, 0x00}; + +const unsigned int kTestConvModelDataSize = 21344; diff --git a/code/components/tfmicro/tensorflow/lite/micro/testing/test_conv_model.h b/code/components/tfmicro/tensorflow/lite/micro/testing/test_conv_model.h new file mode 100644 index 000000000..2103196e5 --- /dev/null +++ b/code/components/tfmicro/tensorflow/lite/micro/testing/test_conv_model.h @@ -0,0 +1,23 @@ +/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +==============================================================================*/ + +#ifndef TENSORFLOW_LITE_MICRO_TESTING_TEST_CONV_MODEL_H_ +#define TENSORFLOW_LITE_MICRO_TESTING_TEST_CONV_MODEL_H_ + +// See generate_test_models.py for updating the contents of this model: +extern const unsigned char kTestConvModelData[]; +extern const unsigned int kTestConvModelDataSize; + +#endif // TENSORFLOW_LITE_MICRO_TESTING_TEST_CONV_MODEL_H_ diff --git a/code/lib/tfmicro/tensorflow/lite/portable_type_to_tflitetype.h b/code/components/tfmicro/tensorflow/lite/portable_type_to_tflitetype.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/portable_type_to_tflitetype.h rename to code/components/tfmicro/tensorflow/lite/portable_type_to_tflitetype.h diff --git a/code/lib/tfmicro/tensorflow/lite/schema/schema_generated.h b/code/components/tfmicro/tensorflow/lite/schema/schema_generated.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/schema/schema_generated.h rename to code/components/tfmicro/tensorflow/lite/schema/schema_generated.h diff --git a/code/lib/tfmicro/tensorflow/lite/schema/schema_utils.cc b/code/components/tfmicro/tensorflow/lite/schema/schema_utils.cc similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/schema/schema_utils.cc rename to code/components/tfmicro/tensorflow/lite/schema/schema_utils.cc diff --git a/code/lib/tfmicro/tensorflow/lite/schema/schema_utils.h b/code/components/tfmicro/tensorflow/lite/schema/schema_utils.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/schema/schema_utils.h rename to code/components/tfmicro/tensorflow/lite/schema/schema_utils.h diff --git a/code/lib/tfmicro/tensorflow/lite/version.h b/code/components/tfmicro/tensorflow/lite/version.h similarity index 100% rename from code/lib/tfmicro/tensorflow/lite/version.h rename to code/components/tfmicro/tensorflow/lite/version.h diff --git a/code/lib/tfmicro/flatbuffers/LICENSE.txt b/code/components/tfmicro/third_party/flatbuffers/LICENSE.txt similarity index 100% rename from code/lib/tfmicro/flatbuffers/LICENSE.txt rename to code/components/tfmicro/third_party/flatbuffers/LICENSE.txt diff --git a/code/lib/tfmicro/flatbuffers/base.h b/code/components/tfmicro/third_party/flatbuffers/include/flatbuffers/base.h similarity index 100% rename from code/lib/tfmicro/flatbuffers/base.h rename to code/components/tfmicro/third_party/flatbuffers/include/flatbuffers/base.h diff --git a/code/lib/tfmicro/flatbuffers/flatbuffers.h b/code/components/tfmicro/third_party/flatbuffers/include/flatbuffers/flatbuffers.h similarity index 100% rename from code/lib/tfmicro/flatbuffers/flatbuffers.h rename to code/components/tfmicro/third_party/flatbuffers/include/flatbuffers/flatbuffers.h diff --git a/code/lib/tfmicro/flatbuffers/stl_emulation.h b/code/components/tfmicro/third_party/flatbuffers/include/flatbuffers/stl_emulation.h similarity index 100% rename from code/lib/tfmicro/flatbuffers/stl_emulation.h rename to code/components/tfmicro/third_party/flatbuffers/include/flatbuffers/stl_emulation.h diff --git a/code/components/tfmicro/third_party/gemmlowp/LICENSE b/code/components/tfmicro/third_party/gemmlowp/LICENSE new file mode 100644 index 000000000..d64569567 --- /dev/null +++ b/code/components/tfmicro/third_party/gemmlowp/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/code/lib/tfmicro/fixedpoint/fixedpoint.h b/code/components/tfmicro/third_party/gemmlowp/fixedpoint/fixedpoint.h similarity index 100% rename from code/lib/tfmicro/fixedpoint/fixedpoint.h rename to code/components/tfmicro/third_party/gemmlowp/fixedpoint/fixedpoint.h diff --git a/code/lib/tfmicro/fixedpoint/fixedpoint_neon.h b/code/components/tfmicro/third_party/gemmlowp/fixedpoint/fixedpoint_neon.h similarity index 100% rename from code/lib/tfmicro/fixedpoint/fixedpoint_neon.h rename to code/components/tfmicro/third_party/gemmlowp/fixedpoint/fixedpoint_neon.h diff --git a/code/lib/tfmicro/fixedpoint/fixedpoint_sse.h b/code/components/tfmicro/third_party/gemmlowp/fixedpoint/fixedpoint_sse.h similarity index 100% rename from code/lib/tfmicro/fixedpoint/fixedpoint_sse.h rename to code/components/tfmicro/third_party/gemmlowp/fixedpoint/fixedpoint_sse.h diff --git a/code/lib/tfmicro/internal/detect_platform.h b/code/components/tfmicro/third_party/gemmlowp/internal/detect_platform.h similarity index 100% rename from code/lib/tfmicro/internal/detect_platform.h rename to code/components/tfmicro/third_party/gemmlowp/internal/detect_platform.h diff --git a/code/lib/tfmicro/ruy/profiler/instrumentation.h b/code/components/tfmicro/third_party/ruy/ruy/profiler/instrumentation.h similarity index 100% rename from code/lib/tfmicro/ruy/profiler/instrumentation.h rename to code/components/tfmicro/third_party/ruy/ruy/profiler/instrumentation.h diff --git a/code/include/README b/code/include/README new file mode 100644 index 000000000..194dcd432 --- /dev/null +++ b/code/include/README @@ -0,0 +1,39 @@ + +This directory is intended for project header files. + +A header file is a file containing C declarations and macro definitions +to be shared between several project source files. You request the use of a +header file in your project source file (C, C++, etc) located in `src` folder +by including it, with the C preprocessing directive `#include'. + +```src/main.c + +#include "header.h" + +int main (void) +{ + ... +} +``` + +Including a header file produces the same results as copying the header file +into each source file that needs it. Such copying would be time-consuming +and error-prone. With a header file, the related declarations appear +in only one place. If they need to be changed, they can be changed in one +place, and programs that include the header file will automatically use the +new version when next recompiled. The header file eliminates the labor of +finding and changing all the copies as well as the risk that a failure to +find one copy will result in inconsistencies within a program. + +In C, the usual convention is to give header files names that end with `.h'. +It is most portable to use only letters, digits, dashes, and underscores in +header file names, and at most one dot. + +Read more about using header files in official GCC documentation: + +* Include Syntax +* Include Operation +* Once-Only Headers +* Computed Includes + +https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html diff --git a/code/lib/driver/twi.c b/code/lib/driver/twi.c deleted file mode 100644 index 25d71fc07..000000000 --- a/code/lib/driver/twi.c +++ /dev/null @@ -1,432 +0,0 @@ -/* - si2c.c - Software I2C library for ESP31B - - Copyright (c) 2015 Hristo Gochkov. All rights reserved. - This file is part of the ESP31B core for Arduino environment. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ -#include -#include -#include "twi.h" -#include "soc/gpio_reg.h" -#include "soc/gpio_struct.h" -#include "soc/io_mux_reg.h" -#include "driver/rtc_io.h" -#include - - -#define LOW 0x0 -#define HIGH 0x1 - -//GPIO FUNCTIONS -#define INPUT 0x01 -#define OUTPUT 0x02 -#define PULLUP 0x04 -#define INPUT_PULLUP 0x05 -#define PULLDOWN 0x08 -#define INPUT_PULLDOWN 0x09 -#define OPEN_DRAIN 0x10 -#define OUTPUT_OPEN_DRAIN 0x12 -#define SPECIAL 0xF0 -#define FUNCTION_1 0x00 -#define FUNCTION_2 0x20 -#define FUNCTION_3 0x40 -#define FUNCTION_4 0x60 -#define FUNCTION_5 0x80 -#define FUNCTION_6 0xA0 - -#define ESP_REG(addr) *((volatile uint32_t *)(addr)) - -const uint8_t pin_to_mux[40] = { 0x44, 0x88, 0x40, 0x84, 0x48, 0x6c, 0x60, 0x64, 0x68, 0x54, 0x58, 0x5c, 0x34, 0x38, 0x30, 0x3c, 0x4c, 0x50, 0x70, 0x74, 0x78, 0x7c, 0x80, 0x8c, 0, 0x24, 0x28, 0x2c, 0, 0, 0, 0, 0x1c, 0x20, 0x14, 0x18, 0x04, 0x08, 0x0c, 0x10}; - -static void pinMode(uint8_t pin, uint8_t mode) -{ - if(pin >= 40) { - return; - } - - uint32_t rtc_reg = rtc_gpio_desc[pin].reg; - - //RTC pins PULL settings - if(rtc_reg) { - //lock rtc - ESP_REG(rtc_reg) = ESP_REG(rtc_reg) & ~(rtc_gpio_desc[pin].mux); - if(mode & PULLUP) { - ESP_REG(rtc_reg) = (ESP_REG(rtc_reg) | rtc_gpio_desc[pin].pullup) & ~(rtc_gpio_desc[pin].pulldown); - } else if(mode & PULLDOWN) { - ESP_REG(rtc_reg) = (ESP_REG(rtc_reg) | rtc_gpio_desc[pin].pulldown) & ~(rtc_gpio_desc[pin].pullup); - } else { - ESP_REG(rtc_reg) = ESP_REG(rtc_reg) & ~(rtc_gpio_desc[pin].pullup | rtc_gpio_desc[pin].pulldown); - } - //unlock rtc - } - - uint32_t pinFunction = 0, pinControl = 0; - - //lock gpio - if(mode & INPUT) { - if(pin < 32) { - GPIO.enable_w1tc = BIT(pin); - } else { - GPIO.enable1_w1tc.val = BIT(pin - 32); - } - } else if(mode & OUTPUT) { - if(pin > 33) { - //unlock gpio - return;//pins above 33 can be only inputs - } else if(pin < 32) { - GPIO.enable_w1ts = BIT(pin); - } else { - GPIO.enable1_w1ts.val = BIT(pin - 32); - } - } - - if(mode & PULLUP) { - pinFunction |= FUN_PU; - } else if(mode & PULLDOWN) { - pinFunction |= FUN_PD; - } - - pinFunction |= ((uint32_t)2 << FUN_DRV_S);//what are the drivers? - pinFunction |= FUN_IE;//input enable but required for output as well? - - if(mode & (INPUT | OUTPUT)) { - pinFunction |= ((uint32_t)2 << MCU_SEL_S); - } else if(mode == SPECIAL) { - pinFunction |= ((uint32_t)(((pin)==1||(pin)==3)?0:1) << MCU_SEL_S); - } else { - pinFunction |= ((uint32_t)(mode >> 5) << MCU_SEL_S); - } - - ESP_REG(DR_REG_IO_MUX_BASE + pin_to_mux[pin]) = pinFunction; - - if(mode & OPEN_DRAIN) { - pinControl = (1 << GPIO_PIN0_PAD_DRIVER_S); - } - - GPIO.pin[pin].val = pinControl; - //unlock gpio -} - -static void digitalWrite(uint8_t pin, uint8_t val) -{ - if(val) { - if(pin < 32) { - GPIO.out_w1ts = BIT(pin); - } else if(pin < 34) { - GPIO.out1_w1ts.val = BIT(pin - 32); - } - } else { - if(pin < 32) { - GPIO.out_w1tc = BIT(pin); - } else if(pin < 34) { - GPIO.out1_w1tc.val = BIT(pin - 32); - } - } -} - - -unsigned char twi_dcount = 18; -static unsigned char twi_sda, twi_scl; - - -static inline void SDA_LOW() -{ - //Enable SDA (becomes output and since GPO is 0 for the pin, - // it will pull the line low) - if (twi_sda < 32) { - GPIO.enable_w1ts = BIT(twi_sda); - } else { - GPIO.enable1_w1ts.val = BIT(twi_sda - 32); - } -} - -static inline void SDA_HIGH() -{ - //Disable SDA (becomes input and since it has pullup it will go high) - if (twi_sda < 32) { - GPIO.enable_w1tc = BIT(twi_sda); - } else { - GPIO.enable1_w1tc.val = BIT(twi_sda - 32); - } -} - -static inline uint32_t SDA_READ() -{ - if (twi_sda < 32) { - return (GPIO.in & BIT(twi_sda)) != 0; - } else { - return (GPIO.in1.val & BIT(twi_sda - 32)) != 0; - } -} - -static void SCL_LOW() -{ - if (twi_scl < 32) { - GPIO.enable_w1ts = BIT(twi_scl); - } else { - GPIO.enable1_w1ts.val = BIT(twi_scl - 32); - } -} - -static void SCL_HIGH() -{ - if (twi_scl < 32) { - GPIO.enable_w1tc = BIT(twi_scl); - } else { - GPIO.enable1_w1tc.val = BIT(twi_scl - 32); - } -} - -static uint32_t SCL_READ() -{ - if (twi_scl < 32) { - return (GPIO.in & BIT(twi_scl)) != 0; - } else { - return (GPIO.in1.val & BIT(twi_scl - 32)) != 0; - } -} - - -#ifndef FCPU80 -#define FCPU80 80000000L -#endif - -#if F_CPU == FCPU80 -#define TWI_CLOCK_STRETCH 800 -#else -#define TWI_CLOCK_STRETCH 1600 -#endif - -void twi_setClock(unsigned int freq) -{ -#if F_CPU == FCPU80 - if(freq <= 100000) { - twi_dcount = 19; //about 100KHz - } else if(freq <= 200000) { - twi_dcount = 8; //about 200KHz - } else if(freq <= 300000) { - twi_dcount = 3; //about 300KHz - } else if(freq <= 400000) { - twi_dcount = 1; //about 400KHz - } else { - twi_dcount = 1; //about 400KHz - } -#else - if(freq <= 100000) { - twi_dcount = 32; //about 100KHz - } else if(freq <= 200000) { - twi_dcount = 14; //about 200KHz - } else if(freq <= 300000) { - twi_dcount = 8; //about 300KHz - } else if(freq <= 400000) { - twi_dcount = 5; //about 400KHz - } else if(freq <= 500000) { - twi_dcount = 3; //about 500KHz - } else if(freq <= 600000) { - twi_dcount = 2; //about 600KHz - } else { - twi_dcount = 1; //about 700KHz - } -#endif -} - -void twi_init(unsigned char sda, unsigned char scl) -{ - twi_sda = sda; - twi_scl = scl; - pinMode(twi_sda, OUTPUT); - pinMode(twi_scl, OUTPUT); - - digitalWrite(twi_sda, 0); - digitalWrite(twi_scl, 0); - - pinMode(twi_sda, INPUT_PULLUP); - pinMode(twi_scl, INPUT_PULLUP); - twi_setClock(100000); -} - -void twi_stop(void) -{ - pinMode(twi_sda, INPUT); - pinMode(twi_scl, INPUT); -} - -static void twi_delay(unsigned char v) -{ - unsigned int i; -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wunused-but-set-variable" - unsigned int reg; - for(i=0; iwidth, fb->height, fb->pixformat, fb->buf, fb->len); - - //return the frame buffer back to be reused - esp_camera_fb_return(fb); - - return ESP_OK; - } -*/ - -#pragma once - -#ifndef ESPCAMERADEF -#define ESPCAMERADEF - -#include "esp_err.h" -#include "driver/ledc.h" -#include "sensor.h" -#include "sys/time.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @brief Configuration structure for camera initialization - */ -typedef struct { - int pin_pwdn; /*!< GPIO pin for camera power down line */ - int pin_reset; /*!< GPIO pin for camera reset line */ - int pin_xclk; /*!< GPIO pin for camera XCLK line */ - int pin_sscb_sda; /*!< GPIO pin for camera SDA line */ - int pin_sscb_scl; /*!< GPIO pin for camera SCL line */ - int pin_d7; /*!< GPIO pin for camera D7 line */ - int pin_d6; /*!< GPIO pin for camera D6 line */ - int pin_d5; /*!< GPIO pin for camera D5 line */ - int pin_d4; /*!< GPIO pin for camera D4 line */ - int pin_d3; /*!< GPIO pin for camera D3 line */ - int pin_d2; /*!< GPIO pin for camera D2 line */ - int pin_d1; /*!< GPIO pin for camera D1 line */ - int pin_d0; /*!< GPIO pin for camera D0 line */ - int pin_vsync; /*!< GPIO pin for camera VSYNC line */ - int pin_href; /*!< GPIO pin for camera HREF line */ - int pin_pclk; /*!< GPIO pin for camera PCLK line */ - - int xclk_freq_hz; /*!< Frequency of XCLK signal, in Hz. Either 20KHz or 10KHz for OV2640 double FPS (Experimental) */ - - ledc_timer_t ledc_timer; /*!< LEDC timer to be used for generating XCLK */ - ledc_channel_t ledc_channel; /*!< LEDC channel to be used for generating XCLK */ - - pixformat_t pixel_format; /*!< Format of the pixel data: PIXFORMAT_ + YUV422|GRAYSCALE|RGB565|JPEG */ - framesize_t frame_size; /*!< Size of the output image: FRAMESIZE_ + QVGA|CIF|VGA|SVGA|XGA|SXGA|UXGA */ - - int jpeg_quality; /*!< Quality of JPEG output. 0-63 lower means higher quality */ - size_t fb_count; /*!< Number of frame buffers to be allocated. If more than one, then each frame will be acquired (double speed) */ -} camera_config_t; - -/** - * @brief Data structure of camera frame buffer - */ -typedef struct { - uint8_t * buf; /*!< Pointer to the pixel data */ - size_t len; /*!< Length of the buffer in bytes */ - size_t width; /*!< Width of the buffer in pixels */ - size_t height; /*!< Height of the buffer in pixels */ - pixformat_t format; /*!< Format of the pixel data */ - struct timeval timestamp; /*!< Timestamp since boot of the first DMA buffer of the frame */ -} camera_fb_t; - -#define ESP_ERR_CAMERA_BASE 0x20000 -#define ESP_ERR_CAMERA_NOT_DETECTED (ESP_ERR_CAMERA_BASE + 1) -#define ESP_ERR_CAMERA_FAILED_TO_SET_FRAME_SIZE (ESP_ERR_CAMERA_BASE + 2) -#define ESP_ERR_CAMERA_FAILED_TO_SET_OUT_FORMAT (ESP_ERR_CAMERA_BASE + 3) -#define ESP_ERR_CAMERA_NOT_SUPPORTED (ESP_ERR_CAMERA_BASE + 4) - -/** - * @brief Initialize the camera driver - * - * @note call camera_probe before calling this function - * - * This function detects and configures camera over I2C interface, - * allocates framebuffer and DMA buffers, - * initializes parallel I2S input, and sets up DMA descriptors. - * - * Currently this function can only be called once and there is - * no way to de-initialize this module. - * - * @param config Camera configuration parameters - * - * @return ESP_OK on success - */ -esp_err_t esp_camera_init(const camera_config_t* config); - -/** - * @brief Deinitialize the camera driver - * - * @return - * - ESP_OK on success - * - ESP_ERR_INVALID_STATE if the driver hasn't been initialized yet - */ -esp_err_t esp_camera_deinit(); - -/** - * @brief Obtain pointer to a frame buffer. - * - * @return pointer to the frame buffer - */ -camera_fb_t* esp_camera_fb_get(); - -/** - * @brief Return the frame buffer to be reused again. - * - * @param fb Pointer to the frame buffer - */ -void esp_camera_fb_return(camera_fb_t * fb); - -/** - * @brief Get a pointer to the image sensor control structure - * - * @return pointer to the sensor - */ -sensor_t * esp_camera_sensor_get(); - -/** - * @brief Save camera settings to non-volatile-storage (NVS) - * - * @param key A unique nvs key name for the camera settings - */ -esp_err_t esp_camera_save_to_nvs(const char *key); - -/** - * @brief Load camera settings from non-volatile-storage (NVS) - * - * @param key A unique nvs key name for the camera settings - */ -esp_err_t esp_camera_load_from_nvs(const char *key); - -#ifdef __cplusplus -} -#endif - -#include "img_converters.h" - -#endif - diff --git a/code/lib/jomjol_tfliteclass/CTfLiteClass._cpp_old b/code/lib/jomjol_tfliteclass/CTfLiteClass._cpp_old deleted file mode 100644 index dcd56ce05..000000000 --- a/code/lib/jomjol_tfliteclass/CTfLiteClass._cpp_old +++ /dev/null @@ -1,254 +0,0 @@ -#include "CTfLiteClass.h" - -#include "bitmap_image.hpp" - -#include - -float CTfLiteClass::GetOutputValue(int nr) -{ - TfLiteTensor* output2 = this->interpreter->output(0); - - int numeroutput = output2->dims->data[1]; - if ((nr+1) > numeroutput) - return -1000; - - return output2->data.f[nr]; -} - - -int CTfLiteClass::GetClassFromImage(std::string _fn) -{ -// printf("Before Load image %s\n", _fn.c_str()); - if (!LoadInputImage(_fn)) - return -1000; -// printf("After Load image %s\n", _fn.c_str()); - - Invoke(); - printf("After Invoke %s\n", _fn.c_str()); - - return GetOutClassification(); -// return 0; -} - -int CTfLiteClass::GetOutClassification() -{ - TfLiteTensor* output2 = interpreter->output(0); - - float zw_max = 0; - float zw; - int zw_class = -1; - - if (output2 == NULL) - return -1; - - int numeroutput = output2->dims->data[1]; - for (int i = 0; i < numeroutput; ++i) - { - zw = output2->data.f[i]; - if (zw > zw_max) - { - zw_max = zw; - zw_class = i; - } - } -// printf("Result Ziffer: %d\n", zw_class); - return zw_class; -} - -void CTfLiteClass::GetInputDimension(bool silent = false) -{ - TfLiteTensor* input2 = this->interpreter->input(0); - - int numdim = input2->dims->size; - if (!silent) printf("NumDimension: %d\n", numdim); - - int sizeofdim; - for (int j = 0; j < numdim; ++j) - { - sizeofdim = input2->dims->data[j]; - if (!silent) printf("SizeOfDimension %d: %d\n", j, sizeofdim); - if (j == 1) im_height = sizeofdim; - if (j == 2) im_width = sizeofdim; - if (j == 3) im_channel = sizeofdim; - } -} - - -void CTfLiteClass::GetOutPut() -{ - TfLiteTensor* output2 = this->interpreter->output(0); - - int numdim = output2->dims->size; - printf("NumDimension: %d\n", numdim); - - int sizeofdim; - for (int j = 0; j < numdim; ++j) - { - sizeofdim = output2->dims->data[j]; - printf("SizeOfDimension %d: %d\n", j, sizeofdim); - } - - - float fo; - - // Process the inference results. - int numeroutput = output2->dims->data[1]; - for (int i = 0; i < numeroutput; ++i) - { - fo = output2->data.f[i]; - printf("Result %d: %f\n", i, fo); - } -} - -void CTfLiteClass::Invoke() -{ - interpreter->Invoke(); -// printf("Invoke Done.\n"); -} - - -bool CTfLiteClass::LoadInputImage(std::string _fn) -{ - bitmap_image image(_fn); - unsigned int w = image.width(); - unsigned int h = image.height(); - unsigned char red, green, blue; - - input_i = 0; - float* input_data_ptr = (interpreter->input(0))->data.f; - - for (int y = 0; y < h; ++y) - for (int x = 0; x < w; ++x) - { - red = image.red_channel(x, y); - green = image.green_channel(x, y); - blue = image.blue_channel(x, y); - *(input_data_ptr) = (float) red; - input_data_ptr++; - *(input_data_ptr) = (float) green; - input_data_ptr++; - *(input_data_ptr) = (float) blue; - input_data_ptr++; - -// printf("BMP: %f %f %f\n", (float) red, (float) green, (float) blue); - - } - return true; -} - - -void CTfLiteClass::MakeAllocate() -{ -/* - this->micro_op_resolver.AddBuiltin( - tflite::BuiltinOperator_RESHAPE, - tflite::ops::micro::Register_RESHAPE()); - this->micro_op_resolver.AddBuiltin(tflite::BuiltinOperator_CONV_2D, - tflite::ops::micro::Register_CONV_2D()); - this->micro_op_resolver.AddBuiltin(tflite::BuiltinOperator_FULLY_CONNECTED, - tflite::ops::micro::Register_FULLY_CONNECTED()); - this->micro_op_resolver.AddBuiltin(tflite::BuiltinOperator_SOFTMAX, - tflite::ops::micro::Register_SOFTMAX()); - this->micro_op_resolver.AddBuiltin(tflite::BuiltinOperator_DEPTHWISE_CONV_2D, - tflite::ops::micro::Register_DEPTHWISE_CONV_2D()); - - - this->interpreter = new tflite::MicroInterpreter(this->model, this->micro_op_resolver, this->tensor_arena, this->kTensorArenaSize, this->error_reporter); -*/ - - - static tflite::ops::micro::AllOpsResolver resolver; - this->interpreter = new tflite::MicroInterpreter(this->model, resolver, this->tensor_arena, this->kTensorArenaSize, this->error_reporter); - - TfLiteStatus allocate_status = this->interpreter->AllocateTensors(); - if (allocate_status != kTfLiteOk) { - TF_LITE_REPORT_ERROR(error_reporter, "AllocateTensors() failed"); - this->GetInputDimension(); - return; - } - - printf("Allocate Done.\n"); -} - -void CTfLiteClass::GetInputTensorSize(){ - float *zw = this->input; - int test = sizeof(zw); - printf("Input Tensor Dimension: %d\n", test); - - printf("Input Tensor Dimension: %d\n", test); -} - -long CTfLiteClass::GetFileSize(std::string filename) -{ - struct stat stat_buf; - long rc = stat(filename.c_str(), &stat_buf); - return rc == 0 ? stat_buf.st_size : -1; -} - - -unsigned char* CTfLiteClass::ReadFileToCharArray(std::string _fn) -{ - long size; - - size = this->GetFileSize(_fn); - - if (size == -1) - { - printf("\nFile existiert nicht.\n"); - return NULL; - } - - - unsigned char *result = (unsigned char*) malloc(size); - - if(result != NULL) { -// printf("\nSpeicher ist reserviert\n"); - FILE* f = fopen(_fn.c_str(), "rb"); // vorher nur "r" - fread(result, 1, size, f); - fclose(f); - }else { - printf("\nKein freier Speicher vorhanden.\n"); - } - - - return result; -} - -void CTfLiteClass::LoadModel(std::string _fn){ - - - this->error_reporter = new tflite::MicroErrorReporter; - - unsigned char *rd; - rd = this->ReadFileToCharArray(_fn.c_str()); -// printf("loadedfile: %d", (int) rd); - - this->model = tflite::GetModel(rd); - free(rd); - TFLITE_MINIMAL_CHECK(model != nullptr); - printf("tfile Loaded.\n"); - -} - - - -CTfLiteClass::CTfLiteClass() -{ -// this->accessSD = _accessSD; - this->model = nullptr; - this->interpreter = nullptr; - this->input = nullptr; - this->output = nullptr; - this->kTensorArenaSize = 600 * 1024; - this->tensor_arena = new uint8_t[kTensorArenaSize]; - -// micro_op_resolver.AddBuiltin(tflite::BuiltinOperator_CONV_2D, -// tflite::ops::micro::Register_CONV_2D()); -} - -CTfLiteClass::~CTfLiteClass() -{ - delete this->tensor_arena; -} - - diff --git a/code/lib/jomjol_tfliteclass/CTfLiteClass._h_old b/code/lib/jomjol_tfliteclass/CTfLiteClass._h_old deleted file mode 100644 index 01d972bfc..000000000 --- a/code/lib/jomjol_tfliteclass/CTfLiteClass._h_old +++ /dev/null @@ -1,72 +0,0 @@ -#pragma once - -#ifndef __CFINDTEMPLATE -#define __CFINGTEMPLATE - -#define TFLITE_MINIMAL_CHECK(x) \ - if (!(x)) { \ - fprintf(stderr, "Error at %s:%d\n", __FILE__, __LINE__); \ - exit(1); \ - } - -//#include "CAccessSD.h" -#include "CFindTemplate.h" - -#include "tensorflow/lite/micro/kernels/all_ops_resolver.h" -#include "tensorflow/lite/micro/micro_error_reporter.h" -#include "tensorflow/lite/micro/micro_interpreter.h" -#include "tensorflow/lite/schema/schema_generated.h" -#include "tensorflow/lite/version.h" -#include "tensorflow/lite/micro/kernels/micro_ops.h" -#include "esp_err.h" -#include "esp_log.h" - -//extern CAccessSDClass accessSD; - -class CTfLiteClass -{ - protected: -// CAccessSDClass *accessSD; - - tflite::ErrorReporter* error_reporter; - - const tflite::Model* model; - tflite::MicroInterpreter* interpreter; -// TfLiteTensor* input = nullptr; - TfLiteTensor* output = nullptr; - static tflite::ops::micro::AllOpsResolver *resolver; - - tflite::MicroOpResolver<5> micro_op_resolver; - - - int kTensorArenaSize; - uint8_t *tensor_arena; - - float* input; - int input_i; - - int im_height, im_width, im_channel; - - long GetFileSize(std::string filename); - unsigned char* ReadFileToCharArray(std::string _fn); - - public: -// CTfLiteClass(CAccessSDClass *_accessSD); - CTfLiteClass(); - ~CTfLiteClass(); - void LoadModel(std::string _fn); - void MakeAllocate(); - void GetInputTensorSize(); - bool LoadInputImage(std::string _fn); - void Invoke(); - void GetOutPut(); - int GetOutClassification(); - int GetClassFromImage(std::string _fn); - - float GetOutputValue(int nr); - void GetInputDimension(bool silent); - -}; - - -#endif \ No newline at end of file diff --git a/code/partition.csv b/code/partitions.csv similarity index 100% rename from code/partition.csv rename to code/partitions.csv diff --git a/code/platformio.ini b/code/platformio.ini index e12489c36..44019c36b 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -21,9 +21,21 @@ board_build.embed_files = ;board_build.partitions = partitions_singleapp.csv -board_build.partitions = partition.csv +board_build.partitions = partitions.csv + +lib_deps = + jomjol_helper + connect_wlan + jomjol_image_proc + jomjol_controlcamera + jomjol_flowcontroll + jomjol_tfliteclass + tfmicro + jomjol_fileserver_ota + jomjol_time_sntp + jomjol_logfile + jomjol_mqtt -lib_deps = jomjol_helper, connect_wlan, conversions, driver, sensors, jomjol_image_proc, jomjol_controlcamera, jomjol_flowcontroll, jomjol_tfliteclass, tfmicro, jomjol_fileserver_ota, jomjol_time_sntp, jomjol_logfile, jomjol_mqtt monitor_speed = 115200 debug_tool = esp-prog diff --git a/code/sdkconfig b/code/sdkconfig index d8dbf13c9..c6f7335da 100644 --- a/code/sdkconfig +++ b/code/sdkconfig @@ -997,6 +997,22 @@ CONFIG_WIFI_PROV_AUTOSTOP_TIMEOUT=30 CONFIG_WPA_MBEDTLS_CRYPTO=y # CONFIG_WPA_TLS_V12 is not set # end of Supplicant + +# +# Camera configuration +# +CONFIG_OV7670_SUPPORT=y +# CONFIG_OV7725_SUPPORT is not set +CONFIG_NT99141_SUPPORT=y +CONFIG_OV2640_SUPPORT=y +CONFIG_OV3660_SUPPORT=y +CONFIG_OV5640_SUPPORT=y +# CONFIG_SCCB_HARDWARE_I2C_PORT0 is not set +CONFIG_SCCB_HARDWARE_I2C_PORT1=y +CONFIG_CAMERA_CORE0=y +# CONFIG_CAMERA_CORE1 is not set +# CONFIG_CAMERA_NO_AFFINITY is not set +# end of Camera configuration # end of Component config # diff --git a/code/sdkconfig.old b/code/sdkconfig.old deleted file mode 100644 index af01833bd..000000000 --- a/code/sdkconfig.old +++ /dev/null @@ -1,841 +0,0 @@ -# -# Automatically generated file; DO NOT EDIT. -# Espressif IoT Development Framework Configuration -# -CONFIG_IDF_TARGET_ESP32=y -CONFIG_IDF_TARGET="esp32" -CONFIG_IDF_FIRMWARE_CHIP_ID=0x0000 - -# -# SDK tool configuration -# -CONFIG_SDK_TOOLPREFIX="xtensa-esp32-elf-" - -# -# Application manager -# -CONFIG_APP_COMPILE_TIME_DATE=y -CONFIG_APP_EXCLUDE_PROJECT_VER_VAR= -CONFIG_APP_EXCLUDE_PROJECT_NAME_VAR= -CONFIG_APP_RETRIEVE_LEN_ELF_SHA=16 - -# -# Bootloader config -# -CONFIG_BOOTLOADER_LOG_LEVEL_NONE= -CONFIG_BOOTLOADER_LOG_LEVEL_ERROR= -CONFIG_BOOTLOADER_LOG_LEVEL_WARN= -CONFIG_BOOTLOADER_LOG_LEVEL_INFO=y -CONFIG_BOOTLOADER_LOG_LEVEL_DEBUG= -CONFIG_BOOTLOADER_LOG_LEVEL_VERBOSE= -CONFIG_BOOTLOADER_LOG_LEVEL=3 -CONFIG_BOOTLOADER_VDDSDIO_BOOST_1_8V= -CONFIG_BOOTLOADER_VDDSDIO_BOOST_1_9V=y -CONFIG_BOOTLOADER_FACTORY_RESET= -CONFIG_BOOTLOADER_APP_TEST= -CONFIG_BOOTLOADER_WDT_ENABLE=y -CONFIG_BOOTLOADER_WDT_DISABLE_IN_USER_CODE= -CONFIG_BOOTLOADER_WDT_TIME_MS=9000 -CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE= - -# -# Security features -# -CONFIG_SECURE_SIGNED_APPS_NO_SECURE_BOOT= -CONFIG_SECURE_BOOT_ENABLED= -CONFIG_SECURE_FLASH_ENC_ENABLED= - -# -# Serial flasher config -# -CONFIG_ESPTOOLPY_BAUD_OTHER_VAL=115200 -CONFIG_ESPTOOLPY_FLASHMODE_QIO= -CONFIG_ESPTOOLPY_FLASHMODE_QOUT= -CONFIG_ESPTOOLPY_FLASHMODE_DIO=y -CONFIG_ESPTOOLPY_FLASHMODE_DOUT= -CONFIG_ESPTOOLPY_FLASHMODE="dio" -CONFIG_ESPTOOLPY_FLASHFREQ_80M= -CONFIG_ESPTOOLPY_FLASHFREQ_40M=y -CONFIG_ESPTOOLPY_FLASHFREQ_26M= -CONFIG_ESPTOOLPY_FLASHFREQ_20M= -CONFIG_ESPTOOLPY_FLASHFREQ="40m" -CONFIG_ESPTOOLPY_FLASHSIZE_1MB= -CONFIG_ESPTOOLPY_FLASHSIZE_2MB=y -CONFIG_ESPTOOLPY_FLASHSIZE_4MB= -CONFIG_ESPTOOLPY_FLASHSIZE_8MB= -CONFIG_ESPTOOLPY_FLASHSIZE_16MB= -CONFIG_ESPTOOLPY_FLASHSIZE="2MB" -CONFIG_ESPTOOLPY_FLASHSIZE_DETECT=y -CONFIG_ESPTOOLPY_BEFORE_RESET=y -CONFIG_ESPTOOLPY_BEFORE_NORESET= -CONFIG_ESPTOOLPY_BEFORE="default_reset" -CONFIG_ESPTOOLPY_AFTER_RESET=y -CONFIG_ESPTOOLPY_AFTER_NORESET= -CONFIG_ESPTOOLPY_AFTER="hard_reset" -CONFIG_ESPTOOLPY_MONITOR_BAUD_9600B= -CONFIG_ESPTOOLPY_MONITOR_BAUD_57600B= -CONFIG_ESPTOOLPY_MONITOR_BAUD_115200B=y -CONFIG_ESPTOOLPY_MONITOR_BAUD_230400B= -CONFIG_ESPTOOLPY_MONITOR_BAUD_921600B= -CONFIG_ESPTOOLPY_MONITOR_BAUD_2MB= -CONFIG_ESPTOOLPY_MONITOR_BAUD_OTHER= -CONFIG_ESPTOOLPY_MONITOR_BAUD_OTHER_VAL=115200 -CONFIG_ESPTOOLPY_MONITOR_BAUD=115200 - -# -# Partition Table -# -CONFIG_PARTITION_TABLE_SINGLE_APP=y -CONFIG_PARTITION_TABLE_TWO_OTA= -CONFIG_PARTITION_TABLE_CUSTOM= -CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv" -CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp.csv" -CONFIG_PARTITION_TABLE_OFFSET=0x8000 -CONFIG_PARTITION_TABLE_MD5=y - -# -# Example Connection Configuration -# -CONFIG_EXAMPLE_CONNECT_WIFI=y -CONFIG_EXAMPLE_CONNECT_ETHERNET= -CONFIG_EXAMPLE_WIFI_SSID="myssid" -CONFIG_EXAMPLE_WIFI_PASSWORD="mypassword" -CONFIG_EXAMPLE_CONNECT_IPV6=y - -# -# Compiler options -# -CONFIG_COMPILER_OPTIMIZATION_LEVEL_DEBUG=y -CONFIG_COMPILER_OPTIMIZATION_LEVEL_RELEASE= -CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE=y -CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT= -CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE= -CONFIG_COMPILER_CXX_EXCEPTIONS= -CONFIG_COMPILER_STACK_CHECK_MODE_NONE=y -CONFIG_COMPILER_STACK_CHECK_MODE_NORM= -CONFIG_COMPILER_STACK_CHECK_MODE_STRONG= -CONFIG_COMPILER_STACK_CHECK_MODE_ALL= -CONFIG_COMPILER_STACK_CHECK= -CONFIG_COMPILER_WARN_WRITE_STRINGS= -CONFIG_COMPILER_DISABLE_GCC8_WARNINGS= - -# -# Component config -# - -# -# Application Level Tracing -# -CONFIG_ESP32_APPTRACE_DEST_TRAX= -CONFIG_ESP32_APPTRACE_DEST_NONE=y -CONFIG_ESP32_APPTRACE_ENABLE= -CONFIG_ESP32_APPTRACE_LOCK_ENABLE=y - -# -# Bluetooth -# -CONFIG_BT_ENABLED= -CONFIG_BTDM_CTRL_BR_EDR_SCO_DATA_PATH_EFF=0 -CONFIG_BTDM_CTRL_AUTO_LATENCY_EFF= -CONFIG_BTDM_CTRL_BLE_MAX_CONN_EFF=0 -CONFIG_BTDM_CTRL_BR_EDR_MAX_ACL_CONN_EFF=0 -CONFIG_BTDM_CTRL_BR_EDR_MAX_SYNC_CONN_EFF=0 -CONFIG_BTDM_CTRL_PINNED_TO_CORE=0 -CONFIG_BTDM_BLE_SLEEP_CLOCK_ACCURACY_INDEX_EFF=1 -CONFIG_BT_RESERVE_DRAM=0 -CONFIG_BLE_MESH= - -# -# Driver configurations -# - -# -# ADC configuration -# -CONFIG_ADC_FORCE_XPD_FSM= -CONFIG_ADC_DISABLE_DAC=y - -# -# SPI configuration -# -CONFIG_SPI_MASTER_IN_IRAM= -CONFIG_SPI_MASTER_ISR_IN_IRAM=y -CONFIG_SPI_SLAVE_IN_IRAM= -CONFIG_SPI_SLAVE_ISR_IN_IRAM=y - -# -# eFuse Bit Manager -# -CONFIG_EFUSE_CUSTOM_TABLE= -CONFIG_EFUSE_VIRTUAL= -CONFIG_EFUSE_CODE_SCHEME_COMPAT_NONE= -CONFIG_EFUSE_CODE_SCHEME_COMPAT_3_4=y -CONFIG_EFUSE_CODE_SCHEME_COMPAT_REPEAT= -CONFIG_EFUSE_MAX_BLK_LEN=192 - -# -# ESP-TLS -# -CONFIG_ESP_TLS_SERVER= - -# -# ESP32-specific -# -CONFIG_ESP32_REV_MIN_0=y -CONFIG_ESP32_REV_MIN_1= -CONFIG_ESP32_REV_MIN_2= -CONFIG_ESP32_REV_MIN_3= -CONFIG_ESP32_REV_MIN=0 -CONFIG_ESP32_DPORT_WORKAROUND=y -CONFIG_ESP32_DEFAULT_CPU_FREQ_80= -CONFIG_ESP32_DEFAULT_CPU_FREQ_160=y -CONFIG_ESP32_DEFAULT_CPU_FREQ_240= -CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ=160 -CONFIG_ESP32_SPIRAM_SUPPORT=y - -# -# SPI RAM config -# -CONFIG_SPIRAM_BOOT_INIT=y -CONFIG_SPIRAM_IGNORE_NOTFOUND= -CONFIG_SPIRAM_USE_MEMMAP= -CONFIG_SPIRAM_USE_CAPS_ALLOC= -CONFIG_SPIRAM_USE_MALLOC=y -CONFIG_SPIRAM_TYPE_AUTO=y -CONFIG_SPIRAM_TYPE_ESPPSRAM32= -CONFIG_SPIRAM_TYPE_ESPPSRAM64= -CONFIG_SPIRAM_SIZE=-1 -CONFIG_SPIRAM_SPEED_40M=y -CONFIG_SPIRAM_MEMTEST=y -CONFIG_SPIRAM_CACHE_WORKAROUND=y -CONFIG_SPIRAM_BANKSWITCH_ENABLE=y -CONFIG_SPIRAM_BANKSWITCH_RESERVE=8 -CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=16384 -CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP= -CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=32768 -CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY= -CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY= - -# -# PSRAM clock and cs IO for ESP32-DOWD -# -CONFIG_D0WD_PSRAM_CLK_IO=17 -CONFIG_D0WD_PSRAM_CS_IO=16 - -# -# PSRAM clock and cs IO for ESP32-D2WD -# -CONFIG_D2WD_PSRAM_CLK_IO=9 -CONFIG_D2WD_PSRAM_CS_IO=10 - -# -# PSRAM clock and cs IO for ESP32-PICO -# -CONFIG_PICO_PSRAM_CS_IO=10 -CONFIG_SPIRAM_SPIWP_SD3_PIN=7 -CONFIG_SPIRAM_2T_MODE= -CONFIG_ESP32_MEMMAP_TRACEMEM= -CONFIG_ESP32_MEMMAP_TRACEMEM_TWOBANKS= -CONFIG_ESP32_TRAX= -CONFIG_ESP32_TRACEMEM_RESERVE_DRAM=0x0 -CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES_TWO= -CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES_FOUR=y -CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES=4 -CONFIG_ESP32_ULP_COPROC_ENABLED= -CONFIG_ESP32_ULP_COPROC_RESERVE_MEM=0 -CONFIG_ESP32_PANIC_PRINT_HALT= -CONFIG_ESP32_PANIC_PRINT_REBOOT=y -CONFIG_ESP32_PANIC_SILENT_REBOOT= -CONFIG_ESP32_PANIC_GDBSTUB= -CONFIG_ESP32_DEBUG_OCDAWARE=y -CONFIG_ESP32_DEBUG_STUBS_ENABLE=y -CONFIG_ESP32_BROWNOUT_DET=y -CONFIG_ESP32_BROWNOUT_DET_LVL_SEL_0=y -CONFIG_ESP32_BROWNOUT_DET_LVL_SEL_1= -CONFIG_ESP32_BROWNOUT_DET_LVL_SEL_2= -CONFIG_ESP32_BROWNOUT_DET_LVL_SEL_3= -CONFIG_ESP32_BROWNOUT_DET_LVL_SEL_4= -CONFIG_ESP32_BROWNOUT_DET_LVL_SEL_5= -CONFIG_ESP32_BROWNOUT_DET_LVL_SEL_6= -CONFIG_ESP32_BROWNOUT_DET_LVL_SEL_7= -CONFIG_ESP32_BROWNOUT_DET_LVL=0 -CONFIG_ESP32_REDUCE_PHY_TX_POWER=y -CONFIG_ESP32_TIME_SYSCALL_USE_RTC_FRC1=y -CONFIG_ESP32_TIME_SYSCALL_USE_RTC= -CONFIG_ESP32_TIME_SYSCALL_USE_FRC1= -CONFIG_ESP32_TIME_SYSCALL_USE_NONE= -CONFIG_ESP32_RTC_CLK_SRC_INT_RC=y -CONFIG_ESP32_RTC_CLK_SRC_EXT_CRYS= -CONFIG_ESP32_RTC_CLK_SRC_EXT_OSC= -CONFIG_ESP32_RTC_CLK_SRC_INT_8MD256= -CONFIG_ESP32_RTC_CLK_CAL_CYCLES=1024 -CONFIG_ESP32_RTC_XTAL_CAL_RETRY=1 -CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 -CONFIG_ESP32_XTAL_FREQ_40=y -CONFIG_ESP32_XTAL_FREQ_26= -CONFIG_ESP32_XTAL_FREQ_AUTO= -CONFIG_ESP32_XTAL_FREQ=40 -CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE= -CONFIG_ESP32_NO_BLOBS= -CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS= -CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE= -CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5 - -# -# Power Management -# -CONFIG_PM_ENABLE= - -# -# ADC-Calibration -# -CONFIG_ADC_CAL_EFUSE_TP_ENABLE=y -CONFIG_ADC_CAL_EFUSE_VREF_ENABLE=y -CONFIG_ADC_CAL_LUT_ENABLE=y - -# -# Common ESP-related -# -CONFIG_ESP_TIMER_PROFILING= -CONFIG_ESP_ERR_TO_NAME_LOOKUP=y -CONFIG_ESP_SYSTEM_EVENT_QUEUE_SIZE=32 -CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=2304 -CONFIG_ESP_MAIN_TASK_STACK_SIZE=3584 -CONFIG_ESP_IPC_TASK_STACK_SIZE=1024 -CONFIG_ESP_TIMER_TASK_STACK_SIZE=3584 -CONFIG_ESP_CONSOLE_UART_DEFAULT=y -CONFIG_ESP_CONSOLE_UART_CUSTOM= -CONFIG_ESP_CONSOLE_UART_NONE= -CONFIG_ESP_CONSOLE_UART_NUM=0 -CONFIG_ESP_CONSOLE_UART_BAUDRATE=115200 -CONFIG_ESP_INT_WDT=y -CONFIG_ESP_INT_WDT_TIMEOUT_MS=300 -CONFIG_ESP_INT_WDT_CHECK_CPU1=y -CONFIG_ESP_TASK_WDT=y -CONFIG_ESP_TASK_WDT_PANIC= -CONFIG_ESP_TASK_WDT_TIMEOUT_S=3 -CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU0=y -CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU1=y - -# -# Ethernet -# -CONFIG_ETH_USE_ESP32_EMAC=y -CONFIG_ETH_PHY_INTERFACE_RMII=y -CONFIG_ETH_PHY_INTERFACE_MII= -CONFIG_ETH_RMII_CLK_INPUT=y -CONFIG_ETH_RMII_CLK_OUTPUT= -CONFIG_ETH_RMII_CLK_IN_GPIO=0 -CONFIG_ETH_DMA_BUFFER_SIZE=512 -CONFIG_ETH_DMA_RX_BUFFER_NUM=10 -CONFIG_ETH_DMA_TX_BUFFER_NUM=10 -CONFIG_ETH_USE_SPI_ETHERNET=y -CONFIG_ETH_SPI_ETHERNET_DM9051=y - -# -# Event Loop Library -# -CONFIG_ESP_EVENT_LOOP_PROFILING= -CONFIG_ESP_EVENT_POST_FROM_ISR=y -CONFIG_ESP_EVENT_POST_FROM_IRAM_ISR=y - -# -# GDB Stub -# - -# -# ESP HTTP client -# -CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS=y -CONFIG_ESP_HTTP_CLIENT_ENABLE_BASIC_AUTH= - -# -# HTTP Server -# -CONFIG_HTTPD_MAX_REQ_HDR_LEN=1024 -CONFIG_HTTPD_MAX_URI_LEN=1024 -CONFIG_HTTPD_ERR_RESP_NO_DELAY=y -CONFIG_HTTPD_PURGE_BUF_LEN=32 -CONFIG_HTTPD_LOG_PURGE_DATA= - -# -# ESP HTTPS OTA -# -CONFIG_OTA_ALLOW_HTTP= - -# -# ESP HTTPS server -# -CONFIG_ESP_HTTPS_SERVER_ENABLE= - -# -# Wi-Fi -# -CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=10 -CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=32 -CONFIG_ESP32_WIFI_STATIC_TX_BUFFER=y -CONFIG_ESP32_WIFI_TX_BUFFER_TYPE=0 -CONFIG_ESP32_WIFI_STATIC_TX_BUFFER_NUM=16 -CONFIG_ESP32_WIFI_CSI_ENABLED= -CONFIG_ESP32_WIFI_AMPDU_TX_ENABLED=y -CONFIG_ESP32_WIFI_TX_BA_WIN=6 -CONFIG_ESP32_WIFI_AMPDU_RX_ENABLED=y -CONFIG_ESP32_WIFI_RX_BA_WIN=6 -CONFIG_ESP32_WIFI_NVS_ENABLED=y -CONFIG_ESP32_WIFI_TASK_PINNED_TO_CORE_0=y -CONFIG_ESP32_WIFI_TASK_PINNED_TO_CORE_1= -CONFIG_ESP32_WIFI_SOFTAP_BEACON_MAX_LEN=752 -CONFIG_ESP32_WIFI_MGMT_SBUF_NUM=32 -CONFIG_ESP32_WIFI_DEBUG_LOG_ENABLE= -CONFIG_ESP32_WIFI_IRAM_OPT=y -CONFIG_ESP32_WIFI_RX_IRAM_OPT=y -CONFIG_ESP32_WIFI_ENABLE_WPA3_SAE=y - -# -# PHY -# -CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE=y -CONFIG_ESP32_PHY_INIT_DATA_IN_PARTITION= -CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER=20 -CONFIG_ESP32_PHY_MAX_TX_POWER=20 - -# -# Core dump -# -CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH= -CONFIG_ESP32_ENABLE_COREDUMP_TO_UART= -CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE=y -CONFIG_ESP32_ENABLE_COREDUMP= - -# -# FAT Filesystem support -# -CONFIG_FATFS_CODEPAGE_DYNAMIC= -CONFIG_FATFS_CODEPAGE_437=y -CONFIG_FATFS_CODEPAGE_720= -CONFIG_FATFS_CODEPAGE_737= -CONFIG_FATFS_CODEPAGE_771= -CONFIG_FATFS_CODEPAGE_775= -CONFIG_FATFS_CODEPAGE_850= -CONFIG_FATFS_CODEPAGE_852= -CONFIG_FATFS_CODEPAGE_855= -CONFIG_FATFS_CODEPAGE_857= -CONFIG_FATFS_CODEPAGE_860= -CONFIG_FATFS_CODEPAGE_861= -CONFIG_FATFS_CODEPAGE_862= -CONFIG_FATFS_CODEPAGE_863= -CONFIG_FATFS_CODEPAGE_864= -CONFIG_FATFS_CODEPAGE_865= -CONFIG_FATFS_CODEPAGE_866= -CONFIG_FATFS_CODEPAGE_869= -CONFIG_FATFS_CODEPAGE_932= -CONFIG_FATFS_CODEPAGE_936= -CONFIG_FATFS_CODEPAGE_949= -CONFIG_FATFS_CODEPAGE_950= -CONFIG_FATFS_CODEPAGE=437 -CONFIG_FATFS_LFN_NONE= -CONFIG_FATFS_LFN_HEAP=y -CONFIG_FATFS_LFN_STACK= -CONFIG_FATFS_MAX_LFN=255 -CONFIG_FATFS_API_ENCODING_ANSI_OEM=y -CONFIG_FATFS_API_ENCODING_UTF_16= -CONFIG_FATFS_API_ENCODING_UTF_8= -CONFIG_FATFS_FS_LOCK=0 -CONFIG_FATFS_TIMEOUT_MS=10000 -CONFIG_FATFS_PER_FILE_CACHE=y -CONFIG_FATFS_ALLOC_PREFER_EXTRAM=y - -# -# Modbus configuration -# -CONFIG_FMB_MASTER_TIMEOUT_MS_RESPOND=150 -CONFIG_FMB_MASTER_DELAY_MS_CONVERT=200 -CONFIG_FMB_QUEUE_LENGTH=20 -CONFIG_FMB_SERIAL_TASK_STACK_SIZE=2048 -CONFIG_FMB_SERIAL_BUF_SIZE=256 -CONFIG_FMB_SERIAL_TASK_PRIO=10 -CONFIG_FMB_CONTROLLER_SLAVE_ID_SUPPORT= -CONFIG_FMB_CONTROLLER_NOTIFY_TIMEOUT=20 -CONFIG_FMB_CONTROLLER_NOTIFY_QUEUE_SIZE=20 -CONFIG_FMB_CONTROLLER_STACK_SIZE=4096 -CONFIG_FMB_EVENT_QUEUE_TIMEOUT=20 -CONFIG_FMB_TIMER_PORT_ENABLED=y -CONFIG_FMB_TIMER_GROUP=0 -CONFIG_FMB_TIMER_INDEX=0 - -# -# FreeRTOS -# -CONFIG_FREERTOS_UNICORE= -CONFIG_FREERTOS_NO_AFFINITY=0x7FFFFFFF -CONFIG_FREERTOS_CORETIMER_0=y -CONFIG_FREERTOS_CORETIMER_1= -CONFIG_FREERTOS_HZ=100 -CONFIG_FREERTOS_ASSERT_ON_UNTESTED_FUNCTION=y -CONFIG_FREERTOS_CHECK_STACKOVERFLOW_NONE= -CONFIG_FREERTOS_CHECK_STACKOVERFLOW_PTRVAL= -CONFIG_FREERTOS_CHECK_STACKOVERFLOW_CANARY=y -CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK= -CONFIG_FREERTOS_INTERRUPT_BACKTRACE=y -CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=1 -CONFIG_FREERTOS_ASSERT_FAIL_ABORT=y -CONFIG_FREERTOS_ASSERT_FAIL_PRINT_CONTINUE= -CONFIG_FREERTOS_ASSERT_DISABLE= -CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=1536 -CONFIG_FREERTOS_ISR_STACKSIZE=1536 -CONFIG_FREERTOS_LEGACY_HOOKS= -CONFIG_FREERTOS_MAX_TASK_NAME_LEN=16 -CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION=y -CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP= -CONFIG_FREERTOS_TIMER_TASK_PRIORITY=1 -CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=2048 -CONFIG_FREERTOS_TIMER_QUEUE_LENGTH=10 -CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=0 -CONFIG_FREERTOS_USE_TRACE_FACILITY= -CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS= -CONFIG_FREERTOS_DEBUG_INTERNALS= -CONFIG_FREERTOS_TASK_FUNCTION_WRAPPER=y -CONFIG_FREERTOS_CHECK_MUTEX_GIVEN_BY_OWNER=y -CONFIG_FREERTOS_CHECK_PORT_CRITICAL_COMPLIANCE= - -# -# Heap memory debugging -# -CONFIG_HEAP_POISONING_DISABLED=y -CONFIG_HEAP_POISONING_LIGHT= -CONFIG_HEAP_POISONING_COMPREHENSIVE= -CONFIG_HEAP_TRACING_OFF=y -CONFIG_HEAP_TRACING_STANDALONE= -CONFIG_HEAP_TRACING_TOHOST= -CONFIG_HEAP_TRACING= - -# -# libsodium -# - -# -# Log output -# -CONFIG_LOG_DEFAULT_LEVEL_NONE= -CONFIG_LOG_DEFAULT_LEVEL_ERROR= -CONFIG_LOG_DEFAULT_LEVEL_WARN= -CONFIG_LOG_DEFAULT_LEVEL_INFO=y -CONFIG_LOG_DEFAULT_LEVEL_DEBUG= -CONFIG_LOG_DEFAULT_LEVEL_VERBOSE= -CONFIG_LOG_DEFAULT_LEVEL=3 -CONFIG_LOG_COLORS=y - -# -# LWIP -# -CONFIG_LWIP_LOCAL_HOSTNAME="espressif" -CONFIG_LWIP_L2_TO_L3_COPY= -CONFIG_LWIP_IRAM_OPTIMIZATION= -CONFIG_LWIP_TIMERS_ONDEMAND=y -CONFIG_LWIP_MAX_SOCKETS=10 -CONFIG_LWIP_USE_ONLY_LWIP_SELECT= -CONFIG_LWIP_SO_REUSE=y -CONFIG_LWIP_SO_REUSE_RXTOALL=y -CONFIG_LWIP_SO_RCVBUF= -CONFIG_LWIP_IP_FRAG=y -CONFIG_LWIP_IP_REASSEMBLY= -CONFIG_LWIP_STATS= -CONFIG_LWIP_ETHARP_TRUST_IP_MAC= -CONFIG_LWIP_ESP_GRATUITOUS_ARP=y -CONFIG_LWIP_GARP_TMR_INTERVAL=60 -CONFIG_LWIP_TCPIP_RECVMBOX_SIZE=32 -CONFIG_LWIP_DHCP_DOES_ARP_CHECK=y -CONFIG_LWIP_DHCP_RESTORE_LAST_IP= - -# -# DHCP server -# -CONFIG_LWIP_DHCPS_LEASE_UNIT=60 -CONFIG_LWIP_DHCPS_MAX_STATION_NUM=8 -CONFIG_LWIP_AUTOIP= -CONFIG_LWIP_IPV6_AUTOCONFIG= -CONFIG_LWIP_NETIF_LOOPBACK=y -CONFIG_LWIP_LOOPBACK_MAX_PBUFS=8 - -# -# TCP -# -CONFIG_LWIP_MAX_ACTIVE_TCP=16 -CONFIG_LWIP_MAX_LISTENING_TCP=16 -CONFIG_LWIP_TCP_MAXRTX=12 -CONFIG_LWIP_TCP_SYNMAXRTX=6 -CONFIG_LWIP_TCP_MSS=1440 -CONFIG_LWIP_TCP_MSL=60000 -CONFIG_LWIP_TCP_SND_BUF_DEFAULT=5744 -CONFIG_LWIP_TCP_WND_DEFAULT=5744 -CONFIG_LWIP_TCP_RECVMBOX_SIZE=6 -CONFIG_LWIP_TCP_QUEUE_OOSEQ=y -CONFIG_LWIP_TCP_KEEP_CONNECTION_WHEN_IP_CHANGES= -CONFIG_LWIP_TCP_OVERSIZE_MSS=y -CONFIG_LWIP_TCP_OVERSIZE_QUARTER_MSS= -CONFIG_LWIP_TCP_OVERSIZE_DISABLE= - -# -# UDP -# -CONFIG_LWIP_MAX_UDP_PCBS=16 -CONFIG_LWIP_UDP_RECVMBOX_SIZE=6 -CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=3072 -CONFIG_LWIP_TCPIP_TASK_AFFINITY_NO_AFFINITY=y -CONFIG_LWIP_TCPIP_TASK_AFFINITY_CPU0= -CONFIG_LWIP_TCPIP_TASK_AFFINITY_CPU1= -CONFIG_LWIP_TCPIP_TASK_AFFINITY=0x7FFFFFFF -CONFIG_LWIP_PPP_SUPPORT= - -# -# ICMP -# -CONFIG_LWIP_MULTICAST_PING= -CONFIG_LWIP_BROADCAST_PING= - -# -# LWIP RAW API -# -CONFIG_LWIP_MAX_RAW_PCBS=16 - -# -# SNTP -# -CONFIG_LWIP_DHCP_MAX_NTP_SERVERS=1 -CONFIG_LWIP_SNTP_UPDATE_DELAY=3600000 - -# -# mbedTLS -# -CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC=y -CONFIG_MBEDTLS_EXTERNAL_MEM_ALLOC= -CONFIG_MBEDTLS_DEFAULT_MEM_ALLOC= -CONFIG_MBEDTLS_CUSTOM_MEM_ALLOC= -CONFIG_MBEDTLS_ASYMMETRIC_CONTENT_LEN=y -CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN=16384 -CONFIG_MBEDTLS_SSL_OUT_CONTENT_LEN=4096 -CONFIG_MBEDTLS_DEBUG= -CONFIG_MBEDTLS_ECP_RESTARTABLE= -CONFIG_MBEDTLS_CMAC_C= -CONFIG_MBEDTLS_HARDWARE_AES=y -CONFIG_MBEDTLS_HARDWARE_MPI= -CONFIG_MBEDTLS_HARDWARE_SHA=y -CONFIG_MBEDTLS_HAVE_TIME=y -CONFIG_MBEDTLS_HAVE_TIME_DATE= -CONFIG_MBEDTLS_TLS_SERVER_AND_CLIENT=y -CONFIG_MBEDTLS_TLS_SERVER_ONLY= -CONFIG_MBEDTLS_TLS_CLIENT_ONLY= -CONFIG_MBEDTLS_TLS_DISABLED= -CONFIG_MBEDTLS_TLS_SERVER=y -CONFIG_MBEDTLS_TLS_CLIENT=y -CONFIG_MBEDTLS_TLS_ENABLED=y - -# -# TLS Key Exchange Methods -# -CONFIG_MBEDTLS_PSK_MODES= -CONFIG_MBEDTLS_KEY_EXCHANGE_RSA=y -CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_RSA=y -CONFIG_MBEDTLS_KEY_EXCHANGE_ELLIPTIC_CURVE=y -CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_RSA=y -CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA=y -CONFIG_MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA=y -CONFIG_MBEDTLS_KEY_EXCHANGE_ECDH_RSA=y -CONFIG_MBEDTLS_SSL_RENEGOTIATION=y -CONFIG_MBEDTLS_SSL_PROTO_SSL3= -CONFIG_MBEDTLS_SSL_PROTO_TLS1=y -CONFIG_MBEDTLS_SSL_PROTO_TLS1_1=y -CONFIG_MBEDTLS_SSL_PROTO_TLS1_2=y -CONFIG_MBEDTLS_SSL_PROTO_DTLS= -CONFIG_MBEDTLS_SSL_ALPN=y -CONFIG_MBEDTLS_CLIENT_SSL_SESSION_TICKETS=y -CONFIG_MBEDTLS_SERVER_SSL_SESSION_TICKETS=y - -# -# Symmetric Ciphers -# -CONFIG_MBEDTLS_AES_C=y -CONFIG_MBEDTLS_CAMELLIA_C= -CONFIG_MBEDTLS_DES_C= -CONFIG_MBEDTLS_RC4_DISABLED=y -CONFIG_MBEDTLS_RC4_ENABLED_NO_DEFAULT= -CONFIG_MBEDTLS_RC4_ENABLED= -CONFIG_MBEDTLS_BLOWFISH_C= -CONFIG_MBEDTLS_XTEA_C= -CONFIG_MBEDTLS_CCM_C=y -CONFIG_MBEDTLS_GCM_C=y -CONFIG_MBEDTLS_RIPEMD160_C= - -# -# Certificates -# -CONFIG_MBEDTLS_PEM_PARSE_C=y -CONFIG_MBEDTLS_PEM_WRITE_C=y -CONFIG_MBEDTLS_X509_CRL_PARSE_C=y -CONFIG_MBEDTLS_X509_CSR_PARSE_C=y -CONFIG_MBEDTLS_ECP_C=y -CONFIG_MBEDTLS_ECDH_C=y -CONFIG_MBEDTLS_ECDSA_C=y -CONFIG_MBEDTLS_ECP_DP_SECP192R1_ENABLED=y -CONFIG_MBEDTLS_ECP_DP_SECP224R1_ENABLED=y -CONFIG_MBEDTLS_ECP_DP_SECP256R1_ENABLED=y -CONFIG_MBEDTLS_ECP_DP_SECP384R1_ENABLED=y -CONFIG_MBEDTLS_ECP_DP_SECP521R1_ENABLED=y -CONFIG_MBEDTLS_ECP_DP_SECP192K1_ENABLED=y -CONFIG_MBEDTLS_ECP_DP_SECP224K1_ENABLED=y -CONFIG_MBEDTLS_ECP_DP_SECP256K1_ENABLED=y -CONFIG_MBEDTLS_ECP_DP_BP256R1_ENABLED=y -CONFIG_MBEDTLS_ECP_DP_BP384R1_ENABLED=y -CONFIG_MBEDTLS_ECP_DP_BP512R1_ENABLED=y -CONFIG_MBEDTLS_ECP_DP_CURVE25519_ENABLED=y -CONFIG_MBEDTLS_ECP_NIST_OPTIM=y - -# -# mDNS -# -CONFIG_MDNS_MAX_SERVICES=10 - -# -# ESP-MQTT Configurations -# -CONFIG_MQTT_PROTOCOL_311=y -CONFIG_MQTT_TRANSPORT_SSL=y -CONFIG_MQTT_TRANSPORT_WEBSOCKET=y -CONFIG_MQTT_TRANSPORT_WEBSOCKET_SECURE=y -CONFIG_MQTT_USE_CUSTOM_CONFIG= -CONFIG_MQTT_TASK_CORE_SELECTION_ENABLED= -CONFIG_MQTT_CUSTOM_OUTBOX= - -# -# Newlib -# -CONFIG_NEWLIB_STDOUT_LINE_ENDING_CRLF=y -CONFIG_NEWLIB_STDOUT_LINE_ENDING_LF= -CONFIG_NEWLIB_STDOUT_LINE_ENDING_CR= -CONFIG_NEWLIB_STDIN_LINE_ENDING_CRLF= -CONFIG_NEWLIB_STDIN_LINE_ENDING_LF= -CONFIG_NEWLIB_STDIN_LINE_ENDING_CR=y -CONFIG_NEWLIB_NANO_FORMAT= - -# -# NVS -# - -# -# OpenSSL -# -CONFIG_OPENSSL_DEBUG= -CONFIG_OPENSSL_ASSERT_DO_NOTHING= -CONFIG_OPENSSL_ASSERT_EXIT=y - -# -# PThreads -# -CONFIG_PTHREAD_TASK_PRIO_DEFAULT=5 -CONFIG_PTHREAD_TASK_STACK_SIZE_DEFAULT=3072 -CONFIG_PTHREAD_STACK_MIN=768 -CONFIG_PTHREAD_DEFAULT_CORE_NO_AFFINITY=y -CONFIG_PTHREAD_DEFAULT_CORE_0= -CONFIG_PTHREAD_DEFAULT_CORE_1= -CONFIG_PTHREAD_TASK_CORE_DEFAULT=-1 -CONFIG_PTHREAD_TASK_NAME_DEFAULT="pthread" - -# -# SPI Flash driver -# -CONFIG_SPI_FLASH_VERIFY_WRITE= -CONFIG_SPI_FLASH_ENABLE_COUNTERS= -CONFIG_SPI_FLASH_ROM_DRIVER_PATCH=y -CONFIG_SPI_FLASH_DANGEROUS_WRITE_ABORTS=y -CONFIG_SPI_FLASH_DANGEROUS_WRITE_FAILS= -CONFIG_SPI_FLASH_DANGEROUS_WRITE_ALLOWED= -CONFIG_SPI_FLASH_USE_LEGACY_IMPL= - -# -# Auto-detect flash chips -# -CONFIG_SPI_FLASH_SUPPORT_ISSI_CHIP=y -CONFIG_SPI_FLASH_SUPPORT_GD_CHIP=y - -# -# SPIFFS Configuration -# -CONFIG_SPIFFS_MAX_PARTITIONS=3 - -# -# SPIFFS Cache Configuration -# -CONFIG_SPIFFS_CACHE=y -CONFIG_SPIFFS_CACHE_WR=y -CONFIG_SPIFFS_CACHE_STATS= -CONFIG_SPIFFS_PAGE_CHECK=y -CONFIG_SPIFFS_GC_MAX_RUNS=10 -CONFIG_SPIFFS_GC_STATS= -CONFIG_SPIFFS_PAGE_SIZE=256 -CONFIG_SPIFFS_OBJ_NAME_LEN=32 -CONFIG_SPIFFS_USE_MAGIC=y -CONFIG_SPIFFS_USE_MAGIC_LENGTH=y -CONFIG_SPIFFS_META_LENGTH=4 -CONFIG_SPIFFS_USE_MTIME=y - -# -# Debug Configuration -# -CONFIG_SPIFFS_DBG= -CONFIG_SPIFFS_API_DBG= -CONFIG_SPIFFS_GC_DBG= -CONFIG_SPIFFS_CACHE_DBG= -CONFIG_SPIFFS_CHECK_DBG= -CONFIG_SPIFFS_TEST_VISUALISATION= - -# -# TCP/IP Adapter -# -CONFIG_NETIF_IP_LOST_TIMER_INTERVAL=120 -CONFIG_TCPIP_LWIP=y - -# -# Unity unit testing library -# -CONFIG_UNITY_ENABLE_FLOAT=y -CONFIG_UNITY_ENABLE_DOUBLE=y -CONFIG_UNITY_ENABLE_COLOR= -CONFIG_UNITY_ENABLE_IDF_TEST_RUNNER=y -CONFIG_UNITY_ENABLE_FIXTURE= -CONFIG_UNITY_ENABLE_BACKTRACE_ON_FAIL= - -# -# Virtual file system -# -CONFIG_VFS_SUPPRESS_SELECT_DEBUG_OUTPUT=y -CONFIG_VFS_SUPPORT_TERMIOS=y - -# -# Host File System I/O (Semihosting) -# -CONFIG_SEMIHOSTFS_MAX_MOUNT_POINTS=1 -CONFIG_SEMIHOSTFS_HOST_PATH_MAX_LEN=128 - -# -# Wear Levelling -# -CONFIG_WL_SECTOR_SIZE_512= -CONFIG_WL_SECTOR_SIZE_4096=y -CONFIG_WL_SECTOR_SIZE=4096 - -# -# Wi-Fi Provisioning Manager -# -CONFIG_WIFI_PROV_SCAN_MAX_ENTRIES=16 -CONFIG_WIFI_PROV_AUTOSTOP_TIMEOUT=30 - -# -# Supplicant -# -CONFIG_WPA_MBEDTLS_CRYPTO=y -CONFIG_WPA_TLS_V12= - -# -# Compatibility options -# -CONFIG_LEGACY_INCLUDE_COMMON_HEADERS= diff --git a/code/src/CMakeLists.txt b/code/src/CMakeLists.txt index 9c82918eb..642362684 100644 --- a/code/src/CMakeLists.txt +++ b/code/src/CMakeLists.txt @@ -59,3 +59,4 @@ FILE(GLOB_RECURSE app_sources ${CMAKE_SOURCE_DIR}/src/*.*) idf_component_register(SRCS ${app_sources} INCLUDE_DIRS ".") + diff --git a/code/src/main.cpp b/code/src/main.cpp index 63d9182ef..e8721196b 100644 --- a/code/src/main.cpp +++ b/code/src/main.cpp @@ -40,7 +40,9 @@ void Init_NVS_SDCard() ESP_LOGI(TAGMAIN, "Initializing SD card"); sdmmc_host_t host = SDMMC_HOST_DEFAULT(); - host.flags = SDMMC_HOST_FLAG_1BIT; + host.flags = SDMMC_HOST_FLAG_1BIT; +// sdmmc_host_t host = SDMMC_HOST_SLOT_1(); +// host.flags = SDMMC_HOST_FLAG_1BIT; sdmmc_slot_config_t slot_config = SDMMC_SLOT_CONFIG_DEFAULT(); esp_vfs_fat_sdmmc_mount_config_t mount_config = { }; mount_config.format_if_mount_failed = false; @@ -65,11 +67,13 @@ void Init_NVS_SDCard() gpio_set_level(FLASH_GPIO, 0); } - -extern "C" void app_main() +extern "C" void app_main(void) { printf("Do Reset Camera\n"); PowerResetCamera(); + Camera.InitCam(); + Camera.LightOnOff(false); + Init_NVS_SDCard(); // LogFile.WriteToFile("Startsequence 02"); CheckOTAUpdate(); @@ -99,8 +103,8 @@ extern "C" void app_main() std::string zw = gettimestring("%Y%m%d-%H%M%S"); printf("time %s\n", zw.c_str()); - Camera.InitCam(); - Camera.LightOnOff(false); +// Camera.InitCam(); +// Camera.LightOnOff(false); xDelay = 2000 / portTICK_PERIOD_MS; printf("Autoflow: sleep for : %ldms\n", (long) xDelay); vTaskDelay( xDelay ); diff --git a/code/src/partition.csv b/code/src/partition.csv deleted file mode 100644 index 721057557..000000000 --- a/code/src/partition.csv +++ /dev/null @@ -1,7 +0,0 @@ -# Name, Type, SubType, Offset, Size, Flags -# Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap -nvs, data, nvs, , 0x4000, -otadata, data, ota, , 0x2000, -phy_init, data, phy, , 0x1000, -factory, app, factory, , 1900k, -ota_0, app, ota_0, , 1900k, \ No newline at end of file diff --git a/code/src/version.cpp b/code/src/version.cpp index d3d9b38c2..b1b2a8eb3 100644 --- a/code/src/version.cpp +++ b/code/src/version.cpp @@ -1,4 +1,4 @@ -const char* GIT_REV="c292ecd"; +const char* GIT_REV="1b5f6b4"; const char* GIT_TAG=""; -const char* GIT_BRANCH="master"; -const char* BUILD_TIME="2020-11-15 18:27"; \ No newline at end of file +const char* GIT_BRANCH="rolling"; +const char* BUILD_TIME="2020-11-30 12:06"; \ No newline at end of file diff --git a/code/src/zip._c b/code/src/zip._c deleted file mode 100644 index e69de29bb..000000000 diff --git a/code/test/README b/code/test/README index df5066e64..b94d0890f 100644 --- a/code/test/README +++ b/code/test/README @@ -1,5 +1,5 @@ -This directory is intended for PIO Unit Testing and project tests. +This directory is intended for PlatformIO Unit Testing and project tests. Unit Testing is a software testing method by which individual units of source code, sets of one or more MCU program modules together with associated @@ -7,5 +7,5 @@ control data, usage procedures, and operating procedures, are tested to determine whether they are fit for use. Unit testing finds problems early in the development cycle. -More information about PIO Unit Testing: +More information about PlatformIO Unit Testing: - https://docs.platformio.org/page/plus/unit-testing.html diff --git a/code/version.cpp b/code/version.cpp index d3d9b38c2..b1b2a8eb3 100644 --- a/code/version.cpp +++ b/code/version.cpp @@ -1,4 +1,4 @@ -const char* GIT_REV="c292ecd"; +const char* GIT_REV="1b5f6b4"; const char* GIT_TAG=""; -const char* GIT_BRANCH="master"; -const char* BUILD_TIME="2020-11-15 18:27"; \ No newline at end of file +const char* GIT_BRANCH="rolling"; +const char* BUILD_TIME="2020-11-30 12:06"; \ No newline at end of file diff --git a/firmware/bootloader.bin b/firmware/bootloader.bin index 4f8ddc1d1..219eae7c4 100644 Binary files a/firmware/bootloader.bin and b/firmware/bootloader.bin differ diff --git a/firmware/firmware.bin b/firmware/firmware.bin index 6a932f228..ce12ccce8 100644 Binary files a/firmware/firmware.bin and b/firmware/firmware.bin differ diff --git a/firmware/html.zip b/firmware/html.zip index 0d3efe60e..a803d8046 100644 Binary files a/firmware/html.zip and b/firmware/html.zip differ diff --git a/images/watermeter.jpg b/images/watermeter.jpg index 095b15cea..197bdc23c 100644 Binary files a/images/watermeter.jpg and b/images/watermeter.jpg differ diff --git a/sd-card/.DS_Store b/sd-card/.DS_Store deleted file mode 100644 index bb7022449..000000000 Binary files a/sd-card/.DS_Store and /dev/null differ diff --git a/sd-card/config/config.ini b/sd-card/config/config.ini index df9ba8a8d..4d14d2e5c 100644 --- a/sd-card/config/config.ini +++ b/sd-card/config/config.ini @@ -1,60 +1,63 @@ [MakeImage] ;LogImageLocation = /log/source ;LogfileRetentionInDays = 15 -WaitBeforeTakingPicture=5 +WaitBeforeTakingPicture = 5 ImageQuality = 5 ImageSize = VGA [Alignment] InitalRotate=180 -/config/ref0.jpg 119, 273 -/config/ref1.jpg 456, 138 +/config/ref0.jpg 119 273 +/config/ref1.jpg 456 138 SearchFieldX = 20 SearchFieldY = 20 [Digits] -Model=/config/dig0650s3.tflite -LogImageLocation = /log/digit -LogfileRetentionInDays = 15 -ModelInputSize 20, 32 -digit1, 306, 120, 37, 67 -digit2, 355, 120, 37, 67 -digit3, 404, 120, 37, 67 +Model = /config/dig0720s1.tflite +;LogImageLocation = /log/digit +;LogfileRetentionInDays = 3 +ModelInputSize = 20 32 +digit1 306 120 37 67 +digit2 355 120 37 67 +digit3 404 120 37 67 [Analog] -Model=/config/ana0630s2.tflite -LogImageLocation = /log/analog -LogfileRetentionInDays = 15 -ModelInputSize 32, 32 -analog1, 444, 225, 92, 92 -analog2, 391, 329, 92, 92 -analog3, 294, 369, 92, 92 -analog4, 168, 326, 92, 92 +Model = /config/ana0630s2.tflite +;LogImageLocation = /log/analog +;LogfileRetentionInDays = 3 +ModelInputSize = 32 32 +analog1 444 225 92 92 +analog2 391 329 92 92 +analog3 294 369 92 92 +analog4 168 326 92 92 [PostProcessing] DecimalShift = 0 -PreValueUse = True -PreValueAgeStartup = 30 -AllowNegativeRates = False +PreValueUse = true +PreValueAgeStartup = 720 +AllowNegativeRates = false MaxRateValue = 0.1 -ErrorMessage = True -CheckDigitIncreaseConsistency = False - -;[MQTT] -;Uri = mqtt://IP-MQTT-SERVER:1883 -;Topic = watermeter/readout -;ClientID = wasser +ErrorMessage = true +CheckDigitIncreaseConsistency = true + +[MQTT] +Uri = mqtt://IP-ADRESS:1883 +Topic = wasserzaehler/zaehlerstand +TopicError = wasserzaehler/error +ClientID = wasser ;user = USERNAME ;password = PASSWORD [AutoTimer] -AutoStart= True +AutoStart = true Intervall = 4.85 [Debug] -Logfile = False -; Number of days before a log file is deleted. 0 = disabled. 10 is default value (if not defined) -;LogfileRetentionInDays = 10 +Logfile = false +LogfileRetentionInDays = 3 + +[System] +TimeZone = CET-1CEST,M3.5.0,M10.5.0/3 [Ende] \ No newline at end of file diff --git a/sd-card/config/dig0650s3.tflite b/sd-card/config/dig0650s3.tflite deleted file mode 100644 index 1c81acaf0..000000000 Binary files a/sd-card/config/dig0650s3.tflite and /dev/null differ diff --git a/sd-card/config/dig0710s3.tflite b/sd-card/config/dig0710s3.tflite new file mode 100644 index 000000000..db7aaf1c5 Binary files /dev/null and b/sd-card/config/dig0710s3.tflite differ diff --git a/sd-card/config/dig0720s1.tflite b/sd-card/config/dig0720s1.tflite new file mode 100644 index 000000000..e0325e916 Binary files /dev/null and b/sd-card/config/dig0720s1.tflite differ diff --git a/sd-card/config/prevalue.ini b/sd-card/config/prevalue.ini new file mode 100644 index 000000000..0e7aedf54 --- /dev/null +++ b/sd-card/config/prevalue.ini @@ -0,0 +1,2 @@ +2020-11-30_12-02-22 +42.013401 diff --git a/sd-card/html/edit_config_param.html b/sd-card/html/edit_config_param.html new file mode 100644 index 000000000..1b9958081 --- /dev/null +++ b/sd-card/html/edit_config_param.html @@ -0,0 +1,833 @@ + + + +Edit Config + + + + + + + + + + + + +
+

Config.ini:

+
+ + +
+ +
+ + + + + + + + + + \ No newline at end of file diff --git a/sd-card/html/gethost.js b/sd-card/html/gethost.js index c61614e8b..79750188e 100644 --- a/sd-card/html/gethost.js +++ b/sd-card/html/gethost.js @@ -5,10 +5,10 @@ function gethost_Version(){ function getbasepath(){ var host = window.location.hostname; - if (host == "127.0.0.1") + if ((host == "127.0.0.1") || (host == "localhost")) { - host = "http://192.168.178.26"; // jomjol interner test -// host = "http://192.168.178.22"; // jomjol interner Real +// host = "http://192.168.178.26"; // jomjol interner test + host = "http://192.168.178.22"; // jomjol interner Real // host = "."; // jomjol interner localhost } else diff --git a/sd-card/html/index_configure.html b/sd-card/html/index_configure.html index cda18685f..f55e9a057 100644 --- a/sd-card/html/index_configure.html +++ b/sd-card/html/index_configure.html @@ -76,7 +76,7 @@

Configure Watermeter

- +
\ No newline at end of file diff --git a/sd-card/html/readconfig.js b/sd-card/html/readconfig.js index 8ed630557..e1164b02e 100644 --- a/sd-card/html/readconfig.js +++ b/sd-card/html/readconfig.js @@ -153,7 +153,7 @@ function SaveROIToConfig(_ROIInfo, _typeROI, _basepath){ else { linewrite++; } - config_split[linewrite] = _ROIInfo[i]["name"] + ", " + _ROIInfo[i]["x"] + ", " + _ROIInfo[i]["y"] + ", " + _ROIInfo[i]["dx"] + ", " + _ROIInfo[i]["dy"]; + config_split[linewrite] = _ROIInfo[i]["name"] + " " + _ROIInfo[i]["x"] + " " + _ROIInfo[i]["y"] + " " + _ROIInfo[i]["dx"] + " " + _ROIInfo[i]["dy"]; } SaveConfigToServer(_basepath); @@ -234,7 +234,7 @@ function SaveConfigToServer(_basepath){ function UpdateConfigFileReferenceChange(_basepath){ for (var _index = 0; _index < ref.length; ++_index){ - var zeile = ref[_index]["name"] + " " + ref[_index]["x"] + ", " + ref[_index]["y"]; + var zeile = ref[_index]["name"] + " " + ref[_index]["x"] + " " + ref[_index]["y"]; var _pos = ref[_index]["pos_ref"]; config_split[_pos] = zeile; } @@ -253,10 +253,10 @@ function UpdateConfigFileReferenceChange(_basepath){ } if (mirror_pos > -1) { if (mirror) { - config_split[mirror_pos] = "InitialMirror = True"; + config_split[mirror_pos] = "InitialMirror = true"; } else { - config_split[mirror_pos] = "InitialMirror = False"; + config_split[mirror_pos] = "InitialMirror = false"; } } else { @@ -285,7 +285,7 @@ function UpdateConfigFileReferenceChange(_basepath){ } function UpdateConfig(zw, _index, _enhance, _basepath){ - var zeile = zw["name"] + " " + zw["x"] + ", " + zw["y"]; + var zeile = zw["name"] + " " + zw["x"] + " " + zw["y"]; var _pos = ref[_index]["pos_ref"]; config_split[_pos] = zeile; diff --git a/sd-card/html/readconfigparam.js b/sd-card/html/readconfigparam.js new file mode 100644 index 000000000..72b8fe399 --- /dev/null +++ b/sd-card/html/readconfigparam.js @@ -0,0 +1,564 @@ +function readconfig_Version(){ + return "1.0.0 - 20200910"; + } + +var config_gesamt; +var config_split; +var param; +var ref = new Array(2); + +function ParseConfig() { + config_split = config_gesamt.split("\n"); + var aktline = 0; + + param = new Object(); + + var catname = "MakeImage"; + param[catname] = new Object(); + ParamAddValue(param, catname, "LogImageLocation"); + ParamAddValue(param, catname, "WaitBeforeTakingPicture"); + ParamAddValue(param, catname, "LogfileRetentionInDays"); + ParamAddValue(param, catname, "ImageQuality"); + ParamAddValue(param, catname, "ImageSize"); + + var catname = "Alignment"; + param[catname] = new Object(); + ParamAddValue(param, catname, "SearchFieldX"); + ParamAddValue(param, catname, "SearchFieldY"); + + var catname = "Digits"; + param[catname] = new Object(); + ParamAddValue(param, catname, "Model"); + ParamAddValue(param, catname, "LogImageLocation"); + ParamAddValue(param, catname, "LogfileRetentionInDays"); + ParamAddValue(param, catname, "ModelInputSize"); + + var catname = "Analog"; + param[catname] = new Object(); + ParamAddValue(param, catname, "Model"); + ParamAddValue(param, catname, "LogImageLocation"); + ParamAddValue(param, catname, "LogfileRetentionInDays"); + ParamAddValue(param, catname, "ModelInputSize"); + + var catname = "PostProcessing"; + param[catname] = new Object(); + ParamAddValue(param, catname, "DecimalShift"); + ParamAddValue(param, catname, "PreValueUse"); + ParamAddValue(param, catname, "PreValueAgeStartup"); + ParamAddValue(param, catname, "AllowNegativeRates"); + ParamAddValue(param, catname, "MaxRateValue"); + ParamAddValue(param, catname, "ErrorMessage"); + ParamAddValue(param, catname, "CheckDigitIncreaseConsistency"); + + var catname = "MQTT"; + param[catname] = new Object(); + ParamAddValue(param, catname, "Uri"); + ParamAddValue(param, catname, "Topic"); + ParamAddValue(param, catname, "TopicError"); + ParamAddValue(param, catname, "ClientID"); + ParamAddValue(param, catname, "user"); + ParamAddValue(param, catname, "password"); + + var catname = "AutoTimer"; + param[catname] = new Object(); + ParamAddValue(param, catname, "AutoStart"); + ParamAddValue(param, catname, "Intervall"); + + var catname = "Debug"; + param[catname] = new Object(); + ParamAddValue(param, catname, "Logfile"); + ParamAddValue(param, catname, "LogfileRetentionInDays"); + + var catname = "System"; + param[catname] = new Object(); + ParamAddValue(param, catname, "TimeZone"); + ParamAddValue(param, catname, "AutoAdjustSummertime"); + ParamAddValue(param, catname, "TimeUpdateIntervall"); + + while (aktline < config_split.length){ + if (config_split[aktline].trim().toUpperCase() == "[MAKEIMAGE]") { + aktline = ParseConfigParamMakeImage(aktline); + continue; + } + + if (config_split[aktline].trim().toUpperCase() == "[ALIGNMENT]") { + aktline = ParseConfigParamAlignment(aktline); + continue; + } + + if (config_split[aktline].trim().toUpperCase() == "[DIGITS]") { + aktline = ParseConfigParamDigit(aktline); + continue; + } + + if (config_split[aktline].trim().toUpperCase() == "[ANALOG]") { + aktline = ParseConfigParamAnalog(aktline); + continue; + } + + if (config_split[aktline].trim().toUpperCase() == "[POSTPROCESSING]") { + aktline = ParseConfigParamPostProcessing(aktline); + continue; + } + + if (config_split[aktline].trim().toUpperCase() == "[MQTT]") { + aktline = ParseConfigParamMQTT(aktline); + continue; + } + + if (config_split[aktline].trim().toUpperCase() == "[AUTOTIMER]") { + aktline = ParseConfigParamAutoTimer(aktline); + continue; + } + + if (config_split[aktline].trim().toUpperCase() == "[DEBUG]") { + aktline = ParseConfigParamDebug(aktline); + continue; + } + + if (config_split[aktline].trim().toUpperCase() == "[SYSTEM]") { + aktline = ParseConfigParamSystem(aktline); + continue; + } + + + + + + aktline++; + } +} + +function ParamAddValue(param, _cat, _param){ + param[_cat][_param] = new Object(); + param[_cat][_param]["found"] = false; + param[_cat][_param]["enabled"] = false; + param[_cat][_param]["line"] = -1; +}; + + +function ParseConfigParamSystem(_aktline){ + var akt_ref = 0; + ++_aktline; + + var catname = "System"; + while ((akt_ref < 2) && (_aktline < config_split.length) && (config_split[_aktline][0] != "[")) { + var _input = config_split[_aktline]; + let [isCom, input] = isCommented(_input); + var linesplit = ZerlegeZeile(input, " ="); + + ParamExtractValue(param, linesplit, catname, "TimeZone", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "AutoAdjustSummertime", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "TimeUpdateIntervall", _aktline, isCom); + + ++_aktline; + } + return _aktline; +} + +function ParseConfigParamDebug(_aktline){ + var akt_ref = 0; + ++_aktline; + + var catname = "Debug"; + while ((akt_ref < 2) && (_aktline < config_split.length) && (config_split[_aktline][0] != "[")) { + var _input = config_split[_aktline]; + let [isCom, input] = isCommented(_input); + var linesplit = ZerlegeZeile(input); + + ParamExtractValue(param, linesplit, catname, "Logfile", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "LogfileRetentionInDays", _aktline, isCom); + + ++_aktline; + } + return _aktline; +} + +function ParseConfigParamAutoTimer(_aktline){ + var akt_ref = 0; + ++_aktline; + + var catname = "AutoTimer"; + while ((akt_ref < 2) && (_aktline < config_split.length) && (config_split[_aktline][0] != "[")) { + var _input = config_split[_aktline]; + let [isCom, input] = isCommented(_input); + var linesplit = ZerlegeZeile(input); + + ParamExtractValue(param, linesplit, catname, "AutoStart", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "Intervall", _aktline, isCom); + + ++_aktline; + } + return _aktline; +} + +function ParseConfigParamMQTT(_aktline){ + var akt_ref = 0; + ++_aktline; + + var catname = "MQTT"; + while ((akt_ref < 2) && (_aktline < config_split.length) && (config_split[_aktline][0] != "[")) { + var _input = config_split[_aktline]; + let [isCom, input] = isCommented(_input); + var linesplit = ZerlegeZeile(input); + + ParamExtractValue(param, linesplit, catname, "Uri", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "Topic", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "TopicError", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "ClientID", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "user", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "password", _aktline, isCom); + + ++_aktline; + } + return _aktline; +} + +function ParseConfigParamPostProcessing(_aktline){ + var akt_ref = 0; + ++_aktline; + + var catname = "PostProcessing"; + while ((akt_ref < 2) && (_aktline < config_split.length) && (config_split[_aktline][0] != "[")) { + var _input = config_split[_aktline]; + let [isCom, input] = isCommented(_input); + var linesplit = ZerlegeZeile(input); + + ParamExtractValue(param, linesplit, catname, "DecimalShift", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "PreValueUse", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "PreValueAgeStartup", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "AllowNegativeRates", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "MaxRateValue", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "ErrorMessage", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "CheckDigitIncreaseConsistency", _aktline, isCom); + + ++_aktline; + } + return _aktline; +} + +function ParseConfigParamAnalog(_aktline){ + var akt_ref = 0; + ++_aktline; + + var catname = "Analog"; + while ((akt_ref < 2) && (_aktline < config_split.length) && (config_split[_aktline][0] != "[")) { + var _input = config_split[_aktline]; + let [isCom, input] = isCommented(_input); + var linesplit = ZerlegeZeile(input); + + ParamExtractValue(param, linesplit, catname, "Model", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "LogImageLocation", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "LogfileRetentionInDays", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "ModelInputSize", _aktline, isCom, 2); + + ++_aktline; + } + return _aktline; +} + +function ParseConfigParamDigit(_aktline){ + var akt_ref = 0; + ++_aktline; + + var catname = "Digits"; + while ((akt_ref < 2) && (_aktline < config_split.length) && (config_split[_aktline][0] != "[")) { + var _input = config_split[_aktline]; + let [isCom, input] = isCommented(_input); + var linesplit = ZerlegeZeile(input); + + ParamExtractValue(param, linesplit, catname, "Model", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "LogImageLocation", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "LogfileRetentionInDays", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "ModelInputSize", _aktline, isCom, 2); + + ++_aktline; + } + return _aktline; +} + + +function ParamExtractValue(_param, _linesplit, _catname, _paramname, _aktline, _iscom, _anzvalue = 1){ + if ((_linesplit[0].toUpperCase() == _paramname.toUpperCase()) && (_linesplit.length > _anzvalue)) + { + _param[_catname][_paramname]["found"] = true; + _param[_catname][_paramname]["enabled"] = !_iscom; + _param[_catname][_paramname]["line"] = _aktline; + _param[_catname][_paramname]["anzpara"] = _anzvalue; + for (var j = 1; j <= _anzvalue; ++j) { + _param[_catname][_paramname]["value"+j] = _linesplit[j]; + } + } +} + + +function ParseConfigParamAlignment(_aktline){ + var akt_ref = 0; + ++_aktline; + + var catname = "Alignment"; + while ((akt_ref < 2) && (_aktline < config_split.length) && (config_split[_aktline][0] != "[")) { + var _input = config_split[_aktline]; + let [isCom, input] = isCommented(_input); + var linesplit = ZerlegeZeile(input); + + ParamExtractValue(param, linesplit, catname, "SearchFieldX", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "SearchFieldY", _aktline, isCom); + + ++_aktline; + } + return _aktline; +} + +function ParseConfigParamMakeImage(_aktline){ + var akt_ref = 0; + ++_aktline; + + var catname = "MakeImage"; + while ((akt_ref < 2) && (_aktline < config_split.length) && (config_split[_aktline][0] != "[")) { + var _input = config_split[_aktline]; + let [isCom, input] = isCommented(_input); + var linesplit = ZerlegeZeile(input); + + ParamExtractValue(param, linesplit, catname, "LogImageLocation", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "WaitBeforeTakingPicture", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "LogfileRetentionInDays", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "ImageQuality", _aktline, isCom); + ParamExtractValue(param, linesplit, catname, "ImageSize", _aktline, isCom); + + ++_aktline; + } + return _aktline; +} + +function getConfigParameters() { + return param; +} + +function setConfigParameters(_param) { + for (var cat in _param) { + for (var name in _param[cat]) { + param[cat][name]["found"] = _param[cat][name]["found"]; + param[cat][name]["enabled"] = _param[cat][name]["enabled"]; + param[cat][name]["line"] = _param[cat][name]["line"]; + + param[cat][name]["anzpara"] = _param[cat][name]["anzpara"]; + for (var j = 1; j <= _param[cat][name]["anzpara"]; ++j) { + param[cat][name]["value"+j] = _param[cat][name]["value"+j]; + } + + if (param[cat][name]["found"]) { + var text = name + " =" + + for (var j = 1; j <= _param[cat][name]["anzpara"]; ++j) { + text = text + " " + param[cat][name]["value"+j]; + } + if (!param[cat][name]["enabled"]) { + text = ";" + text; + } + config_split[param[cat][name]["line"]] = text; + } + } + } + + config_gesamt = config_split[0]; + for (var i = 1; i < config_split.length; ++i){ + config_gesamt = config_gesamt + "\n" + config_split[i]; + } + + return config_gesamt; +} + + +function isCommented(input) + { + let isComment = false; + if (input.charAt(0) == ';') { + isComment = true; + input = input.substr(1, input.length-1); + }; + return [isComment, input]; + } + +function SaveConfigToServer(_basepath){ + // leere Zeilen am Ende löschen + var zw = config_split.length - 1; + while (config_split[zw] == "") { + config_split.pop(); + } + + var config_gesamt = ""; + for (var i = 0; i < config_split.length; ++i) + { + config_gesamt = config_gesamt + config_split[i] + "\n"; + } + + FileDeleteOnServer("/config/config.ini", _basepath); + + FileSendContent(config_gesamt, "/config/config.ini", _basepath); +} + +function createReader(file) { + var image = new Image(); + reader.onload = function(evt) { + var image = new Image(); + image.onload = function(evt) { + var width = this.width; + var height = this.height; + alert (width); // will produce something like 198 + }; + image.src = evt.target.result; + }; + reader.readAsDataURL(file); + } + +function ZerlegeZeile(input, delimiter = " =,") + { + var Output = Array(0); +// delimiter = " =,"; + + input = trim(input, delimiter); + var pos = findDelimiterPos(input, delimiter); + var token; + while (pos > -1) { + token = input.substr(0, pos); + token = trim(token, delimiter); + Output.push(token); + input = input.substr(pos+1, input.length); + input = trim(input, delimiter); + pos = findDelimiterPos(input, delimiter); + } + Output.push(input); + + return Output; + + } + +function findDelimiterPos(input, delimiter) + { + var pos = -1; + var zw; + var akt_del; + + for (var anz = 0; anz < delimiter.length; ++anz) + { + akt_del = delimiter[anz]; + zw = input.indexOf(akt_del); + if (zw > -1) + { + if (pos > -1) + { + if (zw < pos) + pos = zw; + } + else + pos = zw; + } + } + return pos; + } + +function trim(istring, adddelimiter) + { + while ((istring.length > 0) && (adddelimiter.indexOf(istring[0]) >= 0)){ + istring = istring.substr(1, istring.length-1); + } + + while ((istring.length > 0) && (adddelimiter.indexOf(istring[istring.length-1]) >= 0)){ + istring = istring.substr(0, istring.length-1); + } + + return istring; + } + +function loadConfig(_basepath) { + var xhttp = new XMLHttpRequest(); + config_gesamt = ""; + try { + url = _basepath + '/fileserver/config/config.ini'; + xhttp.open("GET", url, false); + xhttp.send(); + config_gesamt = xhttp.responseText; + return true; + } + catch (error) + { + // alert("Deleting Config.ini failed"); + } + return false; +} + +function getConfig() { + return config_gesamt; + } + + +function FileCopyOnServer(_source, _target, _basepath = ""){ + url = _basepath + "/editflow.html?task=copy&in=" + _source + "&out=" + _target; + var xhttp = new XMLHttpRequest(); + try { + xhttp.open("GET", url, false); + xhttp.send(); } + catch (error) + { +// alert("Deleting Config.ini failed"); + } +} + +function FileDeleteOnServer(_filename, _basepath = ""){ + var xhttp = new XMLHttpRequest(); + var okay = false; + + xhttp.onreadystatechange = function() { + if (xhttp.readyState == 4) { + if (xhttp.status == 200) { + okay = true; + } else if (xhttp.status == 0) { +// alert("Server closed the connection on delete abruptly!"); +// location.reload() + } else { +// alert(xhttp.status + " Error!\n" + xhttp.responseText); +// location.reload() + } + } + }; + try { + var url = _basepath + "/delete" + _filename; + xhttp.open("POST", url, false); + xhttp.send(); + } + catch (error) + { +// alert("Deleting Config.ini failed"); + } + + return okay; +} + +function FileSendContent(_content, _filename, _basepath = ""){ + var xhttp = new XMLHttpRequest(); + var okay = false; + + xhttp.onreadystatechange = function() { + if (xhttp.readyState == 4) { + if (xhttp.status == 200) { + okay = true; + } else if (xhttp.status == 0) { + alert("Server closed the connection abruptly!"); + } else { + alert(xhttp.status + " Error!\n" + xhttp.responseText); + } + } + }; + + try { + upload_path = _basepath + "/upload" + _filename; + xhttp.open("POST", upload_path, false); + xhttp.send(_content); + } + catch (error) + { +// alert("Deleting Config.ini failed"); + } + return okay; +} diff --git a/sd-card/html/version.txt b/sd-card/html/version.txt index 26aaba0e8..7ec1d6db4 100644 --- a/sd-card/html/version.txt +++ b/sd-card/html/version.txt @@ -1 +1 @@ -1.2.0 +2.1.0