WO2013189455A2 - 无线控制方法、装置与终端 - Google Patents

无线控制方法、装置与终端 Download PDF

Info

Publication number
WO2013189455A2
WO2013189455A2 PCT/CN2013/082597 CN2013082597W WO2013189455A2 WO 2013189455 A2 WO2013189455 A2 WO 2013189455A2 CN 2013082597 W CN2013082597 W CN 2013082597W WO 2013189455 A2 WO2013189455 A2 WO 2013189455A2
Authority
WO
WIPO (PCT)
Prior art keywords
module
serial port
virtual serial
instruction
application layer
Prior art date
Application number
PCT/CN2013/082597
Other languages
English (en)
French (fr)
Other versions
WO2013189455A3 (zh
Inventor
邹泽
岳宗鹤
田治兵
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013189455A2 publication Critical patent/WO2013189455A2/zh
Publication of WO2013189455A3 publication Critical patent/WO2013189455A3/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications

Definitions

  • the present invention relates to the field of wireless internet, and in particular, to a wireless control method, apparatus, and terminal. Background technique
  • UIFL WIFI function low-speed mobile data card device through Modem Ras dial-up networking, replaced by high-speed Network Interface Interface Specification (NDIS) and Remote Network Driver Interface Specification (RNDIS).
  • NDIS Network Interface Interface Specification
  • RNDIS Remote Network Driver Interface Specification
  • MIM mobile broadband interface model
  • MBI MobileBroadlnterfaceModel
  • Embodiments of the present invention provide a wireless control method, apparatus, and terminal for solving a wireless operation problem of a communication device that does not provide a serial communication interface.
  • a wireless control method is provided, and the following technical solutions are adopted:
  • the wireless control method is applied to the terminal, and includes: opening a virtual serial port by using an application layer module;
  • the virtual serial port is connected to the device to be controlled by the system network card driver; after the connection is successful, the device to be controlled is controlled according to the control instruction of the application layer module.
  • the method further includes: determining whether the virtual serial port has been created, and creating the virtual serial port when the virtual serial port is not created.
  • the creating the virtual serial port comprises: creating a virtual device node according to the device information; and automatically controlling the loading according to the device node controlling the virtual serial port.
  • the controlling the device to be controlled according to the control instruction of the application layer module comprises: establishing, according to the download instruction, a data management module and the device to be controlled a data channel; and controlling the application layer module to perform a download operation on the device to be controlled after the data channel is successfully established.
  • the method further includes: determining whether the data management module has been created, and the data management module is not created. When the data management module is created.
  • the data management module is further configured to: execute a data verification instruction sent by the application layer module, and perform status monitoring on the data transmission with the device to be controlled according to the data verification instruction, and monitor The application layer module is notified when an abnormal situation occurs.
  • the controlling the device to be controlled according to the control instruction of the application layer module comprises: loading the device information to be controlled by using the virtual serial port; And transmitting, by the application management layer module, the upgrade instruction to the virtual serial port by using the application management layer module; performing data transfer with the device by using the data management module according to the upgrade instruction, and feeding back a data transfer completion instruction to the Applying a management module; controlling the application layer module to perform an upgrade operation on the device according to the data delivery completion instruction.
  • a wireless control apparatus is provided and The following technical solutions:
  • the wireless control device includes: an open module configured to open a virtual serial port by using an application layer module; a connection module configured to connect the virtual serial port to the device to be controlled by the system network card driver; and the control module configured to be configured according to the connection succeeding The control instruction of the application layer module controls the device to be controlled.
  • the open module, the connection module and the control module can be implemented by using a central processing unit (CPU), a digital signal processor (DSP), or a field-programmable gate array (FPGA).
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA field-programmable gate array
  • the method further includes: a first determining module, configured to determine whether the virtual serial port has been created, and create the virtual serial port when the virtual serial port is not created.
  • a first determining module configured to determine whether the virtual serial port has been created, and create the virtual serial port when the virtual serial port is not created.
  • the first determining module can be implemented by using a central processing unit (CPU), a digital signal processor (DSP), or a Field-Programmable Gate Array (FPGA).
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA Field-Programmable Gate Array
  • the first determining module includes: a first creating sub-module configured to create a virtual device node according to device information; and a first loading module configured to automatically perform driving loading according to the device node controlling the virtual serial port.
  • the central processor may be used (CPU, Central Processing Unit), a digital signal processor (DSP, Digital Signal Processor) or a programmable logic array bad 1 J (FPGA, Field - Programmable Gate Array ) implementation.
  • CPU Central Processing Unit
  • DSP Digital Signal Processor
  • FPGA Field - Programmable Gate Array
  • control module includes: an establishing module, configured to establish a data channel of the data management module and the device to be controlled according to the downloading instruction; and the first control submodule is configured to control after the data channel is successfully established
  • the application layer module performs a download operation on the device to be controlled.
  • the establishing module and the first control submodule may be configured by a central processing unit (CPU, Central Processing Unit), Digital Signal Processor (DSP) or Field-Programmable Gate Array (FPGA).
  • CPU Central Processing Unit
  • DSP Digital Signal Processor
  • FPGA Field-Programmable Gate Array
  • the method further includes: a second determining module, configured to determine whether the data management module has been created, and create the data management module when the data management module is not created.
  • a second determining module configured to determine whether the data management module has been created, and create the data management module when the data management module is not created.
  • the second determining module can be implemented by using a central processing unit (CPU), a digital signal processor (DSP), or a field-programmable gate array (FPGA).
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA field-programmable gate array
  • the control module includes: a second loading module, configured to load the device information to be controlled by using the virtual serial port; and a sending module configured to use the application management layer module according to the device information to be controlled
  • the virtual serial port sends the upgrade instruction;
  • the delivery module is configured to perform data transmission with the device by using the data management module according to the upgrade instruction, and feed back a data transfer completion instruction to the application management layer module;
  • the control submodule is configured to control, according to the data delivery completion instruction, the application layer module to perform an upgrade operation on the device.
  • the second loading module, the sending module, the transmitting module and the second control submodule may be a central processing unit (CPU), a digital signal processor (DSP) or a programmable logic array (FPGA). , Field - Programmable Gate Array ) implementation.
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA programmable logic array
  • FPGA Field - Programmable Gate Array
  • a terminal is provided, and the following technical solution is adopted:
  • the terminal includes the above-described wireless control device.
  • the embodiment of the invention closely combines the characteristics of the mobile-free mobile device, and constructs a virtual interface to connect with the mobile-free mobile device, thereby implementing wireless control of the mobile device, and simplifying the device processing flow when downloading the file of the mobile device.
  • FIG. 1 is a flowchart of a wireless control method according to an embodiment of the present invention.
  • Figure 2 is a block diagram showing a specific operation of the wireless control method according to the embodiment of the present invention
  • Figure 3 is a schematic diagram showing a wireless control method according to an embodiment of the present invention. Method flow chart;
  • FIG. 5 is a flow chart showing a specific method of the wireless control method according to the embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of the wireless control device according to the embodiment of the present invention. detailed description
  • FIG. 1 is a flow chart showing a wireless control method according to an embodiment of the present invention.
  • the wireless control method includes the following steps:
  • Step 11 Open the virtual serial port through the application layer module.
  • Step 12 The virtual serial port is connected to the device to be controlled by the system network card driver.
  • Step 13 After the connection is successful, the device to be controlled is controlled according to the control instruction of the application layer module.
  • the application layer module is responsible for opening the virtual serial port before the start of the control operation such as downloading or upgrading, and sending a special startup command to the virtual serial port when the startup control is required; when the download is finished, the virtual serial port is closed.
  • the application layer module can start downloading after receiving the virtual serial port to start the download command.
  • the virtual serial port is created by the preset driving virtual serial port module, and the driving virtual serial port module is responsible for allocating the device instance object, obtaining the COM port number assigned by the system, and receiving and processing the opening, closing, and downloading start commands of the application layer module. It is also responsible for maintaining communication status with the system NIC driver, and transmitting the application layer when the control conditions are met.
  • the backup side version data is transmitted to the system NIC driver of the device to be operated, and then the system NIC driver transmits the data to the device to be controlled.
  • the virtual serial port can be directly controlled by the application software PC to perform a series of operations such as downloading and upgrading.
  • FIG. 2 is a block diagram showing a specific working framework of a wireless control method according to an embodiment of the present invention.
  • the system includes a driving virtual serial port module 100, an application layer module 102, a driving virtual serial port management module 103, a system network card driver 104, and a device physical network port module, wherein the system network card driver 104 and the device physical network port module, It can also be other device ports and supporting drivers.
  • This embodiment uses the system NIC driver 104 and the device physical network port module as an example.
  • the driver virtual serial port creation module 101 is responsible for driving the creation of the virtual serial port, so that the virtual serial port can be loaded by the system, and exists in the form of a driver object and a device object in the PC driver. In the system. Make the virtual port device state initialized and make the virtual port available.
  • the application layer module 102 can open the virtual port, operate the command, read and write, and perform the shutdown operation after the operation ends, just like the operation of the normal serial port.
  • the driving virtual serial port management module 103 is responsible for receiving, processing, and responding to each serial port operation performed by the application layer module 102. And manage the data exchange between the NIC driver to be upgraded.
  • the system network card driver module 104 receives the data driving the virtual serial port management module 103 as received by the normal data, and transmits the data to the device. After receiving the data, the device can perform partial upgrade or cache in the Flash area, and perform the upgrade action after all data transmission is completed.
  • FIG. 3 is a schematic diagram of a wireless control method according to an embodiment of the present invention. Referring to Figure 3, the control flow includes:
  • Step 201 Create a virtual serial device instance.
  • This step enables the virtual serial port to be loaded by the system; and exists in the PC drive system in the form of a drive object and a device object. Therefore, the initialization of the virtual port device state is made, and the virtual port is available.
  • Step 202 Open and close the virtual serial port through the application layer module.
  • Step 203 virtual serial port data management
  • the virtual serial port data management controls the data transmission between the device and the device to be controlled.
  • the wireless device is controlled based on the virtual serial port communication, and the PC upgrade software corresponding to the device to be controlled is also used.
  • the feature of the mobile-free mobile communication device is fully utilized, and the device can be upgraded without performing mode switching.
  • FIG. 4 is a flowchart of a method for constructing a virtual interface according to an embodiment of the present invention.
  • the methods for building a virtual interface include:
  • Step 301-1 First determine whether the same virtual serial port is already in the system
  • Step 301-2 If the result of the determination in step 301-1 is no, directly create a new virtual serial port; Step 301-3: If the result of the determination in step 301-1 is yes, the new virtual serial port may be created by using the new device information;
  • Step 301-4 The virtual device node is created, the symbolic link is registered, and the virtual serial port driver is loaded.
  • FIG. 5 is a flowchart of a specific method of a wireless control method according to an embodiment of the present invention.
  • the wireless control method includes:
  • Step 302-1 Process the virtual serial port open operation initiated by the application layer, and respond to the application layer request. And establishing a link with the related device to create a data management module;
  • Step 302-2 Determine whether the operation shown in 302-1 has been performed
  • Step 302-3 If the result of the determination in step 302-2 is YES, after receiving the application layer request, the download is allowed to be started, and the application layer is successfully responded.
  • Step 302-4 If the result of the determination in step 302-2 is no, after receiving the application layer request, the download is refused, and the application layer is notified that an abnormality has occurred. Pass the outlier A to the application layer.
  • Step 302-5 Processing the application layer data and maintaining the link with the related device NIC driver, and the data management module can also perform the data verification operation.
  • Step 302-6 Determine the transmission of data to the device network card driver. If the data is abnormal, go to step 302-7.
  • Step 302-7 End the delivery, notify the application layer that a transmission exception occurs, and return an abnormal value.
  • step 302-8 is executed to determine whether the data or command transmission ends.
  • Step 302-8 If the result of the determination in step 302-8 is no, step 302-9 is performed.
  • Step 302-9 Continue the download data or command transmission that has been received from the application layer. At the same time, it refuses to process the data sent by the new application layer. After the historical data transmission is completed, go to step 302-10.
  • Step 302-10 The processing of the end of the download process.
  • the application layer After receiving the notification that the device is downloaded from the virtual serial port, the application layer initiates the shutdown of the serial port operation. Drive the virtual serial port and go to step 302-11.
  • Step 302-11 Process the virtual serial port shutdown operation. Disconnect the relevant device system NIC driver link.
  • the data management module is configured to: execute a data verification instruction sent by the application layer module, and perform a data transmission status with the device to be controlled according to the data verification instruction. Monitor and notify the application layer module when an abnormal condition is detected.
  • FIG. 6 is a schematic structural diagram of a wireless control apparatus according to an embodiment of the present invention.
  • the wireless control device includes: an opening module 601 configured to open a virtual serial port by using an application layer module; and a connection module 603 configured to connect the virtual serial port to the device to be controlled by using a system network card driver;
  • the device is configured to control the device to be controlled according to a control instruction of the application layer module after the connection is successful.
  • the method further includes: a first determining module (not shown) configured to determine whether the virtual serial port has been created, and creating the virtual serial port when the virtual serial port is not created.
  • a first determining module (not shown) configured to determine whether the virtual serial port has been created, and creating the virtual serial port when the virtual serial port is not created.
  • the first determining module includes: a first creating submodule (not shown) configured to create a virtual device node according to device information; a first loading module (not shown) And configuring to automatically complete the driver loading according to the device node controlling the virtual serial port.
  • control module 605 includes: an establishing module (not shown) configured to establish a data channel of the data management module and the device to be controlled according to the downloading instruction; the first control submodule (not shown) The method is configured to control the application layer module to perform a download operation on the device to be controlled after the data channel is successfully established.
  • the method further includes: a second determining module (not shown) configured to determine whether the data management module has been created, and creating the data management module when the data management module is not created.
  • a second determining module (not shown) configured to determine whether the data management module has been created, and creating the data management module when the data management module is not created.
  • control module 605 includes: a second loading module (not shown) configured to load the device information to be controlled by using the virtual serial port; and a sending module (not shown) configured to be configured according to the The control device information is sent to the virtual serial port by using the application management layer module
  • the upgrade instruction; the delivery module (not shown) is configured to perform data transfer with the device by using the data management module according to the upgrade instruction, and feed back the data transfer completion instruction to the application management layer module;
  • the second control sub-module (not shown) is configured to control the application layer module to perform an upgrade operation on the device according to the data delivery completion instruction.
  • the terminal provided by the embodiment of the present invention includes the above wireless control apparatus.
  • the embodiment of the invention closely combines the characteristics of the mobile-free mobile device, and constructs a virtual interface to connect with the mobile-free mobile device, thereby implementing wireless control of the mobile device, and simplifying the device processing flow when downloading the file of the mobile device.
  • the embodiment of the invention closely combines the characteristics of the mobile-free mobile device, and constructs a virtual interface to connect with the mobile-free mobile device, thereby implementing wireless control of the mobile device, and simplifying the device processing flow when downloading the file of the mobile device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开一种无线控制方法、装置与终端,用于通过虚拟串口无线控制其他设备,该无线控制方法包括:通过应用层模块打开虚拟串口;通过系统网卡驱动使得所述虚拟串口与待控制设备连接;在所述连接成功后根据所述应用层模块的控制指令对所述待控制设备进行控制。采用本发明的技术方案,可以通过应用软件PC驱动虚拟的串口直接控制设备,进行下载、升级等一系列的控制操作。

