cjj25 / RTS3903N-Tuya-RTSPServer

RTSP and Telnet access for Tuya RTS3903N cameras
32 stars 5 forks source link

RTSP stream is only available after reboot #4

Open sker65 opened 1 year ago

sker65 commented 1 year ago

When I reboot the device I can connect via rtsp://:8554 on or two times but then no connection anymore, no video feed.

Telnet works flawlessly and when I reboot the device it works again.

The device is a brand name 7link internal model NX-4597, firmware version seem to be 2.2.5.xx

Is there any difference between the orginal / sd or hd version of tycam (beside the resolution obviously)?

cjj25 commented 1 year ago

It sounds like there could be an automated update being fired on the camera, replacing the patched binary.

Does this camera have access to the internet?

No difference between to the versions other than resolution.

sker65 commented 1 year ago

The camera has access to the internet, but this could be blocked to make some tests. But I did already test like connecting via telnet, then simply start killing every tycam process and starting the patched binary just from the console. It behaves the same. Any advice would to test or to try out?

cjj25 commented 1 year ago

There is a harsh watchdog guard that starts the tycam and watches it. If you kill the process, it'll aggressively try to either restart the binary or restart the camera.

It's been a while since I worked on this project (something I'm coming back to now).

Here are some clues as to what is happening - see here.

Take a look at your version of the ty_monitor.sh script that starts on boot, its in the /home/app/ (somewhere there) and see exactly what it's doing.

Could you provide a firmware dump of your camera?

sker65 commented 1 year ago

Could you provide a firmware dump of your camera? I will, the dump was written after first boot with the prepared sd card. Just post a link here?

cjj25 commented 1 year ago

You can either attach it here (your WiFi and camera's unique ID will be attached) or you can send me a Google Drive or WeTransfer link to .....

Dump received.

cjj25 commented 1 year ago

Everything looks as it should, could you try blocking access to Tuya services (no internet). I think it's calling home and then that disables the RTSP feed.