Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(esp_encrypted_img): Added pre_encrypted_ota example #398

Merged

Conversation

hrushikesh430
Copy link
Collaborator

Added the pre_encrypted_ota example in esp_encrypted_img component

Checklist

  • Component contains License
  • Component contains README.md
  • Component contains idf_component.yml file with url field defined

Description

Added the pre_encrypted_ota in esp_encrypted_img component.

@hrushikesh430 hrushikesh430 self-assigned this Oct 9, 2024
@hrushikesh430 hrushikesh430 marked this pull request as draft October 9, 2024 16:40
@hrushikesh430 hrushikesh430 requested a review from mahavirj October 9, 2024 16:41
@hrushikesh430
Copy link
Collaborator Author

cc @AdityaHPatwardhan

@hrushikesh430 hrushikesh430 force-pushed the feat/adding_pre_encrypted_example branch 5 times, most recently from 5b77a12 to c04fd5a Compare October 15, 2024 08:46
@igrr igrr linked an issue Oct 15, 2024 that may be closed by this pull request
@hrushikesh430 hrushikesh430 force-pushed the feat/adding_pre_encrypted_example branch 7 times, most recently from 5e5beda to 8d12bff Compare October 17, 2024 11:22
@hrushikesh430
Copy link
Collaborator Author

hrushikesh430 commented Oct 18, 2024

2024-10-17 11:59:28 I (427) main_task: Calling app_main()
2024-10-17 11:59:28 I (477) esp_eth.netif.netif_glue: 24:0a:c4:e7:fa:d7
2024-10-17 11:59:28 I (477) esp_eth.netif.netif_glue: ethernet attached to netif
2024-10-17 11:59:31 I (3177) ethernet_connect: Waiting for IP(s).
2024-10-17 11:59:39 I (11677) esp_netif_handlers: example_netif_eth ip: 192.168.156.27, mask: 255.255.255.0, gw: 192.168.156.1
2024-10-17 11:59:39 I (11677) ethernet_connect: Got IPv4 event: Interface "example_netif_eth" address: 192.168.156.27
2024-10-17 11:59:39 I (11677) example_common: Connected to example_netif_eth
2024-10-17 11:59:39 I (11687) example_common: - IPv4 address: 192.168.156.27,
2024-10-17 11:59:39 I (11687) pre_encrypted_ota_example: Starting Pre Encrypted OTA example
2024-10-17 11:59:39 I (11697) esp_encrypted_img: Starting Decryption Process
2024-10-17 11:59:39 I (11707) main_task: Returned from app_main()
2024-10-17 11:59:42 E (14767) esp-tls: [sock=54] select() timeout
2024-10-17 11:59:42 E (14767) esp-tls: Failed to open new connection
2024-10-17 11:59:42 E (14767) transport_base: Failed to open a new connection
2024-10-17 11:59:42 E (14767) HTTP_CLIENT: Connection failed, sock < 0
2024-10-17 11:59:42 E (14777) esp_https_ota: Failed to open HTTP connection: ESP_ERR_HTTP_CONNECT
2024-10-17 11:59:42 E (14777) esp_https_ota: Failed to establish HTTP connection
2024-10-17 11:59:42 E (14787) pre_encrypted_ota_example: ESP HTTPS OTA Begin failed
Connected to AP/Ethernet with IP: 192.168.156.27
writing to device: https://172.21.0.2:8001/pre_encrypted_ota_secure.bin
FAILED

@igrr any idea about how to fix this issue, actually server is starting on different network(172.21.0.2) and client is in different network (192.168.156.27), thus unable to connect to server.

cc @mahavirj

@hrushikesh430 hrushikesh430 force-pushed the feat/adding_pre_encrypted_example branch 9 times, most recently from adb5bd6 to c34f74e Compare November 11, 2024 11:45
@hrushikesh430 hrushikesh430 force-pushed the feat/adding_pre_encrypted_example branch 2 times, most recently from 273f896 to 47328af Compare November 21, 2024 14:53
@hrushikesh430 hrushikesh430 force-pushed the feat/adding_pre_encrypted_example branch 4 times, most recently from dd83a5f to a1359ca Compare December 19, 2024 06:58
@hrushikesh430 hrushikesh430 force-pushed the feat/adding_pre_encrypted_example branch 12 times, most recently from a637a8f to a10d967 Compare December 23, 2024 16:58
@mahavirj mahavirj force-pushed the feat/adding_pre_encrypted_example branch 2 times, most recently from aff6a30 to aabcbff Compare December 24, 2024 08:28
@mahavirj mahavirj marked this pull request as ready for review December 24, 2024 08:29
@hrushikesh430 hrushikesh430 force-pushed the feat/adding_pre_encrypted_example branch 2 times, most recently from 890e951 to d5517ca Compare December 24, 2024 09:43
@hrushikesh430
Copy link
Collaborator Author

@mahavirj PTAL

@hrushikesh430 hrushikesh430 force-pushed the feat/adding_pre_encrypted_example branch 3 times, most recently from a2a9db3 to 61aadf2 Compare December 30, 2024 09:07
1. Moved pre_encrypted_ota example from esp-idf to idf-extra-component.
2. Created server on app side
3. Flashed the pre_encrypted_ota_secure.bin in OTA1
4. Provided the URI and binary size from the pytest
@hrushikesh430 hrushikesh430 force-pushed the feat/adding_pre_encrypted_example branch from 61aadf2 to f61f602 Compare December 30, 2024 11:04
@mahavirj mahavirj merged commit 514e266 into espressif:master Dec 30, 2024
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add example for esp_encrypted_img (IEC-200)
5 participants