Description

无线控制方法、 装置与终端 技术领域
本发明涉及无线互联网领域, 尤其涉及一种无线控制方法、 装置与终 端。 背景技术
随着移动互联网的蓬勃发展, 移动通讯设备也不断改良、 发展。 单纯 以上网为目的的移动数据卡设备也不例外。 单纯的移动数据卡设备带上了
UIFL WIFI功能; 通过 Modem Ras拨号联网的低速移动数据卡设备, 被高 速的网络接口卡规范( NDIS , Network Driver Interface Specification , )与远 程网络驱动接口规范( RNDIS , Remote Network Driver Interface Specification) 取代。 而更为通用的免驱 RNDIS、 移动宽带接口模型(MBIM , MobileBroadlnterfaceModel )移动设备的应用前景更为广阔。
随着免驱 RNDIS、 MBIM设备的逐步推广及应用, 以后传统移动通讯设 备提供串行通讯接口的情况越来越少。
因此, 解决不提供串行通讯接口的通讯设备的无线操作成为欲待解决 的问题。 发明内容
本发明实施例提供一种无线控制方法、 装置与终端, 用于解决不提供 串行通讯接口的通讯设备的无线操作问题。
为实现上述目的, 根据本发明实施例的一个方面, 提供一种无线控制 方法, 并采用如下技术方案:
无线控制方法, 应用于终端, 包括: 通过应用层模块打开虚拟串口; 通过系统网卡驱动使得所述虚拟串口与待控制设备连接; 在所述连接成功 后根据所述应用层模块的控制指令对所述待控制设备进行控制。
优选地, 在所述通过应用层模块打开虚拟串口之前, 还包括: 判断所 述虚拟串口是否已被创建, 并在所述虚拟串口没有被创建过时, 创建所述 虚拟串口。
优选地, 所述创建所述虚拟串口包括: 根据设备信息创建虚拟设备节 点; 根据所述设备节点控制所述虚拟串口自动完成驱动加载。
优选地, 在所述控制指令为下载指令时, 所述根据所述应用层模块的 控制指令对所述待控制设备进行控制包括: 根据所述下载指令建立数据管 理模块与所述待控制设备的数据通道; 并在所述数据通道建立成功后控制 所述应用层模块对所述待控制设备执行下载操作。
优选地, 在所述根据所述下载指令建立数据管理模块与所述待控制设 备的数据通道之前, 还包括: 判断所述数据管理模块是否已经被创建, 并 在所述数据管理模块未被创建时, 创建所述数据管理模块。
优选地, 所述数据管理模块还配置为: 执行所述应用层模块发送的数 据校验指令, 并根据所述数据校验指令对与所述待控制设备在数据传输进 行状态监控 , 并在监控到异常情况发生时告知所述应用层模块。
优选地, 在所述指令为升级指令时, 所述根据所述应用层模块的控制 指令对所述待控制设备进行控制包括: 通过所述虚拟串口加载所述待控制 设备信息; 根据所述待控制设备信息通过所述应用管理层模块向所述虚拟 串口发送所述升级指令; 根据所述升级指令通过所述数据管理模块与所述 设备进行数据传递, 并将数据传递完毕指令反馈回所述应用管理层模块; 根据所述数据传递完毕指令控制所述应用层模块对所述设备进行升级操 作。
根据本发明实施例的另外一个方面, 提供一种无线控制装置, 并采用 如下技术方案:
无线控制装置包括: 打开模块, 配置为通过应用层模块打开虚拟串口; 连接模块, 配置为通过系统网卡驱动使得所述虚拟串口与待控制设备连接; 控制模块, 配置为在所述连接成功后根据所述应用层模块的控制指令对所 述待控制设备进行控制。
所述打开模块、连接模块及控制模块可以采用中央处理器( CPU, Central Processing Unit )、 数字信号处理器(DSP, Digital Signal Processor )或可编 程逻辑阵列 (FPGA, Field - Programmable Gate Array ) 实现。
优选地, 还包括: 第一判断模块, 配置为判断所述虚拟串口是否已被 创建, 并在所述虚拟串口没有被创建过时, 创建所述虚拟串口。
所述第一判断模块, 可以采用中央处理器 (CPU, Central Processing Unit )、 数字信号处理器(DSP, Digital Signal Processor )或可编程逻辑阵列 ( FPGA, Field - Programmable Gate Array ) 实现。
优选地, 所述第一判断模块包括: 第一创建子模块, 配置为根据设备 信息创建虚拟设备节点; 第一加载模块, 配置为根据所述设备节点控制所 述虚拟串口自动完成驱动加载。
所述第一创建子模块及所述第一加载模块, 可以采用中央处理器 ( CPU, Central Processing Unit ), 数字信号处理器 (DSP, Digital Signal Processor )或可编程逻辑阵歹1 J ( FPGA, Field - Programmable Gate Array ) 实现。
优选地, 所述控制模块包括: 建立模块, 配置为根据所述下载指令建 立数据管理模块与所述待控制设备的数据通道; 第一控制子模块, 配置为 在所述数据通道建立成功后控制所述应用层模块对所述待控制设备执行下 载操作。
所述建立模块及所述第一控制子模块,, 可以采用中央处理器(CPU, Central Processing Unit ), 数字信号处理器 ( DSP, Digital Signal Processor ) 或可编程逻辑阵列 (FPGA, Field - Programmable Gate Array ) 实现。
优选地, 还包括: 第二判断模块, 配置为判断所述数据管理模块是否 已经被创建, 并在所述数据管理模块未被创建时, 创建所述数据管理模块。
所述第二判断模块, 可以采用中央处理器 (CPU, Central Processing Unit ), 数字信号处理器(DSP, Digital Signal Processor )或可编程逻辑阵列 ( FPGA, Field - Programmable Gate Array ) 实现。
优选地, 所述控制模块包括: 第二加载模块, 配置为通过所述虚拟串 口加载所述待控制设备信息; 发送模块, 配置为根据所述待控制设备信息 通过所述应用管理层模块向所述虚拟串口发送所述升级指令; 传递模块, 配置为根据所述升级指令通过所述数据管理模块与所述设备进行数据传 递, 并将数据传递完毕指令反馈回所述应用管理层模块; 第二控制子模块, 配置为根据所述数据传递完毕指令控制所述应用层模块对所述设备进行升 级操作。
所述第二加载模块、 发送模块、 传递模块及第二控制子模块, 可以采 用中央处理器(CPU, Central Processing Unit ), 数字信号处理器(DSP, Digital Signal Processor )或可编程逻辑阵列 (FPGA, Field - Programmable Gate Array ) 实现。
根据本发明实施例的又一个方面, 提供一种终端, 并采用如下技术方 案:
该终端包括上述的无线控制装置。
本发明实施例紧密结合了免驱移动设备的特性, 采用构建虚拟接口与 免驱移动设备连接, 可以实现对移动设备的无线控制, 在对移动设备的文 件进行下载时, 简化了设备处理流程, 无需设备切换下载模式, 枚举出多 端口, 减少了切换下载模式带来的风险(无需生产时增加工位, 检验是否 退出下载模式、 无需担心 COM口端口跳变、 降低了安装传统 PC串口驱动失 败的风险); 在对无线设备进行软件升级时, 简化 PC升级软件工作流程, 确 保了使用通用串口升级方法的便利性。 附图说明
图 1表示本发明实施例所述的无线控制方法的流程图;
图 2表示本发明实施例所述的无线控制方法具体工作框架图; 图 3表示本发明实施例所述的无线控制方法中一具体示意图; 图 4表示本发明实施例所述的构建虚拟接口的方法流程图;
图 5表示本发明实施例所述无线控制方法一具体方法流程图; 图 6表示本发明实施例所述无线控制装置的结构示意图。 具体实施方式
图 1表示本发明实施例所述的无线控制方法的流程图。
参见图 1所示, 无线控制方法包括以下步驟:
步驟 11: 通过应用层模块打开虚拟串口;
步驟 12: 通过系统网卡驱动使得所述虚拟串口与待控制设备连接; 步驟 13: 在所述连接成功后根据所述应用层模块的控制指令对所述待 控制设备进行控制。
在本实施例中, 应用层模块负责在下载或升级等控制操作进行开始前 打开虚拟串口, 在需要启动控制时发送特殊启动指令给虚拟串口; 在下载 结束时, 关闭虚拟串口。 此外, 应用层模块在收到虚拟串口可以开始下载 指令后再开始进行下载。 虚拟串口由预设的驱动虚拟串口模块创建, 同时 该驱动虚拟串口模块负责分配设备实例对象、 获取系统分配的 COM口号, 并且负责接收、 处理应用层模块的打开、 关闭、 及下载启动命令。 还负责 同系统网卡驱动保持通讯状态, 在符合控制条件时, 将应用层传输来的设 备侧版本数据传递到待操作设备的系统网卡驱动, 再由系统网卡驱动将数 据传递给待控制设备。
采用本实施例的技术方案, 可以通过应用软件 PC驱动虚拟的串口直接 控制设备, 进行下载、 升级等一系列的操作。
图 2表示本发明实施例所述的无线控制方法具体工作框架图。
参见图 2所示, 系统包括驱动虚拟串口模块 100, 应用层模块 102, 驱动 虚拟串口管理模块 103、 系统网卡驱动 104及设备物理网口模块, 其中, 系 统网卡驱动 104及设备物理网口模块, 也可以是其它设备端口及配套驱动。 本实施例以系统网卡驱动 104及设备物理网口模块为例进行阐述。
本系统具体实施方法如下:
首先, 需要有驱动虚拟串口模块的子模块 --驱动虚拟串口创建模块 101 负责进行驱动虚拟串口的创建, 使虚拟串口能被系统加载, 并以一个驱动 对象和一个设备对象的形式存在于 PC驱动系统中。 做好虚拟端口设备状态 的初始化, 让虚拟端口处于可用状态。
驱动虚拟串口创建模块 101工作完毕之后, 应用层模块 102就可以如同 操作普通串口般, 对虚拟端口进行打开操作、 操作命令发生、 读写操作、 操作结束后执行关闭操作。
驱动虚拟串口管理模块 103则负责接收、 处理、 响应应用层模块 102执 行的各串口操作。 并管理同待升级网卡驱动间的数据交流。
系统网卡驱动模块 104如同接收正常数据一样, 接收到驱动虚拟串口管 理模块 103的数据, 并传递给设备。 设备在收到这些数据后, 可以执行部分 升级或者緩存在 Flash区域中, 待全部数据传输完毕后执行升级动作。
在本实施例的上述技术方案中, 采用构建虚拟接口与免驱移动设备连 接, 可以实现对移动设备的无线控制, 在对移动设备的无线控制, 简化了 设备处理流程, 以及减少了切换模式带来的风险。 图 3表示本发明实施例所述的无线控制方法一具体示意图。 参见图 3所示, 控制流程包括:
步驟 201 : 创建虚拟串口设备实例;
本步驟使得虚拟串口能被系统加载; 并以一个驱动对象和一个设备对 象的形式存在于 PC驱动系统中。 故好虚拟端口设备状态的初始化, 让虚拟 端口处于可用状态。
步驟 202: 通过应用层模块对虚拟串口进行打开关闭管理;
通过本步驟以此建立与终端设备的通讯链接;
步驟 203: 虚拟串口数据管理;
根据与应用层模块的交互, 虚拟串口数据管理控制与待控制设备之间 的数据传输。
在本实施例中, 基于虚拟串口通讯, 对无线设备进行控制, 待控制设 备对应的 PC升级软件也是如此, 充分利用免驱移动通讯设备的特性, 不需 要设备进行模式切换即可进行设备升级。
图 4表示本发明实施例所述的构建虚拟接口的方法流程图。
参见图 4所示: 构建虚拟接口的方法包括:
步驟 301-1: 先判断系统中是否已经有相同的虚拟串口;
步驟 301-2: 如步驟 301-1中判断结果为没有, 直接创建新虚拟串口; 步驟 301-3: 如步驟 301-1中判断结果为有, 可以使用新的设备信息创建 新虚拟串口;
步驟 301-4: 虚拟设备节点创建, 注册符号链接, 完成虚拟串口驱动加 载。
本实施例给出创建虚拟串口的具体方法, 是通过虚拟设备节点创建, 注册符号链接, 完成虚拟串口驱动加载, 通过该虚拟串口完成与待控制设 备的无线连接。 图 5表示本发明实施例所述无线控制方法一具体方法流程图。
参见图 5所示, 无线控制方法包括:
步驟 302-1 : 处理应用层发起的虚拟串口打开操作, 响应应用层请求。 并同相关设备建立链接, 创建数据管理模块;
步驟 302-2: 判断是否已经执行过 302-1所示操作;
步驟 302-3: 若步驟 302-2判断结果为是, 则在收到应用层请求后, 允许 启动下载, 并成功响应应用层。
步驟 302-4: 若步驟 302-2判断结果为否, 则在收到应用层请求后, 拒绝 启动下载, 并告知应用层发生异常。 传递异常值 A给应用层。
数据管理模块接收到应用层下载数据命令及数据后, 执行步驟 302-5。 步驟 302-5: 处理应用层数据并维持同相关设备网卡驱动的链接, 数据 管理模块还可以执行数据校验操作。
步驟 302-6: 判断数据向设备网卡驱动的传递情况, 若数据异常, 执行 步驟 302-7。
步驟 302-7: 结束传递, 告知应用层发生传输异常, 返回异常值。
可选地, 设备版本下载期间, 或版本下载完毕后, 应用程序发起结束 下载指令。 驱动虚拟串口模块接收指令后, 执行步驟 302-8判断数据或命令 传输是否结束。
步驟 302-8: 若步驟 302-8判断结果为否, 则执行步驟 302-9。
步驟 302-9: 继续已从应用层接收到的下载数据或命令传输。 同时, 拒 绝处理新的应用层下发的数据。 历史数据传输结束后, 执行步驟 302-10。
步驟 302-10: 下载流程结束的处理。
应用层收到驱动虚拟串口发出的设备下载结束的通知后, 发起关闭串 口操作。 驱动虚拟串口执行步驟 302-11。
步驟 302-11 :处理虚拟串口关闭操作。断开相关设备系统网卡驱动链接。 本实施例给出了数据管理模块, 该数据管理模块配置为: 执行所述应 用层模块发送的数据校验指令, 并根据所述数据校验指令对与所述待控制 设备在数据传输进行状态监控, 并在监控到异常情况发生时告知所述应用 层模块。 采用本实施例的技术方案, 不仅提供了无线控制的数据通道, 而 且对于传输过程中遇到的异常情况均可以很好把握。
图 6表示本发明实施例所述无线控制装置的结构示意图。
参见图 6所示, 无线控制装置包括: 打开模块 601 , 配置为通过应用层 模块打开虚拟串口; 连接模块 603 , 配置为通过系统网卡驱动使得所述虚拟 串口与待控制设备连接; 控制模块 605 , 配置为在所述连接成功后根据所述 应用层模块的控制指令对所述待控制设备进行控制。
可选地, 还包括: 第一判断模块(图中未示), 配置为判断所述虚拟串 口是否已被创建, 并在所述虚拟串口没有被创建过时, 创建所述虚拟串口。
可选地, 所述第一判断模块(图中未示) 包括: 第一创建子模块(图 中未示), 配置为根据设备信息创建虚拟设备节点; 第一加载模块(图中未 示), 配置为根据所述设备节点控制所述虚拟串口自动完成驱动加载。
可选地, 所述控制模块 605包括: 建立模块(图中未示), 配置为根据 所述下载指令建立数据管理模块与所述待控制设备的数据通道; 第一控制 子模块(图中未示), 配置为在所述数据通道建立成功后控制所述应用层模 块对所述待控制设备执行下载操作。
可选地, 还包括: 第二判断模块(图中未示), 配置为判断所述数据管 理模块是否已经被创建, 并在所述数据管理模块未被创建时, 创建所述数 据管理模块。
可选地, 所述控制模块 605包括: 第二加载模块(图中未示), 配置为 通过所述虚拟串口加载所述待控制设备信息; 发送模块(图中未示), 配置 为根据所述待控制设备信息通过所述应用管理层模块向所述虚拟串口发送 所述升级指令; 传递模块(图中未示), 配置为根据所述升级指令通过所述 数据管理模块与所述设备进行数据传递, 并将数据传递完毕指令反馈回所 述应用管理层模块; 第二控制子模块(图中未示), 配置为根据所述数据传 递完毕指令控制所述应用层模块对所述设备进行升级操作。
本发明实施例提供的终端包括上述的无线控制装置。
本发明实施例紧密结合了免驱移动设备的特性, 采用构建虚拟接口与 免驱移动设备连接, 可以实现对移动设备的无线控制, 在对移动设备的文 件进行下载时, 简化了设备处理流程, 无需设备切换下载模式, 枚举出多 端口, 减少了切换下载模式带来的风险(无需生产时增加工位, 检验是否 退出下载模式、 无需担心 COM口端口跳变、 降低了安装传统 PC串口驱动失 败的风险); 在对无线设备进行软件升级时, 简化 PC升级软件工作流程, 确 保了使用通用串口升级方法的便利性。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。 工业实用性
本发明实施例紧密结合了免驱移动设备的特性, 采用构建虚拟接口与 免驱移动设备连接, 可以实现对移动设备的无线控制, 在对移动设备的文 件进行下载时, 简化了设备处理流程, 无需设备切换下载模式, 枚举出多 端口, 减少了切换下载模式带来的风险(无需生产时增加工位, 检验是否 退出下载模式、 无需担心 COM口端口跳变、 降低了安装传统 PC串口驱动失 败的风险); 在对无线设备进行软件升级时, 简化 PC升级软件工作流程, 确 保了使用通用串口升级方法的便利性。

