Search found 156 matches

by hassan789
Mon Jul 23, 2018 7:21 pm
Forum: ESP-IDF
Topic: Faster DHCP IP
Replies: 4
Views: 7138

Re: Faster DHCP IP

Yes, the easiest way is to save the DHCP lease in RTC memory.
Every 20 connections renew DHCP...

The alternative is very complex, and I have a thread here that talks about this:
https://github.com/espressif/esp-idf/issues/799
by hassan789
Mon Jul 23, 2018 7:17 pm
Forum: ESP-IDF
Topic: WiFi with automatic light sleep
Replies: 10
Views: 15408

Re: WiFi with automatic light sleep

Just an idea,
is your ssid broadcast set to 1mbps mode? if not, I have had some issues.. if you can't tell from your router, you can check via wireshark wifi adapter OR you can put the ESP in promiscuous mode and inspect the packet.
by hassan789
Mon Jul 23, 2018 7:10 pm
Forum: General Discussion
Topic: BLE low power status
Replies: 8
Views: 13837

Re: BLE low power status

If you wan't always on BLE advertiser, the theoretical lower limit of the ESP32 is ~0.8mA (per section 30.3.9 in the TRM). This the lowest it can ever go. In reality, my estimate is on the order of 1mA. For most BLE applications, this is insanely high.
by hassan789
Mon Jul 23, 2018 7:03 pm
Forum: General Discussion
Topic: sleep mode and restarting Wifi
Replies: 9
Views: 24794

Re: sleep mode and restarting Wifi

1. is this light-sleep, or deep-sleep?
2. have you tested the wifi power-save example already?
https://github.com/espressif/esp-idf/tr ... power_save
by hassan789
Mon Jul 23, 2018 6:45 pm
Forum: General Discussion
Topic: Gripes on ESP32/ESP-IDF
Replies: 51
Views: 60794

Re: Gripes on ESP32/ESP-IDF

How often do you read gyro & accel data? Are you sure that you catch the new data every single time (you don't miss every second for example)? How powerful was the CPU you were using? I worked on quadrotor uav 8 years ago. I used to read adc at 1kHz gyro+accel+mag, then apply a complimentary filter...
by hassan789
Sun Jul 22, 2018 8:33 pm
Forum: General Discussion
Topic: BT and WiFi bandwidth speeds
Replies: 3
Views: 13152

Re: BT and WiFi bandwidth speeds

I'm getting 12mbps+ running the ipref server on my laptop.
by hassan789
Sun Jul 22, 2018 5:56 am
Forum: General Discussion
Topic: BT and WiFi bandwidth speeds
Replies: 3
Views: 13152

Re: BT and WiFi bandwidth speeds

Have you read this documentation?
https://esp-idf.readthedocs.io/en/lates ... throughput

Run the iperf example... it is tuned for fastest speed.
by hassan789
Sun Jul 22, 2018 5:52 am
Forum: General Discussion
Topic: Gripes on ESP32/ESP-IDF
Replies: 51
Views: 60794

Re: ESP32 not ready for production

FreeRTOS works only with tick frequency. Once you need to wait for something inside a driver you will wait for 1 ms with 1000 Hz tick frequency. In FreeRTOS you can get microsecond-level responsiveness... You can study this: https://www.freertos.org/a00124.html I have written hobby code for quadrot...
by hassan789
Tue Jul 03, 2018 6:09 pm
Forum: ESP-IDF
Topic: WiFi with automatic light sleep
Replies: 10
Views: 15408

Re: WiFi with automatic light sleep

looks like you are getting a beacon timeout from the AP. Issue seems to be with your AP. more details here: https://esp-idf.readthedocs.io/en/v3.1-beta1/api-guides/wifi.html#wi-fi-reason-code You can try these things: 1. check to make sure the beacon TIM interval is 100ms on your router/AP 2. Try a ...
by hassan789
Thu Jun 28, 2018 3:08 am
Forum: ESP-IDF
Topic: WiFi with automatic light sleep
Replies: 10
Views: 15408

Re: WiFi with automatic light sleep

1. can you post the disconnect reason? "event->event_info.disconnected.reason"
2. What RSSI are you at when this happens?