Difference between revisions of "EON"

From Tinkla: Tinkering with Tesla
Line 44: Line 44:
  
 
=== Flash your Pedal ===
 
=== Flash your Pedal ===
If you have a Pedal that you built yourself or has old or non-Tesla firmware, now is the time to [[Pedal_Interceptor#Flashing_the_firmware_for_Tesla_Pedal|flash the firmware for Tesla Pedal]].
+
If you have a Pedal that you built yourself or has old or non-Tesla firmware, now is the time to flash the firmware for Tesla Pedal.
 +
{{Flashing the Pedal|showUsbFlashing=false}}
  
 
=== Final steps ===
 
=== Final steps ===

Revision as of 01:12, 18 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.

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.)

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 Tinkla username (preferred, if available) or to your Discord handle.

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). Keep in mind that config changes only apply after rebooting the EON.

Flash your Panda

After installing or updating OpenPilot on your EON, you need to also update the software on your Panda. Here's how:

In your Tesla while it says “Car Off” connect your Panda to your Giraffe rev B OBD (or EPAS OBD). Connect your EON to the Panda via USB. Then SSH in and run:

cd /data/openpilot/panda/board
killall boardd
make clean
make && sleep 1 && (make recover || make recover) && echo Success! Rebooting in 2s... && sleep 2 && reboot

The kill command ensures that the EON stops regular communication to the Panda. That's also why a reboot is needed at the end. If any error occurs (which of course should not happen) the reboot will be skipped so you can troubleshoot. AssertionErrors should be fixed by rebooting EON and trying a second time. Optionally you may also power cycle your Panda by reseating it.

Flash your Pedal

If you have a Pedal that you built yourself or has old or non-Tesla firmware, now is the time to flash the firmware for Tesla Pedal. Template:Flashing the Pedal

Final steps

Check here to learn more about all the controls, functions and features related to longitudinal control: Using adaptive cruise control

Finally, edit this wiki page and add your Discord handle and Tesla type: Comma.ai wiki:Tesla