Search found 68 matches

by phatpaul
Wed Jan 06, 2021 2:09 am
Forum: ESP-IDF
Topic: CMake Error: file failed to open for writing
Replies: 0
Views: 178

CMake Error: file failed to open for writing

I'm coming from IDF 3.3 with legacy Make. I haven't been able to build my project with IDF 4 CMake. I'm on Windows 7 64bit. I'm unsure if it is a problem with my tools or with the project. The template hello_world project does build OK. But my project is here: https://github.com/chmorgan/esphttpd-fr...
by phatpaul
Wed Sep 30, 2020 11:33 pm
Forum: ESP-IDF
Topic: Can Android/iOS filter discovered WiFi APs by vendor?
Replies: 0
Views: 310

Can Android/iOS filter discovered WiFi APs by vendor?

My Android/iOS app can filter the discovered BLE devices by service UID, so that it only shows compatible devices to connect to. Can the same be done with WiFi? I want my users to be able to change the WiFi AP and BLE SSIDs on my ESP32-based product to any value, but my App can still identify the br...
by phatpaul
Wed Aug 26, 2020 9:22 pm
Forum: ESP-IDF
Topic: UART break at first
Replies: 4
Views: 2585

Re: UART break at first

I figured out a better solution: // Temporarily change baudrate to slightly lower and send a 0 byte // to get the right baudrate, we want 9 bits (1 start + 8 data) to take the time of 13 bits (one break) #define LIN_BAUDRATE (19200) #define LIN_BREAK_BAUDRATE ((LIN_BAUDRATE * 9)/13) uint8_t dummy = ...
by phatpaul
Wed Jun 17, 2020 10:45 pm
Forum: ESP-IDF
Topic: UART break at first
Replies: 4
Views: 2585

Re: UART break at first

This kind of sucks. Every LIN frame must start with a break. I definitely don't want to introduce a ton of blocking waits for a LIN break. At 19200 baud a 13 bit-time break is 677us. And I need to send lots of LIN frames while also serving HTTP server, BLE, WiFi, ... Is it a hardware limitation that...
by phatpaul
Tue Apr 28, 2020 10:02 pm
Forum: ESP-IDF
Topic: BLE disconnects after ~5s of inactivity
Replies: 7
Views: 3454

Re: BLE disconnects after ~5s of inactivity

FYI: I found the bugfix at https://github.com/espressif/esp-idf/issues/4903

Shame it took me 4 days to find it.
by phatpaul
Mon Apr 27, 2020 8:01 pm
Forum: ESP-IDF
Topic: BLE disconnects after ~5s of inactivity
Replies: 7
Views: 3454

Re: BLE disconnects after ~5s of inactivity

I managed to capture the bluetoothd-hci-latest.pklg from iOS 13.4 and opened it in Wireshark. I don't know exactly what I'm looking for, but here's the disconnect event I think: 1527 372.138000 controller host HCI_EVT 7 Rcvd Disconnect Complete Connection Terminated by Local Host I have attached the...
by phatpaul
Fri Apr 24, 2020 9:39 pm
Forum: ESP-IDF
Topic: BLE disconnects after ~5s of inactivity
Replies: 7
Views: 3454

Re: BLE disconnects after ~5s of inactivity

Update 2: the problem doesn't appear to be that I'm lacking some characteristics in the "Device Information Service", since I added all of them and it still doesn't work on iOS 13.4 and Android 10. Also I looked at several other BLE devices that were nearby and it seems that none of them implement a...
by phatpaul
Fri Apr 24, 2020 7:34 pm
Forum: ESP-IDF
Topic: BLE disconnects after ~5s of inactivity
Replies: 7
Views: 3454

Re: BLE disconnects after ~5s of inactivity

Update: I narrowed down the problem to the "Device Info" service. To test I just disabled the "Device Info" service entirely on my ESP32 firmware and now my problem is gone. But of course now my App can't query the firmware version etc from my device. Thanks to this post where people are reporting v...
by phatpaul
Fri Apr 24, 2020 5:51 pm
Forum: ESP-IDF
Topic: BLE disconnects after ~5s of inactivity
Replies: 7
Views: 3454

Re: BLE disconnects after ~5s of inactivity

Thanks for the reply and vote for randdusing BLE plugin. But I'm not convinced that this is an issue with my App (or the Evothings BLE plugin). I loaded the nRF app (free from Nordic Semiconductor) onto an iPhone 8, iOS 13.4.1 which is exhibiting the bug with my ESP32 device. The bug is also present...
by phatpaul
Thu Apr 23, 2020 10:34 pm
Forum: ESP-IDF
Topic: BLE disconnects after ~5s of inactivity
Replies: 7
Views: 3454

BLE disconnects after ~5s of inactivity

Environment - Development Kit: [none, custom product using wrover module.] - Module or chip used: [ESP32-WROVER 16M] - IDF version: v3.3.1 - Build System: [Legacy GNU Make] - Compiler version: xtensa-esp32-elf-gcc.exe (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a5) 5.2.0 - Operating System: [Window...

Go to advanced search