espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.36k stars 7.21k forks source link

[TW#27909] Provisioning hangs on swift app (IDFGH-820) #2827

Closed naderahmed closed 5 years ago

naderahmed commented 5 years ago

----------------------------- Delete below -----------------------------

If your issue is a general question, starts similar to "How do I..", or is related to 3rd party development kits/libs, please discuss this on our community forum at esp32.com instead.

INSTRUCTIONS

Before submitting a new issue, please follow the checklist and try to find the answer.

If the issue cannot be solved after the steps before, please follow these instructions so we can get the needed information to help you in a quick and effective fashion.

  1. Fill in all the fields under Environment marked with [ ] by picking the correct option for you in each case and deleting the others.
  2. Describe your problem.
  3. Include debug logs on the monitor or the coredump.
  4. Provide more items under Other items if possible can help us better locate your problem.
  5. Use markup (buttons above) and the Preview tab to check what the issue will look like.
  6. Delete these instructions from the above to the below marker lines before submitting this issue.

----------------------------- Delete above -----------------------------

Environment

Problem Description

I downloaded:

https://github.com/espressif/esp-idf-provisioning-ios

ran pod install

clicked the provison button to do it by WiFi, nothing happened. //Detailed problem description goes here.

Expected Behavior

I expected it to provision

Actual Behavior

Nothing happens. I can see that it makes it's way to SendHTTPData , however nothing happens after that. There is no error either.

Steps to repropduce

  1. step1
  2. ...

// It helps if you attach a picture of your setup/wiring here.

Code to reproduce this issue

// the code should be wrapped in the ```cpp tag so that it will be displayed better.
#include "esp_log.h"

void app_main()
{

}

// If your code is longer than 30 lines, GIST is preferred.

Debug Logs

Debug log goes here, should contain the backtrace, as well as the reset source if it is a crash.
Please copy the plain text here for us to search the error log. Or attach the complete logs but leave the main part here if the log is *too* long.

Other items if possible

anujdeshpande commented 5 years ago

Hi @naderahmed - I just verified that it works. Maybe an issue with the configuration in menuconfig?

Can you please check -

If you haven't made changes to the PoP, the default abcd1234 should be set on both the device as well as the smartphone app

naderahmed commented 5 years ago

thank you for your response. My company is in a time crunch, as we plan on selling millions of these... so I am under pressure to test and verify if ESP32 really works.

However.. I apologize, but I did not understand your instructions, I need very basic steps. I am completely new.

I also wanted to add a point which I forgot to mention - I got an error when I tried to build:

error: Build input files cannot be found: esp-idf-provisioning-ios-master/EspressifProvision/EspressifProvision/proto/session.pb.swift'

it was actually for many files like that, therefore what I did was.

copy all the swift files from:

 /Users/nader/Documents/iOS/ESP32/esp-idf-provisioning-ios-master/EspressifProvision/EspressifProvision/proto

TO:

/Users/nader/Documents/iOS/ESP32/esp-idf-provisioning-ios-master/proto

then it worked. I just wanted to let you know that, in case that could have been a problem.

Therefore, please help me understand your first instruction:

Can you please check -

You are using WiFi Sec 1 Debug build in iOS

I do not know how to do that, nor do I understand what it means. Can we chat briefly on skype ? I am available now.

I am also available at 5:00 AM NYC time

or when do you suggest?

naderahmed commented 5 years ago

Hello, I will be available at 4:30 PM Pune, India time tomorrow(12-14) so we can quickly chat via skype. skype id: naderwashere

naderahmed commented 5 years ago

we are using the /esp/esp-idf/examples/wifi/smart_config

here is my skype id: naderwashere

anujdeshpande commented 5 years ago

Hi @naderahmed - with the unified provisioning apps i.e. this or this, you should use the examples found in esp-idf/examples/provisioning. For example if you want to provision the devices using BLE, you should use esp-idf/examples/provisioning/ble_prov. Similarly, for WiFi you should use softap_prov from the same folder.

Alvin1Zhang commented 5 years ago

@naderahmed Hi, would you help share if any updates for the issue? Thanks.