Difference between revisions of "Tinkla Buddy"

From Tinkla: Tinkering with Tesla
(Power)
m (v1.44)
 
(116 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=== Coming Soon ===
+
{|class="wikitable"
Tinkla Buddy is now in beta stage. Info coming soon!
+
|-
 +
| [[Tinkla Buddy|What is Tinkla Buddy?]] || [[Tinkla Buddy Install Kit|Tinkla Buddy Install Kit]] || [[Tinkla Buddy Installation|Installing your Tinkla Buddy]] || [[Tinkla Buddy Configuration|Configuring your Tinkla Buddy]]
 +
|}
 +
 
 +
__NOTOC__
 +
 
 +
[[File:T_Buddy.png|800px|center]]
 +
== What is Tinkla Buddy? ==
 +
Tinkla Buddy (formerly rPanda) is a nice solution for our Teslas to have Instrument Cluster [IC] integration without root.
 +
 
 +
If you don't have root access to your Tesla, you can now enjoy these benefits:
 +
 
 +
* OpenPilot Integration into IC for pre-AP cars.
 +
* In car WiFi Access Point
 +
* Control Relay via CID buttons for after-market features
 +
* Secure Remote Access to your Buddy from ANYWHERE
 +
* and More!
 +
 
 +
== Pricing ==
 +
 
 +
=== Hardware Prices And Options ===
 +
 
 +
The [[Tinkla Buddy Install Kit|Tinkla Buddy install kit]] costs about $200 USD, depending where your source components.
 +
 
 +
=== Software License Prices ===
 +
 
 +
Tinkla Buddy software license is a yearly subscription model locked to the VIN of the car, so if you replace the hardware on the same car it will still work, but will not work to move the license to another car.
  
 +
The cost of the Tinkla Buddy software subscription is:
 +
* $150.00 USD for the first year and
 +
* $100.00 USD for each subsequent year.
  
=== Creating the SD card ===
+
== Software Design History ==
  
* On Windows PCs you can use [https://tinkla.us/files/win32diskimager.rar Win32DiskImager] to create to burn the image to the SD card for your Tinkla Buddy.
+
=== v1.44 ===
* On Linux flavors (including Mac OS) you can just use the dd command.
+
* Tesla 2020.36.3.1 compatibility
<source>
+
* Fast setup detection
dd if=tinkla_buddy.img of=/dev/dse status=progress
+
* WiFi Client mode
</source> where '''tinkla_buddy.img''' is the name of the disk image you downloaded from this site and '''/dev/sde''' is the device corresponding to your SD card mounted on Linux.
+
* Keep Awake for Tegras
 +
* Control Relays using Tinkla Buddy Menu
  
=== Disk Images ===
+
<div class="toccolours mw-collapsible mw-collapsed">
 +
 
 +
=== v1.37 ===
 +
<div class="mw-collapsible-content">
 +
* Fix screenshot capturing script
 +
* Fix issues with detecting MCU1 vs MCU2
 +
* Added sound triggering capabilities on CID
 +
* Fix issues when running old firmware and cid-updater is not working anymore
 +
</div>
 +
</div>
  
Please select the appropriate image for your device.
+
<div class="toccolours mw-collapsible mw-collapsed">
{| class="wikitable"
+
=== v1.33 ===
|-
+
<div class="mw-collapsible-content">
! Device
+
* Tesla 2020.24.6.1 compatibility
! Image
+
* [[#Cron_Jobs|Remote cron capabilities]] that allow you to run bash scripts on CID every 1, 5, 15 or 60 minutes (requires root persistence)
! MD5sum
+
* Fixes for persistence scripts to work well with 2020.20 and newer Tesla software
|-
+
* Speed/reliability improvements
| R1S H5
+
</div>
| [https://tinkla.us/files/tinklaBuddy-H5-1.22-2020.03.22.img.gz  v1.22-H5 (built 03/22/2020)]
+
</div>
| 77f1c932262e44b9267dd7a85d87c969
 
|-
 
| R1S H3
 
| [https://tinkla.us/files/tinklaBuddy-H3-1.22-2020.03.22.img.gz  v1.22-H3 (built 03/22/2020)]
 
| 38181aa0f508f2e599806e9a94ade3ca
 
|}
 
  
'''Note:''' the image file is very large (650+ Mb compressed) and will take some time to download. Also, depending on the speed of your SD card, it may take a long time to burn.
+
<div class="toccolours mw-collapsible mw-collapsed">
 +
=== v1.27 ===
 +
<div class="mw-collapsible-content">
 +
* Fully boot without being connected to either IC or CID
 +
* Reduce number of QtCar restarts by detecting IC state
 +
* Increase automatically switch back to analog to 5 min to allow for buddy reboots without changes to IC
 +
* Increase number of checks for state of IC and CID before pulling Vitals
 +
</div>
 +
</div>
  
=== History ===
+
<div class="toccolours mw-collapsible mw-collapsed">
 +
=== v1.26 ===
 +
<div class="mw-collapsible-content">
 +
* Allow Buddy to boot without IC/CID on
 +
* Bug fix for IC not turning on after deep sleep
 +
(Note: Vitals need to be re-enabled after each version upgrade)
 +
</div>
 +
</div>
  
==== v1.22 ====
+
<div class="toccolours mw-collapsible mw-collapsed">
 +
=== v1.25 ===
 +
<div class="mw-collapsible-content">
 +
* Bug fix for vitals without root on latest versions (up to 2020.12.11.5)
 +
* Bug fix with Factory Mode on latest versions (up to 2020.12.11.5)
 +
* Detects automatically if cars has AP hardware (1/2/2.5/3)
 +
* Detects automatically if car has MCU1 or MCU2 hardware
 +
* Vitals checking is an option now in Tinkla Menu and is disabled by default
 +
</div>
 +
</div>
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed">
 +
=== v1.22 ===
 +
<div class="mw-collapsible-content">
 
* Fully redesigned networking stack for faster response on boot, activation and interaction
 
* Fully redesigned networking stack for faster response on boot, activation and interaction
 
* Now Tinkla Buddy can be installed between IC and MCU (IC <--> Buddy <--> MCU) or between MCU and APE (MCU <--> Buddy <--> APE) allowing it to work on both MCU1 and MCU2 cars.
 
* Now Tinkla Buddy can be installed between IC and MCU (IC <--> Buddy <--> MCU) or between MCU and APE (MCU <--> Buddy <--> APE) allowing it to work on both MCU1 and MCU2 cars.
Line 40: Line 101:
 
* Auto-detection of installation location
 
* Auto-detection of installation location
 
* Improved WiFi stability
 
* Improved WiFi stability
 +
</div>
 +
</div>
  
 
<div class="toccolours mw-collapsible mw-collapsed">
 
<div class="toccolours mw-collapsible mw-collapsed">
 
+
=== v1.21 ===
==== v1.21 ====
 
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
* Fixes issue with starting persistence mode
 
* Fixes issue with starting persistence mode
Line 51: Line 113:
  
 
<div class="toccolours mw-collapsible mw-collapsed">
 
<div class="toccolours mw-collapsible mw-collapsed">
==== v1.20 ====
+
=== v1.20 ===
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
* Menu button trigger for Tinkla Menu for older (LIN based) steering wheel controls
 
* Menu button trigger for Tinkla Menu for older (LIN based) steering wheel controls
Line 58: Line 120:
 
</div>
 
</div>
 
</div>
 
</div>
 
== Buddy Installation ==
 
The hardest part of installing a Tinkla Buddy is finding an always-on power source. The three most viable options are (a) if you have a Tesla with the Cold Weather package there is a fuse box near the accelerator which makes this a 30 minute install, (b) if you have a fuse box behind the passenger kick panel (2016 and later) and you'll need to re-crimp your 12v red wire for an hour install, or (c) if you don't have a fuse box in the cabin pull a wire through a gasket on the firewall behind the washer fluid reservoir in the Frunk which can take 1-2 hours.
 
 
For those getting the Buddy for Beta testing, you need to send @BogGyver#9177 your VIN, so he can add it to his server.
 
 
=== Instrument Cluster Connections ===
 
There are multiple videos on how to remove the Instrument Cluster [IC], here is one for the Model S:
 
 
<youtube>https://www.youtube.com/watch?v=gJe0lO6nvlU</youtube>
 
 
After you have opened up the IC, and you can access the Fakra cable on the back, you can connect your LAN Fakra-RJ45 cable directly on to the back of the IC. Then you can take the WAN Fakra-RJ45 cable and connect it to the cable that was previously connected to the IC.
 
 
Here is a diagram of the end result:
 
[[File:Rpanda.png|thumb|center]]
 
 
While the Dash is already open, this is a good time to run power for your Tinkla Buddy.
 
 
=== Power ===
 
Based on your Tesla Model and included packages, you'll want to follow the corresponding installation guide for Power. We'll need a 12v constant power supply. Places like the USB outlets or 12v accessory outlet is no good because those switch off when the car is "off". If you have an AP1 car or have completed the full AP1 retrofit '''and''' you aren't using it for OP power, you can just use the empty OBD port.
 
 
{| class="wikitable"
 
|-
 
| [[#Tesla w/Cold Weather Package or Tesla Model X (Fuse Box in cabin)|Tesla w/Cold Weather Package or Tesla Model X (Fuse Box in cabin)]]
 
|-
 
| [[#Tesla S built 2016+ (Fuse Box in cabin)|Tesla S built 2016+ (Fuse Box in cabin)]]
 
|-
 
| [[#Tesla w/o Fuse Box in Cabin|Tesla w/o Fuse Box in Cabin]]
 
|}
 
 
==== Tesla w/Cold Weather Package or Tesla Model X (Fuse Box in cabin) ====
 
If you have a Tesla with the Cold Weather package then there is a fuse box near the accelerator which makes this a 30 minute install.
 
 
'''Model X''' You will need a new Fuse Holder and a ring terminal for Power.
 
 
 
Once you're done running power we can move on to [[#Connecting the Tinkla Buddy|connecting the Tinkla Buddy]].
 
 
==== Tesla S built 2016+ (Fuse Box in cabin) ====
 
If you have a 20016 or later Tesla then there should be a fuse box behind the passenger kick panel and you'll need to re-crimp your 12v red wire whhich will make this about an hour install.
 
 
 
Once you're done running power we can move on to [[#Connecting the Tinkla Buddy|connecting the Tinkla Buddy]].
 
 
==== Tesla w/o Fuse Box in Cabin ====
 
If you don't have a fuse box in the cabin then pull a wire through a gasket on the firewall behind the washer fluid reservoir in the Frunk. Depending on your method of poking a hole in the gasket and your method of pulling your 16-18 gauge wire through your hole, this can take between 1-2 hours if not longer.
 
 
Tools required:
 
* 13mm socket (for the ground)
 
* Plastic pry tool
 
* Fishing tape (or metal hanger)
 
* Sharp tool to poke a hole in a rubber gasket.
 
 
[[File:TB1.JPEG|500px|center]]
 
Fuse Box 2 in the Frunk. The red wire from TBuddy is tapped into an empty F36 fuse. (this car doesn't have Air Suspension.
 
[[File:TB2.JPEG|500px|center]]
 
A zoomed out view of where the red wire runs to get to Fuse Box 2
 
[[File:TB3.JPEG|500px|center]]
 
Looking behind the washer fluid reservoir, you can see a gasket that will give us access to the cabin.
 
[[File:TB4.JPEG|500px|center]]
 
This is a closer view of the gasket in the frunk that we can use to route cables into the cabin.
 
[[File:TB5.JPEG|500px|center]]
 
This is the cabin side of the gasket, hiding low and left when you take off the driver's side kneeboard.
 
[[File:TB6.JPEG|500px|center]]
 
This is a zoomed out view of the compartment behind the kneeboard. there is a plastic panel on the left which is easy to remove and has two 13mm bolts you can use for ground.
 
 
Once you're done running power we can move on to [[#Connecting the Tinkla Buddy|connecting the Tinkla Buddy]].
 
 
=== Connecting the Tinkla Buddy ===
 
Before you're ready to power the Buddy:
 
# Make sure you have the RJ-45 barrel on the network cables,
 
# the IC and CID are online,
 
# and the Tesla is ON. (Press and hold the Brake until you hear/feel the car turn on.)
 
 
Then while the Buddy is unplugged of power, insert the RJ-45 cables into the correct jack on the Buddy.
 
* The CID goes in the WAN port
 
* The IC goes in the LAN port.
 
 
The SD card with the latest image should be inserted into the Tinkla Buddy '''BEFORE''' power is connected to the Buddy.
 
 
Now you can plug power into the Tinkla Buddy.
 
 
At this point the Buddy will reboot 3-4 times, and then attempt to receive the cert's from Bog's server.  This takes about 4-5 minutes. Image inflation can take a good deal longer. Walk away from your car and give the Buddy about 20 minutes to finish initializing. When you return you should see two flashing green LEDs on the Tinkla Buddy and one red Flashing LED.
 
 
=== Install Complete ===
 
To get IC AutoPilot integration view, update your [[OpenPilot Configuration File]] to look like: <code>enable_das_emulation = True</code>
 
To see if it is working you have two ways to activate the Tinkla Menu:
 
# Press steering wheel menu button 4 times, if this does not work, then go to step 2.
 
# Press park button 4 times fast.
 
 
== Configuration / Setup ==
 
There are two ways to easily setup and configure your Tinkla Buddy after install.
 
# [[#Using the Tinkla Menu|Using the Tinkla Menu]]
 
# [[#Using the Tinkla Access Point webapp|Using the Tinkla Access Point webapp]]
 
# [[#Using Tinkla Bastillion Server|Using Tinkla Bastillion Server]] (Advanced)
 
 
==== Using the Tinkla Menu ====
 
The Tinkla Menu has various basic configuration settings you can activate.
 
 
[Tinkla Menu]
 
# '''Tinkla'''
 
#* '''Buddy'''
 
#** '''Restart''' - Restarts Tinkla Buddy's processes.
 
#** '''Reboot''' - Reboots Tinkla Buddy, entirely. (''Not recommend'')
 
#** '''Update''' - Checks for a Tinkla Buddy update.
 
#** '''Quiet''' - Puts the device in a quiet mode for Service Center visits.
 
#* '''Wifi'''
 
#** '''Info''' - This shows the current Wireless Access Point name and password to join the network and use your car's 3g or LTE internet.
 
#* '''IC Int.''' - Here you can Turn Integration '''On''' or '''Off'''
 
#**IC integration allows OpenPilot to appear on the Instrument Cluster similar to Tesla AutoPilot. It also shows data from your Baolong TPMS as if you have a Conti TPMS retrofit.
 
#** '''Please note:''' it can take up to a minute for your IC to restart the processes in integration mode and it will flicker twice during the process. The IC isn't rebooted, just restarting processes.
 
#* '''Tunnels''' - Here you can turn Tunnels '''On''' or '''Off'''
 
#** Turning tunnels on allows you to use the Tinkla Bastillion server to SSH into your Tinkla Buddy and it enables the remote control app (in development)
 
# '''Tesla'''
 
#* '''Tokens''' - If you are a security researcher and have access to your car's systems, you'll be able to see it here.
 
#* '''Ludi'''
 
#** '''Temps''' - This option adds a temperature gauge to the bottom left third of the power graph when using IC Int.
 
#** '''On''' - This option adds the temperature gauge from above, shows a wireframe of your car exposing front and rear motors, and adds a power value and peak usage graph to the left side of your IC.
 
#** '''Off''' - Disables all of the Ludi additions.
 
#* '''Misc'''
 
#** '''VLow''' - Sets air suspension very low (your car must be parked to enable).
 
#** '''IC SS''' - <Known Bug> This will take a screenshot of your IC and email it to you. (You'll need to SSH into Tinkla Buddy to configure <code>/home/pi/.tinkla/email_settings</code>)
 
#** '''CID SS''' - <Known Bug> This will take a screenshot of your Central Infotainment Display [CID] and email it to you. (You'll need to SSH into Tinkla Buddy to configure <code>/home/pi/.tinkla/email_settings</code>)
 
#* '''Advanced'''
 
#** '''Dev''' - This will enable you to access Dev Mode.
 
#** '''Fact''' - This will enable you to enter Factory Mode.
 
#** '''Unlock''' -This will unlock the Diagnostic Port.
 
#** '''Kill''' - This will kill any staged software updates.
 
# '''Info'''
 
#* '''...'''
 
# '''Custom'''
 
#* This set of menus are for your use to add/run your own menu scripts to run from the Tinkla Buddy and show the results on your CID. All additions and changes will need to be added to your Tinkla Buddy via SSH to <code>/home/pi/.tinkla/your_commands.json</code>
 
 
==== Using the Tinkla Access Point webapp ====
 
 
==== Using Tinkla Bastillion Server ====
 
This method is not recommended for initially setting up your Tinkla Buddy. This is a great way to tinker and customize some areas of your Tinkla Buddy and is only a Linux Command Line Interface [CLI].
 

Latest revision as of 04:09, 18 January 2024

What is Tinkla Buddy? Tinkla Buddy Install Kit Installing your Tinkla Buddy Configuring your Tinkla Buddy


T Buddy.png

What is Tinkla Buddy?

Tinkla Buddy (formerly rPanda) is a nice solution for our Teslas to have Instrument Cluster [IC] integration without root.

If you don't have root access to your Tesla, you can now enjoy these benefits:

  • OpenPilot Integration into IC for pre-AP cars.
  • In car WiFi Access Point
  • Control Relay via CID buttons for after-market features
  • Secure Remote Access to your Buddy from ANYWHERE
  • and More!

Pricing

Hardware Prices And Options

The Tinkla Buddy install kit costs about $200 USD, depending where your source components.

Software License Prices

Tinkla Buddy software license is a yearly subscription model locked to the VIN of the car, so if you replace the hardware on the same car it will still work, but will not work to move the license to another car. 

The cost of the Tinkla Buddy software subscription is:

  • $150.00 USD for the first year and
  • $100.00 USD for each subsequent year.

Software Design History

v1.44

  • Tesla 2020.36.3.1 compatibility
  • Fast setup detection
  • WiFi Client mode
  • Keep Awake for Tegras
  • Control Relays using Tinkla Buddy Menu

v1.37

  • Fix screenshot capturing script
  • Fix issues with detecting MCU1 vs MCU2
  • Added sound triggering capabilities on CID
  • Fix issues when running old firmware and cid-updater is not working anymore

v1.33

  • Tesla 2020.24.6.1 compatibility
  • Remote cron capabilities that allow you to run bash scripts on CID every 1, 5, 15 or 60 minutes (requires root persistence)
  • Fixes for persistence scripts to work well with 2020.20 and newer Tesla software
  • Speed/reliability improvements

v1.27

  • Fully boot without being connected to either IC or CID
  • Reduce number of QtCar restarts by detecting IC state
  • Increase automatically switch back to analog to 5 min to allow for buddy reboots without changes to IC
  • Increase number of checks for state of IC and CID before pulling Vitals

v1.26

  • Allow Buddy to boot without IC/CID on
  • Bug fix for IC not turning on after deep sleep

(Note: Vitals need to be re-enabled after each version upgrade)

v1.25

  • Bug fix for vitals without root on latest versions (up to 2020.12.11.5)
  • Bug fix with Factory Mode on latest versions (up to 2020.12.11.5)
  • Detects automatically if cars has AP hardware (1/2/2.5/3)
  • Detects automatically if car has MCU1 or MCU2 hardware
  • Vitals checking is an option now in Tinkla Menu and is disabled by default

v1.22

  • Fully redesigned networking stack for faster response on boot, activation and interaction
  • Now Tinkla Buddy can be installed between IC and MCU (IC <--> Buddy <--> MCU) or between MCU and APE (MCU <--> Buddy <--> APE) allowing it to work on both MCU1 and MCU2 cars.
  • Auto-detection of MCU type (Tegra vs Intel)
  • Auto-detection of AP type (pre-AP, AP1, AP2, AP2.5, AP3)
  • Auto-detection of installation location
  • Improved WiFi stability

v1.21

  • Fixes issue with starting persistence mode
  • LEDs now show status of tinklaBuddy and availability of valid cert

v1.20

  • Menu button trigger for Tinkla Menu for older (LIN based) steering wheel controls
  • Fixes brightness control
  • Resolves issue with crash when car would go in sleep mode