Firmware developent status

It's all about the code!
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: Firmware developent status

Post by puff »

5ms timeout?
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Firmware developent status

Post by AndreyB »

puff wrote:
Sun Feb 19, 2023 11:36 am
5ms timeout?
Please use more words
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
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: Firmware developent status

Post by puff »

there seems to be a 5 ms pause between these two bytes - could be a timeout
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Firmware developent status

Post by AndreyB »

puff wrote:
Sun Feb 19, 2023 6:05 pm
there seems to be a 5 ms pause between these two bytes - could be a timeout
So we both see two bytes on the wire yet my code fails to read at least one byte. At the moment I would be happy to just read one byte. Not sure how is that 5ms relevant for my current cry for help to read one byte :(
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
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: Firmware developent status

Post by puff »

what's the schematics? which exactly wire is that? kline usually works at much higher levels (12v).
can it read bytes sent from usb-uart adapter?
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Firmware developent status

Post by AndreyB »

Thank you!!! That's actually an amazing idea for me to try next.

It's https://github.com/rusefi/rusefi_documentation/raw/master/Hardware/Hellen/hellen125honda-a-schematic.pdf it already after the LIN transceiver so I show RX exactly how it goes into stm32. had to add a 1K pull-up since that's missing in the schematics 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
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: Firmware developent status

Post by puff »

"No LIN transceiver is fully compliant to the K-LINE, but compatible. You can see the difference from the document. So I think TJA1021 can work"
https://community.nxp.com/t5/MPC5xxx/TJA1021-K-LINE-compatibilty/td-p/550725
unfortunatelly, it's 403 for me.
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Firmware developent status

Post by AndreyB »

rusEFI discovery, adafruit, secondary serial feature with perfect timing https://github.com/rusefi/rusefi/issues/5105 fix

9600 and 14400 works while 10400 does not work. Smells like uart configuration magic?!
image.png
image.png (20.03 KiB) Viewed 32291 times
image.png
image.png (19.96 KiB) Viewed 32291 times
image.png
image.png (19.73 KiB) Viewed 32291 times
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
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: Firmware developent status

Post by puff »

10400 is not supported by some usb-uart converters... (that's why people prefer ft232)
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Firmware developent status

Post by AndreyB »

I got a chance to try my fake cheap eBay 16 channel logic analyzer! Looks like CP210x has performed as expected at 10400?

10400
image.png
image.png (39.83 KiB) Viewed 32279 times
9600
image.png
image.png (41.27 KiB) Viewed 32279 times
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
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: Firmware developent status

Post by puff »

you can tell for sure by measuring the length of the start bit probably.
still, didn't get: it doesn't work even when bytes are sent from the usb-uart dongle? so, it's a firmware bug?
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Firmware developent status

Post by AndreyB »

puff wrote:
Sun Feb 19, 2023 11:06 pm
you can tell for sure by measuring the length of the start bit probably.
still, didn't get: it doesn't work even when bytes are sent from the usb-uart dongle? so, it's a firmware bug?
As a test step I've decided to run proven and known to work TS protocol at 10400 not k-line connector. And at the moment TS protocol does NOT run at 10400 which makes me stretch my head and post https://forum.chibios.org/viewtopic.php?f=16&t=6194 wondering if I can blame stm32 or ChibiOS
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
mck1117
running engine in first post
running engine in first post
Posts: 1493
Joined: Mon Jan 30, 2017 2:05 am
Location: Seattle-ish

Re: Firmware developent status

Post by mck1117 »

please use a dedicated thread instead of clogging a pinned announcement thread
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Firmware developent status

Post by AndreyB »

mck1117 wrote:
Sun Feb 19, 2023 11:12 pm
pinned announcement thread
What pinned thread? What announcement thread?
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
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Firmware developent status

Post by AndreyB »

Wow just wow.

The fix for https://github.com/rusefi/rusefi/issues/5354 turned out to be https://github.com/rusefi/rusefi/commit/1e43299eab2b2af033cb79d03446dbf07e4bd2c3

F4 does not seem to care. F7 cares deeply but compiled only throws us under the train at -Os optimization level.

Kudos @dron_gus for fixing.
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
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Firmware developent status

Post by AndreyB »

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

Re: Firmware developent status

Post by AndreyB »

Anyone with a Bluetooth board interested to test https://github.com/rusefi/rusefi/issues/5927?
image.png
image.png (17.7 KiB) Viewed 7305 times
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
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Firmware developent status

Post by AndreyB »

Time flies - it has been over three years since @mck1117 has contributed that amazing performance tracing!
@andreika has just fixed a defect reviving it and I've added a touch of usability.

I have some questions around high frequency CANbus processing with Lua let's see if PTrace would be the magic tool.
image_2024-02-22_21-29-01.png
image_2024-02-22_21-29-01.png (20.5 KiB) Viewed 4832 times
image.png
image.png (89.76 KiB) Viewed 4832 times
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
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Firmware developent status

Post by AndreyB »

@dbh97 has revamped the build scripts! I expect way less broken local proteus builds now.
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
Post Reply