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

Camera request timeout #44

Open
jjssman opened this issue Feb 20, 2025 · 0 comments
Open

Camera request timeout #44

jjssman opened this issue Feb 20, 2025 · 0 comments

Comments

@jjssman
Copy link

jjssman commented Feb 20, 2025

Hello,

I've been trying to get the camera to work in STA mode, but I keep getting a "Camera request timeout" error everytime I try to access the live stream (either video or audio).

Important

2025-02-20 02:40:24,964 [ ERROR] [HTTP] Camera request timeout

I've created a local python DNS server, and modified the DNS records on my router to point to it:

DNS Server is running...
Received request for: v720.naxclow.com.
Resolved v720.naxclow.com. to 192.168.1.135
Received request for: v720.p2p.naxclow.com.
Resolved v720.p2p.naxclow.com. to CNAME test.mosquitto.org.

And here are the logs from a9_naxclow.py:

& python.exe a9_naxclow.py -s --verbose

-------- A9 V720 fake-server starting. --------      
Device list: http://127.0.0.1:80/dev/list
Live capture: http://127.0.0.1:80/dev/[CAM-ID]/live  
Audio capture: http://127.0.0.1:80/dev/[CAM-ID]/audio
Snapshot: http://127.0.0.1:80/dev/[CAM-ID]/snapshot

2025-02-20 02:37:48,046  [   INFO] [UDP-SRV :6123] Waiting for connection
2025-02-20 02:37:48,046  [   INFO] [TCP-SRV :6123] Waiting for connection
2025-02-20 02:40:13,483  [   INFO] [HTTP] POST /app/api/ApiServer/getA9ConfCheck?devicesCode=0800c0107D4A&random=HIJKLM&token=c1878f5752
2025-02-20 02:40:13,486  [   INFO] [HTTP] sending: HTTP/1.1 200
Server: nginx/1.14.0 (Ubuntu)
Date: Thu, 20 Feb 2025 02:40:13 -0000
Content-Type: application/json
Connection: keep-alive
Content-Length: 231

{"code": 200, "message": "OK", "data": {"tcpPort": 6123, "uid": "0800c0107D4A", "isBind": "8", "domain": "v720.naxclow.com", "updateUrl": null, "host": "192.168.1.135", "currTime": "1740015613", "pwd": "deadbeef", "version": null}}
2025-02-20 02:40:13,514  [   INFO] [TCP-SRV :6123] Connected: ('192.168.1.133', 51014)
2025-02-20 02:40:13,514  [   INFO] [TCP-SRV :6123] Waiting for connection
2025-02-20 02:40:13,514  [  DEBUG] [TCP-CON 192.168.1.133:51014] Recv: 57000000000000000000000000000000000000007b22636f6465223a203130302c2022756964223a2022303830306330313037443441222c2022746f6b656e22...
2025-02-20 02:40:13,514  [  DEBUG] [V720-STA@20c00d05670] Request (TCP): CMD: 0, len: 87 (87), MSG_Flag: 0, pkg_id: 0, deal_fl: 0, fwd-id: b'\x00\x00\x00\x00\x00\x00\x00\x00' Payload: 7b22636f6465223a203130302c2022756964223a202230383030633031303744...
2025-02-20 02:40:13,517  [  DEBUG] [V720-STA@20c00d05670] Receive JSON: {
    "code": 100,
    "uid": "0800c0107D4A",
    "token": "deadbeef",
    "domain": "v720.naxclow.com"
}
2025-02-20 02:40:13,517  [   INFO] [V720-STA@20c00d05670] Receive registration request (device: 0800c0107D4A)
2025-02-20 02:40:13,517  [  DEBUG] [V720-STA@20c00d05670] send registration response: {
    "code": 101,
    "status": 200
}
2025-02-20 02:40:13,517  [  DEBUG] [TCP-CON 192.168.1.133:51014] Send: 1c000000000000003030303030303030000000007b22636f6465223a203130312c2022737461747573223a203230307d
-------- Found device 0800c0107D4A --------
Live capture: http://127.0.0.1:80/dev/0800c0107D4A/live
Only audio capture: http://127.0.0.1:80/dev/0800c0107D4A/audio
Only video capture: http://127.0.0.1:80/dev/0800c0107D4A/video
Snapshot: http://127.0.0.1:80/dev/0800c0107D4A/snapshot

2025-02-20 02:40:19,957  [WARNING] [HTTP] Live video request @ 0800c0107D4A (127.0.0.1)
2025-02-20 02:40:19,957  [   INFO] [HTTP] "GET /dev/0800c0107D4A/live HTTP/1.1" 200 -
2025-02-20 02:40:19,958  [   INFO] [V720-STA@20c00d05670] Sending NAT probe request
2025-02-20 02:40:19,959  [  DEBUG] [V720-STA@20c00d05670] NAT probe request: {
    "code": 11,
    "cliTarget": "00112233445566778899aabbccddeeff",
    "cliToken": "deadc0de",
    "cliIp": "255.255.255.255",
    "cliPort": 0,
    "cliNatIp": "192.168.1.135",
    "cliNatPort": 6123
}
2025-02-20 02:40:19,960  [  DEBUG] [TCP-CON 192.168.1.133:51014] Send: b0000000000000003030303030303030000000007b22636f6465223a2031312c2022636c69546172676574223a20223030313132323333343435353636373738...
2025-02-20 02:40:24,964  [  ERROR] [HTTP] Camera request timeout
2025-02-20 02:40:24,964  [   INFO] [HTTP] "GET /dev/0800c0107D4A/live HTTP/1.1" 502 -
2025-02-20 02:40:24,964  [  DEBUG] [V720-STA@20c00d05670] Send stop streaming (close_video/close_audio) {
    "code": 301,
    "target": "00112233445566778899aabbccddeeff",
    "content": {
        "code": 0
    }
}
2025-02-20 02:40:24,968  [  DEBUG] [TCP-CON 192.168.1.133:51014] Send: 53000000000000003030303030303030000000007b22636f6465223a203330312c2022746172676574223a202230303131323233333434353536363737383839...

Could you please help me get it to work?
The blue led on the camera stays blinking, I'm not sure if this is normal behaviour or if it's failing to pair or something...
Thanks in advance!

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

No branches or pull requests

1 participant