fujiankuan 5b0c4e1846 first commit il y a 4 ans
..
Readme.txt 5b0c4e1846 first commit il y a 4 ans
driver_ota_client.pro 5b0c4e1846 first commit il y a 4 ans
driver_ota_client.xml 5b0c4e1846 first commit il y a 4 ans
ivup.sh 5b0c4e1846 first commit il y a 4 ans
main.cpp 5b0c4e1846 first commit il y a 4 ans
md5.cpp 5b0c4e1846 first commit il y a 4 ans
md5.h 5b0c4e1846 first commit il y a 4 ans
md5file.cpp 5b0c4e1846 first commit il y a 4 ans
md5file.h 5b0c4e1846 first commit il y a 4 ans
md5global.h 5b0c4e1846 first commit il y a 4 ans
ota.grpc.pb.cc 5b0c4e1846 first commit il y a 4 ans
ota.grpc.pb.h 5b0c4e1846 first commit il y a 4 ans
otaclient.cpp 5b0c4e1846 first commit il y a 4 ans
otaclient.h 5b0c4e1846 first commit il y a 4 ans
prototocpp.txt 5b0c4e1846 first commit il y a 4 ans
version 5b0c4e1846 first commit il y a 4 ans
vin.xml 5b0c4e1846 first commit il y a 4 ans

Readme.txt

OTA使用driver_ota_client和driver_ota_server。使用grpc服务来支持OTA升级。

1.driver_ota_client在IVSysMan.xml里设置为自启动。driver_ota_client可以使用driver_ota_client.xml配置服务器和端口。格式如下:







2.在app目录需要有version文件和vin.xml文件。
version文件的内容范例如下:0.0.3, 这个和driver_ota_server上设置的version保持一致。
vin.xml文件的内容范例如下:







3.将app文件夹压缩成.zip文件。升级包内只需要version,不要放置vin.xml,不需要放置vin.xml,不需要放置vin.xml。其它.xml按照需要放置。如果不需要覆盖或更新的不需要放置。

4.在driver_ota_server里设置车型的当前版本和当前zip文件。版本号需要和zip文件内的version保持一致,保持一致,保持一致。可以用测试车型测试OK后再放置到部署车型。

5.使用启动脚本启动程序,格式如下:
ivdir="/home/yuchuli/tem/apptest"
ivupdate="$ivdir/update.zip"
echo $ivupdate
cd $ivdir
if [ -f "$ivupdate" ]; then
echo "update.zip is exist"
unzip -o update.zip -d .
rm $ivupdate
fi
cd app
./IVSysMan &