Open sacredx72 opened 2 years ago
Board ]()
@sacredx72 sorry to say but most 'battery operated' devices like yours run RTOS (not linux) and just about the only thing you can do is use a hardware programmer to download the firmware, make changes and flash it back -- that usually requires removing the chip from the board and you're unlikely to gain any function as the device will be put in 'deep sleep' most of the time to preserve power (and will wake up only on certain events like motion detection or doorbell button). The fact that it created the logfile when ppsFactoryTool.txt is present means it found it, but it likely doesn't do the same as in other (linux-based) devices. The log does show it check for a few other files in the SD card but it's impossible to tell what they do (and the expected format) without a firmware dump and a lot of time to review the code. I honestly would not spend a lot of time trying to get this device rooted -- chances are it already has a serial terminal where you can issue commands to the RTOS application but it will be very limited.
This device has a built-in function from tuya to turn off the power saving mode, that is, work constantly. at the moment, the device works for me like this, with a constant connection of power from type c and the power saving mode is disabled) well, I understand you, this device is different from those supported by your project. there are several places on the board for the uart sub-ray, but they are not painted, and there are 3 of them on the board (I will look for other options to get the video stream bypassing the tuya server for integration into frigate =) thanks and clarification
@sacredx72 you should check if your device supports WebRTC: https://github.com/guino/Merkury1080P/issues/37#issuecomment-1256527596 (use one of the links and login using the qr scanner function in the phone app) -- if your camera is supported it should show a live view of the device on the computer -- it's no RTSP but it is a way to view the image on the computer (if your camera is supported).
Yes, WebRTC is supported by the link you specified, but it's not pure WebRTS, but through an encrypted communication channel through the tuya server (this video stream cannot be integrated into a local video recorder
@sacredx72 there's not a lot we can do unless you hook up a SERIAL-TTL adapter or download the flash with a hardware programmer. You serial port is likely the four thru-holes on the top of your pictures (right above the QR code) -- that's where you'd connect a SERIAL-TTL adapter. Your flash chip is the black one labeled XMC above the USB plug -- that's where you'd connect your flash programmer but my experience is that you won't be able to read/write it without removing it from the board (or at least disconnecting pin 6). If you have specific questions let me know and I'll do what I can to help -- just can't do much myself without the device.
here is my dump file from flash, surprisingly, without 6 CLK he did not want to shoot the whole what information else should help in unlock?
@sacredx72 your dump file is good. This is a MIPS processor running what seems to be a linux application called 'ubia_t31' which I have never seen. I quickly looked into it with Ghidra and it doesn't seem to have any RTSP/ONVIF or even web services for that matter. None of the stuff I've seen on other devices with SD card tricks seem to be present on this application either. So really there's no easy way to get any 'direct' RTSP stream from this device. I also could not find any reference to telnet support either.
You could potentially modify the main application (i.e. inject a call to an application on the SD card) but it would definitely not be for enabling RTSP or any kind of streaming -- at most perhaps enable some logging and get notifications from it but that would probably require some coding (not scripting).
You may want to take a look at the information here: https://www.reddit.com/r/homeassistant/comments/s6i27l/i_managed_to_forward_the_tuyasmart_life_webrtc/ -- someone claimed to have used the WebRTC interface to generate a RTSP stream from it -- somoene with a little more time could probably make this into an easy to use tool for any tuya camera supporting WebRTC (most newer devices seem to support it).
Good afternoon, I became the owner of Tuya W2 door glass Tuya APP shows main module version V3.5.17, MCU version 3.5.17 https://www.aliexpress.com/item/1005003443413635.html When I try to place the ppsFactoryTool.txt file on the SD card, the device boots up, resets all settings (operation mode, motion sensor settings), but remains connected to my main WiFi network and in the Tuya application. While the file is on the SD card, all subsequent restarts of the device also reset the settings. But at the same time port 80 and 8080 does not open. With the ppsFactoryTool.txt file marked up, a logfile.txt file is created on the map, and judging by the contents in my linux device =)
Maybe take a look at the log file and help in trying to enable the RTSP stream