thirtythreeforty / neolink

An RTSP bridge to Reolink IP cameras
https://www.thirtythreeforty.net/posts/2020/05/hacking-reolink-cameras-for-fun-and-profit/
GNU Affero General Public License v3.0
889 stars 147 forks source link

Unable to authenticate battery powered Argus 2 #337

Open mikealanni opened 1 year ago

mikealanni commented 1 year ago

Hi, I'm getting the error below, I have configure username (as email) password and UID and name but I don't know why it can not authenticate. Please what I'm missing

`./neolink rtsp --config=config.toml [2023-01-25T01:44:40Z INFO neolink] Neolink xxxx release [2023-01-25T01:44:45Z INFO neolink_core::bc_protocol::connection::udpconn::discover] Trying remote discovery against reolink servers [2023-01-25T01:44:45Z INFO neolink_core::bc_protocol::connection::udpconn::discover] Trying remote discovery against reolink servers [2023-01-25T01:44:50Z ERROR neolink::rtsp] Error streaming from camera Front Camera, will retry in 1s: Failed to connect to camera Front Camera at UID: xxxxxx on channel 0

Caused by:
    0: Connection error
    1: Timeout

[2023-01-25T01:44:50Z ERROR neolink::rtsp] Error streaming from camera Front Camera, will retry in 1s: Failed to connect to camera Front Camera at UID: xxxxx on channel 0

Caused by:
    0: Connection error
    1: Timeout

[2023-01-25T01:44:52Z INFO neolink::rtsp] Front Camera: Connecting to camera at UID: xxxxx [2023-01-25T01:44:52Z INFO neolink::rtsp] Front Camera: Logging in [2023-01-25T01:44:52Z INFO neolink::rtsp] Front Camera: Connecting to camera at UID: xxxxxx [2023-01-25T01:44:52Z INFO neolink::rtsp] Front Camera: Logging in [2023-01-25T01:44:54Z ERROR neolink::rtsp] Authentication failed to camera Front Camera, not retrying [2023-01-25T01:44:55Z ERROR neolink_core::bc_protocol::connection::udpconn] Udp write poll aborted`

QuantumEntangledAndy commented 1 year ago

Your getting a timeout on the udp part of the code. I'm working on a rework of the whole udp protocol that should help with this but will take while to finish.

What happens is that udp packets are lossy whenever the packet is lost we have to re-request it from the camera and this means another round trip between camera and neolink before normal operations can continue. Sometimes this can take a few round trips before we can get it. If this process takes too long then this error is thrown.

arbyter commented 2 months ago

hi @QuantumEntangledAndy, any progress on this topic? I run in the same issue :-/