TMC is an independent, primarily volunteer organization that relies on ad revenue to cover its operating costs. Please consider whitelisting TMC on your ad blocker and becoming a Supporting Member. For more info: Support TMC

Anyone still rocking a Pi Zero W smart drive for TeslaCam on Sentry Mode?

Discussion in 'Model 3: User Interface' started by chilman408, Feb 22, 2019.

  1. chilman408

    chilman408 Member

    Joined:
    Sep 25, 2016
    Messages:
    246
    Location:
    94041
    I have been using the Pi Zero W setup for months on v9, no issues... Perfect setup for me because it auto archives clips to my network.

    After I got the Sentry Mode update today. My Pi0W no longer works, I get a camera icon with a grey X. The music partition still works though...

    If anyone is still using this setup and works, let me know how to get it done?

    I can't go back to a dumb usb drive.
     
  2. steve in socal

    Joined:
    Dec 24, 2018
    Messages:
    167
    Location:
    California
    You are light years ahead of me. Your solution sounds interesting
     
    • Like x 1
  3. lairdb

    lairdb Member

    Joined:
    Mar 26, 2018
    Messages:
    334
    Location:
    California
    With the release of Sentry mode, I've been thinking about getting back to this. (I ran it for a while, but had reliability issues that may have been a mix of Tesla bugs and project bugs.)

    At present, there seem to be three related github projects:
    • cimryan's, which is an evolution of an original reddit early attempt: cimryan/teslausb
    • LelandSindt's, which also came from a reddit inspiration, and is more focused on having a Zero W with a JuiceHat: LelandSindt/teslacam
    • milesburton's, which takes a whole different approach to power loss and corruption: milesburton/teslacam
    The cimryan one appears to be the most maintained and contributed, but none of them are high frequency.
     
    • Informative x 5
  4. chilman408

    chilman408 Member

    Joined:
    Sep 25, 2016
    Messages:
    246
    Location:
    94041
    I used a variation of cimryan's code base. Hadn't encountered any reliability issue with it.

    With the Sentry Mode update, this simply stopped working. It is a gray X icon when inserted. Curiously, the music partition works fine.
     
  5. IOIIOOO

    IOIIOOO Member

    Joined:
    Oct 14, 2017
    Messages:
    17
    Location:
    Central Iowa
    Mine stopped working when I got the 50.6 update. Nobody at Tesla that I’ve talked to seem to have a clue as to why.
     
  6. chilman408

    chilman408 Member

    Joined:
    Sep 25, 2016
    Messages:
    246
    Location:
    94041
    This has been fixed on within if you're using cimryan's teslausb
     
  7. C141medic

    C141medic Active Member

    Joined:
    Apr 9, 2016
    Messages:
    1,452
    Location:
    New Jersey
    I’m interested on doing this. Anyone know if the raspberry pi can be just plugged in to the front usb and will it be powered by that usb?
     
  8. lairdb

    lairdb Member

    Joined:
    Mar 26, 2018
    Messages:
    334
    Location:
    California
    Yes. Of course, it shuts down abruptly when power is removed from the USBs, which is why each of the projects has an approach to handling frequent unexpected depowering.
     
    • Helpful x 1
    • Like x 1
  9. C141medic

    C141medic Active Member

    Joined:
    Apr 9, 2016
    Messages:
    1,452
    Location:
    New Jersey
    Great. Thanks. Which one of the projects would you recommend with the current FW?
     
  10. lairdb

    lairdb Member

    Joined:
    Mar 26, 2018
    Messages:
    334
    Location:
    California
    I do not have broad or recent enough experience to make a recommendation -- but I'm thinking about picking the experiment up again, and will probably start with the cimryan.

    There's also a rumor floating around that 12v (and therefore USB?) is no longer switched off, even if sentry mode is not activated. That would change things a little.
     
    • Helpful x 1
  11. crackers8199

    crackers8199 Member

    Joined:
    May 31, 2015
    Messages:
    997
    Location:
    lake elsinore, ca
    it's not a rumor, it's a fact. i can 100% confirm that on 5.15 12v is always on, even if sentry mode is turned off. the only question i have is whether or not it will turn itself off if you don't have anything drawing power from it - but if you leave something plugged in and turned on, it absolutely will not time itself out.

    whether or not this applies to the USB as well is an open question, but i would imagine it does...
     
    • Informative x 2
  12. Nate977p

    Nate977p Member

    Joined:
    Jul 28, 2017
    Messages:
    454
    Location:
    Boston
    Did you get your Pi yet? Just ordered and looking to do it this weekend. Thinking of following Cimryans.
     
  13. C141medic

    C141medic Active Member

    Joined:
    Apr 9, 2016
    Messages:
    1,452
    Location:
    New Jersey
    Should get it tomorrow and I’ll probably do the same.
     
  14. chilman408

    chilman408 Member

    Joined:
    Sep 25, 2016
    Messages:
    246
    Location:
    94041
    I am using a battery hat on the pi to power it long enough to auto archive the clips once I get home and left the car.
     
    • Informative x 1
    • Like x 1
  15. iceraven

    iceraven Member

    Joined:
    Aug 5, 2018
    Messages:
    7
    Location:
    Dallas
    Has anyone recently had luck with cimryan/teslausb? Specifically with the OneStepSetup?

    cimryan/teslausb

    Getting stuck where it connects to WiFI/SSH just fine, but doesn't ever mount the Music/Cam drives in Windows and isn't recognized by the car either.
     
  16. C141medic

    C141medic Active Member

    Joined:
    Apr 9, 2016
    Messages:
    1,452
    Location:
    New Jersey
    Hasn’t worked for me yet. I have the usb add on board so I’m able to directly plug it in to my splitter. I installed it according to the one step setup but the car just doesn’t see it. The dashcam icon doesn’t come on. I read in some of the issues that it may be a partition issue but I haven’t looked into that yet.
     
  17. iceraven

    iceraven Member

    Joined:
    Aug 5, 2018
    Messages:
    7
    Location:
    Dallas
    I'm to the point where if I use the headless install, it's unreadable in Windows (get usb device error), or if I run it manually get a partition error using both a 16GB sd card and a 128GB sd card:

    Fixing the modules-load parameter in /boot/cmdline.txt...
    Fixed cmdline.txt.
    Starting to create backing files partition...
    Checking existing partitions...
    Modifying partition table for backing files partition...
    Error: The location 128043712512 is outside of the device /dev/mmcblk0.

    Problem is you need it readable in Windows to create the TeslaCam folder anyway, otherwise the car won't do anything with it either.
     
  18. chilman408

    chilman408 Member

    Joined:
    Sep 25, 2016
    Messages:
    246
    Location:
    94041
    I'm not sure cimryan git has merged the recent updates since 119#.

    If you want to use it, you should just fork out your own and copy the commits from 119 onwards.

    This is what I did. Works great.
     
    • Informative x 2
  19. Tz00

    Tz00 3 LR AWD

    Joined:
    Jan 5, 2019
    Messages:
    236
    Location:
    Saint John, NB, Canada
    To get rid of that error, you need to do the following after putting the Pi image on the SD card, but before the initial boot. Otherwise, on first boot,the Pi expands the Pi partition to fill the entire SD card, so there is no room for the Music/Cam partitions.

    Remove “init=/usr/lib/raspi-config/init_resize.sh” from “cmdline.txt”.
     
    • Informative x 1
  20. Tz00

    Tz00 3 LR AWD

    Joined:
    Jan 5, 2019
    Messages:
    236
    Location:
    Saint John, NB, Canada
    #20 Tz00, Mar 29, 2019
    Last edited: Mar 29, 2019
    I had the same issue and did the following to get it recognizable as a USB drive in Windows (no car yet to test).

    sudo nano /boot/config.txt
    Add the line:
    dtoverlay=dwc2

    sudo nano /etc/modules
    Add the line:
    dwc2

    And connect the computer to the USB data port on the Pi (not the USB power port), in case that wasn't obvious.

    I added a saved.txt file to the Pi USB drive on Windows, and after a reboot of the Pi, it moved the file to my file share.
     

Share This Page

  • About Us

    Formed in 2006, Tesla Motors Club (TMC) was the first independent online Tesla community. Today it remains the largest and most dynamic community of Tesla enthusiasts. Learn more.
  • Do you value your experience at TMC? Consider becoming a Supporting Member of Tesla Motors Club. As a thank you for your contribution, you'll get nearly no ads in the Community and Groups sections. Additional perks are available depending on the level of contribution. Please visit the Account Upgrades page for more details.


    SUPPORT TMC