Search found 1180 matches

by chegewara
Tue Jul 14, 2020 10:14 am
Forum: ESP32 Arduino
Topic: I disabled watchdogs but I still get a WDT timeout
Replies: 8
Views: 903

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

To me it looks like you are having problem with this code now, not wdt: PC: 0x400d0d9c: Print::printNumber(unsigned long, unsigned char) at C:\Users\Derf\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\Print.cpp line 268 EXCVADDR: 0x00000000 Decoding stack results 0x400d0d9c:...
by chegewara
Tue Jul 14, 2020 10:11 am
Forum: ESP32 Arduino
Topic: Sending info to BLE-server service characteristic
Replies: 8
Views: 656

Re: Sending info to BLE-server service characteristic

The reason i posted code snippet in first place is because you were using string. If you are using string then additional 0x0 can be added at the end. When you are sending binary data its safer to use uint8_t instead of char or std::string, even with strings you can use uint8_t if you dont care abou...
by chegewara
Mon Jul 13, 2020 10:22 am
Forum: ESP32 IDF
Topic: ESP32-S2 HMAC
Replies: 5
Views: 773

Re: ESP32-S2 HMAC

Probably an espressif team member should confirm that, but HMAC is supported:
https://esp32.com/viewtopic.php?f=10&p=56361
by chegewara
Mon Jul 13, 2020 10:16 am
Forum: ESP32 Arduino
Topic: Sending info to BLE-server service characteristic
Replies: 8
Views: 656

Re: Sending info to BLE-server service characteristic

In that case its all fine. App you are using is trying to interpret received values and display in human readable version value. Since its not a string app is trying to interpret it as numbers. So you have 0x0301 little endian it will be 0x103 which is 259 decimal and 0x0101 little endian is 0x101 w...
by chegewara
Mon Jul 13, 2020 3:28 am
Forum: Hardware
Topic: ESP32 Reboots when doing serial comms
Replies: 6
Views: 729

Re: ESP32 Reboots when doing serial comms

Brento wrote:
Sat Jul 11, 2020 12:11 am

ledcAttachPin(10, 1);
Pin 10 is reserved.
Pins pins 6-11 are used for flash on module.
by chegewara
Mon Jul 13, 2020 3:24 am
Forum: ESP32 Arduino
Topic: BLE Server, problems with custom advertisement and manufacturer data
Replies: 2
Views: 307

Re: BLE Server, problems with custom advertisement and manufacturer data

Here is error: char ManufacturerData[8] = {0x97,0x03,0x00,0x80,0x06,0x00,0x61,0x00}; char string is 0x0 terminated. std::string is not. Here is simple test code: #include <string> char ManufacturerData[8] = {0x97,0x03,0x00,0x80,0x06,0x00,0x61,0x00}; std::string test(ManufacturerData, 8); void setup(...
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: 903

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

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

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

Re: printf crashes within critical section

Try to use

Code: Select all

ets_printf();

Go to advanced search