WO2015120675A1 - Host software installation method and apparatus for data terminal, and computer storage medium - Google Patents

Host software installation method and apparatus for data terminal, and computer storage medium Download PDF

Info

Publication number
WO2015120675A1
WO2015120675A1 PCT/CN2014/079173 CN2014079173W WO2015120675A1 WO 2015120675 A1 WO2015120675 A1 WO 2015120675A1 CN 2014079173 W CN2014079173 W CN 2014079173W WO 2015120675 A1 WO2015120675 A1 WO 2015120675A1
Authority
WO
WIPO (PCT)
Prior art keywords
host software
data terminal
identification information
host
software identification
Prior art date
Application number
PCT/CN2014/079173
Other languages
French (fr)
Chinese (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 WO2015120675A1 publication Critical patent/WO2015120675A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a data terminal host software installation method and apparatus, and a computer storage medium. Background technique
  • UI user interface
  • driver software
  • the host software is used to configure and drive the data terminal to operate normally. It is a process of first installing and then using. The process is summarized in two modes: installation mode and working mode.
  • the installation mode is used to install the host software, usually through the software that is included in the CD-ROM enumerated by the data terminal.
  • the other way is to pre-install the host-side software to the computer.
  • the host software or the operating system issues a command to the data terminal to switch the terminal from the installation mode to the working mode.
  • the data terminal enumerates the working port combination including the network port, the diagnosis port, the AT port, and the like, and the host software communicates with the data terminal through the working port.
  • Data terminals of different product types differ in their appearance, functions, and port driver functions depending on the product requirements and design. Therefore, the products of different data terminals need to install the corresponding host software to ensure that the data terminal works correctly. In addition, the same data terminal product may release a new version, fix the problem, increase the function, and therefore there is a new version upgrade of the host software.
  • the traditional data terminal installation strategy is a mutually exclusive installation mode. Only one data terminal can be installed on one host at the same time. When installing a new data terminal, the installed terminal needs to be uninstalled and then installed. The annual sales volume of global data terminals is huge. The installation and use of data terminal products of various countries, regions and operators is a very complicated multi-terminal cross-use environment. Traditional installer It requires repeated installation and uninstallation, which reduces the user experience. Summary of the invention
  • the present invention has been proposed to provide a data terminal host software installation method and apparatus, and a computer storage medium.
  • An embodiment of the present invention provides a data terminal host software installation method, including:
  • the host software identification information reported by the data terminal is obtained; the host software corresponding to the data terminal is installed according to the host software identification information, and the correspondence between the host software identification information and the host software is saved in a preset mapping relationship. In the table.
  • the host software identification information includes: a product information identifier for identifying different products, and a version information identifier for identifying an upgrade version of the same product.
  • installing the host software corresponding to the data terminal according to the host software identification information comprises: determining, according to the product information identifier in the host software identification information, whether the data terminal has not installed the corresponding host software, and if the determination is yes, installing and the data terminal Corresponding host software; if the judgment is no, determine whether the host software of the data terminal needs to be upgraded according to the version information identifier in the host software identification information, and if the upgrade is required, install an upgrade version of the host software corresponding to the data terminal; Upgrade, directly switch the data terminal to work mode;
  • the method further includes: searching the mapping relationship table according to the host software identification information, determining the host software corresponding to the host software identification information, and calling and loading the user interface and the driver corresponding to the host software.
  • the USB serial number of the data terminal is used as a carrier of the host software identification information.
  • acquiring the host software identification information reported by the data terminal includes: after connecting with the data terminal, acquiring the USB serial number reported by the data terminal when performing USB enumeration, and extracting the serial number from the USB Obtain the host software identification information reported by the data terminal.
  • the embodiment of the present invention further provides a data terminal host software installation device, including: an obtaining module, configured to acquire a host soft reported by a data terminal after being connected to the data terminal Identification information;
  • the installation module is configured to install the host software corresponding to the data terminal according to the host software identification information, and save the correspondence between the host software identification information and the host software in a preset mapping relationship table.
  • the production host software identification information comprises: a product information identifier for identifying different products, and a version information identifier for identifying an upgraded version of the same product.
  • the installation module is configured to: determine, according to the product information identifier in the host software identification information, whether the data terminal has not installed the corresponding host software, and if the determination is yes, install the host software corresponding to the data terminal; if the determination is no, Then, according to the version information identifier in the host software identification information, it is determined whether the host software of the data terminal needs to be upgraded. If the upgrade is required, the upgrade version of the host software corresponding to the data terminal is installed; if the upgrade is not required, the data terminal is directly switched to work. Mode
  • the device further includes: a calling module configured to: after the data terminal switches to the working mode, search the mapping relationship table according to the host software identification information, determine the host software corresponding to the host software identification information, invoke and load the host software correspondingly User interface and driver.
  • a calling module configured to: after the data terminal switches to the working mode, search the mapping relationship table according to the host software identification information, determine the host software corresponding to the host software identification information, invoke and load the host software correspondingly User interface and driver.
  • the carrier of the host software identification information is a USB serial number of the data terminal.
  • the obtaining module is configured to: after connecting to the data terminal, obtain the USB serial number reported by the data terminal during USB enumeration, and obtain the host software identification information reported by the data terminal from the USB serial number.
  • the embodiment of the present invention further provides a data terminal host software installation method, including: after the data terminal is connected with the host, reporting the host software identification information to the host; the data terminal is installed on the host and the data terminal according to the host software identification information by the host.
  • the corresponding host software is: after the data terminal is connected with the host, reporting the host software identification information to the host; the data terminal is installed on the host and the data terminal according to the host software identification information by the host. The corresponding host software.
  • the host software identification information includes: a product information identifier for identifying different products, and a version information identifier for identifying an upgrade version of the same product.
  • the USB serial number of the data terminal is used as a carrier of the host software identification information.
  • Embodiments of the present invention also provide a computer storage medium in which computer executable instructions are stored, the computer executable instructions being used to perform the above method.
  • the embodiment of the present invention establishes a mapping relationship between the data terminal and the host software by using the host software identification information of the data terminal, and solves the problem that only one data terminal can be installed simultaneously on one host in the prior art, so that multiple data terminals can be in the host Coexisting and installing on the other, does not affect each other, does not require frequent installation and uninstallation, and achieves a plug-and-play experience, which improves the user experience.
  • FIG. 1 is a flowchart of a method for installing a data terminal host software according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a USB serial number content according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a general implementation framework of an embodiment of the present invention.
  • FIG. 5 is a basic flowchart of upgrading and installing the same product according to an embodiment of the present invention.
  • FIG. 6 is a basic flowchart of a data terminal product entering an operation mode according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of a data terminal host software installation apparatus according to an embodiment of the present invention.
  • the embodiment of the present invention provides a data terminal host software installation method and device, and the technical solution of the embodiment of the present invention uses a coexistence installation strategy.
  • the host software of multiple data terminal products can be installed on the computer. It is not necessary to uninstall other products to install one product, and the host software of different products does not work with each other. Disturbance exists in the form of coexistence.
  • the host software of the same product is released in a timely manner. The new version is compatible with the old version. When the host software already installed on the computer is older, it is upgraded to the new version. Otherwise, no upgrade is required.
  • USB SerialNumber The serial number is a string of characters defined by the USB protocol and is an inherent property of the USB Device device.
  • the USB device When the USB device is inserted into the host, it is reported when enumerated, and thus serves as one of the interfaces on the host side to identify the device attributes. The content and length of the serial number can be customized to comply with the USB specification.
  • the USB serial number When the data terminal is inserted into the host, the USB serial number is reported, and the host software saves the USB serial number as the basis for matching the data terminal.
  • USB serial number content By identifying the USB serial number content, it is determined according to the product type information configured in the USB serial number whether it is mapped to the same product as the already installed host software. Determine whether the host software needs to be upgraded by the product version information in the serial number. In the installation mode, the data terminal matches the host software of the corresponding product and switches to the working mode, loads the driver, and starts the UI program.
  • FIG. 1 is a flowchart of a data terminal host software installation method according to an embodiment of the present invention.
  • a root step 101 is performed on a data terminal.
  • the host software identification information reported by the data terminal is obtained.
  • the product host identification information includes: a product information identifier used to identify different products, and a version information identifier used to identify an upgraded version of the same product.
  • the USB serial number of the data terminal can be used as a carrier of the host software identification information.
  • obtaining the host software identification information reported by the data terminal includes: After the connection with the data terminal, the USB serial number reported by the data terminal is obtained during the USB enumeration, and the host software identification information reported by the data terminal is obtained from the USB serial number.
  • the product type information (the above product information identifier) is used to indicate the product type to which the data terminal belongs.
  • different products refer to the USB.
  • the product type is different in the serial number.
  • the product version information (the above version information identifier) is used to indicate the version information of the data terminal host software, and the version information includes software version information installed on the host by the data terminal product such as the UI driver, and the data can be judged by comparing the product version information. Whether the host software of the terminal needs to be upgraded and installed.
  • the USB serial number can be recognized by the host in the USB protocol enumeration stage of the data terminal.
  • the USB Product ID refers to the product ID, and the USB serial number is compared.
  • the PID is also the attribute of the USB protocol. Reported to the host.
  • the PID is only 32bit, the resources are very limited, and the USB serial number can reach 127 bytes according to the definition of the USB specification, which can flexibly configure product information.
  • Microsoft's operating system will charge a signature fee for each PID. For a company, it will be a huge expense to identify a large number of data terminal products through a new application PID. Using a USB serial number is free and flexible.
  • Step 102 Install the host software corresponding to the data terminal according to the host software identification information, and save the correspondence between the host software identification information and the host software in a preset mapping relationship table.
  • the host software corresponding to the data terminal is installed according to the host software identification information, including: determining, according to the product information identifier in the host software identification information, whether the data terminal has not installed the corresponding host software, and if the determination is yes, installing and corresponding to the data terminal Host software; if the judgment is no, determine whether the host software of the data terminal needs to be upgraded according to the version information identifier in the host software identification information. If the upgrade is required, install an upgrade version of the host software corresponding to the data terminal; , then directly switch the data terminal to the working mode. After the data terminal is switched to the working mode, the mapping relationship table needs to be searched according to the host software identification information. And the host software identification information is called to the corresponding host software, and the user interface and driver corresponding to the host software are called and loaded.
  • the USB serial number is reported, and the host software saves the USB serial number as a basis for matching the data terminal.
  • the host software By identifying the content of the USB serial number, it is determined whether the host software is mapped to the same product according to the product information identifier configured in the USB serial number, and the version information identifier in the serial number is used to determine whether the host software needs to be upgraded.
  • the data terminal matches the host software of the corresponding product and switches to the working mode, loads the driver, and starts the UI program.
  • Step 1 Configure the host software identification information for managing the data terminal in the USB serial number.
  • Step 2 The data terminal and the host connect the USB serial number to the host during USB enumeration;
  • Step 3 the system reads the USB serial number content. And installing the host software according to the host software identification information in the USB serial number;
  • Step 4 The system switches the data terminal to the working mode, and loads the UI and the driver of the product according to the USB serial number.
  • the technical solution of the embodiment of the present invention aims to implement a data terminal coexistence installation scheme based on a USB serial number.
  • the solution establishes the mapping relationship between the data terminal and the host software by expanding the host software identification information of the data terminal on the USB serial number, thereby realizing the coexistence and installation of the multiple data terminals.
  • FIG. 3 is a schematic diagram of an overall implementation framework of the embodiment of the present invention. As shown in FIG. 3, the following processing is included: First, the host software identification information of the data terminal is configured in the firmware, and the product information identifier indicates different products, and the version information is identified by the version information.
  • FIG. 4 is a basic flowchart of upgrading and installing different products according to an embodiment of the present invention. As shown in FIG. 4, different product upgrade installations include the following processes:
  • Step 401 Start an installation mode of the data terminal.
  • Step 402 The data terminal configures host software identification information in the USB serial number.
  • Step 403 the data terminal is connected to the USB serial number of the device reported by the host in the USB enumeration phase;
  • Step 404 the host obtains the USB serial number reported by the data terminal;
  • Step 405 the host reads the host software identification information from the serial number to determine whether the data terminal has installed the host software, if the determination is yes, go to step 406, otherwise, go to step 407;
  • Step 406 If the data terminal is already installed, enter the same product upgrade or enter the working mode process;
  • Step 407 if the data terminal is not installed, install the host software of the product
  • Step 408 The host saves the USB serial number of the data terminal.
  • FIG. 5 is a basic flowchart of upgrading and installing different products according to an embodiment of the present invention. As shown in FIG. 5, the same product upgrade installation includes the following processing:
  • Step 501 Start an installation mode of the data terminal.
  • Step 502 The data terminal configures host software identification information in the USB serial number.
  • Step 503 The data terminal is connected to the USB serial number of the device reported by the host in the USB enumeration phase.
  • Step 504 The host acquires the USB serial number reported by the data terminal.
  • Step 505 The host reads the host software identification information from the serial number to determine that the data terminal has installed the host software.
  • Step 506 the host reads the host software identification information from the serial number to determine whether the version of the current data terminal is newer than the version already installed by the host. If the determination is no, go to step 507, otherwise, go to step 508;
  • Step 507 If the version is the same or the version installed by the host is newer, the operation is switched to the working mode.
  • Step 509 The host saves the USB serial number of the data terminal.
  • FIG. 6 is a basic flow chart of the data terminal product entering the working mode according to the embodiment of the present invention. As shown in FIG. 6, the data terminal product enters the working mode and includes the following processing:
  • Step 601 The host determines that the data terminal has been installed by using a USB serial number, and the version is the same as or updated with the version of the current data terminal.
  • Step 602 The host software sends a switching instruction to the data terminal, where the switching instruction may be a USB control pipeline instruction or a SCSI instruction;
  • Step 603 The data terminal is switched from the installation mode to the working mode, and the data terminal enumerates the working port, such as the network port, the Modem port, the AT port, the diagnosis port, etc., and the working port may be any combination of the ports;
  • Step 604 the host reads the USB serial number of the data terminal
  • Step 605 The host selects the host software matched by the data terminal according to the USB serial number, loads the working port driver, and invokes the corresponding ui.
  • the technical solution of the embodiment of the present invention establishes data terminal product information by performing innovative design on the USB serial number content of the terminal device.
  • An efficient method for coexistence based on USB serial number on the host is provided.
  • a data terminal host software installation method including the following: after the data terminal is connected to the host, the host software reports the host software identification information to the host; the data terminal passes the host according to the host The software identification information installs host software corresponding to the data terminal on the host.
  • the host software identification information includes: a product information identifier for identifying different products, and a version information identifier for identifying an upgrade version of the same product.
  • the USB serial number of the data terminal is used as the main The carrier of the machine software identification information.
  • FIG. 7 is a schematic structural diagram of a data terminal host software installation apparatus according to an embodiment of the present invention. As shown in FIG. 7, a data terminal according to an embodiment of the present invention is shown.
  • the host software installation device includes: an acquisition module 70, and an installation module 72. The respective modules of the embodiments of the present invention are described in detail below.
  • the obtaining module 70 is configured to obtain, after being connected to the data terminal, the host software identification information reported by the data terminal; the host software identification information includes: a product information identifier used to identify different products, and version information used to identify an upgraded version of the same product. logo.
  • the carrier of the host software identification information is a USB serial number of the data terminal.
  • the installation module 72 is configured to install the host software corresponding to the data terminal according to the host software identification information, and save the correspondence between the host software identification information and the host software in a preset mapping relationship table.
  • the installation module 72 is configured to: determine, according to the product information identifier in the host software identification information, whether the data terminal has not installed the corresponding host software, if the determination is yes, install the host software corresponding to the data terminal; if the determination is no, The version information identifier in the host software identification information determines whether the host software of the data terminal needs to be upgraded. If an upgrade is required, install an upgrade version of the host software corresponding to the data terminal. If the upgrade is not required, the data terminal is directly switched to the working mode.
  • the data terminal host software installation device further includes: a calling module configured to: after the data terminal switches to the working mode, search for a mapping relationship table according to the host software identification information, determine a host software corresponding to the host software identification information, invoke and load and The corresponding user interface and driver for the host software.
  • the obtaining module 70 is configured to: after connecting to the data terminal, obtain the USB serial number reported by the data terminal during the USB enumeration, and obtain the host software identification information reported by the data terminal from the USB serial number.
  • Each of the above units may be implemented by a central processing unit (CPU), a digital signal processor (DSP) or a Field-Programmable Gate Array (FPGA) in an electronic device.
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA Field-Programmable Gate Array
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment of a combination of software and hardware. Moreover, the invention can be embodied in the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer can execute the technical solution of the embodiment of the present invention, and establish a mapping relationship between the data terminal and the host software through the host software identification information of the data terminal, and solve the present problem.
  • the computer can execute the technical solution of the embodiment of the present invention, and establish a mapping relationship between the data terminal and the host software through the host software identification information of the data terminal, and solve the present problem.
  • only one data terminal problem can be installed on one host at the same time, so that multiple data terminals can be coexisted and installed on the host without affecting each other. It does not need frequent installation and uninstallation, and the plug-and-play experience is improved. User experience.
  • the spirit and scope of the invention Thus, it is intended that the present invention cover the modifications and modifications of the invention.

Abstract

A host software installation method and apparatus for a data terminal, wherein the method comprises: after the data terminal is connected, acquiring host software identification information reported by the data terminal; and installing host software corresponding to the data terminal according to the host software identification information, and saving a corresponding relationship between the host software identification information and the host software in a pre-set mapping relationship table. By means of the technical solution, a plurality of data terminals can be enabled to be installed concomitantly on a host without influencing each other and without the need of frequent installation and uninstallation.

Description

数据终端主机软件安装方法及装置、 计算 储介质 技术领域  Data terminal host software installation method and device, computing storage medium
本发明涉及计算机技术领域, 特别是涉及一种数据终端主机软件安装 方法及装置、 计算机存储介质。 背景技术  The present invention relates to the field of computer technologies, and in particular, to a data terminal host software installation method and apparatus, and a computer storage medium. Background technique
在现有技术中, 数据终端使用时首先要在主机上安装用户界面 (User Interface, 简称为 UI )和驱动等软件, 这些软件统称为主机软件。 主机软件 用来配置和驱动数据终端使其能够正常运行, 是一个先安装后使用的过程。 该过程概括为两种模式: 安装模式和工作模式。  In the prior art, when the data terminal is used, software such as a user interface (UI) and a driver are first installed on the host, and these softwares are collectively referred to as host software. The host software is used to configure and drive the data terminal to operate normally. It is a process of first installing and then using. The process is summarized in two modes: installation mode and working mode.
安装模式用来安装主机软件, 一般通过数据终端枚举的光盘中自带的 软件, 另外一种方式是将主机侧软件预安装到电脑。 安装完成后主机软件 或操作系统发指令给数据终端将终端从安装模式切换为工作模式。 工作模 式下数据终端会枚举包括网口, 诊断口, AT口, 等工作端口组合, 主机软 件通过工作端口与数据终端进行通信。  The installation mode is used to install the host software, usually through the software that is included in the CD-ROM enumerated by the data terminal. The other way is to pre-install the host-side software to the computer. After the installation is completed, the host software or the operating system issues a command to the data terminal to switch the terminal from the installation mode to the working mode. In the working mode, the data terminal enumerates the working port combination including the network port, the diagnosis port, the AT port, and the like, and the host software communicates with the data terminal through the working port.
不同产品类型的数据终端的根据产品的需求和设计, 其 UI的外观, 功 能以及端口驱动功能存在差异。 所以不同数据终端的产品需要安装该产品 对应的主机软件才能确保数据终端正确工作。 另外同一数据终端产品可能 会发布新的版本, 修复问题, 增加功能, 因此主机软件也存在新的版本升 级的情况。  Data terminals of different product types differ in their appearance, functions, and port driver functions depending on the product requirements and design. Therefore, the products of different data terminals need to install the corresponding host software to ensure that the data terminal works correctly. In addition, the same data terminal product may release a new version, fix the problem, increase the function, and therefore there is a new version upgrade of the host software.
传统的数据终端安装策略是互斥安装方式, 一台主机上只能同时安装 一款数据终端, 安装新的数据终端时需要将已经安装的终端卸载, 再进行 安装。 全球数据终端每年的销售量巨大。 各个国家, 地区, 运营商的数据 终端产品安装使用是一个非常复杂的多终端交叉使用环境。 传统的安装方 式需要反复的安装卸载, 降低了用户体验。 发明内容 The traditional data terminal installation strategy is a mutually exclusive installation mode. Only one data terminal can be installed on one host at the same time. When installing a new data terminal, the installed terminal needs to be uninstalled and then installed. The annual sales volume of global data terminals is huge. The installation and use of data terminal products of various countries, regions and operators is a very complicated multi-terminal cross-use environment. Traditional installer It requires repeated installation and uninstallation, which reduces the user experience. Summary of the invention
鉴于现有技术中一台主机上只能同时安装一款数据终端问题, 提出了 本发明以便提供一种数据终端主机软件安装方法及装置、 计算机存储介质。  In view of the problem that only one data terminal can be installed simultaneously on a host in the prior art, the present invention has been proposed to provide a data terminal host software installation method and apparatus, and a computer storage medium.
本发明实施例提供一种数据终端主机软件安装方法, 包括:  An embodiment of the present invention provides a data terminal host software installation method, including:
在与数据终端连接后, 获取数据终端上报的主机软件标识信息; 根据主机软件标识信息安装与数据终端相应的主机软件, 并将主机软 件标识信息与主机软件的对应关系保存在预先设置的映射关系表中。  After the data terminal is connected, the host software identification information reported by the data terminal is obtained; the host software corresponding to the data terminal is installed according to the host software identification information, and the correspondence between the host software identification information and the host software is saved in a preset mapping relationship. In the table.
优选地, 主机软件标识信息包括: 用于标识不同产品的产品信息标识、 以及用于标识同一产品升级版本的版本信息标识。  Preferably, the host software identification information includes: a product information identifier for identifying different products, and a version information identifier for identifying an upgrade version of the same product.
优选地, 根据主机软件标识信息安装与数据终端相应的主机软件包括: 根据主机软件标识信息中的产品信息标识判断数据终端是否还未安装 相应的主机软件, 如果判断为是, 则安装与数据终端相应的主机软件; 如 果判断为否, 则根据主机软件标识信息中的版本信息标识判断数据终端的 主机软件是否需要升级, 如果需要升级, 则安装与数据终端相应主机软件 的升级版本; 如果不需要升级, 则直接将数据终端切换到工作模式;  Preferably, installing the host software corresponding to the data terminal according to the host software identification information comprises: determining, according to the product information identifier in the host software identification information, whether the data terminal has not installed the corresponding host software, and if the determination is yes, installing and the data terminal Corresponding host software; if the judgment is no, determine whether the host software of the data terminal needs to be upgraded according to the version information identifier in the host software identification information, and if the upgrade is required, install an upgrade version of the host software corresponding to the data terminal; Upgrade, directly switch the data terminal to work mode;
优选地, 将数据终端切换到工作模式后, 进一步包括: 根据主机软件 标识信息查找映射关系表, 确定与主机软件标识信息相对应的主机软件, 调用并加载与主机软件相应的用户界面和驱动。  Preferably, after the data terminal is switched to the working mode, the method further includes: searching the mapping relationship table according to the host software identification information, determining the host software corresponding to the host software identification information, and calling and loading the user interface and the driver corresponding to the host software.
优选地, 将数据终端的 USB串号作为主机软件标识信息的载体。  Preferably, the USB serial number of the data terminal is used as a carrier of the host software identification information.
优选地, 在与数据终端连接后, 获取所述数据终端上报的主机软件标 识信息包括: 在与数据终端连接后, 在进行 USB枚举时获取数据终端上报 的 USB串号, 并从 USB串号中获取数据终端上报的主机软件标识信息。  Preferably, after the connection with the data terminal, acquiring the host software identification information reported by the data terminal includes: after connecting with the data terminal, acquiring the USB serial number reported by the data terminal when performing USB enumeration, and extracting the serial number from the USB Obtain the host software identification information reported by the data terminal.
本发明实施例还提供了一种数据终端主机软件安装装置, 包括: 获取模块, 配置为在与数据终端连接后, 获取数据终端上报的主机软 件标识信息; The embodiment of the present invention further provides a data terminal host software installation device, including: an obtaining module, configured to acquire a host soft reported by a data terminal after being connected to the data terminal Identification information;
安装模块, 配置为根据主机软件标识信息安装与数据终端相应的主机 软件, 并将主机软件标识信息与主机软件的对应关系保存在预先设置的映 射关系表中。  The installation module is configured to install the host software corresponding to the data terminal according to the host software identification information, and save the correspondence between the host software identification information and the host software in a preset mapping relationship table.
优选地, 产主机软件标识信息包括: 用于标识不同产品的产品信息标 识、 以及用于标识同一产品升级版本的版本信息标识。  Preferably, the production host software identification information comprises: a product information identifier for identifying different products, and a version information identifier for identifying an upgraded version of the same product.
优选地, 安装模块配置为: 根据主机软件标识信息中的产品信息标识 判断数据终端是否还未安装相应的主机软件, 如果判断为是, 则安装与数 据终端相应的主机软件; 如果判断为否, 则根据主机软件标识信息中的版 本信息标识判断数据终端的主机软件是否需要升级, 如果需要升级, 则安 装与数据终端相应主机软件的升级版本; 如果不需要升级, 则直接将数据 终端切换到工作模式;  Preferably, the installation module is configured to: determine, according to the product information identifier in the host software identification information, whether the data terminal has not installed the corresponding host software, and if the determination is yes, install the host software corresponding to the data terminal; if the determination is no, Then, according to the version information identifier in the host software identification information, it is determined whether the host software of the data terminal needs to be upgraded. If the upgrade is required, the upgrade version of the host software corresponding to the data terminal is installed; if the upgrade is not required, the data terminal is directly switched to work. Mode
优选地, 装置进一步包括: 调用模块, 配置为在数据终端切换到工作 模式后, 根据主机软件标识信息查找映射关系表, 确定与主机软件标识信 息向对应的主机软件, 调用并加载与主机软件相应的用户界面和驱动。  Preferably, the device further includes: a calling module configured to: after the data terminal switches to the working mode, search the mapping relationship table according to the host software identification information, determine the host software corresponding to the host software identification information, invoke and load the host software correspondingly User interface and driver.
优选地, 主机软件标识信息的载体为数据终端的 USB串号。  Preferably, the carrier of the host software identification information is a USB serial number of the data terminal.
优选地, 获取模块配置为: 在与数据终端连接后, 在进行 USB枚举时 获取数据终端上报的 USB串号,并从 USB串号中获取数据终端上报的主机 软件标识信息。  Preferably, the obtaining module is configured to: after connecting to the data terminal, obtain the USB serial number reported by the data terminal during USB enumeration, and obtain the host software identification information reported by the data terminal from the USB serial number.
本发明实施例还提供了一种数据终端主机软件安装方法, 包括: 数据 终端在与主机连接后, 向主机上报主机软件标识信息; 数据终端通过主机 根据主机软件标识信息在主机上安装与数据终端相应的主机软件。  The embodiment of the present invention further provides a data terminal host software installation method, including: after the data terminal is connected with the host, reporting the host software identification information to the host; the data terminal is installed on the host and the data terminal according to the host software identification information by the host. The corresponding host software.
优选地, 主机软件标识信息包括: 用于标识不同产品的产品信息标识、 以及用于标识同一产品升级版本的版本信息标识。  Preferably, the host software identification information includes: a product information identifier for identifying different products, and a version information identifier for identifying an upgrade version of the same product.
优选地, 将数据终端的 USB串号作为主机软件标识信息的载体。 本发明实施例还提供了一种计算机存储介质, 其中存储有计算机可执 行指令, 所述计算机可执行指令用于执行上述的方法。 Preferably, the USB serial number of the data terminal is used as a carrier of the host software identification information. Embodiments of the present invention also provide a computer storage medium in which computer executable instructions are stored, the computer executable instructions being used to perform the above method.
本发明实施例通过数据终端的主机软件标识信息建立数据终端与主机 软件的映射关系, 解决了现有技术中一台主机上只能同时安装一款数据终 端问题, 使多个数据终端能够在主机上共存安装, 互不影响, 不需要频繁 的安装卸载, 做到即插即用体验, 提高了用户的使用体验。 附图说明  The embodiment of the present invention establishes a mapping relationship between the data terminal and the host software by using the host software identification information of the data terminal, and solves the problem that only one data terminal can be installed simultaneously on one host in the prior art, so that multiple data terminals can be in the host Coexisting and installing on the other, does not affect each other, does not require frequent installation and uninstallation, and achieves a plug-and-play experience, which improves the user experience. DRAWINGS
图 1是本发明实施例的数据终端主机软件安装方法的流程图; 图 2是本发明实施例的 USB串号内容的示意图;  1 is a flowchart of a method for installing a data terminal host software according to an embodiment of the present invention; FIG. 2 is a schematic diagram of a USB serial number content according to an embodiment of the present invention;
图 3是本发明实施例的总体实现框架的示意图;  3 is a schematic diagram of a general implementation framework of an embodiment of the present invention;
图 4是本发明实施例的不同产品升级安装的基本流程图;  4 is a basic flowchart of upgrading and installing different products according to an embodiment of the present invention;
图 5是本发明实施例的同一产品升级安装的基本流程图;  FIG. 5 is a basic flowchart of upgrading and installing the same product according to an embodiment of the present invention; FIG.
图 6是本发明实施例的数据终端产品进入工作模式的基本流程图; 图 7是本发明实施例的数据终端主机软件安装装置的结构示意图。 实施方式  6 is a basic flowchart of a data terminal product entering an operation mode according to an embodiment of the present invention; and FIG. 7 is a schematic structural diagram of a data terminal host software installation apparatus according to an embodiment of the present invention. Implementation
下面将参照附图更详细地描述本公开的示例性实施例。 虽然附图中显 示了本公开的示例性实施例, 然而应当理解, 可以以各种形式实现本公开 而不应被这里阐述的实施例所限制。 相反, 提供这些实施例是为了能够更 透彻地理解本公开, 并且能够将本公开的范围完整的传达给本领域的技术 人员。  Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, it is understood that the present invention may be embodied in various forms and not limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be more fully understood.
为了解决现有技术中一台主机上只能同时安装一款数据终端问题, 本 发明实施例提供了一种数据终端主机软件安装方法及装置, 本发明实施例 的技术方案釆用共存的安装策略, 电脑上可以安装多个数据终端产品的主 机软件, 安装一个产品不需要卸载其他产品, 不同产品的主机软件互不干 扰, 是以共存的形式存在。 同一产品的主机软件发布时间有先后, 新的版 本兼容老的版本, 当电脑上已经安装的主机软件比较老则升级为新版本, 反之则不需要升级。 当该产品的主机软件安装完成, 插入该产品时, 需要 调用对应的主机软件,正确的配置和驱动数据终端。本发明实施例使用 USB 串号作为载体来实现数据终端与主机软件的映射关系。 USB SerialNumber 串号是 USB协议定义一串字符, 是 USB Device设备的固有属性。 在 USB 设备插入主机时枚举时上报, 从而作为主机侧的识别设备属性的接口之一。 串号的内容和长度在符合 USB规范的情况下可以进行定制。 数据终端插入 主机时上报 USB 串号, 主机软件将 USB 串号保存起来作为匹配数据终端 的依据。通过对 USB串号内容的识别,根据 USB串号中配置的产品类型信 息判断是否与已经安装的主机软件映射为同一产品。 通过串号中的产品版 本信息判断主机软件是否需要升级。 在安装模式下数据终端匹配对应产品 的主机软件并切换到工作模式, 加载驱动, 启动 UI程序。 In order to solve the problem that only one data terminal can be installed on one host in the prior art, the embodiment of the present invention provides a data terminal host software installation method and device, and the technical solution of the embodiment of the present invention uses a coexistence installation strategy. The host software of multiple data terminal products can be installed on the computer. It is not necessary to uninstall other products to install one product, and the host software of different products does not work with each other. Disturbance exists in the form of coexistence. The host software of the same product is released in a timely manner. The new version is compatible with the old version. When the host software already installed on the computer is older, it is upgraded to the new version. Otherwise, no upgrade is required. When the host software of the product is installed, when inserting the product, you need to call the corresponding host software to correctly configure and drive the data terminal. The embodiment of the invention uses the USB serial number as a carrier to implement the mapping relationship between the data terminal and the host software. USB SerialNumber The serial number is a string of characters defined by the USB protocol and is an inherent property of the USB Device device. When the USB device is inserted into the host, it is reported when enumerated, and thus serves as one of the interfaces on the host side to identify the device attributes. The content and length of the serial number can be customized to comply with the USB specification. When the data terminal is inserted into the host, the USB serial number is reported, and the host software saves the USB serial number as the basis for matching the data terminal. By identifying the USB serial number content, it is determined according to the product type information configured in the USB serial number whether it is mapped to the same product as the already installed host software. Determine whether the host software needs to be upgraded by the product version information in the serial number. In the installation mode, the data terminal matches the host software of the corresponding product and switches to the working mode, loads the driver, and starts the UI program.
以下结合附图以及实施例, 对本发明进行进一步详细说明。 应当理解, 此处所描述的实施例仅仅用以解释本发明, 并不限定本发明。  The present invention will be further described in detail below in conjunction with the drawings and embodiments. It is to be understood that the embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
方法实施例一  Method embodiment 1
根据本发明的实施例, 提供了一种数据终端主机软件安装方法, 图 1 是本发明实施例的数据终端主机软件安装方法的流程图, 如图 1 所示, 根 步骤 101, 在与数据终端连接后, 获取数据终端上报的主机软件标识信 息; 其中, 产主机软件标识信息包括: 用于标识不同产品的产品信息标识、 以及用于标识同一产品升级版本的版本信息标识。  According to an embodiment of the present invention, a data terminal host software installation method is provided. FIG. 1 is a flowchart of a data terminal host software installation method according to an embodiment of the present invention. As shown in FIG. 1, a root step 101 is performed on a data terminal. After the connection, the host software identification information reported by the data terminal is obtained. The product host identification information includes: a product information identifier used to identify different products, and a version information identifier used to identify an upgraded version of the same product.
优选地, 在本发明实施例中, 可以将数据终端的 USB串号作为主机软 件标识信息的载体。  Preferably, in the embodiment of the present invention, the USB serial number of the data terminal can be used as a carrier of the host software identification information.
在与数据终端连接后, 获取数据终端上报的主机软件标识信息包括: 在与数据终端连接后, 在进行 USB枚举时获取数据终端上报的 USB串号, 并从 USB串号中获取数据终端上报的主机软件标识信息。 After the connection with the data terminal, obtaining the host software identification information reported by the data terminal includes: After the connection with the data terminal, the USB serial number reported by the data terminal is obtained during the USB enumeration, and the host software identification information reported by the data terminal is obtained from the USB serial number.
图 2是本发明实施例的 USB串号内容的示意图, 如图 2, 产品类型信 息 (上述产品信息标识)用于表示数据终端所属的产品类型, 在本发明实 施例中不同产品是指在 USB串号中产品类型不同。 产品版本信息(上述版 本信息标识)用于表示数据终端主机软件的版本信息, 该版本信息包含包 括 UI驱动等数据终端产品在主机上安装的软件版本信息, 通过该产品版本 信息的比较能够判断数据终端的主机软件是否需要升级安装。  2 is a schematic diagram of the USB serial number content according to the embodiment of the present invention. As shown in FIG. 2, the product type information (the above product information identifier) is used to indicate the product type to which the data terminal belongs. In the embodiment of the present invention, different products refer to the USB. The product type is different in the serial number. The product version information (the above version information identifier) is used to indicate the version information of the data terminal host software, and the version information includes software version information installed on the host by the data terminal product such as the UI driver, and the data can be judged by comparing the product version information. Whether the host software of the terminal needs to be upgraded and installed.
USB串号在数据终端的 USB协议枚举阶段就能够被主机识别效率比较 高, USB的 Product ID ( PID )是指产品 ID, 和 USB串号比较, PID也是 USB协议的属性, 在 USB枚举上报给主机。 但是 PID只有 32bit, 资源非 常有限, 而 USB串号根据 USB规范的定义可以达到 127字节,可以灵活的 配置产品信息。 并且微软的操作系统上对于每一个 PID会收取签名费用, 对于一个公司而言, 通过新申请 PID来标识大量的数据终端产品, 将是一 笔巨额费用。 而使用 USB串号是免费的并且可以灵活配置。  The USB serial number can be recognized by the host in the USB protocol enumeration stage of the data terminal. The USB Product ID (PID) refers to the product ID, and the USB serial number is compared. The PID is also the attribute of the USB protocol. Reported to the host. However, the PID is only 32bit, the resources are very limited, and the USB serial number can reach 127 bytes according to the definition of the USB specification, which can flexibly configure product information. And Microsoft's operating system will charge a signature fee for each PID. For a company, it will be a huge expense to identify a large number of data terminal products through a new application PID. Using a USB serial number is free and flexible.
步骤 102,根据主机软件标识信息安装与数据终端相应的主机软件, 并 将主机软件标识信息与主机软件的对应关系保存在预先设置的映射关系表 中。  Step 102: Install the host software corresponding to the data terminal according to the host software identification information, and save the correspondence between the host software identification information and the host software in a preset mapping relationship table.
其中, 根据主机软件标识信息安装与数据终端相应的主机软件包括: 根据主机软件标识信息中的产品信息标识判断数据终端是否还未安装相应 的主机软件, 如果判断为是, 则安装与数据终端相应的主机软件; 如果判 断为否, 则根据主机软件标识信息中的版本信息标识判断数据终端的主机 软件是否需要升级, 如果需要升级, 则安装与数据终端相应主机软件的升 级版本; 如果不需要升级, 则直接将数据终端切换到工作模式。 在将数据 终端切换到工作模式后, 需要根据主机软件标识信息查找映射关系表, 确 定与主机软件标识信息向对应的主机软件, 调用并加载与主机软件相应的 用户界面和驱动。 The host software corresponding to the data terminal is installed according to the host software identification information, including: determining, according to the product information identifier in the host software identification information, whether the data terminal has not installed the corresponding host software, and if the determination is yes, installing and corresponding to the data terminal Host software; if the judgment is no, determine whether the host software of the data terminal needs to be upgraded according to the version information identifier in the host software identification information. If the upgrade is required, install an upgrade version of the host software corresponding to the data terminal; , then directly switch the data terminal to the working mode. After the data terminal is switched to the working mode, the mapping relationship table needs to be searched according to the host software identification information. And the host software identification information is called to the corresponding host software, and the user interface and driver corresponding to the host software are called and loaded.
从上述描述可以看出, 数据终端插入主机后上报 USB 串号, 主机软件 将 USB串号保存起来作为匹配数据终端的依据。通过对 USB串号内容的识 别, 根据 USB串号中配置的产品信息标识判断是否与已经安装的主机软件 映射为同一产品, 通过串号中的版本信息标识判断主机软件是否需要升级。 在安装模式下数据终端匹配对应产品的主机软件并切换到工作模式, 加载 驱动, 启动 UI程序。  As can be seen from the above description, after the data terminal is inserted into the host, the USB serial number is reported, and the host software saves the USB serial number as a basis for matching the data terminal. By identifying the content of the USB serial number, it is determined whether the host software is mapped to the same product according to the product information identifier configured in the USB serial number, and the version information identifier in the serial number is used to determine whether the host software needs to be upgraded. In the installation mode, the data terminal matches the host software of the corresponding product and switches to the working mode, loads the driver, and starts the UI program.
本发明实施例的技术方案包括如下处理步骤:  The technical solution of the embodiment of the present invention includes the following processing steps:
步骤 1, 配置 USB串号中用于管理数据终端的主机软件识别信息; 步骤 2, 数据终端与主机连接在 USB枚举时将 USB串号上报给主机; 步骤 3, 系统读取 USB串号内容并根据 USB串号中的主机软件识别信 息安装主机软件;  Step 1: Configure the host software identification information for managing the data terminal in the USB serial number. Step 2: The data terminal and the host connect the USB serial number to the host during USB enumeration; Step 3, the system reads the USB serial number content. And installing the host software according to the host software identification information in the USB serial number;
步骤 4, 系统将数据终端切换为工作模式, 根据 USB 串号调用加载该 产品的 UI和驱动。  Step 4: The system switches the data terminal to the working mode, and loads the UI and the driver of the product according to the USB serial number.
本发明实施例技术方案的目的在于基于 USB串号实现数据终端共存安 装方案。 该方案通过在 USB串号上扩充数据终端的主机软件识别信息, 建 立数据终端与主机软件的映射关系, 实现多数据终端共存安装。  The technical solution of the embodiment of the present invention aims to implement a data terminal coexistence installation scheme based on a USB serial number. The solution establishes the mapping relationship between the data terminal and the host software by expanding the host software identification information of the data terminal on the USB serial number, thereby realizing the coexistence and installation of the multiple data terminals.
以下结合附图, 对本发明实施例的上述技术方案进行详细说明。 图 3 是本发明实施例的总体实现框架的示意图, 如图 3 所述, 包括如下处理: 首先将数据终端的主机软件标识信息在 Firmware中配置, 通过产品信息标 识表示不同产品, 通过版本信息标识表示同一产品的升级版本; 终端连接 主机在 USB枚举阶段上报 USB设备串号;主机获取产品上报的 USB串号, 从串号中读取产品安装信息进行判断; 如果是不同产品则进行共存安装; 如果是同一产品则进行升级安装; 如果该产品已经安装则切换为工作模式。 图 4是本发明实施例的不同产品升级安装的基本流程图, 如图 4所示, 不同产品升级安装包括如下处理: The above technical solutions of the embodiments of the present invention are described in detail below with reference to the accompanying drawings. 3 is a schematic diagram of an overall implementation framework of the embodiment of the present invention. As shown in FIG. 3, the following processing is included: First, the host software identification information of the data terminal is configured in the firmware, and the product information identifier indicates different products, and the version information is identified by the version information. Indicates the upgraded version of the same product; the terminal connects the host to report the USB device serial number in the USB enumeration phase; the host obtains the USB serial number reported by the product, reads the product installation information from the serial number to judge; if it is a different product, performs coexistence installation ; If it is the same product, upgrade it; if it is already installed, switch to working mode. FIG. 4 is a basic flowchart of upgrading and installing different products according to an embodiment of the present invention. As shown in FIG. 4, different product upgrade installations include the following processes:
步骤 401, 启动数据终端的安装模式;  Step 401: Start an installation mode of the data terminal.
步骤 402, 数据终端配置 USB串号中的主机软件标识信息;  Step 402: The data terminal configures host software identification information in the USB serial number.
步骤 403,数据终端连接主机在 USB枚举阶段上报的设备的 USB串号; 步骤 404, 主机获取数据终端上报的 USB串号;  Step 403, the data terminal is connected to the USB serial number of the device reported by the host in the USB enumeration phase; Step 404, the host obtains the USB serial number reported by the data terminal;
步骤 405,主机从串号中读取主机软件标识信息判断数据终端是否已经 安装主机软件, 如果判断为是, 执行步骤 406, 否则, 执行步骤 407;  Step 405, the host reads the host software identification information from the serial number to determine whether the data terminal has installed the host software, if the determination is yes, go to step 406, otherwise, go to step 407;
步骤 406,如果该数据终端已经安装则进入同一产品升级或者进入工作 模式流程;  Step 406: If the data terminal is already installed, enter the same product upgrade or enter the working mode process;
步骤 407, 如果该数据终端没有安装则安装产品的主机软件;  Step 407, if the data terminal is not installed, install the host software of the product;
步骤 408, 主机将该数据终端的 USB串号保存起来。  Step 408: The host saves the USB serial number of the data terminal.
图 5是本发明实施例的不同一产品升级安装的基本流程图, 如图 5所 示, 同一产品升级安装包括如下处理:  FIG. 5 is a basic flowchart of upgrading and installing different products according to an embodiment of the present invention. As shown in FIG. 5, the same product upgrade installation includes the following processing:
步骤 501, 启动数据终端的安装模式;  Step 501: Start an installation mode of the data terminal.
步骤 502, 数据终端配置 USB串号中的主机软件标识信息;  Step 502: The data terminal configures host software identification information in the USB serial number.
步骤 503,数据终端连接主机在 USB枚举阶段上报的设备的 USB串号; 步骤 504, 主机获取数据终端上报的 USB串号;  Step 503: The data terminal is connected to the USB serial number of the device reported by the host in the USB enumeration phase. Step 504: The host acquires the USB serial number reported by the data terminal.
步骤 505,主机从串号中读取主机软件标识信息判断数据终端已经安装 主机软件  Step 505: The host reads the host software identification information from the serial number to determine that the data terminal has installed the host software.
步骤 506,主机从串号中读取主机软件标识信息判断当前数据终端的版 本与主机已经安装的版本相比是否较新, 如果判断为否, 执行步骤 507, 否 则, 执行步骤 508;  Step 506, the host reads the host software identification information from the serial number to determine whether the version of the current data terminal is newer than the version already installed by the host. If the determination is no, go to step 507, otherwise, go to step 508;
步骤 507, 如果版本相同或主机安装的版本较新则切换进入工作模式; 步骤 508, 如果当前数据终端的版本较新, 则卸载该数据终端老版本的 主机软件, 升级为该数据终端中保存的新版本的主机软件; Step 507: If the version is the same or the version installed by the host is newer, the operation is switched to the working mode. Step 508: If the current version of the data terminal is newer, uninstall the old version of the data terminal. Host software, upgraded to a new version of the host software saved in the data terminal;
步骤 509, 主机将该数据终端的 USB串号保存起来。  Step 509: The host saves the USB serial number of the data terminal.
图 6是本发明实施例的数据终端产品进入工作模式的基本流程图, 如 图 6所示, 数据终端产品进入工作模式包括如下处理:  6 is a basic flow chart of the data terminal product entering the working mode according to the embodiment of the present invention. As shown in FIG. 6, the data terminal product enters the working mode and includes the following processing:
步骤 601, 主机通过 USB 串号判断已经安装了该数据终端, 且版本与 当前数据终端的版本相同或者更新;  Step 601: The host determines that the data terminal has been installed by using a USB serial number, and the version is the same as or updated with the version of the current data terminal.
步骤 602, 主机软件向数据终端下发切换指令, 其中, 切换指令可以是 USB控制管道指令或者 SCSI指令;  Step 602: The host software sends a switching instruction to the data terminal, where the switching instruction may be a USB control pipeline instruction or a SCSI instruction;
步骤 603,数据终端从安装模式切换为工作模式, 数据终端枚举工作端 口, 如网口、 Modem口、 AT口、 诊断口等, 工作端口可以是这些端口的任 意组合;  Step 603: The data terminal is switched from the installation mode to the working mode, and the data terminal enumerates the working port, such as the network port, the Modem port, the AT port, the diagnosis port, etc., and the working port may be any combination of the ports;
步骤 604, 主机读取该数据终端的 USB串号;  Step 604, the host reads the USB serial number of the data terminal;
步骤 605, 主机根据 USB 串号选择该数据终端匹配的主机软件, 加载 工作端口驱动, 并调用对应的 ui。  Step 605: The host selects the host software matched by the data terminal according to the USB serial number, loads the working port driver, and invokes the corresponding ui.
本发明实施例的技术方案通过对终端设备的 USB串号内容进行创新设 计, 建立了数据终端产品信息。 提供了一种在主机上基于 USB串号共存安 装的有效方法。 增强了用户的安装体验。  The technical solution of the embodiment of the present invention establishes data terminal product information by performing innovative design on the USB serial number content of the terminal device. An efficient method for coexistence based on USB serial number on the host is provided. Enhanced user installation experience.
方法实施例二  Method embodiment two
根据本发明的实施例, 提供了一种数据终端主机软件安装方法, 包括 如下处理: 数据终端在与主机连接后, 向所述主机上报主机软件标识信息; 数据终端通过所述主机根据所述主机软件标识信息在所述主机上安装与所 述数据终端相应的主机软件。  According to an embodiment of the present invention, a data terminal host software installation method is provided, including the following: after the data terminal is connected to the host, the host software reports the host software identification information to the host; the data terminal passes the host according to the host The software identification information installs host software corresponding to the data terminal on the host.
其中, 所述主机软件标识信息包括: 用于标识不同产品的产品信息标 识、 以及用于标识同一产品升级版本的版本信息标识。  The host software identification information includes: a product information identifier for identifying different products, and a version information identifier for identifying an upgrade version of the same product.
在本发明实施例中, 优选地, 将所述数据终端的 USB串号作为所述主 机软件标识信息的载体。 In the embodiment of the present invention, preferably, the USB serial number of the data terminal is used as the main The carrier of the machine software identification information.
本发明实施例上述处理的描述可以参照方法实施例一的相应内容进行 理解, 在此不再赘述。  The description of the foregoing processing in the embodiment of the present invention can be understood by referring to the corresponding content in the first embodiment of the method, and details are not described herein again.
装置实施例  Device embodiment
根据本发明的实施例, 提供了一种数据终端主机软件安装装置, 图 7 是本发明实施例的数据终端主机软件安装装置的结构示意图, 如图 7所示, 根据本发明实施例的数据终端主机软件安装装置包括: 获取模块 70、 以及 安装模块 72, 以下对本发明实施例的各个模块进行详细的说明。  According to an embodiment of the present invention, a data terminal host software installation apparatus is provided, and FIG. 7 is a schematic structural diagram of a data terminal host software installation apparatus according to an embodiment of the present invention. As shown in FIG. 7, a data terminal according to an embodiment of the present invention is shown. The host software installation device includes: an acquisition module 70, and an installation module 72. The respective modules of the embodiments of the present invention are described in detail below.
获取模块 70, 配置为在与数据终端连接后, 获取数据终端上报的主机 软件标识信息; 主机软件标识信息包括: 用于标识不同产品的产品信息标 识、 以及用于标识同一产品升级版本的版本信息标识。 优选地, 主机软件 标识信息的载体为数据终端的 USB串号。  The obtaining module 70 is configured to obtain, after being connected to the data terminal, the host software identification information reported by the data terminal; the host software identification information includes: a product information identifier used to identify different products, and version information used to identify an upgraded version of the same product. Logo. Preferably, the carrier of the host software identification information is a USB serial number of the data terminal.
安装模块 72, 配置为根据主机软件标识信息安装与数据终端相应的主 机软件, 并将主机软件标识信息与主机软件的对应关系保存在预先设置的 映射关系表中。  The installation module 72 is configured to install the host software corresponding to the data terminal according to the host software identification information, and save the correspondence between the host software identification information and the host software in a preset mapping relationship table.
安装模块 72配置为: 根据主机软件标识信息中的产品信息标识判断数 据终端是否还未安装相应的主机软件, 如果判断为是, 则安装与数据终端 相应的主机软件; 如果判断为否, 则根据主机软件标识信息中的版本信息 标识判断数据终端的主机软件是否需要升级, 如果需要升级, 则安装与数 据终端相应主机软件的升级版本; 如果不需要升级, 则直接将数据终端切 换到工作模式。  The installation module 72 is configured to: determine, according to the product information identifier in the host software identification information, whether the data terminal has not installed the corresponding host software, if the determination is yes, install the host software corresponding to the data terminal; if the determination is no, The version information identifier in the host software identification information determines whether the host software of the data terminal needs to be upgraded. If an upgrade is required, install an upgrade version of the host software corresponding to the data terminal. If the upgrade is not required, the data terminal is directly switched to the working mode.
该数据终端主机软件安装装置进一步包括: 调用模块, 配置为在数据 终端切换到工作模式后, 根据主机软件标识信息查找映射关系表, 确定与 主机软件标识信息相对应的主机软件, 调用并加载与主机软件相应的用户 界面和驱动。 获取模块 70配置为: 在与数据终端连接后, 在进行 USB枚举时获取 数据终端上报的 USB串号,并从 USB串号中获取数据终端上报的主机软件 标识信息。 The data terminal host software installation device further includes: a calling module configured to: after the data terminal switches to the working mode, search for a mapping relationship table according to the host software identification information, determine a host software corresponding to the host software identification information, invoke and load and The corresponding user interface and driver for the host software. The obtaining module 70 is configured to: after connecting to the data terminal, obtain the USB serial number reported by the data terminal during the USB enumeration, and obtain the host software identification information reported by the data terminal from the USB serial number.
上述各单元可以由电子设备中的中央处理器( Central Processing Unit, CPU ), 数字信号处理器 (Digital Signal Processor, DSP )或可编程逻辑阵 列 (Field - Programmable Gate Array, FPGA ) 实现。  Each of the above units may be implemented by a central processing unit (CPU), a digital signal processor (DSP) or a Field-Programmable Gate Array (FPGA) in an electronic device.
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产品。 因此, 本发明可釆用硬件实施例、 软件实施例、 或结 合软件和硬件方面的实施例的形式。 而且, 本发明可釆用在一个或多个其 中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器和光学存储器等 )上实施的计算机程序产品的形式。  Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment of a combination of software and hardware. Moreover, the invention can be embodied in the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序 产品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程 图和 /或方框图中的每一流程和 /或方框、以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使得 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功 能的装置。  The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart and/or block diagrams, and combinations of flow and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a general purpose computer, a special purpose computer, an embedded processor or other programmable data processing device processor to produce a machine such that a flow or a block diagram of a flow or a block diagram or A device that has multiple functions specified in the box.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。  The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机 实现的处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功 能的步骤。 These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on the computer or other programmable device to produce the computer The processing is implemented such that instructions executed on a computer or other programmable device provide steps for implementing the functions specified in one or more blocks of the flowchart or in a block or blocks of the flowchart.
本发明实施例还提供了一种计算机存储介质, 其中存储有计算机可执 借助于本发明实施例的技术方案, 通过数据终端的主机软件标识信息 建立数据终端与主机软件的映射关系, 解决了现有技术中一台主机上只能 同时安装一款数据终端问题, 使多个数据终端能够在主机上共存安装, 互 不影响, 不需要频繁的安装卸载, 做到即插即用体验, 提高了用户的使用 体验。 本发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权 利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在 内。  The embodiment of the present invention further provides a computer storage medium, wherein the computer can execute the technical solution of the embodiment of the present invention, and establish a mapping relationship between the data terminal and the host software through the host software identification information of the data terminal, and solve the present problem. In a technology, only one data terminal problem can be installed on one host at the same time, so that multiple data terminals can be coexisted and installed on the host without affecting each other. It does not need frequent installation and uninstallation, and the plug-and-play experience is improved. User experience. The spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention

