Using bluetooth serial and pausing/killing core zero

av4625
Posts: 2
Joined: Wed Jun 03, 2020 8:42 am

Using bluetooth serial and pausing/killing core zero

Postby av4625 » Mon Jun 22, 2020 12:40 pm

I am using bluetooth serial to read obd data from a car and this task is running on core zero.
Core 1 shows the data.

This all works as expected.

When I get user input on a rotary encoder I want to pause the bluetooth task on core zero, do some settings work, when the settings work is over I want to resume task zero.

I tried using

Code: Select all

vTaskSuspend
then

Code: Select all

vTaskResume
.

I also tried using

Code: Select all

vTaskDelete
then recreating with

Code: Select all

xTaskCreatePinnedToCore
.

When I either

Code: Select all

vTaskResume
or

Code: Select all

xTaskCreatePinnedToCore
the bluetooth connection has dropped. Is there anyway to pause and resume a bluetooth connection?

ESP_Sprite
Posts: 3911
Joined: Thu Nov 26, 2015 4:08 am

Re: Using bluetooth serial and pausing/killing core zero

Postby ESP_Sprite » Tue Jun 23, 2020 8:06 am

What exactly is it that you want to pause/resume? The incoming data stream?

Who is online

Users browsing this forum: Bing [Bot] and 11 guests