Author: Jan

Simple CLI (Shell) Language

The ECU’s I make all have a small CLI included to execute a selection of commands including set/get commands accessing the dictionary. This started as a proprietary addition on 3 x CAN Hub, but is beeing upgraded to become standard on all as a minimal shell language. It is actually three modules involved as I…

Read the full article

RTOS w/Dictionary

RTOS with a Dictionary is standard in any system I build. Most people will think FreeRTOS or a similar thread shifter then we say “RTOS” on embedded, but the hard reality is that most embedded systems are “barebone” and run some version of a round robin scheduler. Myself I do the same – I install…

Read the full article

ECU – Dual Ethernet

I am using KSZ8863RLL to achieve dual Ethernet, This is a 3 port switch and it basically just replace the LAN8742. The MCU will just see an ordinary Ethernet not realizing that it is a switch. My initial idea was to re-use the ECU main board with minimal changes, but I underestimated the amout of…

Read the full article

Ethernet 100Mbit vs 1000Mbit

As mentioned in my previous entry I started with 100Mbit, considered 1000Mbit and reversed to 100Mbit. The reasons to stick to a more conservative 100Mbit are many: Cost for 100Mbit is ca 1/4th of cost for 1000Mbit. Very few PLC type systems support 1000Mbit on daisy chain designs. And the hard fact is that a…

Read the full article

AI Messed Up

I use AI a lot in both electronic design and coding and it mostly provides very good assistance. But, it sometimes messes up completely. This is something you must be aware of. I started by selecting KSZ8863 as a 3-port Ethernet switch. Talking to AI I ended up with a more modern 1000Mbit version, but…

Read the full article

Profinet Circle

The ilustration below focus of how you daisy chain Profinet (or Ethercat) using a dual ethernet device and optionally create a fully redundant circle. This design has some popularity in classic PLC designs, but it comes with some pros and cons: Pros It is easy to connect device to device at 100Mbit and even 1Gbit…

Read the full article

2 x Ethernet

This is an old mock-up for a dual Ethernet module. The design is simple as it is a 3-port Ethernet Switch with 2 external PHY’s and one internal RMII port, so the MCU just run lwIP using a RMII port as before and it is in effect a switch so you can connect modules in…

Read the full article

New ECU Main

It is a while since I designed this ECU Main board and to my shame I admit that I did not even assemble the first version because the solutions and SW is the same as for the 3 x CAN board. I am considering requesting new PCB’s now as soon as I am finished with…

Read the full article

3 x CAN v1.1B

Latest 3 x CAN upgrade before I order new PCB’s. Added Current Sensor on 24V Added 4 Leds Re-organized leds in a row. Cleanup isolation on PSU bit.