Search found 1142 matches

by chegewara
Fri Jul 10, 2020 2:15 pm
Forum: General Discussion
Topic: Collect sensor data from different task
Replies: 5
Views: 262

Re: Collect sensor data from different task

You can use queue to pass struct(pseudocode):

Code: Select all

struct{
	uint8_t type; // (enum 1-8 that gives a hint what sensor data it is)
	union {
		struct sensor1;
		struct sensor2;
		...
		struct sensor8;
	} sensor;
}sensors_data_t;

handle = xQueueCreate(n, sizeof(sensors_data_t));
by chegewara
Fri Jul 10, 2020 2:08 pm
Forum: ESP32 IDF
Topic: printf crashes within critical section
Replies: 2
Views: 93

Re: printf crashes within critical section

Try to use

Code: Select all

ets_printf();
by chegewara
Fri Jul 10, 2020 7:42 am
Forum: ESP32 Arduino
Topic: I disabled watchdogs but I still get a WDT timeout
Replies: 1
Views: 103

Re: I disabled watchdogs but I still get a WDT timeout

You disabled wdt on looper task only, not that new task. Another thing is why not use peripheral to do it, like ledc, spi or rmt?
by chegewara
Fri Jul 10, 2020 7:33 am
Forum: ESP32 Arduino
Topic: Sending info to BLE-server service characteristic
Replies: 1
Views: 69

Re: Sending info to BLE-server service characteristic

Code: Select all

uint8_t data[4] = { 0x03, 0x01, 0x01, 0x01};
rs = String((char *)data);
Serial.print("Sending command ");Serial.println(rs.c_str());
pRemoteCharacteristic->writeValue(data, 4, true);
by chegewara
Mon Jul 06, 2020 7:22 am
Forum: General Discussion
Topic: BLE Security Passcode
Replies: 14
Views: 11002

Re: BLE Security Passcode

Example with static pin is very simple and it works. All you have to do is to add 2 lines to your code: BLESecurity *pSecurity = new BLESecurity(); pSecurity->setStaticPIN(123456); https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/tests/BLETests/Arduino/security/StaticPIN/StaticPIN.ino
by chegewara
Mon Jul 06, 2020 7:17 am
Forum: Hardware
Topic: ESP32 or ESP32-2 or ESP8266 supports external MCU
Replies: 3
Views: 243

Re: ESP32 or ESP32-2 or ESP8266 supports external MCU

It was just example, how esp32 is used with other MCU as wifi. In maixduino the MCU is kendryte k210, esp32 is controlled over SPI and is using NINA modified firmware (in addition 6 ADC is exposed over SPI). Second link is NINA firmware that is designed for u-blox series but can be installed on any ...
by chegewara
Sun Jul 05, 2020 9:13 am
Forum: ESP32 Arduino
Topic: BLE TX POWER LEVEL ADJUST
Replies: 6
Views: 260

Re: BLE TX POWER LEVEL ADJUST

Maybe here you can find some answers:
https://github.com/espressif/esp-idf/issues/2390
by chegewara
Sun Jul 05, 2020 9:03 am
Forum: ESP32 IDF
Topic: Building project with libnmea-esp32 component
Replies: 2
Views: 163

Re: Building project with libnmea-esp32 component

First thing you should do is to move libnmea 1 folder up in tree, because you dont have CMakeLists.txt in libnmea-esp32. Then probably add to your CMakeLists.txt in main:

Code: Select all

REQUIRES libnmea
https://docs.espressif.com/projects/esp ... ystem.html
by chegewara
Sun Jul 05, 2020 8:52 am
Forum: ESP32 IDF
Topic: Make causes antimalware executable to run at high cpu and memory
Replies: 5
Views: 996

Re: Make causes antimalware executable to run at high cpu and memory

Just a suggestion, if you have older PC with old hard drives, then dont use make -j, try with make -j 6 or something to match you core number. With NVM PCIE it may work, because this drive is capable to do many I/O operations per sec, but older disk will slow down whole process.
by chegewara
Fri Jul 03, 2020 6:58 am
Forum: ESP32 Arduino
Topic: Cannot Find BLE Advertisement when scanning
Replies: 3
Views: 149

Re: Cannot Find BLE Advertisement when scanning

There seems to be nothing wrong with those data, the question is rather about your code. How do you handle scan.

Go to advanced search