smallCANboard also known as Small CAN Board
- AndreyB
- Site Admin
- Posts: 14381
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
smallCANboard also known as Small CAN Board
Not sure what this is but it seems to consume under 0.003A while waiting for (any) CAN bus activity to wake it up. First usage of new https://github.com/andreika-git/hellen-one/tree/master/modules/mega-mcu64/ module - that's the smallest package for stm32f40x
More details see https://rusefi.com/s/scan
More details see https://rusefi.com/s/scan
- Attachments
-
- smallCANboard.jpg (227.89 KiB) Viewed 31556 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
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
-
- Posts: 91
- Joined: Wed Mar 31, 2021 10:00 pm
Re: smallCANboard also known as Small CAN Board
How much lua program space?
Matt
MT Motorsport / EcotecMiata
MT Motorsport / EcotecMiata
- AndreyB
- Site Admin
- Posts: 14381
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: smallCANboard also known as Small CAN Board
How much do you need? At the moment it's 50K
How would you use it?
If I have orders I can try using STM32F413 or STM32L496RG. STM32F413 actually has third CAN bus if anyone has a use-case for third CAN bus.
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
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
-
- Posts: 91
- Joined: Wed Mar 31, 2021 10:00 pm
Re: smallCANboard also known as Small CAN Board
I was thinking along two lines.
One is a CAN gateway. Something to communicate with different buses (at different speeds). For things like OEM chassis integration, or passing info from one bus to another. Having the ECU broadcast at 500k, and then this device can pass some messages to a 250k bus, or a 1M bus. Most race car data aquisition systems are 1M can bus, but if you are trying to integrate some 250k bus data and some 500k bus data it could be useful to have 3 can bus lines.
Second is a generic I/O extender. Like this has 4 low side outputs that can be used to control non time critical devices (warning lights, rad fans, etc) so an ECU that is either limited by I/O like a MRE, or by connection to an OEM wiring harness such as the Hellen based direct plugin ECUs. Add this small can board to get IO that you either don't have physical pins for, or don't have wiring in the stock harness for.
One is a CAN gateway. Something to communicate with different buses (at different speeds). For things like OEM chassis integration, or passing info from one bus to another. Having the ECU broadcast at 500k, and then this device can pass some messages to a 250k bus, or a 1M bus. Most race car data aquisition systems are 1M can bus, but if you are trying to integrate some 250k bus data and some 500k bus data it could be useful to have 3 can bus lines.
Second is a generic I/O extender. Like this has 4 low side outputs that can be used to control non time critical devices (warning lights, rad fans, etc) so an ECU that is either limited by I/O like a MRE, or by connection to an OEM wiring harness such as the Hellen based direct plugin ECUs. Add this small can board to get IO that you either don't have physical pins for, or don't have wiring in the stock harness for.
Matt
MT Motorsport / EcotecMiata
MT Motorsport / EcotecMiata
-
- Posts: 91
- Joined: Wed Mar 31, 2021 10:00 pm
Re: smallCANboard also known as Small CAN Board
Lua memory heap usage: 29830 / 60000 bytes = 49.7%
Matt
MT Motorsport / EcotecMiata
MT Motorsport / EcotecMiata
-
- running engine in first post
- Posts: 1495
- Joined: Mon Jan 30, 2017 2:05 am
- Location: Seattle-ish
Re: smallCANboard also known as Small CAN Board
do these exist? possible to buy one somewhere?
- AndreyB
- Site Admin
- Posts: 14381
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: smallCANboard also known as Small CAN Board
will ship you one tomorrow
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
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
-
- running engine in first post
- Posts: 1495
- Joined: Mon Jan 30, 2017 2:05 am
- Location: Seattle-ish
Re: smallCANboard also known as Small CAN Board
is the schematic shared somewhere? looks like the links on the wiki are broken.
- AndreyB
- Site Admin
- Posts: 14381
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: smallCANboard also known as Small CAN Board
yes, just fixed https://github.com/rusefi/rusefi/wiki/Small-CAN-Board
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
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
- AndreyB
- Site Admin
- Posts: 14381
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: smallCANboard also known as Small CAN Board
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
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
-
- Posts: 91
- Joined: Wed Mar 31, 2021 10:00 pm
Re: smallCANboard also known as Small CAN Board
Just got mine, plan to play around with it soon
Matt
MT Motorsport / EcotecMiata
MT Motorsport / EcotecMiata
Re: smallCANboard also known as Small CAN Board
Is there a standard in CAN communication between ECU's?
Can you use this board on a different ECU or can RusEfi communicate with a box from say MaxxEcu or Haltech?
Can you use this board on a different ECU or can RusEfi communicate with a box from say MaxxEcu or Haltech?
- AndreyB
- Site Admin
- Posts: 14381
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: smallCANboard also known as Small CAN Board
There is no standard unfortunately.
This box is a very flexible but pretty advanced tool - it allows a high degree of customization using Lua scripting language. For instance https://github.com/rusefi/rusefi/blob/master/firmware/controllers/lua/examples/ms29bit.txt is an integration between rusEFI and a 3rd party control unit - someone had to develop that script for that specific application.
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
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
-
- Posts: 91
- Joined: Wed Mar 31, 2021 10:00 pm
Re: smallCANboard also known as Small CAN Board
Looks like 25K?
Code: Select all
2023-11-02_11_27_21_789: EngineState: Lua memory heap usage: 14163 / 25000 bytes = 56.6%
2023-11-02_11_27_21_790: EngineState: confirmation_luamemory:9
Matt
MT Motorsport / EcotecMiata
MT Motorsport / EcotecMiata
- AndreyB
- Site Admin
- Posts: 14381
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: smallCANboard also known as Small CAN Board
Let's see if https://github.com/rusefi/rusefi/commit/dac73c6b8a446c39bb966fdf99bbc6ba4e22a0ed fixes it, please update to latest snapshot in a couple of hours. I do see 50K working locally
Code: Select all
2023-11-02_11_53_00_833: EngineState: Lua memory heap usage: 14163 / 50000 bytes = 28.3%
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
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
-
- Posts: 91
- Joined: Wed Mar 31, 2021 10:00 pm
Re: smallCANboard also known as Small CAN Board
Code: Select all
2023-11-02_14_36_35_284: EngineState: Added Lua CAN RX filter id 0x18EFFF21 mask 0x1FFFFFFF without custom function
2023-11-02_14_36_35_284: EngineState: Added Lua CAN RX filter id 0x18EFFF18 mask 0x1FFFFFFF without custom function
2023-11-02_14_36_35_284: EngineState: Added Lua CAN RX filter id 0x14EF111E mask 0x1FFFFFFF without custom function
2023-11-02_14_36_35_284: EngineState: Added Lua CAN RX filter id 0x14EF1121 mask 0x1FFFFFFF without custom function
2023-11-02_14_36_35_284: EngineState: Added Lua CAN RX filter id 0x18EF2100 mask 0x1FFFFFFF without custom function
2023-11-02_14_36_35_284: EngineState: Added Lua CAN RX filter id 0x11223344 mask 0x1FFFFFFF without custom function
2023-11-02_14_36_35_285: EngineState: LUA script loaded successfully!
2023-11-02_14_36_35_285: EngineState: Lua memory heap usage: 29822 / 50000 bytes = 59.6%
Matt
MT Motorsport / EcotecMiata
MT Motorsport / EcotecMiata