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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

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
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 8 times, most recently from 4b6e06d to adb5bd6 Compare November 11, 2024 10:38
Added the pre_encrypted_ota example in esp_encrypted_img
component

Closes IDF-7818
@hrushikesh430 hrushikesh430 force-pushed the feat/adding_pre_encrypted_example branch from adb5bd6 to c34f74e Compare November 11, 2024 11:45
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)
2 participants