What i just bought and will be building...

Post Reply
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

What i just bought and will be building...

Post by EV_Builder »

I had something in my head; how we (DIY EV) are gonna control our cars from our phone over internet, from home or the office.
So i was planning to build an APP for that. In the car offcourse we want a module who connects to the internet.
Where ever it is...
RASPB_PI_ZERO2W.PNG
RASPB_PI_4GHAT.PNG
So we got an normal operating system running apache and a internet connection.
Over USB i will connect CANBus to the car. The HAT will give me GPS and 4G.

I will use it to schedule the heating and charging etc. etc.

Ideas are welcome.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
vaijab
Posts: 2
Joined: Tue Jul 13, 2021 7:57 pm

Re: What i just bought and will be building...

Post by vaijab »

How are you planing to secure it? Your mention of apache is concerning, but I get it, I am over generalizing a bit.
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: What i just bought and will be building...

Post by EV_Builder »

Good point i think by using api-keys pairing.
On the internet interface everything outgoing or incomeing will be blocked except port 80?
Maybe by making an VPN connection first?

Do you have suggestions?
Another way would be to send SMS with IP of phone and then receiver can simply check if its owner and then add only that IP to firewall?
Or make it totally sms based?
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
User avatar
johu
Site Admin
Posts: 5682
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: What i just bought and will be building...

Post by johu »

Cool project!

I always used VPN (openvpn) as it also facilitates things when machines are on the same network. You just need some server that is permanently running. Could even be another Pi on your home network.
It rules out all these headaches about dyndns, outdated server software because there is no open ports
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: What i just bought and will be building...

Post by EV_Builder »

Yes; I thought I would VPN into the car but indeed "phone home" is even safer concept.

I just would like to schedule heating and monitor charging / settings.

And know where the vehicle is.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
User avatar
thornogson
Posts: 60
Joined: Sun Mar 15, 2020 10:04 am
Location: United Kingdom
Been thanked: 1 time

Re: What i just bought and will be building...

Post by thornogson »

EV_Builder wrote: Wed Apr 20, 2022 4:45 pm Yes; I thought I would VPN into the car but indeed "phone home" is even safer concept.

I just would like to schedule heating and monitor charging / settings.

And know where the vehicle is.

Boating people have SignalK/Influx db and dashboard with grafana like this ..


any use ?
We are all ignorant, just about different things. If y'aint learnin', y'aint livin'
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: What i just bought and will be building...

Post by EV_Builder »

Might be, might be. Txs
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
User avatar
catphish
Posts: 954
Joined: Fri Oct 08, 2021 11:02 pm
Location: Dorset, UK
Has thanked: 93 times
Been thanked: 179 times

Re: What i just bought and will be building...

Post by catphish »

EV_Builder wrote: Tue Apr 19, 2022 7:14 pm Maybe by making an VPN connection first?
Do you have suggestions?
I am a professional network engineer so I'd like to say I can speak with some authority on this particular subject.

The best approach is to use a VPN to "phone home", and block all traffic from the public interface apart from the VPN itself. I'd recommend Wireguard these days for the VPN, it's simple and lightweight. But openvpn is also a popular choice.

You will need a machine somewhere with a static IP for it to connect to. Once the VPN is established, you will have a nice secure way to access the device back through the VPN tunnel.
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: What i just bought and will be building...

Post by EV_Builder »

So my phone and my car should do that. Then I can communicate gotcha.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
Post Reply