Claims

权利要求书 claims
1、 一种数据终端主机软件安装方法, 其中, 该方法包括: 1. A data terminal host software installation method, wherein the method includes:
在与数据终端连接后, 获取所述数据终端上报的主机软件标识信息; 根据所述主机软件标识信息安装与所述数据终端相应的主机软件, 并 将所述主机软件标识信息与所述主机软件的对应关系保存在预先设置的映 射关系表中。 After connecting to the data terminal, obtain the host software identification information reported by the data terminal; install the host software corresponding to the data terminal according to the host software identification information, and combine the host software identification information with the host software The corresponding relationship is stored in the preset mapping relationship table.
2、 如权利要求 1所述的方法, 其中, 所述主机软件标识信息包括: 用 于标识不同产品的产品信息标识、 以及用于标识同一产品升级版本的版本 信息标识。 2. The method of claim 1, wherein the host software identification information includes: a product information identification used to identify different products, and a version information identification used to identify an upgraded version of the same product.
3、 如权利要求 2所述的方法, 其中, 根据所述主机软件标识信息安装 与所述数据终端相应的主机软件包括: 3. The method of claim 2, wherein installing the host software corresponding to the data terminal according to the host software identification information includes:
根据所述主机软件标识信息中的产品信息标识判断所述数据终端是否 还未安装相应的主机软件, 如果判断为是, 则安装与所述数据终端相应的 主机软件; 如果判断为否, 则根据所述主机软件标识信息中的版本信息标 识判断所述数据终端的主机软件是否需要升级, 如果需要升级, 则安装与 所述数据终端相应主机软件的升级版本; 如果不需要升级, 则直接将所述 数据终端切换到工作模式。 Determine whether the data terminal has not installed the corresponding host software according to the product information identification in the host software identification information. If the judgment is yes, then install the host software corresponding to the data terminal; if the judgment is no, then according to The version information identifier in the host software identification information determines whether the host software of the data terminal needs to be upgraded. If it needs to be upgraded, install an upgraded version of the host software corresponding to the data terminal; if it does not need to be upgraded, directly upgrade the host software. The above data terminal switches to working mode.
4、 如权利要求 3所述的方法, 其中, 将所述数据终端切换到工作模式 后, 该方法还包括: 根据所述主机软件标识信息查找所述映射关系表, 确 定与所述主机软件标识信息相对应的主机软件, 调用并加载与所述主机软 件相应的用户界面和驱动。 4. The method of claim 3, wherein, after switching the data terminal to the working mode, the method further includes: searching the mapping relationship table according to the host software identification information, and determining the mapping relationship with the host software identification information. The host software corresponding to the information calls and loads the user interface and driver corresponding to the host software.
5、 如权利要求 1 至 4任一项所述的方法, 其中, 将所述数据终端的 USB串号作为所述主机软件标识信息的载体。 5. The method according to any one of claims 1 to 4, wherein the USB serial number of the data terminal is used as the carrier of the host software identification information.
6、 如权利要求 5所述的方法, 其中, 在与数据终端连接后, 获取所述 数据终端上报的主机软件标识信息包括:在与数据终端连接后,在进行 USB 枚举时获取所述数据终端上报的 USB串号,并从所述 USB串号中获取所述 数据终端上报的主机软件标识信息。 6. The method of claim 5, wherein, after connecting to the data terminal, obtaining the host software identification information reported by the data terminal includes: after connecting to the data terminal, performing USB During enumeration, the USB serial number reported by the data terminal is obtained, and the host software identification information reported by the data terminal is obtained from the USB serial number.
7、 一种数据终端主机软件安装装置, 其中, 该装置包括: 7. A data terminal host software installation device, wherein the device includes:
获取模块, 配置为在与数据终端连接后, 获取所述数据终端上报的主 机软件标识信息; The acquisition module is configured to acquire the host software identification information reported by the data terminal after connecting to the data terminal;
安装模块, 配置为根据所述主机软件标识信息安装与所述数据终端相 应的主机软件, 并将所述主机软件标识信息与所述主机软件的对应关系保 存在预先设置的映射关系表中。 The installation module is configured to install the host software corresponding to the data terminal according to the host software identification information, and save the corresponding relationship between the host software identification information and the host software in a preset mapping relationship table.
8、 如权利要求 7所述的装置, 其中, 所述主机软件标识信息包括: 用 于标识不同产品的产品信息标识、 以及用于标识同一产品升级版本的版本 信息标识。 8. The device of claim 7, wherein the host software identification information includes: a product information identification used to identify different products, and a version information identification used to identify an upgraded version of the same product.
9、 如权利要求 8所述的装置, 其中, 安装模块配置为: 根据所述主机 软件标识信息中的产品信息标识判断所述数据终端是否还未安装相应的主 机软件, 如果判断为是, 则安装与所述数据终端相应的主机软件; 如果判 断为否, 则根据所述主机软件标识信息中的版本信息标识判断所述数据终 端的主机软件是否需要升级, 如果需要升级, 则安装与所述数据终端相应 主机软件的升级版本; 如果不需要升级, 则直接将所述数据终端切换到工 作模式。 9. The device according to claim 8, wherein the installation module is configured to: determine whether the data terminal has not installed the corresponding host software according to the product information identification in the host software identification information, and if the determination is yes, then Install the host software corresponding to the data terminal; if the judgment is no, determine whether the host software of the data terminal needs to be upgraded according to the version information identification in the host software identification information. If it needs to be upgraded, install the host software corresponding to the data terminal. An upgraded version of the corresponding host software of the data terminal; if no upgrade is required, directly switch the data terminal to the working mode.
10、 如权利要求 9所述的装置, 其中, 该装置还包括: 调用模块, 配 置为在所述数据终端切换到工作模式后, 根据所述主机软件标识信息查找 所述映射关系表, 确定与所述主机软件标识信息相对应的主机软件, 调用 并加载与所述主机软件相应的用户界面和驱动。 10. The device according to claim 9, wherein the device further includes: a calling module configured to search the mapping relationship table according to the host software identification information after the data terminal switches to the working mode, and determine the relationship between The host software corresponding to the host software identification information calls and loads the user interface and driver corresponding to the host software.
11、 如权利要求 7至 10中任一项所述的装置, 其中, 所述主机软件标 识信息的载体为所述数据终端的 USB串号。 11. The device according to any one of claims 7 to 10, wherein the carrier of the host software identification information is the USB serial number of the data terminal.
12、 如权利要求 11所述的装置, 其中, 所述获取模块配置为: 在与数 据终端连接后,在进行 USB枚举时获取所述数据终端上报的 USB串号,并 从所述 USB串号中获取所述数据终端上报的主机软件标识信息。 12. The device according to claim 11, wherein the acquisition module is configured to: After the data terminal is connected, the USB serial number reported by the data terminal is obtained during USB enumeration, and the host software identification information reported by the data terminal is obtained from the USB serial number.
13、 一种数据终端主机软件安装方法, 其中, 该方法包括: 13. A data terminal host software installation method, wherein the method includes:
数据终端在与主机连接后, 向所述主机上报主机软件标识信息; 数据终端通过所述主机根据所述主机软件标识信息在所述主机上安装 与所述数据终端相应的主机软件。 After the data terminal is connected to the host, it reports the host software identification information to the host; the data terminal installs the host software corresponding to the data terminal on the host according to the host software identification information through the host.
14、 如权利要求 13所述的方法, 其中, 所述主机软件标识信息包括: 用于标识不同产品的产品信息标识、 以及用于标识同一产品升级版本的版 本信息标识。 14. The method of claim 13, wherein the host software identification information includes: a product information identification used to identify different products, and a version information identification used to identify an upgraded version of the same product.
15、 如权利要求 13或 14述的方法, 其中, 将所述数据终端的 USB串 号作为所述主机软件标识信息的载体。 15. The method according to claim 13 or 14, wherein the USB serial number of the data terminal is used as the carrier of the host software identification information.
16、 一种计算机存储介质, 其中存储有计算机可执行指令, 所述计算 机可执行指令用于执行所述权利要求 1至 6、权利要求 13至 15任一项所述 的方法。 16. A computer storage medium in which computer-executable instructions are stored, and the computer-executable instructions are used to execute the method described in any one of claims 1 to 6 and 13 to 15.
PCT/CN2014/079173 2014-02-13 2014-06-04 Host software installation method and apparatus for data terminal, and computer storage medium WO2015120675A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410050753.3A CN104850413A (en) 2014-02-13 2014-02-13 Method and apparatus for installing host software of data terminal
CN201410050753.3 2014-02-13

Publications (1)

Publication Number Publication Date
WO2015120675A1 true WO2015120675A1 (en) 2015-08-20

Family

ID=53799550

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/079173 WO2015120675A1 (en) 2014-02-13 2014-06-04 Host software installation method and apparatus for data terminal, and computer storage medium

Country Status (2)

Country Link
CN (1) CN104850413A (en)
WO (1) WO2015120675A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354603B (en) * 2016-08-31 2018-11-13 福建联迪商用设备有限公司 Solve the occupied method in the ports ADB and its system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226482A (en) * 2008-02-01 2008-07-23 北京创毅视讯科技有限公司 USB equipment which driver is not released by Microsoft as well as installation method thereof
CN101520757A (en) * 2009-04-07 2009-09-02 深圳华为通信技术有限公司 Equipment driving method, equipment driving device and communication system
CN102222053A (en) * 2011-06-20 2011-10-19 迈奔灵动科技(北京)有限公司 Drive identification method and system
CN202120249U (en) * 2011-06-20 2012-01-18 迈奔灵动科技(北京)有限公司 Driving recognition system
CN103369105A (en) * 2012-03-27 2013-10-23 沈新莉 Mobile phone assistant software automatic starting method and mobile phone assistant software automatic starting method system
CN103365684A (en) * 2012-04-04 2013-10-23 哈曼贝克自动系统股份有限公司 Updating method and multi-domain embedded system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5264391B2 (en) * 2008-09-30 2013-08-14 キヤノン株式会社 Information processing apparatus and installation method
CN202736023U (en) * 2012-05-23 2013-02-13 北京鼎开互联信息技术有限公司 In-batch asynchronous intelligent terminal software maintenance equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226482A (en) * 2008-02-01 2008-07-23 北京创毅视讯科技有限公司 USB equipment which driver is not released by Microsoft as well as installation method thereof
CN101520757A (en) * 2009-04-07 2009-09-02 深圳华为通信技术有限公司 Equipment driving method, equipment driving device and communication system
CN102222053A (en) * 2011-06-20 2011-10-19 迈奔灵动科技(北京)有限公司 Drive identification method and system
CN202120249U (en) * 2011-06-20 2012-01-18 迈奔灵动科技(北京)有限公司 Driving recognition system
CN103369105A (en) * 2012-03-27 2013-10-23 沈新莉 Mobile phone assistant software automatic starting method and mobile phone assistant software automatic starting method system
CN103365684A (en) * 2012-04-04 2013-10-23 哈曼贝克自动系统股份有限公司 Updating method and multi-domain embedded system

