scripts: P4-Nano probe app and C6 esp-hosted OTA tools

p4-probe identifies the P4 and its C6 over esp-hosted SDIO. c6-ota holds the
C6 coprocessor build and the two host updaters (3.1 and the 2.x one that moved
the factory C6 firmware to esp-hosted 3.1). Also the pending graphify output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Opus 5.5 committed 2026-11-24 13:52:12 +13:00
1 parent edf35e9c71
commit ba8e160aee
104 files changed
+8674 -204

No files matched your search

+1 -1
View File
@@ -1 +1 @@
{"ambiguous_scale": "", "code_only": false, "epoch": "v0.9.101-s36-g1339418af9f9", "excludes": [], "follow_symlinks": false, "full_clean": true, "gitignore": true, "graph_mtime_ns": 1795172531972213992, "graph_size": 6097377, "html_present": true, "no_cluster": false, "rcfile": "", "scan_digest": "a9a7ee37a600a42408abe075cde4166b", "scan_root": "/home/jimmy/projects/led-controller", "viz_node_limit": ""}
{"ambiguous_scale": "", "code_only": false, "epoch": "v0.9.101-s36-g1339418af9f9", "excludes": [], "follow_symlinks": false, "full_clean": true, "gitignore": true, "graph_mtime_ns": 1795480606940781875, "graph_size": 6244200, "html_present": true, "no_cluster": false, "rcfile": "", "scan_digest": "bb445f03887deebd91c2bfb31c901c13", "scan_root": "/home/jimmy/projects/led-controller", "viz_node_limit": ""}
+1 -1
View File
@@ -1 +1 @@
{"0": "372f41e14f9e5c2b", "1": "2d791c43bb8436ec", "2": "b63da06d6ca05666", "3": "658093cbc50e95df", "4": "7221607390cbf8f4", "5": "596848297960df5b", "6": "377e4690eb7abc3b", "7": "db455f81d7d6af14", "8": "a29e46ef109970d8", "9": "5e6bedc1d8578bcb", "10": "ba809033c2ac79db", "11": "014628e60d5d5ffe", "12": "cd9a1302e31a16be", "13": "38e3459e42de82ae", "14": "eca83dfa5059fcf5", "15": "50a8cff800baa4e1", "16": "b15b5e0e94827484", "17": "b6dcff528d4f6ded", "18": "ad41a861e5f6cbe9", "19": "36e64b70bd3252ce", "20": "67a9e5cbf438aa81", "21": "a74a1fe248e19594", "22": "ec9f21b796ada889", "23": "28ec5f2849e5192c", "24": "c91fb7ddc1580375", "25": "e8bcfe2daf9c27fd", "26": "6642e6678bf50049", "27": "24c2db367e0711da", "28": "c57242f1da7a7906", "29": "a5cce0735423723c", "30": "8c465f3df9b2ddbd", "31": "3b6f479312bb5988", "32": "a0dc955f5ac1b34a", "33": "05aaa3a7a29a1764", "34": "74450c755029be52", "35": "602dc738b94ae94a", "36": "8805aeaadbaf49db", "37": "0614343d663bf2f8", "38": "72b44391bf5e5aca", "39": "7792fe6a1a4fe215", "40": "522f41c748a48214", "41": "832bcba1b5958ec1", "42": "ca5f38fabb644c68", "43": "67a1e5a0f9065fb8", "44": "17db07507f9363bc", "45": "2c79b28433cd154f", "46": "92de7c4aa357dbb4", "47": "05417e9bf8f53a59", "48": "46b84e04c8a769a1", "49": "01bb51d3946bc98b", "50": "85c59c730f100a0c", "51": "c3eef28729a94247", "52": "104e68c712b4f8ee", "53": "141393a45638779c", "54": "50e29eb032567d0a", "55": "5d90aa863eb2d01e", "56": "973ac14a32bd0435", "57": "c3f83d1d8be07123", "58": "999495a3bbaf2b82", "59": "780a13488100c622", "60": "028156d7299ad787", "61": "4c61a5703d5fbbe7", "62": "2d8d5165b8ba5bc9", "63": "3f32204f50610f42", "64": "729ec040f9bb167f", "65": "b17e4e22dfe31a3d", "66": "81715faf7ebb139e", "67": "3185bd788c025bff", "68": "b19b358cf7da65cc", "69": "b4ae03e3c0ac6f15", "70": "9affb95b7a8926f7", "71": "ed7ffb3b7c9eeb9e", "72": "1d9bb939049a306e", "73": "298efcf42a95f405", "74": "eba098e69c3ac619", "75": "bf9874092cf0e2f3", "76": "7b12c859e68864eb", "77": "7aaa2c2882e498f2", "78": "526e1ee4231263e6", "79": "0aadcaffca2fec2f", "80": "b44b759b294e7fb1", "81": "2a44adbbdb7b2cc2", "82": "7d5560702e41f10c", "83": "1b0ca72bf67d865e", "84": "fa774503c64e42e5", "85": "67e8988d64ef02c3", "86": "9ece95d0e89f5392", "87": "186dd13162172b05", "88": "d924b68f261df26a", "89": "398b5207169d04f1", "90": "4bc03d14d36cb508", "91": "ab64084e0052dd1b", "92": "b549e617825efc45", "93": "c2ce778772ae9284", "94": "d5158ef796f5f6ad", "95": "823a1e06c57794b5", "96": "fe6e422923b8d6ef", "97": "b99572922cb03733", "98": "226360a4a30bd9da", "99": "abac395794421605", "100": "9aca7fb904e98362", "101": "e8c3d507c7523478", "102": "5e7048115c96c435", "103": "89850ee47c9ca738", "104": "6b44fd779534127a", "105": "98b16b4bcf978a30", "106": "8d89f7245d63d61a", "107": "01172c7d40a936d1", "108": "5452e4be3ed3be3c", "109": "62dfdb23b2c54d82", "110": "05419fa6a91533bf", "111": "66b50b0357357d62", "112": "06f8269454e09b4a", "113": "66e63867ee9ac604", "114": "fab5dd214febb09b", "115": "f3b1e77b5ff745de", "116": "2d5d657b0cb526af", "117": "8a68d6ebf88e07ea", "118": "4b507a629ac7f04f", "119": "c394c3d1e26256c8", "120": "8059a64174d9729b", "121": "b77edb57c9058871", "122": "9b758d47bd1a6c69", "123": "3757904e987193d1", "124": "31393e346409a0b4", "125": "abd26dda53304e54", "126": "19bc0624255aed9a", "127": "682784ef7eb6ab79", "128": "395569e089b1417a", "129": "93fc8b4ad7c9ca62", "130": "8363eed2536a6846", "131": "6ea04380be4159ca", "132": "95ef3791087ae3cb", "133": "5ea357e009193aee", "134": "692d38c636992a64", "135": "818a4539f18579c8", "136": "8cf9b95495c936a5", "137": "081bae76cc9e1f60", "138": "513f0c5816361dda", "139": "a3c37d8eab9ed049", "140": "7f4e0effc09d9671", "141": "101debf4b251ec78", "142": "01c470ad572a2a84", "143": "a88d6d5c1f805166", "144": "a7a26633381cc935", "145": "8fc084b6564c04cd", "146": "cb4b693c8a2db3d0", "147": "b031133b75382475", "148": "73b79ac1f6ea0d0f", "149": "496a0a14d2f3f063", "150": "535ff56fa874156d", "151": "82887211cf2bedf5", "152": "d7b01ac313a993bf", "153": "a1afbf3a5362e984", "154": "7ab2338abe50e2d2", "155": "b99358ab84ba22d5", "156": "f7b8f6a932f020e1", "157": "76a7b257781e8721", "158": "1496a7273bd8cbf0", "159": "70c38a287cac17ff", "160": "1b3167ce48880094", "161": "d9b95efbe9a3ca0a", "162": "79347942af0064f9", "163": "ee9ad33fb556ea89", "164": "ff462f4575171eb0", "165": "7feb2f5b09134ca9", "166": "b446655adb67f859", "167": "cfef8526fa129559", "168": "81c20c6e0d0187d4", "169": "3d3f4c5f67647202", "170": "982c977c10761a5f", "171": "c8052f332c3d2369", "172": "ffa84e66ab7f2c83", "173": "9bcf4d1a57c0ba2a", "174": "6ca582b7df7276a1", "175": "de377ed03b71265f", "176": "1fb6d892ae8678c7", "177": "085f7f96598bc338", "178": "635a043e81152bc8", "179": "d551a178b3171529", "180": "5ae949a86bd02dd3", "181": "040c831fbc62df23", "182": "09fe188418c42b7a", "183": "90b339bb352b5f47", "184": "551d7508ae9dc04a", "185": "ced44d681e2ec183", "186": "ff963270b8878129", "187": "bb41b7312f4e3083", "188": "a08753a73e0ca7d5", "189"Line truncated
{"0": "372f41e14f9e5c2b", "1": "2d791c43bb8436ec", "2": "b63da06d6ca05666", "3": "658093cbc50e95df", "4": "7221607390cbf8f4", "5": "2e5e6386b3738833", "6": "377e4690eb7abc3b", "7": "9e76078bd3c323e1", "8": "e7e52a26e954e7ce", "9": "5e6bedc1d8578bcb", "10": "ba809033c2ac79db", "11": "014628e60d5d5ffe", "12": "cd9a1302e31a16be", "13": "38e3459e42de82ae", "14": "3b6731c83f067f21", "15": "50a8cff800baa4e1", "16": "b15b5e0e94827484", "17": "aa38f635dd47c24b", "18": "9c1548893c72ecda", "19": "36e64b70bd3252ce", "20": "6a4fa67f9ba3ab73", "21": "87da000d51172a4e", "22": "ec9f21b796ada889", "23": "865ab1419e22dddc", "24": "171804ba57132e8c", "25": "1a3a2acee92c022b", "26": "381e0f90829fba82", "27": "8bed5d4c7acc57c8", "28": "c57242f1da7a7906", "29": "a5cce0735423723c", "30": "8c465f3df9b2ddbd", "31": "d1f0f2796a187fff", "32": "5285c76ee28cc826", "33": "5b3d2ff6991c7ea6", "34": "74450c755029be52", "35": "78b2b1ec9ef9ca8e", "36": "8805aeaadbaf49db", "37": "d579278abf6a1ae9", "38": "72b44391bf5e5aca", "39": "7792fe6a1a4fe215", "40": "9ca8e85f31fb7602", "41": "714ad3da0ac59309", "42": "ca5f38fabb644c68", "43": "4e06b3a35051b347", "44": "17db07507f9363bc", "45": "2c79b28433cd154f", "46": "b770b7d17fc2d4dc", "47": "ae4f0993d23e55dd", "48": "46b84e04c8a769a1", "49": "01bb51d3946bc98b", "50": "85c59c730f100a0c", "51": "c3eef28729a94247", "52": "33c9f8c0c0f0c2af", "53": "141393a45638779c", "54": "27b23a9ca99bc85d", "55": "5d90aa863eb2d01e", "56": "973ac14a32bd0435", "57": "c3f83d1d8be07123", "58": "999495a3bbaf2b82", "59": "599163a41c68dead", "60": "cf518bc6c22736e4", "61": "4c61a5703d5fbbe7", "62": "e44e72005db3af15", "63": "3f32204f50610f42", "64": "729ec040f9bb167f", "65": "2b595be0fe1c1cf4", "66": "d07ec7aff7361dd5", "67": "3185bd788c025bff", "68": "c59f6100e7194b21", "69": "3f8a83cc3517a7c8", "70": "9affb95b7a8926f7", "71": "3b6c96099f633b31", "72": "0c38ccfbb84bf400", "73": "1958447ec83a7874", "74": "01649443c17cb4dd", "75": "bf9874092cf0e2f3", "76": "7b12c859e68864eb", "77": "ea87618659e9374f", "78": "526e1ee4231263e6", "79": "0aadcaffca2fec2f", "80": "b44b759b294e7fb1", "81": "834616f97713e651", "82": "7d5560702e41f10c", "83": "1b0ca72bf67d865e", "84": "fa774503c64e42e5", "85": "67e8988d64ef02c3", "86": "711f0cb714854c8e", "87": "186dd13162172b05", "88": "d924b68f261df26a", "89": "85ba0829a67f2d36", "90": "4bc03d14d36cb508", "91": "ab64084e0052dd1b", "92": "ae3cdf19fa855533", "93": "c2ce778772ae9284", "94": "432a5c0b8538708b", "95": "823a1e06c57794b5", "96": "fe6e422923b8d6ef", "97": "87f77452d4c416e3", "98": "226360a4a30bd9da", "99": "999d0e24ceb039a6", "100": "52fa57ef146fa1a1", "101": "e8c3d507c7523478", "102": "5e7048115c96c435", "103": "89850ee47c9ca738", "104": "6b44fd779534127a", "105": "98b16b4bcf978a30", "106": "ac8a0985cad9f9e6", "107": "01172c7d40a936d1", "108": "5452e4be3ed3be3c", "109": "62dfdb23b2c54d82", "110": "05419fa6a91533bf", "111": "66b50b0357357d62", "112": "06f8269454e09b4a", "113": "66e63867ee9ac604", "114": "fab5dd214febb09b", "115": "f3b1e77b5ff745de", "116": "2d5d657b0cb526af", "117": "8a68d6ebf88e07ea", "118": "4b507a629ac7f04f", "119": "c394c3d1e26256c8", "120": "8059a64174d9729b", "121": "b77edb57c9058871", "122": "9b758d47bd1a6c69", "123": "3757904e987193d1", "124": "3ec078b8190a541e", "125": "20b90a03298759db", "126": "19bc0624255aed9a", "127": "682784ef7eb6ab79", "128": "c667c91d46cca0b8", "129": "93fc8b4ad7c9ca62", "130": "8363eed2536a6846", "131": "d8f24f323e8fd32f", "132": "18144893765ecf48", "133": "5a07c1f56a8f3a19", "134": "692d38c636992a64", "135": "818a4539f18579c8", "136": "d79cafc62d17f6c2", "137": "081bae76cc9e1f60", "138": "513f0c5816361dda", "139": "fb8a7a4e82da2292", "140": "7f4e0effc09d9671", "141": "101debf4b251ec78", "142": "01c470ad572a2a84", "143": "a88d6d5c1f805166", "144": "a7a26633381cc935", "145": "8fc084b6564c04cd", "146": "cb4b693c8a2db3d0", "147": "b031133b75382475", "148": "73b79ac1f6ea0d0f", "149": "496a0a14d2f3f063", "150": "535ff56fa874156d", "151": "82887211cf2bedf5", "152": "d7b01ac313a993bf", "153": "a1afbf3a5362e984", "154": "7ab2338abe50e2d2", "155": "b99358ab84ba22d5", "156": "f7b8f6a932f020e1", "157": "76a7b257781e8721", "158": "1496a7273bd8cbf0", "159": "70c38a287cac17ff", "160": "1b3167ce48880094", "161": "d9b95efbe9a3ca0a", "162": "79347942af0064f9", "163": "ee9ad33fb556ea89", "164": "ff462f4575171eb0", "165": "7feb2f5b09134ca9", "166": "368fca9714086cab", "167": "cfef8526fa129559", "168": "81c20c6e0d0187d4", "169": "3d3f4c5f67647202", "170": "982c977c10761a5f", "171": "c8052f332c3d2369", "172": "ffa84e66ab7f2c83", "173": "9bcf4d1a57c0ba2a", "174": "6ca582b7df7276a1", "175": "de377ed03b71265f", "176": "1fb6d892ae8678c7", "177": "085f7f96598bc338", "178": "70b47520df7dafb5", "179": "b7aa2aab07f28f7f", "180": "5ae949a86bd02dd3", "181": "040c831fbc62df23", "182": "09fe188418c42b7a", "183": "90b339bb352b5f47", "184": "9fb67229fc2161f5", "185": "ced44d681e2ec183", "186": "ff963270b8878129", "187": "bb41b7312f4e3083", "188": "a08753a73e0ca7d5", "189"Line truncated
+29 -21
View File
@@ -15,7 +15,7 @@
"23": "cJSON",
"24": "time",
"25": "Microdot",
"26": "bridge.c",
"26": "bridge_main.c",
"27": "NoCaseDict",
"29": "binary_envelope.py",
"31": "auth.c",
@@ -31,11 +31,11 @@
"43": "cJSON_Delete",
"44": "events",
"45": "http_parser.h",
"46": "settings_load_net",
"46": "EMSCRIPTEN_KEEPALIVE",
"47": "argparse",
"50": "steps",
"52": "vTaskDelay",
"54": "Request",
"52": "beat.c",
"54": "sim_stubs.c",
"55": "httpd_ws_frame",
"56": "test_outputs.py",
"57": "httpd_config",
@@ -47,11 +47,11 @@
"65": "ESPNow",
"66": "presets.cpp",
"67": "auth.js",
"68": "cJSON_CreateObject",
"68": "cJSON_AddStringToObject",
"69": "httpd_sess.c",
"71": "BridgeSim",
"72": "httpd_data",
"74": "bridge_main.c",
"74": "espnow_link.cpp",
"75": "v1 driver messages (long/short keys)",
"77": "sys",
"78": "sim_split.js",
@@ -60,20 +60,20 @@
"82": "events",
"83": "dmx.js",
"84": "test_groups.py",
"86": "cJSON_GetObjectItem",
"86": "cJSON_Delete",
"88": "events",
"89": "relay_forward",
"90": "Sender",
"91": "Pin",
"92": "machine.py",
"92": "vTaskDelay",
"93": "events",
"94": "espnow_tx_beat",
"94": "bench.c",
"95": "test_dmx_bridge.py",
"96": "sim_demo.py",
"97": "esp_timer_start_once",
"98": "led-controller ESP32-S3 firmware",
"99": "patterns.c",
"100": "HTTPException",
"99": "cJSON_GetObjectItem",
"100": "mdns_host.c",
"102": "httpd_req_aux",
"106": "httpd_main.c",
"107": "main",
@@ -85,10 +85,10 @@
"124": "httpd_ws.c",
"125": "led_strip_spi_dev.c",
"126": "dmx-draw.js",
"128": "rig_seed.py",
"128": "ws2812.cpp",
"131": "PatternPlayer",
"132": "Response",
"133": "led_strip_rmt_encoder.c",
"132": "microdot.py",
"133": "wifi_drv.c",
"135": "cmakeVariables",
"136": "HttpDevice",
"137": "events",
@@ -118,28 +118,31 @@
"169": "build_sim_web.sh",
"170": "dependencies",
"177": "sock_db",
"178": "_simlink.py",
"178": "dependencies",
"179": "httpd_txrx.c",
"184": "NeoPixel",
"197": "websocket.py",
"197": "Test Server Tools",
"198": "SerialTransport",
"199": "hmac256",
"200": "esp_err_t",
"200": "Supported Platforms and Transports",
"201": "httpd_ctrl_data",
"202": "build-flash/bootloader/CMakeFiles/4.0.3/CompilerIdC/CMakeCCompilerId.c",
"203": "parse_static",
"203": "Supported Platforms and Transports",
"204": "_simlink_proc.py",
"206": "URLPattern",
"205": "dependencies",
"206": "ws_slot_drop",
"207": "Settings",
"208": "build-flash/bootloader/CMakeFiles/4.0.3/CompilerIdCXX/CMakeCXXCompilerId.cpp",
"209": "WLAN",
"210": "fetch_cache.js",
"211": "build-flash/CMakeFiles/4.0.3/CompilerIdC/CMakeCCompilerId.c",
"212": "random",
"213": "Slave Firmware Binaries for LittleFS OTA",
"214": "workspace/patterns/__init__.py",
"215": "Slave Firmware Binaries for Partition OTA",
"216": "dmx_decode.test.mjs",
"217": "api_call_t",
"218": "SerialDMX",
"218": "time",
"219": "build-flash/CMakeFiles/4.0.3/CompilerIdCXX/CMakeCXXCompilerId.cpp",
"220": "ui_confirm.js",
"221": "nvs_open",
@@ -162,6 +165,7 @@
"238": "build-espnow/config/sdkconfig.h",
"239": "build-espnow/project_elf_src_esp32c3.c",
"240": "build-timing/CMakeFiles/4.0.3/CompilerIdC/CMakeCCompilerId.c",
"241": "KeyName",
"242": "DMX Driver Art-Net and serial gateway",
"243": "build-timing/CMakeFiles/4.0.3/CompilerIdCXX/CMakeCXXCompilerId.cpp",
"244": "build-flash/bootloader/config/sdkconfig.h",
@@ -172,5 +176,9 @@
"249": "build-timing/bootloader/config/sdkconfig.h",
"250": "build-timing/bootloader/project_elf_src_esp32c3.c",
"251": "build-timing/config/sdkconfig.h",
"252": "build-timing/project_elf_src_esp32c3.c"
"252": "build-timing/project_elf_src_esp32c3.c",
"253": "dependencies",
"254": "dependencies",
"255": "bridge_mac_is_dmx",
"256": "create_self_signed_certs.sh"
}
@@ -0,0 +1,77 @@
{
"1": "htmx Library",
"3": "Browser Tests & Mockup Images",
"4": "Audio UI (JS)",
"7": "led-tool Device CLI",
"10": "Spec: Pi Animation Engine",
"12": "Presets UI (JS)",
"13": "Zones UI (JS)",
"16": "Sequences UI (JS)",
"19": "led_strip Component Docs",
"20": "Art-Net Output",
"28": "Devices UI (JS)",
"30": "Colour Picker Mockups",
"36": "API Docs: Outputs & Audio",
"39": "Beat Detection DSP (C)",
"48": "Colour Picker JS",
"49": "Chromium Colour Picker JS",
"51": "API Tests: Devices",
"53": "mpremote Transport",
"61": "API Test Fixtures & Audio",
"63": "Help: Zones & Palette",
"70": "Index Page Modals",
"73": "Microdot WebSocket (dmx)",
"76": "Controller Overview & OTA Docs",
"79": "Audio Monitor Page",
"85": "ESP-NOW Sender Bridge",
"87": "Microdot Async IO (dmx)",
"101": "Groups UI (JS)",
"103": "Help: Mobile Menu Image",
"104": "Pattern Selector Mockup Image",
"105": "Driver Pattern Docs",
"109": "Driver Message API Docs",
"111": "led_strip Manifest",
"113": "Outputs UI (JS)",
"115": "Help PDF: Overview",
"116": "Mockups Index Image",
"118": "Help: Header Toolbar Image",
"119": "Help: Preset Editor Image",
"120": "Dashboard Mockup Image",
"121": "Device Management Mockup Image",
"122": "Presets Mockup Image",
"123": "Pattern Contract",
"127": "Numpad Shortcuts (JS)",
"129": "Colour Picker Demo Image",
"130": "Settings Mockup Image",
"134": "API Tests: Settings",
"138": "Help: Colour Palette Image",
"140": "LED Driver README",
"142": "SPI Example Manifest",
"145": "Help PDF: Modes",
"146": "Help: Tab Preset Strip Image",
"156": "RMT Example Manifest",
"157": "Help Tab JS",
"158": "Settings Page Template",
"171": "List Search (JS)",
"172": "DMX Solid Pattern",
"173": "led-test Manifest",
"174": "VPN Autoconnect Script",
"175": "Zone Devices Panel",
"176": "graphify Instructions",
"180": "Device Mockup Modals",
"181": "bulk.sh Script",
"182": "deploy.sh Script",
"183": "Driver install.sh",
"185": "led-tool install.sh",
"186": "Help PDF Build Script",
"187": "Web Build Script",
"188": "Patterns UI (JS)",
"189": "DMX Patterns Init",
"190": "Mockup Tab Switch",
"191": "Spec: Pattern Selector UI",
"192": "mpremote Package",
"193": "Bundle Import/Export (JS)",
"194": "Colour Palette (JS)",
"195": "Profiles UI (JS)",
"196": "Zone Palette (JS)"
}
+917
View File
@@ -0,0 +1,917 @@
# Graph Report - led-controller (2026-11-21)
## Corpus Check
- 478 files · ~1,713,317 words
- Verdict: corpus is large enough that graph structure adds value.
- Unclassified: 5052 file(s) not represented in the graph (top: .obj 3536, .cmake 640, .a 416)
## Summary
- 5521 nodes · 16178 edges · 249 communities (156 shown, 93 thin omitted)
- Extraction: 75% EXTRACTED · 25% INFERRED · 0% AMBIGUOUS · INFERRED: 4078 edges (avg confidence: 0.85)
- Token cost: 0 input · 0 output
## Graph Freshness
- Built from commit: `35207a86`
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
- Run `graphify update .` after code changes (no API cost).
## Community Hubs (Navigation)
- IdfDevice
- htmx Library
- PyboardCommand
- Browser Tests & Mockup Images
- Audio UI (JS)
- cJSON
- controller
- led-tool Device CLI
- ab
- Compiler
- Spec: Pi Animation Engine
- seq_timeline.js
- Presets UI (JS)
- Zones UI (JS)
- freertos.c
- unique
- Sequences UI (JS)
- httpd_handle_t
- bridge_dmx.c
- led_strip Component Docs
- Art-Net Output
- web.cpp
- desktop_main.c
- cJSON
- time
- Microdot
- bridge.c
- NoCaseDict
- Devices UI (JS)
- binary_envelope.py
- Colour Picker Mockups
- auth.c
- nvs_sim.cpp
- httpd_parse.c
- test_sequences.py
- seqplay.c
- API Docs: Outputs & Audio
- bridge_serial.c
- driver_ota.py
- Beat Detection DSP (C)
- xSemaphoreGive
- WS2812
- run_all
- cJSON_Delete
- events
- http_parser.h
- settings_load_net
- argparse
- Colour Picker JS
- Chromium Colour Picker JS
- steps
- API Tests: Devices
- vTaskDelay
- mpremote Transport
- Request
- httpd_ws_frame
- test_outputs.py
- httpd_config
- gallery.js
- mic_alsa.c
- test_sim_net.py
- API Test Fixtures & Audio
- run_test
- Help: Zones & Palette
- ddp_test.py
- ESPNow
- presets.cpp
- auth.js
- cJSON_CreateObject
- httpd_sess.c
- Index Page Modals
- BridgeSim
- httpd_data
- Microdot WebSocket (dmx)
- bridge_main.c
- v1 driver messages (long/short keys)
- Controller Overview & OTA Docs
- sys
- sim_split.js
- Audio Monitor Page
- artnet_dmx.py
- OutputManager
- events
- dmx.js
- test_groups.py
- ESP-NOW Sender Bridge
- cJSON_GetObjectItem
- Microdot Async IO (dmx)
- events
- relay_forward
- Sender
- Pin
- machine.py
- events
- espnow_tx_beat
- test_dmx_bridge.py
- sim_demo.py
- esp_timer_start_once
- led-controller ESP32-S3 firmware
- patterns.c
- HTTPException
- Groups UI (JS)
- httpd_req_aux
- Help: Mobile Menu Image
- Pattern Selector Mockup Image
- Driver Pattern Docs
- httpd_main.c
- main
- cmakeVariables
- Driver Message API Docs
- run_soak
- led_strip Manifest
- test_auth.py
- Outputs UI (JS)
- dependencies
- Help PDF: Overview
- Mockups Index Image
- test_routes.py
- Help: Header Toolbar Image
- Help: Preset Editor Image
- Dashboard Mockup Image
- Device Management Mockup Image
- Presets Mockup Image
- Pattern Contract
- httpd_ws.c
- led_strip_spi_dev.c
- dmx-draw.js
- Numpad Shortcuts (JS)
- rig_seed.py
- Colour Picker Demo Image
- Settings Mockup Image
- PatternPlayer
- Response
- led_strip_rmt_encoder.c
- cmakeVariables
- HttpDevice
- events
- Help: Colour Palette Image
- esp_err.h
- LED Driver README
- events
- SPI Example Manifest
- test_rig_sim.py
- settings_editor.js
- Help PDF: Modes
- Help: Tab Preset Strip Image
- test_patterns.py
- vendor.sh
- app.js
- RMT Example Manifest
- Help Tab JS
- Settings Page Template
- led-driver/web/app.js
- dmx_bridge.js
- Preset
- httpd_req
- test_audio.py
- build_sim_web.sh
- dependencies
- List Search (JS)
- DMX Solid Pattern
- led-test Manifest
- VPN Autoconnect Script
- graphify Instructions
- sock_db
- httpd_txrx.c
- bulk.sh Script
- deploy.sh Script
- Driver install.sh
- NeoPixel
- led-tool install.sh
- Help PDF Build Script
- Web Build Script
- Spec: Pattern Selector UI
- websocket.py
- SerialTransport
- hmac256
- esp_err_t
- httpd_ctrl_data
- parse_static
- _simlink_proc.py
- URLPattern
- Settings
- WLAN
- dmx_decode.test.mjs
- api_call_t
- SerialDMX
- ui_confirm.js
- nvs_open
- build.sh
- dependencies
- examples/blink.py
- driver-worker.js
- layout.js
- README.md
- DMX Driver Art-Net and serial gateway
- ctrl_msg.cpp
## God Nodes (most connected - your core abstractions)
1. `cJSON` - 292 edges
2. `cJSON_GetObjectItem()` - 237 edges
3. `httpd_req_t` - 183 edges
4. `cJSON_Delete()` - 162 edges
5. `cJSON_CreateObject()` - 155 edges
6. `cJSON_IsString()` - 129 edges
7. `cJSON_AddStringToObject()` - 121 edges
8. `store_coll()` - 111 edges
9. `xSemaphoreTake()` - 78 edges
10. `xSemaphoreGive()` - 78 edges
## Surprising Connections (you probably didn't know these)
- `Channel` --references--> `bridge_serial_set_channel()` [INFERRED]
bridge/README.md → main/bridge_serial.c
- `Build and run` --references--> `info()` [INFERRED]
desktop/README.md → tools/ota.py
- `Preset editor modal` --semantically_similar_to--> `Preset fields (pattern, colors, delay, brightness, auto, n1-n6)` [INFERRED] [semantically similar]
web/templates/index.html → led-driver/docs/API.md
- `status_payload()` --calls--> `mic_error()` [INFERRED]
main/audio_api.c → desktop/port/src/mic_alsa.c
- `audio_handler()` --calls--> `mic_is_open()` [INFERRED]
main/audio_api.c → desktop/port/src/mic_alsa.c
## Import Cycles
- None detected.
## Hyperedges (group relationships)
- **Audio page live endpoints** — web_audio_status, web_audio_beats, web_audio_audio_wav, web_audio_time, web_audio_tap_ep [EXTRACTED 1.00]
- **Beat latency measurement methods** — docs_api_bench_endpoints, docs_bench_test_usb_latency, docs_bench_test_logic_analyzer, docs_bench_test_beat_lead [EXTRACTED 1.00]
- **Combined brightness factors** — docs_api_combined_brightness, docs_api_settings, docs_api_groups, docs_api_devices, docs_api_zones [EXTRACTED 1.00]
- **Color picker feature set** — docs_mockups_images_color_picker_demo_hsb_color_model, docs_mockups_images_color_picker_demo_hex_rgb_input, docs_mockups_images_color_picker_demo_keyboard_accessibility, docs_mockups_images_color_picker_demo_cross_platform_consistency [EXTRACTED 1.00]
- **Edit-mode-only management features** — docs_help_edit_mode, docs_help_zones_modal, docs_help_send_presets, docs_help_patterns_dialog, docs_help_colour_palette, docs_help_presets_list [EXTRACTED 1.00]
- **Preset editor actions (Try, Default, Save & Send, Remove from zone)** — docs_help_try_action, docs_help_default_preset, docs_help_save_and_send, docs_help_remove_from_zone [EXTRACTED 1.00]
- **Header actions aggregated in mobile Menu** — docs_images_help_mobile_menu_run_mode, docs_images_help_mobile_menu_profiles, docs_images_help_mobile_menu_tabs, docs_images_help_mobile_menu_presets, docs_images_help_mobile_menu_help [EXTRACTED 1.00]
- **Device/Group Modal Flow** — docs_mockups_device_management_showadddevicemodal, docs_mockups_device_management_showaddgroupmodal, docs_mockups_device_management_closemodal, docs_mockups_device_management_savedevice [EXTRACTED 1.00]
- **LED Driver UI Mockup Set** — docs_mockups_images_index_dashboard_mockup, docs_mockups_images_index_pattern_selector_mockup, docs_mockups_images_index_device_management_mockup, docs_mockups_images_index_settings_mockup, docs_mockups_images_index_presets_mockup [EXTRACTED 1.00]
- **Selectable LED Patterns** — docs_mockups_images_pattern_selector_on, docs_mockups_images_pattern_selector_off, docs_mockups_images_pattern_selector_blink, docs_mockups_images_pattern_selector_chase, docs_mockups_images_pattern_selector_circle, docs_mockups_images_pattern_selector_pulse, docs_mockups_images_pattern_selector_rainbow, docs_mockups_images_pattern_selector_transition [EXTRACTED 1.00]
- **Preset/pattern configuration schema (pattern, colors, delay, step increment, N1-N8)** — docs_mockups_presets_led_patterns, docs_mockups_presets_delay, docs_mockups_presets_step_increment, docs_mockups_presets_n_parameters, docs_mockups_presets_step_offset [EXTRACTED 1.00]
- **Device settings sections** — docs_mockups_settings_basic_settings, docs_mockups_settings_pattern_settings, docs_mockups_settings_advanced_settings, docs_mockups_settings_network_settings [EXTRACTED 1.00]
- **LED Driver UI Mockup Suite** — docs_mockups_index, docs_mockups_dashboard, docs_mockups_pattern_selector, docs_mockups_device_management, docs_mockups_readme_settings_mockup, docs_mockups_color_picker_readme_presets_mockup [EXTRACTED 1.00]
- **Pi-to-ESP32 Command Paths** — docs_specification_serial_espnow_bridge, docs_specification_wifi_driver_tcp, docs_specification_espnow, docs_specification_pi_controller [EXTRACTED 1.00]
- **led_strip backend choice (RMT vs SPI, DMA)** — scripts_led_test_managed_components_espressif__led_strip_readme_rmt_backend, scripts_led_test_managed_components_espressif__led_strip_readme_spi_backend, scripts_led_test_managed_components_espressif__led_strip_readme_dma_support, scripts_led_test_managed_components_espressif__led_strip_readme_backend_selection_flowchart [EXTRACTED 1.00]
- **led_strip pixel write and flush flow** — scripts_led_test_managed_components_espressif__led_strip_api_led_strip_set_pixel, scripts_led_test_managed_components_espressif__led_strip_api_led_strip_set_pixel_hsv, scripts_led_test_managed_components_espressif__led_strip_api_led_strip_set_pixel_rgbw, scripts_led_test_managed_components_espressif__led_strip_api_led_strip_refresh, scripts_led_test_managed_components_espressif__led_strip_api_led_strip_clear [EXTRACTED 1.00]
- **Dynamic pattern contract** — led_driver_docs_pattern_contract_class_shape, led_driver_docs_pattern_contract_run_generator_rules, led_driver_docs_pattern_contract_drawing_brightness, led_driver_docs_pattern_contract_step_semantics, led_driver_docs_pattern_contract_error_handling [EXTRACTED 1.00]
- **Pi Animation Engine Output Pipeline** — docs_specification_pixel_generator, docs_specification_output_drivers, docs_specification_output_record, docs_specification_zone_playback, docs_specification_sequencer [EXTRACTED 1.00]
- **Beat-Driven Scene Activation** — docs_specification_beat_detection_device, docs_specification_bpm_sync, docs_specification_beat_counter_phases, docs_specification_scene_queue [INFERRED 0.85]
- **Fields defining an LED preset (name, pattern, colours, parameters)** — docs_images_help_preset_editor_preset_name_field, docs_images_help_preset_editor_pattern_selector, docs_images_help_preset_editor_palette_linked_colour, docs_images_help_preset_editor_preset_parameters [INFERRED 0.85]
- **Pattern settings composed and applied to devices** — docs_mockups_images_dashboard_pattern_selection, docs_mockups_images_dashboard_brightness_speed, docs_mockups_images_dashboard_colors, docs_mockups_images_dashboard_apply_settings [INFERRED 0.85]
- **Preset lifecycle actions (create, apply, sync)** — docs_mockups_images_presets_create_preset, docs_mockups_images_presets_apply_preset, docs_mockups_images_presets_sync_presets_to_all_devices [INFERRED 0.85]
- **ESP-NOW driver delivery layers** — docs_api_binary_envelope, docs_api_delivery_digest, docs_bench_test_reliable_link, docs_bench_test_beat_double_send [INFERRED 0.85]
- **v1 message handling on driver** — led_driver_docs_api_v1_message, led_driver_docs_patterns_process_data_flow, led_driver_docs_patterns_pattern_registry, led_driver_docs_patterns_preset_short_keys, led_driver_docs_api_select_message [INFERRED 0.85]
## Communities (249 total, 93 thin omitted)
### Community 0 - "IdfDevice"
Cohesion: 0.10
Nodes (8): _hex_rgb(), _idf_post(), _idf_show(), _preset_content(), run_idf(), open_when_ready(), IdfDevice, probe()
### Community 1 - "htmx Library"
Cohesion: 0.08
Nodes (101): a(), Ae(), an(), at(), B(), be(), bn(), bt() (+93 more)
### Community 3 - "Browser Tests & Mockup Images"
Cohesion: 0.06
Nodes (17): generate_image(), generate_with_html2image(), generate_with_playwright(), generate_with_selenium(), main(), browser(), _browser_sleep(), BrowserTest (+9 more)
### Community 4 - "Audio UI (JS)"
Cohesion: 0.11
Nodes (58): applyAudioStatus(), applyServerAudioUiFields(), audioRunPreferredDeviceId(), beatSyncButtonTitle(), bind(), clampLiveBpm(), clampSimulatedBpm(), clearBeatPhaseTimers() (+50 more)
### Community 5 - "cJSON"
Cohesion: 0.05
Nodes (90): add_item_to_array(), buffer_skip_whitespace(), case_insensitive_strcmp(), cast_away_const(), cJSON, cJSON_AddItemReferenceToArray(), cJSON_AddItemToObjectCS(), cJSON_AddRawToObject() (+82 more)
### Community 6 - "controller"
Cohesion: 0.05
Nodes (39): internal, context, dockerfile, build, cap_drop, condition, environment, expose (+31 more)
### Community 7 - "led-tool Device CLI"
Cohesion: 0.07
Nodes (17): download_presets(), download_settings(), _get_ordered_actions(), main(), print_settings(), resolve_flash_binary(), upload_presets(), upload_settings() (+9 more)
### Community 8 - "ab"
Cohesion: 0.11
Nodes (86): chase_draw(), ease_t(), first_call(), fx_aurora(), fx_bar_graph(), fx_blink(), fx_blizzard(), fx_candle_glow() (+78 more)
### Community 9 - "Compiler"
Cohesion: 0.07
Nodes (5): Template, Loader, Loader, Compiler, Loader
### Community 10 - "Spec: Pi Animation Engine"
Cohesion: 0.07
Nodes (46): Pi Animation Engine (src/engine), docs/API.md, Beat Counter and Phases, Beat Detection Device, Binary Message Protocol, BPM Sync, Dashboard UI (dashboard.html), usqlite Database Schema (presets, profiles, scenes, scene_groups) (+38 more)
### Community 11 - "seq_timeline.js"
Cohesion: 0.08
Nodes (82): seqTl, seqTlOnOpen(), TL_COLORS, tlAddAt(), tlAddTrack(), tlAutoSnap(), tlBpm(), tlBtn() (+74 more)
### Community 12 - "Presets UI (JS)"
Cohesion: 0.09
Nodes (42): arrayToGrid(), coerceManualBeatN(), coercePresetAuto(), coercePresetBackground(), coercePresetInt(), createPresetButton(), deviceNamesForPresetOnCurrentZone(), editPresetFromTab() (+34 more)
### Community 13 - "Zones UI (JS)"
Cohesion: 0.10
Nodes (42): applyBrightnessSliders(), applyZoneContentKindEditModal(), clamp255(), computeZoneNamesTargets(), computeZonePresetUnionTargets(), computeZoneTargets(), createZone(), effectiveGroupIdsForZonePreset() (+34 more)
### Community 14 - "freertos.c"
Cohesion: 0.04
Nodes (74): bridge_eth_start(), app_main(), ctl_open(), mic_start(), udp_open(), httpd_os_thread_create(), httpd_os_thread_handle(), esp_event_loop_create_default() (+66 more)
### Community 15 - "unique"
Cohesion: 0.04
Nodes (33): find_id_by_field(), missing(), new_id(), unique(), test_preset_round_trip(), test_profile_import_folds_animation_ids(), test_profile_round_trip(), test_sequence_round_trip() (+25 more)
### Community 16 - "Sequences UI (JS)"
Cohesion: 0.11
Nodes (32): addSeqTarget(), addSequenceToTab(), appendZoneSequenceTiles(), applySequenceSwitchWaitFromServer(), buildStepPlaySelect(), createSequenceTileRow(), deleteCurrentSequence(), fetchGroupsMapSeq() (+24 more)
### Community 17 - "httpd_handle_t"
Cohesion: 0.17
Nodes (25): httpd_handle_t, httpd_method_t, httpd_uri, method, httpd_uri_t, uri, user_ctx, httpd_start() (+17 more)
### Community 18 - "bridge_dmx.c"
Cohesion: 0.06
Nodes (42): add_ptr(), build_query(), decode_name(), handle_rr(), mdns_dup(), mdns_query_ptr(), mdns_query_results_free(), parse_packet() (+34 more)
### Community 19 - "led_strip Component Docs"
Cohesion: 0.10
Nodes (36): led_test ESP-IDF project, led_test main component (main.c), led_strip API Reference, led_model_t (WS2812/SK6812), led_pixel_format_t (GRB/GRBW), led_strip_clear(), led_strip_config_t, led_strip_del() (+28 more)
### Community 20 - "Art-Net Output"
Cohesion: 0.09
Nodes (10): ArtNet, as_channels(), build_artdmx(), _ip_bytes(), _pad(), port_lo(), ticks_diff(), ticks_ms() (+2 more)
### Community 21 - "web.cpp"
Cohesion: 0.13
Nodes (47): ddp_set_enabled(), espnow_link_stats(), net_ap_on(), net_sta_status(), patterns_get(), add_uri(), api_fn_t, api_http_entry() (+39 more)
### Community 22 - "desktop_main.c"
Cohesion: 0.60
Nodes (3): main(), set_from_env(), usage()
### Community 23 - "cJSON"
Cohesion: 0.05
Nodes (116): cJSON_GetArrayItem(), cJSON_GetArraySize(), cJSON_IsArray(), cJSON_IsBool(), cJSON_IsNumber(), cJSON_IsString(), cJSON_IsTrue(), cJSON_PrintUnformatted() (+108 more)
### Community 24 - "time"
Cohesion: 0.09
Nodes (20): Blink, Pulse, sleep(), sleep_ms(), sleep_us(), ticks_diff(), ticks_ms(), ticks_us() (+12 more)
### Community 26 - "bridge.c"
Cohesion: 0.09
Nodes (31): bench_on_beat_tx(), bench_on_echo(), activate(), bridge_active(), bridge_board_set_channel(), bridge_mac_is_dmx(), bridge_send(), bridge_set_all() (+23 more)
### Community 28 - "Devices UI (JS)"
Cohesion: 0.09
Nodes (36): applyEspnowPingAggregateToDots(), applyEspnowPingToDeviceRows(), applyTcpSnapshot(), applyTransportVisibility(), collectDeviceEditPayload(), createDeviceFromModal(), createDeviceIdentifyButton(), DEVICE_DOT_CLASSES (+28 more)
### Community 29 - "binary_envelope.py"
Cohesion: 0.15
Nodes (18): brightness_0_255_from_wire(), brightness_wire_from_0_255(), _clamp_i16(), _colors_to_rgb_list(), _decode_default_blob(), _decode_preset_record(), _decode_presets_blob(), _decode_select_blob() (+10 more)
### Community 30 - "Colour Picker Mockups"
Cohesion: 0.11
Nodes (25): Chromium-style Color Picker Demo, ColorPickerChromium Component, updateColors() (Chromium demo), Custom Color Picker Demo, updateColors() (standard demo), Custom Colour Picker README, POST /api/colors (example), ColorPicker Component (+17 more)
### Community 31 - "auth.c"
Cohesion: 0.13
Nodes (58): httpd_req_t, bridge_store_locked(), all_edit(), area_index(), auth_can(), auth_classify(), auth_enabled_locked(), auth_export_users() (+50 more)
### Community 32 - "nvs_sim.cpp"
Cohesion: 0.14
Nodes (30): string, read_file(), get_str(), nvs_handle_t, from_hex(), get_bytes(), get_num(), nvs_erase_all() (+22 more)
### Community 33 - "httpd_parse.c"
Cohesion: 0.06
Nodes (53): httpd_config_t, cb_header_field(), cb_header_value(), cb_headers_complete(), cb_no_body(), cb_on_body(), cb_url(), continue_parsing() (+45 more)
### Community 34 - "test_sequences.py"
Cohesion: 0.16
Nodes (29): clock(), make(), presets(), test_beat_and_time_lanes_together(), test_chase_moves_and_bounces(), test_editing_stops_playback(), test_editing_stops_the_preview_not_the_live_sequence(), test_legacy_animation_kind_plays_once() (+21 more)
### Community 35 - "seqplay.c"
Cohesion: 0.09
Nodes (66): cJSON_IsFalse(), bench_running(), add_id(), advance_time(), anchor_bar(), audio_drives(), beat_task(), bit() (+58 more)
### Community 36 - "API Docs: Outputs & Audio"
Cohesion: 0.17
Nodes (21): Audio API /api/audio and /audio page routes, Profile/preset/sequence JSON bundles (import/export), Combined brightness (global x groups x device x zone), /db collection export and replace, Devices resource /devices, Driver group membership lists (group ids, z<zone id>), Device groups resource /groups, LED Controller HTTP/JSON API (+13 more)
### Community 37 - "bridge_serial.c"
Cohesion: 0.15
Nodes (22): bridge_crc16_update(), bridge_decode_feed(), bridge_encode(), bridge_ports_json(), keepalive_task(), bridge_serial_follow_mac(), bridge_serial_has_mic(), bridge_serial_mac() (+14 more)
### Community 38 - "driver_ota.py"
Cohesion: 0.14
Nodes (9): discover(), local_subnet(), main(), discover(), _expand(), _ip(), local_subnet(), ota_drivers() (+1 more)
### Community 39 - "Beat Detection DSP (C)"
Cohesion: 0.23
Nodes (17): beat_feed(), analyse_beat(), bar_cue(), bar_decide(), beat_dsp_bpm(), beat_dsp_feed(), beat_dsp_init(), beat_dsp_tap() (+9 more)
### Community 40 - "xSemaphoreGive"
Cohesion: 0.05
Nodes (77): udp_task(), xSemaphoreGive(), xSemaphoreTake(), mic_open(), clamp_leds(), ddp_show(), frame_alloc(), fx_fn (+69 more)
### Community 41 - "WS2812"
Cohesion: 0.06
Nodes (19): new_ws2812_encoder(), rmt_del_ws2812_encoder(), rmt_encode_ws2812(), rmt_ws2812_encoder_reset(), rmt_ws2812_encoder_t, WS2812, channel_, encoder_ (+11 more)
### Community 42 - "run_all"
Cohesion: 0.12
Nodes (13): dim(), expected(), frame(), frame_sum(), mismatch_detail(), packet(), read_serial(), run_all() (+5 more)
### Community 43 - "cJSON_Delete"
Cohesion: 0.14
Nodes (41): cJSON_AddObjectToObject(), httpd_req_get_url_query_str(), active_room_ports(), api_handler(), color_order_ok(), config_json(), db_root(), default_room() (+33 more)
### Community 44 - "events"
Cohesion: 0.09
Nodes (21): cached, exitCode, stdout, variable, CMAKE_C_FLAGS, CMAKE_C_FLAGS_DEBUG, CMAKE_CXX_FLAGS, CMAKE_CXX_FLAGS_DEBUG (+13 more)
### Community 45 - "http_parser.h"
Cohesion: 0.05
Nodes (42): flags, F_CHUNKED, F_CONNECTION_CLOSE, F_CONNECTION_KEEP_ALIVE, F_CONNECTION_UPGRADE, F_CONTENTLENGTH, F_SKIPBODY, F_TRAILING (+34 more)
### Community 46 - "settings_load_net"
Cohesion: 0.14
Nodes (22): main(), ddp_start(), espnow_link_start(), app_main(), ap_timer_cb(), apply_ap(), net_ap_ssid(), net_espnow_only() (+14 more)
### Community 47 - "argparse"
Cohesion: 0.10
Nodes (16): analyze(), edges(), main(), pct(), read(), art_dmx(), effect_frame(), main() (+8 more)
### Community 50 - "steps"
Cohesion: 0.10
Nodes (19): TAG, TOKEN, jobs, release, name, on, push, contents (+11 more)
### Community 52 - "vTaskDelay"
Cohesion: 0.05
Nodes (47): vTaskDelay(), vTaskDelete(), httpd_req_async_handler_complete(), httpd_req_to_sockfd(), httpd_send(), events(), events_task(), send_all() (+39 more)
### Community 53 - "mpremote Transport"
Cohesion: 0.12
Nodes (20): Presets Mockup Page, addColorPicker() / initializeColorPickers(), ColorPicker component (color-picker.js / color-picker.css), Preset Delay (animation speed, 10-1000 ms), ESPNow preset distribution, filterPresets() / sortPresets() search, filter and sort, LED Patterns (on, off, blink, chase, circle, pulse, rainbow, transition), Pattern Parameters N1-N8 (+12 more)
### Community 54 - "Request"
Cohesion: 0.15
Nodes (4): Request, G, urldecode_bytes(), urldecode_str()
### Community 55 - "httpd_ws_frame"
Cohesion: 0.25
Nodes (8): httpd_ws_frame, final, fragmented, left_len, len, payload, type, httpd_ws_type_t
### Community 57 - "httpd_config"
Cohesion: 0.06
Nodes (33): httpd_close_func_t, httpd_config, backlog_conn, close_fn, core_id, ctrl_port, enable_so_linger, global_transport_ctx (+25 more)
### Community 58 - "gallery.js"
Cohesion: 0.16
Nodes (30): addPreset(), apply(), applySpec(), banner(), bgField(), buildCard(), checkField(), closeEditor() (+22 more)
### Community 59 - "mic_alsa.c"
Cohesion: 0.09
Nodes (18): capture_loop(), capture_thread(), list_alsa_devices(), mic_close(), mic_error(), mic_get_level(), mic_is_open(), mic_list_devices() (+10 more)
### Community 60 - "test_sim_net.py"
Cohesion: 0.15
Nodes (20): artdmx(), base_room(), ddp(), put(), room(), send(), sim(), status() (+12 more)
### Community 61 - "API Test Fixtures & Audio"
Cohesion: 0.17
Nodes (5): base_url(), c(), Client, profile(), restore_db()
### Community 62 - "run_test"
Cohesion: 0.20
Nodes (17): colour_role(), dmx_artnet_packet(), dmx_def_map(), dmx_sacn_group(), dmx_sacn_packet(), is_any(), put16(), fail() (+9 more)
### Community 63 - "Help: Zones & Palette"
Cohesion: 0.13
Nodes (18): Colour Palette (per profile), Zone default preset (default hint), DJ zone starter option, From Palette linked colours, LED driver JSON (presets, select, save, default, manifest), Patterns dialog, POST /presets/send, Preset editor (Try, Save, Send, Manual) (+10 more)
### Community 64 - "ddp_test.py"
Cohesion: 0.09
Nodes (23): hsv(), rig_mid(), rig_rows(), rig_xy(), soak_rig_bounce(), soak_rig_checker(), soak_rig_columns(), soak_rig_converge() (+15 more)
### Community 66 - "presets.cpp"
Cohesion: 0.21
Nodes (21): clear_all_presets(), entry_key(), find(), load_entry(), load_legacy(), presets_add_defaults(), presets_at(), presets_count() (+13 more)
### Community 67 - "auth.js"
Cohesion: 0.15
Nodes (40): accountMenu(), addHeaderButton(), applyPerms(), askLogin(), buildAccount(), byId(), can(), changePassword() (+32 more)
### Community 68 - "cJSON_CreateObject"
Cohesion: 0.07
Nodes (89): add_item_to_object(), cJSON_AddBoolToObject(), cJSON_AddFalseToObject(), cJSON_AddItemToObject(), cJSON_AddNullToObject(), cJSON_AddNumberToObject(), cJSON_AddStringToObject(), cJSON_AddTrueToObject() (+81 more)
### Community 69 - "httpd_sess.c"
Cohesion: 0.11
Nodes (36): httpd_os_thread_delete(), httpd_free_ctx_fn_t, httpd_ws_client_info_t, httpd_accept_conn(), httpd_process_session(), httpd_server(), httpd_thread(), enum_function() (+28 more)
### Community 70 - "Index Page Modals"
Cohesion: 0.11
Nodes (19): Audio Beat Detection modal, Header BPM / beat sync indicator, Colour Palette modal, Devices modal, Edit device modal, Edit Zone modal, Device groups modal, Header global brightness slider (+11 more)
### Community 71 - "BridgeSim"
Cohesion: 0.05
Nodes (21): BridgeSim, api_seed_layout(), index(), driver_mac(), lan_ip(), load_config(), mac_str(), main() (+13 more)
### Community 72 - "httpd_data"
Cohesion: 0.11
Nodes (18): esp_http_server_event_id_t, httpd_err_handler_func_t, httpd_data, config, ctrl_fd, ctrl_sock_semaphore, err_handler_fns, hd_calls (+10 more)
### Community 74 - "bridge_main.c"
Cohesion: 0.04
Nodes (63): build_info(), ctl_task(), ensure_peer(), handle_frame(), host_rx_task(), log_hook(), mic_task(), on_recv() (+55 more)
### Community 75 - "v1 driver messages (long/short keys)"
Cohesion: 0.24
Nodes (8): Controller WebSocket /ws (v1 presets/select), Bench endpoints /test/loss and /test/beats, Binary envelope (main/envelope.c, test/binary_envelope.py), v1 driver messages (long/short keys), WebSocket /ws driver message relay, Lossy-link test (simulated loss, retries, resync), Reliable link (rel: acked unicast, retransmits, ack timeouts), espnow-sender Microdot WebSocket receiver
### Community 76 - "Controller Overview & OTA Docs"
Cohesion: 0.14
Nodes (17): led_controller ESP-IDF project, Driver app update /drivers/ota (staged files, sha, commit/abort), Firmware OTA /ota (idle slot, rollback), 30 ms beat lead (CONFIG_BEAT_LEAD_MS), Bench test: S3 controller and one LED driver, ESP32-C3 vs S3 driver comparison, Driver app update over ESP-NOW test (tools/driver_ota.py), Logic analyzer latency (marker GPIO, tools/analyze_edges.py) (+9 more)
### Community 77 - "sys"
Cohesion: 0.07
Nodes (8): mpremote_base(), _default_image(), _info(), ota_update(), main(), main(), info(), upload()
### Community 78 - "sim_split.js"
Cohesion: 0.30
Nodes (20): addMenuEntries(), applyWidth(), attachSwipe(), build(), clampWidth(), close(), init(), isOpen() (+12 more)
### Community 79 - "Audio Monitor Page"
Cohesion: 0.16
Nodes (16): /audio.wav live PCM stream, bar() bar-position renderer, /beats SSE event stream, draw() timeline canvas, Listen button (WAV stream playback via AudioContext), median(), Audio and beats page (/audio), stats() tap vs computer agreement (+8 more)
### Community 80 - "artnet_dmx.py"
Cohesion: 0.26
Nodes (9): parse(), _assert_eq(), main(), test_artnet_send_loopback(), test_build_artdmx(), test_fixture_patch(), test_pattern_blink_and_select(), test_pattern_upload() (+1 more)
### Community 82 - "events"
Cohesion: 0.09
Nodes (21): cached, exitCode, stdout, variable, CMAKE_C_FLAGS, CMAKE_C_FLAGS_DEBUG, CMAKE_CXX_FLAGS, CMAKE_CXX_FLAGS_DEBUG (+13 more)
### Community 83 - "dmx.js"
Cohesion: 0.17
Nodes (22): applyCto(), beamColour(), canMode(), canView(), decodeCan(), decodeCanNamed(), decodeMover(), decodeMoverNamed() (+14 more)
### Community 84 - "test_groups.py"
Cohesion: 0.13
Nodes (4): device(), group(), test_group_identify_needs_devices(), test_profile_scoped_group()
### Community 85 - "ESP-NOW Sender Bridge"
Cohesion: 0.20
Nodes (10): ap(), _broadcast_ws(), _espnow_receive_loop(), _init_espnow(), main(), _send_espnow(), _validate_envelope(), ws() (+2 more)
### Community 86 - "cJSON_GetObjectItem"
Cohesion: 0.07
Nodes (146): list_pulse_sources(), cJSON_AddArrayToObject(), cJSON_AddItemReferenceToObject(), cJSON_AddItemToArray(), cJSON_CreateArray(), cJSON_CreateString(), cJSON_CreateStringArray(), cJSON_Delete() (+138 more)
### Community 88 - "events"
Cohesion: 0.09
Nodes (21): cached, exitCode, stdout, variable, CMAKE_C_FLAGS, CMAKE_C_FLAGS_DEBUG, CMAKE_CXX_FLAGS, CMAKE_CXX_FLAGS_DEBUG (+13 more)
### Community 89 - "relay_forward"
Cohesion: 0.11
Nodes (20): cJSON_free(), api_call_work(), envelope(), relay_client(), relay_do(), relay_forward(), relay_host_ok(), relay_path_ok() (+12 more)
### Community 90 - "Sender"
Cohesion: 0.14
Nodes (4): run_interactive(), handle(), show_menu(), Sender
### Community 93 - "events"
Cohesion: 0.10
Nodes (24): cached, exitCode, stdout, variable, CMAKE_C_FLAGS, CMAKE_C_FLAGS_DEBUG, CMAKE_CXX_FLAGS, CMAKE_CXX_FLAGS_DEBUG (+16 more)
### Community 94 - "espnow_tx_beat"
Cohesion: 0.10
Nodes (17): beat_reset(), beat_set_callback(), beat_start(), dsp_event(), led_off_cb(), led_set(), gpio_mark(), ap_button_held() (+9 more)
### Community 95 - "test_dmx_bridge.py"
Cohesion: 0.11
Nodes (30): artnet(), bridge_status(), can_def(), drain(), local(), play(), done(), rgb_def() (+22 more)
### Community 96 - "sim_demo.py"
Cohesion: 0.26
Nodes (7): Api, main(), group(), preset(), sequence(), new_id(), rig_bars()
### Community 97 - "esp_timer_start_once"
Cohesion: 0.12
Nodes (23): ap_switch_later(), apply_client_ip(), apply_sta_config(), net_save_network(), net_scan(), net_sta_connect(), on_ip_event(), on_wifi_event() (+15 more)
### Community 98 - "led-controller ESP32-S3 firmware"
Cohesion: 0.12
Nodes (14): Build and flash, Channel, Ethernet (W5500), Microphone (S3), Protocol, Running the controller against it, USB ESP-NOW bridge, Build and run (+6 more)
### Community 99 - "patterns.c"
Cohesion: 0.21
Nodes (18): add_name(), all_patterns(), base_name(), builtin(), create_driver_pattern(), exists(), file_names(), file_path() (+10 more)
### Community 101 - "Groups UI (JS)"
Cohesion: 0.29
Nodes (9): fetchDevicesMapForGroups(), fetchGroupsMap(), identifyGroupById(), loadGroupsModal(), loadWifiFieldsFromGroup(), openEditGroupModal(), renderGroupDevicesEditor(), renderGroupsList() (+1 more)
### Community 102 - "httpd_req_aux"
Cohesion: 0.11
Nodes (18): httpd_req_aux, content_type, first_chunk_sent, max_req_hdr_len, max_uri_len, remaining_len, req_hdrs_count, resp_hdrs (+10 more)
### Community 103 - "Help: Mobile Menu Image"
Cohesion: 0.24
Nodes (10): Mobile Menu Help Illustration (narrow screen), Content Area (preset buttons), Menu Dropdown (Run mode, Profiles, Tabs, Presets, Help), Header Tab Buttons, Help, Menu Button (header dropdown trigger), Presets, Profiles (+2 more)
### Community 104 - "Pattern Selector Mockup Image"
Cohesion: 0.20
Nodes (11): Pattern Selector Mockup (Select LED Pattern), Apply Pattern / Cancel Actions, Blink Pattern, Chase Pattern, Circle Pattern, Off Pattern, On Pattern (solid color), Pattern Card Grid Layout (+3 more)
### Community 105 - "Driver Pattern Docs"
Cohesion: 0.24
Nodes (11): Message processing order (version, presets upsert, colour, selection), Auto vs manual (a) and manual chase flush, Built-in off / on patterns, Patterns and presets on the LED driver, MAX_PRESETS = 32, Pattern OTA via manifest / POST /patterns/upload, Pattern registry (Presets.reload_patterns), Preset short keys (p, c, d, b, a, bg, n1-n6) (+3 more)
### Community 106 - "httpd_main.c"
Cohesion: 0.08
Nodes (19): httpd_os_thread_sleep(), httpd_req, httpd_session_enum_function, thread_data, handle, status, esp_http_server_dispatch_event(), httpd_create() (+11 more)
### Community 107 - "main"
Cohesion: 0.18
Nodes (8): find_devices(), probe(), sweep(), load_rig(), local_prefix(), main(), neighbours(), set_fps()
### Community 108 - "cmakeVariables"
Cohesion: 0.10
Nodes (24): cached, exitCode, stdout, variable, CMAKE_C_FLAGS, CMAKE_C_FLAGS_DEBUG, CMAKE_CXX_FLAGS, CMAKE_CXX_FLAGS_DEBUG (+16 more)
### Community 109 - "Driver Message API Docs"
Cohesion: 0.38
Nodes (10): Auto vs manual mode, Beat (re-select same preset restarts generator), Hex colour conversion and colour-order reordering, LED Driver API (message format), Pattern-specific parameters (rainbow, pulse, transition, chase, circle), Preset fields (pattern, colors, delay, brightness, auto, n1-n6), Select message (device -> [preset, step]), Step synchronization (+2 more)
### Community 110 - "run_soak"
Cohesion: 0.18
Nodes (6): get(), Missing, output_scale(), run_soak(), sample(), soft_get()
### Community 111 - "led_strip Manifest"
Cohesion: 0.20
Nodes (9): dependencies, idf, description, repository, repository_info, commit_sha, path, url (+1 more)
### Community 112 - "test_auth.py"
Cohesion: 0.20
Nodes (19): run(), admin(), anon(), _base(), call(), host(), login(), test_admin_can_edit() (+11 more)
### Community 113 - "Outputs UI (JS)"
Cohesion: 0.33
Nodes (8): fetchOutputs(), loadOutputsModal(), openOutputEditor(), OUTPUT_PROTOCOL_LABELS, outputSummary(), renderOutputsList(), setOutputField(), syncOutputProtocolFields()
### Community 114 - "dependencies"
Cohesion: 0.50
Nodes (3): dependencies, espressif/w5500, version
### Community 115 - "Help PDF: Overview"
Cohesion: 0.25
Nodes (9): API.md, LED controller user guide, Main web UI (Raspberry Pi app), Pattern OTA install over HTTP (/patterns/ota, upload, driver, send), Pattern parameters n1-n8, README, Serial to ESP-NOW bridge transport, WebSocket /ws (+1 more)
### Community 116 - "Mockups Index Image"
Cohesion: 0.31
Nodes (9): LED Driver UI Mockups Index (screenshot), Dashboard Mockup, Device Groups, Device Management Mockup, LED Patterns (On, Off, Blink, Chase, Circle, Pulse, Rainbow, Transition), N1-N8 Pattern Parameters, Pattern Selector Mockup, Presets Mockup (+1 more)
### Community 118 - "Help: Header Toolbar Image"
Cohesion: 0.29
Nodes (8): Header Toolbar Help Image, Edit Mode Action Bar, Run/Edit Mode Toggle Button, Patterns Action, Presets Action, Profiles Action, Header Tab Buttons, Tabs Action
### Community 119 - "Help: Preset Editor Image"
Cohesion: 0.29
Nodes (5): Default Action, Preset Pattern Selector, Preset Editor Modal (help illustration), Preset Name Field, Brightness, Delay and n1-n8 Parameters (0-255)
### Community 120 - "Dashboard Mockup Image"
Cohesion: 0.32
Nodes (8): LED Driver Control Panel Dashboard Mockup, Apply Settings Action, Brightness & Speed Card (Brightness % and Delay ms sliders), Colors Card (color swatches palette, Add Color), Connected Devices Card (devices with group and online status), Device Groups, Pattern Selection Card (On, Off, Blink, Chase, Circle, Pulse, Rainbow, Transition), Save to Device Action
### Community 121 - "Device Management Mockup Image"
Cohesion: 0.32
Nodes (8): + Add Device Button, Connected Devices List, Device Group, Device & Group Management Screen (mockup), Device Row Actions (edit, settings, stop), Online/Offline Status Badge, Devices / Groups Tab Switcher, LED Device (MAC, group, pattern)
### Community 122 - "Presets Mockup Image"
Cohesion: 0.32
Nodes (8): Preset Management UI Mockup, Apply Preset Action, Create Preset Action, LED Pattern Types (Rainbow, Pulse, Chase, Circle, Blink, Transition), Preset Card (name, pattern badge, color swatches, delay, n1, apply/edit/delete), Preset Search/Filter/Sort Toolbar (pattern filter, sort by name, grid/list toggle), Preset Parameters (colors, delay ms, n1), Sync Presets to All Devices
### Community 123 - "Pattern Contract"
Cohesion: 0.29
Nodes (6): Pattern Contract, Drawing via driver.n and apply_brightness, Pattern error handling (Presets.tick catches), Presets._load_dynamic_patterns(), Shared driver.step semantics, Global vs per-preset brightness
### Community 124 - "httpd_ws.c"
Cohesion: 0.17
Nodes (23): desktop_base64_encode(), desktop_sha1(), rol(), sha1_block(), httpd_ws_frame_t, transfer_complete_cb, httpd_recv_opt_t, httpd_queue_work() (+15 more)
### Community 125 - "led_strip_spi_dev.c"
Cohesion: 0.06
Nodes (39): heap_caps_calloc(), app_main(), app_main(), configure_led(), app_main(), configure_led(), led_strip_rmt_config_t, led_strip_spi_config_t (+31 more)
### Community 126 - "dmx-draw.js"
Cohesion: 0.21
Nodes (17): aimed(), appearance(), bodyScale(), canColour(), drawBeam(), drawBody(), drawGlow(), drawLight() (+9 more)
### Community 128 - "rig_seed.py"
Cohesion: 0.19
Nodes (8): call(), main(), switch(), wifi_state(), controller_url(), _get(), _post(), seed()
### Community 129 - "Colour Picker Demo Image"
Cohesion: 0.33
Nodes (6): Custom Color Picker Demo (screenshot), Hex and RGB input support, HSB (Hue, Saturation, Brightness) color model, Keyboard accessible, customizable styling, Multiple Color Pickers for LED Patterns, Single Color Picker
### Community 130 - "Settings Mockup Image"
Cohesion: 0.33
Nodes (7): Advanced Settings (Step Counter, Step Increment, Device ID, Debug Mode), Basic Settings (Device Name, LED Pin, Number of LEDs), Color Order Selector (RGB/RBG/GRB/GBR/BRG/BGR), Device Settings Page Mockup, Network Settings (Access Point Name, Password, Enable AP), Pattern Parameters N1-N6, Pattern Settings (Pattern, Brightness, Delay)
### Community 131 - "PatternPlayer"
Cohesion: 0.14
Nodes (3): main(), output_tick(), PatternPlayer
### Community 132 - "Response"
Cohesion: 0.10
Nodes (5): invoke_handler(), iscoroutine(), Response, aclose(), __anext__()
### Community 133 - "led_strip_rmt_encoder.c"
Cohesion: 0.25
Nodes (5): led_strip_encoder_config_t, rmt_del_led_strip_encoder(), rmt_encode_led_strip(), rmt_led_strip_encoder_reset(), rmt_new_led_strip_encoder()
### Community 135 - "cmakeVariables"
Cohesion: 0.10
Nodes (24): cached, exitCode, stdout, variable, CMAKE_C_FLAGS, CMAKE_C_FLAGS_DEBUG, CMAKE_CXX_FLAGS, CMAKE_CXX_FLAGS_DEBUG (+16 more)
### Community 136 - "HttpDevice"
Cohesion: 0.10
Nodes (5): HttpDevice, IdfError, _default_image(), _info(), ota_update()
### Community 137 - "events"
Cohesion: 0.09
Nodes (21): cached, exitCode, stdout, variable, CMAKE_C_FLAGS, CMAKE_C_FLAGS_DEBUG, CMAKE_CXX_FLAGS, CMAKE_CXX_FLAGS_DEBUG (+13 more)
### Community 138 - "Help: Colour Palette Image"
Cohesion: 0.40
Nodes (6): Colour Palette modal mockup (help image), Add Swatch (+) Button, Colour Palette Modal, Palette Colour Swatches, Preset Editor 'From Palette', Profile (palette owner)
### Community 139 - "esp_err.h"
Cohesion: 0.05
Nodes (22): bridge_eth_ip(), on_eth_down(), on_got_ip(), heap_caps_malloc(), esp_fill_random(), esp_get_free_heap_size(), esp_get_minimum_free_heap_size(), esp_log_level_set() (+14 more)
### Community 140 - "LED Driver README"
Cohesion: 0.47
Nodes (6): dev.py deploy/sync script, LED Driver README (MicroPython ESP32), Optional HTTP polling (http_poll.py), Wi-Fi TCP transport to Pi (port 8765), transport_type setting (wifi / espnow), UDP discovery (port 8766)
### Community 141 - "events"
Cohesion: 0.09
Nodes (21): cached, exitCode, stdout, variable, CMAKE_C_FLAGS, CMAKE_C_FLAGS_DEBUG, CMAKE_CXX_FLAGS, CMAKE_CXX_FLAGS_DEBUG (+13 more)
### Community 142 - "SPI Example Manifest"
Cohesion: 0.33
Nodes (5): dependencies, espressif/led_strip, idf, override_path, version
### Community 143 - "test_rig_sim.py"
Cohesion: 0.10
Nodes (29): rig_placements(), all_dark(), col_of(), frames(), led_x(), lit(), mac(), make_preset() (+21 more)
### Community 145 - "Help PDF: Modes"
Cohesion: 0.40
Nodes (4): Edit mode, Mobile layout Menu, Run mode, Zones modal
### Community 146 - "Help: Tab Preset Strip Image"
Cohesion: 0.60
Nodes (5): Help image: Main area brightness and preset tiles, Edit Mode: drag tiles to reorder, Global Brightness Slider, Preset Tile (gradient swatch, click to select on tab devices), Tab (e.g. lounge)
### Community 155 - "app.js"
Cohesion: 0.08
Nodes (84): addBridge(), addFixture(), addLog(), api(), applyConfig(), banner(), centreStrips(), changed() (+76 more)
### Community 156 - "RMT Example Manifest"
Cohesion: 0.40
Nodes (4): dependencies, espressif/led_strip, override_path, version
### Community 157 - "Help Tab JS"
Cohesion: 0.17
Nodes (21): addStaticIpRow(), bridgeEditError(), bridgeMac(), bridgeName(), bridgeState(), bridgeType(), describeBridge(), filterBridges() (+13 more)
### Community 158 - "Settings Page Template"
Cohesion: 0.50
Nodes (4): Settings modal (device, network), loadEspnowChannel(), Device Settings page (ESP-NOW channel), wifi_channel setting (1-11)
### Community 159 - "led-driver/web/app.js"
Cohesion: 0.10
Nodes (49): api(), applyMode(), attachDrag(), closeEditor(), closeSock(), deviceChoices(), direct(), discoverDevices() (+41 more)
### Community 165 - "dmx_bridge.js"
Cohesion: 0.25
Nodes (18): addUniverse(), editDef(), el(), error(), fixtureRow(), json(), load(), loadDefs() (+10 more)
### Community 166 - "Preset"
Cohesion: 0.08
Nodes (12): _expand(), _preset_from_map(), process_data(), _select_entries(), _targets_for_key(), create_app(), play(), serial_ports() (+4 more)
### Community 167 - "httpd_req"
Cohesion: 0.20
Nodes (10): httpd_req, aux, content_len, free_ctx, handle, ignore_sess_ctx_changes, method, sess_ctx (+2 more)
### Community 170 - "dependencies"
Cohesion: 0.16
Nodes (13): dependencies, espressif/cjson, espressif/mdns, espressif/w5500, joltwallet/littlefs, version, rules, version (+5 more)
### Community 171 - "List Search (JS)"
Cohesion: 0.83
Nodes (3): applyListSearch(), initListSearch(), rowSearchText()
### Community 177 - "sock_db"
Cohesion: 0.11
Nodes (19): httpd_pending_func_t, httpd_recv_func_t, httpd_send_func_t, sock_db, ctx, fd, for_async_req, free_ctx (+11 more)
### Community 179 - "httpd_txrx.c"
Cohesion: 0.07
Nodes (58): esp_app_get_description(), httpd_err_code_t, httpd_resp_send_404(), httpd_resp_send_408(), httpd_resp_sendstr(), httpd_resp_sendstr_chunk(), httpd_default_recv(), httpd_default_send() (+50 more)
### Community 197 - "websocket.py"
Cohesion: 0.19
Nodes (6): wraps(), print_exception(), websocket_upgrade(), websocket_wrapper(), wrapper(), with_websocket()
### Community 198 - "SerialTransport"
Cohesion: 0.07
Nodes (7): _convert_filesystem_error(), SerialIntercept, SerialTransport, stdout_write_bytes(), Transport, TransportError, TransportExecError
### Community 199 - "hmac256"
Cohesion: 0.43
Nodes (6): hmac256(), rotr(), sha_block(), sha_final(), sha_init(), sha_update()
### Community 200 - "esp_err_t"
Cohesion: 0.33
Nodes (3): esp_err_to_name(), esp_event_post(), esp_read_mac()
### Community 201 - "httpd_ctrl_data"
Cohesion: 0.22
Nodes (9): httpd_work_fn_t, httpd_ctrl_data, hc_msg, hc_work, hc_work_arg, httpd_ctrl_msg, HTTPD_CTRL_MAX, HTTPD_CTRL_SHUTDOWN (+1 more)
### Community 204 - "_simlink_proc.py"
Cohesion: 0.16
Nodes (5): connect(), on_feed(), push_pixels(), _reader(), _send_pixels()
### Community 216 - "dmx_decode.test.mjs"
Cohesion: 0.38
Nodes (3): can(), mover(), universe()
### Community 217 - "api_call_t"
Cohesion: 0.33
Nodes (5): api_call_t, cap, done, msg, out
### Community 218 - "SerialDMX"
Cohesion: 0.24
Nodes (3): sleep_ms(), SerialDMX, sleep()
### Community 221 - "nvs_open"
Cohesion: 0.23
Nodes (16): load_channel(), set_channel(), sim_host_flash(), apply_device_config(), ctrl_init(), save_groups(), settings_load_hw(), settings_load_wifi() (+8 more)
### Community 227 - "dependencies"
Cohesion: 0.33
Nodes (5): dependencies, espressif/cjson, espressif/mdns, version, version
### Community 235 - "driver-worker.js"
Cohesion: 0.53
Nodes (4): boot(), exit(), log(), startPixels()
### Community 236 - "layout.js"
Cohesion: 0.42
Nodes (5): fixtureEnd(), fixtureLeds(), heading(), isPoint(), roomStrips()
### Community 242 - "DMX Driver Art-Net and serial gateway"
Cohesion: 0.28
Nodes (9): Art-Net output (UDP 6454), DMX Driver Art-Net and serial gateway, DMX fixture (output, start channel, role map; parcan/mover profiles), led-driver-style pattern engine (Preset object), POST /patterns/upload (led-driver parity), Serial DMX512 output (250000 8N2), Outputs (DDP, Art-Net, sACN, DMX serial pixel fixtures), Patterns resource /patterns (+1 more)
### Community 246 - "ctrl_msg.cpp"
Cohesion: 0.05
Nodes (35): send_msg(), sim_host_restart(), sim_host_tx(), write_all(), ctrl_build_announce(), in_group(), KeyName, longk (+27 more)
## Knowledge Gaps
- **297 isolated node(s):** `next`, `prev`, `child`, `type`, `valuestring` (+292 more)
These have ≤1 connection - possible missing edges or undocumented components. (Counts symbols only; 1458 node(s) total have ≤1 connection when file, concept and rationale nodes are included.)
- **93 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
## Suggested Questions
_Questions this graph is uniquely positioned to answer:_
- **Why does `led-controller ESP32-S3 firmware` connect `led-controller ESP32-S3 firmware` to `DMX Driver Art-Net and serial gateway`, `v1 driver messages (long/short keys)`, `API Docs: Outputs & Audio`, `Controller Overview & OTA Docs`?**
_High betweenness centrality (0.032) - this node is a cross-community bridge._
- **Are the 232 inferred relationships involving `cJSON_GetObjectItem()` (e.g. with `list_pulse_sources()` and `apply_default()`) actually correct?**
_`cJSON_GetObjectItem()` has 232 INFERRED edges - model-reasoned connections that need verification._
- **What connects `next`, `prev`, `child` to the rest of the system?**
_297 weakly-connected nodes found - possible documentation gaps or missing edges._
- **Should `IdfDevice` be split into smaller, more focused modules?**
_Cohesion score 0.09747899159663866 - nodes in this community are weakly interconnected._
- **Why does `bridge_serial_set_channel()` connect `bridge_serial.c` to `led-controller ESP32-S3 firmware`, `bridge.c`?**
_High betweenness centrality (0.020) - this node is a cross-community bridge._
- **Are the 137 inferred relationships involving `cJSON_Delete()` (e.g. with `list_pulse_sources()` and `ctrl_handle()`) actually correct?**
_`cJSON_Delete()` has 137 INFERRED edges - model-reasoned connections that need verification._
- **Should `htmx Library` be split into smaller, more focused modules?**
_Cohesion score 0.07897684839432412 - nodes in this community are weakly interconnected._
+12
View File
@@ -0,0 +1,12 @@
{
"runs": [
{
"date": "2026-11-03T12:13:15.159050+00:00",
"input_tokens": 1267015,
"output_tokens": 0,
"files": 332
}
],
"total_input_tokens": 1267015,
"total_output_tokens": 0
}
+1
View File
@@ -0,0 +1 @@
{"directed":false,"multigraph":false,"graph":{"hyperedges":[{"id":"audio_page_endpoints","label":"Audio page live endpoints","nodes":["web_audio_status","web_audio_beats","web_audio_audio_wav","web_audio_time","web_audio_tap_ep"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"web/audio.html"},{"id":"beat_latency_measurement","label":"Beat latency measurement methods","nodes":["docs_api_bench_endpoints","docs_bench_test_usb_latency","docs_bench_test_logic_analyzer","docs_bench_test_beat_lead"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/BENCH_TEST.md"},{"id":"brightness_combination","label":"Combined brightness factors","nodes":["docs_api_combined_brightness","docs_api_settings","docs_api_groups","docs_api_devices","docs_api_zones"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/API.md"},{"id":"color_picker_feature_set","label":"Color picker feature set","nodes":["docs_mockups_images_color_picker_demo_hsb_color_model","docs_mockups_images_color_picker_demo_hex_rgb_input","docs_mockups_images_color_picker_demo_keyboard_accessibility","docs_mockups_images_color_picker_demo_cross_platform_consistency"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/color-picker-demo.png"},{"id":"docs_help_edit_mode_management","label":"Edit-mode-only management features","nodes":["docs_help_edit_mode","docs_help_zones_modal","docs_help_send_presets","docs_help_patterns_dialog","docs_help_colour_palette","docs_help_presets_list"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/help.pdf"},{"id":"docs_help_preset_editor_actions","label":"Preset editor actions (Try, Default, Save & Send, Remove from zone)","nodes":["docs_help_try_action","docs_help_default_preset","docs_help_save_and_send","docs_help_remove_from_zone"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/help.pdf"},{"id":"docs_images_help_mobile_menu_header_actions","label":"Header actions aggregated in mobile Menu","nodes":["docs_images_help_mobile_menu_run_mode","docs_images_help_mobile_menu_profiles","docs_images_help_mobile_menu_tabs","docs_images_help_mobile_menu_presets","docs_images_help_mobile_menu_help"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/images/help/mobile-menu.svg"},{"id":"docs_mockups_device_modal_flow","label":"Device/Group Modal Flow","nodes":["docs_mockups_device_management_showadddevicemodal","docs_mockups_device_management_showaddgroupmodal","docs_mockups_device_management_closemodal","docs_mockups_device_management_savedevice"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/device-management.html"},{"id":"docs_mockups_images_index_ui_mockup_set","label":"LED Driver UI Mockup Set","nodes":["docs_mockups_images_index_dashboard_mockup","docs_mockups_images_index_pattern_selector_mockup","docs_mockups_images_index_device_management_mockup","docs_mockups_images_index_settings_mockup","docs_mockups_images_index_presets_mockup"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/index.png"},{"id":"docs_mockups_images_pattern_selector_led_patterns","label":"Selectable LED Patterns","nodes":["docs_mockups_images_pattern_selector_on","docs_mockups_images_pattern_selector_off","docs_mockups_images_pattern_selector_blink","docs_mockups_images_pattern_selector_chase","docs_mockups_images_pattern_selector_circle","docs_mockups_images_pattern_selector_pulse","docs_mockups_images_pattern_selector_rainbow","docs_mockups_images_pattern_selector_transition"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/pattern-selector.png"},{"id":"docs_mockups_preset_schema","label":"Preset/pattern configuration schema (pattern, colors, delay, step increment, N1-N8)","nodes":["docs_mockups_presets_led_patterns","docs_mockups_presets_delay","docs_mockups_presets_step_increment","docs_mockups_presets_n_parameters","docs_mockups_presets_step_offset"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/presets.html"},{"id":"docs_mockups_settings_sections","label":"Device settings sections","nodes":["docs_mockups_settings_basic_settings","docs_mockups_settings_pattern_settings","docs_mockups_settings_advanced_settings","docs_mockups_settings_network_settings"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/settings.html"},{"id":"docs_mockups_ui_mockup_suite","label":"LED Driver UI Mockup Suite","nodes":["docs_mockups_index","docs_mockups_dashboard","docs_mockups_pattern_selector","docs_mockups_device_management","docs_mockups_readme_settings_mockup","docs_mockups_color_picker_readme_presets_mockup"],"relation":"foLine truncated
File diff suppressed because it is too large. Load diff
+210 -157
View File
@@ -1,17 +1,17 @@
# Graph Report - led-controller (2026-11-21)
# Graph Report - led-controller (2026-11-24)
## Corpus Check
- 478 files · ~1,713,317 words
- 501 files · ~1,723,788 words
- Verdict: corpus is large enough that graph structure adds value.
- Unclassified: 5052 file(s) not represented in the graph (top: .obj 3536, .cmake 640, .a 416)
- Unclassified: 5076 file(s) not represented in the graph (top: .obj 3536, .cmake 642, .a 416)
## Summary
- 5521 nodes · 16178 edges · 249 communities (156 shown, 93 thin omitted)
- Extraction: 75% EXTRACTED · 25% INFERRED · 0% AMBIGUOUS · INFERRED: 4078 edges (avg confidence: 0.85)
- 5660 nodes · 16465 edges · 257 communities (167 shown, 90 thin omitted)
- Extraction: 75% EXTRACTED · 25% INFERRED · 0% AMBIGUOUS · INFERRED: 4109 edges (avg confidence: 0.85)
- Token cost: 0 input · 0 output
## Graph Freshness
- Built from commit: `35207a86`
- Built from commit: `edf35e9c`
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
- Run `graphify update .` after code changes (no API cost).
@@ -42,7 +42,7 @@
- cJSON
- time
- Microdot
- bridge.c
- bridge_main.c
- NoCaseDict
- Devices UI (JS)
- binary_envelope.py
@@ -62,15 +62,15 @@
- cJSON_Delete
- events
- http_parser.h
- settings_load_net
- EMSCRIPTEN_KEEPALIVE
- argparse
- Colour Picker JS
- Chromium Colour Picker JS
- steps
- API Tests: Devices
- vTaskDelay
- beat.c
- mpremote Transport
- Request
- sim_stubs.c
- httpd_ws_frame
- test_outputs.py
- httpd_config
@@ -84,13 +84,13 @@
- ESPNow
- presets.cpp
- auth.js
- cJSON_CreateObject
- cJSON_AddStringToObject
- httpd_sess.c
- Index Page Modals
- BridgeSim
- httpd_data
- Microdot WebSocket (dmx)
- bridge_main.c
- espnow_link.cpp
- v1 driver messages (long/short keys)
- Controller Overview & OTA Docs
- sys
@@ -102,21 +102,21 @@
- dmx.js
- test_groups.py
- ESP-NOW Sender Bridge
- cJSON_GetObjectItem
- cJSON_Delete
- Microdot Async IO (dmx)
- events
- relay_forward
- Sender
- Pin
- machine.py
- vTaskDelay
- events
- espnow_tx_beat
- bench.c
- test_dmx_bridge.py
- sim_demo.py
- esp_timer_start_once
- led-controller ESP32-S3 firmware
- patterns.c
- HTTPException
- cJSON_GetObjectItem
- mdns_host.c
- Groups UI (JS)
- httpd_req_aux
- Help: Mobile Menu Image
@@ -144,12 +144,12 @@
- led_strip_spi_dev.c
- dmx-draw.js
- Numpad Shortcuts (JS)
- rig_seed.py
- ws2812.cpp
- Colour Picker Demo Image
- Settings Mockup Image
- PatternPlayer
- Response
- led_strip_rmt_encoder.c
- microdot.py
- wifi_drv.c
- cmakeVariables
- HttpDevice
- events
@@ -181,6 +181,7 @@
- VPN Autoconnect Script
- graphify Instructions
- sock_db
- dependencies
- httpd_txrx.c
- bulk.sh Script
- deploy.sh Script
@@ -190,19 +191,22 @@
- Help PDF Build Script
- Web Build Script
- Spec: Pattern Selector UI
- websocket.py
- Test Server Tools
- SerialTransport
- hmac256
- esp_err_t
- Supported Platforms and Transports
- httpd_ctrl_data
- parse_static
- Supported Platforms and Transports
- _simlink_proc.py
- URLPattern
- dependencies
- ws_slot_drop
- Settings
- WLAN
- Slave Firmware Binaries for LittleFS OTA
- Slave Firmware Binaries for Partition OTA
- dmx_decode.test.mjs
- api_call_t
- SerialDMX
- time
- ui_confirm.js
- nvs_open
- build.sh
@@ -211,8 +215,13 @@
- driver-worker.js
- layout.js
- README.md
- KeyName
- DMX Driver Art-Net and serial gateway
- ctrl_msg.cpp
- dependencies
- dependencies
- bridge_mac_is_dmx
- create_self_signed_certs.sh
## God Nodes (most connected - your core abstractions)
1. `cJSON` - 292 edges
@@ -227,16 +236,16 @@
10. `xSemaphoreGive()` - 78 edges
## Surprising Connections (you probably didn't know these)
- `Scenario` --references--> `activate()` [INFERRED]
scripts/c6-ota/cp/README.md → main/bridge.c
- `Scenario` --references--> `activate()` [INFERRED]
scripts/c6-ota/mcu_host/README.md → main/bridge.c
- `Channel` --references--> `bridge_serial_set_channel()` [INFERRED]
bridge/README.md → main/bridge_serial.c
- `Build and run` --references--> `info()` [INFERRED]
desktop/README.md → tools/ota.py
- `Preset editor modal` --semantically_similar_to--> `Preset fields (pattern, colors, delay, brightness, auto, n1-n6)` [INFERRED] [semantically similar]
web/templates/index.html → led-driver/docs/API.md
- `status_payload()` --calls--> `mic_error()` [INFERRED]
main/audio_api.c → desktop/port/src/mic_alsa.c
- `audio_handler()` --calls--> `mic_is_open()` [INFERRED]
main/audio_api.c → desktop/port/src/mic_alsa.c
## Import Cycles
- None detected.
@@ -267,7 +276,7 @@
- **ESP-NOW driver delivery layers** — docs_api_binary_envelope, docs_api_delivery_digest, docs_bench_test_reliable_link, docs_bench_test_beat_double_send [INFERRED 0.85]
- **v1 message handling on driver** — led_driver_docs_api_v1_message, led_driver_docs_patterns_process_data_flow, led_driver_docs_patterns_pattern_registry, led_driver_docs_patterns_preset_short_keys, led_driver_docs_api_select_message [INFERRED 0.85]
## Communities (249 total, 93 thin omitted)
## Communities (257 total, 90 thin omitted)
### Community 0 - "IdfDevice"
Cohesion: 0.10
@@ -286,8 +295,8 @@ Cohesion: 0.11
Nodes (58): applyAudioStatus(), applyServerAudioUiFields(), audioRunPreferredDeviceId(), beatSyncButtonTitle(), bind(), clampLiveBpm(), clampSimulatedBpm(), clearBeatPhaseTimers() (+50 more)
### Community 5 - "cJSON"
Cohesion: 0.05
Nodes (90): add_item_to_array(), buffer_skip_whitespace(), case_insensitive_strcmp(), cast_away_const(), cJSON, cJSON_AddItemReferenceToArray(), cJSON_AddItemToObjectCS(), cJSON_AddRawToObject() (+82 more)
Cohesion: 0.07
Nodes (65): add_item_to_array(), add_item_to_object(), buffer_skip_whitespace(), case_insensitive_strcmp(), cast_away_const(), cJSON_AddItemReferenceToArray(), cJSON_AddItemToObjectCS(), cJSON_AddRawToObject() (+57 more)
### Community 6 - "controller"
Cohesion: 0.05
@@ -322,8 +331,8 @@ Cohesion: 0.10
Nodes (42): applyBrightnessSliders(), applyZoneContentKindEditModal(), clamp255(), computeZoneNamesTargets(), computeZonePresetUnionTargets(), computeZoneTargets(), createZone(), effectiveGroupIdsForZonePreset() (+34 more)
### Community 14 - "freertos.c"
Cohesion: 0.04
Nodes (74): bridge_eth_start(), app_main(), ctl_open(), mic_start(), udp_open(), httpd_os_thread_create(), httpd_os_thread_handle(), esp_event_loop_create_default() (+66 more)
Cohesion: 0.05
Nodes (68): bridge_eth_start(), app_main(), ctl_open(), mic_start(), udp_open(), httpd_os_thread_create(), httpd_os_thread_handle(), esp_event_loop_create_default() (+60 more)
### Community 15 - "unique"
Cohesion: 0.04
@@ -334,12 +343,12 @@ Cohesion: 0.11
Nodes (32): addSeqTarget(), addSequenceToTab(), appendZoneSequenceTiles(), applySequenceSwitchWaitFromServer(), buildStepPlaySelect(), createSequenceTileRow(), deleteCurrentSequence(), fetchGroupsMapSeq() (+24 more)
### Community 17 - "httpd_handle_t"
Cohesion: 0.17
Nodes (25): httpd_handle_t, httpd_method_t, httpd_uri, method, httpd_uri_t, uri, user_ctx, httpd_start() (+17 more)
Cohesion: 0.16
Nodes (28): httpd_handle_t, httpd_method_t, httpd_uri, method, httpd_uri_t, uri, user_ctx, httpd_start() (+20 more)
### Community 18 - "bridge_dmx.c"
Cohesion: 0.06
Nodes (42): add_ptr(), build_query(), decode_name(), handle_rr(), mdns_dup(), mdns_query_ptr(), mdns_query_results_free(), parse_packet() (+34 more)
Cohesion: 0.18
Nodes (19): apply_config(), bridge_dmx_open(), close_inputs(), fixture_bin(), fixture_free(), fixture_read(), fixture_spawn(), fixture_stop() (+11 more)
### Community 19 - "led_strip Component Docs"
Cohesion: 0.10
@@ -347,27 +356,31 @@ Nodes (36): led_test ESP-IDF project, led_test main component (main.c), led_stri
### Community 20 - "Art-Net Output"
Cohesion: 0.09
Nodes (10): ArtNet, as_channels(), build_artdmx(), _ip_bytes(), _pad(), port_lo(), ticks_diff(), ticks_ms() (+2 more)
Nodes (12): ArtNet, as_channels(), build_artdmx(), _ip_bytes(), _pad(), port_lo(), sleep_ms(), ticks_diff() (+4 more)
### Community 21 - "web.cpp"
Cohesion: 0.13
Nodes (47): ddp_set_enabled(), espnow_link_stats(), net_ap_on(), net_sta_status(), patterns_get(), add_uri(), api_fn_t, api_http_entry() (+39 more)
Cohesion: 0.14
Nodes (45): ddp_set_enabled(), espnow_link_stats(), net_sta_status(), api_fn_t, api_http_entry(), api_req_t, api_route_t, app_js_get() (+37 more)
### Community 22 - "desktop_main.c"
Cohesion: 0.60
Nodes (3): main(), set_from_env(), usage()
### Community 23 - "cJSON"
Cohesion: 0.05
Nodes (116): cJSON_GetArrayItem(), cJSON_GetArraySize(), cJSON_IsArray(), cJSON_IsBool(), cJSON_IsNumber(), cJSON_IsString(), cJSON_IsTrue(), cJSON_PrintUnformatted() (+108 more)
Cohesion: 0.04
Nodes (151): cJSON, child, cJSON_DeleteItemFromArray(), cJSON_DetachItemFromArray(), cJSON_DetachItemFromObject(), cJSON_DetachItemViaPointer(), cJSON_GetArrayItem(), cJSON_GetArraySize() (+143 more)
### Community 24 - "time"
Cohesion: 0.09
Nodes (20): Blink, Pulse, sleep(), sleep_ms(), sleep_us(), ticks_diff(), ticks_ms(), ticks_us() (+12 more)
Cohesion: 0.15
Nodes (11): answers_ping(), bridge_macs(), candidate_ports(), controller_name_for(), flash(), main(), process(), read_state() (+3 more)
### Community 26 - "bridge.c"
Cohesion: 0.09
Nodes (31): bench_on_beat_tx(), bench_on_echo(), activate(), bridge_active(), bridge_board_set_channel(), bridge_mac_is_dmx(), bridge_send(), bridge_set_all() (+23 more)
### Community 25 - "Microdot"
Cohesion: 0.05
Nodes (4): Microdot, decorated(), mro(), URLPattern
### Community 26 - "bridge_main.c"
Cohesion: 0.05
Nodes (44): build_info(), ctl_task(), ensure_peer(), handle_frame(), host_rx_task(), log_hook(), on_recv(), on_sent() (+36 more)
### Community 28 - "Devices UI (JS)"
Cohesion: 0.09
@@ -382,32 +395,32 @@ Cohesion: 0.11
Nodes (25): Chromium-style Color Picker Demo, ColorPickerChromium Component, updateColors() (Chromium demo), Custom Color Picker Demo, updateColors() (standard demo), Custom Colour Picker README, POST /api/colors (example), ColorPicker Component (+17 more)
### Community 31 - "auth.c"
Cohesion: 0.13
Nodes (58): httpd_req_t, bridge_store_locked(), all_edit(), area_index(), auth_can(), auth_classify(), auth_enabled_locked(), auth_export_users() (+50 more)
Cohesion: 0.11
Nodes (62): bridge_store_locked(), all_edit(), area_index(), auth_can(), auth_classify(), auth_enabled_locked(), auth_export_users(), auth_gate() (+54 more)
### Community 32 - "nvs_sim.cpp"
Cohesion: 0.14
Nodes (30): string, read_file(), get_str(), nvs_handle_t, from_hex(), get_bytes(), get_num(), nvs_erase_all() (+22 more)
Cohesion: 0.15
Nodes (28): string, read_file(), load_legacy(), nvs_handle_t, from_hex(), get_bytes(), get_num(), nvs_erase_all() (+20 more)
### Community 33 - "httpd_parse.c"
Cohesion: 0.06
Nodes (53): httpd_config_t, cb_header_field(), cb_header_value(), cb_headers_complete(), cb_no_body(), cb_on_body(), cb_url(), continue_parsing() (+45 more)
Nodes (58): httpd_config_t, cb_header_field(), cb_header_value(), cb_headers_complete(), cb_no_body(), cb_on_body(), cb_url(), continue_parsing() (+50 more)
### Community 34 - "test_sequences.py"
Cohesion: 0.16
Nodes (29): clock(), make(), presets(), test_beat_and_time_lanes_together(), test_chase_moves_and_bounces(), test_editing_stops_playback(), test_editing_stops_the_preview_not_the_live_sequence(), test_legacy_animation_kind_plays_once() (+21 more)
### Community 35 - "seqplay.c"
Cohesion: 0.09
Nodes (66): cJSON_IsFalse(), bench_running(), add_id(), advance_time(), anchor_bar(), audio_drives(), beat_task(), bit() (+58 more)
Cohesion: 0.10
Nodes (59): beat_tap(), add_id(), advance_time(), anchor_bar(), audio_drives(), beat_task(), bit(), chase_mask() (+51 more)
### Community 36 - "API Docs: Outputs & Audio"
Cohesion: 0.17
Nodes (21): Audio API /api/audio and /audio page routes, Profile/preset/sequence JSON bundles (import/export), Combined brightness (global x groups x device x zone), /db collection export and replace, Devices resource /devices, Driver group membership lists (group ids, z<zone id>), Device groups resource /groups, LED Controller HTTP/JSON API (+13 more)
### Community 37 - "bridge_serial.c"
Cohesion: 0.15
Nodes (22): bridge_crc16_update(), bridge_decode_feed(), bridge_encode(), bridge_ports_json(), keepalive_task(), bridge_serial_follow_mac(), bridge_serial_has_mic(), bridge_serial_mac() (+14 more)
Cohesion: 0.16
Nodes (21): bridge_crc16_update(), bridge_decode_feed(), bridge_encode(), bridge_ports_json(), bridge_serial_follow_mac(), bridge_serial_has_mic(), bridge_serial_mac(), bridge_serial_mic() (+13 more)
### Community 38 - "driver_ota.py"
Cohesion: 0.14
@@ -418,20 +431,20 @@ Cohesion: 0.23
Nodes (17): beat_feed(), analyse_beat(), bar_cue(), bar_decide(), beat_dsp_bpm(), beat_dsp_feed(), beat_dsp_init(), beat_dsp_tap() (+9 more)
### Community 40 - "xSemaphoreGive"
Cohesion: 0.05
Nodes (77): udp_task(), xSemaphoreGive(), xSemaphoreTake(), mic_open(), clamp_leds(), ddp_show(), frame_alloc(), fx_fn (+69 more)
Cohesion: 0.04
Nodes (94): mic_task(), rx_task(), udp_send_up(), udp_task(), usb_send_frame(), httpd_os_thread_sleep(), xSemaphoreGive(), xSemaphoreTake() (+86 more)
### Community 41 - "WS2812"
Cohesion: 0.06
Nodes (19): new_ws2812_encoder(), rmt_del_ws2812_encoder(), rmt_encode_ws2812(), rmt_ws2812_encoder_reset(), rmt_ws2812_encoder_t, WS2812, channel_, encoder_ (+11 more)
Cohesion: 0.10
Nodes (14): WS2812, channel_, encoder_, num_leds_, order_, pixels_, tx_config_, tx_pixels_ (+6 more)
### Community 42 - "run_all"
Cohesion: 0.12
Nodes (13): dim(), expected(), frame(), frame_sum(), mismatch_detail(), packet(), read_serial(), run_all() (+5 more)
### Community 43 - "cJSON_Delete"
Cohesion: 0.14
Nodes (41): cJSON_AddObjectToObject(), httpd_req_get_url_query_str(), active_room_ports(), api_handler(), color_order_ok(), config_json(), db_root(), default_room() (+33 more)
Cohesion: 0.15
Nodes (41): cJSON_AddObjectToObject(), cJSON_IsNull(), active_room_ports(), api_handler(), color_order_ok(), config_json(), db_root(), default_room() (+33 more)
### Community 44 - "events"
Cohesion: 0.09
@@ -441,29 +454,29 @@ Nodes (21): cached, exitCode, stdout, variable, CMAKE_C_FLAGS, CMAKE_C_FLAGS_DEB
Cohesion: 0.05
Nodes (42): flags, F_CHUNKED, F_CONNECTION_CLOSE, F_CONNECTION_KEEP_ALIVE, F_CONNECTION_UPGRADE, F_CONTENTLENGTH, F_SKIPBODY, F_TRAILING (+34 more)
### Community 46 - "settings_load_net"
Cohesion: 0.14
Nodes (22): main(), ddp_start(), espnow_link_start(), app_main(), ap_timer_cb(), apply_ap(), net_ap_ssid(), net_espnow_only() (+14 more)
### Community 46 - "EMSCRIPTEN_KEEPALIVE"
Cohesion: 0.29
Nodes (6): patterns_count(), patterns_name(), fx_count(), fx_name(), fx_step(), sim_clock_set_us()
### Community 47 - "argparse"
Cohesion: 0.10
Nodes (16): analyze(), edges(), main(), pct(), read(), art_dmx(), effect_frame(), main() (+8 more)
Cohesion: 0.08
Nodes (20): call(), main(), switch(), wifi_state(), analyze(), edges(), main(), pct() (+12 more)
### Community 50 - "steps"
Cohesion: 0.10
Nodes (19): TAG, TOKEN, jobs, release, name, on, push, contents (+11 more)
### Community 52 - "vTaskDelay"
### Community 52 - "beat.c"
Cohesion: 0.05
Nodes (47): vTaskDelay(), vTaskDelete(), httpd_req_async_handler_complete(), httpd_req_to_sockfd(), httpd_send(), events(), events_task(), send_all() (+39 more)
Nodes (37): vTaskDelete(), httpd_req_async_handler_complete(), httpd_req_to_sockfd(), api_bridges_remove(), events(), events_task(), send_all(), audio_stream_task() (+29 more)
### Community 53 - "mpremote Transport"
Cohesion: 0.12
Nodes (20): Presets Mockup Page, addColorPicker() / initializeColorPickers(), ColorPicker component (color-picker.js / color-picker.css), Preset Delay (animation speed, 10-1000 ms), ESPNow preset distribution, filterPresets() / sortPresets() search, filter and sort, LED Patterns (on, off, blink, chase, circle, pulse, rainbow, transition), Pattern Parameters N1-N8 (+12 more)
### Community 54 - "Request"
Cohesion: 0.15
Nodes (4): Request, G, urldecode_bytes(), urldecode_str()
### Community 54 - "sim_stubs.c"
Cohesion: 0.06
Nodes (29): esp_log_level_set(), esp_log_timestamp(), esp_log_write(), init_level(), http_client_event_handler(), ota_https_perform(), parse_image_header_from_buffer(), check_littlefs_files() (+21 more)
### Community 55 - "httpd_ws_frame"
Cohesion: 0.25
@@ -479,19 +492,19 @@ Nodes (30): addPreset(), apply(), applySpec(), banner(), bgField(), buildCard(),
### Community 59 - "mic_alsa.c"
Cohesion: 0.09
Nodes (18): capture_loop(), capture_thread(), list_alsa_devices(), mic_close(), mic_error(), mic_get_level(), mic_is_open(), mic_list_devices() (+10 more)
Nodes (19): capture_loop(), capture_thread(), list_alsa_devices(), mic_close(), mic_error(), mic_get_level(), mic_is_open(), mic_list_devices() (+11 more)
### Community 60 - "test_sim_net.py"
Cohesion: 0.15
Nodes (20): artdmx(), base_room(), ddp(), put(), room(), send(), sim(), status() (+12 more)
Cohesion: 0.10
Nodes (22): CORSHTTPRequestHandler, get_local_ip(), artdmx(), base_room(), ddp(), put(), room(), send() (+14 more)
### Community 61 - "API Test Fixtures & Audio"
Cohesion: 0.17
Nodes (5): base_url(), c(), Client, profile(), restore_db()
### Community 62 - "run_test"
Cohesion: 0.20
Nodes (17): colour_role(), dmx_artnet_packet(), dmx_def_map(), dmx_sacn_group(), dmx_sacn_packet(), is_any(), put16(), fail() (+9 more)
Cohesion: 0.23
Nodes (15): colour_role(), dmx_artnet_packet(), dmx_sacn_group(), dmx_sacn_packet(), is_any(), put16(), fail(), fill() (+7 more)
### Community 63 - "Help: Zones & Palette"
Cohesion: 0.13
@@ -502,36 +515,40 @@ Cohesion: 0.09
Nodes (23): hsv(), rig_mid(), rig_rows(), rig_xy(), soak_rig_bounce(), soak_rig_checker(), soak_rig_columns(), soak_rig_converge() (+15 more)
### Community 66 - "presets.cpp"
Cohesion: 0.21
Nodes (21): clear_all_presets(), entry_key(), find(), load_entry(), load_legacy(), presets_add_defaults(), presets_at(), presets_count() (+13 more)
Cohesion: 0.16
Nodes (27): main(), clear_all_presets(), patterns_output_level(), entry_key(), find(), load_entry(), presets_add_defaults(), presets_apply_startup() (+19 more)
### Community 67 - "auth.js"
Cohesion: 0.15
Nodes (40): accountMenu(), addHeaderButton(), applyPerms(), askLogin(), buildAccount(), byId(), can(), changePassword() (+32 more)
### Community 68 - "cJSON_CreateObject"
Cohesion: 0.07
Nodes (89): add_item_to_object(), cJSON_AddBoolToObject(), cJSON_AddFalseToObject(), cJSON_AddItemToObject(), cJSON_AddNullToObject(), cJSON_AddNumberToObject(), cJSON_AddStringToObject(), cJSON_AddTrueToObject() (+81 more)
### Community 68 - "cJSON_AddStringToObject"
Cohesion: 0.09
Nodes (53): cJSON_AddBoolToObject(), cJSON_AddFalseToObject(), cJSON_AddItemToObject(), cJSON_AddNullToObject(), cJSON_AddNumberToObject(), cJSON_AddStringToObject(), cJSON_CreateBool(), cJSON_CreateNull() (+45 more)
### Community 69 - "httpd_sess.c"
Cohesion: 0.11
Nodes (36): httpd_os_thread_delete(), httpd_free_ctx_fn_t, httpd_ws_client_info_t, httpd_accept_conn(), httpd_process_session(), httpd_server(), httpd_thread(), enum_function() (+28 more)
Cohesion: 0.12
Nodes (31): httpd_free_ctx_fn_t, httpd_ws_client_info_t, httpd_process_session(), enum_function(), fd_is_valid(), httpd_sess_clear_ctx(), httpd_sess_close(), httpd_sess_close_all() (+23 more)
### Community 70 - "Index Page Modals"
Cohesion: 0.11
Nodes (19): Audio Beat Detection modal, Header BPM / beat sync indicator, Colour Palette modal, Devices modal, Edit device modal, Edit Zone modal, Device groups modal, Header global brightness slider (+11 more)
### Community 71 - "BridgeSim"
Cohesion: 0.05
Nodes (21): BridgeSim, api_seed_layout(), index(), driver_mac(), lan_ip(), load_config(), mac_str(), main() (+13 more)
Cohesion: 0.04
Nodes (26): BridgeSim, api_seed_layout(), index(), driver_mac(), lan_ip(), load_config(), mac_str(), main() (+18 more)
### Community 72 - "httpd_data"
Cohesion: 0.11
Nodes (18): esp_http_server_event_id_t, httpd_err_handler_func_t, httpd_data, config, ctrl_fd, ctrl_sock_semaphore, err_handler_fns, hd_calls (+10 more)
Nodes (17): esp_http_server_event_id_t, httpd_data, config, ctrl_fd, ctrl_sock_semaphore, err_handler_fns, hd_calls, hd_req (+9 more)
### Community 74 - "bridge_main.c"
Cohesion: 0.04
Nodes (63): build_info(), ctl_task(), ensure_peer(), handle_frame(), host_rx_task(), log_hook(), mic_task(), on_recv() (+55 more)
### Community 73 - "Microdot WebSocket (dmx)"
Cohesion: 0.09
Nodes (8): wraps(), print_exception(), WebSocket, websocket_upgrade(), websocket_wrapper(), wrapper(), WebSocketError, with_websocket()
### Community 74 - "espnow_link.cpp"
Cohesion: 0.07
Nodes (39): ctrl_build_announce(), Asm, buf, cnt, asm_find(), flags, asm_free(), last_us (+31 more)
### Community 75 - "v1 driver messages (long/short keys)"
Cohesion: 0.24
@@ -543,7 +560,7 @@ Nodes (17): led_controller ESP-IDF project, Driver app update /drivers/ota (stag
### Community 77 - "sys"
Cohesion: 0.07
Nodes (8): mpremote_base(), _default_image(), _info(), ota_update(), main(), main(), info(), upload()
Nodes (6): mpremote_base(), main(), _convert_filesystem_error(), stdout_write_bytes(), Transport, TransportExecError
### Community 78 - "sim_split.js"
Cohesion: 0.30
@@ -573,29 +590,33 @@ Nodes (4): device(), group(), test_group_identify_needs_devices(), test_profile_
Cohesion: 0.20
Nodes (10): ap(), _broadcast_ws(), _espnow_receive_loop(), _init_espnow(), main(), _send_espnow(), _validate_envelope(), ws() (+2 more)
### Community 86 - "cJSON_GetObjectItem"
Cohesion: 0.07
Nodes (146): list_pulse_sources(), cJSON_AddArrayToObject(), cJSON_AddItemReferenceToObject(), cJSON_AddItemToArray(), cJSON_CreateArray(), cJSON_CreateString(), cJSON_CreateStringArray(), cJSON_Delete() (+138 more)
### Community 86 - "cJSON_Delete"
Cohesion: 0.10
Nodes (84): list_pulse_sources(), cJSON_AddArrayToObject(), cJSON_AddItemToArray(), cJSON_CreateArray(), cJSON_CreateString(), cJSON_CreateStringArray(), cJSON_Delete(), cJSON_DeleteItemFromObject() (+76 more)
### Community 88 - "events"
Cohesion: 0.09
Nodes (21): cached, exitCode, stdout, variable, CMAKE_C_FLAGS, CMAKE_C_FLAGS_DEBUG, CMAKE_CXX_FLAGS, CMAKE_CXX_FLAGS_DEBUG (+13 more)
### Community 89 - "relay_forward"
Cohesion: 0.11
Nodes (20): cJSON_free(), api_call_work(), envelope(), relay_client(), relay_do(), relay_forward(), relay_host_ok(), relay_path_ok() (+12 more)
Cohesion: 0.19
Nodes (13): cJSON_free(), api_call_work(), envelope(), relay_client(), relay_do(), relay_forward(), relay_host_ok(), relay_path_ok() (+5 more)
### Community 90 - "Sender"
Cohesion: 0.14
Nodes (4): run_interactive(), handle(), show_menu(), Sender
### Community 92 - "vTaskDelay"
Cohesion: 0.09
Nodes (26): vTaskDelay(), engine_groups_push_all(), send_cmd(), gateway_answers(), full_mask(), handle_rx(), peer_get(), record_done() (+18 more)
### Community 93 - "events"
Cohesion: 0.10
Nodes (24): cached, exitCode, stdout, variable, CMAKE_C_FLAGS, CMAKE_C_FLAGS_DEBUG, CMAKE_CXX_FLAGS, CMAKE_CXX_FLAGS_DEBUG (+16 more)
### Community 94 - "espnow_tx_beat"
Cohesion: 0.10
Nodes (17): beat_reset(), beat_set_callback(), beat_start(), dsp_event(), led_off_cb(), led_set(), gpio_mark(), ap_button_held() (+9 more)
### Community 94 - "bench.c"
Cohesion: 0.12
Nodes (15): bench_on_beat_tx(), bench_on_echo(), bench_running(), gen_cb(), gpio_mark(), log_task(), espnow_tx_beat(), on_beat() (+7 more)
### Community 95 - "test_dmx_bridge.py"
Cohesion: 0.11
@@ -606,16 +627,20 @@ Cohesion: 0.26
Nodes (7): Api, main(), group(), preset(), sequence(), new_id(), rig_bars()
### Community 97 - "esp_timer_start_once"
Cohesion: 0.12
Nodes (23): ap_switch_later(), apply_client_ip(), apply_sta_config(), net_save_network(), net_scan(), net_sta_connect(), on_ip_event(), on_wifi_event() (+15 more)
Cohesion: 0.08
Nodes (36): app_main(), ap_switch_later(), ap_timer_cb(), apply_ap(), apply_client_ip(), apply_sta_config(), client_allowed(), net_ap_on() (+28 more)
### Community 98 - "led-controller ESP32-S3 firmware"
Cohesion: 0.12
Nodes (14): Build and flash, Channel, Ethernet (W5500), Microphone (S3), Protocol, Running the controller against it, USB ESP-NOW bridge, Build and run (+6 more)
### Community 99 - "patterns.c"
Cohesion: 0.21
Nodes (18): add_name(), all_patterns(), base_name(), builtin(), create_driver_pattern(), exists(), file_names(), file_path() (+10 more)
### Community 99 - "cJSON_GetObjectItem"
Cohesion: 0.07
Nodes (106): cJSON_AddItemReferenceToObject(), cJSON_AddTrueToObject(), cJSON_CreateObject(), cJSON_Duplicate(), cJSON_GetObjectItem(), cJSON_ReplaceItemInObject(), httpd_req_t, httpd_resp_send_500() (+98 more)
### Community 100 - "mdns_host.c"
Cohesion: 0.11
Nodes (13): add_ptr(), build_query(), decode_name(), handle_rr(), mdns_dup(), mdns_query_ptr(), mdns_query_results_free(), parse_packet() (+5 more)
### Community 101 - "Groups UI (JS)"
Cohesion: 0.29
@@ -638,8 +663,8 @@ Cohesion: 0.24
Nodes (11): Message processing order (version, presets upsert, colour, selection), Auto vs manual (a) and manual chase flush, Built-in off / on patterns, Patterns and presets on the LED driver, MAX_PRESETS = 32, Pattern OTA via manifest / POST /patterns/upload, Pattern registry (Presets.reload_patterns), Preset short keys (p, c, d, b, a, bg, n1-n6) (+3 more)
### Community 106 - "httpd_main.c"
Cohesion: 0.08
Nodes (19): httpd_os_thread_sleep(), httpd_req, httpd_session_enum_function, thread_data, handle, status, esp_http_server_dispatch_event(), httpd_create() (+11 more)
Cohesion: 0.06
Nodes (31): httpd_os_thread_delete(), esp_err_to_name(), esp_event_post(), esp_read_mac(), httpd_recv_opt_t, httpd_req, httpd_session_enum_function, thread_data (+23 more)
### Community 107 - "main"
Cohesion: 0.18
@@ -706,20 +731,20 @@ Cohesion: 0.29
Nodes (6): Pattern Contract, Drawing via driver.n and apply_brightness, Pattern error handling (Presets.tick catches), Presets._load_dynamic_patterns(), Shared driver.step semantics, Global vs per-preset brightness
### Community 124 - "httpd_ws.c"
Cohesion: 0.17
Nodes (23): desktop_base64_encode(), desktop_sha1(), rol(), sha1_block(), httpd_ws_frame_t, transfer_complete_cb, httpd_recv_opt_t, httpd_queue_work() (+15 more)
Cohesion: 0.18
Nodes (21): desktop_base64_encode(), desktop_sha1(), rol(), sha1_block(), httpd_ws_frame_t, transfer_complete_cb, httpd_send(), httpd_ws_check_req() (+13 more)
### Community 125 - "led_strip_spi_dev.c"
Cohesion: 0.06
Nodes (39): heap_caps_calloc(), app_main(), app_main(), configure_led(), app_main(), configure_led(), led_strip_rmt_config_t, led_strip_spi_config_t (+31 more)
Cohesion: 0.05
Nodes (43): app_main(), app_main(), configure_led(), app_main(), configure_led(), led_strip_rmt_config_t, led_strip_spi_config_t, led_model_t (+35 more)
### Community 126 - "dmx-draw.js"
Cohesion: 0.21
Nodes (17): aimed(), appearance(), bodyScale(), canColour(), drawBeam(), drawBody(), drawGlow(), drawLight() (+9 more)
### Community 128 - "rig_seed.py"
Cohesion: 0.19
Nodes (8): call(), main(), switch(), wifi_state(), controller_url(), _get(), _post(), seed()
### Community 128 - "ws2812.cpp"
Cohesion: 0.12
Nodes (8): new_ws2812_encoder(), rmt_del_ws2812_encoder(), rmt_encode_ws2812(), rmt_ws2812_encoder_reset(), rmt_ws2812_encoder_t, bridge_dmx_close(), bridge_dmx_reload(), bridge_dmx_send()
### Community 129 - "Colour Picker Demo Image"
Cohesion: 0.33
@@ -729,26 +754,18 @@ Nodes (6): Custom Color Picker Demo (screenshot), Hex and RGB input support, HSB
Cohesion: 0.33
Nodes (7): Advanced Settings (Step Counter, Step Increment, Device ID, Debug Mode), Basic Settings (Device Name, LED Pin, Number of LEDs), Color Order Selector (RGB/RBG/GRB/GBR/BRG/BGR), Device Settings Page Mockup, Network Settings (Access Point Name, Password, Enable AP), Pattern Parameters N1-N6, Pattern Settings (Pattern, Brightness, Delay)
### Community 131 - "PatternPlayer"
Cohesion: 0.14
Nodes (3): main(), output_tick(), PatternPlayer
### Community 132 - "microdot.py"
Cohesion: 0.05
Nodes (11): HTTPException, invoke_handler(), iscoroutine(), NoCaseDict, Request, G, Response, aclose() (+3 more)
### Community 132 - "Response"
Cohesion: 0.10
Nodes (5): invoke_handler(), iscoroutine(), Response, aclose(), __anext__()
### Community 133 - "led_strip_rmt_encoder.c"
Cohesion: 0.25
Nodes (5): led_strip_encoder_config_t, rmt_del_led_strip_encoder(), rmt_encode_led_strip(), rmt_led_strip_encoder_reset(), rmt_new_led_strip_encoder()
### Community 133 - "wifi_drv.c"
Cohesion: 0.18
Nodes (13): clamp8(), exchange(), link_for(), mark_down(), run_job(), run_ping(), sender_task(), read_handshake() (+5 more)
### Community 135 - "cmakeVariables"
Cohesion: 0.10
Nodes (24): cached, exitCode, stdout, variable, CMAKE_C_FLAGS, CMAKE_C_FLAGS_DEBUG, CMAKE_CXX_FLAGS, CMAKE_CXX_FLAGS_DEBUG (+16 more)
### Community 136 - "HttpDevice"
Cohesion: 0.10
Nodes (5): HttpDevice, IdfError, _default_image(), _info(), ota_update()
### Community 137 - "events"
Cohesion: 0.09
Nodes (21): cached, exitCode, stdout, variable, CMAKE_C_FLAGS, CMAKE_C_FLAGS_DEBUG, CMAKE_CXX_FLAGS, CMAKE_CXX_FLAGS_DEBUG (+13 more)
@@ -758,8 +775,8 @@ Cohesion: 0.40
Nodes (6): Colour Palette modal mockup (help image), Add Swatch (+) Button, Colour Palette Modal, Palette Colour Swatches, Preset Editor 'From Palette', Profile (palette owner)
### Community 139 - "esp_err.h"
Cohesion: 0.05
Nodes (22): bridge_eth_ip(), on_eth_down(), on_got_ip(), heap_caps_malloc(), esp_fill_random(), esp_get_free_heap_size(), esp_get_minimum_free_heap_size(), esp_log_level_set() (+14 more)
Cohesion: 0.04
Nodes (24): bridge_eth_ip(), on_eth_down(), on_got_ip(), heap_caps_calloc(), heap_caps_malloc(), esp_fill_random(), esp_get_free_heap_size(), esp_get_minimum_free_heap_size() (+16 more)
### Community 140 - "LED Driver README"
Cohesion: 0.47
@@ -810,8 +827,8 @@ Cohesion: 0.25
Nodes (18): addUniverse(), editDef(), el(), error(), fixtureRow(), json(), load(), loadDefs() (+10 more)
### Community 166 - "Preset"
Cohesion: 0.08
Nodes (12): _expand(), _preset_from_map(), process_data(), _select_entries(), _targets_for_key(), create_app(), play(), serial_ports() (+4 more)
Cohesion: 0.07
Nodes (14): _expand(), _preset_from_map(), process_data(), _select_entries(), _targets_for_key(), create_app(), play(), serial_ports() (+6 more)
### Community 167 - "httpd_req"
Cohesion: 0.20
@@ -829,33 +846,57 @@ Nodes (3): applyListSearch(), initListSearch(), rowSearchText()
Cohesion: 0.11
Nodes (19): httpd_pending_func_t, httpd_recv_func_t, httpd_send_func_t, sock_db, ctx, fd, for_async_req, free_ctx (+11 more)
### Community 179 - "httpd_txrx.c"
Cohesion: 0.07
Nodes (58): esp_app_get_description(), httpd_err_code_t, httpd_resp_send_404(), httpd_resp_send_408(), httpd_resp_sendstr(), httpd_resp_sendstr_chunk(), httpd_default_recv(), httpd_default_send() (+50 more)
### Community 178 - "dependencies"
Cohesion: 0.14
Nodes (14): path, path, dependencies, cmd_nvs, cmd_system, espressif/esp_hosted, espressif/esp_wifi_remote, joltwallet/littlefs (+6 more)
### Community 197 - "websocket.py"
Cohesion: 0.19
Nodes (6): wraps(), print_exception(), websocket_upgrade(), websocket_wrapper(), wrapper(), with_websocket()
### Community 179 - "httpd_txrx.c"
Cohesion: 0.09
Nodes (48): esp_app_get_description(), httpd_err_code_t, httpd_err_handler_func_t, httpd_resp_send_404(), httpd_resp_send_408(), httpd_resp_sendstr(), httpd_resp_sendstr_chunk(), httpd_register_err_handler() (+40 more)
### Community 197 - "Test Server Tools"
Cohesion: 0.18
Nodes (10): 1. Generate Test Certificates, 2. Start HTTPS Server, 3. Configure ESP32, Certificate not found error, Files, Important Notes, Quick Start, Server won't start (+2 more)
### Community 198 - "SerialTransport"
Cohesion: 0.07
Nodes (7): _convert_filesystem_error(), SerialIntercept, SerialTransport, stdout_write_bytes(), Transport, TransportError, TransportExecError
Cohesion: 0.14
Nodes (3): SerialIntercept, SerialTransport, TransportError
### Community 199 - "hmac256"
Cohesion: 0.43
Nodes (6): hmac256(), rotr(), sha_block(), sha_final(), sha_init(), sha_update()
### Community 200 - "esp_err_t"
Cohesion: 0.33
Nodes (3): esp_err_to_name(), esp_event_post(), esp_read_mac()
### Community 200 - "Supported Platforms and Transports"
Cohesion: 0.29
Nodes (6): ota / coprocessor_ota — Coprocessor, Scenario, Supported Connection buses, Supported Coprocessors, Supported Host Devices, Supported Platforms and Transports
### Community 201 - "httpd_ctrl_data"
Cohesion: 0.22
Nodes (9): httpd_work_fn_t, httpd_ctrl_data, hc_msg, hc_work, hc_work_arg, httpd_ctrl_msg, HTTPD_CTRL_MAX, HTTPD_CTRL_SHUTDOWN (+1 more)
### Community 203 - "Supported Platforms and Transports"
Cohesion: 0.29
Nodes (6): ota / coprocessor_ota — Host, Scenario, Supported Connection buses, Supported Coprocessors, Supported Host Devices, Supported Platforms and Transports
### Community 204 - "_simlink_proc.py"
Cohesion: 0.16
Nodes (5): connect(), on_feed(), push_pixels(), _reader(), _send_pixels()
Cohesion: 0.07
Nodes (6): WDT, connect(), on_feed(), push_pixels(), _reader(), _send_pixels()
### Community 205 - "dependencies"
Cohesion: 0.33
Nodes (5): dependencies, espressif/esp_hosted, idf, version, version
### Community 206 - "ws_slot_drop"
Cohesion: 0.40
Nodes (5): ws_slot_drop(), ws_slot_t, fd, host, ws_client_close()
### Community 213 - "Slave Firmware Binaries for LittleFS OTA"
Cohesion: 0.40
Nodes (4): Example, Important Notes, Slave Firmware Binaries for LittleFS OTA, Usage
### Community 215 - "Slave Firmware Binaries for Partition OTA"
Cohesion: 0.40
Nodes (4): Example, Important Notes, Slave Firmware Binaries for Partition OTA, Usage
### Community 216 - "dmx_decode.test.mjs"
Cohesion: 0.38
@@ -865,13 +906,13 @@ Nodes (3): can(), mover(), universe()
Cohesion: 0.33
Nodes (5): api_call_t, cap, done, msg, out
### Community 218 - "SerialDMX"
Cohesion: 0.24
Nodes (3): sleep_ms(), SerialDMX, sleep()
### Community 218 - "time"
Cohesion: 0.08
Nodes (17): Blink, Pulse, _default_image(), _info(), ota_update(), sleep(), sleep_ms(), sleep_us() (+9 more)
### Community 221 - "nvs_open"
Cohesion: 0.23
Nodes (16): load_channel(), set_channel(), sim_host_flash(), apply_device_config(), ctrl_init(), save_groups(), settings_load_hw(), settings_load_wifi() (+8 more)
Cohesion: 0.18
Nodes (19): load_channel(), set_channel(), sim_host_flash(), apply_device_config(), ctrl_init(), save_groups(), ddp_start(), default_hostname() (+11 more)
### Community 227 - "dependencies"
Cohesion: 0.33
@@ -885,32 +926,44 @@ Nodes (4): boot(), exit(), log(), startPixels()
Cohesion: 0.42
Nodes (5): fixtureEnd(), fixtureLeds(), heading(), isPoint(), roomStrips()
### Community 241 - "KeyName"
Cohesion: 0.50
Nodes (4): KeyName, longk, shortk, long_name()
### Community 242 - "DMX Driver Art-Net and serial gateway"
Cohesion: 0.28
Nodes (9): Art-Net output (UDP 6454), DMX Driver Art-Net and serial gateway, DMX fixture (output, start channel, role map; parcan/mover profiles), led-driver-style pattern engine (Preset object), POST /patterns/upload (led-driver parity), Serial DMX512 output (250000 8N2), Outputs (DDP, Art-Net, sACN, DMX serial pixel fixtures), Patterns resource /patterns (+1 more)
### Community 246 - "ctrl_msg.cpp"
Cohesion: 0.05
Nodes (35): send_msg(), sim_host_restart(), sim_host_tx(), write_all(), ctrl_build_announce(), in_group(), KeyName, longk (+27 more)
Cohesion: 0.07
Nodes (18): send_msg(), sim_host_restart(), sim_host_tx(), write_all(), beat_on_frame(), be16(), be32(), ddp_sync_task() (+10 more)
### Community 253 - "dependencies"
Cohesion: 0.50
Nodes (3): dependencies, espressif/esp_hosted, espressif/esp_wifi_remote
### Community 254 - "dependencies"
Cohesion: 0.50
Nodes (3): dependencies, espressif/esp_hosted, espressif/esp_wifi_remote
## Knowledge Gaps
- **297 isolated node(s):** `next`, `prev`, `child`, `type`, `valuestring` (+292 more)
These have ≤1 connection - possible missing edges or undocumented components. (Counts symbols only; 1458 node(s) total have ≤1 connection when file, concept and rationale nodes are included.)
- **93 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
These have ≤1 connection - possible missing edges or undocumented components. (Counts symbols only; 1516 node(s) total have ≤1 connection when file, concept and rationale nodes are included.)
- **90 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
## Suggested Questions
_Questions this graph is uniquely positioned to answer:_
- **Why does `led-controller ESP32-S3 firmware` connect `led-controller ESP32-S3 firmware` to `DMX Driver Art-Net and serial gateway`, `v1 driver messages (long/short keys)`, `API Docs: Outputs & Audio`, `Controller Overview & OTA Docs`?**
_High betweenness centrality (0.032) - this node is a cross-community bridge._
_High betweenness centrality (0.018) - this node is a cross-community bridge._
- **Are the 232 inferred relationships involving `cJSON_GetObjectItem()` (e.g. with `list_pulse_sources()` and `apply_default()`) actually correct?**
_`cJSON_GetObjectItem()` has 232 INFERRED edges - model-reasoned connections that need verification._
- **What connects `next`, `prev`, `child` to the rest of the system?**
_297 weakly-connected nodes found - possible documentation gaps or missing edges._
- **Should `IdfDevice` be split into smaller, more focused modules?**
_Cohesion score 0.09747899159663866 - nodes in this community are weakly interconnected._
- **Why does `bridge_serial_set_channel()` connect `bridge_serial.c` to `led-controller ESP32-S3 firmware`, `bridge.c`?**
_High betweenness centrality (0.020) - this node is a cross-community bridge._
- **Why does `cJSON` connect `cJSON` to `nvs_sim.cpp`, `cJSON_GetObjectItem`, `cJSON_AddStringToObject`, `cJSON`, `seqplay.c`, `cJSON_Delete`, `esp_err.h`, `bridge_dmx.c`, `web.cpp`, `cJSON_Delete`, `nvs_open`, `run_test`, `auth.c`?**
_High betweenness centrality (0.013) - this node is a cross-community bridge._
- **Are the 137 inferred relationships involving `cJSON_Delete()` (e.g. with `list_pulse_sources()` and `ctrl_handle()`) actually correct?**
_`cJSON_Delete()` has 137 INFERRED edges - model-reasoned connections that need verification._
- **Should `htmx Library` be split into smaller, more focused modules?**
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_p4_probe_main_idf_component_yml", "label": "idf_component.yml", "file_type": "code", "source_file": "scripts/p4-probe/main/idf_component.yml", "source_location": "L1"}, {"id": "$graphify-root$_scripts_p4_probe_main_idf_component_dependencies", "label": "dependencies", "file_type": "code", "source_file": "scripts/p4-probe/main/idf_component.yml", "source_location": "L1"}, {"id": "$graphify-root$_scripts_p4_probe_main_idf_component_dependencies_espressif_esp_wifi_remote", "label": "espressif/esp_wifi_remote", "file_type": "code", "source_file": "scripts/p4-probe/main/idf_component.yml", "source_location": "L2"}, {"id": "$graphify-root$_scripts_p4_probe_main_idf_component_dependencies_espressif_esp_hosted", "label": "espressif/esp_hosted", "file_type": "code", "source_file": "scripts/p4-probe/main/idf_component.yml", "source_location": "L3"}], "edges": [{"source": "$graphify-root$_scripts_p4_probe_main_idf_component_yml", "target": "$graphify-root$_scripts_p4_probe_main_idf_component_dependencies", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/p4-probe/main/idf_component.yml", "source_location": "L1", "weight": 1.0}, {"source": "$graphify-root$_scripts_p4_probe_main_idf_component_dependencies", "target": "$graphify-root$_scripts_p4_probe_main_idf_component_dependencies_espressif_esp_wifi_remote", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/p4-probe/main/idf_component.yml", "source_location": "L2", "weight": 1.0}, {"source": "$graphify-root$_scripts_p4_probe_main_idf_component_dependencies", "target": "$graphify-root$_scripts_p4_probe_main_idf_component_dependencies_espressif_esp_hosted", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/p4-probe/main/idf_component.yml", "source_location": "L3", "weight": 1.0}]}
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_self_signed_certs_sh", "label": "create_self_signed_certs.sh", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_self_signed_certs.sh", "source_location": "L1", "metadata": {"language": "bash", "kind": "file"}}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_self_signed_certs_sh__entry", "label": "create_self_signed_certs.sh script", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_self_signed_certs.sh", "source_location": "L1", "metadata": {"language": "bash", "kind": "bash_entrypoint"}}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_self_signed_certs_sh", "target": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_self_signed_certs_sh__entry", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_self_signed_certs.sh", "source_location": "L1", "weight": 1.0}], "raw_calls": [{"language": "bash", "callee": "mkdir", "caller_nid": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_self_signed_certs_sh__entry", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_self_signed_certs.sh", "source_location": "L7"}, {"language": "bash", "callee": "cd", "caller_nid": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_self_signed_certs_sh__entry", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_self_signed_certs.sh", "source_location": "L8"}, {"language": "bash", "callee": "ipconfig", "caller_nid": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_self_signed_certs_sh__entry", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_self_signed_certs.sh", "source_location": "L11"}, {"language": "bash", "callee": "echo", "caller_nid": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_self_signed_certs_sh__entry", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_self_signed_certs.sh", "source_location": "L11"}, {"language": "bash", "callee": "openssl", "caller_nid": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_self_signed_certs_sh__entry", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_self_signed_certs.sh", "source_location": "L16"}, {"language": "bash", "callee": "grep", "caller_nid": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_self_signed_certs_sh__entry", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_self_signed_certs.sh", "source_location": "L50"}], "bash_sources": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_slave_fw_bin_readme_md", "label": "README.md", "file_type": "document", "node_kind": "page", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/slave_fw_bin/README.md", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_slave_fw_bin_readme_slave_firmware_binaries_for_partition_ota", "label": "Slave Firmware Binaries for Partition OTA", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/slave_fw_bin/README.md", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_slave_fw_bin_readme_usage", "label": "Usage", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/slave_fw_bin/README.md", "source_location": "L5"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_slave_fw_bin_readme_important_notes", "label": "Important Notes", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/slave_fw_bin/README.md", "source_location": "L14"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_slave_fw_bin_readme_example", "label": "Example", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/slave_fw_bin/README.md", "source_location": "L22"}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_slave_fw_bin_readme_md", "target": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_slave_fw_bin_readme_slave_firmware_binaries_for_partition_ota", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/slave_fw_bin/README.md", "source_location": "L1", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_slave_fw_bin_readme_slave_firmware_binaries_for_partition_ota", "target": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_slave_fw_bin_readme_usage", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/slave_fw_bin/README.md", "source_location": "L5", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_slave_fw_bin_readme_slave_firmware_binaries_for_partition_ota", "target": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_slave_fw_bin_readme_important_notes", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/slave_fw_bin/README.md", "source_location": "L14", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_slave_fw_bin_readme_slave_firmware_binaries_for_partition_ota", "target": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_slave_fw_bin_readme_example", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/slave_fw_bin/README.md", "source_location": "L22", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_slave_fw_bin_readme_usage", "callee": "bin", "is_member_call": false, "language": "markdown", "context": "network_adapter.bin", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/slave_fw_bin/README.md", "source_location": "L7", "qualifiers": ["network_adapter"]}, {"caller_nid": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_slave_fw_bin_readme_usage", "callee": "csv", "is_member_call": false, "language": "markdown", "context": "partitions.csv", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/slave_fw_bin/README.md", "source_location": "L8", "qualifiers": ["partitions"]}, {"caller_nid": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_slave_fw_bin_readme_usage", "callee": "slave_fw", "is_member_call": false, "language": "markdown", "context": "slave_fw", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/slave_fw_bin/README.md", "source_location": "L8"}], "input_tokens": 0, "output_tokens": 0}
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_ota_partition_c", "label": "ota_partition.c", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.c", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_ota_partition_check_partition_has_firmware", "label": "check_partition_has_firmware()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.c", "source_location": "L47", "_callable": true}, {"id": "esp_err_t", "label": "esp_err_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.c"}, {"id": "esp_partition_t", "label": "esp_partition_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.c"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_ota_partition_parse_image_header", "label": "parse_image_header()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.c", "source_location": "L105", "_callable": true}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_ota_partition_ota_partition_perform", "label": "ota_partition_perform()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.c", "source_location": "L206", "_callable": true}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_ota_partition_c", "target": "stdio", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.c", "source_location": "L28", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_ota_partition_c", "target": "string", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.c", "source_location": "L29", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_ota_partition_c", "target": "inttypes", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.c", "source_location": "L30", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_ota_partition_c", "target": "esp_log", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.c", "source_location": "L31", "weight": 1.0, "metadata": {"raw_include": "esp_log.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_ota_partition_c", "target": "esp_err", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.c", "source_location": "L32", "weight": 1.0, "metadata": {"raw_include": "esp_err.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_ota_partition_c", "target": "esp_partition", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.c", "source_location": "L33", "weight": 1.0, "metadata": {"raw_include": "esp_partition.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_ota_partition_c", "target": "esp_hosted_ota", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.c", "source_location": "L34", "weight": 1.0, "metadata": {"raw_include": "esp_hosted_ota.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_ota_partition_c", "target": "esp_app_format", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.c", "source_location": "L35", "weight": 1.0, "metadata": {"raw_include": "esp_app_format.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_ota_partition_c", "target": "esp_app_desc", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.c", "source_location": "L36", "weight": 1.0, "metadata": {"raw_include": "esp_app_desc.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_ota_partition_c", "target": "esp_hosted", "relation": "imports",Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_cp_readme_md", "label": "README.md", "file_type": "document", "node_kind": "page", "source_file": "scripts/c6-ota/cp/README.md", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_cp_readme_ota_coprocessor_ota_coprocessor", "label": "ota / coprocessor_ota \u2014 Coprocessor", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/cp/README.md", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_cp_readme_supported_platforms_and_transports", "label": "Supported Platforms and Transports", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/cp/README.md", "source_location": "L8"}, {"id": "$graphify-root$_scripts_c6_ota_cp_readme_supported_coprocessors", "label": "Supported Coprocessors", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/cp/README.md", "source_location": "L10"}, {"id": "$graphify-root$_scripts_c6_ota_cp_readme_supported_host_devices", "label": "Supported Host Devices", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/cp/README.md", "source_location": "L18"}, {"id": "$graphify-root$_scripts_c6_ota_cp_readme_supported_connection_buses", "label": "Supported Connection buses", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/cp/README.md", "source_location": "L24"}, {"id": "$graphify-root$_scripts_c6_ota_cp_readme_scenario", "label": "Scenario", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/cp/README.md", "source_location": "L31"}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_cp_readme_md", "target": "$graphify-root$_scripts_c6_ota_cp_readme_ota_coprocessor_ota_coprocessor", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/cp/README.md", "source_location": "L1", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_cp_readme_ota_coprocessor_ota_coprocessor", "target": "$graphify-root$_scripts_c6_ota_cp_readme_supported_platforms_and_transports", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/cp/README.md", "source_location": "L8", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_cp_readme_supported_platforms_and_transports", "target": "$graphify-root$_scripts_c6_ota_cp_readme_supported_coprocessors", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/cp/README.md", "source_location": "L10", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_cp_readme_supported_platforms_and_transports", "target": "$graphify-root$_scripts_c6_ota_cp_readme_supported_host_devices", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/cp/README.md", "source_location": "L18", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_cp_readme_supported_platforms_and_transports", "target": "$graphify-root$_scripts_c6_ota_cp_readme_supported_connection_buses", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/cp/README.md", "source_location": "L24", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_cp_readme_ota_coprocessor_ota_coprocessor", "target": "$graphify-root$_scripts_c6_ota_cp_readme_scenario", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/cp/README.md", "source_location": "L31", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_scripts_c6_ota_cp_readme_scenario", "callee": "begin", "is_member_call": false, "language": "markdown", "context": "begin", "source_file": "scripts/c6-ota/cp/README.md", "source_location": "L33"}, {"caller_nid": "$graphify-root$_scripts_c6_ota_cp_readme_scenario", "callee": "write", "is_member_call": false, "language": "markdown", "context": "write", "source_file": "scripts/c6-ota/cp/README.md", "source_location": "L33"}, {"caller_nid": "$graphify-root$_scripts_c6_ota_cp_readme_scenario", "callee": "end", "is_member_call": false, "language": "markdown", "context": "end", "source_file": "scripts/c6-ota/cp/README.md", "source_location": "L33"}, {"caller_nid": "$graphify-root$_scripts_c6_ota_cp_readme_scenario", "callee": "activate", "is_member_call": false, "language": "markdown", "context": "activate", "source_file": "scripts/c6-ota/cp/README.md", "source_location": "L33"}], "input_tokens": 0, "output_tokens": 0}
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_yml", "label": "idf_component.yml", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_dependencies", "label": "dependencies", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_dependencies_cmd_nvs", "label": "cmd_nvs", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L2"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_cmd_nvs_path", "label": "path", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L3"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_dependencies_cmd_system", "label": "cmd_system", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L4"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_cmd_system_path", "label": "path", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L5"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_dependencies_espressif_esp_hosted", "label": "espressif/esp_hosted", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L6"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_espressif_esp_hosted_rules", "label": "rules", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L7"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_rules_if", "label": "if", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L8"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_espressif_esp_hosted_version", "label": "version", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L9"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_dependencies_espressif_esp_wifi_remote", "label": "espressif/esp_wifi_remote", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L10"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_espressif_esp_wifi_remote_rules", "label": "rules", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L11"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_espressif_esp_wifi_remote_version", "label": "version", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L14"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_dependencies_joltwallet_littlefs", "label": "joltwallet/littlefs", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L15"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_joltwallet_littlefs_version", "label": "version", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L16"}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_yml", "target": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_dependencies", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L1", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_dependencies", "target": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_dependencies_cmd_nvs", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L2", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_dependencies_cmd_nvs", "target": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_cmd_nvs_path", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L3", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_dependencies", "target": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_dependencies_cmd_system", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/idf_component.yml", "source_location": "L4", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_dependencies_cmd_system", "target": "$graphify-root$_scripts_c6_ota_mcu_host_main_idf_component_cmd_system_path", "relation": "contains", "confidence": "ELine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_legacy_main_c", "label": "main.c", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/legacy/main.c", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_legacy_main_compare_versions", "label": "compare_versions()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/legacy/main.c", "source_location": "L91", "_callable": true}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_legacy_main_check_version_compatibility", "label": "check_version_compatibility()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/legacy/main.c", "source_location": "L125", "_callable": true}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_legacy_main_perform_slave_ota", "label": "perform_slave_ota()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/legacy/main.c", "source_location": "L160", "_callable": true}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_legacy_main_activate_and_restart", "label": "activate_and_restart()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/legacy/main.c", "source_location": "L194", "_callable": true}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_legacy_main_app_main", "label": "app_main()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/legacy/main.c", "source_location": "L246", "_callable": true}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_legacy_main_c", "target": "stdio", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/legacy/main.c", "source_location": "L55", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_legacy_main_c", "target": "inttypes", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/legacy/main.c", "source_location": "L56", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_legacy_main_c", "target": "esp_log", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/legacy/main.c", "source_location": "L57", "weight": 1.0, "metadata": {"raw_include": "esp_log.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_legacy_main_c", "target": "esp_system", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/legacy/main.c", "source_location": "L58", "weight": 1.0, "metadata": {"raw_include": "esp_system.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_legacy_main_c", "target": "nvs_flash", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/legacy/main.c", "source_location": "L59", "weight": 1.0, "metadata": {"raw_include": "nvs_flash.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_legacy_main_c", "target": "esp_event", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/legacy/main.c", "source_location": "L60", "weight": 1.0, "metadata": {"raw_include": "esp_event.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_legacy_main_c", "target": "freertos", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/legacy/main.c", "source_location": "L61", "weight": 1.0, "metadata": {"raw_include": "freertos/FreeRTOS.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_legacy_main_c", "target": "task", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/legacy/main.c", "source_location": "L62", "weight": 1.0, "metadata": {"raw_include": "freertos/task.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_legacy_main_c", "target": "esp_err", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/legacy/main.c", "source_location": "L63", "weight": 1.0, "metadata": {"raw_include": "esp_err.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_legacy_main_c", "target": "esp_hosted", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/legacy/main.c", "source_location": "L64", "weight": 1.0, "metadata": {"raw_include": "esp_hosted.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_legacy_main_c", "target": "esp_hosted_ota", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/legacy/main.c", "source_location": "L65", "weight": 1.0, "metadata": {"rLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_mcu_host_readme_md", "label": "README.md", "file_type": "document", "node_kind": "page", "source_file": "scripts/c6-ota/mcu_host/README.md", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_readme_ota_coprocessor_ota_host", "label": "ota / coprocessor_ota \u2014 Host", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/README.md", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_readme_supported_platforms_and_transports", "label": "Supported Platforms and Transports", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/README.md", "source_location": "L8"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_readme_supported_coprocessors", "label": "Supported Coprocessors", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/README.md", "source_location": "L10"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_readme_supported_host_devices", "label": "Supported Host Devices", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/README.md", "source_location": "L18"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_readme_supported_connection_buses", "label": "Supported Connection buses", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/README.md", "source_location": "L24"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_readme_scenario", "label": "Scenario", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/README.md", "source_location": "L31"}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_mcu_host_readme_md", "target": "$graphify-root$_scripts_c6_ota_mcu_host_readme_ota_coprocessor_ota_host", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/README.md", "source_location": "L1", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_readme_ota_coprocessor_ota_host", "target": "$graphify-root$_scripts_c6_ota_mcu_host_readme_supported_platforms_and_transports", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/README.md", "source_location": "L8", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_readme_supported_platforms_and_transports", "target": "$graphify-root$_scripts_c6_ota_mcu_host_readme_supported_coprocessors", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/README.md", "source_location": "L10", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_readme_supported_platforms_and_transports", "target": "$graphify-root$_scripts_c6_ota_mcu_host_readme_supported_host_devices", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/README.md", "source_location": "L18", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_readme_supported_platforms_and_transports", "target": "$graphify-root$_scripts_c6_ota_mcu_host_readme_supported_connection_buses", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/README.md", "source_location": "L24", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_readme_ota_coprocessor_ota_host", "target": "$graphify-root$_scripts_c6_ota_mcu_host_readme_scenario", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/README.md", "source_location": "L31", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_scripts_c6_ota_mcu_host_readme_scenario", "callee": "begin", "is_member_call": false, "language": "markdown", "context": "begin", "source_file": "scripts/c6-ota/mcu_host/README.md", "source_location": "L33"}, {"caller_nid": "$graphify-root$_scripts_c6_ota_mcu_host_readme_scenario", "callee": "write", "is_member_call": false, "language": "markdown", "context": "write", "source_file": "scripts/c6-ota/mcu_host/README.md", "source_location": "L33"}, {"caller_nid": "$graphify-root$_scripts_c6_ota_mcu_host_readme_scenario", "callee": "end", "is_member_call": false, "language": "markdown", "context": "end", "source_file": "scripts/c6-ota/mcu_host/README.md", "source_location": "L33"}, {"caller_nid": "$graphify-root$_scripts_c6_ota_mcu_host_readme_scenario", "callee": "activate", "is_member_call": false, "language": "markdown", "context": "activate", "source_file": "scripts/c6-ota/mcu_host/README.md", "source_location": "L33"}], "input_tokens": 0, "output_tokens": 0}
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_p4_probe_main_main_c", "label": "main.c", "file_type": "code", "source_file": "scripts/p4-probe/main/main.c", "source_location": "L1"}, {"id": "$graphify-root$_scripts_p4_probe_main_main_print_p4", "label": "print_p4()", "file_type": "code", "source_file": "scripts/p4-probe/main/main.c", "source_location": "L20", "_callable": true}, {"id": "$graphify-root$_scripts_p4_probe_main_main_probe_c6", "label": "probe_c6()", "file_type": "code", "source_file": "scripts/p4-probe/main/main.c", "source_location": "L30", "_callable": true}, {"id": "$graphify-root$_scripts_p4_probe_main_main_scan", "label": "scan()", "file_type": "code", "source_file": "scripts/p4-probe/main/main.c", "source_location": "L67", "_callable": true}, {"id": "$graphify-root$_scripts_p4_probe_main_main_app_main", "label": "app_main()", "file_type": "code", "source_file": "scripts/p4-probe/main/main.c", "source_location": "L95", "_callable": true}], "edges": [{"source": "$graphify-root$_scripts_p4_probe_main_main_c", "target": "stdio", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/p4-probe/main/main.c", "source_location": "L3", "weight": 1.0}, {"source": "$graphify-root$_scripts_p4_probe_main_main_c", "target": "string", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/p4-probe/main/main.c", "source_location": "L4", "weight": 1.0}, {"source": "$graphify-root$_scripts_p4_probe_main_main_c", "target": "esp_log", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/p4-probe/main/main.c", "source_location": "L5", "weight": 1.0, "metadata": {"raw_include": "esp_log.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_p4_probe_main_main_c", "target": "esp_chip_info", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/p4-probe/main/main.c", "source_location": "L6", "weight": 1.0, "metadata": {"raw_include": "esp_chip_info.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_p4_probe_main_main_c", "target": "esp_mac", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/p4-probe/main/main.c", "source_location": "L7", "weight": 1.0, "metadata": {"raw_include": "esp_mac.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_p4_probe_main_main_c", "target": "esp_event", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/p4-probe/main/main.c", "source_location": "L8", "weight": 1.0, "metadata": {"raw_include": "esp_event.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_p4_probe_main_main_c", "target": "esp_netif", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/p4-probe/main/main.c", "source_location": "L9", "weight": 1.0, "metadata": {"raw_include": "esp_netif.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_p4_probe_main_main_c", "target": "esp_wifi", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/p4-probe/main/main.c", "source_location": "L10", "weight": 1.0, "metadata": {"raw_include": "esp_wifi.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_p4_probe_main_main_c", "target": "nvs_flash", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/p4-probe/main/main.c", "source_location": "L11", "weight": 1.0, "metadata": {"raw_include": "nvs_flash.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_p4_probe_main_main_c", "target": "freertos", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/p4-probe/main/main.c", "source_location": "L12", "weight": 1.0, "metadata": {"raw_include": "freertos/FreeRTOS.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_p4_probe_main_main_c", "target": "task", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/p4-probe/main/main.c", "source_location": "L13", "weight": 1.0, "metadata": {"raw_include": "freertos/task.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_p4_probe_main_main_c", "target": "esp_hosted", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/p4-probe/main/main.c", "source_location": "L14", "weight": 1.0, "metadata": {"raw_include": "esp_hosted.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_p4_probe_main_main_c", "target": "$graphify-root$_scripts_p4_probe_main_main_print_p4", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/p4-probe/main/main.c", "source_location": "L20", "weight": 1.0}, {"source": "$graphify-root$_scripts_p4_probe_main_main_c", "target": "$graphify-root$_scripts_p4_probe_main_main_probe_c6", "relation": "contains", "confidence":Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_slave_fw_bin_readme_md", "label": "README.md", "file_type": "document", "node_kind": "page", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/slave_fw_bin/README.md", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_slave_fw_bin_readme_slave_firmware_binaries_for_littlefs_ota", "label": "Slave Firmware Binaries for LittleFS OTA", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/slave_fw_bin/README.md", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_slave_fw_bin_readme_usage", "label": "Usage", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/slave_fw_bin/README.md", "source_location": "L5"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_slave_fw_bin_readme_important_notes", "label": "Important Notes", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/slave_fw_bin/README.md", "source_location": "L14"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_slave_fw_bin_readme_example", "label": "Example", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/slave_fw_bin/README.md", "source_location": "L21"}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_slave_fw_bin_readme_md", "target": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_slave_fw_bin_readme_slave_firmware_binaries_for_littlefs_ota", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/slave_fw_bin/README.md", "source_location": "L1", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_slave_fw_bin_readme_slave_firmware_binaries_for_littlefs_ota", "target": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_slave_fw_bin_readme_usage", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/slave_fw_bin/README.md", "source_location": "L5", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_slave_fw_bin_readme_slave_firmware_binaries_for_littlefs_ota", "target": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_slave_fw_bin_readme_important_notes", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/slave_fw_bin/README.md", "source_location": "L14", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_slave_fw_bin_readme_slave_firmware_binaries_for_littlefs_ota", "target": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_slave_fw_bin_readme_example", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/slave_fw_bin/README.md", "source_location": "L21", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_slave_fw_bin_readme_usage", "callee": "bin", "is_member_call": false, "language": "markdown", "context": "network_adapter.bin", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/slave_fw_bin/README.md", "source_location": "L7", "qualifiers": ["network_adapter"]}, {"caller_nid": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_slave_fw_bin_readme_usage", "callee": "storage", "is_member_call": false, "language": "markdown", "context": "storage", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/slave_fw_bin/README.md", "source_location": "L12"}], "input_tokens": 0, "output_tokens": 0}
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_main_c", "label": "main.c", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/main.c", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_main_compare_versions", "label": "compare_versions()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/main.c", "source_location": "L41", "_callable": true}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_main_check_version_compatibility", "label": "check_version_compatibility()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/main.c", "source_location": "L67", "_callable": true}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_main_perform_slave_ota", "label": "perform_slave_ota()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/main.c", "source_location": "L90", "_callable": true}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_main_activate_and_restart", "label": "activate_and_restart()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/main.c", "source_location": "L118", "_callable": true}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_main_main_app_main", "label": "app_main()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/main/main.c", "source_location": "L162", "_callable": true}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_main_c", "target": "stdio", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/main.c", "source_location": "L9", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_main_c", "target": "inttypes", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/main.c", "source_location": "L10", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_main_c", "target": "esp_log", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/main.c", "source_location": "L11", "weight": 1.0, "metadata": {"raw_include": "esp_log.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_main_c", "target": "esp_system", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/main.c", "source_location": "L12", "weight": 1.0, "metadata": {"raw_include": "esp_system.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_main_c", "target": "nvs_flash", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/main.c", "source_location": "L13", "weight": 1.0, "metadata": {"raw_include": "nvs_flash.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_main_c", "target": "esp_event", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/main.c", "source_location": "L14", "weight": 1.0, "metadata": {"raw_include": "esp_event.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_main_c", "target": "freertos", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/main.c", "source_location": "L15", "weight": 1.0, "metadata": {"raw_include": "freertos/FreeRTOS.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_main_c", "target": "task", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/main.c", "source_location": "L16", "weight": 1.0, "metadata": {"raw_include": "freertos/task.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_main_c", "target": "esp_err", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/main.c", "source_location": "L17", "weight": 1.0, "metadata": {"raw_include": "esp_err.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_main_c", "target": "eh_host", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/main.c", "source_location": "L18", "weight": 1.0, "metadata": {"raw_include": "eh_host.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_main_c", "target": "eh_host_core", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/main/main.c", "source_location": "L19", "weight": 1.0, "metadata": {"raw_include": "eh_host_core.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_main_main_c", "target": "eh_host_cp_ota", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/cLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_led_driver_main_settings_h", "label": "settings.h", "file_type": "code", "source_file": "led-driver/main/settings.h", "source_location": "L1"}], "edges": [{"source": "$graphify-root$_led_driver_main_settings_h", "target": "stdbool", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/settings.h", "source_location": "L6", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_settings_h", "target": "esp_err", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/settings.h", "source_location": "L8", "weight": 1.0, "metadata": {"raw_include": "esp_err.h", "include_kind": "quoted"}}], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_ota_littlefs_c", "label": "ota_littlefs.c", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.c", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_ota_littlefs_parse_image_header_from_file", "label": "parse_image_header_from_file()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.c", "source_location": "L53", "_callable": true}, {"id": "esp_err_t", "label": "esp_err_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.c"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_ota_littlefs_find_latest_firmware", "label": "find_latest_firmware()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.c", "source_location": "L151", "_callable": true}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_ota_littlefs_check_littlefs_files", "label": "check_littlefs_files()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.c", "source_location": "L231", "_callable": true}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_ota_littlefs_ota_littlefs_perform", "label": "ota_littlefs_perform()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.c", "source_location": "L270", "_callable": true}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_ota_littlefs_c", "target": "stdio", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.c", "source_location": "L27", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_ota_littlefs_c", "target": "string", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.c", "source_location": "L28", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_ota_littlefs_c", "target": "inttypes", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.c", "source_location": "L29", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_ota_littlefs_c", "target": "dirent", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.c", "source_location": "L30", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_ota_littlefs_c", "target": "stat", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.c", "source_location": "L31", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_ota_littlefs_c", "target": "esp_log", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.c", "source_location": "L32", "weight": 1.0, "metadata": {"raw_include": "esp_log.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_ota_littlefs_c", "target": "esp_err", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.c", "source_location": "L33", "weight": 1.0, "metadata": {"raw_include": "esp_err.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_ota_littlefs_c", "target": "esp_littlefs", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.c", "source_location": "L34", "weight": 1.0, "metadata": {"raw_include": "esp_littlefs.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_ota_littlefs_c", "target": "esp_hosted_ota", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.c", "source_location": "L35", "weight": 1.0, "metadata": {"raw_include": "esp_hosted_ota.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_ota_littlefs_c", "target": "unistd", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.c", "source_location": "Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_h", "label": "ota_https.h", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https.h", "source_location": "L1"}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_h", "target": "esp_err", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https.h", "source_location": "L9", "weight": 1.0, "metadata": {"raw_include": "esp_err.h", "include_kind": "quoted"}}], "raw_calls": [], "parse_errors": {"first_error_line": 23, "multiline_error": false}}
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_cp_main_main_c", "label": "main.c", "file_type": "code", "source_file": "scripts/c6-ota/cp/main/main.c", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_cp_main_main_app_main", "label": "app_main()", "file_type": "code", "source_file": "scripts/c6-ota/cp/main/main.c", "source_location": "L15", "_callable": true}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_cp_main_main_c", "target": "esp_log", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/cp/main/main.c", "source_location": "L7", "weight": 1.0, "metadata": {"raw_include": "esp_log.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_cp_main_main_c", "target": "esp_event", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/cp/main/main.c", "source_location": "L8", "weight": 1.0, "metadata": {"raw_include": "esp_event.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_cp_main_main_c", "target": "nvs_flash", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/cp/main/main.c", "source_location": "L9", "weight": 1.0, "metadata": {"raw_include": "nvs_flash.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_cp_main_main_c", "target": "esp_check", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/cp/main/main.c", "source_location": "L11", "weight": 1.0, "metadata": {"raw_include": "esp_check.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_cp_main_main_c", "target": "$graphify-root$_scripts_c6_ota_cp_main_main_app_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/cp/main/main.c", "source_location": "L15", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_scripts_c6_ota_cp_main_main_app_main", "callee": "ESP_LOGI", "is_member_call": false, "source_file": "scripts/c6-ota/cp/main/main.c", "source_location": "L17", "receiver": null}, {"caller_nid": "$graphify-root$_scripts_c6_ota_cp_main_main_app_main", "callee": "nvs_flash_init", "is_member_call": false, "source_file": "scripts/c6-ota/cp/main/main.c", "source_location": "L20", "receiver": null}, {"caller_nid": "$graphify-root$_scripts_c6_ota_cp_main_main_app_main", "callee": "ESP_ERROR_CHECK", "is_member_call": false, "source_file": "scripts/c6-ota/cp/main/main.c", "source_location": "L22", "receiver": null}, {"caller_nid": "$graphify-root$_scripts_c6_ota_cp_main_main_app_main", "callee": "nvs_flash_erase", "is_member_call": false, "source_file": "scripts/c6-ota/cp/main/main.c", "source_location": "L22", "receiver": null}, {"caller_nid": "$graphify-root$_scripts_c6_ota_cp_main_main_app_main", "callee": "nvs_flash_init", "is_member_call": false, "source_file": "scripts/c6-ota/cp/main/main.c", "source_location": "L23", "receiver": null}, {"caller_nid": "$graphify-root$_scripts_c6_ota_cp_main_main_app_main", "callee": "ESP_ERROR_CHECK", "is_member_call": false, "source_file": "scripts/c6-ota/cp/main/main.c", "source_location": "L25", "receiver": null}, {"caller_nid": "$graphify-root$_scripts_c6_ota_cp_main_main_app_main", "callee": "ESP_ERROR_CHECK", "is_member_call": false, "source_file": "scripts/c6-ota/cp/main/main.c", "source_location": "L28", "receiver": null}, {"caller_nid": "$graphify-root$_scripts_c6_ota_cp_main_main_app_main", "callee": "esp_event_loop_create_default", "is_member_call": false, "source_file": "scripts/c6-ota/cp/main/main.c", "source_location": "L28", "receiver": null}]}
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_host_v2_main_idf_component_yml", "label": "idf_component.yml", "file_type": "code", "source_file": "scripts/c6-ota/host-v2/main/idf_component.yml", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_host_v2_main_idf_component_dependencies", "label": "dependencies", "file_type": "code", "source_file": "scripts/c6-ota/host-v2/main/idf_component.yml", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_host_v2_main_idf_component_dependencies_espressif_esp_hosted", "label": "espressif/esp_hosted", "file_type": "code", "source_file": "scripts/c6-ota/host-v2/main/idf_component.yml", "source_location": "L2"}, {"id": "$graphify-root$_scripts_c6_ota_host_v2_main_idf_component_dependencies_espressif_esp_wifi_remote", "label": "espressif/esp_wifi_remote", "file_type": "code", "source_file": "scripts/c6-ota/host-v2/main/idf_component.yml", "source_location": "L3"}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_host_v2_main_idf_component_yml", "target": "$graphify-root$_scripts_c6_ota_host_v2_main_idf_component_dependencies", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/host-v2/main/idf_component.yml", "source_location": "L1", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_host_v2_main_idf_component_dependencies", "target": "$graphify-root$_scripts_c6_ota_host_v2_main_idf_component_dependencies_espressif_esp_hosted", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/host-v2/main/idf_component.yml", "source_location": "L2", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_host_v2_main_idf_component_dependencies", "target": "$graphify-root$_scripts_c6_ota_host_v2_main_idf_component_dependencies_espressif_esp_wifi_remote", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/host-v2/main/idf_component.yml", "source_location": "L3", "weight": 1.0}]}
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_c", "label": "ota_https.c", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https.c", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_parse_image_header_from_buffer", "label": "parse_image_header_from_buffer()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https.c", "source_location": "L58", "_callable": true}, {"id": "esp_err_t", "label": "esp_err_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/scripts/c6-ota/mcu_host/components/ota_https/ota_https.c"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_http_client_event_handler", "label": "http_client_event_handler()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https.c", "source_location": "L147", "_callable": true}, {"id": "esp_http_client_event_t", "label": "esp_http_client_event_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/scripts/c6-ota/mcu_host/components/ota_https/ota_https.c"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_ota_https_perform", "label": "ota_https_perform()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https.c", "source_location": "L185", "_callable": true}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_c", "target": "stdio", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https.c", "source_location": "L28", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_c", "target": "string", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https.c", "source_location": "L29", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_c", "target": "inttypes", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https.c", "source_location": "L30", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_c", "target": "esp_log", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https.c", "source_location": "L31", "weight": 1.0, "metadata": {"raw_include": "esp_log.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_c", "target": "esp_err", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https.c", "source_location": "L32", "weight": 1.0, "metadata": {"raw_include": "esp_err.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_c", "target": "esp_hosted", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https.c", "source_location": "L33", "weight": 1.0, "metadata": {"raw_include": "esp_hosted.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_c", "target": "esp_http_client", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https.c", "source_location": "L34", "weight": 1.0, "metadata": {"raw_include": "esp_http_client.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_c", "target": "esp_crt_bundle", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https.c", "source_location": "L35", "weight": 1.0, "metadata": {"raw_include": "esp_crt_bundle.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_c", "target": "sdkconfig", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https.c", "source_location": "L36", "weight": 1.0, "metadata": {"raw_include": "sdkconfig.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_c", "target": "esp_app_format", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https.c", "source_location": "L37", "weight": 1.0, "metadata": {"raw_include": "esp_app_format.h", "inLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_led_driver_main_settings_cpp", "label": "settings.cpp", "file_type": "code", "source_file": "led-driver/main/settings.cpp", "source_location": "L1"}, {"id": "$graphify-root$_led_driver_main_settings_settings_load_wifi", "label": "settings_load_wifi()", "file_type": "code", "source_file": "led-driver/main/settings.cpp", "source_location": "L14", "_callable": true}, {"id": "esp_err_t", "label": "esp_err_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/led-driver/main/settings.cpp"}, {"id": "wifi_creds_t", "label": "wifi_creds_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/led-driver/main/settings.cpp"}, {"id": "$graphify-root$_led_driver_main_settings_settings_save_wifi", "label": "settings_save_wifi()", "file_type": "code", "source_file": "led-driver/main/settings.cpp", "source_location": "L35", "_callable": true}, {"id": "$graphify-root$_led_driver_main_settings_settings_load_hw", "label": "settings_load_hw()", "file_type": "code", "source_file": "led-driver/main/settings.cpp", "source_location": "L49", "_callable": true}, {"id": "hw_cfg_t", "label": "hw_cfg_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/led-driver/main/settings.cpp"}, {"id": "$graphify-root$_led_driver_main_settings_settings_save_hw", "label": "settings_save_hw()", "file_type": "code", "source_file": "led-driver/main/settings.cpp", "source_location": "L86", "_callable": true}, {"id": "$graphify-root$_led_driver_main_settings_get_str", "label": "get_str()", "file_type": "code", "source_file": "led-driver/main/settings.cpp", "source_location": "L105", "_callable": true}, {"id": "nvs_handle_t", "label": "nvs_handle_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/led-driver/main/settings.cpp"}, {"id": "$graphify-root$_led_driver_main_settings_default_hostname", "label": "default_hostname()", "file_type": "code", "source_file": "led-driver/main/settings.cpp", "source_location": "L116", "_callable": true}, {"id": "$graphify-root$_led_driver_main_settings_settings_load_net", "label": "settings_load_net()", "file_type": "code", "source_file": "led-driver/main/settings.cpp", "source_location": "L123", "_callable": true}, {"id": "net_cfg_t", "label": "net_cfg_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/led-driver/main/settings.cpp"}, {"id": "$graphify-root$_led_driver_main_settings_settings_save_net", "label": "settings_save_net()", "file_type": "code", "source_file": "led-driver/main/settings.cpp", "source_location": "L169", "_callable": true}], "edges": [{"source": "$graphify-root$_led_driver_main_settings_cpp", "target": "cstdio", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/settings.cpp", "source_location": "L4", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_settings_cpp", "target": "cstring", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/settings.cpp", "source_location": "L5", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_settings_cpp", "target": "esp_mac", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/settings.cpp", "source_location": "L7", "weight": 1.0, "metadata": {"raw_include": "esp_mac.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_led_driver_main_settings_cpp", "target": "nvs", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/settings.cpp", "source_location": "L9", "weight": 1.0, "metadata": {"raw_include": "nvs.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_led_driver_main_settings_cpp", "target": "$graphify-root$_led_driver_main_settings_h", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/settings.cpp", "source_location": "L10", "weight": 1.0, "target_file": "$graphify-root$/led-driver/main/settings.h"}, {"source": "$graphify-root$_led_driver_main_settings_cpp", "target": "$graphify-root$_led_driver_main_settings_settings_load_wifi", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/settings.cpp", "source_location": "L14", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_settings_settings_load_wifi", "target": "esp_err_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/settings.cpp", "source_location": "L14", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_led_driver_main_settings_settings_load_wifi", "target": "wifi_creds_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/settings.cpp", "source_location": "L14", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphiLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_bridge_main_bridge_main_c", "label": "bridge_main.c", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L1"}, {"id": "$graphify-root$_bridge_main_bridge_main_usb_send_frame", "label": "usb_send_frame()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L84", "_callable": true}, {"id": "$graphify-root$_bridge_main_bridge_main_log_hook", "label": "log_hook()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L109", "_callable": true}, {"id": "va_list", "label": "va_list", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/bridge/main/bridge_main.c"}, {"id": "$graphify-root$_bridge_main_bridge_main_put_u32", "label": "put_u32()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L126", "_callable": true}, {"id": "$graphify-root$_bridge_main_bridge_main_build_info", "label": "build_info()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L135", "_callable": true}, {"id": "$graphify-root$_bridge_main_bridge_main_send_info", "label": "send_info()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L155", "_callable": true}, {"id": "$graphify-root$_bridge_main_bridge_main_on_sent", "label": "on_sent()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L164", "_callable": true}, {"id": "esp_now_send_info_t", "label": "esp_now_send_info_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/bridge/main/bridge_main.c"}, {"id": "esp_now_send_status_t", "label": "esp_now_send_status_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/bridge/main/bridge_main.c"}, {"id": "$graphify-root$_bridge_main_bridge_main_on_recv", "label": "on_recv()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L171", "_callable": true}, {"id": "esp_now_recv_info_t", "label": "esp_now_recv_info_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/bridge/main/bridge_main.c"}, {"id": "$graphify-root$_bridge_main_bridge_main_ensure_peer", "label": "ensure_peer()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L188", "_callable": true}, {"id": "$graphify-root$_bridge_main_bridge_main_set_channel", "label": "set_channel()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L224", "_callable": true}, {"id": "$graphify-root$_bridge_main_bridge_main_tx_task", "label": "tx_task()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L238", "_callable": true}, {"id": "$graphify-root$_bridge_main_bridge_main_rx_task", "label": "rx_task()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L264", "_callable": true}, {"id": "$graphify-root$_bridge_main_bridge_main_udp_send_up", "label": "udp_send_up()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L284", "_callable": true}, {"id": "$graphify-root$_bridge_main_bridge_main_udp_task", "label": "udp_task()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L294", "_callable": true}, {"id": "$graphify-root$_bridge_main_bridge_main_ctl_task", "label": "ctl_task()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L320", "_callable": true}, {"id": "$graphify-root$_bridge_main_bridge_main_ctl_open", "label": "ctl_open()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L347", "_callable": true}, {"id": "$graphify-root$_bridge_main_bridge_main_udp_open", "label": "udp_open()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L360", "_callable": true}, {"id": "$graphify-root$_bridge_main_bridge_main_handle_frame", "label": "handle_frame()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L378", "_callable": true}, {"id": "$graphify-root$_bridge_main_bridge_main_host_rx_task", "label": "host_rx_task()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L419", "_callable": true}, {"id": "$graphify-root$_bridge_main_bridge_main_mic_task", "label": "mic_task()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L442", "_callable": true}, {"id": "$graphify-root$_bridge_main_bridge_main_mic_start", "label": "mic_start()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location": "L491", "_callable": true}, {"id": "$graphify-root$_bridge_main_bridge_main_load_channel", "label": "load_channel()", "file_type": "code", "source_file": "bridge/main/bridge_main.c", "source_location"Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_cp_main_idf_component_yml", "label": "idf_component.yml", "file_type": "code", "source_file": "scripts/c6-ota/cp/main/idf_component.yml", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_cp_main_idf_component_dependencies", "label": "dependencies", "file_type": "code", "source_file": "scripts/c6-ota/cp/main/idf_component.yml", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_cp_main_idf_component_dependencies_espressif_esp_hosted", "label": "espressif/esp_hosted", "file_type": "code", "source_file": "scripts/c6-ota/cp/main/idf_component.yml", "source_location": "L2"}, {"id": "$graphify-root$_scripts_c6_ota_cp_main_idf_component_espressif_esp_hosted_version", "label": "version", "file_type": "code", "source_file": "scripts/c6-ota/cp/main/idf_component.yml", "source_location": "L3"}, {"id": "$graphify-root$_scripts_c6_ota_cp_main_idf_component_dependencies_idf", "label": "idf", "file_type": "code", "source_file": "scripts/c6-ota/cp/main/idf_component.yml", "source_location": "L4"}, {"id": "$graphify-root$_scripts_c6_ota_cp_main_idf_component_idf_version", "label": "version", "file_type": "code", "source_file": "scripts/c6-ota/cp/main/idf_component.yml", "source_location": "L5"}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_cp_main_idf_component_yml", "target": "$graphify-root$_scripts_c6_ota_cp_main_idf_component_dependencies", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/cp/main/idf_component.yml", "source_location": "L1", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_cp_main_idf_component_dependencies", "target": "$graphify-root$_scripts_c6_ota_cp_main_idf_component_dependencies_espressif_esp_hosted", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/cp/main/idf_component.yml", "source_location": "L2", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_cp_main_idf_component_dependencies_espressif_esp_hosted", "target": "$graphify-root$_scripts_c6_ota_cp_main_idf_component_espressif_esp_hosted_version", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/cp/main/idf_component.yml", "source_location": "L3", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_cp_main_idf_component_dependencies", "target": "$graphify-root$_scripts_c6_ota_cp_main_idf_component_dependencies_idf", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/cp/main/idf_component.yml", "source_location": "L4", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_cp_main_idf_component_dependencies_idf", "target": "$graphify-root$_scripts_c6_ota_cp_main_idf_component_idf_version", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/cp/main/idf_component.yml", "source_location": "L5", "weight": 1.0}]}
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_md", "label": "README.md", "file_type": "document", "node_kind": "page", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/README.md", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_test_server_tools", "label": "Test Server Tools", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/README.md", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_files", "label": "Files", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/README.md", "source_location": "L5"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_quick_start", "label": "Quick Start", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/README.md", "source_location": "L11"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_1_generate_test_certificates", "label": "1. Generate Test Certificates", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/README.md", "source_location": "L13"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_2_start_https_server", "label": "2. Start HTTPS Server", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/README.md", "source_location": "L20"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_3_configure_esp32", "label": "3. Configure ESP32", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/README.md", "source_location": "L27"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_important_notes", "label": "Important Notes", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/README.md", "source_location": "L39"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_troubleshooting", "label": "Troubleshooting", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/README.md", "source_location": "L46"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_certificate_not_found_error", "label": "Certificate not found error", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/README.md", "source_location": "L48"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_server_won_t_start", "label": "Server won't start", "file_type": "document", "node_kind": "heading", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/README.md", "source_location": "L56"}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_md", "target": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_test_server_tools", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/README.md", "source_location": "L1", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_test_server_tools", "target": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_files", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/README.md", "source_location": "L5", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_test_server_tools", "target": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_quick_start", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/README.md", "source_location": "L11", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_quick_start", "target": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_1_generate_test_certificates", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/README.md", "source_location": "L13", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_readme_quick_start", "target": "$graphify-root$_sLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_https_server_py", "label": "create_https_server.py", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_https_server.py", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_https_server_get_local_ip", "label": "get_local_ip()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_https_server.py", "source_location": "L10", "_callable": true}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_https_server_corshttprequesthandler", "label": "CORSHTTPRequestHandler", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_https_server.py", "source_location": "L36", "metadata": {"python_opaque_bases": true}, "_callable": true, "_callable_class": true}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_https_server_corshttprequesthandler_end_headers", "label": ".end_headers()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_https_server.py", "source_location": "L37", "_callable": true}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_https_server_corshttprequesthandler_log_message", "label": ".log_message()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_https_server.py", "source_location": "L43", "_callable": true}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_https_server_rationale_11", "label": "Get the local IP address of this machine", "file_type": "rationale", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_https_server.py", "source_location": "L11"}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_https_server_py", "target": "http_server", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_https_server.py", "source_location": "L4", "weight": 1.0, "_python_import_module": "http.server", "_python_import_bindings": [["http.server", "http"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_https_server_py", "target": "ssl", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_https_server.py", "source_location": "L5", "weight": 1.0, "_python_import_module": "ssl", "_python_import_bindings": [["ssl", "ssl"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_https_server_py", "target": "socket", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_https_server.py", "source_location": "L6", "weight": 1.0, "_python_import_module": "socket", "_python_import_bindings": [["socket", "socket"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_https_server_py", "target": "os", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_https_server.py", "source_location": "L7", "weight": 1.0, "_python_import_module": "os", "_python_import_bindings": [["os", "os"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_https_server_py", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_https_server.py", "source_location": "L8", "weight": 1.0, "_python_import_module": "sys", "_python_import_bindings": [["sys", "sys"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_https_server_py", "target": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_https_server_get_local_ip", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/test_server/create_https_server.py", "source_location": "L10", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_https_server_py", "target": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_test_server_create_https_server_corshttprequesthandler", "relation": "contains", "confidence": "EXTRACTED", "Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_desktop_port_include_sdkconfig_h", "label": "sdkconfig.h", "file_type": "code", "source_file": "desktop/port/include/sdkconfig.h", "source_location": "L1"}], "edges": [], "raw_calls": []}
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_wifi_c", "label": "ota_https_wifi.c", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https_wifi.c", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_wifi_event_handler", "label": "event_handler()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https_wifi.c", "source_location": "L38", "_callable": true}, {"id": "esp_event_base_t", "label": "esp_event_base_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/scripts/c6-ota/mcu_host/components/ota_https/ota_https_wifi.c"}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_wifi_wifi_init_sta", "label": "wifi_init_sta()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https_wifi.c", "source_location": "L60", "_callable": true}, {"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_wifi_establish_wifi_connection", "label": "establish_wifi_connection()", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https_wifi.c", "source_location": "L116", "_callable": true}, {"id": "esp_err_t", "label": "esp_err_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/scripts/c6-ota/mcu_host/components/ota_https/ota_https_wifi.c"}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_wifi_c", "target": "freertos", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https_wifi.c", "source_location": "L9", "weight": 1.0, "metadata": {"raw_include": "freertos/FreeRTOS.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_wifi_c", "target": "task", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https_wifi.c", "source_location": "L10", "weight": 1.0, "metadata": {"raw_include": "freertos/task.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_wifi_c", "target": "event_groups", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https_wifi.c", "source_location": "L11", "weight": 1.0, "metadata": {"raw_include": "freertos/event_groups.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_wifi_c", "target": "esp_system", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https_wifi.c", "source_location": "L12", "weight": 1.0, "metadata": {"raw_include": "esp_system.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_wifi_c", "target": "esp_wifi", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https_wifi.c", "source_location": "L13", "weight": 1.0, "metadata": {"raw_include": "esp_wifi.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_wifi_c", "target": "esp_event", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https_wifi.c", "source_location": "L14", "weight": 1.0, "metadata": {"raw_include": "esp_event.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_wifi_c", "target": "esp_log", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https_wifi.c", "source_location": "L15", "weight": 1.0, "metadata": {"raw_include": "esp_log.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_wifi_c", "target": "err", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https_wifi.c", "source_location": "L17", "weight": 1.0, "metadata": {"raw_include": "lwip/err.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_https_ota_https_wifi_c", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_https/ota_https_wifi.c", "source_location": "L18", "weight": 1.0, "metadata": {"raw_include": "lwip/sys.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_mcu_host_componentLine truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_ota_partition_h", "label": "ota_partition.h", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.h", "source_location": "L1"}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_partition_ota_partition_h", "target": "esp_err", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.h", "source_location": "L9", "weight": 1.0, "metadata": {"raw_include": "esp_err.h", "include_kind": "quoted"}}], "raw_calls": [], "parse_errors": {"first_error_line": 23, "multiline_error": false}}
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_ota_littlefs_h", "label": "ota_littlefs.h", "file_type": "code", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.h", "source_location": "L1"}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_mcu_host_components_ota_littlefs_ota_littlefs_h", "target": "esp_err", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.h", "source_location": "L9", "weight": 1.0, "metadata": {"raw_include": "esp_err.h", "include_kind": "quoted"}}], "raw_calls": [], "parse_errors": {"first_error_line": 23, "multiline_error": false}}
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_scripts_c6_ota_host_v2_main_main_c", "label": "main.c", "file_type": "code", "source_file": "scripts/c6-ota/host-v2/main/main.c", "source_location": "L1"}, {"id": "$graphify-root$_scripts_c6_ota_host_v2_main_main_image_size", "label": "image_size()", "file_type": "code", "source_file": "scripts/c6-ota/host-v2/main/main.c", "source_location": "L22", "_callable": true}, {"id": "esp_partition_t", "label": "esp_partition_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/scripts/c6-ota/host-v2/main/main.c"}, {"id": "$graphify-root$_scripts_c6_ota_host_v2_main_main_halt", "label": "halt()", "file_type": "code", "source_file": "scripts/c6-ota/host-v2/main/main.c", "source_location": "L38", "_callable": true}, {"id": "$graphify-root$_scripts_c6_ota_host_v2_main_main_app_main", "label": "app_main()", "file_type": "code", "source_file": "scripts/c6-ota/host-v2/main/main.c", "source_location": "L44", "_callable": true}], "edges": [{"source": "$graphify-root$_scripts_c6_ota_host_v2_main_main_c", "target": "string", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/host-v2/main/main.c", "source_location": "L4", "weight": 1.0}, {"source": "$graphify-root$_scripts_c6_ota_host_v2_main_main_c", "target": "esp_log", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/host-v2/main/main.c", "source_location": "L5", "weight": 1.0, "metadata": {"raw_include": "esp_log.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_host_v2_main_main_c", "target": "esp_partition", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/host-v2/main/main.c", "source_location": "L6", "weight": 1.0, "metadata": {"raw_include": "esp_partition.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_host_v2_main_main_c", "target": "esp_app_desc", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/host-v2/main/main.c", "source_location": "L7", "weight": 1.0, "metadata": {"raw_include": "esp_app_desc.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_host_v2_main_main_c", "target": "esp_image_format", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/host-v2/main/main.c", "source_location": "L8", "weight": 1.0, "metadata": {"raw_include": "esp_image_format.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_host_v2_main_main_c", "target": "esp_event", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/host-v2/main/main.c", "source_location": "L9", "weight": 1.0, "metadata": {"raw_include": "esp_event.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_host_v2_main_main_c", "target": "esp_netif", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/host-v2/main/main.c", "source_location": "L10", "weight": 1.0, "metadata": {"raw_include": "esp_netif.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_host_v2_main_main_c", "target": "nvs_flash", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/host-v2/main/main.c", "source_location": "L11", "weight": 1.0, "metadata": {"raw_include": "nvs_flash.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_host_v2_main_main_c", "target": "freertos", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/host-v2/main/main.c", "source_location": "L12", "weight": 1.0, "metadata": {"raw_include": "freertos/FreeRTOS.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_host_v2_main_main_c", "target": "task", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/host-v2/main/main.c", "source_location": "L13", "weight": 1.0, "metadata": {"raw_include": "freertos/task.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_host_v2_main_main_c", "target": "esp_system", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/host-v2/main/main.c", "source_location": "L14", "weight": 1.0, "metadata": {"raw_include": "esp_system.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_host_v2_main_main_c", "target": "esp_hosted", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/c6-ota/host-v2/main/main.c", "source_location": "L15", "weight": 1.0, "metadata": {"raw_include": "esp_hosted.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_scripts_c6_ota_host_v2_main_main_c", "target": "esp_hosted_ota", "relation": "imports", "context": "import", "Line truncated
@@ -1 +0,0 @@
5
@@ -1 +0,0 @@
5
@@ -0,0 +1 @@
2
@@ -1 +0,0 @@
4
@@ -1 +0,0 @@
5
@@ -1 +0,0 @@
5
+1 -1
View File
@@ -1 +1 @@
1795173816.353302
1795481248.5812638
+1 -1
View File
@@ -1 +1 @@
{".claude/CLAUDE.md":{"size":226,"mtime_ns":1793707532996234423,"indexed_at_ns":1793707658543205519,"word_count":29,"hashes":{".claude/CLAUDE.md":"dd502cd6ce0bbff5d4c021e94be6aa49afe1f99dd85901e0201831908630e94b"}},"CLAUDE.md":{"size":1582,"mtime_ns":1794560833170090840,"indexed_at_ns":1794609720117981763,"word_count":247},"CMakeLists.txt":{"size":111,"mtime_ns":1793622279097091871,"indexed_at_ns":1793707658543849029,"word_count":4,"hashes":{"CMakeLists.txt":"837822e28c9599ef04852743d1f103d636d744f2e9219a407744dd5cd636cc9b"}},"README.md":{"size":3583,"mtime_ns":1794783157300129617,"indexed_at_ns":1794783233679457247,"word_count":498},"db/audio_run.json":{"size":103,"mtime_ns":1792558116811211805,"indexed_at_ns":1793707658868880485,"word_count":10,"hashes":{"db/audio_run.json":"22b6ce7327ac83a083fd0ab93d338685ce8a4bf2eba2122f93dbe7b7b36ffe8d"}},"db/bridges.json":{"size":279,"mtime_ns":1792035647171829311,"indexed_at_ns":1793707658874810261,"word_count":26,"hashes":{"db/bridges.json":"3cacd14c72fe5d4a0d316f8b1189134686de036427c8c97d26827638f5c0a913"}},"db/device.json":{"size":2,"mtime_ns":1793777185742747874,"indexed_at_ns":1793777223754642632,"word_count":1,"hashes":{"db/device.json":"d37387d627ac3f5cd9a139daf3b0490a820f32cc88fdcf09a89f7ed5f2879437"}},"db/group.json":{"size":407,"mtime_ns":1793784073189169768,"indexed_at_ns":1793784223737930610,"word_count":48,"hashes":{"db/group.json":"5ac5e81478218af9a7905607a853f0e58b3b8ed6218fb43406366214d81fdf1f"}},"db/output.json":{"size":2,"mtime_ns":1793777185742792981,"indexed_at_ns":1793777223755186745,"word_count":1,"hashes":{"db/output.json":"41b7170a77edddababaeeacfbfcac81d52aed8cd7ab91326a1b2587168f24fea"}},"db/palette.json":{"size":95,"mtime_ns":1793777185742725183,"indexed_at_ns":1793777223755421480,"word_count":9,"hashes":{"db/palette.json":"51fc59a676fa15de8a94dad96942d2ba1837f08bcfbe5158248a3a26e7b8c867"}},"db/pattern.json":{"size":3990,"mtime_ns":1794852754898578747,"indexed_at_ns":1794852782207946806,"word_count":484,"hashes":{"db/pattern.json":"77bfca27b86c95fc42394ab0a1cc3bd626bb8cbf902086aa9daba6a045715d41"}},"db/preset.json":{"size":1547,"mtime_ns":1794192230145924224,"indexed_at_ns":1794192255641306971,"word_count":2,"hashes":{"db/preset.json":"b787780a60fb5de5ab1ae5e95e28c56209c07e76167bf6f7d54a23098de393f1"}},"db/profile.json":{"size":103,"mtime_ns":1793777185742698915,"indexed_at_ns":1793777223756285988,"word_count":13,"hashes":{"db/profile.json":"0c884cad9c2d30151e71adcf2c73c922accc2adc1ec7e3a5f2557f65348ab16d"}},"db/scene.json":{"size":2,"mtime_ns":1793777185743064106,"indexed_at_ns":1793777223756521395,"word_count":1,"hashes":{"db/scene.json":"3fa068cb49be44a2bca2cc32c266bc67dd33f09a90ca72ff5b7e744f2d6372e4"}},"db/sequence.json":{"size":2,"mtime_ns":1793777185742815256,"indexed_at_ns":1793777223756746197,"word_count":1,"hashes":{"db/sequence.json":"9fe59214947c107acb45669e2f107b00be6b6c6184e12ca597f7fc2b661e341a"}},"db/zone.json":{"size":280,"mtime_ns":1793783703894998088,"indexed_at_ns":1793784223739991976,"word_count":35,"hashes":{"db/zone.json":"cdd502ffa90331dbfa71842351796f0b9317de1d744f644233c2e5537089ff7b"}},"dmx-driver/README.md":{"size":2911,"mtime_ns":1792558116808211795,"indexed_at_ns":1793707658544334791,"word_count":395,"hashes":{"dmx-driver/README.md":"0c5ffe2dffbe102a54487430d3946fadbc65335f06b0f6c79f3c16b82f56ab0b"}},"dmx-driver/dev.py":{"size":2240,"mtime_ns":1792558116805211784,"indexed_at_ns":1793707658877667616,"word_count":194,"hashes":{"dmx-driver/dev.py":"284307111b0bcc67200ad58aa46b1a9f4f909b1f565a4867b3ef4bf4bbaec012"}},"dmx-driver/lib/artnet.py":{"size":10536,"mtime_ns":1792558116801446799,"indexed_at_ns":1793707658877956591,"word_count":1079,"hashes":{"dmx-driver/lib/artnet.py":"3aac26e5fc30ac42944e6c70446b999b5d527d088aa82ff47287f89ae6c1fac5"}},"dmx-driver/lib/dmx.py":{"size":930,"mtime_ns":1792558116819211832,"indexed_at_ns":1793707658878446873,"word_count":106,"hashes":{"dmx-driver/lib/dmx.py":"6c9934df04c6685364a31ddf7efc87d2502ce582d7a8f1c3ddcd42483e99c67e"}},"dmx-driver/lib/microdot/__init__.py":{"size":105,"mtime_ns":1790587714329195337,"indexed_at_ns":1793707658878927267,"word_count":13,"hashes":{"dmx-driver/lib/microdot/__init__.py":"ec3f822838066330dbdfa6a24ca7fd3e059ef19aabaccc322e70ef6a7da55aac"}},"dmx-driver/lib/microdot/helpers.py":{"size":232,"mtime_ns":1790587714329195337,"indexed_at_ns":1793707658879255364,"word_count":26,"hashes":{"dmx-driver/lib/microdot/helpers.py":"6b2e71d9786d2c149801eb943b8b873d07601bf9ae1bf9c413114941b32163c2"}},"dmx-driver/lib/microdot/microdot.py":{"size":53202,"mtime_ns":1790587714329195337,"indexed_at_ns":1793707658879562246,"word_count":5131,"hashes":{"dmx-driver/lib/microdot/microdot.py":"4402b84a5214da121fad794ab9bcb59a355d4c98647d3a53953cf3bc78291688"}},"dmx-driver/lib/microdot/utemplate.py":{"size":2543,"mtime_ns":1790587714329195337,"indexed_at_ns":1793707658879958078,"word_count":233,"hashes":{"dmx-driver/lib/microdot/utemplate.py":"d248495f0d973d0a0c0d0121b837e9ffLine truncated
{".claude/CLAUDE.md":{"size":226,"mtime_ns":1793707532996234423,"indexed_at_ns":1793707658543205519,"word_count":29,"hashes":{".claude/CLAUDE.md":"dd502cd6ce0bbff5d4c021e94be6aa49afe1f99dd85901e0201831908630e94b"}},"CLAUDE.md":{"size":1582,"mtime_ns":1794560833170090840,"indexed_at_ns":1794609720117981763,"word_count":247},"CMakeLists.txt":{"size":111,"mtime_ns":1793622279097091871,"indexed_at_ns":1793707658543849029,"word_count":4,"hashes":{"CMakeLists.txt":"837822e28c9599ef04852743d1f103d636d744f2e9219a407744dd5cd636cc9b"}},"README.md":{"size":3583,"mtime_ns":1794783157300129617,"indexed_at_ns":1794783233679457247,"word_count":498},"db/audio_run.json":{"size":103,"mtime_ns":1792558116811211805,"indexed_at_ns":1793707658868880485,"word_count":10,"hashes":{"db/audio_run.json":"22b6ce7327ac83a083fd0ab93d338685ce8a4bf2eba2122f93dbe7b7b36ffe8d"}},"db/bridges.json":{"size":279,"mtime_ns":1792035647171829311,"indexed_at_ns":1793707658874810261,"word_count":26,"hashes":{"db/bridges.json":"3cacd14c72fe5d4a0d316f8b1189134686de036427c8c97d26827638f5c0a913"}},"db/device.json":{"size":2,"mtime_ns":1793777185742747874,"indexed_at_ns":1793777223754642632,"word_count":1,"hashes":{"db/device.json":"d37387d627ac3f5cd9a139daf3b0490a820f32cc88fdcf09a89f7ed5f2879437"}},"db/group.json":{"size":407,"mtime_ns":1793784073189169768,"indexed_at_ns":1793784223737930610,"word_count":48,"hashes":{"db/group.json":"5ac5e81478218af9a7905607a853f0e58b3b8ed6218fb43406366214d81fdf1f"}},"db/output.json":{"size":2,"mtime_ns":1793777185742792981,"indexed_at_ns":1793777223755186745,"word_count":1,"hashes":{"db/output.json":"41b7170a77edddababaeeacfbfcac81d52aed8cd7ab91326a1b2587168f24fea"}},"db/palette.json":{"size":95,"mtime_ns":1793777185742725183,"indexed_at_ns":1793777223755421480,"word_count":9,"hashes":{"db/palette.json":"51fc59a676fa15de8a94dad96942d2ba1837f08bcfbe5158248a3a26e7b8c867"}},"db/pattern.json":{"size":3990,"mtime_ns":1794852754898578747,"indexed_at_ns":1794852782207946806,"word_count":484,"hashes":{"db/pattern.json":"77bfca27b86c95fc42394ab0a1cc3bd626bb8cbf902086aa9daba6a045715d41"}},"db/preset.json":{"size":1547,"mtime_ns":1794192230145924224,"indexed_at_ns":1794192255641306971,"word_count":2,"hashes":{"db/preset.json":"b787780a60fb5de5ab1ae5e95e28c56209c07e76167bf6f7d54a23098de393f1"}},"db/profile.json":{"size":103,"mtime_ns":1793777185742698915,"indexed_at_ns":1793777223756285988,"word_count":13,"hashes":{"db/profile.json":"0c884cad9c2d30151e71adcf2c73c922accc2adc1ec7e3a5f2557f65348ab16d"}},"db/scene.json":{"size":2,"mtime_ns":1793777185743064106,"indexed_at_ns":1793777223756521395,"word_count":1,"hashes":{"db/scene.json":"3fa068cb49be44a2bca2cc32c266bc67dd33f09a90ca72ff5b7e744f2d6372e4"}},"db/sequence.json":{"size":2,"mtime_ns":1793777185742815256,"indexed_at_ns":1793777223756746197,"word_count":1,"hashes":{"db/sequence.json":"9fe59214947c107acb45669e2f107b00be6b6c6184e12ca597f7fc2b661e341a"}},"db/zone.json":{"size":280,"mtime_ns":1793783703894998088,"indexed_at_ns":1793784223739991976,"word_count":35,"hashes":{"db/zone.json":"cdd502ffa90331dbfa71842351796f0b9317de1d744f644233c2e5537089ff7b"}},"dmx-driver/README.md":{"size":2911,"mtime_ns":1792558116808211795,"indexed_at_ns":1793707658544334791,"word_count":395,"hashes":{"dmx-driver/README.md":"0c5ffe2dffbe102a54487430d3946fadbc65335f06b0f6c79f3c16b82f56ab0b"}},"dmx-driver/dev.py":{"size":2240,"mtime_ns":1792558116805211784,"indexed_at_ns":1793707658877667616,"word_count":194,"hashes":{"dmx-driver/dev.py":"284307111b0bcc67200ad58aa46b1a9f4f909b1f565a4867b3ef4bf4bbaec012"}},"dmx-driver/lib/artnet.py":{"size":10536,"mtime_ns":1792558116801446799,"indexed_at_ns":1793707658877956591,"word_count":1079,"hashes":{"dmx-driver/lib/artnet.py":"3aac26e5fc30ac42944e6c70446b999b5d527d088aa82ff47287f89ae6c1fac5"}},"dmx-driver/lib/dmx.py":{"size":930,"mtime_ns":1792558116819211832,"indexed_at_ns":1793707658878446873,"word_count":106,"hashes":{"dmx-driver/lib/dmx.py":"6c9934df04c6685364a31ddf7efc87d2502ce582d7a8f1c3ddcd42483e99c67e"}},"dmx-driver/lib/microdot/__init__.py":{"size":105,"mtime_ns":1790587714329195337,"indexed_at_ns":1793707658878927267,"word_count":13,"hashes":{"dmx-driver/lib/microdot/__init__.py":"ec3f822838066330dbdfa6a24ca7fd3e059ef19aabaccc322e70ef6a7da55aac"}},"dmx-driver/lib/microdot/helpers.py":{"size":232,"mtime_ns":1790587714329195337,"indexed_at_ns":1793707658879255364,"word_count":26,"hashes":{"dmx-driver/lib/microdot/helpers.py":"6b2e71d9786d2c149801eb943b8b873d07601bf9ae1bf9c413114941b32163c2"}},"dmx-driver/lib/microdot/microdot.py":{"size":53202,"mtime_ns":1790587714329195337,"indexed_at_ns":1793707658879562246,"word_count":5131,"hashes":{"dmx-driver/lib/microdot/microdot.py":"4402b84a5214da121fad794ab9bcb59a355d4c98647d3a53953cf3bc78291688"}},"dmx-driver/lib/microdot/utemplate.py":{"size":2543,"mtime_ns":1790587714329195337,"indexed_at_ns":1793707658879958078,"word_count":233,"hashes":{"dmx-driver/lib/microdot/utemplate.py":"d248495f0d973d0a0c0d0121b837e9ffLine truncated
+4 -4
View File
@@ -94,12 +94,12 @@
</div>
<div id="legend"></div>
</div>
<div id="stats">249 nodes &middot; 546 edges &middot; 249 communities</div>
<div id="stats">257 nodes &middot; 560 edges &middot; 257 communities</div>
</div>
<script>
const RAW_NODES = [{"id": "246", "label": "ctrl_msg.cpp", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 24.5, "font": {"size": 12, "color": "#ffffff"}, "title": "ctrl_msg.cpp", "community": 246, "community_name": "ctrl_msg.cpp", "source_file": "", "file_type": "", "degree": 20, "member_count": 80}, {"id": "32", "label": "nvs_sim.cpp", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "nvs_sim.cpp", "community": 32, "community_name": "nvs_sim.cpp", "source_file": "", "file_type": "", "degree": 9, "member_count": 33}, {"id": "68", "label": "cJSON_CreateObject", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 28.0, "font": {"size": 12, "color": "#ffffff"}, "title": "cJSON_CreateObject", "community": 68, "community_name": "cJSON_CreateObject", "source_file": "", "file_type": "", "degree": 24, "member_count": 99}, {"id": "74", "label": "bridge_main.c", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 23.6, "font": {"size": 12, "color": "#ffffff"}, "title": "bridge_main.c", "community": 74, "community_name": "bridge_main.c", "source_file": "", "file_type": "", "degree": 13, "member_count": 75}, {"id": "41", "label": "WS2812", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 17.8, "font": {"size": 12, "color": "#ffffff"}, "title": "WS2812", "community": 41, "community_name": "WS2812", "source_file": "", "file_type": "", "degree": 6, "member_count": 43}, {"id": "217", "label": "api_call_t", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.1, "font": {"size": 12, "color": "#ffffff"}, "title": "api_call_t", "community": 217, "community_name": "api_call_t", "source_file": "", "file_type": "", "degree": 1, "member_count": 6}, {"id": "5", "label": "cJSON", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 28.5, "font": {"size": 12, "color": "#ffffff"}, "title": "cJSON", "community": 5, "community_name": "cJSON", "source_file": "", "file_type": "", "degree": 19, "member_count": 102}, {"id": "14", "label": "freertos.c", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 29.6, "font": {"size": 12, "color": "#ffffff"}, "title": "freertos.c", "community": 14, "community_name": "freertos.c", "source_file": "", "file_type": "", "degree": 34, "member_count": 108}, {"id": "45", "label": "http_parser.h", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 18.2, "font": {"size": 12, "color": "#ffffff"}, "title": "http_parser.h", "community": 45, "community_name": "http_parser.h", "source_file": "", "file_type": "", "degree": 3, "member_count": 45}, {"id": "139", "label": "esp_err.h", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 34.9, "font": {"size": 12, "color": "#ffffff"}, "title": "esp_err.h", "community": 139, "community_name": "esp_err.h", "source_file": "", "file_type": "", "degree": 49, "member_count": 137}, {"id": "33", "label": "httpd_parse.c", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 21.8, "font": {"size": 12, "color": "#ffffff"}, "title": "httpd_parse.c", "community": 33, "community_name": "httpd_parse.c", "source_file": "", "file_type": "", "degree": 17, "member_count": 65}, {"id": "57", "label": "httpd_config", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 16.2, "font": {"size": 12, "color": "#ffffff"}, "title": "httpd_config", "community": 57, "community_name": "httpd_config", "source_file": "", "file_type": "", "degree": 2, "member_count": 34}, {"id": "201", "label": "httpd_ctrl_data", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 11.6, "font": {"size": 12, "color": "#ffffff"}, "title": "httpd_ctrl_data", "community": 201, "community_name": "httpd_ctrl_data", "source_file": "", "file_type": "", "degree": 3, "member_count": 9}, {"id": "72", "label": "httpd_data", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 13.5, "font": {"size": 12, "color": "#ffffff"}, "title": "httpd_data", "community": 72, "community_name": "httpd_data", "source_file": "", "file_type": "", "degree": 5, "member_Line truncated
const RAW_EDGES = [{"from": "246", "to": "68", "label": "14 cross-community edges", "title": "14 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "14", "label": "1 cross-community edges", "title": "1 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "18", "label": "7 cross-community edges", "title": "7 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "21", "label": "13 cross-community edges", "title": "13 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "221", "label": "10 cross-community edges", "title": "10 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "23", "label": "6 cross-community edges", "title": "6 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "46", "label": "12 cross-community edges", "title": "12 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "74", "label": "22 cross-community edges", "title": "22 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "40", "label": "17 cross-community edges", "title": "17 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "52", "label": "4 cross-community edges", "title": "4 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "89", "label": "4 cross-community edges", "title": "4 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "32", "label": "10 cross-community edges", "title": "10 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "5", "label": "2 cross-community edges", "title": "2 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "66", "label": "5 cross-community edges", "title": "5 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "86", "label": "1 cross-community edges", "title": "1 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "125", "label": "2 cross-community edges", "title": "2 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "139", "label": "62 cross-community edges", "title": "62 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "41", "label": "3 cross-community edges", "title": "3 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "8", "label": "8 cross-community edges", "title": "8 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "246", "to": "24", "label": "1 cross-community edges", "title": "1 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "32", "to": "5", "label": "1 cross-community edges", "title": "1 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "32", "to": "14", "label": "4 cross-community edges", "title": "4 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "32", "to": "221", "label": "16 cross-community edges", "title": "16 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "32", "to": "46", "label": "4 cross-community edges", "title": "4 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "32", "to": "66", "label": "9 cross-community edges", "title": "9 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "32", "Line truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "IdfDevice", "count": 35}, {"cid": 1, "color": "#F28E2B", "label": "htmx Library", "count": 104}, {"cid": 2, "color": "#E15759", "label": "PyboardCommand", "count": 26}, {"cid": 3, "color": "#76B7B2", "label": "Browser Tests &amp; Mockup Images", "count": 70}, {"cid": 4, "color": "#59A14F", "label": "Audio UI (JS)", "count": 59}, {"cid": 5, "color": "#EDC948", "label": "cJSON", "count": 102}, {"cid": 6, "color": "#B07AA1", "label": "controller", "count": 40}, {"cid": 7, "color": "#FF9DA7", "label": "led-tool Device CLI", "count": 69}, {"cid": 8, "color": "#9C755F", "label": "ab", "count": 101}, {"cid": 9, "color": "#BAB0AC", "label": "Compiler", "count": 42}, {"cid": 10, "color": "#4E79A7", "label": "Spec: Pi Animation Engine", "count": 47}, {"cid": 11, "color": "#F28E2B", "label": "seq_timeline.js", "count": 83}, {"cid": 12, "color": "#E15759", "label": "Presets UI (JS)", "count": 47}, {"cid": 13, "color": "#76B7B2", "label": "Zones UI (JS)", "count": 46}, {"cid": 14, "color": "#59A14F", "label": "freertos.c", "count": 108}, {"cid": 15, "color": "#EDC948", "label": "unique", "count": 75}, {"cid": 16, "color": "#B07AA1", "label": "Sequences UI (JS)", "count": 40}, {"cid": 17, "color": "#FF9DA7", "label": "httpd_handle_t", "count": 26}, {"cid": 18, "color": "#9C755F", "label": "bridge_dmx.c", "count": 73}, {"cid": 19, "color": "#BAB0AC", "label": "led_strip Component Docs", "count": 39}, {"cid": 20, "color": "#4E79A7", "label": "Art-Net Output", "count": 37}, {"cid": 21, "color": "#F28E2B", "label": "web.cpp", "count": 51}, {"cid": 22, "color": "#E15759", "label": "desktop_main.c", "count": 5}, {"cid": 23, "color": "#76B7B2", "label": "cJSON", "count": 126}, {"cid": 24, "color": "#59A14F", "label": "time", "count": 41}, {"cid": 25, "color": "#EDC948", "label": "Microdot", "count": 34}, {"cid": 26, "color": "#B07AA1", "label": "bridge.c", "count": 37}, {"cid": 27, "color": "#FF9DA7", "label": "NoCaseDict", "count": 19}, {"cid": 28, "color": "#9C755F", "label": "Devices UI (JS)", "count": 41}, {"cid": 29, "color": "#BAB0AC", "label": "binary_envelope.py", "count": 30}, {"cid": 30, "color": "#4E79A7", "label": "Colour Picker Mockups", "count": 29}, {"cid": 31, "color": "#F28E2B", "label": "auth.c", "count": 65}, {"cid": 32, "color": "#E15759", "label": "nvs_sim.cpp", "count": 33}, {"cid": 33, "color": "#76B7B2", "label": "httpd_parse.c", "count": 65}, {"cid": 34, "color": "#59A14F", "label": "test_sequences.py", "count": 34}, {"cid": 35, "color": "#EDC948", "label": "seqplay.c", "count": 72}, {"cid": 36, "color": "#B07AA1", "label": "API Docs: Outputs &amp; Audio", "count": 23}, {"cid": 37, "color": "#FF9DA7", "label": "bridge_serial.c", "count": 28}, {"cid": 38, "color": "#9C755F", "label": "driver_ota.py", "count": 24}, {"cid": 39, "color": "#BAB0AC", "label": "Beat Detection DSP (C)", "count": 21}, {"cid": 40, "color": "#4E79A7", "label": "xSemaphoreGive", "count": 91}, {"cid": 41, "color": "#F28E2B", "label": "WS2812", "count": 43}, {"cid": 42, "color": "#E15759", "label": "run_all", "count": 21}, {"cid": 43, "color": "#76B7B2", "label": "cJSON_Delete", "count": 42}, {"cid": 44, "color": "#59A14F", "label": "events", "count": 22}, {"cid": 45, "color": "#EDC948", "label": "http_parser.h", "count": 45}, {"cid": 46, "color": "#B07AA1", "label": "settings_load_net", "count": 24}, {"cid": 47, "color": "#FF9DA7", "label": "argparse", "count": 33}, {"cid": 48, "color": "#9C755F", "label": "Colour Picker JS", "count": 23}, {"cid": 49, "color": "#BAB0AC", "label": "Chromium Colour Picker JS", "count": 23}, {"cid": 50, "color": "#4E79A7", "label": "steps", "count": 20}, {"cid": 51, "color": "#F28E2B", "label": "API Tests: Devices", "count": 27}, {"cid": 52, "color": "#E15759", "label": "vTaskDelay", "count": 64}, {"cid": 53, "color": "#76B7B2", "label": "mpremote Transport", "count": 22}, {"cid": 54, "color": "#59A14F", "label": "Request", "count": 17}, {"cid": 55, "color": "#EDC948", "label": "httpd_ws_frame", "count": 8}, {"cid": 56, "color": "#B07AA1", "label": "test_outputs.py", "count": 10}, {"cid": 57, "color": "#FF9DA7", "label": "httpd_config", "count": 34}, {"cid": 58, "color": "#9C755F", "label": "gallery.js", "count": 32}, {"cid": 59, "color": "#BAB0AC", "label": "mic_alsa.c", "count": 30}, {"cid": 60, "color": "#4E79A7", "label": "test_sim_net.py", "count": 29}, {"cid": 61, "color": "#F28E2B", "label": "API Test Fixtures &amp; Audio", "count": 15}, {"cid": 62, "color": "#E15759", "label": "run_test", "count": 22}, {"cid": 63, "color": "#76B7B2", "label": "Help: Zones &amp; Palette", "count": 20}, {"cid": 64, "color": "#59A14F", "label": "ddp_test.py", "count": 41}, {"cid": 65, "color": "#EDC948", "label": "ESPNow", "count": 12}, {"cid": 66, "color": "#B07AA1", "label": "presets.cpp", "count": 24}, {"cid": 67, "color": "#FF9DA7", "label": "auth.js", "count": 42}, {"cid": 68, "color": "#9C755F", "label": "cJSON_CreateObject", "count": 99}, {"cid": 69,Line truncated
const RAW_NODES = [{"id": "241", "label": "KeyName", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.7, "font": {"size": 12, "color": "#ffffff"}, "title": "KeyName", "community": 241, "community_name": "KeyName", "source_file": "", "file_type": "", "degree": 1, "member_count": 4}, {"id": "32", "label": "nvs_sim.cpp", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 15.7, "font": {"size": 12, "color": "#ffffff"}, "title": "nvs_sim.cpp", "community": 32, "community_name": "nvs_sim.cpp", "source_file": "", "file_type": "", "degree": 8, "member_count": 31}, {"id": "68", "label": "cJSON_AddStringToObject", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 20.6, "font": {"size": 12, "color": "#ffffff"}, "title": "cJSON_AddStringToObject", "community": 68, "community_name": "cJSON_AddStringToObject", "source_file": "", "file_type": "", "degree": 28, "member_count": 58}, {"id": "74", "label": "espnow_link.cpp", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 17.9, "font": {"size": 12, "color": "#ffffff"}, "title": "espnow_link.cpp", "community": 74, "community_name": "espnow_link.cpp", "source_file": "", "file_type": "", "degree": 11, "member_count": 43}, {"id": "41", "label": "WS2812", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.6, "font": {"size": 12, "color": "#ffffff"}, "title": "WS2812", "community": 41, "community_name": "WS2812", "source_file": "", "file_type": "", "degree": 4, "member_count": 25}, {"id": "217", "label": "api_call_t", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.1, "font": {"size": 12, "color": "#ffffff"}, "title": "api_call_t", "community": 217, "community_name": "api_call_t", "source_file": "", "file_type": "", "degree": 1, "member_count": 6}, {"id": "23", "label": "cJSON", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 39.6, "font": {"size": 12, "color": "#ffffff"}, "title": "cJSON", "community": 23, "community_name": "cJSON", "source_file": "", "file_type": "", "degree": 26, "member_count": 162}, {"id": "14", "label": "freertos.c", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 27.4, "font": {"size": 12, "color": "#ffffff"}, "title": "freertos.c", "community": 14, "community_name": "freertos.c", "source_file": "", "file_type": "", "degree": 29, "member_count": 95}, {"id": "45", "label": "http_parser.h", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 18.2, "font": {"size": 12, "color": "#ffffff"}, "title": "http_parser.h", "community": 45, "community_name": "http_parser.h", "source_file": "", "file_type": "", "degree": 3, "member_count": 45}, {"id": "139", "label": "esp_err.h", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 40.0, "font": {"size": 12, "color": "#ffffff"}, "title": "esp_err.h", "community": 139, "community_name": "esp_err.h", "source_file": "", "file_type": "", "degree": 51, "member_count": 164}, {"id": "33", "label": "httpd_parse.c", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 22.6, "font": {"size": 12, "color": "#ffffff"}, "title": "httpd_parse.c", "community": 33, "community_name": "httpd_parse.c", "source_file": "", "file_type": "", "degree": 16, "member_count": 69}, {"id": "57", "label": "httpd_config", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 16.2, "font": {"size": 12, "color": "#ffffff"}, "title": "httpd_config", "community": 57, "community_name": "httpd_config", "source_file": "", "file_type": "", "degree": 2, "member_count": 34}, {"id": "201", "label": "httpd_ctrl_data", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 11.6, "font": {"size": 12, "color": "#ffffff"}, "title": "httpd_ctrl_data", "community": 201, "community_name": "httpd_ctrl_data", "source_file": "", "file_type": "", "degree": 3, "member_count": 9}, {"id": "72", "label": "httpd_data", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 13.3, "font": {"size": 12, "color": "#ffffff"}, "title": "httpd_data", "community": 72, "community_name": "httpd_data", "source_file": "", "file_type": "", "degree": 5, "meLine truncated
const RAW_EDGES = [{"from": "241", "to": "139", "label": "2 cross-community edges", "title": "2 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "32", "to": "23", "label": "1 cross-community edges", "title": "1 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "32", "to": "221", "label": "16 cross-community edges", "title": "16 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "32", "to": "66", "label": "10 cross-community edges", "title": "10 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "32", "to": "246", "label": "7 cross-community edges", "title": "7 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "32", "to": "86", "label": "5 cross-community edges", "title": "5 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "32", "to": "97", "label": "5 cross-community edges", "title": "5 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "32", "to": "139", "label": "4 cross-community edges", "title": "4 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "32", "to": "41", "label": "1 cross-community edges", "title": "1 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "68", "to": "139", "label": "22 cross-community edges", "title": "22 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "68", "to": "23", "label": "87 cross-community edges", "title": "87 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "68", "to": "100", "label": "1 cross-community edges", "title": "1 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "68", "to": "133", "label": "3 cross-community edges", "title": "3 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "68", "to": "14", "label": "7 cross-community edges", "title": "7 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "68", "to": "17", "label": "2 cross-community edges", "title": "2 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "68", "to": "179", "label": "4 cross-community edges", "title": "4 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "68", "to": "18", "label": "3 cross-community edges", "title": "3 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "68", "to": "21", "label": "32 cross-community edges", "title": "32 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "68", "to": "221", "label": "1 cross-community edges", "title": "1 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "68", "to": "246", "label": "2 cross-community edges", "title": "2 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "68", "to": "26", "label": "3 cross-community edges", "title": "3 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "68", "to": "31", "label": "46 cross-community edges", "title": "46 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "68", "to": "35", "label": "26 cross-community edges", "title": "26 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "68", "to": "40", "label": "8 cross-community edges", "title": "8 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "68", "to": "43", "label": "24 cross-community edges", "title": "24 cross-community edges [AGGREGATED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "AGGREGATED"}, {"from": "68", "to": "46", "Line truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "IdfDevice", "count": 35}, {"cid": 1, "color": "#F28E2B", "label": "htmx Library", "count": 104}, {"cid": 2, "color": "#E15759", "label": "PyboardCommand", "count": 26}, {"cid": 3, "color": "#76B7B2", "label": "Browser Tests &amp; Mockup Images", "count": 70}, {"cid": 4, "color": "#59A14F", "label": "Audio UI (JS)", "count": 59}, {"cid": 5, "color": "#EDC948", "label": "cJSON", "count": 77}, {"cid": 6, "color": "#B07AA1", "label": "controller", "count": 40}, {"cid": 7, "color": "#FF9DA7", "label": "led-tool Device CLI", "count": 67}, {"cid": 8, "color": "#9C755F", "label": "ab", "count": 102}, {"cid": 9, "color": "#BAB0AC", "label": "Compiler", "count": 42}, {"cid": 10, "color": "#4E79A7", "label": "Spec: Pi Animation Engine", "count": 47}, {"cid": 11, "color": "#F28E2B", "label": "seq_timeline.js", "count": 83}, {"cid": 12, "color": "#E15759", "label": "Presets UI (JS)", "count": 47}, {"cid": 13, "color": "#76B7B2", "label": "Zones UI (JS)", "count": 46}, {"cid": 14, "color": "#59A14F", "label": "freertos.c", "count": 95}, {"cid": 15, "color": "#EDC948", "label": "unique", "count": 75}, {"cid": 16, "color": "#B07AA1", "label": "Sequences UI (JS)", "count": 40}, {"cid": 17, "color": "#FF9DA7", "label": "httpd_handle_t", "count": 29}, {"cid": 18, "color": "#9C755F", "label": "bridge_dmx.c", "count": 29}, {"cid": 19, "color": "#BAB0AC", "label": "led_strip Component Docs", "count": 39}, {"cid": 20, "color": "#4E79A7", "label": "Art-Net Output", "count": 40}, {"cid": 21, "color": "#F28E2B", "label": "web.cpp", "count": 49}, {"cid": 22, "color": "#E15759", "label": "desktop_main.c", "count": 5}, {"cid": 23, "color": "#76B7B2", "label": "cJSON", "count": 162}, {"cid": 24, "color": "#59A14F", "label": "time", "count": 24}, {"cid": 25, "color": "#EDC948", "label": "Microdot", "count": 47}, {"cid": 26, "color": "#B07AA1", "label": "bridge_main.c", "count": 64}, {"cid": 27, "color": "#FF9DA7", "label": "NoCaseDict", "count": 10}, {"cid": 28, "color": "#9C755F", "label": "Devices UI (JS)", "count": 41}, {"cid": 29, "color": "#BAB0AC", "label": "binary_envelope.py", "count": 30}, {"cid": 30, "color": "#4E79A7", "label": "Colour Picker Mockups", "count": 29}, {"cid": 31, "color": "#F28E2B", "label": "auth.c", "count": 69}, {"cid": 32, "color": "#E15759", "label": "nvs_sim.cpp", "count": 31}, {"cid": 33, "color": "#76B7B2", "label": "httpd_parse.c", "count": 69}, {"cid": 34, "color": "#59A14F", "label": "test_sequences.py", "count": 34}, {"cid": 35, "color": "#EDC948", "label": "seqplay.c", "count": 66}, {"cid": 36, "color": "#B07AA1", "label": "API Docs: Outputs &amp; Audio", "count": 23}, {"cid": 37, "color": "#FF9DA7", "label": "bridge_serial.c", "count": 27}, {"cid": 38, "color": "#9C755F", "label": "driver_ota.py", "count": 24}, {"cid": 39, "color": "#BAB0AC", "label": "Beat Detection DSP (C)", "count": 21}, {"cid": 40, "color": "#4E79A7", "label": "xSemaphoreGive", "count": 110}, {"cid": 41, "color": "#F28E2B", "label": "WS2812", "count": 25}, {"cid": 42, "color": "#E15759", "label": "run_all", "count": 21}, {"cid": 43, "color": "#76B7B2", "label": "cJSON_Delete", "count": 42}, {"cid": 44, "color": "#59A14F", "label": "events", "count": 22}, {"cid": 45, "color": "#EDC948", "label": "http_parser.h", "count": 45}, {"cid": 46, "color": "#B07AA1", "label": "EMSCRIPTEN_KEEPALIVE", "count": 7}, {"cid": 47, "color": "#FF9DA7", "label": "argparse", "count": 42}, {"cid": 48, "color": "#9C755F", "label": "Colour Picker JS", "count": 23}, {"cid": 49, "color": "#BAB0AC", "label": "Chromium Colour Picker JS", "count": 23}, {"cid": 50, "color": "#4E79A7", "label": "steps", "count": 20}, {"cid": 51, "color": "#F28E2B", "label": "API Tests: Devices", "count": 27}, {"cid": 52, "color": "#E15759", "label": "beat.c", "count": 54}, {"cid": 53, "color": "#76B7B2", "label": "mpremote Transport", "count": 22}, {"cid": 54, "color": "#59A14F", "label": "sim_stubs.c", "count": 44}, {"cid": 55, "color": "#EDC948", "label": "httpd_ws_frame", "count": 8}, {"cid": 56, "color": "#B07AA1", "label": "test_outputs.py", "count": 10}, {"cid": 57, "color": "#FF9DA7", "label": "httpd_config", "count": 34}, {"cid": 58, "color": "#9C755F", "label": "gallery.js", "count": 32}, {"cid": 59, "color": "#BAB0AC", "label": "mic_alsa.c", "count": 31}, {"cid": 60, "color": "#4E79A7", "label": "test_sim_net.py", "count": 37}, {"cid": 61, "color": "#F28E2B", "label": "API Test Fixtures &amp; Audio", "count": 15}, {"cid": 62, "color": "#E15759", "label": "run_test", "count": 17}, {"cid": 63, "color": "#76B7B2", "label": "Help: Zones &amp; Palette", "count": 20}, {"cid": 64, "color": "#59A14F", "label": "ddp_test.py", "count": 41}, {"cid": 65, "color": "#EDC948", "label": "ESPNow", "count": 14}, {"cid": 66, "color": "#B07AA1", "label": "presets.cpp", "count": 30}, {"cid": 67, "color": "#FF9DA7", "label": "auth.js", "count": 42}, {"cid": 68, "color": "#9C755F", "label": "cJSON_AddStringToObject", "count": 58}, Line truncated
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
function esc(s) {
+1 -1
View File
@@ -1 +1 @@
{"directed":false,"multigraph":false,"graph":{"hyperedges":[{"id":"audio_page_endpoints","label":"Audio page live endpoints","nodes":["web_audio_status","web_audio_beats","web_audio_audio_wav","web_audio_time","web_audio_tap_ep"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"web/audio.html"},{"id":"beat_latency_measurement","label":"Beat latency measurement methods","nodes":["docs_api_bench_endpoints","docs_bench_test_usb_latency","docs_bench_test_logic_analyzer","docs_bench_test_beat_lead"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/BENCH_TEST.md"},{"id":"brightness_combination","label":"Combined brightness factors","nodes":["docs_api_combined_brightness","docs_api_settings","docs_api_groups","docs_api_devices","docs_api_zones"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/API.md"},{"id":"color_picker_feature_set","label":"Color picker feature set","nodes":["docs_mockups_images_color_picker_demo_hsb_color_model","docs_mockups_images_color_picker_demo_hex_rgb_input","docs_mockups_images_color_picker_demo_keyboard_accessibility","docs_mockups_images_color_picker_demo_cross_platform_consistency"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/color-picker-demo.png"},{"id":"docs_help_edit_mode_management","label":"Edit-mode-only management features","nodes":["docs_help_edit_mode","docs_help_zones_modal","docs_help_send_presets","docs_help_patterns_dialog","docs_help_colour_palette","docs_help_presets_list"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/help.pdf"},{"id":"docs_help_preset_editor_actions","label":"Preset editor actions (Try, Default, Save & Send, Remove from zone)","nodes":["docs_help_try_action","docs_help_default_preset","docs_help_save_and_send","docs_help_remove_from_zone"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/help.pdf"},{"id":"docs_images_help_mobile_menu_header_actions","label":"Header actions aggregated in mobile Menu","nodes":["docs_images_help_mobile_menu_run_mode","docs_images_help_mobile_menu_profiles","docs_images_help_mobile_menu_tabs","docs_images_help_mobile_menu_presets","docs_images_help_mobile_menu_help"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/images/help/mobile-menu.svg"},{"id":"docs_mockups_device_modal_flow","label":"Device/Group Modal Flow","nodes":["docs_mockups_device_management_showadddevicemodal","docs_mockups_device_management_showaddgroupmodal","docs_mockups_device_management_closemodal","docs_mockups_device_management_savedevice"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/device-management.html"},{"id":"docs_mockups_images_index_ui_mockup_set","label":"LED Driver UI Mockup Set","nodes":["docs_mockups_images_index_dashboard_mockup","docs_mockups_images_index_pattern_selector_mockup","docs_mockups_images_index_device_management_mockup","docs_mockups_images_index_settings_mockup","docs_mockups_images_index_presets_mockup"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/index.png"},{"id":"docs_mockups_images_pattern_selector_led_patterns","label":"Selectable LED Patterns","nodes":["docs_mockups_images_pattern_selector_on","docs_mockups_images_pattern_selector_off","docs_mockups_images_pattern_selector_blink","docs_mockups_images_pattern_selector_chase","docs_mockups_images_pattern_selector_circle","docs_mockups_images_pattern_selector_pulse","docs_mockups_images_pattern_selector_rainbow","docs_mockups_images_pattern_selector_transition"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/pattern-selector.png"},{"id":"docs_mockups_preset_schema","label":"Preset/pattern configuration schema (pattern, colors, delay, step increment, N1-N8)","nodes":["docs_mockups_presets_led_patterns","docs_mockups_presets_delay","docs_mockups_presets_step_increment","docs_mockups_presets_n_parameters","docs_mockups_presets_step_offset"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/presets.html"},{"id":"docs_mockups_settings_sections","label":"Device settings sections","nodes":["docs_mockups_settings_basic_settings","docs_mockups_settings_pattern_settings","docs_mockups_settings_advanced_settings","docs_mockups_settings_network_settings"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/settings.html"},{"id":"docs_mockups_ui_mockup_suite","label":"LED Driver UI Mockup Suite","nodes":["docs_mockups_index","docs_mockups_dashboard","docs_mockups_pattern_selector","docs_mockups_device_management","docs_mockups_readme_settings_mockup","docs_mockups_color_picker_readme_presets_mockup"],"relation":"foLine truncated
{"directed":false,"multigraph":false,"graph":{"hyperedges":[{"id":"audio_page_endpoints","label":"Audio page live endpoints","nodes":["web_audio_status","web_audio_beats","web_audio_audio_wav","web_audio_time","web_audio_tap_ep"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"web/audio.html"},{"id":"beat_latency_measurement","label":"Beat latency measurement methods","nodes":["docs_api_bench_endpoints","docs_bench_test_usb_latency","docs_bench_test_logic_analyzer","docs_bench_test_beat_lead"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/BENCH_TEST.md"},{"id":"brightness_combination","label":"Combined brightness factors","nodes":["docs_api_combined_brightness","docs_api_settings","docs_api_groups","docs_api_devices","docs_api_zones"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/API.md"},{"id":"color_picker_feature_set","label":"Color picker feature set","nodes":["docs_mockups_images_color_picker_demo_hsb_color_model","docs_mockups_images_color_picker_demo_hex_rgb_input","docs_mockups_images_color_picker_demo_keyboard_accessibility","docs_mockups_images_color_picker_demo_cross_platform_consistency"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/color-picker-demo.png"},{"id":"docs_help_edit_mode_management","label":"Edit-mode-only management features","nodes":["docs_help_edit_mode","docs_help_zones_modal","docs_help_send_presets","docs_help_patterns_dialog","docs_help_colour_palette","docs_help_presets_list"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/help.pdf"},{"id":"docs_help_preset_editor_actions","label":"Preset editor actions (Try, Default, Save & Send, Remove from zone)","nodes":["docs_help_try_action","docs_help_default_preset","docs_help_save_and_send","docs_help_remove_from_zone"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/help.pdf"},{"id":"docs_images_help_mobile_menu_header_actions","label":"Header actions aggregated in mobile Menu","nodes":["docs_images_help_mobile_menu_run_mode","docs_images_help_mobile_menu_profiles","docs_images_help_mobile_menu_tabs","docs_images_help_mobile_menu_presets","docs_images_help_mobile_menu_help"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/images/help/mobile-menu.svg"},{"id":"docs_mockups_device_modal_flow","label":"Device/Group Modal Flow","nodes":["docs_mockups_device_management_showadddevicemodal","docs_mockups_device_management_showaddgroupmodal","docs_mockups_device_management_closemodal","docs_mockups_device_management_savedevice"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/device-management.html"},{"id":"docs_mockups_images_index_ui_mockup_set","label":"LED Driver UI Mockup Set","nodes":["docs_mockups_images_index_dashboard_mockup","docs_mockups_images_index_pattern_selector_mockup","docs_mockups_images_index_device_management_mockup","docs_mockups_images_index_settings_mockup","docs_mockups_images_index_presets_mockup"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/index.png"},{"id":"docs_mockups_images_pattern_selector_led_patterns","label":"Selectable LED Patterns","nodes":["docs_mockups_images_pattern_selector_on","docs_mockups_images_pattern_selector_off","docs_mockups_images_pattern_selector_blink","docs_mockups_images_pattern_selector_chase","docs_mockups_images_pattern_selector_circle","docs_mockups_images_pattern_selector_pulse","docs_mockups_images_pattern_selector_rainbow","docs_mockups_images_pattern_selector_transition"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/pattern-selector.png"},{"id":"docs_mockups_preset_schema","label":"Preset/pattern configuration schema (pattern, colors, delay, step increment, N1-N8)","nodes":["docs_mockups_presets_led_patterns","docs_mockups_presets_delay","docs_mockups_presets_step_increment","docs_mockups_presets_n_parameters","docs_mockups_presets_step_offset"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/presets.html"},{"id":"docs_mockups_settings_sections","label":"Device settings sections","nodes":["docs_mockups_settings_basic_settings","docs_mockups_settings_pattern_settings","docs_mockups_settings_advanced_settings","docs_mockups_settings_network_settings"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/settings.html"},{"id":"docs_mockups_ui_mockup_suite","label":"LED Driver UI Mockup Suite","nodes":["docs_mockups_index","docs_mockups_dashboard","docs_mockups_pattern_selector","docs_mockups_device_management","docs_mockups_readme_settings_mockup","docs_mockups_color_picker_readme_presets_mockup"],"relation":"foLine truncated
+216 -12
View File
@@ -1686,15 +1686,15 @@
"semantic_hash": ""
},
"led-driver/main/settings.cpp": {
"mtime": 1795092068.6900742,
"seen": 1795093117.5806046,
"ast_hash": "67d7f0f4d8409b66f2a210b3e96103d7",
"mtime": 1795175145.2496428,
"seen": 1795480607.483891,
"ast_hash": "3eb321f3d1f317148b800c662076dd8c",
"semantic_hash": ""
},
"led-driver/main/settings.h": {
"mtime": 1794608628.8495471,
"seen": 1794609724.211952,
"ast_hash": "573688545235ca36182a38a788e559c4",
"mtime": 1795175145.277643,
"seen": 1795480607.4838922,
"ast_hash": "0571ea1c2decf4cfb492b91047e99605",
"semantic_hash": ""
},
"led-driver/main/web.cpp": {
@@ -1836,9 +1836,9 @@
"semantic_hash": ""
},
"bridge/main/bridge_main.c": {
"mtime": 1795094586.1721716,
"seen": 1795094788.71017,
"ast_hash": "d7430e033c69f2c9aba5ab1e749379ba",
"mtime": 1795175145.3116426,
"seen": 1795480607.4771962,
"ast_hash": "6bc390500153e1a30e87e876d75651be",
"semantic_hash": ""
},
"bridge/main/bridge_proto.h": {
@@ -2070,9 +2070,9 @@
"semantic_hash": ""
},
"desktop/port/include/sdkconfig.h": {
"mtime": 1794806401.1470919,
"seen": 1794806592.2803013,
"ast_hash": "f76009cc19b7c30590d76338828f69cf",
"mtime": 1795175383.5238438,
"seen": 1795480607.4784617,
"ast_hash": "a602e824728788d53b1e4f747e677eba",
"semantic_hash": ""
},
"desktop/port/src/desktop_crypto.c": {
@@ -3316,5 +3316,209 @@
"seen": 1795128066.951718,
"ast_hash": "1c4441561a623f13e70dae1dcfba7300",
"semantic_hash": ""
},
"scripts/c6-ota/cp/main/idf_component.yml": {
"mtime": 1795479818.1488187,
"seen": 1795480607.4870734,
"ast_hash": "a314306bfd5562206fb1cdaec84b3d4f",
"semantic_hash": ""
},
"scripts/c6-ota/cp/main/main.c": {
"mtime": 1795479818.1488917,
"seen": 1795480607.4870756,
"ast_hash": "1b4c555b8dd50a220bdbb7d075fe99a0",
"semantic_hash": ""
},
"scripts/c6-ota/host-v2/main/idf_component.yml": {
"mtime": 1795480247.679547,
"seen": 1795480607.4870768,
"ast_hash": "b3a9d53a289352a8d1c73c50fcf11def",
"semantic_hash": ""
},
"scripts/c6-ota/host-v2/main/main.c": {
"mtime": 1795480368.8754077,
"seen": 1795480607.487078,
"ast_hash": "936133fbd6d4eb89055866a1349c8fb7",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/components/ota_https/ota_https.c": {
"mtime": 1795479818.1517286,
"seen": 1795480607.4870791,
"ast_hash": "251dc53dbcbcb6bbb6d3c7c897777e5e",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/components/ota_https/ota_https.h": {
"mtime": 1795479818.1518476,
"seen": 1795480607.4870808,
"ast_hash": "aa1eea06369a963de32c19a865a1682a",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/components/ota_https/ota_https_wifi.c": {
"mtime": 1795479818.1517944,
"seen": 1795480607.487082,
"ast_hash": "e0384c99da8563cade6a116ef330a160",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/components/ota_https/test_server/create_https_server.py": {
"mtime": 1795479818.1516156,
"seen": 1795480607.4870832,
"ast_hash": "768c5d3fb2ff863d8e1f9b0273de0a95",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/components/ota_https/test_server/create_self_signed_certs.sh": {
"mtime": 1795479818.1515076,
"seen": 1795480607.4870844,
"ast_hash": "17854c79597a2673c9eef82a5f14d21e",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.c": {
"mtime": 1795479818.150828,
"seen": 1795480607.4870853,
"ast_hash": "895c76d00fc8221588fca2dc2906e4e4",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/components/ota_littlefs/ota_littlefs.h": {
"mtime": 1795479818.1505492,
"seen": 1795480607.4870863,
"ast_hash": "36a5da0d95ebdb49f178821ae9314e59",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.c": {
"mtime": 1795479818.1509752,
"seen": 1795480607.4870882,
"ast_hash": "3bdeb9ac413b0dadf817c4998db1ac10",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/components/ota_partition/ota_partition.h": {
"mtime": 1795479818.1511612,
"seen": 1795480607.4870892,
"ast_hash": "dc793b9617cc66a7abf73b6e4eeaa606",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/main/idf_component.yml": {
"mtime": 1795479818.1497757,
"seen": 1795480607.4870903,
"ast_hash": "47751627912fc0ab7a9319c41f1b90fc",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/main/legacy/main.c": {
"mtime": 1795479818.1499448,
"seen": 1795480607.4870915,
"ast_hash": "0a76d34d19e9fcaf36f6b4f489b274e3",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/main/main.c": {
"mtime": 1795479818.1498241,
"seen": 1795480607.4870925,
"ast_hash": "2c155c49d7732e7843cc8a632c485a3e",
"semantic_hash": ""
},
"scripts/p4-probe/main/idf_component.yml": {
"mtime": 1795479370.6395514,
"seen": 1795480607.4877913,
"ast_hash": "d04cc298d77ef150bea15fdb8f203545",
"semantic_hash": ""
},
"scripts/p4-probe/main/main.c": {
"mtime": 1795479518.899439,
"seen": 1795480607.487793,
"ast_hash": "008d0332e2981ec8ee703632aed0d97a",
"semantic_hash": ""
},
"scripts/c6-ota/cp/CMakeLists.txt": {
"mtime": 1795479818.14764,
"seen": 1795480607.4924722,
"ast_hash": "2fe82bf84c0cbb3fe356c4e51d0f9b47",
"semantic_hash": ""
},
"scripts/c6-ota/cp/README.md": {
"mtime": 1795479818.1482193,
"seen": 1795480607.4924738,
"ast_hash": "3fffde5295eaa8020d5b65a990b589fc",
"semantic_hash": ""
},
"scripts/c6-ota/cp/main/CMakeLists.txt": {
"mtime": 1795479818.1487494,
"seen": 1795480607.4924755,
"ast_hash": "a9d341a6619bb8b4dacd3165d5a0aed9",
"semantic_hash": ""
},
"scripts/c6-ota/host-v2/CMakeLists.txt": {
"mtime": 1795480247.6775467,
"seen": 1795480607.4924767,
"ast_hash": "15506a915f8d09caf386a8d7eccf4444",
"semantic_hash": ""
},
"scripts/c6-ota/host-v2/main/CMakeLists.txt": {
"mtime": 1795480368.8778098,
"seen": 1795480607.4924777,
"ast_hash": "7066b37d3303164e13886ae928cee322",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/CMakeLists.txt": {
"mtime": 1795479818.149398,
"seen": 1795480607.4924796,
"ast_hash": "d610c9fc8b1ab3953dbeb5a0640dc8a7",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/README.md": {
"mtime": 1795479818.1494565,
"seen": 1795480607.4924805,
"ast_hash": "1bb4a00f3b6273c9e4ae17e8699b814a",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/components/ota_https/CMakeLists.txt": {
"mtime": 1795479818.151666,
"seen": 1795480607.4924817,
"ast_hash": "57ae640759ca52fa392ba5d3ed1976c4",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/components/ota_https/test_server/README.md": {
"mtime": 1795479818.151563,
"seen": 1795480607.492483,
"ast_hash": "3b24662bdf1305a84b287c23a47c06f0",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/components/ota_littlefs/CMakeLists.txt": {
"mtime": 1795479818.1504872,
"seen": 1795480607.4924839,
"ast_hash": "7e8ef59a57e63bd2c6025779ce857d3c",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/components/ota_littlefs/slave_fw_bin/README.md": {
"mtime": 1795479818.1506908,
"seen": 1795480607.4924846,
"ast_hash": "a469045c4e2dd214ed406e70cee75172",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/components/ota_partition/CMakeLists.txt": {
"mtime": 1795479818.1510801,
"seen": 1795480607.4924855,
"ast_hash": "00828e675b0e996fac1d4676cd63f730",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/components/ota_partition/slave_fw_bin/README.md": {
"mtime": 1795479818.1512642,
"seen": 1795480607.4924867,
"ast_hash": "b0f83921725a3bc1832b75acc04d388a",
"semantic_hash": ""
},
"scripts/c6-ota/mcu_host/main/CMakeLists.txt": {
"mtime": 1795479818.1496189,
"seen": 1795480607.492488,
"ast_hash": "8cea2a7be09895c2abb3231d1cf84da2",
"semantic_hash": ""
},
"scripts/p4-probe/CMakeLists.txt": {
"mtime": 1795479370.634551,
"seen": 1795480607.4929113,
"ast_hash": "e9863df2d9f86989c13fe55ec22431cf",
"semantic_hash": ""
},
"scripts/p4-probe/main/CMakeLists.txt": {
"mtime": 1795479370.637551,
"seen": 1795480607.4929132,
"ast_hash": "2614b4046f8e5df8d9d7c3ea762230b0",
"semantic_hash": ""
}
}
+6
View File
@@ -0,0 +1,6 @@
build/
sdkconfig
sdkconfig.old
managed_components/
dependencies.lock
*.bin
+6
View File
@@ -0,0 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(eh_cp_ota_coprocessor_ota)
+90
View File
@@ -0,0 +1,90 @@
# ota / coprocessor_ota — Coprocessor
Pushes a new CP firmware image from the host through the OTA
begin / write / end / activate RPC chain. The host can source the image
from one of three places — HTTPS, an on-host LittleFS partition, or a
dedicated raw flash partition — selected at build time.
## Supported Platforms and Transports
### Supported Coprocessors
| Coprocessor | ESP32 | ESP32-C Series | ESP32-S2/S3 | ESP32-S31 |
| :----------: | :---: | :------------: | :---------: | :-------: |
| Support | Yes | Yes | Yes | Yes ¹ |
¹ ESP32-S31: preview target, 2.4 GHz only, no SDIO. See [ESP32-S31 test board](https://github.com/espressif/esp-hosted/blob/master/docs/getting-started-mcu.md#esp32-s31-test-board-on-the-esp32-p4-function-ev-board).
### Supported Host Devices
| Host Device | ESP32-P4 | ESP32-H2 | Other MCUs | Linux |
| :---------: | :------: | :------: | :--------: | :---: |
| Support | Yes | Yes | [Yes](https://github.com/espressif/esp-hosted/blob/master/docs/getting-started-mcu.md) | [Yes](https://github.com/espressif/esp-hosted/blob/master/docs/getting-started-linux.md) |
### Supported Connection buses
| Connection bus | SDIO | SPI Full-Duplex | SPI Half-Duplex | UART |
| :------------- | :--: | :-------------: | :-------------: | :--: |
| Linux host | Yes | Yes | No | No |
| MCU host | Yes | Yes | Yes | Yes |
## Scenario
The host streams new co-processor firmware over the control path using the four-call OTA RPC chain — `begin` → `write` (looped) → `end` → `activate`. (`activate` is a distinct RPC, needed on CP firmware v2.6.0+.) API names below are the example's compat surface (`esp_hosted_slave_ota_*`); the native equivalents are `eh_host_cp_ota_*`.
```mermaid
sequenceDiagram
participant App as Host app
participant CP as Co-processor
participant SRC as Firmware source (HTTPS / LittleFS / partition)
App->>CP: esp_hosted_slave_ota_begin() (RPC)
loop firmware chunks
App->>SRC: fetch chunk
App->>CP: esp_hosted_slave_ota_write(chunk) (RPC)
end
App->>CP: esp_hosted_slave_ota_end() (RPC)
App->>CP: esp_hosted_slave_ota_activate() (RPC)
CP->>CP: set boot partition
CP-->>App: result
Note over CP: reboot into new firmware
```
OTA runs on the co-processor's **System** feature (OTA / heartbeat / FW version), pre-enabled in `cp/sdkconfig.defaults` — you only select the transport:
```bash
cd examples/ota/coprocessor_ota/cp
idf.py set-target esp32c6
idf.py menuconfig
```
```text
Component config
└── ESP-Hosted
└── Configure coprocessor
└── CP transport
├── Communication bus (co-processor <== bus ==> host)
│ ├── ( ) SPI Full Duplex
│ ├── (X) SDIO <── default
│ ├── ( ) SPI Half Duplex ← MCU host only
│ └── ( ) UART ← MCU host only
└── SDIO Configuration ← clock, GPIOs, checksum (defaults OK)
```
Each bus has its own settings submenu (pins, clock, checksum) — defaults are fine for bring-up.
CP dependency config is **pre-set in `cp/sdkconfig.defaults`** (do not remove):
```text
CONFIG_ESP_HOSTED_CP_FEAT_WIFI=y # Wi-Fi — HTTPS OTA download path
CONFIG_BT_ENABLED=n
```
The System feature (OTA, heartbeat, FW version) is always enabled on the co-processor, so it needs no config.
Then flash and monitor:
```bash
idf.py -p <cp_usb_serial_port> flash monitor
```
<!-- generated from ../README.md — edit that file, not this one -->
+4
View File
@@ -0,0 +1,4 @@
idf_component_register(SRCS "main.c"
INCLUDE_DIRS "."
REQUIRES esp_hosted
PRIV_REQUIRES nvs_flash esp_wifi)
+5
View File
@@ -0,0 +1,5 @@
dependencies:
espressif/esp_hosted:
version: '*'
idf:
version: '>=5.5'
+29
View File
@@ -0,0 +1,29 @@
/*
* SPDX-FileCopyrightText: 2021-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "esp_log.h"
#include "esp_event.h"
#include "nvs_flash.h"
#include "esp_check.h"
static const char *TAG = "wifi_mcu_example";
void app_main(void)
{
ESP_LOGI(TAG, "ESP-Hosted MCU WiFi Example Starting...");
/* Initialize NVS */
esp_err_t ret = nvs_flash_init();
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
ESP_ERROR_CHECK(nvs_flash_erase());
ret = nvs_flash_init();
}
ESP_ERROR_CHECK(ret);
/* create default event loop */
ESP_ERROR_CHECK(esp_event_loop_create_default());
}
@@ -0,0 +1,7 @@
# ESP-Hosted shared partition table — 2 MB flash, dual OTA (960 KB per slot)
# Name, Type, SubType, Offset, Size
nvs, data, nvs, 0x9000, 0x4000
otadata, data, ota, 0xd000, 0x2000
phy_init, data, phy, 0xf000, 0x1000
ota_0, app, ota_0, 0x10000, 0xF0000
ota_1, app, ota_1, 0x100000, 0xF0000
1 # ESP-Hosted shared partition table — 2 MB flash, dual OTA (960 KB per slot)
2 # Name, Type, SubType, Offset, Size
3 nvs, data, nvs, 0x9000, 0x4000
4 otadata, data, ota, 0xd000, 0x2000
5 phy_init, data, phy, 0xf000, 0x1000
6 ota_0, app, ota_0, 0x10000, 0xF0000
7 ota_1, app, ota_1, 0x100000, 0xF0000
@@ -0,0 +1,7 @@
# ESP-Hosted shared partition table — 4 MB flash, dual OTA (1.75 MB per slot)
# Name, Type, SubType, Offset, Size
nvs, data, nvs, 0x9000, 0x4000
otadata, data, ota, 0xd000, 0x2000
phy_init, data, phy, 0xf000, 0x1000
ota_0, app, ota_0, 0x10000, 0x1C0000
ota_1, app, ota_1, 0x1D0000, 0x1C0000
1 # ESP-Hosted shared partition table — 4 MB flash, dual OTA (1.75 MB per slot)
2 # Name, Type, SubType, Offset, Size
3 nvs, data, nvs, 0x9000, 0x4000
4 otadata, data, ota, 0xd000, 0x2000
5 phy_init, data, phy, 0xf000, 0x1000
6 ota_0, app, ota_0, 0x10000, 0x1C0000
7 ota_1, app, ota_1, 0x1D0000, 0x1C0000
+25
View File
@@ -0,0 +1,25 @@
# ── Role: COPROCESSOR ────────────────────────────────────────────────
# ESP-Hosted coprocessor firmware (works with both MCU and Linux hosts
# via the unified MCU RPC v1 wire).
CONFIG_ESP_HOSTED=y
CONFIG_ESP_HOSTED_CP=y
CONFIG_ESP_HOSTED_CP_FOR_MCU=y
CONFIG_ESP_HOSTED_CP_RPC_V2=y
#Disable enterprise support by default
CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT=n
# BT Configuration
CONFIG_BT_ENABLED=n
#CONFIG_BT_CONTROLLER_ONLY=y
# OTA
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_eh_cp_ota_4m.csv"
# OS
CONFIG_FREERTOS_HZ=1000
CONFIG_ESP_WIFI_NVS_ENABLED=y
CONFIG_ESP_HOSTED_CP_FEAT_WIFI=y
@@ -0,0 +1,50 @@
CONFIG_ESP32_DEFAULT_CPU_FREQ_240=y
# BT Configuration
CONFIG_BT_ENABLED=n
CONFIG_BT_CONTROLLER_ONLY=y
CONFIG_BT_BLUEDROID_ENABLED=
CONFIG_BTDM_CONTROLLER_MODE_BTDM=y
CONFIG_BTDM_CONTROLLER_HCI_MODE_VHCI=y
CONFIG_BTDM_CTRL_AUTO_LATENCY=y
CONFIG_BTDM_CONTROLLER_MODEM_SLEEP=y
CONFIG_BTDM_CTRL_MODEM_SLEEP=y
# BT over UART
#CONFIG_BTDM_CONTROLLER_HCI_MODE_UART_H4=y
#CONFIG_BTDM_CTRL_HCI_MODE_UART_H4=y
#CONFIG_BT_HCI_UART_NO=1
#CONFIG_BT_HCI_UART_BAUDRATE=921600
#CO-EX config
CONFIG_FREERTOS_UNICORE=n
CONFIG_ESP32_WIFI_TASK_PINNED_TO_CORE_1=y
CONFIG_BTDM_CONTROLLER_PINNED_TO_CORE=0
CONFIG_BTDM_CTRL_PINNED_TO_CORE=0
CONFIG_BTDM_CTRL_PINNED_TO_CORE_0=y
CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=16
CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=32
CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER=y
CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=64
# OTA
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
# partitions
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_eh_cp_ota_4m.csv"
# iram optimization
CONFIG_ESP_WIFI_RX_IRAM_OPT=y
CONFIG_ESP_WIFI_IRAM_OPT=y
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH=y
CONFIG_ESP_SYSTEM_ESP32_SRAM1_REGION_AS_IRAM=y
CONFIG_COMPILER_OPTIMIZATION_PERF=y
#CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y
# OS
CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y
CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_PERF=n
@@ -0,0 +1,87 @@
# 1. CPU
#--------
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_120=y
# 2. BT Configuration
#---------------------
CONFIG_BT_ENABLED=n
CONFIG_BT_CONTROLLER_ONLY=y
CONFIG_BT_LE_SLEEP_ENABLE=y
# 2.1 BLE over SPI/SDIO
#-----------------------
CONFIG_BT_LE_HCI_INTERFACE_USE_RAM=y
# 2.2 BLE over UART
#-------------------
#UART pins, Enable below config, delete sdkconfig and rebuild
#CONFIG_BT_LE_HCI_INTERFACE_USE_UART=y
#CONFIG_BT_LE_HCI_UART_FLOWCTRL=n
#CONFIG_BT_LE_HCI_UART_TX_PIN=5
#CONFIG_BT_LE_HCI_UART_RX_PIN=18
# 3. Partition Table
#--------------------
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_eh_cp_ota_2m.csv"
# 4. Mempool
#------------
CONFIG_ESP_CACHE_MALLOC=y
## 5 LWIP split
##---------------
#
#CONFIG_ESP_HOSTED_CP_FEAT_NW_SPLIT=n
# 6. Wifi config
#----------------
CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=8
CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM=16
CONFIG_ESP_WIFI_DYNAMIC_TX_BUFFER_NUM=16
CONFIG_ESP_WIFI_AMPDU_TX_ENABLED=y
CONFIG_ESP_WIFI_TX_BA_WIN=8
#CONFIG_ESP_WIFI_TX_BA_WIN=16
CONFIG_ESP_WIFI_AMPDU_RX_ENABLED=y
CONFIG_ESP_WIFI_RX_BA_WIN=8
#CONFIG_ESP_WIFI_RX_BA_WIN=14
CONFIG_ESP_WIFI_RX_IRAM_OPT=y
CONFIG_ESP_WIFI_IRAM_OPT=y
# 7. Optimizations
#-------------------
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
#CONFIG_COMPILER_OPTIMIZATION_PERF=y
# 8. Stats
#-----------
#CONFIG_ESP_PKT_STATS=y
# 9. Mem optimizations
#---------------------
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
CONFIG_ESP32_DEFAULT_CPU_FREQ_120=y
CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ=120
CONFIG_FREERTOS_UNICORE=y
#10. C2 specific opts
#---------------------
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=n
CONFIG_ESPTOOLPY_FLASHSIZE_2MB=y
CONFIG_ESP_DEFAULT_TASK_STACK_SIZE=2048
#11. C2 26 MHz XTAL chips
# C2 generally in MP has 26MHz.
# If your C2 has 40MHz, just comment below lines
#---------------------------------
CONFIG_SOC_XTAL_SUPPORT_26M=y
CONFIG_XTAL_FREQ_26=y
@@ -0,0 +1,104 @@
# 1. CPU
#--------
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y
# 2. BT Configuration
#---------------------
CONFIG_BT_ENABLED=n
CONFIG_BT_CONTROLLER_ONLY=y
CONFIG_BT_BLUEDROID_ENABLED=
CONFIG_BT_LE_SLEEP_ENABLE=y
# 3.1 BLE over SPI/SDIO
#-----------------------
CONFIG_BT_LE_HCI_INTERFACE_USE_RAM=y
# 3.2 BLE over UART
#-------------------
# Enable below config, delete sdkconfig, build/ and rebuild
# CONFIG_BT_LE_HCI_INTERFACE_USE_UART=y
# CONFIG_BT_LE_HCI_UART_TX_PIN=5
# CONFIG_BT_LE_HCI_UART_RX_PIN=18
# CONFIG_BT_LE_HCI_UART_FLOWCTRL=n
# #CONFIG_BT_LE_HCI_UART_RTS_PIN=19
# #CONFIG_BT_LE_HCI_UART_CTS_PIN=8
# 4. Partition Table
#--------------------
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_eh_cp_ota_4m.csv"
# 5. Mempool
#------------
CONFIG_ESP_CACHE_MALLOC=y
# # 6.1 LWIP split
# #---------------
# CONFIG_ESP_HOSTED_CP_FEAT_NW_SPLIT=y
# CONFIG_LWIP_TCP_LOCAL_PORT_RANGE_START=61440
# CONFIG_LWIP_TCP_LOCAL_PORT_RANGE_END=65535
# CONFIG_LWIP_UDP_LOCAL_PORT_RANGE_START=61440
# CONFIG_LWIP_UDP_LOCAL_PORT_RANGE_END=65535
# # 6.2 LWIP split examples
# #-------------------------
# 7. Transport config
#---------------------
# ESP_HOSTED_TRANSPORT_CP_SDIO_NSEND_PSAMPLE=y
# ESP_HOSTED_TRANSPORT_CP_SDIO_DEFAULT_SPEED=y
# ESP_HOSTED_TRANSPORT_CP_SDIO_STREAMING_MODE=n
# For SPI Full duplex C6 on ESP32-P4-Function-EV-Board, please uncomment below
#CONFIG_C6_SPI_WITH_P4=y
# 8. Wifi config
#----------------
CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=10
CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM=32
CONFIG_ESP_WIFI_DYNAMIC_TX_BUFFER_NUM=32
CONFIG_ESP_WIFI_AMPDU_TX_ENABLED=y
CONFIG_ESP_WIFI_TX_BA_WIN=16
CONFIG_ESP_WIFI_AMPDU_RX_ENABLED=y
CONFIG_ESP_WIFI_RX_BA_WIN=16
CONFIG_ESP_WIFI_RX_IRAM_OPT=y
CONFIG_ESP_WIFI_IRAM_OPT=y
# # 9. LWIP config
# #----------------
# CONFIG_LWIP_TCP_SND_BUF_DEFAULT=11520
# CONFIG_LWIP_TCP_WND_DEFAULT=11520
# CONFIG_LWIP_TCP_RECVMBOX_SIZE=16
# CONFIG_LWIP_UDP_RECVMBOX_SIZE=16
# CONFIG_LWIP_TCPIP_RECVMBOX_SIZE=32
# CONFIG_LWIP_TCP_SACK_OUT=y
# CONFIG_LWIP_TCPIP_CORE_LOCKING=y
# CONFIG_LWIP_TCPIP_CORE_LOCKING_INPUT=y
# 10. Optimizations
#-------------------
CONFIG_COMPILER_OPTIMIZATION_PERF=y
CONFIG_SPI_MASTER_ISR_IN_IRAM=n
# 11. Stats
#-----------
#CONFIG_ESP_HOSTED_FUNCTION_PROFILING=y
#CONFIG_ESP_PKT_STATS=y
## 12. Priorities
#----------------
# 13. Mem optimizations
#---------------------
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
@@ -0,0 +1,102 @@
# 1. CPU
#--------
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
# 2. BT Configuration
#---------------------
CONFIG_BT_ENABLED=n
CONFIG_BT_CONTROLLER_ONLY=y
CONFIG_BT_BLUEDROID_ENABLED=
CONFIG_BT_LE_SLEEP_ENABLE=y
# 3.1 BLE over SPI/SDIO
#-----------------------
CONFIG_BT_LE_HCI_INTERFACE_USE_RAM=y
# 3.2 BLE over UART
#-------------------
# Enable below config, delete sdkconfig, build/ and rebuild
# CONFIG_BT_LE_HCI_INTERFACE_USE_UART=y
# CONFIG_BT_LE_HCI_UART_TX_PIN=5
# CONFIG_BT_LE_HCI_UART_RX_PIN=18
# CONFIG_BT_LE_HCI_UART_FLOWCTRL=n
# #CONFIG_BT_LE_HCI_UART_RTS_PIN=19
# #CONFIG_BT_LE_HCI_UART_CTS_PIN=8
# 4. Partition Table
#--------------------
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_eh_cp_ota_4m.csv"
# 5. Mempool
#------------
CONFIG_ESP_CACHE_MALLOC=y
## 6.1 LWIP split
##---------------
#
#CONFIG_ESP_HOSTED_CP_FEAT_NW_SPLIT=y
#CONFIG_LWIP_TCP_LOCAL_PORT_RANGE_START=61440
#CONFIG_LWIP_TCP_LOCAL_PORT_RANGE_END=65535
#CONFIG_LWIP_UDP_LOCAL_PORT_RANGE_START=61440
#CONFIG_LWIP_UDP_LOCAL_PORT_RANGE_END=65535
#
#
## 6.2 LWIP split examples
##-------------------------
# 7. Transport config
#---------------------
# ESP_HOSTED_TRANSPORT_CP_SDIO_NSEND_PSAMPLE=y
# ESP_HOSTED_TRANSPORT_CP_SDIO_DEFAULT_SPEED=y
# ESP_HOSTED_TRANSPORT_CP_SDIO_STREAMING_MODE=n
# For SPI Full duplex C6 on ESP32-P4-Function-EV-Board, please uncomment below
#CONFIG_C6_SPI_WITH_P4=y
# 8. Wifi config
#----------------
CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=10
CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM=32
CONFIG_ESP_WIFI_DYNAMIC_TX_BUFFER_NUM=32
CONFIG_ESP_WIFI_AMPDU_TX_ENABLED=y
CONFIG_ESP_WIFI_TX_BA_WIN=16
CONFIG_ESP_WIFI_AMPDU_RX_ENABLED=y
CONFIG_ESP_WIFI_RX_BA_WIN=16
CONFIG_ESP_WIFI_RX_IRAM_OPT=y
CONFIG_ESP_WIFI_IRAM_OPT=y
## 9. LWIP config
##----------------
#CONFIG_LWIP_TCP_SND_BUF_DEFAULT=11520
#CONFIG_LWIP_TCP_WND_DEFAULT=11520
#CONFIG_LWIP_TCP_RECVMBOX_SIZE=16
#CONFIG_LWIP_UDP_RECVMBOX_SIZE=16
#CONFIG_LWIP_TCPIP_RECVMBOX_SIZE=32
#CONFIG_LWIP_TCP_SACK_OUT=y
#CONFIG_LWIP_TCPIP_CORE_LOCKING=y
#CONFIG_LWIP_TCPIP_CORE_LOCKING_INPUT=y
# 10. Optimizations
#-------------------
CONFIG_COMPILER_OPTIMIZATION_PERF=y
# 11. Stats
#-----------
#CONFIG_ESP_HOSTED_FUNCTION_PROFILING=y
#CONFIG_ESP_PKT_STATS=y
# # 12. Priorities
# ----------------
#13. Mem optimizations
#---------------------
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
@@ -0,0 +1,100 @@
# 1. CPU
#--------
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y
# 2. BT Configuration
#---------------------
CONFIG_BT_ENABLED=n
CONFIG_BT_CONTROLLER_ONLY=y
CONFIG_BT_BLUEDROID_ENABLED=
CONFIG_BT_LE_SLEEP_ENABLE=y
# 3.1 BLE over SPI/SDIO
#-----------------------
CONFIG_BT_LE_HCI_INTERFACE_USE_RAM=y
# 3.2 BLE over UART
#-------------------
# Enable below config, delete sdkconfig, build/ and rebuild
# CONFIG_BT_LE_HCI_INTERFACE_USE_UART=y
# CONFIG_BT_LE_HCI_UART_TX_PIN=5
# CONFIG_BT_LE_HCI_UART_RX_PIN=12
# CONFIG_BT_LE_HCI_UART_FLOWCTRL=n
# # 4 pin solution is not working yet for c6
# #CONFIG_BT_LE_HCI_UART_RTS_PIN=9
# #CONFIG_BT_LE_HCI_UART_CTS_PIN=13
# 4. Partition Table
#--------------------
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_eh_cp_ota_4m.csv"
# 5. Mempool
#------------
CONFIG_ESP_CACHE_MALLOC=y
# # 6.1 LWIP split
# #---------------
#
# CONFIG_ESP_HOSTED_CP_FEAT_NW_SPLIT=y
# CONFIG_LWIP_TCP_LOCAL_PORT_RANGE_START=61440
# CONFIG_LWIP_TCP_LOCAL_PORT_RANGE_END=65535
# CONFIG_LWIP_UDP_LOCAL_PORT_RANGE_START=61440
# CONFIG_LWIP_UDP_LOCAL_PORT_RANGE_END=65535
#
#
# # 6.2 LWIP split examples
# #-------------------------
# 7. Transport config
#---------------------
# ESP_HOSTED_TRANSPORT_CP_SDIO_NSEND_PSAMPLE=y
# ESP_HOSTED_TRANSPORT_CP_SDIO_DEFAULT_SPEED=y
#ESP_HOSTED_TRANSPORT_CP_SDIO_STREAMING_MODE=y
# For SPI Full duplex C6 on ESP32-P4-Function-EV-Board, please uncomment below
#CONFIG_ESP_HOST_DEV_BOARD_P4_FUNC_BOARD=y
#CONFIG_ESP_HOSTED_TRANSPORT_CP_SPI=y
# 8. Wifi config
#----------------
CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=20
CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM=64
CONFIG_ESP_WIFI_DYNAMIC_TX_BUFFER_NUM=64
CONFIG_ESP_WIFI_AMPDU_TX_ENABLED=y
CONFIG_ESP_WIFI_TX_BA_WIN=32
CONFIG_ESP_WIFI_AMPDU_RX_ENABLED=y
CONFIG_ESP_WIFI_RX_BA_WIN=32
CONFIG_ESP_WIFI_RX_IRAM_OPT=y
CONFIG_ESP_WIFI_IRAM_OPT=y
# # 9. LWIP config
# #----------------
# CONFIG_LWIP_TCP_SND_BUF_DEFAULT=65535
# CONFIG_LWIP_TCP_WND_DEFAULT=65535
# CONFIG_LWIP_TCP_RECVMBOX_SIZE=64
# CONFIG_LWIP_UDP_RECVMBOX_SIZE=64
# CONFIG_LWIP_TCPIP_RECVMBOX_SIZE=64
# CONFIG_LWIP_TCP_SACK_OUT=y
# #CONFIG_LWIP_TCPIP_CORE_LOCKING=y
# #CONFIG_LWIP_TCPIP_CORE_LOCKING_INPUT=y
# 10. Optimizations
#-------------------
CONFIG_COMPILER_OPTIMIZATION_PERF=y
# 11. Stats
#-----------
#CONFIG_ESP_HOSTED_FUNCTION_PROFILING=y
#CONFIG_ESP_PKT_STATS=y
# # 12 iperf task
# #--------------
@@ -0,0 +1,16 @@
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y
# BT Configuration
CONFIG_BT_ENABLED=n
CONFIG_BT_CONTROLLER_ONLY=y
CONFIG_BT_BLUEDROID_ENABLED=
CONFIG_BT_LE_SLEEP_ENABLE=y
# SPI/SDIO only
#CONFIG_BT_LE_HCI_INTERFACE_USE_RAM=y
CONFIG_ESP_CACHE_MALLOC=n
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_eh_cp_ota_4m.csv"
#CONFIG_ESP_PKT_STATS=y
@@ -0,0 +1,82 @@
# 1. CPU
#--------
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=240
# 2. Partition Table
#--------------------
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_eh_cp_ota_4m.csv"
# 3. Mempool
#------------
CONFIG_ESP_CACHE_MALLOC=y
# # 4.1 LWIP split
# #---------------
#
# CONFIG_ESP_HOSTED_CP_FEAT_NW_SPLIT=y
# CONFIG_LWIP_TCP_LOCAL_PORT_RANGE_START=61440
# CONFIG_LWIP_TCP_LOCAL_PORT_RANGE_END=65535
# CONFIG_LWIP_UDP_LOCAL_PORT_RANGE_START=61440
# CONFIG_LWIP_UDP_LOCAL_PORT_RANGE_END=65535
#
#
# # 4.2 LWIP split examples
# #-------------------------
# 5. Transport config
#---------------------
# ESP_HOSTED_TRANSPORT_CP_SDIO_NSEND_PSAMPLE=y
# ESP_HOSTED_TRANSPORT_CP_SDIO_DEFAULT_SPEED=y
# ESP_HOSTED_TRANSPORT_CP_SDIO_STREAMING_MODE=n
# For SPI Full duplex C6 on ESP32-P4-Function-EV-Board, please uncomment below
#CONFIG_C6_SPI_WITH_P4=y
# 6. Wifi config
#----------------
CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=10
CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM=32
CONFIG_ESP_WIFI_DYNAMIC_TX_BUFFER_NUM=32
CONFIG_ESP_WIFI_AMPDU_TX_ENABLED=y
CONFIG_ESP_WIFI_TX_BA_WIN=16
CONFIG_ESP_WIFI_AMPDU_RX_ENABLED=y
CONFIG_ESP_WIFI_RX_BA_WIN=16
CONFIG_ESP_WIFI_RX_IRAM_OPT=y
CONFIG_ESP_WIFI_IRAM_OPT=y
# # 7. LWIP config
# #----------------
# CONFIG_LWIP_TCP_SND_BUF_DEFAULT=11520
# CONFIG_LWIP_TCP_WND_DEFAULT=11520
# CONFIG_LWIP_TCP_RECVMBOX_SIZE=16
# CONFIG_LWIP_UDP_RECVMBOX_SIZE=16
# CONFIG_LWIP_TCPIP_RECVMBOX_SIZE=32
# CONFIG_LWIP_TCP_SACK_OUT=y
# CONFIG_LWIP_TCPIP_CORE_LOCKING=y
# CONFIG_LWIP_TCPIP_CORE_LOCKING_INPUT=y
# 8. Optimizations
#-------------------
CONFIG_COMPILER_OPTIMIZATION_PERF=y
CONFIG_SPI_MASTER_ISR_IN_IRAM=n
# 9. Stats
#-----------
#CONFIG_ESP_HOSTED_FUNCTION_PROFILING=y
#CONFIG_ESP_PKT_STATS=y
# # 10. Priorities
# ----------------
# 11. Mem optimizations
#---------------------
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
@@ -0,0 +1,104 @@
# 1. CPU
#--------
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=240
# 2. BT Configuration
#---------------------
CONFIG_BT_ENABLED=n
CONFIG_BT_CONTROLLER_ONLY=y
CONFIG_BT_BLUEDROID_ENABLED=
CONFIG_BT_LE_SLEEP_ENABLE=y
# 3.1 BLE over SPI/SDIO
#-----------------------
CONFIG_BT_LE_HCI_INTERFACE_USE_RAM=y
# 3.2 BLE over UART
#-------------------
# Enable below config, delete sdkconfig, build/ and rebuild
# CONFIG_BT_LE_HCI_INTERFACE_USE_UART=y
# CONFIG_BT_LE_HCI_UART_TX_PIN=5
# CONFIG_BT_LE_HCI_UART_RX_PIN=18
# CONFIG_BT_LE_HCI_UART_FLOWCTRL=n
# #CONFIG_BT_LE_HCI_UART_RTS_PIN=19
# #CONFIG_BT_LE_HCI_UART_CTS_PIN=8
# 4. Partition Table
#--------------------
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_eh_cp_ota_4m.csv"
# 5. Mempool
#------------
CONFIG_ESP_CACHE_MALLOC=y
# # 6.1 LWIP split
# #---------------
#
# CONFIG_ESP_HOSTED_CP_FEAT_NW_SPLIT=y
# CONFIG_LWIP_TCP_LOCAL_PORT_RANGE_START=61440
# CONFIG_LWIP_TCP_LOCAL_PORT_RANGE_END=65535
# CONFIG_LWIP_UDP_LOCAL_PORT_RANGE_START=61440
# CONFIG_LWIP_UDP_LOCAL_PORT_RANGE_END=65535
#
#
# # 6.2 LWIP split examples
# #-------------------------
# 7. Transport config
#---------------------
# ESP_HOSTED_TRANSPORT_CP_SDIO_NSEND_PSAMPLE=y
# ESP_HOSTED_TRANSPORT_CP_SDIO_DEFAULT_SPEED=y
# ESP_HOSTED_TRANSPORT_CP_SDIO_STREAMING_MODE=n
# For SPI Full duplex C6 on ESP32-P4-Function-EV-Board, please uncomment below
#CONFIG_C6_SPI_WITH_P4=y
# 8. Wifi config
#----------------
CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=10
CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM=32
CONFIG_ESP_WIFI_DYNAMIC_TX_BUFFER_NUM=32
CONFIG_ESP_WIFI_AMPDU_TX_ENABLED=y
CONFIG_ESP_WIFI_TX_BA_WIN=16
CONFIG_ESP_WIFI_AMPDU_RX_ENABLED=y
CONFIG_ESP_WIFI_RX_BA_WIN=16
CONFIG_ESP_WIFI_RX_IRAM_OPT=y
CONFIG_ESP_WIFI_IRAM_OPT=y
# # 9. LWIP config
# #----------------
# CONFIG_LWIP_TCP_SND_BUF_DEFAULT=11520
# CONFIG_LWIP_TCP_WND_DEFAULT=11520
# CONFIG_LWIP_TCP_RECVMBOX_SIZE=16
# CONFIG_LWIP_UDP_RECVMBOX_SIZE=16
# CONFIG_LWIP_TCPIP_RECVMBOX_SIZE=32
# CONFIG_LWIP_TCP_SACK_OUT=y
# CONFIG_LWIP_TCPIP_CORE_LOCKING=y
# CONFIG_LWIP_TCPIP_CORE_LOCKING_INPUT=y
# 10. Optimizations
#-------------------
CONFIG_COMPILER_OPTIMIZATION_PERF=y
CONFIG_SPI_MASTER_ISR_IN_IRAM=n
# 11. Stats
#-----------
#CONFIG_ESP_HOSTED_FUNCTION_PROFILING=y
#CONFIG_ESP_PKT_STATS=y
# # 12. Priorities
# ----------------
#13. Mem optimizations
#---------------------
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
+3
View File
@@ -0,0 +1,3 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(c6_ota_v2)
@@ -0,0 +1,2 @@
idf_component_register(SRCS "main.c" INCLUDE_DIRS "."
PRIV_REQUIRES esp_partition esp_app_format bootloader_support nvs_flash esp_netif esp_event esp_wifi)
@@ -0,0 +1,3 @@
dependencies:
espressif/esp_hosted: "~2"
espressif/esp_wifi_remote: "*"
+87
View File
@@ -0,0 +1,87 @@
// One-shot C6 updater for the Waveshare ESP32-P4-Nano, built on esp-hosted 2.x so it speaks the
// RPC protocol of the C6's old factory firmware. Streams the C6 image that is already in the
// P4's "slave_fw" flash partition (written by ../mcu_host's flash step) and then reboots.
#include <string.h>
#include "esp_log.h"
#include "esp_partition.h"
#include "esp_app_desc.h"
#include "esp_image_format.h"
#include "esp_event.h"
#include "esp_netif.h"
#include "nvs_flash.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_hosted.h"
#include "esp_hosted_ota.h"
static const char *TAG = "c6-ota";
#define CHUNK 1400
// Size of an ESP app image: header, segments, checksum padded to 16, optional SHA-256.
static uint32_t image_size(const esp_partition_t *p)
{
esp_image_header_t h;
if (esp_partition_read(p, 0, &h, sizeof h) != ESP_OK || h.magic != ESP_IMAGE_HEADER_MAGIC)
return 0;
uint32_t off = sizeof h;
for (int i = 0; i < h.segment_count; i++) {
esp_image_segment_header_t s;
if (esp_partition_read(p, off, &s, sizeof s) != ESP_OK) return 0;
off += sizeof s + s.data_len;
}
off = (off + 1 + 15) & ~15u; // checksum byte, then pad to 16
if (h.hash_appended) off += 32;
return off <= p->size ? off : 0;
}
static void halt(const char *why)
{
ESP_LOGE(TAG, "%s", why);
for (;;) { ESP_LOGE(TAG, "RESULT FAIL: %s", why); vTaskDelay(pdMS_TO_TICKS(5000)); }
}
void app_main(void)
{
nvs_flash_init();
esp_netif_init();
esp_event_loop_create_default();
if (esp_hosted_connect_to_slave() != 0) halt("cannot connect to C6");
esp_hosted_coprocessor_fwver_t v = {0};
if (esp_hosted_get_coprocessor_fwversion(&v) == ESP_OK)
ESP_LOGI(TAG, "C6 firmware before update: %lu.%lu.%lu", (unsigned long)v.major1,
(unsigned long)v.minor1, (unsigned long)v.patch1);
else
ESP_LOGW(TAG, "C6 did not report a version (old firmware)");
const esp_partition_t *p = esp_partition_find_first(ESP_PARTITION_TYPE_DATA, 0x40, "slave_fw");
if (!p) halt("no slave_fw partition");
uint32_t size = image_size(p);
if (!size) halt("slave_fw does not hold a valid image");
esp_app_desc_t d;
esp_partition_read(p, sizeof(esp_image_header_t) + sizeof(esp_image_segment_header_t), &d, sizeof d);
ESP_LOGI(TAG, "New C6 image: %u bytes, project '%s', IDF %s", (unsigned)size, d.project_name, d.idf_ver);
if (esp_hosted_slave_ota_begin() != ESP_OK) halt("OTA begin failed");
static uint8_t buf[CHUNK];
for (uint32_t off = 0; off < size;) {
uint32_t n = size - off > CHUNK ? CHUNK : size - off;
esp_partition_read(p, off, buf, n);
if (esp_hosted_slave_ota_write(buf, n) != ESP_OK) {
ESP_LOGE(TAG, "write failed at offset %u", (unsigned)off);
halt("OTA write failed");
}
off += n;
if ((off / CHUNK) % 100 == 0 || off == size)
ESP_LOGI(TAG, "sent %u / %u bytes", (unsigned)off, (unsigned)size);
}
if (esp_hosted_slave_ota_end() != ESP_OK) halt("OTA end failed (image rejected)");
ESP_LOGI(TAG, "OTA end OK");
esp_err_t a = esp_hosted_slave_ota_activate(); // only on C6 fw 2.6+; older ones switch at end
ESP_LOGI(TAG, "activate: %s", esp_err_to_name(a));
for (int i = 0; i < 3; i++) { ESP_LOGI(TAG, "RESULT OK: C6 updated, rebooting"); vTaskDelay(pdMS_TO_TICKS(1000)); }
esp_restart(); // reboots the P4, which resets the C6 into the new image
}
+23
View File
@@ -0,0 +1,23 @@
# Universal partition table for all OTA methods (HTTPS / LittleFS / Partition).
# Mirrors upstream esp_hosted/examples/host_performs_slave_ota/partitions.csv.
#
# Layout (8 MB flash, host = ESP32-P4):
# nvs 16K — config / Wi-Fi credentials
# otadata 8K — IDF OTA bookkeeping (which slot is active)
# phy_init 4K — RF calibration data
# ota_0 2M @ 0x010000 — host firmware A
# ota_1 2M @ 0x210000 — host firmware B
# storage 1920K @ 0x410000 — LittleFS partition (used by OTA_METHOD_LITTLEFS:
# the host stages the slave .bin into this FS,
# then streams it over RPC).
# slave_fw 2M @ 0x5F0000 — raw partition (used by OTA_METHOD_PARTITION:
# host reads slave .bin straight from flash).
#
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 16K,
otadata, data, ota, 0xd000, 8K,
phy_init, data, phy, 0xf000, 4K,
ota_0, app, ota_0, 0x10000, 2M,
ota_1, app, ota_1, 0x210000, 2M,
storage, data, littlefs, 0x410000, 0x1E0000,
slave_fw, data, 0x40, 0x5F0000, 0x200000,
1 # Universal partition table for all OTA methods (HTTPS / LittleFS / Partition).
2 # Mirrors upstream esp_hosted/examples/host_performs_slave_ota/partitions.csv.
3 #
4 # Layout (8 MB flash, host = ESP32-P4):
5 # nvs 16K — config / Wi-Fi credentials
6 # otadata 8K — IDF OTA bookkeeping (which slot is active)
7 # phy_init 4K — RF calibration data
8 # ota_0 2M @ 0x010000 — host firmware A
9 # ota_1 2M @ 0x210000 — host firmware B
10 # storage 1920K @ 0x410000 — LittleFS partition (used by OTA_METHOD_LITTLEFS:
11 # the host stages the slave .bin into this FS,
12 # then streams it over RPC).
13 # slave_fw 2M @ 0x5F0000 — raw partition (used by OTA_METHOD_PARTITION:
14 # host reads slave .bin straight from flash).
15 #
16 # Name, Type, SubType, Offset, Size, Flags
17 nvs, data, nvs, 0x9000, 16K,
18 otadata, data, ota, 0xd000, 8K,
19 phy_init, data, phy, 0xf000, 4K,
20 ota_0, app, ota_0, 0x10000, 2M,
21 ota_1, app, ota_1, 0x210000, 2M,
22 storage, data, littlefs, 0x410000, 0x1E0000,
23 slave_fw, data, 0x40, 0x5F0000, 0x200000,
@@ -0,0 +1,7 @@
CONFIG_IDF_TARGET="esp32p4"
CONFIG_ESP_CONSOLE_UART_DEFAULT=y
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
CONFIG_SLAVE_IDF_TARGET_ESP32C6=y
CONFIG_ESP_HOSTED_SDIO_HOST_INTERFACE=y
+9
View File
@@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 3.16)
#set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/examples/common_components/protocol_examples_common")
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
set(PARTITION_TABLE_FILE "${CMAKE_CURRENT_SOURCE_DIR}/partitions.csv")
project(host_performs_slave_ota)
+108
View File
@@ -0,0 +1,108 @@
# ota / coprocessor_ota — Host
Pushes a new CP firmware image from the host through the OTA
begin / write / end / activate RPC chain. The host can source the image
from one of three places — HTTPS, an on-host LittleFS partition, or a
dedicated raw flash partition — selected at build time.
## Supported Platforms and Transports
### Supported Coprocessors
| Coprocessor | ESP32 | ESP32-C Series | ESP32-S2/S3 | ESP32-S31 |
| :----------: | :---: | :------------: | :---------: | :-------: |
| Support | Yes | Yes | Yes | Yes ¹ |
¹ ESP32-S31: preview target, 2.4 GHz only, no SDIO. See [ESP32-S31 test board](https://github.com/espressif/esp-hosted/blob/master/docs/getting-started-mcu.md#esp32-s31-test-board-on-the-esp32-p4-function-ev-board).
### Supported Host Devices
| Host Device | ESP32-P4 | ESP32-H2 | Other MCUs | Linux |
| :---------: | :------: | :------: | :--------: | :---: |
| Support | Yes | Yes | [Yes](https://github.com/espressif/esp-hosted/blob/master/docs/getting-started-mcu.md) | [Yes](https://github.com/espressif/esp-hosted/blob/master/docs/getting-started-linux.md) |
### Supported Connection buses
| Connection bus | SDIO | SPI Full-Duplex | SPI Half-Duplex | UART |
| :------------- | :--: | :-------------: | :-------------: | :--: |
| Linux host | Yes | Yes | No | No |
| MCU host | Yes | Yes | Yes | Yes |
## Scenario
The host streams new co-processor firmware over the control path using the four-call OTA RPC chain — `begin` → `write` (looped) → `end` → `activate`. (`activate` is a distinct RPC, needed on CP firmware v2.6.0+.) API names below are the example's compat surface (`esp_hosted_slave_ota_*`); the native equivalents are `eh_host_cp_ota_*`.
```mermaid
sequenceDiagram
participant App as Host app
participant CP as Co-processor
participant SRC as Firmware source (HTTPS / LittleFS / partition)
App->>CP: esp_hosted_slave_ota_begin() (RPC)
loop firmware chunks
App->>SRC: fetch chunk
App->>CP: esp_hosted_slave_ota_write(chunk) (RPC)
end
App->>CP: esp_hosted_slave_ota_end() (RPC)
App->>CP: esp_hosted_slave_ota_activate() (RPC)
CP->>CP: set boot partition
CP-->>App: result
Note over CP: reboot into new firmware
```
Select the transport (must match the co-processor) and pick the OTA method:
```bash
cd examples/ota/coprocessor_ota/mcu_host
idf.py set-target esp32p4
idf.py menuconfig
```
```text
Component config
└── ESP-Hosted
└── Configure host
└── Host transport
├── Communication bus (co-processor <== bus ==> host)
│ ├── ( ) SPI Full Duplex
│ ├── (X) SDIO <── default (match the co-processor)
│ ├── ( ) SPI Half Duplex
│ └── ( ) UART
└── SDIO Configuration ← slot, bus width, GPIOs (defaults OK)
```
```text
ESP-Hosted Coprocessor OTA Config
├── Select OTA Method
│ ├── (X) HTTP OTA <── default
│ ├── ( ) LittleFS OTA
│ └── ( ) Partition OTA
│
├── WiFi Connection ⎫
│ ├── (MyWiFiSSID) WiFi SSID │
│ └── (········) WiFi Password │
├── HTTPS OTA Configuration ⎬ HTTP OTA method
│ ├── (…/firmware.bin) OTA Server URL │
│ ├── (30000) HTTPS connection timeout (ms) │
│ └── [ ] Use self-signed certificate (testing only) ⎭
│
├── (slave_fw) Partition Label ← Partition OTA method
├── [*] Delete OTA file after flashing ← LittleFS OTA method
│
└── OTA Verification Options
├── [*] Host-Slave version compatibility check
└── [*] Skip OTA if slave firmware versions match
```
Host dependency config is **pre-set in `mcu_host/sdkconfig.defaults`** (do not remove):
```text
CONFIG_ESP_HOSTED_HOST_FEAT_WIFI=y # Wi-Fi — HTTPS OTA download path
```
Then flash and monitor:
```bash
idf.py -p <host_usb_serial_port> flash monitor
```
<!-- generated from ../README.md — edit that file, not this one -->
@@ -0,0 +1,64 @@
# Common script to find the newest firmware file dynamically during build
# This runs every time during build, not just during configuration
#
# Required input variables:
# - SOURCE_COMPONENT_DIR: Path to the component source directory
# - BINARY_COMPONENT_DIR: Path to the component binary directory
# - OTA_ACTION: "prepare_littlefs" or "select_for_partition"
#
# Optional input variables:
# - COMPONENT_NAME: Name for logging (default: "OTA")
if(NOT DEFINED COMPONENT_NAME)
set(COMPONENT_NAME "OTA")
endif()
# Use the passed component directories
set(SOURCE_DIR "${SOURCE_COMPONENT_DIR}/slave_fw_bin")
set(TEMP_DIR "${BINARY_COMPONENT_DIR}/temp_littlefs")
message(STATUS "${COMPONENT_NAME}: Dynamically searching for newest firmware...")
message(STATUS "${COMPONENT_NAME}: Searching in ${SOURCE_DIR}")
# Get all .bin files
file(GLOB FIRMWARE_FILES "${SOURCE_DIR}/*.bin")
if(NOT FIRMWARE_FILES)
message(FATAL_ERROR "${COMPONENT_NAME}: No .bin files found in ${SOURCE_DIR}")
endif()
# Find the newest file by timestamp
set(NEWEST_FILE "")
set(NEWEST_TIMESTAMP 0)
foreach(FIRMWARE_FILE ${FIRMWARE_FILES})
file(TIMESTAMP "${FIRMWARE_FILE}" FILE_TIMESTAMP "%s")
message(STATUS "${COMPONENT_NAME}: File ${FIRMWARE_FILE} timestamp: ${FILE_TIMESTAMP}")
if(FILE_TIMESTAMP GREATER NEWEST_TIMESTAMP)
set(NEWEST_FILE "${FIRMWARE_FILE}")
set(NEWEST_TIMESTAMP "${FILE_TIMESTAMP}")
endif()
endforeach()
get_filename_component(NEWEST_FILENAME "${NEWEST_FILE}" NAME)
message(STATUS "${COMPONENT_NAME}: Selected newest firmware: ${NEWEST_FILENAME}")
# Perform the requested action
if(OTA_ACTION STREQUAL "prepare_littlefs")
# Clean and recreate temp directory for LittleFS
file(REMOVE_RECURSE "${TEMP_DIR}")
file(MAKE_DIRECTORY "${TEMP_DIR}")
file(COPY "${NEWEST_FILE}" DESTINATION "${TEMP_DIR}")
message(STATUS "${COMPONENT_NAME}: Prepared ${NEWEST_FILENAME} in temp directory for LittleFS")
elseif(OTA_ACTION STREQUAL "select_for_partition")
# Write selection to files for partition OTA
file(WRITE "${BINARY_COMPONENT_DIR}/selected_firmware.txt" "${NEWEST_FILE}")
file(WRITE "${BINARY_COMPONENT_DIR}/selected_firmware_name.txt" "${NEWEST_FILENAME}")
message(STATUS "${COMPONENT_NAME}: Saved firmware selection for partition flashing")
else()
message(FATAL_ERROR "${COMPONENT_NAME}: Unknown OTA_ACTION: ${OTA_ACTION}")
endif()
message(STATUS "${COMPONENT_NAME}: Firmware selection completed")
@@ -0,0 +1,61 @@
# Script to flash the dynamically selected firmware for partition OTA
# Reads the firmware path from the selection file and flashes it
#
# Required input variables:
# - BINARY_COMPONENT_DIR: Path to the component binary directory
# - SLAVE_FW_OFFSET: Partition offset for flashing
# - PYTHON: Python executable path
if(NOT DEFINED COMPONENT_NAME)
set(COMPONENT_NAME "Partition OTA")
endif()
# Read the selected firmware path and name
set(SELECTION_FILE "${BINARY_COMPONENT_DIR}/selected_firmware.txt")
set(NAME_FILE "${BINARY_COMPONENT_DIR}/selected_firmware_name.txt")
if(NOT EXISTS "${SELECTION_FILE}")
message(FATAL_ERROR "${COMPONENT_NAME}: Selection file not found: ${SELECTION_FILE}")
endif()
file(READ "${SELECTION_FILE}" SELECTED_FIRMWARE_PATH)
file(READ "${NAME_FILE}" SELECTED_FIRMWARE_NAME)
# Remove any trailing newlines
string(STRIP "${SELECTED_FIRMWARE_PATH}" SELECTED_FIRMWARE_PATH)
string(STRIP "${SELECTED_FIRMWARE_NAME}" SELECTED_FIRMWARE_NAME)
message(STATUS "-----------------------------------------------------")
message(STATUS "${COMPONENT_NAME}: Flashing ${SELECTED_FIRMWARE_NAME}")
message(STATUS "Path: ${SELECTED_FIRMWARE_PATH}")
message(STATUS "Offset: ${SLAVE_FW_OFFSET}")
message(STATUS "-----------------------------------------------------")
# Check if file exists
if(NOT EXISTS "${SELECTED_FIRMWARE_PATH}")
message(FATAL_ERROR "❌ ERROR: Selected firmware file not found: ${SELECTED_FIRMWARE_PATH}")
endif()
# Execute esptool (this will inherit the port from the parent build process)
execute_process(
COMMAND ${PYTHON} -m esptool
-b 2000000
write_flash
--force
${SLAVE_FW_OFFSET} "${SELECTED_FIRMWARE_PATH}"
RESULT_VARIABLE FLASH_RESULT
OUTPUT_VARIABLE FLASH_OUTPUT
ERROR_VARIABLE FLASH_ERROR
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_STRIP_TRAILING_WHITESPACE
)
if(FLASH_OUTPUT)
message(STATUS "${FLASH_OUTPUT}")
endif()
if(NOT FLASH_RESULT EQUAL 0)
message(FATAL_ERROR "❌ ERROR: Failed to flash firmware:\n${FLASH_ERROR}")
endif()
message(STATUS "✅ Successfully flashed ${SELECTED_FIRMWARE_NAME} to partition!")
@@ -0,0 +1,28 @@
if(CONFIG_OTA_METHOD_HTTPS)
set(SRC_LIST "ota_https.c" "ota_https_wifi.c")
endif()
idf_component_register(SRCS ${SRC_LIST}
INCLUDE_DIRS "."
REQUIRES esp_http_client app_update esp_wifi esp_hosted nvs_flash esp_https_ota mbedtls esp-tls bootloader_support esp_app_format)
# Conditional certificate embedding based on Kconfig
if(CONFIG_OTA_METHOD_HTTPS)
if(CONFIG_OTA_USE_SELF_SIGNED_CERT)
if(EXISTS "${COMPONENT_DIR}/certs/server_cert.pem")
target_add_binary_data(
${COMPONENT_LIB}
"certs/server_cert.pem"
TEXT
)
message(STATUS "✓ HTTPS OTA: Embedding self-signed certificate for testing")
else()
message(FATAL_ERROR
"HTTPS OTA: Self-signed cert enabled but certs/server_cert.pem not found! \n"
"1. Run ./create_self_signed_certs.sh in components/ota_https/test_server directory to generate certificates.\n"
"2. Run ./create_https_server.py in components/ota_https/test_server directory to start the HTTPS server.")
endif()
else()
message(STATUS "✓ HTTPS OTA: Using CA certificate bundle (Production mode)")
endif()
endif()
@@ -0,0 +1,413 @@
/*
* SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* ESP-Hosted HTTPS OTA Component
* =============================
*
* Downloads ESP32 slave firmware from HTTPS URL and performs OTA update.
*
* FEATURES:
* - Secure HTTPS firmware download
* - Firmware validation (magic number, image header)
* - Version checking against current slave firmware
* - WiFi connection management
* - Certificate validation (optional)
*
* APIs USED:
* - esp_hosted_get_coprocessor_fwversion() - Get slave firmware version
* - esp_hosted_slave_ota_begin() - Initialize OTA session
* - esp_hosted_slave_ota_write() - Transfer firmware chunks
* - esp_hosted_slave_ota_end() - Finalize OTA session
* - esp_hosted_slave_ota_activate() - (if current slave FW > v2.5.X only) - ** Called from main.c **
*/
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "esp_log.h"
#include "esp_err.h"
#include "esp_hosted.h"
#include "esp_http_client.h"
#include "esp_crt_bundle.h" // For certificate bundle
#include "sdkconfig.h" // For configuration macros
#include "esp_app_format.h"
#include "esp_app_desc.h"
#include "esp_hosted_api_types.h"
#ifndef CHUNK_SIZE
#define CHUNK_SIZE 1400
#endif
static const char* TAG = "https_ota";
extern esp_err_t establish_wifi_connection(void);
/* Self-signed certificate - embedded at compile time (only if enabled) */
#ifdef CONFIG_OTA_USE_SELF_SIGNED_CERT
extern const uint8_t server_cert_pem_start[] asm("_binary_server_cert_pem_start");
extern const uint8_t server_cert_pem_end[] asm("_binary_server_cert_pem_end");
#endif
uint8_t http_err = 0;
/* Function to parse ESP32 image header and get firmware info from buffer */
static esp_err_t parse_image_header_from_buffer(const uint8_t* buffer, size_t buffer_size, size_t* firmware_size, char* app_version_str, size_t version_str_len)
{
esp_image_header_t image_header;
esp_image_segment_header_t segment_header;
esp_app_desc_t app_desc;
size_t offset = 0;
size_t total_size = 0;
/* Check if buffer has enough data for image header */
if (buffer_size < sizeof(image_header)) {
ESP_LOGE(TAG, "Buffer too small for image header verification");
return ESP_ERR_INVALID_SIZE;
}
/* Read image header from buffer */
memcpy(&image_header, buffer + offset, sizeof(image_header));
/* Validate magic number */
if (image_header.magic != ESP_IMAGE_HEADER_MAGIC) {
ESP_LOGE(TAG, "Invalid image magic: 0x%" PRIx8, image_header.magic);
return ESP_ERR_INVALID_ARG;
}
ESP_LOGI(TAG, "Image header: magic=0x%" PRIx8 ", segment_count=%" PRIu8 ", hash_appended=%" PRIu8,
image_header.magic, image_header.segment_count, image_header.hash_appended);
/* Calculate total size by reading all segments */
offset = sizeof(image_header);
total_size = sizeof(image_header);
for (int i = 0; i < image_header.segment_count; i++) {
/* Check if buffer has enough data for segment header */
if (buffer_size < offset + sizeof(segment_header)) {
ESP_LOGW(TAG, "Buffer too small to read all segment headers, using partial verification");
break;
}
/* Read segment header from buffer */
memcpy(&segment_header, buffer + offset, sizeof(segment_header));
ESP_LOGI(TAG, "Segment %d: data_len=%" PRIu32 ", load_addr=0x%" PRIx32, i, segment_header.data_len, segment_header.load_addr);
/* Add segment header size + data size */
total_size += sizeof(segment_header) + segment_header.data_len;
offset += sizeof(segment_header) + segment_header.data_len;
/* Read app description from the first segment */
if (i == 0) {
size_t app_desc_offset = sizeof(image_header) + sizeof(segment_header);
if (buffer_size >= app_desc_offset + sizeof(app_desc)) {
memcpy(&app_desc, buffer + app_desc_offset, sizeof(app_desc));
strncpy(app_version_str, app_desc.version, version_str_len - 1);
app_version_str[version_str_len - 1] = '\0';
ESP_LOGI(TAG, "Found app description: version='%s', project_name='%s'",
app_desc.version, app_desc.project_name);
} else {
ESP_LOGW(TAG, "Buffer too small to read app description");
strncpy(app_version_str, "unknown", version_str_len - 1);
app_version_str[version_str_len - 1] = '\0';
}
}
}
/* Add padding to align to 16 bytes */
size_t padding = (16 - (total_size % 16)) % 16;
if (padding > 0) {
ESP_LOGD(TAG, "Adding %u bytes of padding for alignment", (unsigned int)padding);
total_size += padding;
}
/* Add the checksum byte (always present) */
total_size += 1;
ESP_LOGD(TAG, "Added 1 byte for checksum");
/* Add SHA256 hash if appended */
bool has_hash = (image_header.hash_appended == 1);
if (has_hash) {
total_size += 32; // SHA256 hash is 32 bytes
ESP_LOGD(TAG, "Added 32 bytes for SHA256 hash (hash_appended=1)");
} else {
ESP_LOGD(TAG, "No SHA256 hash appended (hash_appended=0)");
}
*firmware_size = total_size;
ESP_LOGI(TAG, "Total image size: %u bytes", (unsigned int)*firmware_size);
return ESP_OK;
}
static esp_err_t http_client_event_handler(esp_http_client_event_t *evt)
{
switch(evt->event_id) {
case HTTP_EVENT_ERROR:
ESP_LOGE(TAG, "HTTP_EVENT_ERROR");
http_err = 1;
break;
case HTTP_EVENT_ON_CONNECTED:
ESP_LOGI(TAG, "HTTPS_EVENT_ON_CONNECTED - SSL handshake successful");
break;
case HTTP_EVENT_HEADER_SENT:
ESP_LOGI(TAG, "HTTPS_EVENT_HEADER_SENT");
break;
case HTTP_EVENT_ON_HEADER:
ESP_LOGD(TAG, "HTTPS_EVENT_ON_HEADER: %s=%s", evt->header_key, evt->header_value);
if (strcmp(evt->header_key, "Content-Length") == 0) {
ESP_LOGI(TAG, "Content-Length: %s bytes", evt->header_value);
}
break;
case HTTP_EVENT_ON_DATA:
/* Data received - logged elsewhere */
break;
case HTTP_EVENT_ON_FINISH:
ESP_LOGI(TAG, "HTTPS_EVENT_ON_FINISH - Transfer complete");
break;
case HTTP_EVENT_DISCONNECTED:
ESP_LOGI(TAG, "HTTPS_EVENT_DISCONNECTED");
break;
case HTTP_EVENT_REDIRECT:
ESP_LOGW(TAG, "HTTPS_EVENT_REDIRECT");
break;
default:
ESP_LOGD(TAG, "Unhandled HTTPS event id: %d", evt->event_id);
break;
}
return ESP_OK;
}
esp_err_t ota_https_perform(const char* image_url)
{
uint8_t *ota_chunk = NULL;
esp_err_t err = ESP_OK;
int data_read = 0;
int ota_failed = 0;
if ((image_url == NULL) || (image_url[0] == '\0')) {
ESP_LOGE(TAG, "Invalid image URL");
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
// Validate HTTPS URL
if (strncmp(image_url, "https://", 8) != 0) {
ESP_LOGE(TAG, "URL must use HTTPS protocol");
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
err = establish_wifi_connection();
if (err != ESP_OK) {
ESP_LOGE(TAG, "WiFi connection failed: %s", esp_err_to_name(err));
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
ESP_LOGI(TAG, "Starting HTTPS OTA from URL: %s", image_url);
#ifdef CONFIG_OTA_USE_SELF_SIGNED_CERT
// Log certificate information for self-signed mode
size_t cert_len = server_cert_pem_end - server_cert_pem_start;
ESP_LOGI(TAG, "Security: Self-signed certificate (Testing mode)");
ESP_LOGI(TAG, "Certificate size: %u bytes", (unsigned int)cert_len);
if (cert_len == 0) {
ESP_LOGE(TAG, "Certificate not embedded properly! Check CMakeLists.txt");
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
#else
ESP_LOGI(TAG, "Security: CA Certificate Bundle (Production mode)");
ESP_LOGI(TAG, "Supports: Let's Encrypt, DigiCert, and 200+ CAs");
#endif
esp_http_client_config_t config = {
.url = image_url,
.timeout_ms = CONFIG_OTA_HTTPS_TIMEOUT_MS,
.transport_type = HTTP_TRANSPORT_OVER_SSL, // Force HTTPS
.event_handler = http_client_event_handler,
.buffer_size = 8192, // Larger buffer for SSL
.buffer_size_tx = 4096, // Increased TX buffer
#ifdef CONFIG_OTA_USE_SELF_SIGNED_CERT
/* TESTING MODE - Self-signed certificate */
.cert_pem = (const char *)server_cert_pem_start,
.cert_len = server_cert_pem_end - server_cert_pem_start,
.skip_cert_common_name_check = CONFIG_OTA_SKIP_CERT_CN_CHECK,
.use_global_ca_store = false, // Use only our certificate
#else
/* PRODUCTION MODE - CA certificate bundle */
.crt_bundle_attach = esp_crt_bundle_attach,
.skip_cert_common_name_check = false, // Always validate CN in production
#endif
.keep_alive_enable = true,
.keep_alive_idle = 5,
.keep_alive_interval = 5,
.keep_alive_count = 3,
};
esp_http_client_handle_t client = esp_http_client_init(&config);
if (client == NULL) {
ESP_LOGE(TAG, "Failed to initialize HTTPS client");
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
/* Open connection */
ESP_LOGI(TAG, "Opening HTTPS connection...");
if ((err = esp_http_client_open(client, 0)) != ESP_OK) {
ESP_LOGE(TAG, "Failed to open HTTPS connection: %s", esp_err_to_name(err));
ESP_LOGE(TAG, "Common causes:");
ESP_LOGE(TAG, " - Certificate CN doesn't match server IP");
ESP_LOGE(TAG, " - Server not running or unreachable");
ESP_LOGE(TAG, " - WiFi connection issues");
ESP_LOGE(TAG, " - Firewall blocking port 8443");
esp_http_client_cleanup(client);
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
if (http_err) {
ESP_LOGE(TAG, "Exiting OTA, due to http failure");
esp_http_client_cleanup(client);
http_err = 0;
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
/* Fetch headers */
ESP_LOGI(TAG, "Fetching HTTPS headers...");
int64_t content_length = esp_http_client_fetch_headers(client);
int http_status = esp_http_client_get_status_code(client);
if (http_status != 200) {
ESP_LOGE(TAG, "HTTPS request failed with status: %d", http_status);
esp_http_client_cleanup(client);
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
if (content_length <= 0) {
ESP_LOGE(TAG, "HTTP client fetch headers failed");
ESP_LOGI(TAG, "HTTP GET Status = %d, content_length = %ld",
esp_http_client_get_status_code(client),
(long)esp_http_client_get_content_length(client));
esp_http_client_close(client);
esp_http_client_cleanup(client);
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
ESP_LOGI(TAG, "HTTP GET Status = %d, content_length = %ld",
esp_http_client_get_status_code(client),
(long)esp_http_client_get_content_length(client));
/* Begin OTA */
ESP_LOGI(TAG, "Preparing OTA");
if ((err = esp_hosted_slave_ota_begin()) != ESP_OK) {
ESP_LOGE(TAG, "esp_hosted_slave_ota_begin failed: %s", esp_err_to_name(err));
ESP_LOGI(TAG, "esp_ota_begin failed, error=%s", esp_err_to_name(err));
esp_http_client_close(client);
esp_http_client_cleanup(client);
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
ota_chunk = (uint8_t*)calloc(1, CHUNK_SIZE);
if (!ota_chunk) {
ESP_LOGE(TAG, "Failed to allocate OTA chunk memory");
esp_http_client_close(client);
esp_http_client_cleanup(client);
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
ESP_LOGI(TAG, "Starting OTA data transfer over HTTPS");
/* Read and write OTA data */
bool header_verified = false;
int chunk_count = 0;
while ((data_read = esp_http_client_read(client, (char*)ota_chunk, CHUNK_SIZE)) > 0) {
ESP_LOGD(TAG, "Read image length %d", data_read);
/* Verify image header from the first chunk */
if (!header_verified && chunk_count == 0) {
size_t firmware_size;
char app_version[32];
ESP_LOGI(TAG, "Verifying image header from first chunk (%d bytes)", data_read);
if ((err = parse_image_header_from_buffer(ota_chunk, data_read, &firmware_size, app_version, sizeof(app_version))) != ESP_OK) {
ESP_LOGE(TAG, "Image header verification failed: %s", esp_err_to_name(err));
ota_failed = 1;
break;
}
ESP_LOGI(TAG, "Image verified - Size: %u bytes, Version: %s", (unsigned int)firmware_size, app_version);
#ifdef CONFIG_OTA_VERSION_CHECK_SLAVEFW_SLAVE
/* Get current running slave firmware version and compare */
esp_hosted_coprocessor_fwver_t current_slave_version = {0};
esp_err_t version_ret = esp_hosted_get_coprocessor_fwversion(&current_slave_version);
if (version_ret == ESP_OK) {
char current_version_str[32];
snprintf(current_version_str, sizeof(current_version_str), "%" PRIu32 ".%" PRIu32 ".%" PRIu32,
current_slave_version.major1, current_slave_version.minor1, current_slave_version.patch1);
ESP_LOGI(TAG, "Current slave firmware version: %s", current_version_str);
ESP_LOGI(TAG, "New slave firmware version: %s", app_version);
if (strcmp(app_version, current_version_str) == 0) {
ESP_LOGW(TAG, "Current slave firmware version (%s) is the same as new version (%s). Skipping OTA.",
current_version_str, app_version);
/* Cleanup and return success */
free(ota_chunk);
esp_http_client_close(client);
esp_http_client_cleanup(client);
return ESP_HOSTED_SLAVE_OTA_NOT_REQUIRED;
}
ESP_LOGI(TAG, "Version differs - proceeding with OTA from %s to %s", current_version_str, app_version);
} else {
ESP_LOGW(TAG, "Could not get current slave firmware version (error: %s), proceeding with OTA",
esp_err_to_name(version_ret));
}
#else
ESP_LOGI(TAG, "Version check disabled - proceeding with OTA (new firmware version: %s)", app_version);
#endif
header_verified = true;
}
if ((err = esp_hosted_slave_ota_write(ota_chunk, data_read)) != ESP_OK) {
ESP_LOGE(TAG, "esp_hosted_slave_ota_write failed: %s", esp_err_to_name(err));
ota_failed = 1;
break;
}
chunk_count++;
}
/* Cleanup resources */
free(ota_chunk);
esp_http_client_close(client);
esp_http_client_cleanup(client);
/* Check for read errors */
if (data_read < 0) {
ESP_LOGE(TAG, "Error: HTTPS data read error");
ota_failed = 1;
}
/* End OTA */
if ((err = esp_hosted_slave_ota_end()) != ESP_OK) {
ESP_LOGE(TAG, "esp_ota_end failed, error=%s", esp_err_to_name(err));
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
/* Final result */
if (ota_failed) {
ESP_LOGE(TAG, "********* Slave OTA Failed *******************");
return ESP_HOSTED_SLAVE_OTA_FAILED;
} else {
ESP_LOGI(TAG, "********* Slave OTA Complete *******************");
return ESP_HOSTED_SLAVE_OTA_COMPLETED;
}
}
@@ -0,0 +1,25 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Perform HTTP OTA update
*
* @param url URL to download firmware from
* @return esp_err_t ESP_OK on success
*/
esp_err_t ota_https_perform(const char* url);
#ifdef __cplusplus
}
#endif
@@ -0,0 +1,133 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/* Miniature version of esp-idf example of Wi-Fi station,
* <esp-idf>/examples/wifi/getting_started/station/main/station_example_main.c
* */
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "esp_system.h"
#include "esp_wifi.h"
#include "esp_event.h"
#include "esp_log.h"
#include "lwip/err.h"
#include "lwip/sys.h"
#ifdef CONFIG_OTA_METHOD_HTTPS
#include "nvs_flash.h"
static const char* TAG = "ota_https_wifi";
#define EXAMPLE_ESP_WIFI_SSID CONFIG_ESP_WIFI_SSID
#define EXAMPLE_ESP_WIFI_PASS CONFIG_ESP_WIFI_PASSWORD
#define EXAMPLE_ESP_MAXIMUM_RETRY CONFIG_ESP_MAXIMUM_RETRY
#define WIFI_CONNECTED_BIT BIT0
#define WIFI_FAIL_BIT BIT1
/* FreeRTOS event group to signal when we are connected*/
static EventGroupHandle_t s_wifi_event_group;
static int s_retry_num = 0;
static void event_handler(void* arg, esp_event_base_t event_base,
int32_t event_id, void* event_data)
{
if (event_base == WIFI_EVENT && event_id == WIFI_EVENT_STA_START) {
esp_wifi_connect();
} else if (event_base == WIFI_EVENT && event_id == WIFI_EVENT_STA_DISCONNECTED) {
if (s_retry_num < EXAMPLE_ESP_MAXIMUM_RETRY) {
esp_wifi_connect();
s_retry_num++;
ESP_LOGI(TAG, "retry to connect to the AP");
} else {
xEventGroupSetBits(s_wifi_event_group, WIFI_FAIL_BIT);
}
ESP_LOGI(TAG,"connect to the AP fail");
} else if (event_base == IP_EVENT && event_id == IP_EVENT_STA_GOT_IP) {
ip_event_got_ip_t* event = (ip_event_got_ip_t*) event_data;
ESP_LOGI(TAG, "got ip:" IPSTR, IP2STR(&event->ip_info.ip));
s_retry_num = 0;
xEventGroupSetBits(s_wifi_event_group, WIFI_CONNECTED_BIT);
}
}
void wifi_init_sta(void)
{
s_wifi_event_group = xEventGroupCreate();
esp_netif_init();
esp_event_loop_create_default();
esp_netif_create_default_wifi_sta();
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
ESP_ERROR_CHECK(esp_wifi_init(&cfg));
esp_event_handler_instance_t instance_any_id;
esp_event_handler_instance_t instance_got_ip;
ESP_ERROR_CHECK(esp_event_handler_instance_register(WIFI_EVENT,
ESP_EVENT_ANY_ID,
&event_handler,
NULL,
&instance_any_id));
ESP_ERROR_CHECK(esp_event_handler_instance_register(IP_EVENT,
IP_EVENT_STA_GOT_IP,
&event_handler,
NULL,
&instance_got_ip));
wifi_config_t wifi_config = {
.sta = {
.ssid = EXAMPLE_ESP_WIFI_SSID,
.password = EXAMPLE_ESP_WIFI_PASS,
},
};
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA) );
ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_STA, &wifi_config) );
ESP_ERROR_CHECK(esp_wifi_start() );
ESP_LOGI(TAG, "wifi_init_sta finished.");
/* Waiting until either the connection is established (WIFI_CONNECTED_BIT) or connection failed for the maximum
* number of re-tries (WIFI_FAIL_BIT). The bits are set by event_handler() (see above) */
EventBits_t bits = xEventGroupWaitBits(s_wifi_event_group,
WIFI_CONNECTED_BIT | WIFI_FAIL_BIT,
pdFALSE,
pdFALSE,
portMAX_DELAY);
if (bits & WIFI_CONNECTED_BIT) {
ESP_LOGI(TAG, "connected to ap SSID:%s password:%s",
EXAMPLE_ESP_WIFI_SSID, EXAMPLE_ESP_WIFI_PASS);
} else if (bits & WIFI_FAIL_BIT) {
ESP_LOGI(TAG, "Failed to connect to SSID:%s, password:%s",
EXAMPLE_ESP_WIFI_SSID, EXAMPLE_ESP_WIFI_PASS);
} else {
ESP_LOGE(TAG, "UNEXPECTED EVENT");
}
}
esp_err_t establish_wifi_connection(void)
{
ESP_LOGI(TAG, "ESP_WIFI_MODE_STA");
wifi_init_sta();
EventBits_t bits = xEventGroupGetBits(s_wifi_event_group);
if (bits & WIFI_CONNECTED_BIT) {
return ESP_OK;
} else if (bits & WIFI_FAIL_BIT) {
ESP_LOGE(TAG, "WiFi connection failed after maximum retries");
return ESP_FAIL;
} else {
ESP_LOGE(TAG, "WiFi connection in unexpected state");
return ESP_ERR_INVALID_STATE;
}
}
#endif
@@ -0,0 +1,66 @@
# Test Server Tools
This directory contains tools for testing HTTPS OTA functionality with self-signed certificates.
## Files
- `create_self_signed_certs.sh` - Generates self-signed certificates for testing
- `create_https_server.py` - Simple HTTPS server for serving OTA files
- `README.md` - This file
## Quick Start
### 1. Generate Test Certificates
```bash
cd test_server
bash create_self_signed_certs.sh
```
### 2. Start HTTPS Server
```bash
cd test_server
python3 create_https_server.py
```
### 3. Configure ESP32
```bash
# From project root
eh.py menuconfig
```
Enable in menuconfig:
- `Component config` → `HTTPS OTA Configuration` → `Use self-signed certificate (Testing Only)` → **YES**
- Update `OTA Server URL` to the URL shown by the server
## Important Notes
- **Testing Only**: Self-signed certificates should only be used for testing
- **Security**: For production, use proper CA-signed certificates
- **IP Address**: The certificate is generated for your current IP address
- **Regenerate**: If your IP changes, regenerate certificates
## Troubleshooting
### Certificate not found error
```bash
# Make sure you're in test_server directory
cd test_server
bash create_self_signed_certs.sh
```
### Server won't start
- Check if port 8443 is available
- Ensure certificates exist in `../certs/`
```
ls ../certs/
server_cert.pem server_key.pem
```
- Run from `test_server/` directory
@@ -0,0 +1,79 @@
#!/usr/bin/env python3
# SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import http.server
import ssl
import socket
import os
import sys
def get_local_ip():
"""Get the local IP address of this machine"""
try:
# Connect to a remote address (doesn't actually send data)
with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as s:
s.connect(("8.8.8.8", 80))
return s.getsockname()[0]
except Exception:
return "127.0.0.1"
# Check if certificates exist (relative to component certs)
cert_path = '../certs/server_cert.pem'
key_path = '../certs/server_key.pem'
if not os.path.exists(cert_path) or not os.path.exists(key_path):
print("ERROR: Certificates not found!")
print(f"Please run: bash create_self_signed_certs.sh")
print(f"Looking for: {cert_path} and {key_path}")
print(f"Note: Run this server from components/ota_https/test_server/ directory")
sys.exit(1)
# Get local IP
local_ip = get_local_ip()
port = 8443
# Create HTTPS server
class CORSHTTPRequestHandler(http.server.SimpleHTTPRequestHandler):
def end_headers(self):
self.send_header('Access-Control-Allow-Origin', '*')
self.send_header('Access-Control-Allow-Methods', 'GET, POST, OPTIONS')
self.send_header('Access-Control-Allow-Headers', '*')
super().end_headers()
def log_message(self, format, *args):
"""Enhanced logging"""
print(f"[{self.date_time_string()}] {format % args}")
server_address = ('0.0.0.0', port)
httpd = http.server.HTTPServer(server_address, CORSHTTPRequestHandler)
# Configure SSL with proper settings for ESP32
ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
ssl_context.minimum_version = ssl.TLSVersion.TLSv1_2
ssl_context.set_ciphers('ECDHE+AESGCM:ECDHE+CHACHA20:DHE+AESGCM:DHE+CHACHA20:!aNULL:!MD5:!DSS')
ssl_context.load_cert_chain(cert_path, key_path)
# Wrap socket with SSL
httpd.socket = ssl_context.wrap_socket(httpd.socket, server_side=True)
print("=" * 60)
print("HTTPS OTA Server Started Successfully!")
print("=" * 60)
print(f"Server running on: https://{local_ip}:{port}")
print(f"Serving files from: {os.getcwd()}")
print(f"Using certificates:")
print(f" Cert: {cert_path}")
print(f" Key: {key_path}")
print("")
print("ESP32 Configuration:")
print(f" Set OTA_HTTP_URL to: https://{local_ip}:{port}/firmware.bin")
print("")
print("To test, place your firmware.bin file in this directory")
print("Press Ctrl+C to stop the server")
print("=" * 60)
try:
httpd.serve_forever()
except KeyboardInterrupt:
print("\n🛑 Server stopped by user")
httpd.server_close()
@@ -0,0 +1,55 @@
#!/bin/bash
# Create certificates for HTTPS OTA testing
# This script should be run from the component's test_server directory
# Create a directory for certificates in the component's certs folder
mkdir -p ../certs
cd ../certs
# Get your machine's IP address
IP_ADDRESS=$(ipconfig getifaddr en0 2>/dev/null || ipconfig getifaddr en1 2>/dev/null || echo "192.168.1.100")
echo "Creating certificate for IP: $IP_ADDRESS"
echo "If this IP is incorrect, please update the CN field manually"
# Generate private key
openssl genrsa -out server_key.pem 2048
# Generate self-signed certificate (valid for 365 days)
# Use your actual IP address as Common Name
openssl req -new -x509 -key server_key.pem -out server_cert.pem -days 365 \
-subj "/C=US/ST=State/L=City/O=ESP-OTA/CN=$IP_ADDRESS" \
-extensions v3_req \
-config <(cat <<EOF
[req]
distinguished_name = req_distinguished_name
req_extensions = v3_req
prompt = no
[req_distinguished_name]
C = US
ST = State
L = City
O = ESP-OTA
CN = $IP_ADDRESS
[v3_req]
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectAltName = @alt_names
[alt_names]
IP.1 = $IP_ADDRESS
IP.2 = 127.0.0.1
DNS.1 = localhost
EOF
)
# View certificate details
echo "Certificate created with the following details:"
openssl x509 -in server_cert.pem -text -noout | grep -A 5 "Subject:"
openssl x509 -in server_cert.pem -text -noout | grep -A 10 "Subject Alternative Name"
echo ""
echo "IMPORTANT: Your HTTPS server must run on IP: $IP_ADDRESS"
echo "Update your Kconfig OTA_HTTP_URL to: https://$IP_ADDRESS:8443/firmware.bin"
@@ -0,0 +1,53 @@
# LittleFS OTA Component CMakeLists.txt
# This component handles LittleFS-based OTA updates
# Only process firmware files if LittleFS OTA is actually selected
message(STATUS "🔍 LittleFS OTA: CONFIG_OTA_METHOD_LITTLEFS = ${CONFIG_OTA_METHOD_LITTLEFS}")
if(CONFIG_OTA_METHOD_LITTLEFS)
set(SRC_LIST "ota_littlefs.c")
# Check if we have any firmware files (just for early validation)
file(GLOB SLAVE_FW_BIN_FILES "${CMAKE_CURRENT_SOURCE_DIR}/slave_fw_bin/*.bin")
if(NOT SLAVE_FW_BIN_FILES)
message(WARNING "🔴 LittleFS OTA: No .bin files found in slave_fw_bin directory!")
endif()
else()
# LittleFS OTA not selected, skip firmware processing
message(STATUS "LittleFS OTA: Not selected, skipping firmware processing")
endif()
# Register the component
idf_component_register(SRCS ${SRC_LIST}
INCLUDE_DIRS "."
PRIV_REQUIRES "littlefs" "esp_hosted" "bootloader_support" "esp_app_format")
# Create LittleFS partition image after component registration
if(CONFIG_OTA_METHOD_LITTLEFS)
set(TEMP_LITTLEFS_DIR "${CMAKE_CURRENT_BINARY_DIR}/temp_littlefs")
# Create a custom target that runs the common script to find newest firmware dynamically
add_custom_target(prepare_littlefs_temp
COMMAND ${CMAKE_COMMAND}
-DSOURCE_COMPONENT_DIR=${CMAKE_CURRENT_SOURCE_DIR}
-DBINARY_COMPONENT_DIR=${CMAKE_CURRENT_BINARY_DIR}
-DCOMPONENT_NAME=LittleFS OTA
-DOTA_ACTION=prepare_littlefs
-P ${CMAKE_CURRENT_SOURCE_DIR}/../common_ota_scripts/find_newest_firmware.cmake
COMMENT "LittleFS OTA: Dynamically finding and preparing newest firmware"
VERBATIM
)
# Make the target depend on all firmware files so it rebuilds when they change
file(GLOB CURRENT_FIRMWARE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/slave_fw_bin/*.bin")
if(CURRENT_FIRMWARE_FILES)
add_custom_target(firmware_files_dependency DEPENDS ${CURRENT_FIRMWARE_FILES})
add_dependencies(prepare_littlefs_temp firmware_files_dependency)
endif()
# Create the LittleFS partition image with proper dependency
littlefs_create_partition_image(storage ${TEMP_LITTLEFS_DIR} FLASH_IN_PROJECT DEPENDS prepare_littlefs_temp)
# No POST_BUILD cleanup of TEMP_LITTLEFS_DIR: attaching it to ${COMPONENT_LIB}
# races the storage-image target (which reads that dir) under parallel ninja and
# intermittently deletes it first. The dir lives in the build tree (cleaned on a
# clean build), so leaving it is harmless.
endif()
@@ -0,0 +1,454 @@
/*
* SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* ESP-Hosted LittleFS OTA Component
* ================================
*
* Reads ESP32 slave firmware from LittleFS filesystem and performs OTA update.
*
* FEATURES:
* - Firmware validation (magic number, image header)
* - Version checking against current slave firmware
* - Chunked transfer to slave device
* - Optional firmware file deletion after successful flash
*
* APIs USED:
* - esp_hosted_get_coprocessor_fwversion() - Get slave firmware version
* - esp_hosted_slave_ota_begin() - Initialize OTA session
* - esp_hosted_slave_ota_write() - Transfer firmware chunks
* - esp_hosted_slave_ota_end() - Finalize OTA session
* - esp_hosted_slave_ota_activate() - (if current slave FW > v2.5.X only) - ** Called from main.c **
*/
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <dirent.h>
#include <sys/stat.h>
#include "esp_log.h"
#include "esp_err.h"
#include "esp_littlefs.h"
#include "esp_hosted_ota.h"
#include <unistd.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_app_format.h"
#include "esp_app_desc.h"
#include "esp_hosted.h"
#include "esp_hosted_api_types.h"
static const char* TAG = "ota_littlefs";
#ifndef CHUNK_SIZE
/* 1500 + RPC envelope (~26B) > MAX_PAYLOAD_SIZE (1524) — see Drift B in
* task list re: envelope size diff vs upstream. 1400 matches ota_https.c. */
#define CHUNK_SIZE 1400
#endif
/* Function to parse ESP32 image header and get firmware info from file */
static esp_err_t parse_image_header_from_file(const char* file_path, size_t* firmware_size, char* app_version_str, size_t version_str_len)
{
FILE* file;
esp_image_header_t image_header;
esp_image_segment_header_t segment_header;
esp_app_desc_t app_desc;
size_t offset = 0;
size_t total_size = 0;
file = fopen(file_path, "rb");
if (file == NULL) {
ESP_LOGE(TAG, "Failed to open firmware file for header verification: %s", file_path);
return ESP_FAIL;
}
/* Read image header */
if (fread(&image_header, sizeof(image_header), 1, file) != 1) {
ESP_LOGE(TAG, "Failed to read image header from file");
fclose(file);
return ESP_FAIL;
}
/* Validate magic number */
if (image_header.magic != ESP_IMAGE_HEADER_MAGIC) {
ESP_LOGE(TAG, "Invalid image magic: 0x%" PRIx8 " (expected: 0x%" PRIx8 ")", image_header.magic, ESP_IMAGE_HEADER_MAGIC);
ESP_LOGE(TAG, "This indicates the file is not a valid ESP32 firmware image!");
ESP_LOGE(TAG, "Please ensure you have flashed the correct firmware binary to the LittleFS partition.");
fclose(file);
return ESP_ERR_INVALID_ARG;
}
ESP_LOGI(TAG, "Image header: magic=0x%" PRIx8 ", segment_count=%" PRIu8 ", hash_appended=%" PRIu8,
image_header.magic, image_header.segment_count, image_header.hash_appended);
/* Calculate total size by reading all segments */
offset = sizeof(image_header);
total_size = sizeof(image_header);
for (int i = 0; i < image_header.segment_count; i++) {
/* Read segment header */
if (fseek(file, offset, SEEK_SET) != 0 ||
fread(&segment_header, sizeof(segment_header), 1, file) != 1) {
ESP_LOGE(TAG, "Failed to read segment %d header", i);
fclose(file);
return ESP_FAIL;
}
ESP_LOGI(TAG, "Segment %d: data_len=%" PRIu32 ", load_addr=0x%" PRIx32, i, segment_header.data_len, segment_header.load_addr);
/* Add segment header size + data size */
total_size += sizeof(segment_header) + segment_header.data_len;
offset += sizeof(segment_header) + segment_header.data_len;
/* Read app description from the first segment */
if (i == 0) {
size_t app_desc_offset = sizeof(image_header) + sizeof(segment_header);
if (fseek(file, app_desc_offset, SEEK_SET) == 0 &&
fread(&app_desc, sizeof(app_desc), 1, file) == 1) {
strncpy(app_version_str, app_desc.version, version_str_len - 1);
app_version_str[version_str_len - 1] = '\0';
ESP_LOGI(TAG, "Found app description: version='%s', project_name='%s'",
app_desc.version, app_desc.project_name);
} else {
ESP_LOGW(TAG, "Failed to read app description");
strncpy(app_version_str, "unknown", version_str_len - 1);
app_version_str[version_str_len - 1] = '\0';
}
}
}
/* Add padding to align to 16 bytes */
size_t padding = (16 - (total_size % 16)) % 16;
if (padding > 0) {
ESP_LOGD(TAG, "Adding %u bytes of padding for alignment", (unsigned int)padding);
total_size += padding;
}
/* Add the checksum byte (always present) */
total_size += 1;
ESP_LOGD(TAG, "Added 1 byte for checksum");
/* Add SHA256 hash if appended */
bool has_hash = (image_header.hash_appended == 1);
if (has_hash) {
total_size += 32; // SHA256 hash is 32 bytes
ESP_LOGD(TAG, "Added 32 bytes for SHA256 hash (hash_appended=1)");
} else {
ESP_LOGD(TAG, "No SHA256 hash appended (hash_appended=0)");
}
*firmware_size = total_size;
ESP_LOGI(TAG, "Total image size: %u bytes", (unsigned int)*firmware_size);
fclose(file);
return ESP_OK;
}
/* Find latest firmware file in LittleFS */
static esp_err_t find_latest_firmware(char* firmware_path, size_t max_len)
{
DIR *dir;
struct dirent *entry;
struct stat file_stat;
char *latest_file = malloc(256); // Use heap instead of stack
char *full_path = malloc(512); // Use heap for full path
if (!latest_file || !full_path) {
ESP_LOGE(TAG, "Failed to allocate memory for file search");
if (latest_file) free(latest_file);
if (full_path) free(full_path);
return ESP_ERR_NO_MEM;
}
memset(latest_file, 0, 256);
dir = opendir("/littlefs");
if (dir == NULL) {
ESP_LOGE(TAG, "Failed to open /littlefs directory");
free(latest_file);
free(full_path);
return ESP_FAIL;
}
ESP_LOGI(TAG, "Successfully opened /littlefs directory");
/* Find the first .bin file (since timestamps might not be reliable in LittleFS) */
while ((entry = readdir(dir)) != NULL) {
ESP_LOGI(TAG, "Found file: %s", entry->d_name);
if (strstr(entry->d_name, ".bin") != NULL) {
ESP_LOGI(TAG, "Found .bin file: %s", entry->d_name);
snprintf(full_path, 512, "/littlefs/%s", entry->d_name);
if (stat(full_path, &file_stat) == 0) {
ESP_LOGI(TAG, "File stat successful for %s, size: %ld", entry->d_name, file_stat.st_size);
/* Use the first .bin file found */
strncpy(latest_file, entry->d_name, 255);
latest_file[255] = '\0'; // Ensure null termination
ESP_LOGI(TAG, "Using firmware file: %s", latest_file);
break; // Use the first .bin file found
} else {
ESP_LOGW(TAG, "Failed to stat file: %s", full_path);
}
}
}
closedir(dir);
ESP_LOGI(TAG, "Final latest_file: '%s', length: %d", latest_file, strlen(latest_file));
if (strlen(latest_file) == 0) {
ESP_LOGE(TAG, "No valid .bin firmware files found in /littlefs directory!");
ESP_LOGE(TAG, "Please ensure:");
ESP_LOGE(TAG, " - The firmware binary has a .bin extension");
ESP_LOGE(TAG, " - The binary is flashed to the 'storage' partition");
ESP_LOGE(TAG, " - The binary is a valid ESP32 firmware image");
ESP_LOGE(TAG, "Refer to documentation for partition table setup and flashing instructions.");
free(latest_file);
free(full_path);
return ESP_FAIL;
}
// Ensure we don't overflow the destination buffer
if (snprintf(firmware_path, max_len, "/littlefs/%s", latest_file) >= max_len) {
ESP_LOGE(TAG, "Firmware path too long");
free(latest_file);
free(full_path);
return ESP_FAIL;
}
ESP_LOGI(TAG, "Found latest firmware: %s", firmware_path);
// Clean up allocated memory
free(latest_file);
free(full_path);
return ESP_OK;
}
/* Function to check if LittleFS partition has any files */
static esp_err_t check_littlefs_files(void)
{
DIR *dir;
struct dirent *entry;
int file_count = 0;
dir = opendir("/littlefs");
if (dir == NULL) {
ESP_LOGE(TAG, "Failed to open /littlefs directory");
return ESP_FAIL;
}
ESP_LOGI(TAG, "Checking contents of /littlefs partition:");
while ((entry = readdir(dir)) != NULL) {
/* Skip . and .. directories */
if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) {
continue;
}
file_count++;
ESP_LOGI(TAG, " Found: %s", entry->d_name);
}
closedir(dir);
if (file_count == 0) {
ESP_LOGW(TAG, "LittleFS partition is empty! No firmware files found.");
ESP_LOGW(TAG, "Please ensure you have:");
ESP_LOGW(TAG, " 1. Created a 'storage' partition in your partition table");
ESP_LOGW(TAG, " 2. Flashed a firmware binary to the LittleFS partition");
ESP_LOGW(TAG, " 3. Or used 'idf.py flash' with the firmware binary");
ESP_LOGW(TAG, "Refer to the documentation for detailed setup instructions.");
return ESP_ERR_NOT_FOUND;
}
ESP_LOGI(TAG, "Found %d file(s) in LittleFS partition", file_count);
return ESP_OK;
}
esp_err_t ota_littlefs_perform(bool delete_after_use)
{
char *firmware_path = malloc(256); // Use heap instead of stack
FILE *firmware_file;
uint8_t *chunk = malloc(CHUNK_SIZE); // Use heap for chunk buffer
size_t bytes_read;
esp_err_t ret = ESP_OK;
if (!firmware_path || !chunk) {
ESP_LOGE(TAG, "Failed to allocate memory");
if (firmware_path) free(firmware_path);
if (chunk) free(chunk);
return ESP_ERR_NO_MEM;
}
ESP_LOGI(TAG, "Starting LittleFS OTA process");
/* Initialize LittleFS */
ESP_LOGI(TAG, "Initializing LittleFS filesystem");
esp_vfs_littlefs_conf_t conf = {
.base_path = "/littlefs",
.partition_label = "storage",
.format_if_mount_failed = true,
.dont_mount = false,
};
ret = esp_vfs_littlefs_register(&conf);
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to initialize LittleFS: %s", esp_err_to_name(ret));
free(firmware_path);
free(chunk);
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
ESP_LOGI(TAG, "LittleFS filesystem registered successfully");
/* Check if LittleFS partition has any files */
ret = check_littlefs_files();
if (ret == ESP_ERR_NOT_FOUND) {
ESP_LOGW(TAG, "OTA cannot proceed - no firmware files found in LittleFS partition");
esp_vfs_littlefs_unregister("storage");
free(firmware_path);
free(chunk);
return ESP_HOSTED_SLAVE_OTA_FAILED;
} else if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to check LittleFS partition contents");
esp_vfs_littlefs_unregister("storage");
free(firmware_path);
free(chunk);
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
/* Get filesystem info */
size_t total = 0, used = 0;
ret = esp_littlefs_info("storage", &total, &used);
if (ret != ESP_OK) {
ESP_LOGW(TAG, "Failed to get LittleFS partition information (%s)", esp_err_to_name(ret));
} else {
ESP_LOGI(TAG, "LittleFS partition size: total: %d, used: %d", total, used);
}
/* Find the latest firmware file */
ESP_LOGI(TAG, "Searching for firmware files in LittleFS");
ret = find_latest_firmware(firmware_path, 256);
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to find firmware file");
esp_vfs_littlefs_unregister("storage");
free(firmware_path);
free(chunk);
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
ESP_LOGI(TAG, "Firmware file found: %s", firmware_path);
/* Verify image header and get firmware info */
size_t firmware_size;
char new_app_version[32];
ret = parse_image_header_from_file(firmware_path, &firmware_size, new_app_version, sizeof(new_app_version));
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to parse image header: %s", esp_err_to_name(ret));
esp_vfs_littlefs_unregister("storage");
free(firmware_path);
free(chunk);
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
ESP_LOGI(TAG, "Firmware verified - Size: %u bytes, Version: %s", (unsigned int)firmware_size, new_app_version);
#ifdef CONFIG_OTA_VERSION_CHECK_SLAVEFW_SLAVE
/* Get current running slave firmware version */
esp_hosted_coprocessor_fwver_t current_slave_version = {0};
esp_err_t version_ret = esp_hosted_get_coprocessor_fwversion(&current_slave_version);
if (version_ret == ESP_OK) {
char current_version_str[32];
snprintf(current_version_str, sizeof(current_version_str), "%" PRIu32 ".%" PRIu32 ".%" PRIu32,
current_slave_version.major1, current_slave_version.minor1, current_slave_version.patch1);
ESP_LOGI(TAG, "Current slave firmware version: %s", current_version_str);
ESP_LOGI(TAG, "New slave firmware version: %s", new_app_version);
if (strcmp(new_app_version, current_version_str) == 0) {
ESP_LOGW(TAG, "Current slave firmware version (%s) is the same as new version (%s). Skipping OTA.",
current_version_str, new_app_version);
esp_vfs_littlefs_unregister("storage");
free(firmware_path);
free(chunk);
return ESP_HOSTED_SLAVE_OTA_NOT_REQUIRED;
}
ESP_LOGI(TAG, "Version differs - proceeding with OTA from %s to %s", current_version_str, new_app_version);
} else {
ESP_LOGW(TAG, "Could not get current slave firmware version (error: %s), proceeding with OTA",
esp_err_to_name(version_ret));
}
#else
ESP_LOGI(TAG, "Version check disabled - proceeding with OTA (new firmware version: %s)", new_app_version);
#endif
/* Open firmware file */
firmware_file = fopen(firmware_path, "rb");
if (firmware_file == NULL) {
ESP_LOGE(TAG, "Failed to open firmware file: %s", firmware_path);
esp_vfs_littlefs_unregister("storage");
free(firmware_path);
free(chunk);
return ESP_FAIL;
}
ESP_LOGI(TAG, "Starting OTA from LittleFS: %s", firmware_path);
/* Begin OTA */
ret = esp_hosted_slave_ota_begin();
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to begin OTA: %s", esp_err_to_name(ret));
fclose(firmware_file);
esp_vfs_littlefs_unregister("storage");
free(firmware_path);
free(chunk);
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
/* Write firmware in chunks */
while ((bytes_read = fread(chunk, 1, CHUNK_SIZE, firmware_file)) > 0) {
ret = esp_hosted_slave_ota_write(chunk, bytes_read);
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to write OTA chunk: %s", esp_err_to_name(ret));
fclose(firmware_file);
esp_vfs_littlefs_unregister("storage");
free(firmware_path);
free(chunk);
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
}
fclose(firmware_file);
/* End OTA */
ret = esp_hosted_slave_ota_end();
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to end OTA: %s", esp_err_to_name(ret));
esp_vfs_littlefs_unregister("storage");
free(firmware_path);
free(chunk);
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
ESP_LOGI(TAG, "LittleFS OTA completed successfully");
/* Delete firmware file if requested */
if (delete_after_use) {
if (unlink(firmware_path) == 0) {
ESP_LOGI(TAG, "Deleted firmware file: %s", firmware_path);
} else {
ESP_LOGW(TAG, "Failed to delete firmware file: %s", firmware_path);
}
}
esp_vfs_littlefs_unregister("storage");
/* Clean up allocated memory */
free(firmware_path);
free(chunk);
return ESP_HOSTED_SLAVE_OTA_COMPLETED;
}
@@ -0,0 +1,25 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Perform LittleFS OTA update
*
* @param delete_after_use Whether to delete firmware file after successful flash
* @return esp_err_t ESP_OK on success
*/
esp_err_t ota_littlefs_perform(bool delete_after_use);
#ifdef __cplusplus
}
#endif
@@ -0,0 +1,3 @@
# This directory should contain .bin firmware files for LittleFS OTA
# Place your slave firmware binaries here before building
# Git tracks this file to ensure the directory exists in the repository
@@ -0,0 +1,29 @@
# Slave Firmware Binaries for LittleFS OTA
This directory should contain ESP32 slave firmware `.bin` files for LittleFS-based OTA updates.
## Usage
1. Copy your slave firmware binary (e.g., `network_adapter.bin`) to this directory
2. Build the project with `CONFIG_OTA_METHOD_LITTLEFS=y`
3. The build system will automatically:
- Find the newest `.bin` file in this directory
- Create a LittleFS partition image containing the firmware
- Flash it to the `storage` partition
## Important Notes
- Only `.bin` files are recognized
- If multiple files exist, the newest one (by timestamp) is used
- The firmware must be a valid ESP32 binary with proper image header
- This directory is only used during build time, not runtime
## Example
```bash
# Copy your slave firmware here
cp /path/to/your/slave/build/network_adapter.bin ./slave_fw_bin/
# Then build the project
eh.py -p <host_port> build flash monitor
```
@@ -0,0 +1,89 @@
# Partition OTA Component CMakeLists.txt
# This component handles Partition-based OTA updates
idf_component_register(
SRCS "ota_partition.c"
INCLUDE_DIRS "."
PRIV_REQUIRES "esp_partition" "esp_hosted" "bootloader_support" "esp_app_format"
)
if(CONFIG_OTA_METHOD_PARTITION)
# --- Step 0: Get partition offset from partition table ---
set(SLAVE_FW_PARTITION_NAME "slave_fw")
file(READ "${CMAKE_SOURCE_DIR}/partitions.csv" PARTITION_TABLE_CONTENT)
# Require comma immediately after the partition name so descriptive
# comments containing "slave_fw" (e.g. the table-of-contents header) don't
# accidentally match and capture "Offset" from the column-header row.
string(REGEX MATCH "${SLAVE_FW_PARTITION_NAME},[^,]*,[^,]*,[ ]*([^,]*)" PARTITION_MATCH "${PARTITION_TABLE_CONTENT}")
if(PARTITION_MATCH)
string(REGEX REPLACE "${SLAVE_FW_PARTITION_NAME},[^,]*,[^,]*,[ ]*([^,]*)" "\\1" SLAVE_FW_OFFSET "${PARTITION_MATCH}")
string(STRIP "${SLAVE_FW_OFFSET}" SLAVE_FW_OFFSET)
message(STATUS "✅ Partition OTA: Found ${SLAVE_FW_PARTITION_NAME} partition at offset: ${SLAVE_FW_OFFSET}")
else()
set(SLAVE_FW_OFFSET "0x5F0000") # Fallback to hardcoded value
message(WARNING "⚠️ Partition OTA: Could not find ${SLAVE_FW_PARTITION_NAME} in partitions.csv, using fallback offset: ${SLAVE_FW_OFFSET}")
endif()
# --- Step 1: Check if firmware files exist (early validation) ---
message(STATUS "🔍 Partition OTA: Checking for firmware files...")
file(GLOB SLAVE_FW_BIN_FILES "${CMAKE_CURRENT_SOURCE_DIR}/slave_fw_bin/*.bin")
if(SLAVE_FW_BIN_FILES)
message(STATUS "✅ Partition OTA: Found firmware files for dynamic selection")
# Get Python and esptool path from IDF
idf_build_get_property(PYTHON PYTHON)
idf_build_get_property(ESPTOOL_PATH ESPTOOL_PATH)
# Create a target that dynamically selects the newest firmware
add_custom_target(select_partition_firmware
COMMAND ${CMAKE_COMMAND}
-DSOURCE_COMPONENT_DIR=${CMAKE_CURRENT_SOURCE_DIR}
-DBINARY_COMPONENT_DIR=${CMAKE_CURRENT_BINARY_DIR}
-DCOMPONENT_NAME=Partition OTA
-DOTA_ACTION=select_for_partition
-P ${CMAKE_CURRENT_SOURCE_DIR}/../common_ota_scripts/find_newest_firmware.cmake
COMMENT "Partition OTA: Dynamically selecting newest firmware"
VERBATIM
)
# Create a target that flashes the selected firmware
add_custom_target(flash_slave_fw
DEPENDS select_partition_firmware
COMMAND ${CMAKE_COMMAND}
-DBINARY_COMPONENT_DIR=${CMAKE_CURRENT_BINARY_DIR}
-DSLAVE_FW_OFFSET=${SLAVE_FW_OFFSET}
-DPYTHON=${PYTHON}
-DCOMPONENT_NAME=Partition OTA
-P ${CMAKE_CURRENT_SOURCE_DIR}/../common_ota_scripts/flash_selected_firmware.cmake
COMMENT "Partition OTA: Flashing selected firmware to partition"
VERBATIM
)
# Make flash_slave_fw depend on the main project binary being built successfully
idf_build_get_property(project_name PROJECT_NAME)
add_dependencies(flash_slave_fw ${project_name}.elf)
# Add flash_slave_fw to the flash target only after successful build
add_dependencies(flash flash_slave_fw)
else()
message(WARNING "⚠️ Partition OTA: No .bin files found in slave_fw_bin directory. Nothing to flash.")
# Add warning target for flash command when no slave firmware present
add_custom_target(warn_no_slave_fw
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "⚠️ WARNING: Partition OTA is enabled but no slave firmware found!"
COMMAND ${CMAKE_COMMAND} -E echo " Expected: .bin files in components/ota_partition/slave_fw_bin/"
COMMAND ${CMAKE_COMMAND} -E echo " Current flash will only flash the host application"
COMMAND ${CMAKE_COMMAND} -E echo " The partition at ${SLAVE_FW_OFFSET} will not be flashed this time"
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMENT "Warning: No slave firmware binaries found"
VERBATIM
)
# Make flash target show this warning
add_dependencies(flash warn_no_slave_fw)
endif()
endif()
@@ -0,0 +1,336 @@
/*
* SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* ESP-Hosted Partition OTA Component
* =================================
*
* Reads ESP32 slave firmware from dedicated flash partition and performs OTA update.
*
* FEATURES:
* - Firmware validation (magic number, image header)
* - Version checking against current slave firmware
* - Direct partition reading with chunked transfer
* - Robust error handling for partition access issues
*
* APIs USED:
* - esp_hosted_get_coprocessor_fwversion() - Get slave firmware version
* - esp_hosted_slave_ota_begin() - Initialize OTA session
* - esp_hosted_slave_ota_write() - Transfer firmware chunks
* - esp_hosted_slave_ota_end() - Finalize OTA session
* - esp_hosted_slave_ota_activate() - (if current slave FW > v2.5.X only) - ** Called from main.c **
*/
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "esp_log.h"
#include "esp_err.h"
#include "esp_partition.h"
#include "esp_hosted_ota.h"
#include "esp_app_format.h"
#include "esp_app_desc.h"
#include "esp_hosted.h"
#include "esp_hosted_api_types.h"
static const char* TAG = "ota_partition";
#ifndef CHUNK_SIZE
#define CHUNK_SIZE 1500
#endif
/* Function to check if partition contains valid firmware data */
static esp_err_t check_partition_has_firmware(const esp_partition_t* partition)
{
uint8_t buffer[256];
esp_err_t ret;
size_t total_checked = 0;
size_t check_size = sizeof(buffer);
ESP_LOGI(TAG, "Checking if partition '%s' contains firmware data...", partition->label);
/* Check first 1KB of partition for any non-0xFF data */
while (total_checked < 1024 && total_checked < partition->size) {
check_size = (1024 - total_checked > sizeof(buffer)) ? sizeof(buffer) : (1024 - total_checked);
ret = esp_partition_read(partition, total_checked, buffer, check_size);
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to read partition data for validation: %s", esp_err_to_name(ret));
return ret;
}
/* Check if all bytes are 0xFF (empty partition) */
bool all_ff = true;
for (size_t i = 0; i < check_size; i++) {
if (buffer[i] != 0xFF) {
all_ff = false;
break;
}
}
if (!all_ff) {
ESP_LOGI(TAG, "Found non-empty data in partition at offset %u", (unsigned int)total_checked);
return ESP_OK; /* Found some data */
}
total_checked += check_size;
}
if (total_checked >= 1024) {
ESP_LOGW(TAG, "Partition appears to be empty or uninitialized (first 1KB is all 0xFF)!");
ESP_LOGW(TAG, "");
ESP_LOGW(TAG, "---- OPTION 1 ----");
ESP_LOGW(TAG, "Keep Slave FW <here> and `idf.py fullclean` & `idf.py flash` again");
ESP_LOGW(TAG, " - host_performs_slave_ota/");
ESP_LOGW(TAG, " └── components/");
ESP_LOGW(TAG, " └── ota_partition/ # Slave OTA using Host Partition method");
ESP_LOGW(TAG, " └── slave_fw_bin/ # Put slave .bin files here");
ESP_LOGW(TAG, "");
ESP_LOGW(TAG, " OR");
ESP_LOGW(TAG, "");
ESP_LOGW(TAG, "---- OPTION 2 ----");
ESP_LOGW(TAG, " 1. Create a '%s' partition in your host partition table", partition->label);
ESP_LOGW(TAG, " 2. Flashed desired slave firmware binary to this partition using 'idf.py partition-table-flash && idf.py app-flash' or similar");
return ESP_ERR_NOT_FOUND;
}
return ESP_OK;
}
/* Function to parse ESP32 image header and get firmware info */
static esp_err_t parse_image_header(const esp_partition_t* partition, size_t* firmware_size, char* app_version_str, size_t version_str_len)
{
esp_image_header_t image_header;
esp_image_segment_header_t segment_header;
esp_app_desc_t app_desc;
esp_err_t ret;
size_t offset = 0;
size_t total_size = 0;
/* Read image header */
ret = esp_partition_read(partition, offset, &image_header, sizeof(image_header));
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to read image header: %s", esp_err_to_name(ret));
return ret;
}
/* Validate magic number */
if (image_header.magic != ESP_IMAGE_HEADER_MAGIC) {
ESP_LOGE(TAG, "Invalid image magic: 0x%" PRIx8 " (expected: 0x%" PRIx8 ")", image_header.magic, ESP_IMAGE_HEADER_MAGIC);
ESP_LOGE(TAG, "This indicates the partition does not contain a valid ESP32 firmware image!");
ESP_LOGE(TAG, "Please ensure you have flashed firmware to the '%s' partition.", partition->label);
ESP_LOGE(TAG, "Use 'idf.py partition-table-flash && idf.py flash' or similar command.");
return ESP_ERR_INVALID_ARG;
}
ESP_LOGI(TAG, "Image header: magic=0x%" PRIx8 ", segment_count=%" PRIu8 ", hash_appended=%" PRIu8,
image_header.magic, image_header.segment_count, image_header.hash_appended);
/* Calculate total size by reading all segments */
offset = sizeof(image_header);
total_size = sizeof(image_header);
for (int i = 0; i < image_header.segment_count; i++) {
/* Read segment header */
ret = esp_partition_read(partition, offset, &segment_header, sizeof(segment_header));
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to read segment %d header: %s", i, esp_err_to_name(ret));
return ret;
}
ESP_LOGI(TAG, "Segment %d: data_len=%" PRIu32 ", load_addr=0x%" PRIx32, i, segment_header.data_len, segment_header.load_addr);
/* Add segment header size + data size */
total_size += sizeof(segment_header) + segment_header.data_len;
offset += sizeof(segment_header) + segment_header.data_len;
/* Read app description from the first segment */
if (i == 0) {
size_t app_desc_offset = sizeof(image_header) + sizeof(segment_header);
ret = esp_partition_read(partition, app_desc_offset, &app_desc, sizeof(app_desc));
if (ret == ESP_OK) {
strncpy(app_version_str, app_desc.version, version_str_len - 1);
app_version_str[version_str_len - 1] = '\0';
ESP_LOGI(TAG, "Found app description: version='%s', project_name='%s'",
app_desc.version, app_desc.project_name);
} else {
ESP_LOGW(TAG, "Failed to read app description: %s", esp_err_to_name(ret));
strncpy(app_version_str, "unknown", version_str_len - 1);
app_version_str[version_str_len - 1] = '\0';
}
}
}
/* Add padding to align to 16 bytes */
size_t padding = (16 - (total_size % 16)) % 16;
if (padding > 0) {
ESP_LOGD(TAG, "Adding %u bytes of padding for alignment", (unsigned int)padding);
total_size += padding;
}
/* Add the checksum byte (always present) */
total_size += 1;
ESP_LOGD(TAG, "Added 1 byte for checksum");
/* Add SHA256 hash if appended */
bool has_hash = (image_header.hash_appended == 1);
if (has_hash) {
/* ESP-IDF pads to 16-byte alignment AFTER checksum, before hash */
size_t hash_padding = (16 - (total_size % 16)) % 16;
total_size += hash_padding;
total_size += 32; // SHA256 hash is 32 bytes
ESP_LOGD(TAG, "Added %u bytes padding + 32 bytes for SHA256 hash", (unsigned int)hash_padding);
} else {
ESP_LOGD(TAG, "No SHA256 hash appended (hash_appended=0)");
}
*firmware_size = total_size;
ESP_LOGI(TAG, "Total image size: %u bytes", (unsigned int)*firmware_size);
/* Debug: Read last 48 bytes to verify structure */
uint8_t tail_data[48];
size_t tail_offset = (total_size > 48) ? (total_size - 48) : 0;
ret = esp_partition_read(partition, tail_offset, tail_data, 48);
if (ret == ESP_OK) {
ESP_LOGD(TAG, "Last 48 bytes of image (offset %u):", (unsigned int)tail_offset);
ESP_LOG_BUFFER_HEX_LEVEL(TAG, tail_data, 48, ESP_LOG_DEBUG);
}
return ESP_OK;
}
esp_err_t ota_partition_perform(const char* partition_label)
{
const esp_partition_t* partition;
esp_err_t ret = ESP_OK;
uint8_t chunk[CHUNK_SIZE];
size_t bytes_read;
size_t offset = 0;
size_t firmware_size;
char new_app_version[32];
ESP_LOGI(TAG, "Starting Partition OTA from partition: %s", partition_label);
/* Find the partition */
partition = esp_partition_find_first(ESP_PARTITION_TYPE_DATA, ESP_PARTITION_SUBTYPE_ANY, partition_label);
if (partition == NULL) {
ESP_LOGE(TAG, "Partition '%s' not found", partition_label);
return ESP_FAIL;
}
ESP_LOGI(TAG, "Found partition: %s, size: %" PRIu32 " bytes", partition->label, partition->size);
/* Check if partition contains any firmware data */
ret = check_partition_has_firmware(partition);
if (ret == ESP_ERR_NOT_FOUND) {
ESP_LOGW(TAG, "OTA cannot proceed - partition appears to be empty or uninitialized");
return ESP_HOSTED_SLAVE_OTA_FAILED;
} else if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to check partition contents: %s", esp_err_to_name(ret));
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
/* Parse image header to get firmware size and version */
ret = parse_image_header(partition, &firmware_size, new_app_version, sizeof(new_app_version));
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to parse image header: %s", esp_err_to_name(ret));
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
ESP_LOGI(TAG, "Firmware verified - Size: %u bytes, Version: %s", (unsigned int)firmware_size, new_app_version);
#ifdef CONFIG_OTA_VERSION_CHECK_SLAVEFW_SLAVE
/* Get current running slave firmware version */
esp_hosted_coprocessor_fwver_t current_slave_version = {0};
esp_err_t version_ret = esp_hosted_get_coprocessor_fwversion(&current_slave_version);
if (version_ret == ESP_OK) {
char current_version_str[32];
snprintf(current_version_str, sizeof(current_version_str), "%" PRIu32 ".%" PRIu32 ".%" PRIu32,
current_slave_version.major1, current_slave_version.minor1, current_slave_version.patch1);
ESP_LOGI(TAG, "Current slave firmware version: %s", current_version_str);
ESP_LOGI(TAG, "New slave firmware version: %s", new_app_version);
if (strcmp(new_app_version, current_version_str) == 0) {
ESP_LOGW(TAG, "Current slave firmware version (%s) is the same as new version (%s). Skipping OTA.",
current_version_str, new_app_version);
return ESP_HOSTED_SLAVE_OTA_NOT_REQUIRED;
}
ESP_LOGI(TAG, "Version differs - proceeding with OTA from %s to %s", current_version_str, new_app_version);
} else {
ESP_LOGW(TAG, "Could not get current slave firmware version (error: %s), proceeding with OTA",
esp_err_to_name(version_ret));
}
#else
ESP_LOGI(TAG, "Version check disabled - proceeding with OTA (new firmware version: %s)", new_app_version);
#endif
/* Validate firmware size */
if (firmware_size == 0) {
ESP_LOGE(TAG, "Firmware size is 0, cannot proceed with OTA");
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
if (firmware_size > partition->size) {
ESP_LOGE(TAG, "Firmware size (%u) exceeds partition size (%" PRIu32 ")", (unsigned int)firmware_size, partition->size);
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
ESP_LOGI(TAG, "Proceeding with OTA - Firmware size: %u bytes", (unsigned int)firmware_size);
/* Begin OTA */
ret = esp_hosted_slave_ota_begin();
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to begin OTA: %s", esp_err_to_name(ret));
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
/* Read firmware from partition in chunks - only up to actual firmware size */
uint32_t total_bytes_sent = 0;
uint32_t chunk_count = 0;
while (offset < firmware_size) {
bytes_read = (firmware_size - offset > CHUNK_SIZE) ? CHUNK_SIZE : (firmware_size - offset);
ret = esp_partition_read(partition, offset, chunk, bytes_read);
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to read partition: %s", esp_err_to_name(ret));
esp_hosted_slave_ota_end();
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
ret = esp_hosted_slave_ota_write(chunk, bytes_read);
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to write OTA chunk %" PRIu32 ": %s", chunk_count, esp_err_to_name(ret));
esp_hosted_slave_ota_end();
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
total_bytes_sent += bytes_read;
offset += bytes_read;
chunk_count++;
/* Progress indicator */
if (chunk_count % 50 == 0) {
ESP_LOGD(TAG, "Progress: %" PRIu32 "/%u bytes (%.1f%%)",
total_bytes_sent, (unsigned int)firmware_size, (float)total_bytes_sent * 100 / firmware_size);
}
}
ESP_LOGD(TAG, "Total chunks sent: %" PRIu32 ", Total bytes sent: %" PRIu32, chunk_count, total_bytes_sent);
/* End OTA */
ret = esp_hosted_slave_ota_end();
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to end OTA: %s", esp_err_to_name(ret));
return ESP_HOSTED_SLAVE_OTA_FAILED;
}
ESP_LOGI(TAG, "Partition OTA completed successfully - Sent %u bytes", (unsigned int)firmware_size);
return ESP_HOSTED_SLAVE_OTA_COMPLETED;
}
@@ -0,0 +1,25 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Perform Partition OTA update
*
* @param partition_label Label of the partition containing firmware
* @return esp_err_t ESP_OK on success
*/
esp_err_t ota_partition_perform(const char* partition_label);
#ifdef __cplusplus
}
#endif
@@ -0,0 +1,3 @@
# This directory should contain .bin firmware files for Partition OTA
# Place your slave firmware binaries here before building
# Git tracks this file to ensure the directory exists in the repository
@@ -0,0 +1,34 @@
# Slave Firmware Binaries for Partition OTA
This directory should contain ESP32 slave firmware `.bin` files for partition-based OTA updates.
## Usage
1. Copy your slave firmware binary (e.g., `network_adapter.bin`) to this directory
2. Ensure your `partitions.csv` has a partition labeled `slave_fw` (or as configured in Kconfig)
3. Build the project with `CONFIG_OTA_METHOD_PARTITION=y`
4. The build system will automatically:
- Find the newest `.bin` file in this directory
- Flash it directly to the dedicated partition during `eh.py flash`
## Important Notes
- Only `.bin` files are recognized
- If multiple files exist, the newest one (by timestamp) is used
- The firmware must be a valid ESP32 binary with proper image header
- This directory is only used during build time for flashing, not runtime
- The partition must be defined in your partition table
## Example
```bash
# Copy your slave firmware here
cp /path/to/your/slave/build/network_adapter.bin ./slave_fw_bin/
# Ensure partitions.csv has something like:
# slave_fw, data, 0x40, 0x5F0000, 0x200000,
# Then build and flash the project
eh.py fullclean
eh.py -p <host_port> build flash monitor
```
@@ -0,0 +1,14 @@
# Simple component selection based on Kconfig
if(CONFIG_EH_USE_LEGACY_API)
set(_main_src "legacy/main.c")
else()
set(_main_src "main.c")
endif()
# main.c #if-selects the header of the chosen OTA method's component. Kconfig
# values are NOT available during component-requirements expansion, so require
# all three method components unconditionally — main.c picks the one to use.
idf_component_register(SRCS "${_main_src}"
INCLUDE_DIRS "."
REQUIRES esp_hosted console esp_timer
PRIV_REQUIRES esp_app_format ota_https ota_littlefs ota_partition)
@@ -0,0 +1,137 @@
menu "ESP-Hosted Coprocessor OTA Config"
choice OTA_METHOD
prompt "Select OTA Method"
default OTA_METHOD_HTTPS
help
Choose the OTA method for updating slave firmware.
config OTA_METHOD_HTTPS
bool "HTTP OTA"
help
Download firmware from HTTPS URL
config OTA_METHOD_LITTLEFS
bool "LittleFS OTA"
help
Read firmware from LittleFS filesystem
config OTA_METHOD_PARTITION
bool "Partition OTA"
help
Read firmware from dedicated partition
endchoice
########### OTA with Partition ########
config OTA_PARTITION_LABEL
string "Partition Label"
depends on OTA_METHOD_PARTITION
default "slave_fw"
help
Label of the partition containing firmware
########### OTA with Littlefs #########
config OTA_DELETE_FILE_AFTER_FLASH
depends on OTA_METHOD_LITTLEFS
bool "Delete OTA file from LittleFS/FatFS etc, once finished"
default y
########### OTA with HTTPS ############
menu "WiFi Connection"
depends on OTA_METHOD_HTTPS
config ESP_WIFI_SSID
string "WiFi SSID"
default "MyWiFiSSID"
help
SSID (network name) for the example to connect to.
config ESP_WIFI_PASSWORD
string "WiFi Password"
default "MyWiFiPass@123"
help
WiFi password (WPA or WPA2) for the example to use.
config ESP_MAXIMUM_RETRY
int "Maximum retry"
default 5
help
Set the Maximum retry to avoid station reconnecting to the AP unlimited when the AP is really inexistent.
endmenu
menu "HTTPS OTA Configuration"
depends on OTA_METHOD_HTTPS
config OTA_USE_SELF_SIGNED_CERT
bool "Use self-signed certificate (Testing Only)"
default n
help
Enable this ONLY for testing with self-signed certificates.
Disable for production use with CA-signed certificates.
When enabled, the component will use an embedded certificate
from certs/server_cert.pem for HTTPS validation.
When disabled, the component will use the ESP32 CA certificate
bundle which supports major CAs like Let's Encrypt, DigiCert, etc.
config OTA_SKIP_CERT_CN_CHECK
bool "Skip certificate Common Name check"
depends on OTA_USE_SELF_SIGNED_CERT
default n
help
Skip Common Name validation in self-signed certificates.
Only enable if you cannot match the CN with your server IP/hostname.
WARNING: This reduces security. Use only for testing.
config OTA_HTTPS_TIMEOUT_MS
int "HTTPS connection timeout (milliseconds)"
default 30000
range 5000 120000
help
Timeout for HTTPS connection and SSL handshake.
Increase if you have slow network or server.
config OTA_SERVER_URL
string "OTA Server URL"
default "https://192.168.1.3:8443/firmware.bin"
help
HTTPS URL of the OTA firmware file.
Must start with https://
endmenu
########### OTA Verification Options ############
menu "OTA Verification Options"
config OTA_VERSION_CHECK_HOST_SLAVE
bool "Host-Slave version compatibility check"
default y
help
Check if host and slave firmware have compatible major.minor versions.
If host is X.Y.Z and slave is A.B.C, warn if X.Y != A.B.
This ensures compatible API versions between host and slave.
config OTA_VERSION_CHECK_SLAVEFW_SLAVE
bool "Skip OTA if slave firmware versions match"
default y
help
Compare current running slave firmware version with new firmware version.
Skip OTA if versions are identical to avoid unnecessary updates.
Disable this to force OTA even when versions match.
endmenu
config EH_USE_LEGACY_API
bool "Use legacy esp_hosted_* compat-surface main"
default n
help
Build the example from main/legacy/main.c (preserves the
esp_hosted_* compat surface) instead of main/main.c (which
uses native eh_host_* APIs).
endmenu
@@ -0,0 +1,16 @@
dependencies:
cmd_nvs:
path: ${IDF_PATH}/examples/system/console/advanced/components/cmd_nvs
cmd_system:
path: ${IDF_PATH}/examples/system/console/advanced/components/cmd_system
espressif/esp_hosted:
rules:
- if: target in [esp32p4, esp32h2]
version: '*'
espressif/esp_wifi_remote:
rules:
- if: target in [esp32p4, esp32h2]
- if: idf_version <6.1
version: '>=1.3.1'
joltwallet/littlefs:
version: '*'
+278
View File
@@ -0,0 +1,278 @@
/*
* SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* ESP-Hosted Slave OTA Example
* ===========================
*
* This example demonstrates how to perform Over-The-Air (OTA) updates on the
* ESP32 slave device (co-processor) from the ESP32 host device.
*
* SUPPORTED OTA METHODS:
* ----------------------
* 1. HTTPS OTA: Download firmware from remote HTTPS URL
* 2. LittleFS OTA: Flash firmware stored in ESP32's LittleFS filesystem
* 3. Partition OTA: Flash firmware stored in dedicated ESP32 partition
*
* VERSION CHECKING & VERIFICATIONS:
* ---------------------------------
* - Host-Slave Compatibility Check (optional, CONFIG_OTA_VERSION_CHECK_HOST_SLAVE):
* Compares major.minor versions between host and slave ESP-Hosted stacks
* Ensures API compatibility to prevent communication issues
*
* - Slave Firmware Version Check for Activate API:
* Checks if slave supports esp_hosted_slave_ota_activate() (requires v2.6.0+)
* API availability determined by: (major > 2) || (major == 2 && minor > 5)
*
* ESP-HOSTED OTA APIs USED:
* -------------------------
* Slave OTA APIs (embedded in OTA methods):
* - esp_hosted_slave_ota_begin() - Initialize OTA session
* - esp_hosted_slave_ota_write() - Write firmware chunks
* - esp_hosted_slave_ota_end() - Finalize OTA session
*
* Slave OTA API (called from main.c):
* - esp_hosted_slave_ota_activate() - Activate new firmware (only for current slave FW > v2.5.X)
*
* OTA METHOD API MAPPING:
* -----------------------
* ota_https_perform() -> Calls: begin() + write() + end()
* ota_littlefs_perform() -> Calls: begin() + write() + end()
* ota_partition_perform() -> Calls: begin() + write() + end()
*
* EXECUTION FLOW:
* ---------------
* 1. Initialize ESP-Hosted connection
* 2. Check version compatibility (optional)
* 3. Execute selected OTA method
* 4. Conditionally activate new firmware
* 5. Restart host for resync
*/
#include <stdio.h>
#include <inttypes.h>
#include "esp_log.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "esp_event.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_err.h"
#include "esp_hosted.h"
#include "esp_hosted_ota.h"
#include "esp_timer.h"
#include "esp_app_desc.h"
#include "esp_hosted_api_types.h"
#include "esp_check.h"
#if CONFIG_OTA_METHOD_HTTPS
#include "ota_https.h"
#elif CONFIG_OTA_METHOD_LITTLEFS
#include "ota_littlefs.h"
#elif CONFIG_OTA_METHOD_PARTITION
#include "ota_partition.h"
#endif
static const char *TAG = "host_performs_slave_ota";
#ifdef CONFIG_OTA_VERSION_CHECK_HOST_SLAVE
/**
* @brief Compare host and slave firmware versions
*
* Compares major.minor versions only (ignoring patch level)
*
* @return 0 if versions match
* -1 if host version > slave version (slave needs upgrade)
* 1 if host version < slave version (host needs upgrade)
*/
static int compare_versions(uint32_t slave_version)
{
uint32_t host_version = ESP_HOSTED_VERSION_VAL(ESP_HOSTED_VERSION_MAJOR_1,
ESP_HOSTED_VERSION_MINOR_1,
ESP_HOSTED_VERSION_PATCH_1);
// Compare major.minor only (ignore patch level)
slave_version &= 0xFFFFFF00;
host_version &= 0xFFFFFF00;
if (host_version == slave_version) {
return 0; // Versions match
} else if (host_version > slave_version) {
#ifndef CONFIG_ESP_HOSTED_FW_VERSION_MISMATCH_WARNING_SUPPRESS
ESP_LOGW(TAG, "Version mismatch: Host [%u.%u.%u] > Co-proc [%u.%u.%u] ==> Upgrade co-proc to avoid RPC timeouts",
ESP_HOSTED_VERSION_PRINTF_ARGS(host_version), ESP_HOSTED_VERSION_PRINTF_ARGS(slave_version));
#endif
return -1; // Host newer, slave needs upgrade
} else {
#ifndef CONFIG_ESP_HOSTED_FW_VERSION_MISMATCH_WARNING_SUPPRESS
ESP_LOGW(TAG, "Version mismatch: Host [%u.%u.%u] < Co-proc [%u.%u.%u] ==> Upgrade host to avoid compatibility issues",
ESP_HOSTED_VERSION_PRINTF_ARGS(host_version), ESP_HOSTED_VERSION_PRINTF_ARGS(slave_version));
#endif
return 1; // Slave newer, host needs upgrade
}
}
/**
* @brief Check if host and slave firmware versions are compatible
*
* @return 0 if versions are compatible (OTA not needed)
* -1 if slave needs upgrade
* 1 if host needs upgrade
*/
static int check_version_compatibility(void)
{
esp_hosted_coprocessor_fwver_t slave_version = {0};
esp_err_t ret = esp_hosted_get_coprocessor_fwversion(&slave_version);
if (ret != ESP_OK) {
ESP_LOGW(TAG, "Could not get slave firmware version (error: %s)", esp_err_to_name(ret));
ESP_LOGW(TAG, "Proceeding without version compatibility check");
return -1; // Assume upgrade needed
}
ESP_LOGI(TAG, "Host firmware version: %d.%d.%d",
ESP_HOSTED_VERSION_MAJOR_1, ESP_HOSTED_VERSION_MINOR_1, ESP_HOSTED_VERSION_PATCH_1);
ESP_LOGI(TAG, "Slave firmware version: %" PRIu32 ".%" PRIu32 ".%" PRIu32,
slave_version.major1, slave_version.minor1, slave_version.patch1);
uint32_t slave_ver = ESP_HOSTED_VERSION_VAL(slave_version.major1,
slave_version.minor1,
slave_version.patch1);
return compare_versions(slave_ver);
}
#endif
/**
* @brief Execute OTA update based on configured method
*
* Supports three OTA methods:
* - HTTPS: Download firmware from URL
* - LittleFS: Flash firmware from filesystem
* - Partition: Flash firmware from partition
*
* @return ESP_HOSTED_SLAVE_OTA_COMPLETED if successful
* ESP_HOSTED_SLAVE_OTA_NOT_REQUIRED if not needed
* Error code otherwise
*/
static int perform_slave_ota(void)
{
#if CONFIG_OTA_METHOD_HTTPS
ESP_LOGW(TAG, "Starting OTA via HTTPS");
ESP_LOGW(TAG, "URL: %s", CONFIG_OTA_SERVER_URL);
return ota_https_perform(CONFIG_OTA_SERVER_URL);
#elif CONFIG_OTA_METHOD_LITTLEFS
uint8_t delete_after_flash = 0;
ESP_LOGW(TAG, "Starting OTA via LittleFS");
#ifdef CONFIG_OTA_DELETE_FILE_AFTER_FLASH
delete_after_flash = 1;
#endif
return ota_littlefs_perform(delete_after_flash);
#elif CONFIG_OTA_METHOD_PARTITION
ESP_LOGW(TAG, "Starting OTA via Partition");
ESP_LOGW(TAG, "Partition label: %s", CONFIG_OTA_PARTITION_LABEL);
return ota_partition_perform(CONFIG_OTA_PARTITION_LABEL);
#else
ESP_LOGE(TAG, "No OTA method configured!");
return ESP_FAIL;
#endif
}
/**
* @brief Activate new firmware and restart host
*
* Checks if slave firmware supports activate API (v2.6.0+)
* If supported, activates the new firmware
* Then restarts the host to resync with slave
*/
static void activate_and_restart(void)
{
bool activate_supported = false;
esp_hosted_coprocessor_fwver_t slave_version = {0};
// Check if activate API is available (v2.6.0+)
if (esp_hosted_get_coprocessor_fwversion(&slave_version) == ESP_OK) {
ESP_LOGI(TAG, "Slave firmware version: %" PRIu32 ".%" PRIu32 ".%" PRIu32,
slave_version.major1, slave_version.minor1, slave_version.patch1);
if ((slave_version.major1 > 2) ||
(slave_version.major1 == 2 && slave_version.minor1 > 5)) {
activate_supported = true;
}
} else {
ESP_LOGW(TAG, "Could not detect slave version");
}
// Activate new firmware if supported
if (activate_supported) {
esp_err_t ret = esp_hosted_slave_ota_activate();
if (ret == ESP_OK) {
ESP_LOGI(TAG, "New firmware activated - slave will reboot");
} else {
ESP_LOGE(TAG, "Failed to activate firmware: %s", esp_err_to_name(ret));
}
} else {
ESP_LOGI(TAG, "Activate API not supported (requires v2.6.0+)");
}
// Restart host to resync with slave
ESP_LOGW(TAG, "Restarting host to resync with slave...");
esp_err_t deinit_rc = esp_hosted_deinit();
if (deinit_rc != ESP_OK) {
ESP_LOGW(TAG, "esp_hosted_deinit failed before restart: %s",
esp_err_to_name(deinit_rc));
}
vTaskDelay(pdMS_TO_TICKS(2000));
esp_restart();
}
/**
* @brief Main application entry point
*
* Flow:
* 1. Initialize ESP-Hosted
* 2. Check version compatibility (optional)
* 3. Perform OTA if needed
* 4. Activate and restart
*/
void app_main(void)
{
// Step 1: Initialize system
ESP_LOGI(TAG, "Initializing ESP-Hosted...");
ESP_ERROR_CHECK(nvs_flash_init());
ESP_ERROR_CHECK(esp_event_loop_create_default());
ESP_ERROR_CHECK(esp_hosted_init());
ESP_ERROR_CHECK(esp_hosted_connect_to_slave());
ESP_LOGI(TAG, "ESP-Hosted initialized successfully");
// Step 2: Check version compatibility (if enabled)
#ifdef CONFIG_OTA_VERSION_CHECK_HOST_SLAVE
int version_check = check_version_compatibility();
if (version_check == 0) {
ESP_LOGI(TAG, "Versions compatible - OTA not required");
return;
}
#endif
// Step 3: Perform OTA update
ESP_LOGI(TAG, "Starting slave OTA update...");
int ret = perform_slave_ota();
// Step 4: Handle OTA result
if (ret == ESP_HOSTED_SLAVE_OTA_COMPLETED) {
ESP_LOGI(TAG, "OTA completed successfully!");
activate_and_restart();
} else if (ret == ESP_HOSTED_SLAVE_OTA_NOT_REQUIRED) {
ESP_LOGI(TAG, "OTA not required - slave firmware is up to date");
} else {
ESP_LOGE(TAG, "OTA failed with error: %s", esp_err_to_name(ret));
}
}
+190
View File
@@ -0,0 +1,190 @@
/*
* SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/* Native eh_host_* API; legacy compat under main/legacy/main.c. */
#include <stdio.h>
#include <inttypes.h>
#include "esp_log.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "esp_event.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_err.h"
#include "eh_host.h"
#include "eh_host_core.h"
#include "eh_host_cp_ota.h"
#include "eh_host_api_types.h"
#include "eh_host_sys.h"
#include "esp_hosted_host_fw_ver.h"
#include "esp_hosted_ota.h"
#include "esp_timer.h"
#include "esp_app_desc.h"
#include "esp_check.h"
#if CONFIG_OTA_METHOD_HTTPS
#include "ota_https.h"
#elif CONFIG_OTA_METHOD_LITTLEFS
#include "ota_littlefs.h"
#elif CONFIG_OTA_METHOD_PARTITION
#include "ota_partition.h"
#endif
static const char *TAG = "host_performs_slave_ota";
#ifdef CONFIG_OTA_VERSION_CHECK_HOST_SLAVE
/* 0 = match, -1 = host newer, 1 = slave newer. major.minor only. */
static int compare_versions(uint32_t slave_version)
{
uint32_t host_version = ESP_HOSTED_VERSION_VAL(ESP_HOSTED_VERSION_MAJOR_1,
ESP_HOSTED_VERSION_MINOR_1,
ESP_HOSTED_VERSION_PATCH_1);
slave_version &= 0xFFFFFF00;
host_version &= 0xFFFFFF00;
if (host_version == slave_version) {
return 0;
} else if (host_version > slave_version) {
#ifndef CONFIG_ESP_HOSTED_FW_VERSION_MISMATCH_WARNING_SUPPRESS
ESP_LOGW(TAG, "Version mismatch: Host [%u.%u.%u] > Co-proc [%u.%u.%u] ==> Upgrade co-proc to avoid RPC timeouts",
ESP_HOSTED_VERSION_PRINTF_ARGS(host_version), ESP_HOSTED_VERSION_PRINTF_ARGS(slave_version));
#endif
return -1;
} else {
#ifndef CONFIG_ESP_HOSTED_FW_VERSION_MISMATCH_WARNING_SUPPRESS
ESP_LOGW(TAG, "Version mismatch: Host [%u.%u.%u] < Co-proc [%u.%u.%u] ==> Upgrade host to avoid compatibility issues",
ESP_HOSTED_VERSION_PRINTF_ARGS(host_version), ESP_HOSTED_VERSION_PRINTF_ARGS(slave_version));
#endif
return 1;
}
}
static int check_version_compatibility(void)
{
eh_host_coprocessor_fwver_t slave_version = {0};
esp_err_t ret = eh_host_sys_get_cp_fw_version(&slave_version);
if (ret != ESP_OK) {
ESP_LOGW(TAG, "Could not get slave firmware version (error: %s)", esp_err_to_name(ret));
ESP_LOGW(TAG, "Proceeding without version compatibility check");
return -1;
}
ESP_LOGI(TAG, "Host firmware version: %d.%d.%d",
ESP_HOSTED_VERSION_MAJOR_1, ESP_HOSTED_VERSION_MINOR_1, ESP_HOSTED_VERSION_PATCH_1);
ESP_LOGI(TAG, "Slave firmware version: %" PRIu32 ".%" PRIu32 ".%" PRIu32,
slave_version.major1, slave_version.minor1, slave_version.patch1);
uint32_t slave_ver = ESP_HOSTED_VERSION_VAL(slave_version.major1,
slave_version.minor1,
slave_version.patch1);
return compare_versions(slave_ver);
}
#endif
static int perform_slave_ota(void)
{
#if CONFIG_OTA_METHOD_HTTPS
ESP_LOGW(TAG, "Starting OTA via HTTPS");
ESP_LOGW(TAG, "URL: %s", CONFIG_OTA_SERVER_URL);
return ota_https_perform(CONFIG_OTA_SERVER_URL);
#elif CONFIG_OTA_METHOD_LITTLEFS
uint8_t delete_after_flash = 0;
ESP_LOGW(TAG, "Starting OTA via LittleFS");
#ifdef CONFIG_OTA_DELETE_FILE_AFTER_FLASH
delete_after_flash = 1;
#endif
return ota_littlefs_perform(delete_after_flash);
#elif CONFIG_OTA_METHOD_PARTITION
ESP_LOGW(TAG, "Starting OTA via Partition");
ESP_LOGW(TAG, "Partition label: %s", CONFIG_OTA_PARTITION_LABEL);
return ota_partition_perform(CONFIG_OTA_PARTITION_LABEL);
#else
ESP_LOGE(TAG, "No OTA method configured!");
return ESP_FAIL;
#endif
}
/* Activates new firmware (slave v2.6.0+) and restarts host to resync. */
static void activate_and_restart(void)
{
bool activate_supported = false;
eh_host_coprocessor_fwver_t slave_version = {0};
if (eh_host_sys_get_cp_fw_version(&slave_version) == ESP_OK) {
ESP_LOGI(TAG, "Slave firmware version: %" PRIu32 ".%" PRIu32 ".%" PRIu32,
slave_version.major1, slave_version.minor1, slave_version.patch1);
if ((slave_version.major1 > 2) ||
(slave_version.major1 == 2 && slave_version.minor1 > 5)) {
activate_supported = true;
}
} else {
ESP_LOGW(TAG, "Could not detect slave version");
}
if (activate_supported) {
esp_err_t ret = eh_host_cp_ota_activate();
if (ret == ESP_OK) {
ESP_LOGI(TAG, "New firmware activated - slave will reboot");
} else {
ESP_LOGE(TAG, "Failed to activate firmware: %s", esp_err_to_name(ret));
}
} else {
ESP_LOGI(TAG, "Activate API not supported (requires v2.6.0+)");
}
ESP_LOGW(TAG, "Restarting host to resync with slave...");
esp_err_t deinit_rc = eh_host_deinit();
if (deinit_rc != ESP_OK) {
ESP_LOGW(TAG, "eh_host_deinit failed before restart: %s",
esp_err_to_name(deinit_rc));
}
/* Must outlast the coprocessor's OTA_ACTIVATE_RESTART_TIMEOUT plus its
* boot, measured at ~600 ms. Resetting it inside the pending-verify
* window makes BOOTLOADER_APP_ROLLBACK revert the update, and the OTA
* silently does not stick. */
vTaskDelay(pdMS_TO_TICKS(2000));
esp_restart();
}
void app_main(void)
{
ESP_LOGI(TAG, "Initializing ESP-Hosted...");
ESP_ERROR_CHECK(nvs_flash_init());
ESP_ERROR_CHECK(esp_event_loop_create_default());
ESP_ERROR_CHECK(eh_host_init(NULL));
ESP_ERROR_CHECK(eh_host_connect_to_slave());
ESP_LOGI(TAG, "ESP-Hosted initialized successfully");
#ifdef CONFIG_OTA_VERSION_CHECK_HOST_SLAVE
int version_check = check_version_compatibility();
if (version_check == 0) {
ESP_LOGI(TAG, "Versions compatible - OTA not required");
return;
}
#endif
ESP_LOGI(TAG, "Starting slave OTA update...");
int ret = perform_slave_ota();
if (ret == ESP_HOSTED_SLAVE_OTA_COMPLETED) {
ESP_LOGI(TAG, "OTA completed successfully!");
activate_and_restart();
} else if (ret == ESP_HOSTED_SLAVE_OTA_NOT_REQUIRED) {
ESP_LOGI(TAG, "OTA not required - slave firmware is up to date");
} else {
ESP_LOGE(TAG, "OTA failed with error: %s", esp_err_to_name(ret));
}
}
+23
View File
@@ -0,0 +1,23 @@
# Universal partition table for all OTA methods (HTTPS / LittleFS / Partition).
# Mirrors upstream esp_hosted/examples/host_performs_slave_ota/partitions.csv.
#
# Layout (8 MB flash, host = ESP32-P4):
# nvs 16K — config / Wi-Fi credentials
# otadata 8K — IDF OTA bookkeeping (which slot is active)
# phy_init 4K — RF calibration data
# ota_0 2M @ 0x010000 — host firmware A
# ota_1 2M @ 0x210000 — host firmware B
# storage 1920K @ 0x410000 — LittleFS partition (used by OTA_METHOD_LITTLEFS:
# the host stages the slave .bin into this FS,
# then streams it over RPC).
# slave_fw 2M @ 0x5F0000 — raw partition (used by OTA_METHOD_PARTITION:
# host reads slave .bin straight from flash).
#
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 16K,
otadata, data, ota, 0xd000, 8K,
phy_init, data, phy, 0xf000, 4K,
ota_0, app, ota_0, 0x10000, 2M,
ota_1, app, ota_1, 0x210000, 2M,
storage, data, littlefs, 0x410000, 0x1E0000,
slave_fw, data, 0x40, 0x5F0000, 0x200000,
1 # Universal partition table for all OTA methods (HTTPS / LittleFS / Partition).
2 # Mirrors upstream esp_hosted/examples/host_performs_slave_ota/partitions.csv.
3 #
4 # Layout (8 MB flash, host = ESP32-P4):
5 # nvs 16K — config / Wi-Fi credentials
6 # otadata 8K — IDF OTA bookkeeping (which slot is active)
7 # phy_init 4K — RF calibration data
8 # ota_0 2M @ 0x010000 — host firmware A
9 # ota_1 2M @ 0x210000 — host firmware B
10 # storage 1920K @ 0x410000 — LittleFS partition (used by OTA_METHOD_LITTLEFS:
11 # the host stages the slave .bin into this FS,
12 # then streams it over RPC).
13 # slave_fw 2M @ 0x5F0000 — raw partition (used by OTA_METHOD_PARTITION:
14 # host reads slave .bin straight from flash).
15 #
16 # Name, Type, SubType, Offset, Size, Flags
17 nvs, data, nvs, 0x9000, 16K,
18 otadata, data, ota, 0xd000, 8K,
19 phy_init, data, phy, 0xf000, 4K,
20 ota_0, app, ota_0, 0x10000, 2M,
21 ota_1, app, ota_1, 0x210000, 2M,
22 storage, data, littlefs, 0x410000, 0x1E0000,
23 slave_fw, data, 0x40, 0x5F0000, 0x200000,
@@ -0,0 +1,23 @@
# Coprocessor OTA Example — host (MCU)
# Role: HOST (MCU / ESP-IDF)
CONFIG_ESP_HOSTED=y
CONFIG_ESP_HOSTED_HOST_FEAT_WIFI=y
# Custom partition table — ota_0/1 for HTTPS, storage for LittleFS, slave_fw for Partition.
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
# 8MB replaced below
CONFIG_FREERTOS_HZ=1000
# --- Waveshare ESP32-P4-Nano ---
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
CONFIG_ESPTOOLPY_FLASHSIZE="16MB"
CONFIG_ESP_CONSOLE_UART_DEFAULT=y
CONFIG_SLAVE_IDF_TARGET_ESP32C6=y
# C6 image comes from a raw flash partition (slave_fw), written at flash time
CONFIG_OTA_METHOD_PARTITION=y
+5
View File
@@ -0,0 +1,5 @@
build/
sdkconfig
sdkconfig.old
managed_components/
dependencies.lock
+3
View File
@@ -0,0 +1,3 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(p4_probe)
Loaded 100 of 104 files, more files were not shown because too many files have changed in this diff. Show more