远程下载和更新Win CE设备的代码 [英] Remotely Downloading and Updating the Code of Win CE device

查看:81
本文介绍了远程下载和更新Win CE设备的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Production网站上有很多基于Win CE 6/7的设备,我想远程更新所有设备中的设备代码,即.CAB文件,这与Windows / Android手机从某个地方下载更新的方式相同。 (目前我将手动复制粘贴每个设备的NANDFLASH中的.CAB文件并进行安装。)



我需要下载我的代码文件( .CAB文件,其中包含来自远程服务器(比如FTP服务器)的.EXE和.DLL)到我的Win CE设备的NANDFLASH中,以便可以在设备中安装新更新的代码。



如何在Win CE 6/7平台上使用C#和.Net Compact Framework 3.5实现远程下载和更新Win CE设备代码?



任何帮助将不胜感激。



提前致谢,



Vijay

I have many Win CE 6/7 based devices in Production site, and I want to update device code i.e .CAB file in all of the devices remotely, same as how Windows/Android phone downloads its updates from somewhere. (Currently I will be doing manually copy-paste the .CAB file in NANDFLASH of each device and installing it.)

for that I need to download my code file (.CAB file which contains .EXEs and .DLLs) from Remote server(say FTP server) into the NANDFLASH of my Win CE device so that newly updated code can be installed in the device.

How can I achieve this Remotely Downloading and Updating the Code of Win CE device using C# and .Net Compact Framework 3.5 on Win CE 6/7 platform?

Any help will be appreciated.

Thanks in advance,

Vijay

推荐答案

这是我所做的大纲:

1)CE设备的.dll和.exe文件存储在数据库表中这个

This is the outline of what I have done:
1) the .dll and .exe files for the CE device are stored in a database table like this
CREATE TABLE tbl_sys_modulfiles(
    file_name varchar(80) NOT NULL,
    file_size int NULL,
    file_date datetime NULL,
    file_version varchar(50) NULL,
    upload_date datetime NULL,
    file_data varbinary(max) NULL,
 CONSTRAINT tbl_sys_modulfiles_pk PRIMARY KEY CLUSTERED
(
    file_name ASC
)



作为CE客户端应用程序无论如何,这对我的数据库起作用,在我看来,这似乎是一个应用程序必须看的地方。

2)程序启动分两步执行

2.1)启动器检查设备上的本地版本是否是最新的

如果没有,它们会在检查和更新启动器启动后从varbinary列中的数据更新

2.2) 真正的应用程序。



codeproject上有一些artikels描述了这些自我更新。几年来,我的工作对我来说很好。 20台设备


as the CE client application works with the database anyway, this seems to me like a place where the application has to look anyway.
2) programm start is performed in two steps
2.1) a launcher checks if the versions local on the device are up to date
if not, they are updated from the data in the varbinary column
2.2) after checking and updating the launcher starts the 'real' application.

There are some artikels here on codeproject that descript these sorts of 'self-update'. Worked well for me for some years now with ca. 20 devices


这篇关于远程下载和更新Win CE设备的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