Also Published As

Publication number Publication date
CN104850413A (en) 2015-08-19

Similar Documents

Publication Publication Date Title
US8171502B2 (en) Methods, devices and computer program products for automatically installing device drivers from a peripheral device onto a host computer
US9563442B2 (en) Baseboard management controller and method of loading firmware
US20080126628A1 (en) Methods, devices and computer program products for automatically providing an alternate usb configuration of a usb compliant peripheral device for exposure to a host computer
US9983791B2 (en) System management controller and method of configuration file backup and recovery
WO2011127845A2 (en) Method, system and terminal for system update between mobile communication terminals
TW201409238A (en) Mode switch method of electronic device and associated electronic device
CN101937351A (en) Method and system for automatically installing application software
CN103365688A (en) Method for automatic installation and synchronization of software between Android intelligent devices
WO2010115366A1 (en) Method, device and communication system for driving equipment
CN104572564A (en) Method for realizing communication of Android mobile equipment and USB OTG (On-The-Go) host computer
TW201430561A (en) System and method of starting baseboard management controller
WO2015074435A1 (en) Method and apparatus for updating firmware of mobile terminal
CN103970569A (en) Server BIOS offline upgrading method
WO2014026547A1 (en) Active usb device and switching method for operating mode thereof
WO2015062217A1 (en) Connection processing method and device for peripheral in virtual desktop system
WO2017197900A1 (en) Usb switching method, device, and system
TW201602911A (en) A bridge module for updating basic input/output system and updating method thereof
RU2009105127A (en) CHANGES IN THE CONDITION OF THE ENVIRONMENT FOR CHANGE OF FUNCTIONAL CAPABILITIES
US9465597B2 (en) System for operating a device as a storage device and a modem device
EP2990956B1 (en) Usb device and method thereof for automatically recognizing microsoft windowing operating system version
US20130111465A1 (en) Method and system for installing [[a]] terminal equipment
CN102929662A (en) Network-based method for partitioning in batch
WO2015120675A1 (en) Host software installation method and apparatus for data terminal, and computer storage medium
CN105447382A (en) Sandbox based software registry redirection method and system
CN101853142A (en) Identification method of USB device with virtual drive

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14882674

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14882674

Country of ref document: EP

Kind code of ref document: A1