Search found 1174 matches

by chegewara
Mon Jul 13, 2020 3:04 am
Forum: ESP32 Arduino
Topic: I disabled watchdogs but I still get a WDT timeout
Replies: 8
Views: 801

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

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/wdts.html#_CPPv419esp_task_wdt_delete12TaskHandle_t https://github.com/espressif/arduino-esp32/blob/c2b3f2d6afc1911db1974a324782730dd642d524/cores/esp32/esp32-hal-misc.c#L72 From task that you want to disable WDT: esp_t...
by chegewara
Mon Jul 13, 2020 2:58 am
Forum: ESP32 Arduino
Topic: GPS with ESP32 SoftwareSerial
Replies: 7
Views: 941

Re: GPS with ESP32 SoftwareSerial

This is actually from code i used to test GPS:

Code: Select all

void setup() {
  Serial.begin(115200);
  Serial1.begin(9600, SERIAL_8N1, 13, 14); // any 2 pins
}

void loop() {
  if (Serial1.available()) { 
    Serial.write(Serial1.read());   // read it and send it out Serial (USB)
  }
}
by chegewara
Fri Jul 10, 2020 2:15 pm
Forum: General Discussion
Topic: Collect sensor data from different task
Replies: 5
Views: 521

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: 5
Views: 492

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: 8
Views: 801

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: 8
Views: 630

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: 11651

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: 382

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: 416

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: 244

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

Go to advanced search