Commit Graph
55 Commits
Author SHA1 Message Date
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
George Hilliard b2739c5e12 Implement real command line arguments 2020-04-20 19:00:16 -05:00
George Hilliard ec1e69e49c Implement configuration file, with multiple cameras 2020-04-20 14:33:07 -05:00
George Hilliard a194586957 Implement initial video receive loop 2020-04-19 15:15:21 -05:00
George Hilliard 68d1c5b70f Implement stateful packet parsing based on binaryData 2020-04-19 14:35:25 -05:00
George Hilliard de0e5e6814 Committing IntelliJ files is a violation of intergalatic law 2020-04-19 00:38:56 -05:00
George Hilliard 09d4488166 Bc: xml: rename from Body 2020-04-19 00:38:56 -05:00
George Hilliard 7b10c32a99 Document why we truncate the login username/password 2020-04-19 00:38:56 -05:00
George Hilliard c2cc25e2a1 Fix bug receiving DeviceInfo after successful login 2020-04-19 00:38:56 -05:00
George Hilliard 8e831fc045 Bc deserializer: handle missing XML, binary correctly 2020-04-18 22:41:44 -05:00
George Hilliard f207fc1a94 Implement initial login flow 2020-04-18 22:41:44 -05:00
George Hilliard a4135d359c dissector: fix multi-packet handling 2020-04-18 21:28:05 -05:00
George Hilliard f4f3bc3f7c Implement support for de/serializing legacy messages 2020-04-18 19:09:12 -05:00
George Hilliard 1897bf33c4 Refactor Bc into BcMeta, not full BcHeader 2020-04-18 17:00:43 -05:00
George Hilliard b72d93b1f9 Add GitHub Actions CI 2020-04-18 11:43:59 -05:00
George Hilliard 97d8d8a677 Bc: implement serialization 2020-04-18 11:37:10 -05:00
George Hilliard 86c0d7aaae Re-organize bc module 2020-04-17 20:51:24 -05:00
George Hilliard b4462fd5f6 Implement nom-based Bc message parser 2020-04-16 21:52:37 -05:00