Difference between revisions of "EON"
Line 24: | Line 24: | ||
<!--// Start Spoiler Area for How to SSH //--> | <!--// Start Spoiler Area for How to SSH //--> | ||
− | <div class="mw-collapsible mw-collapsed" style=" | + | <div class="toc mw-collapsible mw-collapsed" style="padding: 0.5em; display: block"> |
How to SSH to the EON | How to SSH to the EON | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> |
Revision as of 20:40, 17 November 2019
The EON is the name associated in the Comma.ai community to the device that sits in your windshield and does all the calculations for LKA and ACC.
Contents
EON DevKit (or FrEON)
The EON is based on the Qualcom Snapdragon 821 mobile platform. Phones like OnePlus 3T or LeEco LePro3 have been used to create the FrEON (the free EON). You can find some instructions here.
If you chose to buy your EON already made, you can do so from Comma.ai store for $599 USD.
Also, as we run more and more processing on the EON, it gets hotter and hotter. Some of us have opted to replace the original fan (which is also noisy when you're inside of a Tesla) with super quiet Noctua fans. $15 from Amazon and soldering two wires and you're good to go! We might have to actually double that to two Noctua fans in the neat future.
Also, keeping the phone screen off helps keeping the temperature low. I know, in the beginning one wants to see those lines matching the lines in the video, but after a while you stop paying attention to the screen. And if you have the IC integration all the data is on IC anyway. So turn that screen off and you will see the temperature drop about 15F.
Code for power management of battery (only charging when below 60% and stopping the charge when it reaches 80%) has helped keep the battery temperature lower and hence the CPU cooler. And this is a free upgrade, as the code is already in my repo.
Here is my EON bash profile (.bash_profile).
Installing OpenPilot for Tesla
Comma.ai doesn't support Tesla cars. That's why we maintain our own fork, which you will have to manually check out after setting up your EON.
DON’T INSTALL UNLESS YOU HAVE A TESLA!
(Someone bricked their Jeep trying.)
How to SSH to the EON
In order to login to your EON via SSH, use the following key:
-----BEGIN PRIVATE KEY----- MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC+iXXq30Tq+J5N Kat3KWHCzcmwZ55nGh6WggAqECa5CasBlM9VeROpVu3beA+5h0MibRgbD4DMtVXB t6gEvZ8nd04E7eLA9LTZyFDZ7SkSOVj4oXOQsT0Gn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dHxJx8JLoGEnkC9eyvSi0C//tRLx86OhLErXwYcNkCf1it VMRKrWYoXJTUNo6tRhvodM88UnnIo3u3CALjhgU4uC1RTMHV4ZCGBwiAOb8GozSl s5YD1E1iKwEULloHnK6BIh6P5v8q7J6uf/xdqoKMjlWBHgq6/roxKvkSPA1DOZ3l jTadcgKFnRUmc+JT9p/ZbCxkA/ALFg8++G+0ghECgYA8vG3M/utweLvq4RI7l7U7 b+i2BajfK2OmzNi/xugfeLjY6k2tfQGRuv6ppTjehtji2uvgDWkgjJUgPfZpir3I RsVMUiFgloWGHETOy0Qvc5AwtqTJFLTD1Wza2uBilSVIEsg6Y83Gickh+ejOmEsY 6co17RFaAZHwGfCFFjO76Q== -----END PRIVATE KEY-----
You can download the id_rsa key from the openpilot-tools repo,here With that key you can SSH in as root on port 8022. If you're using PuTTY, you'll need to convert that id_rsa (private key) into a .ppk (PuTTY Private Key)... no passwords needed.
Just save the above key as a text file, name it "eonkey.pem" or anything you like;
1) Under Unix/Linux environment, or Mac terminal, please run: $ chmod 600 eonkey.pem (otherwise the system will think the text file is not safe).
2) To connect to your EON using this key, save the text above to a blank text file and name the file eonkey.pem. (Just make save it into the same working directory, to check using commands "pwd" and "ls".
Then get the IP address of your EON in settings under settings > wifi > advanced (please make sure your EON and your computer connect to the same WiFi).
3) To check your connection: $ ping the EON IP address, like "ping 192.168.1.100"; please try a couple times until you see the data exchanging. like: "PING 192.168.2.1 (192.168.2.1): 56 data bytes 64 bytes from 192.168.2.1: icmp_seq=0 ttl=64 time=1.710 ms 64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=13.899 ms"
4) Under a linux, MAC machine or PuTTY environment, use the command:
ssh root@(IP address of EON) -p 8022 -i eonkey.pem
like "$ ssh root@192.168.1.100 -p 8022 -i eonkey.pem"
This is the same key in PuTTY ppk format:
PuTTY-User-Key-File-2: ssh-rsa Encryption: none Comment: imported-openssh-key Public-Lines: 6 AAAAB3NzaC1yc2EAAAADAQABAAABAQC+iXXq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v8boH3i42OpNrX0Bkbr+qaU4 3obY4trr4A1pIIyVID32aYq9yEbFTFIhYJaFhhxEzstEL3OQMLakyRS0w9Vs2trg YpUlSBLIOmPNxonJIfnozphLGOnKNe0RWgGR8BnwhRYzu+k= Private-MAC: 2af7f5a599fa35e22392b7770a2eb7a0be8718b7
To use it in PuTTY, just be sure to reference that .ppk under... Connection > SSH > Auth > Private key for authentication
To set your timezone...
- setprop persist.sys.timezone "US/Pacific"
...or whatever your timezone is.
Instead of working with above key files, one may also add the following single line into ~/.ssh/known_hosts :
[192.168.43.1]:8022 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBObmX06kATNtKj+x/Zk2gXkYzkE5St8j7kWhw07x6iiQZK8mK5VmANzHGNuTeInDZHh5sRJ/BcUqpYz1hI0WnMQ=
With this entry one can then log into EON without password via:
ssh -p 8022 192.168.43.1
Note: The Wifi tethering IP address of EON is 192.168.43.1. If EON is on home WIfi, replace 192.168.43.1. with appropriate address.
Git the Tesla OP Fork
SSH into your EON and execute the following commands (you need internet connectivity on your EON):
rm -rf /data/openpilot
git clone --depth 1 https://github.com/BogGyver/openpilot.git -b tesla_devel /data/openpilot
reboot
The first reboot will take around 20 minutes to set everything up.
Edit your Config
After the EON has booted you can edit your config, which now has been automatically created. At the top find user_handle = your_tinkla_username
and change your_tinkla_username to your Discord handle. (Tinkla username can be used if you have one, and we recommend it.)
nano /data/bb_openpilot.cfg
Make sure to set use_tesla_gps = True
in case you're using a White Panda (Grey Panda has GPS built in). With GPS info of your drives you're helping Comma to improve their models (OpenPilot uploads your drives to their servers).
After that you can proceed with flashing your Panda and possibly also your Pedal.
Flash your Panda
In your Tesla while it says “Car Off” connect your Panda to your Giraffe rev B OBD (or EPAS OBD). Connect your EON and panda via USB then SSH and run:
cd /data/openpilot/panda/board
killall boardd
make
make recover
make recover
reboot
After your EON reboots, if you have a Pedal skip to Flash your Pedal. If you don't have a Pedal, review how to control OpenPilot ACC and take your improved Tesla for a spin.
Finally, edit this wiki page and add your Discord handle and Tesla type: Comma.ai wiki:Tesla
Flash your Pedal
If you have a Pedal, now is the time to flash the firmware for Tesla Pedal.
Finally, edit this wiki page and add your Discord handle and Tesla type: Comma.ai wiki:Tesla
Controlling Adaptive Cruise Control
Check here to learn more about all the controls, functions and features related to longitudinal control: Using adaptive cruise control