Search found 10 matches

by jeanleflambeur
Sun May 20, 2018 9:03 am
Forum: ESP32 Arduino
Topic: Polymorphism Code Review
Replies: 2
Views: 604

Re: Polymorphism Code Review

You got the basic usage of inheritance and virtual methods right. There is one nasty bug though - you forgot to make your destructor virtual in the base class (MyComms). This means that if you ever destroyed an object through a pointer to the base class, the correct destructor would not be called. c...
by jeanleflambeur
Fri Mar 23, 2018 7:05 pm
Forum: ESP32 IDF
Topic: Esp32 promiscuous mode - limit callback packet data size
Replies: 2
Views: 647

Re: Esp32 promiscuous mode - limit callback packet data size

Make sure you mark your capture callback with IRAM_ATTR. Made a huge difference for me (went from 50-300 to 1500-2000 packets per second)
by jeanleflambeur
Fri Mar 23, 2018 7:02 pm
Forum: General Discussion
Topic: The problem of packet capture ability of esp32 promiscuous mode.
Replies: 1
Views: 639

Re: The problem of packet capture ability of esp32 promiscuous mode.

To improve the capture speed try this: 1. Remove your printf calls from the sniffer callback. The callback has to finish as soon as possible. 2. Mark the function as IRAM_ATTR. This resulted in a 10x rate improvement for me: IRAM_ATTR void packet_received_cb(void* buf, wifi_promiscuous_pkt_type_t ty...
by jeanleflambeur
Fri Mar 16, 2018 7:43 am
Forum: ESP32 IDF
Topic: Problem with xTaskCreate in C++...
Replies: 7
Views: 818

Re: Problem with xTaskCreate in C++...

Do this: led.h #ifndef LED_H #define LED_H #include <stdint.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "driver/gpio.h" class LED { public: LED(); private: static void staticBlinkLedTask(void *pvParameter); void blinkLedTask(); ... }; #endif //LED_H led.cpp #include "led.h"...
by jeanleflambeur
Wed Nov 01, 2017 8:48 pm
Forum: Sample Code
Topic: Alternative to ESP_ERROR_CHECK
Replies: 5
Views: 1719

Re: Alternative to ESP_ERROR_CHECK

Pls use a mangled name for the internal macro variable rc. That's because in C/C++ this statement actually compiles: int a = a; It results in variable a being uninitialized essentially. So with your macro, this code would have unexpected results: int rc = 7; ESP_ERROR_CHECK(initialize_remote_control...
by jeanleflambeur
Sat Oct 14, 2017 5:50 pm
Forum: ESP32 Arduino
Topic: Wifi data rate in promiscuous mode?
Replies: 8
Views: 2303

Re: Wifi data rate in promiscuous mode?

No idea about the extra params. I tried to play with them but got no meaningful info. Wireshark told me the modulation was CCK. 1 & 2 Mbps 802.11B should be DSSS indeed but as far as I read, CCK and DSSS are very similar. Both are spread spectrum, just the coding sequence is different - but I don't ...
by jeanleflambeur
Thu Oct 12, 2017 7:46 am
Forum: ESP32 Arduino
Topic: Wifi data rate in promiscuous mode?
Replies: 8
Views: 2303

Re: Wifi data rate in promiscuous mode?

You should find it in libpp.a. I'm using the latest arduino esp32 idf. Regarding the "E (6348579) wifi: out of memory!" error when injecting, you can silence it using esp_log_level_set("*", ESP_LOG_NONE); so that it doesn't kill your data rate. I didn't find any way to get notified when the packet i...
by jeanleflambeur
Wed Oct 11, 2017 8:37 am
Forum: ESP32 Arduino
Topic: Wifi data rate in promiscuous mode?
Replies: 8
Views: 2303

Re: Wifi data rate in promiscuous mode?

Found a way to set the fixed rate. There is a github issue about this with some barely documented code: //https://github.com/espressif/esp-idf/issues/833 The first 15 rates are identical to the esp8266 when using the wifi_set_user_fixed_rate(FIXED_RATE_MASK_ALL, x) function. I checked every rate usi...
by jeanleflambeur
Wed Oct 11, 2017 8:31 am
Forum: General Discussion
Topic: What would you like to see in The Next Chip?
Replies: 260
Views: 46477

Re: What would you like to see in The Next Chip?

Not specifically hardware related - give access to the low-level wifi functionality: - Packet injection with send callbacks (like the esp8266) - Monitor mode with hardware packet filters (MAC bases) - Manual rate & modulation & channel selection Lots of ppl are interested in this for long range HD F...
by jeanleflambeur
Sun Oct 08, 2017 4:31 pm
Forum: ESP32 Arduino
Topic: Wifi data rate in promiscuous mode?
Replies: 8
Views: 2303

Re: Wifi data rate in promiscuous mode?

Hi Samurai, Did you find any answers? I'm especially interested in a callback whenever the packet was sent with the esp_wifi_80211_tx function. Without it it's impossible to schedule new packets... Regarding your rate problem, there is this comment here: Please note that the sniffer has a great impa...

Go to advanced search