STM32F407VGT6 Bluetooth PC10/PC11 Problem

Post Reply
LemonX
Posts: 17
Joined: Thu Jun 08, 2023 1:13 pm
Github Username: Zazins

STM32F407VGT6 Bluetooth PC10/PC11 Problem

Post 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!
User avatar
AndreyB
Site Admin
Posts: 14280
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Post 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 :)
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
LemonX
Posts: 17
Joined: Thu Jun 08, 2023 1:13 pm
Github Username: Zazins

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Post 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?
User avatar
AndreyB
Site Admin
Posts: 14280
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Post 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
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
LemonX
Posts: 17
Joined: Thu Jun 08, 2023 1:13 pm
Github Username: Zazins

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Post 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!
LemonX
Posts: 17
Joined: Thu Jun 08, 2023 1:13 pm
Github Username: Zazins

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Post 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!
LemonX
Posts: 17
Joined: Thu Jun 08, 2023 1:13 pm
Github Username: Zazins

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Post 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!
User avatar
AndreyB
Site Admin
Posts: 14280
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Post by AndreyB »

Put a bounty on it.

Please consider supporting rusefi on patreon.
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
LemonX
Posts: 17
Joined: Thu Jun 08, 2023 1:13 pm
Github Username: Zazins

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Post 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.
User avatar
AndreyB
Site Admin
Posts: 14280
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Post 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.
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
diegort5
Posts: 9
Joined: Fri Aug 18, 2023 12:55 pm

Re: STM32F407VGT6 Bluetooth PC10/PC11 Problem

Post 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.
Post Reply