-
Notifications
You must be signed in to change notification settings - Fork 81
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
Determine which baud rates work well across platforms (Mac, Windows, Linux) (i.e. "baud rate 1552000 does not work") #5
Comments
Have you tried any other baud rates? Does flashing the esp32 work in general? |
baud rate 115200 works and other buad rates can be used to flash but the output is wrong, even if I've set the same rate to read the serial port... |
To help solve this, I need more information. I need to know more details about the problem including what steps you tried to solve the issue (Did you find anybody else with a similar problem with the esp32?). From my perspective, I am looking at the problem blind. You mention that the output is "wrong", but there are many ways that the output could be wrong. Thanks. |
It works when I use baud rate of 115200. |
Oh ok. We have been seeing this issue. Do you happen to use a windows computer? I am unable to test with windows myself. Can you try with a baud rate of 1500000 and report back? Alternatively, try 1000000. |
1552000 failed for me too during flashing (in Ubuntu):
I assumed at first you meant 115200 (which does work). |
On linux, I have tried |
Nope, same issue. Any reason for the higher baud rate? It flashes and runs with 115200 (but I'm having other issues getting CSI data). |
Higher baud rate is useful to allow more data through serial. More data throughput ensure that CSI frames aren't dropped due to buffer overflow issues. (In general this translates to: higher baud rate means more CSI throughput as discussed in our paper http://www.people.vcu.edu/~ebulut/wowmom20-WiFiSensing.pdf) How many places did you set the baud rate? There should be 3 distinct places in Are you sure the time out is not related to you needing to press and hold the "FLASH" button. Some ESP32s require this extra step (https://randomnerdtutorials.com/solved-failed-to-connect-to-esp32-timed-out-waiting-for-packet-header/) |
I think I set the baud in all the right places. My dev board flashes correctly at other rates, not sure if it that issue is baud dependent. I also just upgraded to the latest IDF because I was getting a weird message before ( |
Actually when I was using the higher baud rate on Linux, I was using stty (as allowed here: /~https://github.com/wertarbyte/coreutils/blob/master/src/stty.c#L1772). But maybe it won't work with the ESP-IDF. You can try one of the lower values until it works: 1152000, 921600, and 576000 are good candidates I think I don't know about the PTK thing. What version of IDF did you upgrade to? |
Thanks I'll give it another shot and see. I upgraded to the latest stable version (4.1). The changes were trivial, think I just had to comment out an The PTK thing might have been related to a KRACK mitigation bug, I read. Might not have been necessary to upgrade though. |
One more thing... |
@Jiachen-Zhang You are correct. You will need high baud rate for high packet rate. Your welcome, I am glad you are working with my tool :) |
I was able to change the different baud rate by keep I think I can use |
I need to figure out what baud rate works best across platforms. It sounds like 921600 worked in this case, but will other people have problems with that? |
hi everyone. can someone contact me from instagram for this project. i need help and i have some questions. I am computer engineering student and i want to work with csi data. i have an esp-wroom-32 device. I followed all the instructions but i couldn't flash. |
Excuse me, which three places, I only see two places to fill in 1552000. |
@xiaokangkang6 I think the information from that message is old (the message was from 2021). In the current version of esp-idf, it should only be two places. You are correct. Please see (/~https://github.com/StevenMHernandez/ESP32-CSI-Tool/#configuration-esp-idf) I will also mentioned that the old method was |
|
hai, i can not found this i just find there is something wrong or not i don't know, but i use |
i'm know what is problem, but i've question, how do I set the sample rate for esp32, is it by changing the Component config > FreeRTOS > Tick rate (Hz) > 1000 thanks |
did you got it ? same issue this side |
Got it
…________________________________
From: Ashwani V R ***@***.***>
Sent: Tuesday, February 18, 2025 2:07 PM
To: StevenMHernandez/ESP32-CSI-Tool ***@***.***>
Cc: MUHAMMAD TIJAN ABDURRAHMAN ***@***.***>; Comment ***@***.***>
Subject: Re: [StevenMHernandez/ESP32-CSI-Tool] Determine which baud rates work well across platforms (Mac, Windows, Linux) (i.e. "baud rate 1552000 does not work") (#5)
i'm know what is problem, but i've question, how do I set the sample rate for esp32, is it by changing the
Component config > FreeRTOS > Tick rate (Hz) > 1000
thanks
did you got it ? same issue this side
—
Reply to this email directly, view it on GitHub<#5 (comment)>, or unsubscribe</~https://github.com/notifications/unsubscribe-auth/BBTXFLDRA72J7IDIN634CY32QLL3VAVCNFSM6AAAAABXK4AKVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRUG44DCNZWGY>.
You are receiving this because you commented.Message ID: ***@***.***>
[Ash96wani3]Ash96wani3 left a comment (StevenMHernandez/ESP32-CSI-Tool#5)<#5 (comment)>
i'm know what is problem, but i've question, how do I set the sample rate for esp32, is it by changing the
Component config > FreeRTOS > Tick rate (Hz) > 1000
thanks
did you got it ? same issue this side
—
Reply to this email directly, view it on GitHub<#5 (comment)>, or unsubscribe</~https://github.com/notifications/unsubscribe-auth/BBTXFLDRA72J7IDIN634CY32QLL3VAVCNFSM6AAAAABXK4AKVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRUG44DCNZWGY>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Hardware: NodeMCU ESP32 version
Connecting.....
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: a8:03:2a:68:69:bc
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 1552000
Changed.
Configuring flash size...
A fatal error occurred: Failed to write target memory. Only got 1 byte status response.
make: *** [flash] Error 2
The text was updated successfully, but these errors were encountered: