Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DVRIP discovery #462

Merged
merged 2 commits into from
Jun 29, 2023
Merged

Add DVRIP discovery #462

merged 2 commits into from
Jun 29, 2023

Conversation

dbuezas
Copy link
Contributor

@dbuezas dbuezas commented Jun 4, 2023

image

The first ever thing I do in Go so I'm expecting to have to make some changes after your feedback.

I reverse engineered the discovery protocol with Wireshark and my 3 cameras, hence the magic hex stream broadcasted and the discarded first 20 bytes of the responses.

@dbuezas
Copy link
Contributor Author

dbuezas commented Jun 4, 2023

Tested on 3 ICSee cameras.

@dbuezas
Copy link
Contributor Author

dbuezas commented Jun 4, 2023

I confirmed that the single broadcasted "magic hex code" is enough. I did that by analysing network traffic from two mobile apps (ICSee and XMEye Pro) and one desktop app (VMS), they all send only that message when they try to find cams in the network.

AlexxIT added a commit that referenced this pull request Jun 29, 2023
@AlexxIT AlexxIT merged commit d31cf55 into AlexxIT:master Jun 29, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Jun 29, 2023

Please check if I'm not break anything with my code refactoring.

@dbuezas
Copy link
Contributor Author

dbuezas commented Jun 29, 2023

Alright I'll retest it tonight

@dbuezas
Copy link
Contributor Author

dbuezas commented Jul 2, 2023

I just tested it and can confirm it does still work after your refactoring work. Thanks for taking this in!

@dbuezas
Copy link
Contributor Author

dbuezas commented Jul 2, 2023

If at some point you want to reduce the code further, I just realised that one could forego the hexToDecimalBytes function and just take the IP from the inbound UDP connection.

@AlexxIT AlexxIT changed the title Add dvrip discovery Add DVRIP discovery Jul 11, 2023
@AlexxIT AlexxIT added this to the v1.6.0 milestone Jul 11, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Jul 11, 2023

felipecrs pushed a commit to felipecrs/go2rtc that referenced this pull request Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants