Search found 44 matches
- Fri Dec 06, 2019 2:02 am
- Forum: General Discussion
- Topic: Need to enable and disable all interrupts
- Replies: 8
- Views: 9339
Re: Need to enable and disable all interrupts
Don't be too hard on the OP. Stopping interrupts is a common way to make a series of non-atomic operations 'atomic'. For example (not necessarily from the ESP32 world) - reading a 32-bit value from 2 16-bit registers. In some cases the hardware will expect this and copy the top 16-bits to a special ...
- Mon Dec 02, 2019 2:33 am
- Forum: ESP-IDF
- Topic: Python requrements --- esp-windows-curses and sys_platform == 'win32'
- Replies: 5
- Views: 11096
Re: Python requrements --- esp-windows-curses and sys_platform == 'win32'
The issue I've had with PlatformIO is that the SDK is V3 whereas the functions I wanted to use (in the BLE area) were all in V4. Looking at the Platform IO forums, they all seem to be waiting for someone in the ESP32 world to port the V4 SDK over to them. (Note that this experience was a month or so...
- Wed Nov 27, 2019 2:39 am
- Forum: General Discussion
- Topic: Turn off wifi and bt?
- Replies: 4
- Views: 21460
Re: Turn off wifi and bt?
It might be my ignorance or my misunderstanding your question, but I thought you had to turn on both BT and WiFi.
Therefore neither should be working if you have not called the functions to turn them on.
Susan
Therefore neither should be working if you have not called the functions to turn them on.
Susan
- Fri Nov 08, 2019 2:19 am
- Forum: General Discussion
- Topic: Is it recommended/practical to use C++ instead of plain C ?
- Replies: 16
- Views: 24116
Re: Is it recommended/practical to use C++ instead of plain C ?
Some typical objections to using C++ instead of C are that handling the virtual calls etc takes additional time and memory, both of which are in limited supply on smaller microcontrollers. One a PC that has memory measured in GBytes and clock speeds measured in GHz, these are not real issues. Howeve...
- Wed Nov 06, 2019 1:33 am
- Forum: ESP-IDF
- Topic: Button clicked, NEGEDGE interrupt fired multiple times
- Replies: 10
- Views: 11738
Re: Button clicked, NEGEDGE interrupt fired multiple times
The first post mentioned pressing and releasing a button.
Then we suddenly start talking about a rotary encoder.
No wonder the solution is different!
Susan
Then we suddenly start talking about a rotary encoder.
No wonder the solution is different!
Susan
- Mon Nov 04, 2019 4:40 am
- Forum: ESP32 Arduino
- Topic: Reading/converting - Integers from Bluetooth instead of string
- Replies: 1
- Views: 4036
Re: Reading/converting - Integers from Bluetooth instead of string
If you know the value is 32-bits long, then cast the pData pointer to a 'uint32_t' (or int32_t if the value could be signed) and use that. In the code snippet I have actually passed the packet data back to my own data struct re but it is an exact copy of what you get from the API: switch( rxService....
- Mon Nov 04, 2019 4:30 am
- Forum: ESP-IDF
- Topic: Button clicked, NEGEDGE interrupt fired multiple times
- Replies: 10
- Views: 11738
Re: Button clicked, NEGEDGE interrupt fired multiple times
I always do the debounce in firmware. Set up a timer interrupt for (say) between 1 and 5 mSec and sample the GPIO line(s). For each line (this technique can handle any number of switch/button inputs) zero a counter each time you detect that the state has changed from the last interrupt; or increment...
- Mon Oct 28, 2019 1:47 am
- Forum: ESP-IDF
- Topic: What else can be done during a BLE Scan callback
- Replies: 2
- Views: 3709
Re: What else can be done during a BLE Scan callback
Thanks for the reply. I had thought of sending the data in the advertisement packet but I run into size limitations of the packet. I'll have a go at the approach you suggest. I was already needing to keep a track of the devices that I could see advertising (the will all have the same service UUID bu...
- Fri Oct 25, 2019 2:05 am
- Forum: ESP-IDF
- Topic: What else can be done during a BLE Scan callback
- Replies: 2
- Views: 3709
What else can be done during a BLE Scan callback
I am writing an app that needs to scan multiple BLE devices that will be advertising intermittently (they are battery driven and so are inactive much of the time, waking briefly to advertise and see if there is a quick response before going back to a deep sleep). This means that the ESP-IDF based co...
- Fri Oct 18, 2019 2:08 am
- Forum: ESP-IDF
- Topic: How to turn on/off the BLE and WiFI radios
- Replies: 3
- Views: 6607
Re: How to turn on/off the BLE and WiFI radios
Sorry for the delay in replying - the cause of that delay is also the reason I have not tried this and possibly wont for a little while yet.
Just wanted to say thanks for the information and I'll use it as soon as I can.
Susan
Just wanted to say thanks for the information and I'll use it as soon as I can.
Susan