roleoroleo / yi-hack-Allwinner-v2

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

Question: Set IP-address #811

Closed myhobby2 closed 5 months ago

myhobby2 commented 10 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 10 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 10 months ago

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

roleoroleo commented 10 months ago

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

myhobby2 commented 10 months ago

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

myhobby2 commented 9 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 9 months ago

Ok.

myhobby2 commented 9 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 9 months ago

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

myhobby2 commented 9 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 9 months ago

I will send a new beta image.

myhobby2 commented 9 months ago

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

roleoroleo commented 9 months ago

What's your model?

myhobby2 commented 9 months ago

y211ga RFUSY44J4A serial RFUSY44UY, firmware 9.0.19.12_202102241808

github-actions[bot] commented 6 months 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.