espressif / esp-hosted

Hosted Solution (Linux/MCU) with ESP32 (Wi-Fi + BT + BLE)
Other
675 stars 158 forks source link

c3 driver will panic when reset password #332

Closed xmlhp closed 7 months ago

xmlhp commented 7 months ago

esp32c3 panic.zip After I connect to the hotspot normally. I want to reconfigure the password, then connect, I follow the steps below, the driver will crash kill udhpc 2.kill wpa_supplicant

  1. Reconfigure wpa_supplicant (SSID and password). This step is not in the diary, so wpa_supplicant does not need to change SSID and password Reopen wpa_supplicant
  2. Try udhcpc again, it will crash.

If it will be after step2, rmmod esp32c3.ko, power down the module, and then on, and then reload ko will not. However, we also run bluetooth service, Bluetooth service can not stop at this time.

mantriyogesh commented 7 months ago

@kapilkedawat ++

xmlhp commented 7 months ago

Excuse me, is there a solution to this problem @mantriyogesh @kapilkedawat

mantriyogesh commented 7 months ago

Apologies for the delay from our side. Let me check this again

mantriyogesh commented 7 months ago
  1. Can you please attach the ESP logs as well? Trying to understand if ESP had crashed, and which messages it had received / responded before crash at host
  2. Can you also please let us know the git commits used at slave and host?
xmlhp commented 7 months ago

esp32c3 panic.zip It is the log @linux?Do you want the log@esp32c3 side?

mantriyogesh commented 7 months ago

yes, tested at the same time, both side logs.

kapilkedawat commented 7 months ago

@xmlhp Please try with attached patch. 0001-esp_hosted_ng-fixed-some-concurrency-issues.patch

Also please check the device connections, commands are getting timed out.

xmlhp commented 7 months ago

linux_side.zip c3_side.zip linux_side.zip ,the log file @ linux side c3_side.zip the esp32c3 side log @mantriyogesh @kapilkedawat

xmlhp commented 7 months ago

@xmlhp Please try with attached patch. 0001-esp_hosted_ng-fixed-some-concurrency-issues.patch

Also please check the device connections, commands are getting timed out.

@kapilkedawat , what git commits for this patch?

xmlhp commented 7 months ago

I didn't found the file sp_stats.h esp_utils.h at host_ng @kapilkedawat @mantriyogesh

kapilkedawat commented 7 months ago

Hi @xmlhp, are you using latest master?

xmlhp commented 7 months ago

Now, I can build ko for lastet master.

kapilkedawat commented 7 months ago

@xmlhp this change has been merged in latest master. You can also pull latest master and check if you are still facing this crash.

kapilkedawat commented 7 months ago

@xmlhp please let us know if you are still facing this issue.

xmlhp commented 7 months ago

@kapilkedawat ,now, I can reset ssid and password.

xmlhp commented 7 months ago

@kapilkedawat Later, if you have any questions, wii let me know

kapilkedawat commented 7 months ago

@xmlhp we will close this issue in that case, feel free to reopen or file another issue in case you face any other issue :).

xmlhp commented 7 months ago

@kapilkedawat ,ok