Reolink Go connection works but stops after few seconds
Hello everyone and thank you for this useful repository!
My problem is that I can establish a connection with the camera, but it always disconnect after a few seconds. This also happens when I try to save an image (./neolink image --config=neolink.toml --file-path=filepath MyCamera --use-stream )
Some Infos:
Neolink: 459c9255ada7ebda281eba32a8a9b94a30c471f0 release Camera: Reolink Go OS: macOS gStreamer: 1.22.8 runtime installer
cli command:
./neolink rtsp --config=neolink.toml
console outputs:
[2024-01-05T10:35:36Z INFO neolink] Neolink 459c9255ada7ebda281eba32a8a9b94a30c471f0 release [2024-01-05T10:35:36Z INFO neolink::rtsp] Starting RTSP Server at 0.0.0.0:8554 [2024-01-05T10:35:36Z INFO neolink::rtsp] MyCamera: Rtsp Staring [2024-01-05T10:35:36Z INFO neolink::utils] MyCamera: Connecting to camera at UID: XXXXXXXXXXXXXXXX [2024-01-05T10:35:36Z INFO neolink_core::bc_protocol] MyCamera: Trying map discovery [2024-01-05T10:35:37Z INFO neolink_core::bc_protocol] MyCamera: Trying relay discovery [2024-01-05T10:35:39Z INFO neolink_core::bc_protocol] MyCamera: Relay success XXXXXXXXXXXXXXXX at 13.36.178.245:51016 [2024-01-05T10:35:39Z INFO neolink::utils] MyCamera: Logging in [2024-01-05T10:35:39Z INFO neolink::utils] MyCamera: Connected and logged in [2024-01-05T10:35:42Z INFO neolink::common::camthread] MyCamera: Camera time is already set: 2024-01-05 11:35:39.0 -01:00:00 [2024-01-05T10:35:44Z INFO neolink::common::neocam] MyCamera: Model GO [2024-01-05T10:35:44Z INFO neolink::common::neocam] MyCamera: Firmware Version v1.0.213.00 [2024-01-05T10:35:44Z WARN neolink::common::camthread] MyCamera: Connection Lost: Camera responded with Service Unavaliable: 400 [2024-01-05T10:35:44Z INFO neolink::common::camthread] MyCamera: Attempt reconnect in 50ms [2024-01-05T10:35:44Z INFO neolink::utils] MyCamera: Connecting to camera at UID: XXXXXXXXXXXXXXXX [2024-01-05T10:35:45Z INFO neolink_core::bc_protocol] MyCamera: Trying map discovery [2024-01-05T10:35:45Z INFO neolink_core::bc_protocol] MyCamera: Trying relay discovery [2024-01-05T10:35:48Z INFO neolink_core::bc_protocol] MyCamera: Relay success XXXXXXXXXXXXXXXX at 13.36.178.245:51064 [2024-01-05T10:35:48Z INFO neolink::utils] MyCamera: Logging in [2024-01-05T10:35:48Z INFO neolink::utils] MyCamera: Connected and logged in [2024-01-05T10:35:50Z INFO neolink::common::camthread] MyCamera: Camera time is already set: 2024-01-05 11:35:48.0 -01:00:00 [2024-01-05T10:35:53Z WARN neolink::common::camthread] MyCamera: Connection Lost: Camera responded with Service Unavaliable: 400 [2024-01-05T10:35:53Z INFO neolink::common::camthread] MyCamera: Attempt reconnect in 100ms [2024-01-05T10:35:53Z INFO neolink::utils] MyCamera: Connecting to camera at UID: XXXXXXXXXXXXXXXX [2024-01-05T10:35:54Z INFO neolink_core::bc_protocol] MyCamera: Trying map discovery [2024-01-05T10:35:54Z INFO neolink_core::bc_protocol] MyCamera: Trying relay discovery [2024-01-05T10:35:56Z INFO neolink_core::bc_protocol] MyCamera: Relay success XXXXXXXXXXXXXXXX at 13.36.178.245:51314 [2024-01-05T10:35:56Z INFO neolink::utils] MyCamera: Logging in [2024-01-05T10:35:57Z INFO neolink::utils] MyCamera: Connected and logged in [2024-01-05T10:35:59Z INFO neolink::common::camthread] MyCamera: Camera time is already set: 2024-01-05 11:35:57.0 -01:00:00 [2024-01-05T10:36:02Z WARN neolink::common::camthread] MyCamera: Connection Lost: Camera responded with Service Unavaliable: 400 [2024-01-05T10:36:02Z INFO neolink::common::camthread] MyCamera: Attempt reconnect in 200ms [2024-01-05T10:36:02Z INFO neolink::utils] MyCamera: Connecting to camera at UID: XXXXXXXXXXXXXXXX [2024-01-05T10:36:02Z INFO neolink_core::bc_protocol] MyCamera: Trying map discovery [2024-01-05T10:36:03Z INFO neolink_core::bc_protocol] MyCamera: Trying relay discovery [2024-01-05T10:36:05Z INFO neolink_core::bc_protocol] MyCamera: Relay success XXXXXXXXXXXXXXXX at 13.36.178.245:51418 [2024-01-05T10:36:05Z INFO neolink::utils] MyCamera: Logging in [2024-01-05T10:36:05Z INFO neolink::utils] MyCamera: Connected and logged in [2024-01-05T10:36:08Z INFO neolink::common::camthread] MyCamera: Camera time is already set: 2024-01-05 11:36:06.0 -01:00:00 [2024-01-05T10:36:10Z WARN neolink::common::camthread] MyCamera: Connection Lost: Camera responded with Service Unavaliable: 400 [2024-01-05T10:36:10Z INFO neolink::common::camthread] MyCamera: Attempt reconnect in 400ms
neolink.toml
[[cameras]] name = "MyCamera" username = "admin" password = "SomePassword" uid = "XXXXXXXXXXXXXXXX" discovery = "cellular"
this is exactually the same problem as mine from 3 months ago - #186 i found if i reverted to 0.6.2, it works no problems, dont use the RC version...
When I get the time I'd like to track down which command the camera is responding to with 400.
Hey @QuantumEntangledAndy,
I'd like to ask if you had some time to look at this problem? But I don't want to stress you out.
Hopefully @si458 has addressed this in his PR. If I recall some cameras respond with 400 right after login until they finish some internal setup. The retry was meant to address this, but I put the < the wrong way around ToT
I have adjusted this change with the wrong ">" for me, but it doesn't change anything. It does not work with my Reolink GO camera.
My goal is just to get a current image and save it, I don't need the live stream at all. Unfortunately, that doesn't work either.
...
[2024-04-26T20:36:09Z INFO neolink_core::bc_protocol] MyCamera: Trying map discovery
[2024-04-26T20:36:09Z INFO neolink_core::bc_protocol] MyCamera: Trying relay discovery
[2024-04-26T20:36:09Z INFO neolink_core::bc_protocol::connection::discovery] Got discovery UdpDiscovery { tid: 167, payload: D2cCfm(D2cCfm { sid: 86165232, conn: "relay", rsp: 0, cid: -862788027, did: 1, time_r: Some(1714163764) }) } for xx.xx.xxx.xxx:53156
[2024-04-26T20:36:10Z INFO neolink_core::bc_protocol::connection::discovery] Got discovery UdpDiscovery { tid: 9, payload: R2cT(R2cT { dmap: Some(IpPort { ip: "xxx.xxx.xxx.xxx", port: 15819 }), dev: None, cid: -862788027, sid: 86165232 }) } for xx.xx.xxx.xxx:58200
[2024-04-26T20:36:10Z INFO neolink_core::bc_protocol::connection::discovery] Got discovery UdpDiscovery { tid: 9, payload: R2cCr(R2cCr { dev: None, dmap: Some(IpPort { ip: "xxx.xxx.xxx.xxx", port: 15819 }), relay: Some(IpPort { ip: "xx.xx.xxx.xxx", port: 53156 }), relayt: None, nat: "NULL", sid: Some(86165232), rsp: 0, ac: 86165232 }) } for xx.xx.xxx.xxx:58200
[2024-04-26T20:36:10Z INFO neolink_core::bc_protocol::connection::discovery] Got discovery UdpDiscovery { tid: 9, payload: D2cT(D2cT { sid: 86165232, conn: "relay", cid: -862788027, did: 1 }) } for xx.xx.xxx.xxx:53156
[2024-04-26T20:36:10Z INFO neolink_core::bc_protocol::connection::discovery] Got discovery UdpDiscovery { tid: 167, payload: D2cCfm(D2cCfm { sid: 86165232, conn: "relay", rsp: 0, cid: -862788027, did: 1, time_r: Some(1714163764) }) } for xx.xx.xxx.xxx:53156
[2024-04-26T20:36:11Z INFO neolink_core::bc_protocol::connection::discovery] Got discovery UdpDiscovery { tid: 9, payload: R2cT(R2cT { dmap: Some(IpPort { ip: "xxx.xxx.xxx.xxx", port: 15819 }), dev: None, cid: -862788027, sid: 86165232 }) } for xx.xx.xxx.xxx:58200
[2024-04-26T20:36:11Z INFO neolink_core::bc_protocol::connection::discovery] Got discovery UdpDiscovery { tid: 9, payload: R2cCr(R2cCr { dev: None, dmap: Some(IpPort { ip: "xxx.xxx.xxx.xxx", port: 15819 }), relay: Some(IpPort { ip: "xx.xx.xxx.xxx", port: 53156 }), relayt: None, nat: "NULL", sid: Some(86165232), rsp: 0, ac: 86165232 }) } for xx.xx.xxx.xxx:58200
[2024-04-26T20:36:11Z INFO neolink_core::bc_protocol::connection::discovery] Got discovery UdpDiscovery { tid: 9, payload: D2cT(D2cT { sid: 86165232, conn: "relay", cid: -862788027, did: 1 }) } for xx.xx.xxx.xxx:53156
[2024-04-26T20:36:11Z INFO neolink_core::bc_protocol] MyCamera: Relay success XXXXXX at xx.xx.xxx.xxx:53156
[2024-04-26T20:36:11Z INFO neolink::utils] MyCamera: Logging in
[2024-04-26T20:36:12Z INFO neolink::utils] MyCamera: Connected and logged in
[2024-04-26T20:36:14Z INFO neolink::common::camthread] MyCamera: Camera time is already set: 2024-04-26 22:36:12.0 -01:00:00
[2024-04-26T20:36:16Z WARN neolink::common::camthread] MyCamera: Connection Lost: Camera responded with Service Unavaliable: 400
[2024-04-26T20:36:16Z INFO neolink::common::camthread] MyCamera: Attempt reconnect in 100ms
[2024-04-26T20:36:17Z INFO neolink::utils] MyCamera: Connecting to camera at UID: XXXXXX
...
Are you using the latest docker image? Or have u build the app by hand? Also as explained above some cameras return 400, So it then retrys every 5 seconds, so it might take upto 30 seconds before it's connected correctly
I downloaded the repo and built the binary locally. Yes, according to the logs I always get error 400 and then it tries to reconnect. I can also successfully get the battery status, for example. But as soon as it comes to getting an image, whether an image or the stream. It never goes beyond error 400.
Could you put debug = true into the [[cameras]] section of your toml. It will report any xml the camera does send.
I have now done this, here are the outputs before the error. I have made larger XML code more readable:
[2024-04-27T08:50:09Z INFO neolink::utils] MyCamera: Connected and logged in
Payload Txt: "
<?xml version="1.0" encoding="UTF-8"?>
<body>
<SystemGeneral version="1.1">
<timeZone>-3600</timeZone>
<osdFormat>DMY</osdFormat>
<year>2024</year>
<month>4</month>
<day>27</day>
<hour>10</hour>
<minute>50</minute>
<second>10</second>
<deviceId>0</deviceId>
<timeFormat>0</timeFormat>
<language>English</language>
<deviceName>MyCamera</deviceName>
</SystemGeneral>
<Norm version="1.1">
<norm>NTSC</norm>
</Norm>
</body>
"
[2024-04-27T08:50:12Z INFO neolink::common::camthread] MyCamera: Camera time is already set: 2024-04-27 10:50:10.0 -01:00:00
Extension Txt: "<?xml version="1.0" encoding="UTF-8" ?>
<Extension version="1.1">
<binaryData>1</binaryData>
</Extension>
"
Extension Txt: "<?xml version="1.0" encoding="UTF-8" ?>
<Extension version="1.1">
<binaryData>1</binaryData>
</Extension>
"
Payload Txt: "
<?xml version="1.0" encoding="UTF-8"?>
<body>
<StreamInfoList version="1.1">
<StreamInfo>
<channelBits>1</channelBits>
<encodeTable>
<type>mainStream</type>
<resolution>
<width>1920</width>
<height>1080</height>
</resolution>
<defaultFramerate>15</defaultFramerate>
<defaultBitrate>1536</defaultBitrate>
<framerateTable>15,10,5,2</framerateTable>
<bitrateTable>256,512,768,1024,1536,2048</bitrateTable>
</encodeTable>
<encodeTable>
<type>subStream</type>
<resolution>
<width>640</width>
<height>360</height>
</resolution>
<defaultFramerate>5</defaultFramerate>
<defaultBitrate>160</defaultBitrate>
<framerateTable>15,10,5,2</framerateTable>
<bitrateTable>64,128,160,192,256,384,512</bitrateTable>
</encodeTable>
</StreamInfo>
<StreamInfo>
<channelBits>1</channelBits>
<encodeTable>
<type>mainStream</type>
<resolution>
<width>1280</width>
<height>720</height>
</resolution>
<defaultFramerate>15</defaultFramerate>
<defaultBitrate>1536</defaultBitrate>
<framerateTable>15,10,5,2</framerateTable>
<bitrateTable>256,512,768,1024,1536,2048</bitrateTable>
</encodeTable>
<encodeTable>
<type>subStream</type>
<resolution>
<width>640</width>
<height>360</height>
</resolution>
<defaultFramerate>5</defaultFramerate>
<defaultBitrate>160</defaultBitrate>
<framerateTable>15,10,5,2</framerateTable>
<bitrateTable>64,128,160,192,256,384,512</bitrateTable>
</encodeTable>
</StreamInfo>
</StreamInfoList>
</body>
"
[2024-04-27T08:50:15Z WARN neolink::common::camthread] MyCamera: Connection Lost: Camera responded with Service Unavaliable: 400
[2024-04-27T08:50:15Z INFO neolink::common::camthread] MyCamera: Attempt reconnect in 800ms
In some cases i get followed logs before error code 400:
[2024-04-27T08:49:24Z INFO neolink::common::neocam] MyCamera: Model GO
[2024-04-27T08:49:24Z INFO neolink::common::neocam] MyCamera: Firmware Version v1.0.213.00
[2024-04-27T08:49:24Z WARN neolink::common::camthread] MyCamera: Connection Lost: Camera responded with Service Unavaliable: 400
Thanks I wanted to see what the last message was to track down what was the likely 400 message. Are you using --use-stream here? Some camera just do not support the SNAP command so you have to use --use-stream.
Is there anychance I can get access to the camera to test things out directly? It would make this much easier to address
So --use-stream can only be added to the command with which i want to save an image, right? I can neither access the stream nor save an image. Both commands abort with Error 400.
My commands:
./neolink rtsp --use-stream --config=neolink.toml
./neolink image --config=neolink.toml --file-path=filepath MyCamera --use-stream
Logs (from the ./neolink image command, but same error with other command):
[2024-04-27T14:55:34Z INFO neolink::common::camthread] MyCamera: Camera time is already set: 2024-04-27 16:55:33.0 -01:00:00
Extension Txt: "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<Extension version=\"1.1\">\n<binaryData>1</binaryData>\n</Extension>\n"
[2024-04-27T14:55:36Z WARN neolink::common::camthread] MyCamera: Connection Lost: Camera responded with Service Unavaliable: 400
random one try running it with trace debug or full debug,
the might be more helpful logs in there that could be helpful
RUST_LOG="trace" ./neolink image --config=neolink.toml --file-path=filepath MyCamera --use-stream
RUST_LOG="debug" ./neolink image --config=neolink.toml --file-path=filepath MyCamera --use-stream
At this point. Best thing would be a wireshark dump so I can confirm what packets are responding with an error code 400. From the log with the --use-stream it seems that it successfully started the stream so I'm wondering if this is coming from the ping or some other maintaince command.
Could you run this build https://github.com/QuantumEntangledAndy/neolink/actions/runs/8865101366 with debug prints enabled (set RUST_LOG=debug) it will give more details.
Please ensure you do set RUST_LOG=debug and send the logs here. It should print how many retries it attempted and what error codes there might be.
I'm not sure if I've done this correctly. But here are the logs after I used your version (macos 14). Thank you very much for your help!
Edited: Wrong logs
I'm afraid not. This is info level you can tell by the [2024-04-28T18:09:56Z INFO never ending in DEBUG
Your on a macOS so use this command:
export RUST_LOG=debug
./neolink rtsp --config=neolink.toml
Sorry, I had forgotten the “export” in front of the command. Here are the logs:
./neolink rtsp --config=neolink.toml
[2024-04-29T06:05:41Z INFO neolink] Neolink e6321f36d7448e8cd058bbfaa444912bf8aec2e1 release
[2024-04-29T06:05:41Z INFO neolink::rtsp] Starting RTSP Server at xxx.xxx.xxx.xxx:8554
[2024-04-29T06:05:41Z INFO neolink::rtsp] MyCamera: Rtsp Starting
[2024-04-29T06:05:41Z INFO neolink::utils] MyCamera: Connecting to camera at UID: XXXXXXXXXXXXXXXX
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] MyCamera: Camera Main
[2024-04-29T06:05:41Z DEBUG neolink::rtsp::gst::factory] Constructing Factor Impl
[2024-04-29T06:05:41Z DEBUG neolink::rtsp::gst::factory] Adding anonymous as permitted user
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera/sub
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera/Sub
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera/subStream
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera/SubStream
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera/Substream
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera/substream
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] MyCamera: Preparing at /MyCamera/sub, /MyCamera/Sub, /MyCamera/subStream, /MyCamera/SubStream, /MyCamera/Substream, /MyCamera/substream
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera/extern
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera/Extern
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera/externStream
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera/ExternStream
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera/Externstream
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera/externstream
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] MyCamera: Preparing at /MyCamera/extern, /MyCamera/Extern, /MyCamera/externStream, /MyCamera/ExternStream, /MyCamera/Externstream, /MyCamera/externstream
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera/main
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera/Main
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera/mainStream
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera/MainStream
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera/Mainstream
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera/mainstream
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] Path: /MyCamera
[2024-04-29T06:05:41Z DEBUG neolink::rtsp] MyCamera: Preparing at /MyCamera/main, /MyCamera/Main, /MyCamera/mainStream, /MyCamera/MainStream, /MyCamera/Mainstream, /MyCamera/mainstream, /MyCamera
[2024-04-29T06:05:41Z DEBUG neolink_core::bc_protocol::connection::discovery] Registering xxx.xxx.xxx.xxx:53701 to reolink
[2024-04-29T06:05:44Z DEBUG neolink::common::pushnoti] Push notification details are saved to Some("/Users/marceljung/Library/Application Support/./neolink_token.toml")
[2024-04-29T06:05:44Z DEBUG neolink::common::pushnoti] Loaded push notification token
[2024-04-29T06:05:44Z DEBUG neolink::common::pushnoti] registration.fcm_token: c-jPMd3TMDQ:APA91bHaLthPg6mlSxApeYK-fxHQNFKwn6XNFEPK49h13rwytLnE7Ggm17mnkkvhQjWltf3Ro1N9FyNlLTpyqTuLMWukFPlUpanIqOoYd7YCj_xTPsLe_bP-MDd25QpZD1_PixUbc4Ea
[2024-04-29T06:05:44Z DEBUG neolink::common::pushnoti] push notification UID: 631FEB16A9C85D7BC90A4F8421660A6F
[2024-04-29T06:05:44Z DEBUG neolink::common::pushnoti] Push notification Listening
[2024-04-29T06:05:44Z DEBUG reqwest::connect] starting new connection: https://android.clients.google.com/
[2024-04-29T06:05:44Z DEBUG rustls::client::hs] No cached session for DnsName(DnsName(DnsName("mtalk.google.com")))
[2024-04-29T06:05:44Z DEBUG rustls::client::hs] Not resuming any session
[2024-04-29T06:05:44Z DEBUG rustls::client::hs] Using ciphersuite TLS13_AES_256_GCM_SHA384
[2024-04-29T06:05:44Z DEBUG rustls::client::tls13] Not resuming
[2024-04-29T06:05:44Z DEBUG rustls::client::tls13] TLS1.3 encrypted extensions: []
[2024-04-29T06:05:44Z DEBUG rustls::client::hs] ALPN protocol is None
[2024-04-29T06:05:44Z DEBUG rustls::client::tls13] Ticket saved
[2024-04-29T06:05:44Z DEBUG rustls::client::tls13] Ticket saved
[2024-04-29T06:05:44Z DEBUG fcm_push_listener::listener] Push message listener read tag 3 with payload size 62
[2024-04-29T06:05:44Z DEBUG fcm_push_listener::listener] Push message listener read tag 7 with payload size 10
[2024-04-29T06:05:56Z INFO neolink_core::bc_protocol] MyCamera: Registration with reolink servers failed. Retrying: 1/10
[2024-04-29T06:05:57Z DEBUG neolink_core::bc_protocol::connection::discovery] Registering xxx.xxx.xxx.xxx:53681 to reolink
[2024-04-29T06:06:02Z INFO neolink_core::bc_protocol] MyCamera: Trying map discovery
[2024-04-29T06:06:03Z INFO neolink_core::bc_protocol] MyCamera: Trying relay discovery
[2024-04-29T06:06:05Z INFO neolink_core::bc_protocol] MyCamera: Relay success XXXXXXXXXXXXXXXX at xxx.xxx.xxx.xxx:55240
[2024-04-29T06:06:05Z INFO neolink::utils] MyCamera: Logging in
[2024-04-29T06:06:07Z DEBUG neolink_core::bc_protocol::login] Populating abilities
[2024-04-29T06:06:08Z DEBUG neolink_core::bc_protocol::abilityinfo] Abilities: <AbilityInfo><userName>admin</userName><system><subModule><abilityValue>general_rw, norm_rw, version_ro, uid_ro, autoReboot_rw, restore_rw, reboot_rw, shutdown_rw, dst_rw, log_ro, performance_ro, upgrade_rw, export_rw, import_rw, bootPwd_rw</abilityValue></subModule></system><network><subModule><abilityValue>port_rw, dns_rw, email_rw, ipFilter_rw, localLink_rw, pppoe_rw, upnp_rw, ntp_rw, netStatus_rw, ptop_rw, autontp_rw</abilityValue></subModule></network><alarm><subModule><abilityValue>rfAlarm_rw</abilityValue></subModule><subModule><channelId>0</channelId><abilityValue>motion_rw</abilityValue></subModule></alarm><image><subModule><channelId>0</channelId><abilityValue>ispBasic_rw, ispAdvance_rw, ledState_rw</abilityValue></subModule></image><video><subModule><channelId>0</channelId><abilityValue>osdName_rw, osdTime_rw, shelter_rw</abilityValue></subModule></video><security><subModule><abilityValue>user_rw, userOnline_rw, bootPwd_rw</abilityValue></subModule></security><replay><subModule><channelId>0</channelId><abilityValue>replay_rw, seek_rw</abilityValue></subModule></replay><PTZ><subModule><abilityValue>control_rw, preset_rw, cruise_rw, track_rw, decoder_rw, ptzInfo_ro</abilityValue></subModule></PTZ><streaming><subModule><channelId>0</channelId><abilityValue>preview_rw, compress_rw, snap_rw, rtsp_rw, streamTable_ro</abilityValue></subModule></streaming></AbilityInfo>
[2024-04-29T06:06:08Z INFO neolink::utils] MyCamera: Connected and logged in
[2024-04-29T06:06:10Z INFO neolink::common::camthread] MyCamera: Camera time is already set: 2024-04-29 8:06:08.0 -01:00:00
[2024-04-29T06:06:12Z INFO neolink::common::neocam] MyCamera: Model GO
[2024-04-29T06:06:12Z INFO neolink::common::neocam] MyCamera: Firmware Version v1.0.213.00
[2024-04-29T06:06:13Z DEBUG neolink::common::pushnoti] Registered XXXXXXXXXXXXXXXX for push notifications: Ok(())
[2024-04-29T06:06:13Z WARN neolink::common::camthread] MyCamera: Connection Lost: Camera responded with Service Unavaliable: Msg of type 93 returned code 400
[2024-04-29T06:06:13Z INFO neolink::common::camthread] MyCamera: Attempt reconnect in 50ms
[2024-04-29T06:06:13Z INFO neolink::utils] MyCamera: Connecting to camera at UID: XXXXXXXXXXXXXXXX
[2024-04-29T06:06:13Z DEBUG neolink_core::bc_protocol::connection::discovery] Registering xxx.xxx.xxx.xxx:53861 to reolink
[2024-04-29T06:06:13Z INFO neolink_core::bc_protocol] MyCamera: Trying map discovery
[2024-04-29T06:06:13Z INFO neolink_core::bc_protocol] MyCamera: Trying relay discovery
[2024-04-29T06:06:14Z ERROR neolink_core::bc_protocol::connection::discovery] Error on discovery socket: CameraTerminate
[2024-04-29T06:06:28Z WARN neolink::common::camthread] MyCamera: Connection Lost: Failed to connect to camera MyCamera at UID: XXXXXXXXXXXXXXXX on channel 0
Caused by:
Timed out while waiting for camera reply
[2024-04-29T06:06:28Z INFO neolink::common::camthread] MyCamera: Attempt reconnect in 100ms
[2024-04-29T06:06:28Z INFO neolink::utils] MyCamera: Connecting to camera at UID: XXXXXXXXXXXXXXXX
[2024-04-29T06:06:28Z DEBUG neolink_core::bc_protocol::connection::discovery] Registering xxx.xxx.xxx.xxx:53920 to reolink
[2024-04-29T06:06:34Z INFO neolink_core::bc_protocol] MyCamera: Trying map discovery
[2024-04-29T06:06:34Z INFO neolink_core::bc_protocol] MyCamera: Trying relay discovery
[2024-04-29T06:06:36Z INFO neolink_core::bc_protocol] MyCamera: Relay success XXXXXXXXXXXXXXXX at xxx.xxx.xxx.xxx:53140
[2024-04-29T06:06:36Z INFO neolink::utils] MyCamera: Logging in
[2024-04-29T06:06:38Z DEBUG neolink_core::bc_protocol::login] Populating abilities
[2024-04-29T06:06:39Z DEBUG neolink_core::bc_protocol::abilityinfo] Abilities: <AbilityInfo><userName>admin</userName><system><subModule><abilityValue>general_rw, norm_rw, version_ro, uid_ro, autoReboot_rw, restore_rw, reboot_rw, shutdown_rw, dst_rw, log_ro, performance_ro, upgrade_rw, export_rw, import_rw, bootPwd_rw</abilityValue></subModule></system><network><subModule><abilityValue>port_rw, dns_rw, email_rw, ipFilter_rw, localLink_rw, pppoe_rw, upnp_rw, ntp_rw, netStatus_rw, ptop_rw, autontp_rw</abilityValue></subModule></network><alarm><subModule><abilityValue>rfAlarm_rw</abilityValue></subModule><subModule><channelId>0</channelId><abilityValue>motion_rw</abilityValue></subModule></alarm><image><subModule><channelId>0</channelId><abilityValue>ispBasic_rw, ispAdvance_rw, ledState_rw</abilityValue></subModule></image><video><subModule><channelId>0</channelId><abilityValue>osdName_rw, osdTime_rw, shelter_rw</abilityValue></subModule></video><security><subModule><abilityValue>user_rw, userOnline_rw, bootPwd_rw</abilityValue></subModule></security><replay><subModule><channelId>0</channelId><abilityValue>replay_rw, seek_rw</abilityValue></subModule></replay><PTZ><subModule><abilityValue>control_rw, preset_rw, cruise_rw, track_rw, decoder_rw, ptzInfo_ro</abilityValue></subModule></PTZ><streaming><subModule><channelId>0</channelId><abilityValue>preview_rw, compress_rw, snap_rw, rtsp_rw, streamTable_ro</abilityValue></subModule></streaming></AbilityInfo>
[2024-04-29T06:06:39Z INFO neolink::utils] MyCamera: Connected and logged in
[2024-04-29T06:06:41Z INFO neolink::common::camthread] MyCamera: Camera time is already set: 2024-04-29 8:06:40.0 -01:00:00
[2024-04-29T06:06:44Z WARN neolink::common::camthread] MyCamera: Connection Lost: Camera responded with Service Unavaliable: Msg of type 93 returned code 400
[2024-04-29T06:06:44Z INFO neolink::common::camthread] MyCamera: Attempt reconnect in 200ms
[2024-04-29T06:06:44Z INFO neolink::utils] MyCamera: Connecting to camera at UID: XXXXXXXXXXXXXXXX
[2024-04-29T06:06:44Z DEBUG neolink_core::bc_protocol::connection::discovery] Registering xxx.xxx.xxx.xxx:53537 to reolink
[2024-04-29T06:06:44Z INFO neolink_core::bc_protocol] MyCamera: Trying map discovery
[2024-04-29T06:06:45Z INFO neolink_core::bc_protocol] MyCamera: Trying relay discovery
[2024-04-29T06:06:47Z INFO neolink_core::bc_protocol] MyCamera: Relay success XXXXXXXXXXXXXXXX at xxx.xxx.xxx.xxx:55116
[2024-04-29T06:06:47Z INFO neolink::utils] MyCamera: Logging in
[2024-04-29T06:06:47Z DEBUG neolink_core::bc_protocol::login] Populating abilities
[2024-04-29T06:06:47Z DEBUG neolink_core::bc_protocol::abilityinfo] Abilities: <AbilityInfo><userName>admin</userName><system><subModule><abilityValue>general_rw, norm_rw, version_ro, uid_ro, autoReboot_rw, restore_rw, reboot_rw, shutdown_rw, dst_rw, log_ro, performance_ro, upgrade_rw, export_rw, import_rw, bootPwd_rw</abilityValue></subModule></system><network><subModule><abilityValue>port_rw, dns_rw, email_rw, ipFilter_rw, localLink_rw, pppoe_rw, upnp_rw, ntp_rw, netStatus_rw, ptop_rw, autontp_rw</abilityValue></subModule></network><alarm><subModule><abilityValue>rfAlarm_rw</abilityValue></subModule><subModule><channelId>0</channelId><abilityValue>motion_rw</abilityValue></subModule></alarm><image><subModule><channelId>0</channelId><abilityValue>ispBasic_rw, ispAdvance_rw, ledState_rw</abilityValue></subModule></image><video><subModule><channelId>0</channelId><abilityValue>osdName_rw, osdTime_rw, shelter_rw</abilityValue></subModule></video><security><subModule><abilityValue>user_rw, userOnline_rw, bootPwd_rw</abilityValue></subModule></security><replay><subModule><channelId>0</channelId><abilityValue>replay_rw, seek_rw</abilityValue></subModule></replay><PTZ><subModule><abilityValue>control_rw, preset_rw, cruise_rw, track_rw, decoder_rw, ptzInfo_ro</abilityValue></subModule></PTZ><streaming><subModule><channelId>0</channelId><abilityValue>preview_rw, compress_rw, snap_rw, rtsp_rw, streamTable_ro</abilityValue></subModule></streaming></AbilityInfo>
[2024-04-29T06:06:47Z INFO neolink::utils] MyCamera: Connected and logged in
[2024-04-29T06:06:50Z INFO neolink::common::camthread] MyCamera: Camera time is already set: 2024-04-29 8:06:49.0 -01:00:00
[2024-04-29T06:06:52Z WARN neolink::common::camthread] MyCamera: Connection Lost: Camera responded with Service Unavaliable: Msg of type 93 returned code 400
[2024-04-29T06:06:52Z INFO neolink::common::camthread] MyCamera: Attempt reconnect in 400ms
[2024-04-29T06:06:52Z INFO neolink::utils] MyCamera: Connecting to camera at UID: XXXXXXXXXXXXXXXX
[2024-04-29T06:06:52Z DEBUG neolink_core::bc_protocol::connection::discovery] Registering xxx.xxx.xxx.xxx:53549 to reolink
[2024-04-29T06:06:53Z INFO neolink_core::bc_protocol] MyCamera: Trying map discovery
[2024-04-29T06:06:53Z INFO neolink_core::bc_protocol] MyCamera: Trying relay discovery
[2024-04-29T06:06:55Z INFO neolink_core::bc_protocol] MyCamera: Relay success XXXXXXXXXXXXXXXX at xxx.xxx.xxx.xxx:55332
[2024-04-29T06:06:55Z INFO neolink::utils] MyCamera: Logging in
[2024-04-29T06:06:55Z DEBUG neolink_core::bc_protocol::login] Populating abilities
[2024-04-29T06:06:56Z DEBUG neolink_core::bc_protocol::abilityinfo] Abilities: <AbilityInfo><userName>admin</userName><system><subModule><abilityValue>general_rw, norm_rw, version_ro, uid_ro, autoReboot_rw, restore_rw, reboot_rw, shutdown_rw, dst_rw, log_ro, performance_ro, upgrade_rw, export_rw, import_rw, bootPwd_rw</abilityValue></subModule></system><network><subModule><abilityValue>port_rw, dns_rw, email_rw, ipFilter_rw, localLink_rw, pppoe_rw, upnp_rw, ntp_rw, netStatus_rw, ptop_rw, autontp_rw</abilityValue></subModule></network><alarm><subModule><abilityValue>rfAlarm_rw</abilityValue></subModule><subModule><channelId>0</channelId><abilityValue>motion_rw</abilityValue></subModule></alarm><image><subModule><channelId>0</channelId><abilityValue>ispBasic_rw, ispAdvance_rw, ledState_rw</abilityValue></subModule></image><video><subModule><channelId>0</channelId><abilityValue>osdName_rw, osdTime_rw, shelter_rw</abilityValue></subModule></video><security><subModule><abilityValue>user_rw, userOnline_rw, bootPwd_rw</abilityValue></subModule></security><replay><subModule><channelId>0</channelId><abilityValue>replay_rw, seek_rw</abilityValue></subModule></replay><PTZ><subModule><abilityValue>control_rw, preset_rw, cruise_rw, track_rw, decoder_rw, ptzInfo_ro</abilityValue></subModule></PTZ><streaming><subModule><channelId>0</channelId><abilityValue>preview_rw, compress_rw, snap_rw, rtsp_rw, streamTable_ro</abilityValue></subModule></streaming></AbilityInfo>
[2024-04-29T06:06:56Z INFO neolink::utils] MyCamera: Connected and logged in
[2024-04-29T06:06:58Z INFO neolink::common::camthread] MyCamera: Camera time is already set: 2024-04-29 8:06:57.0 -01:00:00
[2024-04-29T06:07:01Z WARN neolink::common::camthread] MyCamera: Connection Lost: Camera responded with Service Unavaliable: Msg of type 93 returned code 400
[2024-04-29T06:07:01Z INFO neolink::common::camthread] MyCamera: Attempt reconnect in 800ms
[2024-04-29T06:07:01Z INFO neolink::utils] MyCamera: Connecting to camera at UID: XXXXXXXXXXXXXXXX
[2024-04-29T06:07:01Z DEBUG neolink_core::bc_protocol::connection::discovery] Registering xxx.xxx.xxx.xxx:53624 to reolink
[2024-04-29T06:07:02Z INFO neolink_core::bc_protocol] MyCamera: Trying map discovery
[2024-04-29T06:07:02Z INFO neolink_core::bc_protocol] MyCamera: Trying relay discovery
[2024-04-29T06:07:04Z INFO neolink_core::bc_protocol] MyCamera: Relay success XXXXXXXXXXXXXXXX at xxx.xxx.xxx.xxx:55362
[2024-04-29T06:07:04Z INFO neolink::utils] MyCamera: Logging in
[2024-04-29T06:07:05Z DEBUG neolink_core::bc_protocol::login] Populating abilities
[2024-04-29T06:07:05Z DEBUG neolink_core::bc_protocol::abilityinfo] Abilities: <AbilityInfo><userName>admin</userName><system><subModule><abilityValue>general_rw, norm_rw, version_ro, uid_ro, autoReboot_rw, restore_rw, reboot_rw, shutdown_rw, dst_rw, log_ro, performance_ro, upgrade_rw, export_rw, import_rw, bootPwd_rw</abilityValue></subModule></system><network><subModule><abilityValue>port_rw, dns_rw, email_rw, ipFilter_rw, localLink_rw, pppoe_rw, upnp_rw, ntp_rw, netStatus_rw, ptop_rw, autontp_rw</abilityValue></subModule></network><alarm><subModule><abilityValue>rfAlarm_rw</abilityValue></subModule><subModule><channelId>0</channelId><abilityValue>motion_rw</abilityValue></subModule></alarm><image><subModule><channelId>0</channelId><abilityValue>ispBasic_rw, ispAdvance_rw, ledState_rw</abilityValue></subModule></image><video><subModule><channelId>0</channelId><abilityValue>osdName_rw, osdTime_rw, shelter_rw</abilityValue></subModule></video><security><subModule><abilityValue>user_rw, userOnline_rw, bootPwd_rw</abilityValue></subModule></security><replay><subModule><channelId>0</channelId><abilityValue>replay_rw, seek_rw</abilityValue></subModule></replay><PTZ><subModule><abilityValue>control_rw, preset_rw, cruise_rw, track_rw, decoder_rw, ptzInfo_ro</abilityValue></subModule></PTZ><streaming><subModule><channelId>0</channelId><abilityValue>preview_rw, compress_rw, snap_rw, rtsp_rw, streamTable_ro</abilityValue></subModule></streaming></AbilityInfo>
[2024-04-29T06:07:05Z INFO neolink::utils] MyCamera: Connected and logged in
[2024-04-29T06:07:07Z INFO neolink::common::camthread] MyCamera: Camera time is already set: 2024-04-29 8:07:07.0 -01:00:00
[2024-04-29T06:07:09Z WARN neolink::common::camthread] MyCamera: Connection Lost: Camera responded with Service Unavaliable: Msg of type 93 returned code 400
[2024-04-29T06:07:09Z INFO neolink::common::camthread] MyCamera: Attempt reconnect in 1.6s
[2024-04-29T06:07:11Z INFO neolink::utils] MyCamera: Connecting to camera at UID: XXXXXXXXXXXXXXXX
[2024-04-29T06:07:11Z DEBUG neolink_core::bc_protocol::connection::discovery] Registering xxx.xxx.xxx.xxx:53885 to reolink
[2024-04-29T06:07:11Z INFO neolink_core::bc_protocol] MyCamera: Trying map discovery
[2024-04-29T06:07:12Z INFO neolink_core::bc_protocol] MyCamera: Trying relay discovery
[2024-04-29T06:07:14Z INFO neolink_core::bc_protocol] MyCamera: Relay success XXXXXXXXXXXXXXXX at xxx.xxx.xxx.xxx:55168
[2024-04-29T06:07:14Z INFO neolink::utils] MyCamera: Logging in
[2024-04-29T06:07:14Z DEBUG neolink_core::bc_protocol::login] Populating abilities
[2024-04-29T06:07:14Z DEBUG neolink_core::bc_protocol::abilityinfo] Abilities: <AbilityInfo><userName>admin</userName><system><subModule><abilityValue>general_rw, norm_rw, version_ro, uid_ro, autoReboot_rw, restore_rw, reboot_rw, shutdown_rw, dst_rw, log_ro, performance_ro, upgrade_rw, export_rw, import_rw, bootPwd_rw</abilityValue></subModule></system><network><subModule><abilityValue>port_rw, dns_rw, email_rw, ipFilter_rw, localLink_rw, pppoe_rw, upnp_rw, ntp_rw, netStatus_rw, ptop_rw, autontp_rw</abilityValue></subModule></network><alarm><subModule><abilityValue>rfAlarm_rw</abilityValue></subModule><subModule><channelId>0</channelId><abilityValue>motion_rw</abilityValue></subModule></alarm><image><subModule><channelId>0</channelId><abilityValue>ispBasic_rw, ispAdvance_rw, ledState_rw</abilityValue></subModule></image><video><subModule><channelId>0</channelId><abilityValue>osdName_rw, osdTime_rw, shelter_rw</abilityValue></subModule></video><security><subModule><abilityValue>user_rw, userOnline_rw, bootPwd_rw</abilityValue></subModule></security><replay><subModule><channelId>0</channelId><abilityValue>replay_rw, seek_rw</abilityValue></subModule></replay><PTZ><subModule><abilityValue>control_rw, preset_rw, cruise_rw, track_rw, decoder_rw, ptzInfo_ro</abilityValue></subModule></PTZ><streaming><subModule><channelId>0</channelId><abilityValue>preview_rw, compress_rw, snap_rw, rtsp_rw, streamTable_ro</abilityValue></subModule></streaming></AbilityInfo>
[2024-04-29T06:07:14Z INFO neolink::utils] MyCamera: Connected and logged in
[2024-04-29T06:07:16Z INFO neolink::common::camthread] MyCamera: Camera time is already set: 2024-04-29 8:07:16.0 -01:00:00
[2024-04-29T06:07:19Z WARN neolink::common::camthread] MyCamera: Connection Lost: Camera responded with Service Unavaliable: Msg of type 93 returned code 400
[2024-04-29T06:07:19Z INFO neolink::common::camthread] MyCamera: Attempt reconnect in 3.2s
[2024-04-29T06:07:22Z INFO neolink::utils] MyCamera: Connecting to camera at UID: XXXXXXXXXXXXXXXX
[2024-04-29T06:07:22Z DEBUG neolink_core::bc_protocol::connection::discovery] Registering xxx.xxx.xxx.xxx:53833 to reolink
[2024-04-29T06:07:22Z INFO neolink_core::bc_protocol] MyCamera: Trying map discovery
[2024-04-29T06:07:23Z INFO neolink_core::bc_protocol] MyCamera: Trying relay discovery
[2024-04-29T06:07:25Z INFO neolink_core::bc_protocol] MyCamera: Relay success XXXXXXXXXXXXXXXX at xxx.xxx.xxx.xxx:53252
[2024-04-29T06:07:25Z INFO neolink::utils] MyCamera: Logging in
[2024-04-29T06:07:25Z DEBUG neolink_core::bc_protocol::login] Populating abilities
[2024-04-29T06:07:25Z DEBUG neolink_core::bc_protocol::abilityinfo] Abilities: <AbilityInfo><userName>admin</userName><system><subModule><abilityValue>general_rw, norm_rw, version_ro, uid_ro, autoReboot_rw, restore_rw, reboot_rw, shutdown_rw, dst_rw, log_ro, performance_ro, upgrade_rw, export_rw, import_rw, bootPwd_rw</abilityValue></subModule></system><network><subModule><abilityValue>port_rw, dns_rw, email_rw, ipFilter_rw, localLink_rw, pppoe_rw, upnp_rw, ntp_rw, netStatus_rw, ptop_rw, autontp_rw</abilityValue></subModule></network><alarm><subModule><abilityValue>rfAlarm_rw</abilityValue></subModule><subModule><channelId>0</channelId><abilityValue>motion_rw</abilityValue></subModule></alarm><image><subModule><channelId>0</channelId><abilityValue>ispBasic_rw, ispAdvance_rw, ledState_rw</abilityValue></subModule></image><video><subModule><channelId>0</channelId><abilityValue>osdName_rw, osdTime_rw, shelter_rw</abilityValue></subModule></video><security><subModule><abilityValue>user_rw, userOnline_rw, bootPwd_rw</abilityValue></subModule></security><replay><subModule><channelId>0</channelId><abilityValue>replay_rw, seek_rw</abilityValue></subModule></replay><PTZ><subModule><abilityValue>control_rw, preset_rw, cruise_rw, track_rw, decoder_rw, ptzInfo_ro</abilityValue></subModule></PTZ><streaming><subModule><channelId>0</channelId><abilityValue>preview_rw, compress_rw, snap_rw, rtsp_rw, streamTable_ro</abilityValue></subModule></streaming></AbilityInfo>
[2024-04-29T06:07:25Z INFO neolink::utils] MyCamera: Connected and logged in
[2024-04-29T06:07:28Z INFO neolink::common::camthread] MyCamera: Camera time is already set: 2024-04-29 8:07:27.0 -01:00:00
[2024-04-29T06:07:30Z WARN neolink::common::camthread] MyCamera: Connection Lost: Camera responded with Service Unavaliable: Msg of type 93 returned code 400
[2024-04-29T06:07:30Z INFO neolink::common::camthread] MyCamera: Attempt reconnect in 5s
[2024-04-29T06:07:35Z INFO neolink::utils] MyCamera: Connecting to camera at UID: XXXXXXXXXXXXXXXX
[2024-04-29T06:07:35Z DEBUG neolink_core::bc_protocol::connection::discovery] Registering xxx.xxx.xxx.xxx:53790 to reolink
[2024-04-29T06:07:35Z INFO neolink_core::bc_protocol] MyCamera: Trying map discovery
[2024-04-29T06:07:36Z INFO neolink_core::bc_protocol] MyCamera: Trying relay discovery
[2024-04-29T06:07:36Z DEBUG neolink_core::bc_protocol::connection::discovery] Got non Discovery during discovery: (Ack(UdpAck { connection_id: 832000, group_id: 0, packet_id: 21, maybe_latency: 0, payload: [] }), xxx.xxx.xxx.xxx:51034)
[2024-04-29T06:07:36Z DEBUG neolink_core::bc_protocol::connection::discovery] Got non Discovery during discovery: (Ack(UdpAck { connection_id: 832000, group_id: 0, packet_id: 21, maybe_latency: 0, payload: [] }), xxx.xxx.xxx.xxx:51034)
....
Ah message ID 93 is indeed the ping. I'll have to see why it's not retrying that gracefully.
Thank you very much, I really appreciate your help!
@QuantumEntangledAndy - I would like to ask if you have had time to look at the problem?