Claims

权利要求书
1.一种无线控制方法, 应用于终端, 所述方法包括:
通过应用层模块打开虚拟串口;
通过系统网卡驱动使得所述虚拟串口与待控制设备连接;
在所述连接成功后根据所述应用层模块的控制指令对所述待控制设备 进行控制。
2.如权利要求 1所述的无线控制方法, 其中, 在所述通过应用层模块打 开虚拟串口之前, 所述方法还包括:
判断所述虚拟串口是否已被创建, 并在所述虚拟串口没有被创建过时, 创建所述虚拟串口。
3.如权利要求 2所述的无线控制方法, 其中, 所述创建所述虚拟串口包 括:
根据设备信息创建虚拟设备节点;
根据所述设备节点控制所述虚拟串口自动完成驱动加载。
4.如权利要求 1所述的无线控制方法, 其中, 在所述控制指令为下载指 令时, 所述根据所述应用层模块的控制指令对所述待控制设备进行控制包 括:
根据所述下载指令建立数据管理模块与所述待控制设备的数据通道; 在所述数据通道建立成功后控制所述应用层模块对所述待控制设备执 行下载操作。
5.如权利要求 4所述的无线控制方法, 其中, 在所述根据所述下载指令 建立数据管理模块与所述待控制设备的数据通道之前, 还包括:
判断所述数据管理模块是否已经被创建, 并在所述数据管理模块未被 创建时, 创建所述数据管理模块。
6.如权利要求 5所述的无线控制方法, 其中, 所述数据管理模块还配置 为: 执行所述应用层模块发送的数据校验指令, 并根据所述数据校验指令 对与所述待控制设备在数据传输进行状态监控, 并在监控到异常情况发生 时告知所述应用层模块。
7.如权利要求 5所述的无线控制方法, 其中, 在所述指令为升级指令时, 所述根据所述应用层模块的控制指令对所述待控制设备进行控制包括: 通过所述虚拟串口加载所述待控制设备信息;
根据所述待控制设备信息通过所述应用管理层模块向所述虚拟串口发 送所述升级指令;
根据所述升级指令通过所述数据管理模块与所述设备进行数据传递, 并将数据传递完毕指令反馈回所述应用管理层模块;
根据所述数据传递完毕指令控制所述应用层模块对所述设备进行升级 操作。
8.—种无线控制装置, 应用于终端, 所述装置包括:
打开模块, 配置为通过应用层模块打开虚拟串口;
连接模块, 配置为通过系统网卡驱动使得所述虚拟串口与待控制设备 连接;
控制模块, 配置为在所述连接成功后根据所述应用层模块的控制指令 对所述待控制设备进行控制。
9.如权利要求 8所述的无线控制装置, 其中, 所述装置还包括: 第一判断模块, 配置为判断所述虚拟串口是否已被创建, 并在所述虚 拟串口没有被创建过时, 创建所述虚拟串口。
10.如权利要求 9所述的无线控制装置, 其中, 所述第一判断模块包括: 第一创建子模块, 配置为根据设备信息创建虚拟设备节点;
第一加载模块, 配置为根据所述设备节点控制所述虚拟串口自动完成 驱动加载。
11.如权利要求 8所述的无线控制装置, 其中, 所述控制模块包括: 建立模块, 配置为根据所述下载指令建立数据管理模块与所述待控制 设备的数据通道;
第一控制子模块, 配置为在所述数据通道建立成功后控制所述应用层 模块对所述待控制设备执行下载操作。
12.如权利要求 11所述的无线控制装置, 其中, 所述控制模块还包括: 第二判断模块, 配置为判断所述数据管理模块是否已经被创建, 并在 所述数据管理模块未被创建时, 创建所述数据管理模块。
13.如权利要求 11所述的无线控制装置, 其中, 所述控制模块包括: 第二加载模块, 配置为通过所述虚拟串口加载所述待控制设备信息; 发送模块, 配置为根据所述待控制设备信息通过所述应用管理层模块 向所述虚拟串口发送所述升级指令;
传递模块, 配置为根据所述升级指令通过所述数据管理模块与所述设 备进行数据传递, 并将数据传递完毕指令反馈回所述应用管理层模块; 第二控制子模块 , 配置为根据所述数据传递完毕指令控制所述应用层 模块对所述设备进行升级操作。
14.一种终端, 包括权利要求 8至 13任一项所述的无线控制装置。
PCT/CN2013/082597 2013-06-04 2013-08-29 无线控制方法、装置与终端 WO2013189455A2 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310218887.7A CN104219268B (zh) 2013-06-04 2013-06-04 无线控制方法、装置与终端
CN201310218887.7 2013-06-04

