Search found 13 matches

by huybk213
Sat May 01, 2021 8:12 am
Forum: ESP-IDF
Topic: ESP32S2 store rtc time when reboot
Replies: 1
Views: 4741

ESP32S2 store rtc time when reboot

Dear everyone, I have a question about ESP32 RTC clock. As Espressif documents said " RTC timer: Allows keeping the system time during any resets and sleep mode " in documents https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/system_time.html Every time device reset (s...
by huybk213
Sun Sep 22, 2019 6:02 am
Forum: ESP-IDF
Topic: WIFI/BLE Simultaneously
Replies: 67
Views: 185753

Re: WIFI/BLE Simultaneously

Hi every one. I'm using esp-idf v3.2.2 stable and i have a trouble with WiFi and BLE coexist. I'm success to config wifi information via custom GATT server. Mobile phone will send information such as SSID, Password... to esp32 via custom GATT server. But when i'm provide wrong ssid - wrong password,...
by huybk213
Sun Sep 22, 2019 5:53 am
Forum: ESP-IDF
Topic: BLE GATT server undiscoveryable when WiFi fail
Replies: 1
Views: 3213

Re: BLE GATT server undiscoveryable when WiFi fail

In event WIFI_STA_START, i,m try to connect to AP by calling func esp_wifi_connect ( with wrong SSID and password ).
Then BLE service is no more running.
by huybk213
Sun Sep 22, 2019 5:07 am
Forum: ESP-IDF
Topic: BLE GATT server undiscoveryable when WiFi fail
Replies: 1
Views: 3213

BLE GATT server undiscoveryable when WiFi fail

Hi everyone. My project has wifi and ble gatt server coexist. I'm able to run program with BLE and WiFi Simultaneously. I'm able to provide WiFi SSID and Password via ble gatt server, and ESP32 successful connect to AP. But when i'm trying to config wrong SSID - wrong password, but when esp32 trying...
by huybk213
Fri Jul 26, 2019 4:56 am
Forum: ESP-IDF
Topic: Large file in spiffs
Replies: 0
Views: 2644

Large file in spiffs

Hi everyone, Im trying to store large file into spi flash on esp32, the fire size about 250kB. Everytime i want to store file in to spiflash, i will delete the old file and write a new file to spiffs. But after some times write data to spiffs region, device cannot save data to spiffs anymore. System...
by huybk213
Wed Jul 24, 2019 11:01 am
Forum: General Discussion
Topic: ESP32 Run multi application
Replies: 0
Views: 2500

ESP32 Run multi application

Hi everyone, My idea is running multi application in flash. For example, i have 3 application. One is factory reset, second is bluetooth classic application, and third is bluetooth low energy application. I'm trying to make wifi, ble and bluetooth audio co-exist, but performance is so bad. So i want...
by huybk213
Tue Jul 09, 2019 10:36 am
Forum: ESP-IDF
Topic: Mkdir not working in example storage/sd_card
Replies: 9
Views: 17680

Re: Mkdir not working in example storage/sd_card

ESP_igrr wrote:
Tue Jul 09, 2019 10:05 am
Have you enabled LFN (long file names) in menuconfig, Component config, FATFS? If not, you will have to use an 8.3 name for the directory.
Great!!!!
Thank you so much, i did not enable long file name support before.
Problem now solved, thank you.
by huybk213
Tue Jul 09, 2019 9:50 am
Forum: ESP-IDF
Topic: Mkdir not working in example storage/sd_card
Replies: 9
Views: 17680

Re: Mkdir not working in example storage/sd_card

huybk213: as common with other POSIX functions, you can check the exact error cause using 'errno' variable, if a function has returned -1. You can also use strerror function to convert errno value into a human-readable message. In this specific case, I would guess that the directory has already bee...
by huybk213
Tue Jul 09, 2019 9:46 am
Forum: ESP-IDF
Topic: Mkdir not working in example storage/sd_card
Replies: 9
Views: 17680

Re: Mkdir not working in example storage/sd_card

Ritesh wrote:
Sat Jul 06, 2019 8:41 am

Hello,

Which File System you have used for SD card? Because earlier into SPIFFS there was same issue of directory level support was messing.

So, There might be chances of file system issue or something like that.
Dear Ritesh,
My sdcard was formated in FAT32 MODE
by huybk213
Fri Jul 05, 2019 5:59 pm
Forum: ESP-IDF
Topic: Mkdir not working in example storage/sd_card
Replies: 9
Views: 17680

Mkdir not working in example storage/sd_card

Hi everyone, I'm currently using IDF last version. I'm trying to run example storage/sd_card. Sdcard example seem to be good. I want to create new folder using command "mkdir", but mkdir alway return error -1. All line below is my program and log. Code void app_main(void) { ESP_LOGI(TAG, "Initializi...