Hi guys, really interesting topic, thank you
@green1 for the technical info.
I wish I had read this 6 month ago when I started myself playing with raspberry pi in the model S LAN. Instead, I took the hard way: I purchased a broken CID and got the flash image out of it. Then I found interesting scripts there very well documented and many of them (written in perl and bash) ready to be copied, a little bit edited and run on the pi. Also the URL format for setting and reading variables was clearly written there.
This is great because even without root access one who knows a little bit of bash and is familiar with linux, can locally control anything on the car through raspberry pi wifi, without depending on tesla servers and vpn. I am able for example to start the car and drive it without key by setting the value of a single variable, without even root access. I tested this by first unlocking the doors with the key, still have to figure out how to wake up gw and CID and then unlock the doors, but I guess it shouldn't be so difficult. It was mentioned that wake-up signal comes by sms, then there should be a hardware signal, like an interrupt pin, which goes from the modem to the CID. If anybody figured this up, please confirm.
I totally agree with
@green1 that the owner should be able to do whatever he wants with his car. It is about the right of ownership, but also about privacy. I was shocked when I saw how easy any data from this car is remotely accessible to tesla, including browsing current page, history, current playing song, and all GPS related data. The owner has no control and information about this.
The first thing I did when I've got this car was to route all internet traffic through the raspberry pi and drop all traffic on the ports used for tesla VPN. Now I am on the way to replace all the functionality of the Tesla app with a local raspberry pi web page.
@green1, keep posting updates, specially if you found a way to root the CID without messing up with BGA flash memory chips. I don't expect a tutorial, but small clues for people who know what they are doing, as you previously posted.
Have a wonderful Christmas guys !