Publications (2)

Publication Number Publication Date
WO2013189455A2 true WO2013189455A2 (zh) 2013-12-27
WO2013189455A3 WO2013189455A3 (zh) 2014-04-24

Family

ID=49769593

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/082597 WO2013189455A2 (zh) 2013-06-04 2013-08-29 无线控制方法、装置与终端

Country Status (2)

Country Link
CN (1) CN104219268B (zh)
WO (1) WO2013189455A2 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9719806B2 (en) 2014-10-31 2017-08-01 Allegro Microsystems, Llc Magnetic field sensor for sensing a movement of a ferromagnetic target object

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105405280B (zh) * 2015-10-22 2018-11-30 宁波三星医疗电气股份有限公司 一种用于调试电力采集终端并获得抄表信息的实现方法
CN107465711A (zh) * 2016-06-06 2017-12-12 中兴通讯股份有限公司 一种串口通信方法、控制终端及单板
CN111399874A (zh) * 2020-03-05 2020-07-10 Tcl移动通信科技(宁波)有限公司 一种系统升级方法、装置、存储介质及智能穿戴设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938848A (zh) * 2010-06-03 2011-01-05 华为终端有限公司 主机设备无线上网方法及系统
CN102047650A (zh) * 2008-03-28 2011-05-04 辛特里昂无线电模块有限责任公司 用于运行通信设备的方法以及为此的通信设备
CN102427417A (zh) * 2011-12-08 2012-04-25 北京工业大学 一种远程控制物联网接入设备的系统及方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100302095A1 (en) * 2009-06-02 2010-12-02 Mitac Technology Corp. System for sharing gps protocol data and method thereof
CN102547561B (zh) * 2011-12-13 2015-01-07 华为终端有限公司 实现移动设备的定位业务方法和无线接入设备
CN102984811A (zh) * 2012-11-21 2013-03-20 中兴通讯股份有限公司 免驱的联网处理方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102047650A (zh) * 2008-03-28 2011-05-04 辛特里昂无线电模块有限责任公司 用于运行通信设备的方法以及为此的通信设备
CN101938848A (zh) * 2010-06-03 2011-01-05 华为终端有限公司 主机设备无线上网方法及系统
CN102427417A (zh) * 2011-12-08 2012-04-25 北京工业大学 一种远程控制物联网接入设备的系统及方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9719806B2 (en) 2014-10-31 2017-08-01 Allegro Microsystems, Llc Magnetic field sensor for sensing a movement of a ferromagnetic target object

