Code Monkey home page Code Monkey logo

harvest17's Introduction

mvf pi

Mostly setup scripts...

installation

curl https://raw.githubusercontent.com/jw3/mvf/master/get.sh | sudo bash

manual updates required

list of things requiring attention post install. eventually most of these get moved to the install script as prompts or options.

  • passwords in cams.json
  • password in touch waypoints py script

other

OpenWRT on Open-Mesh

See the Docker build under the om2p-openwrt directory, and the following links

harvest17's People

Contributors

jw3 avatar

Watchers

James Cloos avatar  avatar

harvest17's Issues

Define minimum image resolution

640x480 is not an option for outdoor use at any distance. The image has no detail and cannot be used for any precision operations.

That eliminates mjpg use from the amcrest as all the support is 640x480 unless using rtsp.

Have to increase banwidth and reconnects to make rtsp as realtime as possible.

Or look at other cameras which support higher resolution mjpg. That is least preferrable option.

Touch pan tilt stops working

Randomly. Possibly related to screen sleep.

Could be that the input dev is not long readable, killing the loop in the py script.

Py script should handle bad reads and just try again.

Resilient Wifi Connections

Relying on the software present in the cameras to reconnect is problematic and relies on undefined behavior of the internal network components.

The Amcrest API exposes wireless configuration in

  • 4.7.6 WLan
  • 4.7.7 Scan Wlan devices

It would seem reasonable to have a process either on a pi or a proton that is scanning regularly (every second) for a target SSID and when it is available a rest call can be made to the Amcrest API to initiate a connection.

Resilient cams

Cams will need to recover when signal is lost, a wait-on will be simplest way to accomplish this initially.

Lock touchscreen to device

When a keyboard is connected the touchscreen will be different input dev. Should be able to lock touch to a constant dev entry.

Set up display on boot

Terminal will be without interface devices (initially). Need to set views on boot, without login.

Root on USB

Better performance and longevity if SD is only used for boot.

Also will allow software updates to be made by swapping out drive vs. disassembling the device.

Aggregated Logging

Need logging to review issues with

  • reconnect attempts
  • cam view attempts
  • dhcp leases

wpa supplicant conf is not being installed

The hypriot flasher is supposed to be installing this, has not been for a while.

flash -n mvf-2 --ssid 'my-ssid' -p my-psk -d /dev/mmcblk0 /usr/local/src/pi/2017-08-16-raspbian-stretch-lite.zip

Enable PiJack

What configuration gets pijack running on pi 2?

Doesnt seem to work out of the box as the site suggests.

Cameras unable to reconnect after some time

Appears to be an issue where cameras cannot reconnect after some scenario where an amount of time passes. This could be related to default lease time on dhcp, or some other issue.

Significant problem as neither cron nor a wait_on curl will matter if the cam never reconnects.

See #16

Primary inet iface is eth0

PiJack didnt work out thus far, using the pi's eth0.

Need to update eth0 with static ip and disable eth1.

GPS configuration

Will get a bunch of SysRq : HELP : loglevel(0-9) on startup if UART is not disabled.

Edit /boot/cmdline.txt, removing the default tty console=ttyAMA0,115200 kgdboc=ttyAMA0,115200

Edit /etc/inittab remove spawning of ttyAMA0

Also console=serial0,115200 console=tty1

Reference

Gps with pi 3

It has been noted multiple places that pi3 doesnt play well with adafruit gps.m

Ive also saw people say its possible.

Obviously would be good to upgrade to 3

Wifi booster installation

Mount booster on back of cover and split the feed going to the router.

Need a larger supply, ~4 amp minimum.

Barrel on the booster is a 2.5mm OD

MJPG stream support

Unable to drop below .5 second latency with h.264 streams (average around .8). Which seems to be a limitation due to the frame diffing implementation of h.264. From what I understand some amount of buffer is not going to go away, and the more reduced the buffer the less smooth the stream. .5 seems to be the minimum, and is the lowest quality.

MJPEG on the other hand has higher bandwith requirements but initial testing is showing about a ~.2 latency. Though there is quality loss, this is a significant improvement.

Need to work this into the scripts. Would be nice to have parallel rtsp and mjpg capability to test against.

Sample settings are

omxplayer 'http://admin:password@cam1/cgi-bin/mjpg/video.cgi' \
  --win "400 0 800 480" \
  --live -r \
  --threshold .2 \
  --fps 30 \
  -n -1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.