2018-10-09 21:15:33 -05:00
2018-10-08 07:04:23 -07:00
2018-10-09 13:10:45 -05:00

teslausb

Steps and scripts for turning a Raspberry Pi into a useful USB drive for a Tesla. The original intent is to auto-copy Dashcam files to a Windows (SMB/CIFS compatible) share.

This repo contains scripts originally from this thread on Reddit

Many people in that thread suggested that the scripts be hosted on Github but the author didn't seem interested in making that happen.

I've hosted the scripts here with his/her permission.

Hardware Suggested in Thread

Note only the Pi Zero W and recent Pi's support the USB protocol for connecting to them as network devices. Not needed for normal operation, but it's very helpful during the setup process.

Optionally a

  • USB A to USB Micro (for power and optionally connecting to Pi Zero over USB to configure)

  • USB Splitter if you don't want to lose a front USB port

    • Onvian Splitter: Amazon - Reported working by multiple people.

Basic Steps

This is captured in the original Reddit post, but starting to recreate this here so the community can contribute to the scripts and setup instructions.

  1. Obtain the necessary hardware (Pi, USB cable, USB splitter if needed, SD card)
  2. Download Raspbian Stretch Lite (tested by original poster, others may work).
  3. Write the Raspbian image to the SD card. Etcher (etcher.io) works well and is multi-platform.
  4. If you don't have a keyboard/HDMI setup to boot the Pi and edit/transfer files directly, you'll probably want to connect to it over USB. See the section below for instructions there.
  5. Create the network destination for your Dashcam files. The original post uses a Windows share, but hopefully this repo will get updated to support other destinations.
  6. Continue to follow the instructions in the Reddit post; this readme will be updated with full instructions over time.

Connecting to Raspberry Pi Zero W (or similar) over USB (no HDMI needed)

Basically what you're doing is using the Pi's capability to emulate a network connection over USB. So you need to get the Pi (the guest) set up to load the proper modules to do so, and then connect from your machine (the host) using a shell (like iTerm+SSH on macOS, or PuTTY on Windows).

Here are a few ways to accomplish this

TODO/Asks

  • Script to make this easy to get going. Ideally supports multiple targets (see further TODO/Asks)
  • Copy to AWS S3 / Google Drive / Etc
  • Copy to SSH/SFTP
  • Official license?
Description
No description provided
Readme MIT 874 KiB
Languages
Shell 92%
PowerShell 8%