roleoroleo / yi-hack-Allwinner-v2

Custom firmware for Yi 1080p camera based on Allwinner platform
MIT License
753 stars 90 forks source link

Question: Set IP-address #811

Closed myhobby2 closed 2 weeks ago

myhobby2 commented 5 months ago

Default the IP-address is assigned by the DHCP server on the network. Tried to set that via my Fritzbox 7490 to a fixed IP address, but so far no success.

Question: Is it possible to set an IP address manually via a camera configuration ?

roleoroleo commented 5 months ago

This is an old question, maybe never solved. The network connection is handled by Yi processes and it's not simple to intercept the scripts to set an IP address.

You could try to add the following lines at the end of /tmp/sd/yi-hack/script/wifidhcp.sh

ifconfig wlan0 YOUR_IP netmask YOUR_NETMASK
route add -net 0.0.0.0 gw YOUR_GATEWAY

I'm sure that it works when the cam starts. But I don't know if it lasts over time.

myhobby2 commented 5 months ago

Super, I was able to change the IP address the way you advised. Great help! Thanks.

roleoroleo commented 5 months ago

Please, test it a couple of days. If it works, I can add this feature to the hack.

myhobby2 commented 5 months ago

I will test it and come back on this with 1 and 2 weeks ;-)

myhobby2 commented 5 months ago

So far so good. Few reboots, new router firmware.... no issues. I think I can be added to setting for the web-interface

roleoroleo commented 5 months ago

Ok.

myhobby2 commented 4 months ago

Come back on this... I'm not completely convinced ;-) Although I did set my camera to a fixed IP and even checked it, this afternoon it has a new IP address.. No power issues or reboot done.

Is there a job running trying to do a dhcp handshake after a defined time ?

roleoroleo commented 4 months ago

Check my last commits. I think I found a final solution.

myhobby2 commented 4 months ago

I'm too incompetent to check this Can read a bit of code, but I can't find the commits on github online or in github desktop ;-) Any advice what I should do (I think a fresh download of your solution) ?

roleoroleo commented 4 months ago

I will send a new beta image.

myhobby2 commented 4 months ago

I found the commits ;-) Learning every day. Camera's are waiting for a new compiled version ;-)

roleoroleo commented 4 months ago

What's your model?

myhobby2 commented 4 months ago

y211ga RFUSY44J4A serial RFUSY44UY, firmware 9.0.19.12_202102241808

github-actions[bot] commented 1 month ago

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.