Also Published As

Publication number Publication date
CN104219268A (zh) 2014-12-17
WO2013189455A3 (zh) 2014-04-24
CN104219268B (zh) 2019-08-27

Similar Documents

Publication Publication Date Title
EP2904739B1 (en) Discovering, validating, and configuring hardware-inventory components
CN104580475B (zh) 远程控制方法、终端设备、管理服务器及远程控制系统
EP2456257B1 (en) Method and system for upgrading wireless data card
US10514930B2 (en) Setting a startup parameter and controlling startup of a mainboard
US10003496B1 (en) Network change management
US20150312802A1 (en) Method and system for sideband communication architecture for supporting manageability over wireless lan (wlan)
CN102164363B (zh) 一种实现基站版本更新的方法和一种基站
WO2013189455A2 (zh) 无线控制方法、装置与终端
WO2015051647A1 (zh) 一种固件的升级方法和系统、上位机和光模块
CN105743948A (zh) 一种网络版本升级的方法及装置
US9235405B2 (en) Apparatus, system and method for upgrading firmware of energy metering device
CN108536452B (zh) 一种嵌入式设备及其系统软件升级方法、系统和终端
WO2015131532A1 (zh) 多功能usb终端设备的适配方法、装置及系统
CN106716926B (zh) 硬件库存的自动化独立式引导电路
CN103454959A (zh) 基于远程控制的工控系统及更新控制程序的方法
WO2018040923A1 (zh) Pos 终端应用包的下载方法、装置及通讯方法
JP5546500B2 (ja) Fpga搭載装置の遠隔保守システム
WO2012000240A1 (zh) 下载数据的方法和终端设备
WO2014187401A1 (zh) 一种远程基站版本安装方法及装置
CN117289963A (zh) 在线更新服务器平台服务固件的目标区域的方法及设备
WO2014169759A1 (zh) 一种实现智能家居服务的方法、智能家居终端和服务热点
CN103873294A (zh) 一种issu升级过程中ppp链路保活的方法和设备
CN110750327A (zh) 虚拟网络功能的管理方法及系统、代理装置、存储介质
CN105072185A (zh) 一种tr069远程监控方法、系统和通讯设备
CN108958776A (zh) 一种基于命令行的bmc固件更新方法与装置

Legal Events

Date Code Title Description
122 Ep: pct application non-entry in european phase

Ref document number: 13806186

Country of ref document: EP

Kind code of ref document: A2