-
Notifications
You must be signed in to change notification settings - Fork 23
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
no stream, no telnet need a little help #105
Comments
@FritsOV For snap.cgi (http://192.168.1.69:8080/cgi-bin/snap.cgi) the password is whatever is in your httpd.conf file (SD card) -- the default is user:password -- please double check you have configured the address in snap.cgi to be 0x056e6b0 (for your firmware). Onvif will require you to edit tuya_config.json to set onvif_enable to 1 (yours is disabled right now) -- some details here: #2 (comment) . You could try copying the ppsapp from the home directory to the root of the SD card and removing the '#' in front of the line Since your device doesn't have a patched ppsapp, you'll need to follow this to get MQTT notifications working: https://github.com/guino/BazzDoorbell/wiki/%5BHow-to%5D-Use-notifications-MQTT-log_parser-without-a-patched-ppsapp-%3F If you installed tuya on a Pi I assume you're using an android image like lineage OS ? I've never tried it but it should be the same as using it on your phone -- this only helps to confirm the device is online and working. |
Thank you for your responce that is highly apreciated! I will follow your leads and give in advance some extra info. i hope to get it working this week.
i will give some feedback after i followed your pointers. Thanks! |
Hello Guino, Been working over a day on the doorbell and here is what i got so far lets start with the good news is that some parts are working the bad news is i do not have the propper folderstructure on the SD-card. Thats i guess why telnet and all other features are not working correct.
What is working:
What is not working:
my file structure is: 27-02-2022 10:27 cgi-bin16-05-2023 14:28 1.085 custom.sh 27-02-2022 20:26 285 hosts 15-05-2023 17:24 16 httpd.conf 27-02-2022 20:26 1.327 index.html 27-02-2022 20:26 7.956 jpeg-arm 27-02-2022 20:26 131 mqtt_pub 27-02-2022 20:26 1.064 offline.sh 27-02-2022 20:26 37 passwd 27-02-2022 20:26 263 set 27-02-2022 20:26 161 upload.html 12-05-2023 13:08 1.109.128 busybox 11-05-2023 17:19 57 ppsFactoryTool.txt 05-12-2020 06:47 102 ppsMmcTool.txt 16-05-2023 14:00 926 env 27-12-2020 13:13 1.108 initrun.sh 16-05-2023 00:06 SDT 27-02-2022 20:26 1.785 doorcopy.sh 27-02-2022 20:26 131 dropbearmulti 27-02-2022 20:26 24.729 README.md 08-08-2022 14:25 40.056 reredirect 07-12-2020 18:45 75.220 mosquitto_pub 16-05-2023 15:11 1.662 old_log_parser.sh.txt 16-05-2023 21:19 1.030 log_parser.sh 17-05-2023 10:48 0 filestruct.txt 23 bestand(en) 1.268.259 bytes 2 map(pen) 31.850.430.464 bytes beschikbaar Despite the fact that it has no use to proceed further i started to look at MQTT:
In MQTT i can see that the doorbell is ringing (detection wont work) but the line in MQTT log disapears MQTT Log file: |
MQTT part is working now. If you could give me some help with the telnet and the filestructure that would be verry helpfull. Kind regards and thanks in advance for your time and effort. FritsOv |
@FritsOV do you get a prompt when you do 'telnet IP' from the computer ? if you get a prompt but can't login, you just need to configure the passwd file as defined in step 9 of : #2 If you don't get a prompt then I would delete the busybox file from the SD card and download it again from here: https://github.com/guino/BazzDoorbell/blob/master/mmc/busybox?raw=true -- please make sure you 'eject' the SD properly before removing it from the computer otherwise the file may get corrupted and it won't work. It is also possible that your hardware has an older CPU and may require an older busybox compatible with it, you can try this one if the one above still doesn't work: https://github.com/guino/Merkury720/raw/main/mmc/busybox |
@FritsOV I just noticed you mentioned using putty on port 22 -- that's SSH (NOT telnet). You can use putty with telnet mode but it should be port 23 (telnet). Once you get telnet working you can copy the home, bin and lib directories copied. In any case, the initrun.sh should extract these folders for you IF there's no 'home' folder in the SD card already.. this is the line doing it: I have seem some newer firmware with a slightly different packaging in which case we had to change it to be this: You should be able to try the above without any risks. |
Thank you for your time and tips! Tomorrow i wil try your sugestion with the bussybox and i even could try to open up the device to look inside and provide a picture. That will take me some more time. I'll be back |
If you get a login prompt then your busybox is fine, you just need to configure telnet password (or passwordless telnet) as described in step 9 of #2 |
Finally! after telnet option -l /bin/sh added i can telnet and modified the initrun.sh uncommenting the line: patched the rtcp ppspap and this also works now perfectly, i can see the stream in vlc and in the onvif aplication. will try the ssh option in your wiki and if all works i will consider the option of the newer patch as sugested above. |
@FritsOV you don’t need to use #13 to cut off cloud connection (offline) - you can do it with your existing setup. This is the information you need to use it offline: https://github.com/guino/BazzDoorbell/wiki/%5BHow-to%5D-Use-the-device-OFFLINE-(disconnected-from-tuya-servers)-%3F if you need/want to use an offline patch I will need a copy of your ppsapp file so I can make a patch for it. Thanks for the 🍺! |
Hello Guinno, Sorry for the late responce, had som obligations.
give me a few days. |
@FritsOV I've been traveling myself, so haven't had time to check on github much. |
Hello,
I'm struggeling with my LSC doorbel. Over a year ago i (think) i patched the doorbel. But i can't
i'm totally out of clues and dont know where to start, its a bit of messy (sorry) in BazzDoorbell github.
Any help would be apreciated
Kind regards,
Frits
Device info:
cmdline:
mem=37M console=ttyAMA0,115200n8 mtdparts=hi_sfc:192k(bld)ro,64k(env)ro,64k(enc)ro,64k(sysflg)ro,3136k(sys),4352k(app),320k(cfg) ppsAppParts=0 ppsWatchInitEnd ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuno,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,ThankYouGuino,T mtdparts=hi_sfc:192k(bld)ro,64k(env)ro,64k(enc)ro,64k(sysflg)ro,3136k(sys),4352k(app),320k(cfg) ppsAppParts
Tuya
{
"version": 1,
"sleep_mode": 0,
"alarm_fun_onoff": 1,
"alarm_fun_sensitivity": 0,
"alarm_fun_mode_switch": 0,
"alarm_fun_time_start": 0,
"alarm_fun_time_end": 0,
"flip_onoff": 0,
"light_onoff": 1,
"night_mode": 0,
"sound_detect_onoff": 0,
"sound_detect_sensitivity": 0,
"watermark_onoff": 1,
"event_record_time": 60,
"enable_event_record": 1,
"record_enable": 0,
"motion_trace": 1,
"motion_area_switch": 0,
"motion_area": "",
"motion_tracking": 0,
"cry_detection_switch": 0,
"humanoid_filter": 1,
"loudspeaker_vol_pct": 90,
"jingle_mode": 0,
"jingle_sound": 1,
"jingle_volume": 100,
"jingle_exist": 0,
"flight_bright_mode": 0,
"flight_light_brightness": 100,
"flight_pir_set": 0,
"flight_pir_one": 0,
"flight_pir_two": 0,
"flight_pir_three": 0,
"flight_pir_sensitivity": 0,
"flight_alarm_fun_onoff": 0,
"flight_on_off": 0,
"flight_pir_light_on_time": 30,
"flight_warn_switch": 0,
"flight_dualbrite": 0,
"flight_ontime": 0,
"flight_highbrightess": 10,
"flight_lowbrightess": 10,
"flight_mode": 0,
"flight_motion_sens": 0,
"onvif_enable": 0,
"onvif_pwd": "admin"
}
http://192.168.1.69/proc/self/root/etc/init.d/S90PPStrong
#!/bin/sh
export PATH=/usr/bin:/sbin/:/usr/sbin:/bin
RED="�[1;31m"
NORMAL="�[0;39m"
echo "${GREEN} 2015 PPStrong Tech Cop.Ltd.${NORMAL}"
mkdir -p /opt/pps
MTDNUM=
cat /proc/cmdline | sed 's/.*ppsAppParts=\([0-9]\).*/\1/'
debug
#MTDNUM=5
echo "------------->mtdnum:${MTDNUM}"
case $MTDNUM in
5)
mount -t cramfs /dev/mtdblock$MTDNUM /opt/pps
break
;;
7|8)
mount -t cramfs /dev/mtdblock$MTDNUM /opt/pps
break
;;
0)
sleep 10
mount -t vfat /dev/mmcblk0p1 /opt/pps
break
;;
*)
MTDNUM=5
mount -t cramfs /dev/mtdblock$MTDNUM /opt/pps
;;
esac
echo "/opt/pps/" > /tmp/PPStrong.runpath
[ -e /opt/pps/initrun.sh ] && cp /opt/pps/initrun.sh /tmp/PPStart && chmod +x /tmp/PPStart && /tmp/PPStart
The text was updated successfully, but these errors were encountered: