The controller now builds for the Waveshare ESP32-P4-Nano only (plus the linux sim and the desktop); the S3 stays for the USB/network bridge in bridge/. - radio-c6/: C6 firmware, esp-hosted plus ESP-NOW over peer data. The P4 loads it from the slave_fw partition when the C6 runs another version (c6_update.c) - bridge_hosted.c: the C6 as the always-on "c6" bridge, and the P4 as a network bridge on UDP 8766 for the desktop - Ethernet on the P4's EMAC, ES8311 mic; default address 192.168.50.20. The W5500, INMP441 and direct ESP-NOW code is gone - The simulated rig at /sim/ is built into the board image, with an always-on "browser" bridge. Its frames go through a queue so a slow page cannot hold up the radio, and frames for simulated bars are not sent over the C6. Receiver buffers are on the heap; a bar's flash file is only written when it changes - HTTP server: more handlers, sockets and stack for the rig - docs/P4_NANO.md, README and Makefile updated; graphify output Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 line
16 KiB
JSON
1 line
16 KiB
JSON
{"nodes": [{"id": "$graphify-root$_main_c6_update_c", "label": "c6_update.c", "file_type": "code", "source_file": "main/c6_update.c", "source_location": "L1"}, {"id": "$graphify-root$_main_c6_update_image_size", "label": "image_size()", "file_type": "code", "source_file": "main/c6_update.c", "source_location": "L26", "_callable": true}, {"id": "esp_partition_t", "label": "esp_partition_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/main/c6_update.c"}, {"id": "$graphify-root$_main_c6_update_on_version", "label": "on_version()", "file_type": "code", "source_file": "main/c6_update.c", "source_location": "L50", "_callable": true}, {"id": "$graphify-root$_main_c6_update_c6_version", "label": "c6_version()", "file_type": "code", "source_file": "main/c6_update.c", "source_location": "L61", "_callable": true}, {"id": "$graphify-root$_main_c6_update_c6_update_if_needed", "label": "c6_update_if_needed()", "file_type": "code", "source_file": "main/c6_update.c", "source_location": "L79", "_callable": true}], "edges": [{"source": "$graphify-root$_main_c6_update_c", "target": "sdkconfig", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L1", "weight": 1.0, "metadata": {"raw_include": "sdkconfig.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_c6_update_c", "target": "$graphify-root$_main_c6_update_h", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L3", "weight": 1.0, "target_file": "$graphify-root$/main/c6_update.h"}, {"source": "$graphify-root$_main_c6_update_c", "target": "string", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L5", "weight": 1.0}, {"source": "$graphify-root$_main_c6_update_c", "target": "esp_app_desc", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L6", "weight": 1.0, "metadata": {"raw_include": "esp_app_desc.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_c6_update_c", "target": "esp_hosted", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L7", "weight": 1.0, "metadata": {"raw_include": "esp_hosted.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_c6_update_c", "target": "esp_hosted_ota", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L8", "weight": 1.0, "metadata": {"raw_include": "esp_hosted_ota.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_c6_update_c", "target": "esp_image_format", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L9", "weight": 1.0, "metadata": {"raw_include": "esp_image_format.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_c6_update_c", "target": "esp_log", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L10", "weight": 1.0, "metadata": {"raw_include": "esp_log.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_c6_update_c", "target": "esp_partition", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L11", "weight": 1.0, "metadata": {"raw_include": "esp_partition.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_c6_update_c", "target": "esp_system", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L12", "weight": 1.0, "metadata": {"raw_include": "esp_system.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_c6_update_c", "target": "nvs", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L13", "weight": 1.0, "metadata": {"raw_include": "nvs.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_c6_update_c", "target": "eh_host_feat_peer_data", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L14", "weight": 1.0, "metadata": {"raw_include": "eh_host_feat_peer_data.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_c6_update_c", "target": "semphr", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L15", "weight": 1.0, "metadata": {"raw_include": "freertos/semphr.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_c6_update_c", "target": "radio_proto", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L16", "weight": 1.0, "metadata": {"raw_include": "radio_proto.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_c6_update_c", "target": "freertos", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L17", "weight": 1.0, "metadata": {"raw_include": "freertos/FreeRTOS.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_c6_update_c", "target": "task", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L18", "weight": 1.0, "metadata": {"raw_include": "freertos/task.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_c6_update_c", "target": "$graphify-root$_main_c6_update_image_size", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L26", "weight": 1.0}, {"source": "$graphify-root$_main_c6_update_image_size", "target": "esp_partition_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L26", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_main_c6_update_c", "target": "$graphify-root$_main_c6_update_on_version", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L50", "weight": 1.0}, {"source": "$graphify-root$_main_c6_update_c", "target": "$graphify-root$_main_c6_update_c6_version", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L61", "weight": 1.0}, {"source": "$graphify-root$_main_c6_update_c", "target": "$graphify-root$_main_c6_update_c6_update_if_needed", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L79", "weight": 1.0}, {"source": "$graphify-root$_main_c6_update_c6_update_if_needed", "target": "$graphify-root$_main_c6_update_image_size", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L86", "weight": 1.0}, {"source": "$graphify-root$_main_c6_update_c6_update_if_needed", "target": "$graphify-root$_main_c6_update_c6_version", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "main/c6_update.c", "source_location": "L94", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_main_c6_update_image_size", "callee": "esp_partition_read", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L29", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_image_size", "callee": "esp_partition_read", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L35", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_on_version", "callee": "memcpy", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L55", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_on_version", "callee": "xSemaphoreGive", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L57", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_version", "callee": "xSemaphoreCreateBinary", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L63", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_version", "callee": "eh_host_peer_data_register", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L64", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_version", "callee": "eh_host_peer_data_send", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L70", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_version", "callee": "xSemaphoreTake", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L71", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_version", "callee": "pdMS_TO_TICKS", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L71", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_version", "callee": "strlcpy", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L74", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "esp_partition_find_first", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L81", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "ESP_LOGW", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L83", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "esp_partition_read", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L88", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "ESP_LOGW", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L90", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "strncmp", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L95", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "ESP_LOGI", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L96", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "nvs_open", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L103", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "nvs_get_str", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L106", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "strncmp", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L106", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "ESP_LOGE", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L107", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "nvs_close", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L109", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "nvs_set_str", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L112", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "nvs_commit", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L113", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "nvs_close", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L114", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "ESP_LOGW", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L116", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "esp_hosted_cp_ota_begin", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L118", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "ESP_LOGE", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L120", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "esp_err_to_name", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L120", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "esp_partition_read", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L126", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "esp_hosted_cp_ota_write", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L126", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "ESP_LOGE", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L127", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "esp_hosted_cp_ota_end", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L128", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "ESP_LOGI", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L133", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "esp_hosted_cp_ota_end", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L136", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "ESP_LOGE", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L138", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "esp_err_to_name", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L138", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "esp_hosted_cp_ota_activate", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L141", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "ESP_LOGE", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L143", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "esp_err_to_name", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L143", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "ESP_LOGW", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L146", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "vTaskDelay", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L147", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "pdMS_TO_TICKS", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L147", "receiver": null}, {"caller_nid": "$graphify-root$_main_c6_update_c6_update_if_needed", "callee": "esp_restart", "is_member_call": false, "source_file": "main/c6_update.c", "source_location": "L148", "receiver": null}], "_cached_target_files": ["$graphify-root$/main/c6_update.h"]} |