Search found 2174 matches

by chegewara
Tue Mar 19, 2024 4:16 am
Forum: ESP-IDF
Topic: ADC values less than half of expected
Replies: 2
Views: 83

Re: ADC values less than half of expected

Reference voltage 1029mV does not mean you will get 4095 measuring 1029mV on ADC pin.
With this line you get 4095 when you connect 3.3V (assuming ideal conditions)

Code: Select all

adc1_config_channel_atten(ADC1_CHANNEL_0, ADC_ATTEN_DB_0); <---- ADC_ATTEN_DB_0
by chegewara
Tue Mar 19, 2024 3:59 am
Forum: General Discussion
Topic: arduino to IDF newbie help managing mulitple apps inline
Replies: 6
Views: 294

Re: arduino to IDF newbie help managing mulitple apps inline

TL;DR: Never pass anything other than NULL to vTaskDelete(...). Just ignore posts like this. It makes completely no sense. Now your issue. I would focus on code optimization rather than having few "apps" inside your firmware. There is plenty option to "steal" some memory here and there. Some are "h...
by chegewara
Tue Mar 19, 2024 2:47 am
Forum: ESP Mesh 中文讨论版
Topic: ESP32C6, BLE MESH,使用 Vendor,如何广播信息呢,
Replies: 1
Views: 39

Re: ESP32C6, BLE MESH,使用 Vendor,如何广播信息呢,

Hi, i will try to answer your question. You can use this function to publish vendor model data esp_ble_mesh_model_publish(model, ESP_BLE_MESH_VND_MODEL_OP_STATUS, len, data, ROLE_NODE); As far as i know, but i may be wrong, its the only option to publish vendor model at the moment. Remember to setup...
by chegewara
Mon Mar 18, 2024 5:49 pm
Forum: ESP-IDF
Topic: ble mesh API standardization
Replies: 0
Views: 70

ble mesh API standardization

Hi team, I dont want to sound like I linger or something, because so far i think that ble mesh stack is great and easy to work with, but can we have some standardization in API please. For example we have names like this: - esp_ble_mesh_lighting_server_cb_t - esp_ble_mesh_light_client_cb_t whats the...
by chegewara
Mon Mar 18, 2024 3:04 pm
Forum: General Discussion
Topic: Node working as client and server
Replies: 1
Views: 109

Re: Node working as client and server

1. Yes, you can have SIG client and server model on the same node/element 2. Vendor model does not have client/server model per se 3. You can have vendor "client" and "server" model on the same node (suggesting to use 2 different elements, not needed thou) 4. You can use the same vendor model as a "...
by chegewara
Sun Mar 17, 2024 9:11 pm
Forum: General Discussion
Topic: Help with function pointers and xTaskCreate & xTaskCreatePinnedToCore
Replies: 3
Views: 211

Re: Help with function pointers and xTaskCreate & xTaskCreatePinnedToCore

void (*MainPtr)(void*); MainPtr = (void(*)(void*))(FunctionAddr) ; //FunctionAddr is the Address of start of code from external source in IRAM MainPtr(NULL); //Execute code If this works, then maybe try to use some hack and call it from within a task created with xTaskCreate? Or maybe all works fin...
by chegewara
Fri Mar 15, 2024 8:28 am
Forum: General Discussion
Topic: ESP HTTPS OTA Begin failed
Replies: 1
Views: 163

Re: ESP HTTPS OTA Begin failed

https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/protocols/esp_http_client.html#https-request While making HTTPS requests, if server verification is needed, an additional root certificate (in PEM format) needs to be provided to the cert_pem member in the esp_http_client_conf...
by chegewara
Fri Mar 15, 2024 2:08 am
Forum: ESP32 Arduino
Topic: BLE BLERemoteCharacteristic Notify misses Bytes
Replies: 3
Views: 188

Re: BLE BLERemoteCharacteristic Notify misses Bytes

https://community.nxp.com/t5/Wireless-Connectivity-Knowledge/Indication-and-Notification/ta-p/1129270 BLE standard define two ways to transfer data for the server to the client: notification and indication. Maximum data payload size defined by the specification in each message is 20 bytes. I am sug...
by chegewara
Thu Mar 14, 2024 3:48 pm
Forum: ESP-IDF
Topic: Simple socket and errno = 11, No more processes
Replies: 28
Views: 1883

Re: Simple socket and errno = 11, No more processes

Looking i wireshark, sending request from ESP32 - ESP32 -> Huawei - a 66 byte Modbus/TCP package is send - Huawei -> ESP32 a 64 byte [ACK] is sent - ESP32 -> Huawei a 54 byte [FIN, ACK] is sent - Huawei -> ESP32 [ACK] - Huawei -> ESP32 [FIN, ACK] - ESP32 -> Huawei [ACK] This is the reason i suggest...
by chegewara
Thu Mar 14, 2024 5:59 am
Forum: ESP-IDF
Topic: How to use USB-OTG as a COM device again after making it a msc host?
Replies: 7
Views: 571

Re: How to use USB-OTG as a COM device again after making it a msc host?

Here is your situation: - you can monitor device over USB or over UART, those are most basic options - you dont have UART, so that option is not available - you want to uninstall USB, so that option is also unavailable more advanced options are (you can also send message to enter bootloader mode): -...