Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another one YI CAM #90

Closed
Brokly opened this issue Aug 4, 2022 · 27 comments
Closed

Another one YI CAM #90

Brokly opened this issue Aug 4, 2022 · 27 comments
Labels

Comments

@Brokly
Copy link

Brokly commented Aug 4, 2022

Hello ! Thanks a lot for your work!
I tried to hack a camera very similar to #84 .
For the hack I used kit 9.0.41* - b091qp. As a result, the hack was installed successfully, but RTSP and High res snapshot do not work. Can you help me? There is a photo and a backup of the original firmware https://github.com/Brokly/YI-CAM/tree/main/Files . Thank you !

@roleoroleo
Copy link
Owner

I will check it asap.

@roleoroleo
Copy link
Owner

Your cam is a different b091qp.
Please send me 3-4 copies of the file /dev/shm/fshare_frame_buf.

@Brokly
Copy link
Author

Brokly commented Aug 17, 2022

Thanks for the feedback. As it turned out, FTP does not work either :( . When reading the SD card directly, I did not find such a way ( /dev/shm/fshare_frame_buf) . Maybe I misunderstood something ?

@roleoroleo
Copy link
Owner

roleoroleo commented Aug 18, 2022

You should be able to use ftp to login to the cam.
Or you should try scp.
The file is not available inside the sd card.

@Brokly
Copy link
Author

Brokly commented Aug 19, 2022

That's all that was in this catalog https://github.com/Brokly/YI-CAM/upload/main/dev/shm . I didn't notice before that I need a "root" login to access FTP. So there is access to FTP.

@roleoroleo
Copy link
Owner

Your frame buffer file is the same as other versions of b091qp.
So, the released version should work.

@Brokly
Copy link
Author

Brokly commented Aug 20, 2022

Unfortunately it doesn't work. Even using the link from the web interface, I can't see the video stream (rtsp://192.168.1.246/ch0_1.h264).

@roleoroleo
Copy link
Owner

Please, post your config hiding personal data.
cat /tmp/sd/yi-hack/etc/system.conf

@Brokly
Copy link
Author

Brokly commented Aug 21, 2022

HTTPD=yes
TELNETD=no
SSHD=yes
FTPD=yes
BUSYBOX_FTPD=no
DISABLE_CLOUD=no
REC_WITHOUT_CLOUD=yes
MQTT=no
RTSP=yes
RTSP_ALT=no
RTSP_STREAM=low
RTSP_AUDIO=no
SPEAKER_AUDIO=yes
SNAPSHOT=yes
ONVIF=yes
ONVIF_WSDD=yes
ONVIF_PROFILE=low
ONVIF_NETIF=wlan0
ONVIF_WM_SNAPSHOT=yes
NTPD=yes
NTP_SERVER=pool.ntp.org
PROXYCHAINSNG=no
SWAP_FILE=yes
RTSP_PORT=554
ONVIF_PORT=80
HTTPD_PORT=8080
USERNAME=brokly
PASSWORD=123
TIMEZONE=
FREE_SPACE=0
FTP_UPLOAD=no
FTP_HOST=
FTP_DIR=
FTP_DIR_TREE=no
FTP_USERNAME=
FTP_PASSWORD=
FTP_FILE_DELETE_AFTER_UPLOAD=yes
SSH_PASSWORD=123
CRONTAB=

@roleoroleo
Copy link
Owner

Did you configure authentication?
If you set it, you need to add to the rtsp address.

Otherwise we need to debug the process.

@Brokly
Copy link
Author

Brokly commented Aug 21, 2022

I set the login and password in the web interface. Do you need any other actions to configure authentication ?

@roleoroleo
Copy link
Owner

I set the login and password in the web interface. Do you need any other actions to configure authentication ?

No.
These credentials are used by http, rtsp and onvif daemons.
So the rtsp client must use them.

@Brokly
Copy link
Author

Brokly commented Aug 22, 2022

Are there any other actions that can help me?

@roleoroleo
Copy link
Owner

Try to select the "Alternative RTSP server" and check if it works.

@Brokly
Copy link
Author

Brokly commented Aug 24, 2022

Yes, I tried to turn on the alternative RSTP. It was not possible to connect to the video stream. All my camera can do is a low-resolution snapshot, everything else doesn't work.

@roleoroleo
Copy link
Owner

We need to debug the process.
Please follow these steps:

  • restore the default rtsp server
  • login with ssh
  • run the following commands:
. /tmp/sd/yi-hack/script/env.sh
killall wd_rtsp.sh
killall rRTSPServer
rRTSPServer -d 3 -m b091qp -r high -a no -p 554 2>&1
  • run vlc and connect to the cam at rtsp://192.168.1.246/ch0_0.h264
  • post the log

Then try again with low res:

  • login with ssh
  • run the following commands:
. /tmp/sd/yi-hack/script/env.sh
killall wd_rtsp.sh
killall rRTSPServer
rRTSPServer -d 3 -m b091qp -r low -a no -p 554 2>&1
  • run vlc and connect to the cam at rtsp://192.168.1.246/ch0_1.h264
  • post the log

@Brokly
Copy link
Author

Brokly commented Aug 31, 2022

I apologize for the long silence. This is what happens already at the first stage of debugging:

login as: root
root@192.168.1.246's password:

BusyBox v1.27.2 () built-in shell (ash)

mount: mounting none on /sys/kernel/debug failed: Resource busy

        __    __   _
        \ \  / /  | |
         \ \/ /   | |
          \  /    | |
          / /     | |
         /_/      |_|

Welcome to XiaoYi Linux.

root@yi-b7cc:~# login as: root
root@192.168.1.246's password:

BusyBox v1.27.2 () built-in shell (ash)

mount: mounting none on /sys/kernel/debug failed: Resource busy

        __    __   _
        \ \  / /  | |
         \ \/ /   | |
          \  /    | |
          / /     | |
         /_/      |_|

Welcome to XiaoYi Linux.

root@yi-b7cc:~#
Password:

root@yi-b7cc:# /tmp/sd/yi-hack/script/env.sh
root@yi-b7cc:
# killall wd_rtsp.sh
root@yi-b7cc:# killall rRTSPServer
root@yi-b7cc:
# rRTSPServer -d 3 -m b091qp -r high -a no -p 554 2>&1
-ash: rRTSPServer: not found
root@yi-b7cc:~#

Maybe need to specify the path to the rRTSPServer, but I didn't find it: (And I was also alerted by the warning: "mounting: failed to mount in /sys/kernel/debug: resource is busy." Maybe that's the problem?

@Brokly
Copy link
Author

Brokly commented Aug 31, 2022

The Github interface strangely changes the formatting, but the content is the same.

@roleoroleo
Copy link
Owner

You miss a "." at the first line.

@Brokly
Copy link
Author

Brokly commented Sep 5, 2022

Yes, I really missed the dot symbol. My apologies. VLC logs are here https://github.com/Brokly/YI-CAM/blob/main/Files/log.7z

@roleoroleo
Copy link
Owner

Sorry for the misunderstanding, I need the log of the rRTSPServer process (in the console).

@Brokly
Copy link
Author

Brokly commented Sep 6, 2022

@roleoroleo
Copy link
Owner

The log is ok, the grabber is working properly and the frames are extracted without errors.
But I can't see a network connection.
The log does not contain any connection attempt.
Are you sure that your connection is ok?

@Brokly
Copy link
Author

Brokly commented Sep 7, 2022

Yes, the connection is normal. I connect via SSH and Telnet, I get a low-resolution snapshot. But I can't get the video : (VLC logs show that I can't connect. In addition, I used a smartphone, the result is the same.

@roleoroleo
Copy link
Owner

VLC log reports "live555 debug: connection error -10057"
I found some issues about authentication.
Please, try to remove user/password temporarily.

@Brokly
Copy link
Author

Brokly commented Sep 8, 2022

Thanks for the advice ! I will be able to check only in a week.

Copy link

github-actions bot commented Apr 2, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Apr 2, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants