Commit Graph
322 Commits
Author SHA1 Message Date
George Hilliard 86b0fb091e Raise default verbosity to INFO 2020-06-13 18:17:34 -05:00
George Hilliard 01d60b336e Delay marking camera as connected until we've logged in
The reason for this change is that a "not responding" camera proxy such
as a ^Z'd `socat` instance will connect just fine, but never send any
data. In such a case, we retry in a 1-second loop, which is not the
intent of the retry loop.
2020-06-13 18:17:34 -05:00
George Hilliard bfa1fdf3b3 Add read timeout to Baichuan socket
This might help with #13, although I remain unable to reproduce it
exactly as described.
2020-06-13 18:17:34 -05:00
George Hilliard 283f70cac4 Publish v0.2.0 v0.2.0 2020-06-05 20:42:35 -05:00
George Hilliard 7ef2b85fea Print version at startup
Closes #9 on GitHub.
2020-06-05 20:42:35 -05:00
George Hilliard f8dd564296 Refactor CameraErr to be less verbose 2020-06-05 18:12:12 -05:00
George Hilliard c783f8ad78 Change return type of start_video to empty enum 2020-06-05 18:07:11 -05:00
George Hilliard d90e22cf8e Execute the Great Autoformatting of 2020 2020-06-05 17:41:54 -05:00
George Hilliard 97daab15da Refactor into library and binary crates 2020-06-05 17:41:36 -05:00
George Hilliard ba59860c05 Clarify that configuration file is for all cameras 2020-06-01 08:50:43 -05:00
George Hilliard f4a4fc6715 Add note about VLC 2020-06-01 08:49:01 -05:00
George Hilliard 452c237236 Add better setup directions 2020-06-01 08:47:02 -05:00
George Hilliard 4f17b3e43b Allow trace debugging on release builds 2020-05-22 22:44:46 -05:00
George Hilliard 4ebaf731de Mention supported cameras 2020-05-21 10:38:31 -05:00
George Hilliard 0368f0ed1b Update readme 2020-05-20 09:11:21 -05:00
George Hilliard 80eed7b515 Reset backoff after successful connect 2020-05-20 09:11:06 -05:00
George Hilliard f50b9d8e87 Merge branch 'socket-timeout' 2020-05-13 17:36:09 -05:00
George Hilliard cffb05fe40 Remove backoff library and replace with simple retry loop
The backoff library was stopping for transient errors!

I think this fixes #6 on GitHub.
2020-05-13 09:10:11 -05:00
George Hilliard 5439f45eab Enable TCP keepalive on Baichuan connections
More help for #6 on GitHub. Can't reproduce the exact issue, but there
are several related ones.
2020-05-11 22:24:45 -05:00
George Hilliard 98f2e2602d Set read, write, and connect timeouts on the Baichuan socket
Fixes #6 on GitHub.
2020-05-10 17:51:51 -05:00
George Hilliard c47553e6f9 Use 0.3.16 yaserde release 2020-05-10 08:41:53 -05:00
George Hilliard 7fab45d5a9 Implement timeouts during read and proper retry behavior 2020-05-09 15:52:06 -05:00
George Hilliard 8908c7f62e Implement ping command (not used yet) 2020-05-09 15:52:06 -05:00
George Hilliard 4aaec0d72c deserialization: Handle read length of zero from Read 2020-05-09 15:42:08 -05:00
George Hilliard 5b7d304a39 Properly guard multithreaded TCP sends, and clean up on connection drop 2020-05-09 13:35:13 -05:00
George Hilliard f38bf36ee2 Update README 2020-05-09 12:33:27 -05:00
George Hilliard ed110611bd Merge branch 'multithread' 2020-05-08 01:17:59 -05:00
George Hilliard 2685e1fe43 Clean imports slightly 2020-05-08 01:17:47 -05:00
George Hilliard 934caa20b0 Log errors in camera_loop() 2020-05-08 01:16:03 -05:00
George Hilliard d653a84e5d Actually use logging 2020-05-08 00:50:40 -05:00
George Hilliard e26b7413c3 Auth failures are permanent 2020-05-08 00:47:39 -05:00
George Hilliard 5500ca4b28 bc: Implement message subscription channels 2020-05-08 00:40:15 -05:00
George Hilliard 0b8484b9b6 Refactor bc protocol to use connection management thread 2020-04-30 21:49:09 -05:00
George Hilliard 00afbee069 Bc: Implement convenience function for constructing commands 2020-04-30 18:08:04 -05:00
George Hilliard 1a373e1acd Implement exponential backoff/retry in case of errors from camera 2020-04-29 23:59:19 -05:00
George Hilliard 38ca3f262e Git: Do not attempt to diff/merge Cargo.lock 2020-04-29 23:58:44 -05:00
George Hilliard b20ffb02eb Merge branch 'faster-ci' 2020-04-29 13:33:33 -05:00
George Hilliard 4ccfd8aadd Empty commit to test cache speedup 2020-04-29 13:14:10 -05:00
George Hilliard 82e87761db Unify build script again, and add Rust cache 2020-04-29 13:00:27 -05:00
George Hilliard 557cce6eb8 Speed up Windows CI setup 2020-04-29 12:21:42 -05:00
George Hilliard 33e4c6ac6e Merge branch 'gst' 2020-04-29 12:07:42 -05:00
George Hilliard 030f689382 Add more download/install info, break artifacts up per platform 2020-04-29 12:07:30 -05:00
George Hilliard d3641f3ce0 Make it build on Windows
Cribbed Windows script from
https://github.com/nlowe/mousiki/commit/51bd789ec65fe87556ef3181cb388c26c3b3eb00
2020-04-29 11:48:03 -05:00
George Hilliard 9f9b8cd222 GitHub Actions: Provide artifact 2020-04-29 09:29:28 -05:00
George Hilliard c36a598d77 Refactor CI to install Gstreamer 2020-04-29 09:29:28 -05:00
George Hilliard c505b8ac91 Cargo: bump and lock versions 2020-04-29 09:29:28 -05:00
George Hilliard 98ad773bfe Implement rudimentary RTSP server 2020-04-29 09:29:28 -05:00
George Hilliard 81ecb81499 Implement initial Gstreamer implementation 2020-04-29 09:29:28 -05:00
George Hilliard 2533edadd6 Add README and release under AGPLv3 2020-04-28 16:17:18 -05:00
George Hilliard fab0f47835 config: use abstracted associated type 2020-04-22 23:25:01 -05:00