Bluetooth data rate with ShadowDash

It's all about the code!
Post Reply
tmbryhn
Posts: 169
Joined: Wed Feb 12, 2020 2:40 am
Location: Norway

Bluetooth data rate with ShadowDash

Post by tmbryhn »

Just did some more testing connecting my ECU running Proteus firmware with ShadowDash on my android phone as well as TunerStudio.

I have a regular HC05 module connected to the UART port. BT module has been configured with baud rate=115200.
Current data rate logged in TS is no higher than 5 reads/sec. With MS3 and the exact same module I get close to 30 reads/sec.

Is the low data rate due to the fact that the telemetry stream include a large quantity of variables? Floats vs. int?

Is there a way to improve the data rate for consumers wanting to run a digital dash with their phones or tablets?
Would it be possible to increase refresh rate if there was a way to define which variables are being sent over UART?
User avatar
Dron_Gus
contributor
contributor
Posts: 455
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: Bluetooth data rate

Post by Dron_Gus »

Yes.
TS has protocol extension that allows TS to maintain list of variables that it needs.
This can increase data refresh rate over slow interfaces.
I'm going to look at this someday.
User avatar
AndreyB
Site Admin
Posts: 14324
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Bluetooth data rate with ShadowDash

Post by AndreyB »

Can you please help by comparing ShadowDash data rate to TunerStudio data rate?

Overall data rate is a combination of rusEFI and frontend software. Depending on what gauges you have opened or what fields you log data rate would be different.

One day someone should start data rate investigation by looking into the logs and checking what ranges of the overall output each specific software is requesting. And yes, as Dron say - we do not support (faster?) stream protocol at the moment.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
Dron_Gus
contributor
contributor
Posts: 455
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: Bluetooth data rate with ShadowDash

Post by Dron_Gus »

MRE + JDY33 BT. :(
Each update is 504 + 261 bytes.
Attachments
Screenshot from 2022-10-10 22-05-00.png
Screenshot from 2022-10-10 22-05-00.png (64.28 KiB) Viewed 3380 times
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: Bluetooth data rate with ShadowDash

Post by puff »

roughly one or two updates per second at 9600kbps?
User avatar
Dron_Gus
contributor
contributor
Posts: 455
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: Bluetooth data rate with ShadowDash

Post by Dron_Gus »

puff wrote:
Mon Oct 10, 2022 8:06 pm
roughly one or two updates per second at 9600kbps?
Attachments
Screenshot from 2022-10-10 23-53-35.png
Screenshot from 2022-10-10 23-53-35.png (63.25 KiB) Viewed 3370 times
Post Reply