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

Image flip in Homekit #23

Open
Kronos-117 opened this issue Sep 3, 2021 · 12 comments
Open

Image flip in Homekit #23

Kronos-117 opened this issue Sep 3, 2021 · 12 comments

Comments

@Kronos-117
Copy link

I followed the steps outlined in #5 to do the image flip via Telnet, but the value doesn't seem to stay at 3. Just changes back to 0. Can anyone help?

@mcchas
Copy link
Owner

mcchas commented Sep 15, 2021

@Kronos-117 If there are any mistakes in the file (or md5 is wrong) the camera restores it to a working version. Make sure you update the md5 value on the last line of the file.

@foot-gloves
Copy link

I was having issues and found out that you need to delete the empty lines above the checksum line also. this is how the final lines should look like after making the mod:

[homekit]
paird_status = 1
mfi_address = 0x10
camera_active = 1
iseverpaired = 1
checksum = 08222ef07c26733d8c900106379b88d5

@Kronos-117
Copy link
Author

Thanks for the help! I tried both suggestions but still doesn't work. Won't the checksum of the file change after you paste the new one into the file?

@ads1230
Copy link

ads1230 commented Oct 16, 2021

Delete the md5 checksum,
make sure you’re not streaming the camera at the same time as it resets the config.
Generate a new md5 and add it in.

@averagenormalguy
Copy link

What are possible values? Is there a way to rotate by 90 degree for vertical video (door bell scenario)?

@pedroxns
Copy link

I'm having tha same issue here, the file looks like its correctly edited but after a reboot the image stays upside down.

@vordenken
Copy link

I don't get how to do this... Changing the 0 to something else and replacing the checksum doesn't work. After a reboot its the original file again.
What I don't understand is the checksum part - what should I put there? the output of md5sum /mnt/config/flash_config.ini ? But it's already a different checksum inside the file then if I run the command without modifying the file.

@mcchas
Copy link
Owner

mcchas commented Apr 25, 2024

I don't get how to do this... Changing the 0 to something else and replacing the checksum doesn't work. After a reboot its the original file again.

What I don't understand is the checksum part - what should I put there? the output of md5sum /mnt/config/flash_config.ini ? But it's already a different checksum inside the file then if I run the command without modifying the file.

Try this on the camera itself, some windows text editors add extra new line characters which could corrupt the config.

Step 1. Change the config (e.g 0 to something else)
Step 2. Delete the last line of the file that has the checksum (note the format before you do this.. or back it up)
Step 3. Save the file
Step 4. Run md5 on the above file
Step 5. Edit the file again and add the new checksum as the last line of the file, in the same format it was originally
Step 6. Save the file and reboot

@vordenken
Copy link

Thank you so much! This worked instantly :)
Now I need to find out why your "hostname" file doesn't work on my camera. I got root access with a simple script regarding the password but your file with all the other stuff doesn't work :(

@mcchas
Copy link
Owner

mcchas commented Apr 26, 2024

Now I need to find out why your "hostname" file doesn't work on my camera.

The script only patches a few versions of the camera binary (from around the time this repo was created) and probably won't work with newer versions.

To update it one would need to find the new patterns to patch.

I never found a need to update mine as they work fine. You could always downgrade the camera binary if you want rtsp and HomeKit. The harder way would be using Ghidra to find the locations to patch the newer binaries.

@vordenken
Copy link

I'm running firmware version 2.2.1 - what's yours running on? I've never updated the device because I only use it in homekit.

@mcchas
Copy link
Owner

mcchas commented Apr 28, 2024

I'm running firmware version 2.2.1 - what's yours running on? I've never updated the device because I only use it in homekit.

I'm running a few on v2.0.9 and v2.0.6. But the script was updated at one point to support 2.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants