-
Notifications
You must be signed in to change notification settings - Fork 111
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
Training Radar model causes python script to crash (AEGHB-916) #218
Comments
I suspect that the data format output by the chip is inconsistent with the one in the esp_csi_tool.py file. Could you provide the chip's log for analysis? |
Here is the Log Data for the chip from console_test/tools/log/log_data.txt run on a surface 7 (Windows Device Related to this ticket) Log from Mac (Different computer with the same issue) Let me know if there are any other logs that you would like to see |
I have observed that the error logs you provided indicate missing information, which may be caused by the console_test project using a UART baud rate of 921600. This places a performance requirement on the UART-to-USB adapter, and currently, your adapter may not meet the necessary specifications. There are two solutions for you to choose from: 1. Replace with a higher-quality UART-to-USB adapter, such as one based on the CP2102 chip.2. Switch to using usb_serial for data transmission:
esp_console_dev_uart_config_t uart_config = ESP_CONSOLE_DEV_UART_CONFIG_DEFAULT();
repl_config.prompt = "csi>";
ESP_ERROR_CHECK(esp_console_new_repl_uart(&uart_config, &repl_config, &repl)); to esp_console_dev_usb_serial_jtag_config_t hw_config = ESP_CONSOLE_DEV_USB_SERIAL_JTAG_CONFIG_DEFAULT();
repl_config.prompt = "csi>";
ESP_ERROR_CHECK(esp_console_new_repl_usb_serial_jtag(&hw_config, &repl_config, &repl));
|
The board that I'm using has the UART chip CH340c, looking at the data sheet it should be able to provide a baud rate of 921600. I've downloaded the latest driver for that specific and that fixed the issues I had with flashing at 921600. I managed to test it on my Mac, although i don't know if that was sufficient as there is still issues accessing bin_data. This output is continuous while the python app is running see terminal output below: I will try switching to using usb_serial for data transmission tomorrow when i get a chance |
Using the usb_serial for data transmission option works great! Thankyou for your help. I have one more question, I'm planning on basing my university final year project on using CSI data to track movement. My supervisors recommended that using two antennas on the receiver would enable much more accurate tracking as the phase shift between the antennas would allow for pin pointing locations. From what i can find there is no way to have more than one antenna on the ESP32, Do you have any advice on how to get around this limitation? if not i may need to research alternative hardware. |
Thank you very much for your feedback. I'm glad to hear that you've had good results using usb_serial for data transmission! Regarding the antenna phase synchronization issue, we have a multi-chip RF phase synchronization solution. If you're interested in further communication, could you please share your email address? We look forward to engaging in a deeper discussion and providing you with support. |
Sure, you can contact me at [email protected] |
Sure, I have already contacted you via email. |
Checklist
How often does this bug occurs?
always
Expected behavior
I expect esp_csi_tool.py to run without issue when the radar model is trained.
Actual behavior (suspected bug)
Instead it will crash shortly after recording the training the radar model.
Error logs or terminal output
Steps to reproduce the behavior
Project release version
latest version
System architecture
Intel/AMD 64-bit (modern PC, older Mac)
Operating system
Windows
Operating system version
Windows 11 Home
Shell
CMD
Additional context
The errors in the log are persistent directly after starting the application, although the program still seems to run okay with a slight lag as time run time progresses. When you try to train the radar model it will work for around a minute before completely crashing
The text was updated successfully, but these errors were encountered: