3 ms·
> But are microcontrollers with ethernet common? How cheap are they? Define "common". However, they are available. I see some right around $4 from ST. > A M
by bsder 5y ago
> But are microcontrollers with ethernet common? How cheap are they?
Define "common". However, they are available. I see some right around $4 from ST.
> A MAC needs a lot of pins compared to CAN which will increase footprint.
Normally the pins on the connector are far more critical than the pins on the microcontroller. RMII takes up 9 pins on the microcontroller.
> And to really take full advantage of ethernet, you need a good networking stack and a solid set of utilities and applications on top. So Linux is the way to go in that case. But then you need a big processor with external RAM, eMMC, PMIC, several layer board, and don't forget a couple of Linux weirdos (speaking as one) who can actually develop in that environment. A lot of embedded guys can understand CAN pretty easily; show them gRPC and their heads may explode.
You are WAY too high-level. UDP works just fine for a lot of applications and takes next to nothing in terms of resources. And TCP doesn't require as much resource as you think (remember TCP dates back to the 1980s when memory was scarce). Even straight HTTP isn't too bad.
The biggest problem is HTTPS. That invokes a whole crapload of overhead.