-
Notifications
You must be signed in to change notification settings - Fork 1
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
Support for Binary Protocol (non-json commands) #3
Comments
I want to help, I just don't know how or where to install this, I have one raspberry with HA, one Windows laptop ...and almost zero experience on Linux. Can I do this on windows? I tried to find out more and it looks like I can use Windows, but I need to install Python first... Am I going in the right direction? |
Ok! I think I've got it, I did it on windows, and I get a message, mostly an error:
|
@mabusdogma Hi, thanks for logs. I removed reuse_port for http server. Can you please install and run it again with the same commands? |
Now it works! Still no image, but getting better...
|
@mabusdogma Cool. I rewrote waiting for camera readiness, please, check out the new version. |
Camera is not responding to the initial packet. You may need to repower it |
At some point camera disconnects (sends Close packet). And does your camera work with cam-reverse project? Does it show image? |
bob.txt I'm afraid this camera it doesn't work with cam-reverse |
@mabusdogma Hi, your log was very helpful. I implemented an emulator that responds commands similar to A9 cams. And fixed several issues in binary protocol code. Can you please run the code again along with capturing logs to let me fix issues. |
bob.txt |
Thanks! It looks your response for DevStatus is empty. I fixed parsing in the new revision. Do you know your camera's credentials? If uses admin:admin by default. And I don't know if the camera responds with "invalid password" as the protocol is unclear. Anyway, another run should give us more information on starting video. And please, check login and password for the camera UPD: I added parameters to provide credentials in cli. If you know your credentials, please, use them:
|
It looks it's user:6666 |
Checked once again in a windows web browser and I've got video! It looks like the still image that fades away only occurs in a phone browser :) |
@mabusdogma With achieved result I rewrote the code for readability. But the logic is the same. Can you also check reboot button. It should do something like camera rebooting. |
|
It seems, tickets are not working for your cam or I don't understand the code in cam-reverse. |
@devbis - i fail for authentication although i tried with and without user/pass
does the cam need to be already connected to wifi - or in access point mode ? |
It should be connected to WiFi already. If your l camera works with cam reverse, you need to use credentials admin:admin |
Alternatively, it can be admin:6666 |
@devbis - the cam is connected to Wifi (tried both the original app YsxLite and cam-reverse) but it does not seems the camera respond to the broadcast events.
|
@shlomicthailand the camera must be disconnected from other apps, like mobile app or cam-reverse. Re-power it if needed |
@mabusdogma is it fixed with the latest updates for your camera? |
@devbis i lost you , i thought you said it should be already paired , that can be only with app or cam-reverse. so what do you say should be the steps ? |
The camera should be connected to the WiFi router. But no other apps should be running at the same time, as these cameras support single connection only. |
Sorry, I'm out of town for a few days, I'm back on thursday |
It looks like the camera works with the latest updates. I released both the library and the HA component with this protocol. |
Hello again, I'm afraid it doesn't work for my camera, I can install the integration with no errors, but I can't get any video/audio :( I'll try to reinstall the app and then I'll check again. |
Can you please run the command with library again and send logs? pip3 install -U --no-cache-dir --force-reinstall https://github.com/devbis/aiopppp/archive/refs/heads/binary-proto.zip
python3 -m aiopppp -a 255.255.255.255 -u admin -p admin --log-level DEBUG |
When I run the Python command on windows CMD, I can see video in a browser, using localhost, but I can't see any video or image somewhere else (another PC or a phone) using host's IP. Just in case, I reinstalled the integration on HA, but still no luck getting video. |
@mabusdogma For the HA component, did you use exact IP for configuration? 192.168.1.163 ? To collect logs in HA you need to edit its logger:
logs:
custom_components.pppp_camera: debug
aiopppp: debug |
error_log.docx |
According to logs it starts video and collects frames. |
Optionally: create virtual env if not in docker:
Install/upgrade the library from the latest commits in the branch:
The text was updated successfully, but these errors were encountered: