yi-hack-Allwinner-v2 icon indicating copy to clipboard operation
yi-hack-Allwinner-v2 copied to clipboard

Yi Dome Guard - RFUS supported !?

Open do1osc opened this issue 3 years ago • 76 comments

Hello,

I have got an Yi Dome Guard with prefix RFUS with Base Version 9.0.46.00_202110081405.

I use the r35gb-hack. It is working, except the Cloud-Disable. If i disable it, no rtsp, snapshots,.. are working.

Is there a solution ?

do1osc avatar Apr 04 '22 17:04 do1osc

Hello! I just installed r35 on the very same cam - Yi Dome Guard RFUS.

I am experiencing a similar issue, I can't get RTSP to work, regardless of cloud-disable option.

It also crashes and reboots sometimes.

I think it's not officially supported but let's wait for the dev.

auanasgheps avatar Apr 04 '22 18:04 auanasgheps

I need a backup to check the file system. Please, share it with me.

roleoroleo avatar Apr 06 '22 07:04 roleoroleo

Should I reset the camera and follow this procedure? https://github.com/roleoroleo/yi-hack-Allwinner-v2/wiki/Dump-your-backup-firmware-(SD-card)

auanasgheps avatar Apr 06 '22 09:04 auanasgheps

I just received this particular model, I decided to test it and everything is normal for me

image

fernandolcardoso avatar Apr 06 '22 12:04 fernandolcardoso

Hello @roleoroleo, when you request the backup, what do you do to see if it works or not? Can you simulate the camera in some virtual environment? I would like to understand this part to see if I can contribute in some way to this project.

fernandolcardoso avatar Apr 06 '22 12:04 fernandolcardoso

I tried to make a Backup before yi-hack, but it seems not to work. But i got logfiles. Where can i upload them ?

PS: with a 2nd cam same problems (backup and cloud)

do1osc avatar Apr 06 '22 14:04 do1osc

So I made further testing:

My camera is exactly the same as OP:

  • Base 9.0.46.00_202110081405

  • Serial RFUS

I tried to use this script: the cam keeps saying "Waiting to connect" and does not reboot. However something got inside the SD card under the "backup" folder so I'll attach it LINK REMOVED

An interesting thing I noticed is BOTH cloud options must be disabled to let RTSP work:

  • If Disable Cloud and Recording without Cloud are enabled, RTSP does not work
  • If Disable Cloud is turned off but Recording without cloud is enabled, RTSP does not work
  • If both are turned off, RTSP works

auanasgheps avatar Apr 07 '22 19:04 auanasgheps

So I made further testing:

My camera is exactly the same as OP:

  • Base 9.0.46.00_202110081405
  • Serial RFUS

I tried to use this script: the cam keeps saying "Waiting to connect" and does not reboot. However something got inside the SD card under the "backup" folder so I'll attach it LINK REMOVED

An interesting thing I noticed is BOTH cloud options must be disabled to let RTSP work:

  • If Disable Cloud and Recording without Cloud are enabled, RTSP does not work
  • If Disable Cloud is turned off but Recording without cloud is enabled, RTSP does not work
  • If both are turned off, RTSP works

Try:

  1. Reset to yi-hack default
  2. Reboot
  3. Connect again

fernandolcardoso avatar Apr 07 '22 20:04 fernandolcardoso

image

Here I am connected for more than 7 hours in FullHD transmission

fernandolcardoso avatar Apr 07 '22 20:04 fernandolcardoso

Try:

1. Reset to yi-hack default

2. Reboot

3. Connect again

With defaults doesn't work. I also made an additional reboot, but no RTSP (which is enabled). Snapshots work.

I restored my working settings. RTSP doesn't work. Crap. EDIT: Additional reboot has made it to work. (still using my settings)

auanasgheps avatar Apr 07 '22 20:04 auanasgheps

@auanasgheps, out of curiosity, what app or what are you using to connect. Depending on your need, I can guide you better.

fernandolcardoso avatar Apr 07 '22 20:04 fernandolcardoso

@auanasgheps, out of curiosity, what app or what are you using to connect. Depending on your need, I can guide you better.

To verify if it works, I use VLC on my PC. After all the firmware does not look super stable/reliable, because I can eventually get to connect.

auanasgheps avatar Apr 07 '22 21:04 auanasgheps

image

Working around here... wouldn't your router be congested? Try putting it on the network cable and accessing via the cable's IP.

fernandolcardoso avatar Apr 07 '22 21:04 fernandolcardoso

My router is fine. Maybe you're missing the point that I can connect to the RTSP feed, but only when both "cloud disable" options are not enabled, and not using default config, but might be unrelated.

auanasgheps avatar Apr 07 '22 22:04 auanasgheps

image

@auanasgheps It's really strange, here it works with the Cloud on and off

fernandolcardoso avatar Apr 07 '22 22:04 fernandolcardoso

@auanasgheps try this...

Reset, reboot and then follow this step:

  • Go to settings, disable only Telnet, save and restart;

Test connects at this step, if it doesn't work:

  • Reset, restart and connect again.

I just remember doing it on my camera.

fernandolcardoso avatar Apr 07 '22 22:04 fernandolcardoso

I have the same issue for my camera, don't really know if it's a ressource issue but after some rebooting it does work.

IDerr avatar Apr 10 '22 00:04 IDerr

@fernandolcardoso Right now I cannot reset/mess with the camera, I need it to work (and right now it's working).

@IDerr I am experiencing a similar behaviour. Let's wait for the dev to comment, I provided a backup in a comment above

auanasgheps avatar Apr 10 '22 08:04 auanasgheps

Sorry for the delay in replying.

Should I reset the camera and follow this procedure? https://github.com/roleoroleo/yi-hack-Allwinner-v2/wiki/Dump-your-backup-firmware-(SD-card)

You can follow the procedure without reset the camera.

Hello @roleoroleo, when you request the backup, what do you do to see if it works or not? Can you simulate the camera in some virtual environment? I would like to understand this part to see if I can contribute in some way to this project.

I extract the 3 filesystems and I compare them with other models. If the difference is not big I try to adapt the code to the new model. It's very difficult to simulate the camera with a virtual environment, the software is closely related to the hardware.

An interesting thing I noticed is BOTH cloud options must be disabled to let RTSP work:

* If Disable Cloud and Recording without Cloud are enabled, RTSP does not work

* If Disable Cloud is turned off but Recording without cloud is enabled, RTSP does not work

* If both are turned off, RTSP works

This behavior is not normal, I will check the backup file.

roleoroleo avatar Apr 16 '22 14:04 roleoroleo

I tried to use this script: the cam keeps saying "Waiting to connect" and does not reboot. However something got inside the SD card under the "backup" folder so I'll attach it LINK REMOVED

Your cam is a "standard" r35gb and it's supported. I don't know why the rtsp stream doesn't work with cloud disabled. Try the following:

  • Enable swap file to extend memory.
  • Login with a ssh session and check if the rtsp process is running: "ps | grep RTSP".

roleoroleo avatar Apr 16 '22 14:04 roleoroleo

@roleoroleo On my cam, RTSP is running as process, when cloud is disabled, but no rtsp-stream is available. With and without, it is not working. only if cloud is enabled, it is working.

rRTSPServer -m r35gb -r both -a no -p 554 -u ... -w ...

Short information: 6708 root 1216 S ./cloud is running without disable, but with disable it is not running. Seems to be okay.

Can you give us some information, what will be done if cloud is disabled ? What will be stopped, oder will some network-trasfer blocked ?

do1osc avatar Apr 17 '22 05:04 do1osc

I tried to use this script: the cam keeps saying "Waiting to connect" and does not reboot. However something got inside the SD card under the "backup" folder so I'll attach it LINK REMOVED

You cam is a "standard" r35gb and it's supported. I don't know why the rtsp stream doesn't work with cloud disabled. Try the following:

  • Enable swap file to extend memory.
  • Login with a ssh session and check if the rtsp process is running: "ps | grep RTSP".

Will enable swap and let you know.

Another thing to bear in mind is that sometimes by simply rebooting the camera a couple of times RTSP starts to work, like @IDerr reported.

The other day I had to reboot the camera, because was online but RTSP stopped working. I basically had no recognition feature and only RTSP was enabled.

auanasgheps avatar Apr 17 '22 09:04 auanasgheps

Can you give us some information, what will be done if cloud is disabled ? What will be stopped, oder will some network-trasfer blocked ?

When cloud is disabled the following process don't start:

cloud
p2p_tnp
oss
rtmp
watch_process

I don't know what is the role of these processes. The rtsp process reads the stream from the frame buffer. The frame buffer is filled by rmm process. I think the problem is not related to the cloud.

roleoroleo avatar Apr 17 '22 14:04 roleoroleo

@roleoroleo i figured out: /dev/shm/fshare_frame_buf will be filled, but rRTSPServer do not deliver the data to the port

do1osc avatar Apr 17 '22 16:04 do1osc

@roleoroleo Strange behaviour: After disabling snapshot and executing: killall rRTSPServer && /tmp/sd/yi-hack/bin/rRTSPServer -m r35gb -r both -a no -p 554 -u user -w password

it works. After resets it works too

do1osc avatar Apr 17 '22 16:04 do1osc

Mmmmmhhh... How do you test the server? I noticed a strange behavior when I start a client: sometimes it doesn't start immediately and I have to run the play command several times before seeing the stream.

roleoroleo avatar Apr 17 '22 19:04 roleoroleo

Mmmmmhhh... How do you test the server? I noticed a strange behavior when I start a client: sometimes it doesn't start immediately and I have to run the play command several times before seeing the stream.

I use the link from Main-page: rtsp://192.168.178.65/ch0_0.h264 This starts VLC.

do1osc avatar Apr 17 '22 19:04 do1osc

When vlc returns an error, try to press play button again and check if it starts.

roleoroleo avatar Apr 17 '22 19:04 roleoroleo

Connection failed VLC could not connect to "192.168.178.65:554".

i can press it every 3 seconds. not possible to connect.

do1osc avatar Apr 17 '22 19:04 do1osc

Are you able to capture the network traffic with wireshark (or tcpdump)?

roleoroleo avatar Apr 18 '22 09:04 roleoroleo