Ethernet instead of WiFi
Posted: Fri Dec 10, 2021 6:24 pm
On the back of a conversation around the flakiness of WiFi I did a little experiment to see if there was a simple way to add ethernet to an OI board. Turns out there is!
Olimex do an esp32 board which includes an ethernet port.
@0xBedz has already implemented an esp32 version of the firmware. I took this, added a couple of tiny tweaks to enable ethernet and it appears to be working.
Code is over in Github here.
I started writing up some info in the wiki here.
This is also good for paranoid people like me who don't want their car accessible over WiFi
To do
Olimex do an esp32 board which includes an ethernet port.
@0xBedz has already implemented an esp32 version of the firmware. I took this, added a couple of tiny tweaks to enable ethernet and it appears to be working.
Code is over in Github here.
I started writing up some info in the wiki here.
This is also good for paranoid people like me who don't want their car accessible over WiFi
To do
- See what the power consumption of the board is to see if it can reasonably powered by the OI board.
- Right now, the ethernet port comes up as a DHCP client. I'll see if there is a simple way to have the board act as a DHCP server. This might be a more intuitive way for people to use it. I.e., plug in laptop, laptop acts as DHCP client, gets IP from esp32 board.
- It has a few serial ports. I'd like to use one of these modules in my two-brain, dual-motor Prius board so I can access both brains easily at the same time. This might necessitate extending the web interface so it knows how to deal with more than one serial port.
- I have a WT32-ETH01 board on its way to me as well. I'll see if I can get this one working too. It's a bit smaller, so might be handier.