neolink
neolink copied to clipboard
Connection to Argus 3 pro failing randomly
Describe the bug I am using reolink just for enabling/disabling PIR through homeAssistant. Initially, everything was working fine, but after some days there was a camera update and now the connection to the camera fails randomly with a timeout issue. Sometimes works, but it's mainly failing.
I am running neolink on its own container and it does not matter if you recreate it or whatever. Once a camera starts failing it won't work anymore for a long time.
Log file (debug enabled):
[2022-07-23T18:30:33Z INFO neolink] Neolink v0.3.0-338-gcab43d0 debug
[2022-07-23T18:30:33Z INFO neolink::utils] Lavadero: Connecting to camera at UID: XXXXXXXXXXXXXXXXX
[2022-07-23T18:30:33Z DEBUG neolink_core::bc_protocol] Trying uid XXXXXXXXXXXXXXXXX
[2022-07-23T18:30:33Z DEBUG neolink_core::bc_protocol::connection::udpconn::discover] Broadcasting to: [(255.255.255.255, 2015), (255.255.255.255, 2018), (192.168.1.255, 2015), (192.168.1.255, 2018), (172.24.255.255, 2015), (172.24.255.255, 2018), (172.17.255.255, 2015), (172.17.255.255, 2018), (172.20.255.255, 2015), (172.20.255.255, 2018)]
[2022-07-23T18:30:40Z INFO neolink_core::bc_protocol::connection::udpconn::discover] Trying remote discovery against reolink servers
[2022-07-23T18:30:40Z DEBUG neolink_core::bc_protocol::connection::udpconn::discover] Trying register: p2p.reolink.com
[2022-07-23T18:30:40Z DEBUG neolink_core::bcudp::xml] Struct: start to parse "P2P"
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(P2P, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG neolink_core::bcudp::xml] Struct: start to parse "M2C_Q_R"
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(M2C_Q_R, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG neolink_core::bcudp::xml] Struct: start to parse "reg"
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(reg, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(ip, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(13.38.105.180)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(ip)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(port, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(58200)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(port)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(reg)
[2022-07-23T18:30:40Z DEBUG neolink_core::bcudp::xml] Struct: start to parse "relay"
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(relay, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(ip, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(13.38.105.180)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(ip)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(port, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(58100)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(port)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(relay)
[2022-07-23T18:30:40Z DEBUG neolink_core::bcudp::xml] Struct: start to parse "log"
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(log, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(ip, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(13.38.105.180)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(ip)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(port, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(57850)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(port)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(log)
[2022-07-23T18:30:40Z DEBUG neolink_core::bcudp::xml] Struct: start to parse "t"
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(t, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(ip, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(13.38.105.180)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(ip)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(port, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(9996)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(port)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(t)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(timer, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(timer)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(retry, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(retry)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(mtu, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(1350)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(mtu)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(debug, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(251658240)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(debug)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(ac, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(-1700607721)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(ac)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(rsp, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(0)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(rsp)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(M2C_Q_R)
[2022-07-23T18:30:40Z DEBUG neolink_core::bc_protocol::connection::udpconn::discover] Got this information from the register: M2cQr { reg: IpPort { ip: "13.38.105.180", port: 58200 }, relay: IpPort { ip: "13.38.105.180", port: 58100 }, log: IpPort { ip: "13.38.105.180", port: 57850 }, t: IpPort { ip: "13.38.105.180", port: 9996 } }
[2022-07-23T18:30:40Z DEBUG neolink_core::bc_protocol::connection::udpconn::discover] Register address found: IpPort { ip: "13.38.105.180", port: 58200 }
[2022-07-23T18:30:40Z DEBUG neolink_core::bc_protocol::connection::udpconn::discover] Registering this address: 192.168.1.47
[2022-07-23T18:30:40Z DEBUG neolink_core::bcudp::xml] Struct: start to parse "P2P"
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(P2P, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG neolink_core::bcudp::xml] Struct: start to parse "R2C_T"
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(R2C_T, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG neolink_core::bcudp::xml] Struct: start to parse "dev"
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(dev, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(ip, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(192.168.86.25)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(ip)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(port, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(15573)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(port)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(dev)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(dmap, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(ip, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(81.37.18.252)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(ip)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(port, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(15573)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(port)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(dmap)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(sid, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(300742999)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(sid)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(cid, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(-1620689955)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(cid)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched StartElement(rsp, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched Characters(0)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(rsp)
[2022-07-23T18:30:40Z DEBUG yaserde::de] Fetched EndElement(R2C_T)
[2022-07-23T18:30:40Z DEBUG neolink_core::bc_protocol::connection::udpconn::discover] Register revealed address as SID: 300742999
[2022-07-23T18:30:40Z DEBUG neolink_core::bc_protocol::connection::udpconn::discover] Register revealed address as IP: IpPort { ip: "192.168.86.25", port: 15573 }
[2022-07-23T18:30:41Z DEBUG neolink_core::bcudp::xml] Struct: start to parse "P2P"
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(P2P, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG neolink_core::bcudp::xml] Struct: start to parse "R2C_T"
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(R2C_T, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG neolink_core::bcudp::xml] Struct: start to parse "dev"
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(dev, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(ip, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched Characters(192.168.86.25)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(ip)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(port, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched Characters(15573)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(port)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(dev)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(dmap, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(ip, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched Characters(81.37.18.252)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(ip)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(port, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched Characters(15573)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(port)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(dmap)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(sid, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched Characters(300742999)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(sid)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(cid, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched Characters(-1620689955)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(cid)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(rsp, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched Characters(0)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(rsp)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(R2C_T)
[2022-07-23T18:30:41Z DEBUG neolink_core::bc_protocol::connection::udpconn::discover] Udp Discovery got this unexpected BcUdp Discovery(UdpDiscovery { tid: 221, payload: UdpXml { c2d_s: None, c2d_c: None, d2c_c_r: None, d2c_t: None, c2d_t: None, d2c_cfm: None, c2d_disc: None, d2c_disc: None, c2m_q: None, m2c_q_r: None, c2r_c: None, r2c_t: Some(R2cT { dev: IpPort { ip: "192.168.86.25", port: 15573 }, cid: -1620689955, sid: 300742999 }), c2r_cfm: None } })
[2022-07-23T18:30:41Z DEBUG neolink_core::bcudp::xml] Struct: start to parse "P2P"
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(P2P, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG neolink_core::bcudp::xml] Struct: start to parse "R2C_T"
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(R2C_T, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG neolink_core::bcudp::xml] Struct: start to parse "dev"
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(dev, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(ip, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched Characters(192.168.86.25)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(ip)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(port, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched Characters(15573)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(port)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(dev)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(dmap, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(ip, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched Characters(81.37.18.252)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(ip)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(port, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched Characters(15573)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(port)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(dmap)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(sid, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched Characters(300742999)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(sid)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(cid, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched Characters(-1620689955)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(cid)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched StartElement(rsp, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched Characters(0)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(rsp)
[2022-07-23T18:30:41Z DEBUG yaserde::de] Fetched EndElement(R2C_T)
[2022-07-23T18:30:41Z DEBUG neolink_core::bc_protocol::connection::udpconn::discover] Udp Discovery got this unexpected BcUdp Discovery(UdpDiscovery { tid: 221, payload: UdpXml { c2d_s: None, c2d_c: None, d2c_c_r: None, d2c_t: None, c2d_t: None, d2c_cfm: None, c2d_disc: None, d2c_disc: None, c2m_q: None, m2c_q_r: None, c2r_c: None, r2c_t: Some(R2cT { dev: IpPort { ip: "192.168.86.25", port: 15573 }, cid: -1620689955, sid: 300742999 }), c2r_cfm: None } })
[2022-07-23T18:30:42Z DEBUG neolink_core::bcudp::xml] Struct: start to parse "P2P"
[2022-07-23T18:30:42Z DEBUG yaserde::de] Fetched StartElement(P2P, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:42Z DEBUG neolink_core::bcudp::xml] Struct: start to parse "D2C_T"
[2022-07-23T18:30:42Z DEBUG yaserde::de] Fetched StartElement(D2C_T, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:42Z DEBUG yaserde::de] Fetched StartElement(sid, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:42Z DEBUG yaserde::de] Fetched Characters(300742999)
[2022-07-23T18:30:42Z DEBUG yaserde::de] Fetched EndElement(sid)
[2022-07-23T18:30:42Z DEBUG yaserde::de] Fetched StartElement(conn, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:42Z DEBUG yaserde::de] Fetched Characters(local)
[2022-07-23T18:30:42Z DEBUG yaserde::de] Fetched EndElement(conn)
[2022-07-23T18:30:42Z DEBUG yaserde::de] Fetched StartElement(cid, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:42Z DEBUG yaserde::de] Fetched Characters(-1620689955)
[2022-07-23T18:30:42Z DEBUG yaserde::de] Fetched EndElement(cid)
[2022-07-23T18:30:42Z DEBUG yaserde::de] Fetched StartElement(did, {"": "", "xml": "http://www.w3.org/XML/1998/namespace", "xmlns": "http://www.w3.org/2000/xmlns/"})
[2022-07-23T18:30:42Z DEBUG yaserde::de] Fetched Characters(32)
[2022-07-23T18:30:42Z DEBUG yaserde::de] Fetched EndElement(did)
[2022-07-23T18:30:42Z DEBUG yaserde::de] Fetched EndElement(D2C_T)
[2022-07-23T18:30:42Z DEBUG neolink_core::bc_protocol::connection::udpconn::discover] Got device ID as: 32
[2022-07-23T18:30:42Z DEBUG neolink_core::bc_protocol] Success
[2022-07-23T18:30:42Z INFO neolink::utils] Lavadero: Logging in
[2022-07-23T18:30:49Z DEBUG neolink_core::bc_protocol] Dropping camera
[2022-07-23T18:30:49Z ERROR neolink_core::bc_protocol::connection::bcconn] Deserialization error: Deserialization error
[2022-07-23T18:30:49Z DEBUG neolink_core::bc_protocol::connection::bcconn] Shutting down BcConnection...
[2022-07-23T18:30:49Z ERROR neolink_core::bc_protocol::connection::bcconn] caused by: I/O error
[2022-07-23T18:30:49Z ERROR neolink_core::bc_protocol::connection::bcconn] caused by: Connection timedout when reading from udp channel
[2022-07-23T18:30:49Z DEBUG neolink_core::bc_protocol::connection::bcconn] Shutdown finished OK
Error: Failed to login to Lavadero
Caused by:
Timeout
Neolink seems to be expecting different values, as in the log it can be read in multiple parts:
Udp Discovery got this unexpected BcUdp Discovery
To Reproduce Steps to reproduce the behavior. Example:
- Create this configuration file:
bind = "0.0.0.0"
[[cameras]]
name = "Terraza"
username = "**********"
password = "**********"
uid = "XXXXXXXXXXXXXXXX"
[[cameras]]
name = "Lavadero"
username = "**********"
password = "**********"
uid ="XXXXXXXXXXXXXXXX"
[[cameras]]
name = "Piscina"
username = "**********"
password = "**********"
uid = "XXXXXXXXXXXXXXXX"
- Launch Neolink:
neolink -c neolink.toml pir Terraza on
Expected behavior PIR should be enabled/disabled.
Versions NVR software: - Neolink software: Latest repo version Reolink camera model and firmware: Argus 3 pro - v3.0.0.973_22051000