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

    Tz00 3 LR AWD

    Joined:
    Jan 5, 2019
    Messages:
    243
    Location:
    Saint John, NB, Canada
    I just use an old version of the PoweRocks Stone 3 (7800 mAh) that I had laying around.
     
  2. dmurphy

    dmurphy Woof.

    Joined:
    Dec 7, 2018
    Messages:
    1,828
    Location:
    New Jersey - Morris County
    Same here! I had some issues with my WiFi password; it was easier to just manually create the wpa_supplicant.conf file and not bother setting the SSID/password in the teslacam conf file. I fixed that and it sailed right thru.

    Loving this so far! I’m saving all the teslacam files to my Synology NAS. Now, to build an HTML5 teslacam viewer in a docker container to run on said Synology ....
     
    • Helpful x 1
  3. hugh_jassol

    hugh_jassol Member

    Joined:
    Jan 26, 2019
    Messages:
    601
    Location:
    Los Angeles
    ...and then share said container on docker hub :)
     
    • Love x 3
  4. dmurphy

    dmurphy Woof.

    Joined:
    Dec 7, 2018
    Messages:
    1,828
    Location:
    New Jersey - Morris County
    Of course! Now I just have to learn HTML5, and maybe some Python or something.

    I could code it up in Perl but since that’s a write-only language, I’d be stuck maintaining it myself!
     
  5. CarterStC

    CarterStC Member

    Joined:
    Jun 26, 2018
    Messages:
    183
    Location:
    CA
    Try Vue.js
     
  6. hugh_jassol

    hugh_jassol Member

    Joined:
    Jan 26, 2019
    Messages:
    601
    Location:
    Los Angeles
    Question: How does one "update" the marcone fork as the development continues? Does the Pi auto-check?
     
  7. CRASHER

    CRASHER Member

    Joined:
    Oct 13, 2017
    Messages:
    322
    Location:
    CANADA
    I tried one step setup. My comp can recognize both partitions(cam,music) as separate drives. My model S do not recognize any. when the USB is plugged in, it has no problems.
    Does the SD card makes a difference as I am using 128G Sandisk ultra.
     
  8. allanak

    allanak Member

    Joined:
    Mar 31, 2016
    Messages:
    31
    Location:
    Las Vegas, NV
    You can basically run the setup scripts again and it'll pull down the new stuff from Github.

    sudo -i
    /root/bin/setup-teslausb selfupdate
    /root/bin/setup-teslausb
     
  9. hugh_jassol

    hugh_jassol Member

    Joined:
    Jan 26, 2019
    Messages:
    601
    Location:
    Los Angeles
    Just checking ... you are using the same usb port on the pi when you connect to car as you did when you connect to your computer?
     
  10. hugh_jassol

    hugh_jassol Member

    Joined:
    Jan 26, 2019
    Messages:
    601
    Location:
    Los Angeles
    That's easy...thanks!
     
  11. P=VI

    P=VI Member

    Joined:
    Apr 8, 2018
    Messages:
    24
    Location:
    Columbus, Ohio
    You'll need to run this after the sudo -i to unlock the filesystem:

    /root/bin/remountfs_rw
     
    • Helpful x 1
  12. CRASHER

    CRASHER Member

    Joined:
    Oct 13, 2017
    Messages:
    322
    Location:
    CANADA
    Yes, it is plugged in the correct port. I never unplug the cable from pi. Use the same cable as is to plug in the comp.
    My garage has a week wifi signal, I was planning to put a repeater in the garage.
    Does Pi needs to connect to the network before getting recognized by the car?
     
  13. hugh_jassol

    hugh_jassol Member

    Joined:
    Jan 26, 2019
    Messages:
    601
    Location:
    Los Angeles
    no. Does the S have a size limit for the drive? I have a 3 and use a 32GB disk with only TeslaCam folder. No music
     
  14. CRASHER

    CRASHER Member

    Joined:
    Oct 13, 2017
    Messages:
    322
    Location:
    CANADA
    I had previously used 128G usb stick with no issues. Only having problems with pi. I even formatted the drives again still no go. Will delete the music partition, and try again.
     
  15. hugh_jassol

    hugh_jassol Member

    Joined:
    Jan 26, 2019
    Messages:
    601
    Location:
    Los Angeles
    Why did you format anything? I didn't have to ... flashed the image to the SD card, inserted into pi and booted. No formatting... could that be it?
     
  16. CRASHER

    CRASHER Member

    Joined:
    Oct 13, 2017
    Messages:
    322
    Location:
    CANADA
    Formatted on the 3rd or fourth attempt, only after the car failed to recognize.
     
  17. BioSehnsucht

    BioSehnsucht Model 3 LR

    Joined:
    Apr 1, 2016
    Messages:
    1,752
    Location:
    DFW, TX
    Have you tried using a second cable to connect the other USB port on the Pi to power it (so both are connected)? I've had some marginal Pis which would work on USB power supply but were flaky when connected to a computer's USB port (depending on which computer).

    Alternatively, try underclocking it (assuming the one step setup still has a config.txt on a boot partition) by editing the config.txt to set arm_freq to a lower value (default is 1000, set it to something like 900 or 700). I've had that solve my unstable Pi Zero issue before. Lowering the CPU speed lowers the power needed (vs giving it enough power at the default speed).
     
  18. Tz00

    Tz00 3 LR AWD

    Joined:
    Jan 5, 2019
    Messages:
    243
    Location:
    Saint John, NB, Canada
    I just got the new Raspberry PI 4B hardware set up as the TeslaCam with a 256GB microSD card. I connected it to the car via a single USB-C to USB-A cable. I used the same TeslaUSB github scripts as before. The Pi 4B is the only other Pi board that supports USB OTG, but the 4B also supports 5GHz WiFi, which the Zero W does not.

    When using the 5GHz on the 4B, I get around 60-68Mb/s. With the Zero W, I was getting 19-23'sMb/s.
     
    • Informative x 4
  19. BioSehnsucht

    BioSehnsucht Model 3 LR

    Joined:
    Apr 1, 2016
    Messages:
    1,752
    Location:
    DFW, TX
    Ah, nice, didn't realize the 4B supported OTG. I'll have to get one to play with as I've been on again, off again working on my own (yet another) Tesla USB thing.

    I wonder if hot it'll get if shoved into that new Jeda USB hub thing ... it has a hidden area with a USB port that can fit a regular thumbdrive or even a 2.5" SSD/HDD with short USB cord. Similar concerns with a Pi Zero or Orange Zero... but the Pi 4B is surely hottest of them.
     
  20. CuriousG

    CuriousG Active Member

    Joined:
    Dec 1, 2015
    Messages:
    1,520
    Location:
    Elk Grove, CA
    Over the weekend I endeavored into this project. After multiple image writes using rufus (at least 10), I have it running. My micro SD card is 128GB and I divided my dash cam and music partitions in half. Once I was able test videos were copying when leaving the car and connecting to home WiFi, I moved onto the music.

    I had already tested music sync with a couple of albums being copied over as an initial test. So then I erased that music and proceeded to connect through USB so I can copy files faster. Or so I thought. I plugged into a laptop and was presented with the CAM partition and the Music partition. So I then started copy my 30GB of music over to the appropriate partition. This took a good 2.5+ hrs. I was averaging around 3MB/sec on copy. Since I was short on cables, I just used the cable that was for my smart watch. So I didn't get to check to see if that was the issue. Do other people find copying music agonizingly slow?

    Initial plugin to car presented with sentry mode icon and recording indicator. However music didn't show up at the time and it appeared that shortly after sentry mode wasn't available. After unplugging from USB hub and plugging back in, both items were working as it should. Once I copied all my music and plugged the Pi Zero W back, nothing showed up for about 7 minutes so then I pulled it out and plugged back in and everything appears to be working at this point.

    I can't imagine having to reimage just so I can copy music over again as I'd rather a separate USB just for music at this stage.
     

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