Hi,
I am looking for a way to timestamp packets as soon as they arrive over BLE. Any directions?
Search found 9 matches
- Tue Mar 26, 2019 7:47 pm
- Forum: ESP-IDF
- Topic: Time of packet arrival - BLE
- Replies: 0
- Views: 2103
- Sun Mar 10, 2019 11:02 pm
- Forum: ESP-IDF
- Topic: Meaning of TG[group_num]->hw_timer[timer_num].update = 1
- Replies: 1
- Views: 3106
Meaning of TG[group_num]->hw_timer[timer_num].update = 1
Can someone explain what this line of code does:
It is a part of the timer_get_counter_value() function here: https://github.com/espressif/esp-idf/bl ... er/timer.c
Code: Select all
TG[group_num]->hw_timer[timer_num].update = 1;
- Sun Mar 10, 2019 12:28 am
- Forum: ESP-IDF
- Topic: How to set the timer clock divider to 1?
- Replies: 1
- Views: 3085
How to set the timer clock divider to 1?
I want to use 80 MHz clock for my timer. But esp32 only allows us to use timer_divider values between 2 and 65536? How can I set it to 1?
- Wed Mar 06, 2019 6:02 am
- Forum: ESP-IDF
- Topic: Interrupt when a packet is received
- Replies: 0
- Views: 1957
Interrupt when a packet is received
Is it possible to generate an interrupt when a packet is received over BLE or Wifi?
I am looking to generate an interrupt and time stamp the packet.
I am looking to generate an interrupt and time stamp the packet.
- Tue Mar 05, 2019 6:32 am
- Forum: ESP-IDF
- Topic: esp32 64-bit timer
- Replies: 0
- Views: 2406
esp32 64-bit timer
Hi, I am trying to write a program to: 1) start a timer 2) read its value at any time 3) multiply it by 12.5 to get time in nanoseconds. I have modified the timer_group code. here's my app_main. I am trying to start my timer, read it fifty times and then print the results. I want to see how long doe...
- Tue Mar 05, 2019 3:02 am
- Forum: ESP-IDF
- Topic: HW TIMER divider outside of [2, 65536] range error
- Replies: 1
- Views: 3601
HW TIMER divider outside of [2, 65536] range error
I am trying to create a timer to get value in nano seconds. For this, I am using the "timer_group" example where I set the "TIMER_DIVIDER" to 1 in order to get 12.5 ns per tick. However, I get the following error: timer_group: timer_init(214): HW TIMER divider outside of [2, 65536] range error Does ...
- Sun Mar 03, 2019 5:38 am
- Forum: ESP-IDF
- Topic: Where can I find the documentation for esp_timer_get_time()?
- Replies: 2
- Views: 5223
Re: Where can I find the documentation for esp_timer_get_time()?
Thanks, any do you have a sample on Github for this?That implementation is going to be, basically: start the timer with a prescaler of 1, and when you need to know the value of time in nanoseconds, read the counter and multiply by 12.5ns.
- Sat Mar 02, 2019 10:52 pm
- Forum: ESP-IDF
- Topic: Where can I find the documentation for esp_timer_get_time()?
- Replies: 2
- Views: 5223
Where can I find the documentation for esp_timer_get_time()?
Hi,
I am looking to get time with nanoseconds precision. I know the function esp_timer_get_time() gives time in microseconds. I was hoping that I can modify it. Where can I find the source code/documentation to how it works.?
Thanks
I am looking to get time with nanoseconds precision. I know the function esp_timer_get_time() gives time in microseconds. I was hoping that I can modify it. Where can I find the source code/documentation to how it works.?
Thanks
- Thu Feb 28, 2019 8:34 pm
- Forum: ESP-IDF
- Topic: esp32 get time with nanoseconds precision
- Replies: 1
- Views: 6520
esp32 get time with nanoseconds precision
Hi, I am looking for a way to get the time since boot with nanoseconds precision. Currently, the best I can do is esp_timer_get_time() which returns time with microsecond precision. I connected my board to an oscilloscope and found out that it takes around 1.29 us for the esp_timer_get_time() functi...