-
Notifications
You must be signed in to change notification settings - Fork 186
WIFI Disconnnetion status not available and its not reconnecting automatically while using esp host control #114
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
Comments
Hello @vijay-yaga Thank you for trying out the solution and for your query. We have developed the control path events for such scenarios. What are these events? |
Hello @vijay-yaga, The GitHub page is updated for above change. Please visit https://github.com/espressif/esp-hosted and use master branch to test the changes. |
Hi @mantriyogesh $ insmod ../../bsp/esp32_spi_new_event.ko EVENT: 2 Requested operation complete kindly give me the solution |
Have you used same commit at both places, at esp and linux? Also, please try to mimic rpi_init.sh to load the driver. |
Still not working despite above trials? |
Hi @mantriyogesh |
Okay. In short, you need all to point same commit, ESP32 and host.
|
Hello @vijay-yaga, Were you able to get it working? |
@vijay-yaga |
we have succesfully compiled and loaded the master C3 firmware and we also compiled master branch hosted driver and host controller c support test.out |
Hello @vijay-yaga, Thank you for the all logs. The ESP log says it is connected to sta, 'yaga'.
Can you please let us know -
|
A.we are manually loading the module and after that we are executing the test.out(1 min max) |
Okay. Understood.
|
Success logpi@raspberrypi:~/hosted/host/linux/host_control/c_support $ vim ctrl_config.h pi@raspberrypi:~/hosted/host/linux/host_control/c_support $ pi@raspberrypi:~/hosted/host/linux/host_control/c_support $ make clean rm -f *.out *.o pi@raspberrypi:~/hosted/host/linux/host_control/c_support $ make gcc -Wall -I/home/pi/hosted/host/linux/host_control/c_support/../../../../common/protobuf-c -I/home/pi/hosted/host/linux/host_control/c_support/../../../../common/include -I/home/pi/hosted/host/linux/host_control/c_support/../../../control_lib/include -I/home/pi/hosted/host/linux/host_control/c_support/../../../control_lib/src/include -I/home/pi/hosted/host/linux/host_control/c_support/../../../virtual_serial_if/include -I/home/pi/hosted/host/linux/host_control/c_support/../../../components/include -I/home/pi/hosted/host/linux/host_control/c_support/../../port/include -I. /home/pi/hosted/host/linux/host_control/c_support/../../../../common/protobuf-c/protobuf-c/protobuf-c.c /home/pi/hosted/host/linux/host_control/c_support/../../../../common/esp_hosted_config.pb-c.c /home/pi/hosted/host/linux/host_control/c_support/../../../control_lib/src/ctrl_core.c /home/pi/hosted/host/linux/host_control/c_support/../../../control_lib/src/ctrl_api.c /home/pi/hosted/host/linux/host_control/c_support/../../../virtual_serial_if/src/serial_if.c /home/pi/hosted/host/linux/host_control/c_support/../../../components/src/esp_queue.c /home/pi/hosted/host/linux/host_control/c_support/../../port/src/platform_wrapper.c ./test_utils.c -lpthread -lrt test.c -o test.out pi@raspberrypi:~/hosted/host/linux/host_control/c_support $ sudo ./test.out sta_connect set_event_callback:1055 event: 301 set_event_callback:1055 event: 302 set_event_callback:1055 event: 303 set_event_callback:1055 event: 304 ctrl_app_send_req:1157 Sending req 121 Enable heartbeat with duration 20 CB available for 302 config_heartbeat:158 sync proc for req 121 process_ctrl_rx_msg:657 msg type: 0x2 msg id: 0xdd ctrl_app_parse_resp:294 msgid 221 Success for ctrl resp msg id 221 process_ctrl_rx_msg:746 sync proc for 221 ctrl_rx_ind:616 ctrl_rx_thread:846 processed ctrl rx msg get_response:923 data: 0x764005b8 ctrl_app_resp_callback:452 processing resp 221 Heartbeat operation successful ctrl_app_send_req:1157 Sending req 107 wifi_connect_ap:104 sync proc for req 107 process_ctrl_rx_msg:657 msg type: 0x2 msg id: 0xcf ctrl_app_parse_resp:294 msgid 207 ctrl_app_parse_resp:422 Success Success for ctrl resp msg id 207 process_ctrl_rx_msg:746 sync proc for 207 ctrl_rx_ind:616 ctrl_rx_thread:846 processed ctrl rx msg get_response:923 data: 0x764007c0 Requested operation complete process_ctrl_rx_msg:657 msg type: 0x3 msg id: 0x12e |
after making changes in using patch file ./test.out sta_connect Requested operation complete |
Hello @vijay-yaga |
Anything worked ahead @vijay-yaga ? |
Hi @mantriyogesh |
Sure. Can you please educate us what was the issue, might help us in similar situation ahead. Also please do connect here if you have issues ahead. |
Hi @mantriyogesh |
Thanks. Just got tripped up by this. Ended up checking out the release/v0.4 tag. Is it recommended to try the master branch for both ESP and ARM code. Or stick with the release? |
Overall, both approaches hold good. Both 0.4 (being latest release) and master are supported.
|
@vijay-yaga, |
Hi we are working on the esp hosted driver we have succesfully connected using esp hostcontrol c file test.c
but we are unable to know the status of WIFI disconnection and we are unable to connect to same ssid and password when wifi is available
kindly can you help me rresolve this issue
thank you
Regards
vijay
The text was updated successfully, but these errors were encountered: