Page 1 of 1

STM32F407VGT6 Bluetooth PC10/PC11 Problem

Posted: Thu Jun 08, 2023 1:18 pm
by LemonX
Hello!

I have problems to run Bluetooth on PC10/PC11 pins.
It is working, but very slow and not stable. Runtime data rate is very low 5-10 sec.

What could be the reason? I have tried other pins in TS but it's not working on other Serial ports like PA10/PA9.

Thanks!

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Posted: Thu Jun 08, 2023 1:40 pm
by AndreyB
I always have same poor exchange rate. I guess one way to investigate is to try wired uart.

There are some settings hard-coded in the .ini file and we have those optimized for maximum performance via USB. Remember we have a lot of data points :)

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Posted: Thu Jun 08, 2023 1:44 pm
by LemonX
I tried to wire serial TTL directly to pins, but still have same slow speed, but Bluetooth even loses connection to TS.
Only PC10 and PC11 works and can't be override in TS.

Is there anything else could be done?

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Posted: Thu Jun 08, 2023 2:17 pm
by AndreyB
Try editing .ini file - you would be touching these lines probably

Code: Select all

	; Optimize comms for fast rusEFI ECUs
	noCommReadDelay = true;
	defaultRuntimeRecordPerSec = 100;
	maxUnusedRuntimeRange = 1000;
For specification of those lines see
http://www.tunerstudio.com/index.php/support/manuals/tsdevmanuals/137-ecu-definition-specification-aka-the-ini-document

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Posted: Thu Jun 08, 2023 4:08 pm
by LemonX
Tried many of those settings, but still not stable communication. Tried even default values for them.
Seems there is something in FW that is holding it down, sometimes run time jumps to 20 and then again drops to 0.7-5 etc.
Could be other settings? Maybe RusEfi doesnt like PC10 and PC11 pins for TS?

Thanks!

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Posted: Thu Jun 08, 2023 8:29 pm
by LemonX
Maybe someone has a good running bluetooth running on RusEfi? Pin map etc.
Im not able to get ir running as it should and it seems its not posible maybe?
Could be some kind of FW bug?
Any good info will be appreciated.

Thanks!

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Posted: Fri Jul 21, 2023 2:12 pm
by LemonX
Hi!

About Bluetooth connection.
Is there any settings that should be activated for STM32F407? I have seen in code Bluetooth option enable/disable. There should be something that is slowing down communication with Bluetooth module when pins PC10/PC11 is used.
Those pins are hard coded to them. Is there easy way to set them to pins PA9/PA10 as second serial output on stm32f407 to try this out.
Mostly PC10/PC11 is used for SPI/SD.
Could it be possible in future to change brain pins in TS? I have seen many struggling to set up Bluetooth for RusEFI and could be something how to fix this.

Thanks!

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Posted: Fri Jul 21, 2023 3:02 pm
by AndreyB
Put a bounty on it.

Please consider supporting rusefi on patreon.

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Posted: Sat Jul 22, 2023 12:57 pm
by LemonX
This is good idea.
Does RusEfi have bounty program ready like other platforms or this has different approach?

I would like to see how this platform grow.

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Posted: Sat Jul 22, 2023 5:22 pm
by AndreyB
Let's move that subject to https://rusefi.com/forum/viewtopic.php?f=5&t=1642 but overall I am quite pessimistic considering code complexity.

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Posted: Mon Nov 13, 2023 7:06 pm
by diegort5
Hello, you managed to make the successful connection of the bluetooth module, I am trying to make it in microrusefi 0.6.0 but I have not been able to
In advance I thank those who help me for their time.