-
Notifications
You must be signed in to change notification settings - Fork 0
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
esp_as_mcu_host SOP needed (EHM-8) #8
Comments
Hello @Speakpig I will take a look at steps needed to get you going. We usually target the esp_as_mcu_host branch for people who are using two different ESP chips as the host and slave. Using ESP32-C3s as both the host and slave wasn't considered, so some testing needs to be done to see if this is possible.
As a start, you can familiarise yourself with ESP-IDF first. You can look through the ESP-IDF |
Thanks for ur tips, I basically understand the WI-FI examples, I just never really built a prj based on this branch, so I acctually want more to know how to practice, I will be waiting for ur further advice, much thanks. |
Now I am eager to know how to create a host project, can you tell me how to get started?More specifically: |
The steps to create a host under ESP-Hosted are covered in Section 3 of the readme [ https://github.com/espressif/esp-hosted/tree/feature/esp_as_mcu_host?tab=readme-ov-file#3-preparing-the-host-to-use-esp-hosted ]. For example, suppose you want to convert the ESP-IDF idf.py add-dependency "espressif/esp_wifi_remote"
idf.py add-dependency "espressif/esp_hosted" If you do You will also find a That is all that is needed to add ESP-Hosted to your project as a host. However, there is one further step,
For this step, go to an empty directory and run idf.py create-project-from-example espressif/esp_hosted:slave This will create the ESP-Hosted slave project. Configure the target device (as ESP32-C3) and build it like you use any other ESP-IDF project. This is the code that will be flashed to the ESP32-C3 that will act as the slave under ESP-Hosted. |
Thanks a lot, this is so detailed for me, but I still have one big doubt: |
Should I do some replacements inside that directory formed by instuctions using the |
I'm not sure what you mean. Would the diagram from the README, help to make this clearer: For 'host', ESP-Hosted is the ESP Host Driver. It is meant to be used as an component that is added to your host code that requires Wi-Fi access. For 'slave' under ESP-Hosted, there should be a You should not need to replace or add any I should add that the Does this link help to make it clearer? IDF Component Manager |
I think I understand your question now. You are asking how the It is a bit of GitHub and ESP-IDF Component Manager 'magic'. When triggered, the IDF Component Manager packages the ESP-Hosted code from github and makes a release. This release is fetch from the IDF Component Manager when you run |
The code on github is meant more for ESP-Hosted developers. You don't have to do A bit more detail: the code in |
Thx, I just missed the new comment befor asking, I deleted last msg, I now have got it! Problem solved, that's so kind of you!
Is this copy from esp_as_mcu_host branch or master? |
From the esp_as_mcu_host branch. |
Why not from a specified tag or release version? |
When coming to this, why shall I do
Can I configure this by modify sdkconfig and rebuild the project or directly modify sdkconfig.h in directory |
As mentioned, there is some 'magic' in the background that tells the IDF Component Manager to do a release from the GitHub source. If you check the IDF Component Page for ESP-Hosted https://components.espressif.com/components/espressif/esp_hosted/ there are various version releases, currently at 0.0.9. Each release is linked to a particular commit in the GitHub repository. |
I have not looked at this option yet due to other work. You are welcome to try, but I don't know what the results will be. |
Thx, as now you are sure about ESP32-C3 is not available for host, I will waiting ur further sugguestion meanwhile I wil be trying meself, thanks a lot! |
For now, until I have some time to look at it. Do you have another ESP32-x (not a C3) which can be used as the host? |
Sry, two C3s are all I got, and I have done prepared host and slave projects and connected the C3s refering to #17 , ready to go, but waiting for more guidance, am I doing right for now? Btw, I'm using example/wifi/iperf for the host prj as the test sample. |
@Speakpig 您好,请问您的host主机工程编译通过了吗? |
@HP4LEVI Yes, it has passed the build process. |
Did you build the code for host after you did this:
|
你好,能说明一下您的编译操作吗?我的编译显示配置文件有问题,但我的配置文件打不开。 |
@HP4LEVI We were doing it quite the same, I just opened the host prj, and then just built it, all things were done automatically, it should be ok, I don't know what u are running into, what's the problem?How did u download the components manually, cause it's all automatical when I build it. |
@SohKamYung-Espressif If I want to do this, what is ur suggestion?Which file or both shall be changed out of the best consideration? Thanks a lot. |
@Speakpig Sorry, I can't make any suggestions now, as I haven't tried it yet. I have to work on another task first. |
Thanks, I will try myself first, but if u got any progress in C3 as host, let me know, much thanks. |
Although it is not a fix but it could be treated a workaround to just get you going: 1. Slave C3 flashing
2. Host C3 flashing
Note These steps might only be required if you have same chipset type as host and slave ESP Can you please check if this works for you? |
@mantriyogesh I entirly got u, I should edit the local ESP-IDF repo applying
|
And as it is mentioned by SohKamYung, specificly what is the reason C3 could not be a host? Is it like that when using another slave chip, C3 could be a host? So it is just a matter of configuration, right?
|
sdkconfig.h cannot be changed, it is generated file and some of the configuration would still be loaded assuming wifi is enabled, which is not really correct. Some of the components might still think that the wifi is available. Instead, I would really keep different directories for host and slave. And use above comment to evaluate. As IDF changes would be done,
This would make sure the sdkconfig.h is correctly co-related with all configurations. |
C3 or for that matter, any ESP chipset can be used as host. Problem right now you face is both conditions satisfied at the same time:
|
@mantriyogesh OK, I will try and let u know, thx. |
@Speakpig I have taken a look and the solution proposed by @mantriyogesh in #8 is the solution that works for your case. My attempts at resolving it by modifying the |
I am new to ESP, I want to test the branch esp_as_mcu_host instance with two ESP-C3 development boards in my hands. Having read the introduction of the file for the specific operation steps , I am still very confused how to start. My computer has installed ESP-IDF, and can normally use CMD related commands, the following are my detailed questions:
And when shall I use the following instruction?
And when to use the following instruction?
The text was updated successfully, but these errors were encountered: