Tags: Venix42/Yi_4k_ROOTFS
Tags
Add events callback start and stop command As remoteapi_cmd_daemon is started when wifi is activated by RTOS, the events callback script has to be started by wifi start scripts (AP and STA) and stopped by the wifi stop script. Events callback do not work without wifi for now.
Add a conversion method for files on the SDCard Following an issue https://dashcamtalk.com/forum/threads/yi-4k-z16v13l-custom-firmware-and-more-update-18-08-08.35439/post-424998 If files are not with the right EOL, they are useless. Use dos2unix to convert EOL on all files edited by users. By the way, files have to be copied to tmp folder, no modifications of files are able on the SDCard.
Fix station mode when no AP This fix the station mode when the needed AP is not present. Send a notification that the cam is connected to a AP named FAKE. The wifi can not be switch off by this script otherwise this freeze the cam on the wifi switch on/off menu. So manual switch off have to be done.
Change wifi configuration setting 4 values are passed from the cam menu, WIFI_MODE, AP_COUNTRY, WIFI_MAC and AP_CHANNEL_5G. These paramaters are used to create a default wifi.conf. If a wifi.conf file exists on the SDCard, it is used otherwise the default one is used. None of the 4 passed values need to be edited in the wifi.conf file on the SDCard unless the user want to force them.
Change wifi configuration setting 4 values are passed from the cam menu, WIFI_MODE, AP_COUNTRY, WIFI_MAC and AP_CHANNEL_5G. These paramaters are used to create a default wifi.conf. If a wifi.conf file exists on the SDCard, it is used otherwise the default one is used. None of the 4 passed values need to be edited in the wifi.conf file on the SDCard unless the user want to force them.
Fix station mode not starting and return message Wlan0 interface was not up before all call of wl thus the error 'adapter not found' and no station mode. Moreover, the interface send the wrong message back to the Linux RTOS saying the interface was up and running. SSID is now print on wifi info menu.