WO2013078805A1 - Reader start method and apparatus - Google Patents

Reader start method and apparatus Download PDF

Info

Publication number
WO2013078805A1
WO2013078805A1 PCT/CN2012/073125 CN2012073125W WO2013078805A1 WO 2013078805 A1 WO2013078805 A1 WO 2013078805A1 CN 2012073125 W CN2012073125 W CN 2012073125W WO 2013078805 A1 WO2013078805 A1 WO 2013078805A1
Authority
WO
WIPO (PCT)
Prior art keywords
script
reader
version
module
tftp
Prior art date
Application number
PCT/CN2012/073125
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 WO2013078805A1 publication Critical patent/WO2013078805A1/en

Links

Classifications

    • 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

Definitions

  • the present invention provides a method and device for starting a reader to at least solve the related art. For different test requirements of a customer, it is necessary to frequently change the version of the reader, which is not conducive to the maintenance of the baseline version, and is not conducive to the device. The problem of stable function.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or they may be Multiple modules or steps are made into a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Abstract

Disclosed are a reader start method and apparatus. The method comprises: powering on a reader under a major version, the major version being the fixed part in versions of the reader; the reader determining that the reader stores a script, the script being the changing part in the versions of the reader; the reader starts a process according to the script. The present invention improves the revisability for varied test demands and the stability of version.

Description

阅读器启动方法及装置 技术领域 本发明涉及通信领域, 具体而言, 涉及一种阅读器启动方法及装置。 背景技术 在射频识别系统中, 超高频阅读器作为超高频射频识别系统的重要组成部分, 起 着举足轻重的作用。 图 1是根据相关技术的超高频射频识别系统的组成示意图, 如图 1 所示, 超高频阅读器既是通过天线与标签进行空口通信, 完成各种操作的终端, 又 通过网络连接客户应用管理系统, 接受应用管理系统下达的处理命令。 但是, 由于超高频射频识别系统的不同客户提出的测试需求多种多样, 而且随时 随地需要改动版本。 为应对测试, 往往频繁地改动阅读器的软件版本, 进行远程升级, 这样既不利于基线版本的维护, 也不利于设备功能的稳定。 发明内容 本发明提供了一种阅读器启动方法及装置, 以至少解决相关技术中, 对于客户不 同的测试需求, 需要频繁地改变阅读器的版本, 这样不利于基线版本的维护, 也不利 于设备功能的稳定的问题。 根据本发明的一个方面, 提供了一种阅读器启动方法, 包括: 阅读器使用主版本 上电, 其中主版本是阅读器的版本中固定不动的部分; 阅读器确定自身存储有脚本, 其中脚本是阅读器的版本中变更的部分; 阅读器根据脚本进行进程启动。 优选地, 在阅读器确定自身存储有脚本之前, 上述方法还包括: 阅读器使用文件 传输协议(File Transfer Protocol,简称为 FTP)或简单文件传输协议(Trivial File Transfer Protocol, 简称为 TFTP) 接收上传的脚本; 阅读器将脚本存储在自身的 FLASH中。 优选地, 在阅读器使用 FTP或 TFTP接收上传的脚本之前, 上述方法还包括: 确 定客户的服务器与主版本的接口标准不一致或者协议处理方式不一致; 执行阅读器使 用 FTP或 TFTP接收上传的脚本的操作。 优选地, 阅读器根据脚本进行进程启动包括: 在阅读器自身存储的多个脚本中, 设置执行进程启动的操作的脚本。 优选地,在阅读器自身存储的多个脚本中, 设置执行进程启动的操作的脚本之后, 上述方法还包括: 查询设置的脚本。 优选地, 阅读器根据脚本进行进程启动包括: 阅读器启动脚本; 创建脚本的主进 程; 根据与脚本对应的配置文件, 启动与脚本相关的进程。 根据本发明的另一方面, 提供了一种阅读器启动装置, 应设置为阅读器, 包括: 上电模块, 设置为使用主版本上电, 其中主版本是阅读器的版本中固定不动的部分; 第一确定模块, 设置为确定自身存储有脚本,其中脚本是阅读器的版本中变更的部分; 启动模块, 设置为根据脚本进行进程启动。 优选地, 上述装置还包括: 接收模块, 设置为使用 FTP或 TFTP接收上传的脚本; 存储模块, 设置为将脚本存储在自身的 FLASH中。 优选地, 上述装置还包括: 第二确定模块, 设置为确定客户的服务器与主版本的 接口标准不一致或者协议处理方式不一致; 执行模块, 设置为执行阅读器使用 FTP或 TFTP接收上传的脚本的操作。 优选地, 启动模块包括: 设置子模块, 设置为在阅读器自身存储的多个脚本中, 设置执行进程启动的操作的脚本。 本发明将阅读器的版本划分为固定不动的主版本和可能变更的脚本, 当需要进行 版本变更时, 只需对该脚本进行激活、 变更即可。 因此, 本发明提高了对多变测试需 求的易修改性以及版本的稳定性。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据相关技术的超高频射频识别系统的组成示意图; 图 2是根据本发明实施例的阅读器启动方法的流程图; 图 3是根据本发明实施例的主版本和脚本的示意图; 图 4是根据本发明优选实施例的主版本和脚本的结构示意图; 图 5是根据本发明优选实施例的脚本下载过程的流程图; 图 6是根据本发明优选实施例的脚本启动过程的流程图; 图 7是根据本发明优选实施例的脚本激活、 反激活过程的流程图; 图 8是根据本发明优选实施例的脚本终止过程的流程图; 图 9是根据本发明实施例的阅读器启动装置的结构框图; 图 10是根据本发明优选实施例的阅读器启动装置的结构框图一; 图 11是根据本发明优选实施例的阅读器启动装置的结构框图二; 图 12是根据本发明优选实施例的阅读器启动装置的结构框图三。 具体实施方式 需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特征可以相 互组合。 下面将参考附图并结合实施例来详细说明本发明。 本发明提供了一种阅读器启动方法, 图 2是根据本发明实施例的阅读器启动方法 的流程图, 如图 2所示, 包括如下的步骤 S202至步骤 S206。 步骤 S202, 阅读器使用主版本上电, 其中主版本是阅读器的版本中固定不动的部 分。 步骤 S204,阅读器确定自身存储有脚本,其中脚本是阅读器的版本中变更的部分。 步骤 S206, 阅读器根据脚本进行进程启动。 相关技术中, 对于客户不同的测试需求, 需要频繁地改变阅读器的版本, 这样不 利于基线版本的维护, 也不利于设备功能的稳定。 本发明实施例中, 将阅读器的版本 划分为固定不动的主版本和可能变更的脚本, 当需要进行版本变更时, 只需对该脚本 进行激活、 变更即可。 因此, 本发明提高了对多变测试需求的易修改性以及版本的稳 定性。 在步骤 S204之前, 需先下载脚本, 具体如下: 确定客户的服务器与主版本的接口 标准不一致或者协议处理方式不一致; 使用 FTP或 TFTP接收上传的脚本; 阅读器将 脚本存储在自身的 FLASH 中。 本优选实施例中, 先根据客户的服务器与主版本是否 匹配来判断是否需要下载脚本进行版本的变更, 如果需要, 则通过 FTP或 TFTP对脚 本进行传输, 其传输效果便捷、 可靠; 同时, 将脚本存储在 FLASH 中, 便于脚本的 高速存取。 另外, 需要激活下载的脚本, 具体过程如下: 在阅读器自身存储的多个脚本中, 设置执行进程启动的操作的脚本。 通过设置进程启动的脚本, 可以保证用户灵活选择 进行启动的脚本, 进一步提高了对多变测试需求的易修改性。 另外, 还需查询设置的 脚本的版本信息。 根据脚本进行进程启动的过程具体如下: 阅读器启动脚本; 创建脚本的主进程; 根据与脚本对应的配置文件, 启动与脚本相关的进程。 由上述,可以说本发明提供了一种自动脚本,来满足客户提出的各种差异性需求, 同时通过主版本的版本管理模块对自动脚本进行启动、 激活、 查询、 终止等操作。 图 3是根据本发明实施例的主版本和脚本的示意图, 如图 3所示, 主版本为基线 化的版本, 基本不动; 脚本为根据不同的测试需求会进行修改变更的部分。 主版本与 脚本之间的消息传递通过 COMM通信模块进行通信。 对于不同的业务配置需求, 通 过自定义的配置文件载入脚本中。 根据差异性, 可以在脚本中创建多个特色进程, 由 脚本管理工具负责下载、 启动、 停止、 激活、 反激活等功能, 并由主版本中的版本管 理模块负责执行。 下面将结合实例对本发明实施例的实现过程进行详细描述。 图 4是根据本发明优选实施例的主版本和脚本的结构示意图, 如图 4所示, 主版 本包括: 通信模块、 协议控制模块、 协议处理模块和版本管理模块; 脚本包括主控模 块, 虚线框内为可能会增添的模块。 正常情况下, 没有其它特殊需求 (即客户的服务器与主版本的接口标准或者协议 处理方式相匹配), 则只需使用基线版本 (即主版本), 基线版本的服务器与主版本直 接进行业务交互。 如果客户的服务器与基线版本的接口标准不一致, 或者协议处理方式不一致, 就 会根据需要编写一个运行脚本, 脚本可以 bin文件的形式存在并上传到阅读器的某个 路径下。 图 4的脚本中虚线所示为可能会增添的模块, 具体如下: The present invention relates to the field of communications, and in particular to a reader activation method and apparatus. BACKGROUND OF THE INVENTION In radio frequency identification systems, UHF readers play an important role as an important part of UHF radio frequency identification systems. 1 is a schematic diagram of the composition of an ultra-high frequency radio frequency identification system according to the related art. As shown in FIG. 1, the UHF reader is a terminal that performs air communication through an antenna and a tag, completes various operations, and connects a client application through a network. The management system accepts processing commands issued by the application management system. However, due to the diverse testing needs of different customers of UHF RFID systems, there is a need to change the version anytime, anywhere. In order to cope with the test, the software version of the reader is frequently changed and the remote upgrade is performed, which is not conducive to the maintenance of the baseline version, and is not conducive to the stability of the device function. SUMMARY OF THE INVENTION The present invention provides a method and device for starting a reader to at least solve the related art. For different test requirements of a customer, it is necessary to frequently change the version of the reader, which is not conducive to the maintenance of the baseline version, and is not conducive to the device. The problem of stable function. According to an aspect of the present invention, a reader activation method is provided, comprising: a reader powering on a main version, wherein a main version is a fixed portion of a version of a reader; the reader determines that a script is stored therein, wherein The script is part of the change in the version of the reader; the reader starts the process according to the script. Preferably, before the reader determines that the script is stored in the file, the method further includes: the reader uses the File Transfer Protocol (FTP) or the Trivial File Transfer Protocol (TFTP) to receive the upload. The script; the reader stores the script in its own FLASH. Preferably, before the reader receives the uploaded script by using the FTP or the TFTP, the method further includes: determining that the interface standard of the client server is inconsistent with the interface version of the main version or the protocol processing manner is inconsistent; and executing the reader to receive the uploaded script by using FTP or TFTP. operating. Preferably, the process of starting the process according to the script comprises: setting, in the plurality of scripts stored by the reader itself, a script for performing an operation initiated by the process. Preferably, after setting a script for performing a process initiated operation in a plurality of scripts stored by the reader itself, the method further includes: querying the set script. Preferably, the reader starts the process according to the script, including: a reader startup script; a main process of creating the script; and starting a script-related process according to the configuration file corresponding to the script. According to another aspect of the present invention, a reader activation apparatus is provided, which should be configured as a reader, comprising: a power-on module, configured to be powered up using a major version, wherein the main version is fixed in the version of the reader. The first determining module is configured to determine that the script is stored by itself, wherein the script is a part of the change in the version of the reader; the booting module is set to start the process according to the script. Preferably, the apparatus further includes: a receiving module, configured to receive the uploaded script by using FTP or TFTP; and a storage module configured to store the script in its own FLASH. Preferably, the foregoing apparatus further includes: a second determining module, configured to determine that the interface of the client is inconsistent with the interface standard of the major version or the protocol processing manner is inconsistent; and the executing module is configured to perform an operation of the reader to receive the uploaded script by using FTP or TFTP. . Preferably, the startup module comprises: a setting submodule configured to set a script for performing a process initiated operation in a plurality of scripts stored by the reader itself. The present invention divides the version of the reader into a fixed main version and a script that may be changed. When a version change is required, it is only necessary to activate and change the script. Thus, the present invention improves the ease of modification to the need for versatile testing and the stability of the version. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawings: FIG. 1 is a schematic diagram of the composition of a UHF radio frequency identification system according to the related art; FIG. 2 is a flowchart of a method for starting a reader according to an embodiment of the present invention; FIG. 3 is a main version according to an embodiment of the present invention. And a schematic diagram of a script; FIG. 4 is a schematic structural diagram of a main version and a script according to a preferred embodiment of the present invention; 5 is a flow chart of a script download process in accordance with a preferred embodiment of the present invention; FIG. 6 is a flow chart of a script launch process in accordance with a preferred embodiment of the present invention; FIG. 7 is a script activation, deactivation process in accordance with a preferred embodiment of the present invention. Figure 8 is a flow chart of a script termination process in accordance with a preferred embodiment of the present invention; Figure 9 is a block diagram of a reader activation device in accordance with an embodiment of the present invention; Figure 10 is a reader in accordance with a preferred embodiment of the present invention. FIG. 11 is a block diagram showing the structure of a reader starting device according to a preferred embodiment of the present invention; FIG. 12 is a block diagram showing the structure of a reader starting device according to a preferred embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. The present invention provides a method for starting a reader. FIG. 2 is a flowchart of a method for starting a reader according to an embodiment of the present invention. As shown in FIG. 2, the following steps S202 to S206 are included. In step S202, the reader uses the main version to power on, wherein the main version is a fixed part of the version of the reader. In step S204, the reader determines that it has stored a script, wherein the script is a part of the change in the version of the reader. In step S206, the reader starts the process according to the script. In the related art, for different test requirements of the customer, it is necessary to frequently change the version of the reader, which is not conducive to the maintenance of the baseline version, and is not conducive to the stability of the device function. In the embodiment of the present invention, the version of the reader is divided into a fixed main version and a script that may be changed. When a version change is required, the script may only be activated or changed. Thus, the present invention improves the ease of modification to the need for versatile testing and the stability of the version. Before step S204, the script needs to be downloaded first, as follows: It is determined that the interface standard of the client's server is inconsistent with the main version or the protocol processing manner is inconsistent; the uploaded script is received by using FTP or TFTP; the reader stores the script in its own FLASH. In the preferred embodiment, according to whether the client's server and the main version are Match to determine whether you need to download the script to change the version. If necessary, transfer the script through FTP or TFTP, the transmission effect is convenient and reliable. At the same time, the script is stored in FLASH, which facilitates high-speed access of the script. In addition, the downloaded script needs to be activated. The specific process is as follows: In the multiple scripts stored by the reader itself, a script for executing the operation initiated by the process is set. By setting the script that is started by the process, the user can be flexibly selected to start the script, which further improves the easy modification of the demand for the variable test. In addition, you need to query the version information of the set script. The process of starting a process according to a script is as follows: a reader startup script; a main process of creating a script; and starting a script-related process according to a configuration file corresponding to the script. From the above, it can be said that the present invention provides an automatic script to meet various differential requirements proposed by the customer, and at the same time, the automatic script is started, activated, queried, terminated, etc. by the version management module of the main version. 3 is a schematic diagram of a main version and a script according to an embodiment of the present invention. As shown in FIG. 3, the main version is a baseline version, which is basically non-moving; the script is a part that is modified according to different testing requirements. The message passing between the main version and the script communicates through the COMM communication module. For different business configuration requirements, load the script through a custom configuration file. Depending on the difference, multiple feature processes can be created in the script. The script management tool is responsible for downloading, starting, stopping, activating, deactivating, etc., and is executed by the version management module in the main version. The implementation process of the embodiment of the present invention will be described in detail below with reference to examples. 4 is a schematic structural diagram of a main version and a script according to a preferred embodiment of the present invention. As shown in FIG. 4, the main version includes: a communication module, a protocol control module, a protocol processing module, and a version management module; the script includes a main control module, and a dotted line Inside the box are modules that may be added. Under normal circumstances, there is no other special requirement (that is, the client's server matches the interface version or protocol processing mode of the major version), then only the baseline version (ie, the main version) is used, and the baseline version of the server directly interacts with the main version. . If the client's server is inconsistent with the baseline version of the interface standard, or the protocol is handled inconsistently, a running script will be written as needed. The script can exist in the form of a bin file and uploaded to a path in the reader. The dotted line in the script of Figure 4 shows the modules that may be added, as follows:
( 1 )通信模块,在客户的服务器与基线版本的通信接口标准不一致时添加,此时, 脚本相当于一个代理, 将通信的帧重组后发送给主版本。 (2)脚本协议控制模块,在客户的服务器与基线版本的协议处理方式不一致时添 力口, 该模块将根据业务流程通过网口发送消息给主版本的协议控制模块, 然后脚本根 据返回结果作出决策。 脚本管理工具需要一个运行在 PC机上的管理工具负责向主版本的版本管理模块 发送脚本管理的命令, 包括脚本激活、 下载、 停止等命令。 下面将详细介绍本发明的脚本下载、 启动、 激活、 终止过程。 图 5是根据本发明优选实施例的脚本下载过程的流程图, 如图 5所示, 包括如下 的步骤 S502至步骤 S510。 步骤 S502, 脚本管理工具向主版本的版本管理模块下发脚本下载请求。 步骤 S504, 如果收到版本管理模块的应答, 通过 FTP或 TFTP传输脚本文件。 步骤 S506, 主版本的版本管理模块将脚本上传到阅读器上的 FLASH中。 步骤 S508, 判断是否传输完毕。 如果传输完毕, 执行步骤 S510; 如果没有传输 完毕, 则执行步骤 S506。 步骤 S510, 下载完成。 图 6是根据本发明优选实施例的脚本启动过程的流程图, 如图 6所示, 包括如下 的步骤 S602至步骤 S610。 步骤 S602, 主版本的版本管理模块进行第二轮上电。 步骤 S604, 启动脚本主进程。 步骤 S606, 脚本主进程创建定义的子进程。 步骤 S608, 进程是否启动完毕。 若启动完毕, 则执行步骤 S610; 若未启动完毕, 则执行步骤 S606。 步骤 S610, 返回成功消息。 本优选实施例中, 在主版本的版本管理模块进行第二轮上电时, 如果查询到有脚 本, 便会给脚本上电, 创建脚本的主进程, 脚本的主进程创建成功之后, 会根据配置 文件启动相关的进程, 进程启动完毕后, 将结果返回给版本管理模块, 脚本上电成功。 图 7是根据本发明优选实施例的脚本激活、 反激活过程的流程图, 如图 7所示, 包括如下的步骤 S702至步骤 S708。 步骤 S702, 脚本管理工具修改主版本的脚本启动配置变量, 因为阅读器上可以同 时存放多个脚本, 只需将需要启动的脚本置 1。 步骤 S704, 主版本返回配置成功消息给脚本管理工具。 步骤 S706, 脚本管理工具查询当前脚本的版本信息。 步骤 S708, 主版本返回脚本信息给脚本管理工具。 反激活步骤也是同样的。 图 8是根据本发明优选实施例的脚本终止过程的流程图, 如图 8所示, 包括如下 的步骤 S802至步骤 S806。 步骤 S802, 脚本管理工具下发终止脚本消息给主版本的版本管理模块。 步骤 S804, 主版本的版本管理模块杀死脚本的主进程。 步骤 S806, 版本管理模块返回成功消息给脚本管理工具。 需要说明的是, 在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的 计算机系统中执行, 并且, 虽然在流程图中示出了逻辑顺序, 但是在某些情况下, 可 以以不同于此处的顺序执行所示出或描述的步骤。 本发明实施例提供了一种阅读器启动装置, 应用于阅读器, 该阅读器启动装置可 以用于实现上述阅读器启动方法。 图 9是根据本发明实施例的阅读器启动装置的结构 框图, 如图 9所示, 包括上电模块 91, 第一确定模块 92和启动模块 93。 下面对该阅 读器启动装置的结构进行详细描述。 上电模块 91, 设置为使用主版本上电, 其中主版本是阅读器的版本中固定不动的 部分; 第一确定模块 92, 连接至上电模块 91, 设置为确定自身存储有脚本, 其中脚本 是阅读器的版本中变更的部分; 启动模块 93, 连接至第一确定模块 92, 设置为根据脚 本进行进程启动。 图 10是根据本发明优选实施例的阅读器启动装置的结构框图一, 如图 10所示, 该装置还包括: 接收模块 94, 连接至上电模块 91, 设置为使用 FTP或 TFTP文件传输 协议接收上传的脚本; 存储模块 95, 连接至接收模块 94, 设置为将接收模块 94接收 的脚本存储在自身的 FLASH中。 图 11是根据本发明优选实施例的阅读器启动装置的结构框图二, 如图 11所示, 该装置还包括: 第二确定模块 96, 连接至上电模块 91, 设置为确定客户的服务器与主 版本的接口标准不一致或者协议处理方式不一致; 执行模块 97, 连接至第二确定模块 96, 设置为执行阅读器使用 FTP或 TFTP文件传输协议接收上传的脚本的操作。 图 12是根据本发明优选实施例的阅读器启动装置的结构框图三, 如图 12所示, 启动模块 93包括: 设置子模块 931, 设置为在阅读器自身存储的多个脚本中, 设置执 行进程启动的操作的脚本; 查询子模块 932, 连接至设置子模块 931, 设置为查询设置 的脚本; 第一启动子模块 933, 连接至查询子模块 932, 设置为启动查询子模块 932 查询的脚本; 创建子模块 934, 连接至第一启动子模块 933, 设置为创建第一启动子模 块 933启动的脚本的主进程; 第二启动子模块 935, 连接至创建子模块 934, 设置为根 据与脚本对应的配置文件, 启动与脚本相关的进程。 需要说明的是, 装置实施例中描述的阅读器启动装置对应于上述的方法实施例, 其具体的实现过程在方法实施例中已经进行过详细说明, 在此不再赘述。 综上所述, 本发明提供了一种阅读器启动方法及装置。 本发明将阅读器的版本划 分为固定不动的主版本和可能变更的脚本, 当需要进行版本变更时, 只需对该脚本进 行激活、 变更即可。 因此, 本发明提高了对多变测试需求的易修改性以及版本的稳定 性。 工业实用性 本发明技术方案具备工业实用性, 提高了对多变测试需求的易修改性以及阅 读器版本的稳定性。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 或者将它们分别制作成各个集成电路模 块, 或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明 不限制于任何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 (1) The communication module is added when the client's server and the baseline version of the communication interface standard are inconsistent. At this time, the script is equivalent to a proxy, and the communication frame is reorganized and sent to the main version. (2) The script protocol control module adds a force port when the client's server and the baseline version of the protocol are inconsistent. The module sends a message to the main version of the protocol control module through the network port according to the business process, and then the script makes a response based on the returned result. decision making. The script management tool requires a management tool running on the PC to send script management commands to the version management module of the main version, including script activation, download, stop, and so on. The script downloading, starting, activating, and terminating processes of the present invention will be described in detail below. FIG. 5 is a flowchart of a script downloading process according to a preferred embodiment of the present invention. As shown in FIG. 5, the following steps S502 to S510 are included. Step S502, the script management tool sends a script download request to the version management module of the main version. Step S504, if the response of the version management module is received, the script file is transmitted through FTP or TFTP. Step S506, the version management module of the main version uploads the script to the FLASH on the reader. Step S508, determining whether the transmission is completed. If the transmission is completed, step S510 is performed; if no transmission is completed, step S506 is performed. In step S510, the download is completed. FIG. 6 is a flowchart of a script startup process according to a preferred embodiment of the present invention. As shown in FIG. 6, the following steps S602 to S610 are included. Step S602, the version management module of the major version performs power-on in the second round. Step S604, starting the script main process. Step S606, the script main process creates the defined child process. Step S608, whether the process is started. If the startup is completed, step S610 is performed; if the startup is not completed, step S606 is performed. Step S610, returning a success message. In the preferred embodiment, when the version management module of the major version performs the second round of power-on, if a script is found, the script is powered on, and the main process of the script is created. After the main process of the script is successfully created, The configuration file starts the related process. After the process is started, the result is returned to the version management module. The script is powered on successfully. FIG. 7 is a flowchart of a script activation and deactivation process according to a preferred embodiment of the present invention. As shown in FIG. 7, the following steps S702 to S708 are included. In step S702, the script management tool modifies the script startup configuration variable of the main version, because the reader can store multiple scripts at the same time, and only needs to set the script to be started. Step S704, the major version returns a configuration success message to the script management tool. Step S706, the script management tool queries the version information of the current script. In step S708, the main version returns the script information to the script management tool. The reverse activation step is the same. FIG. 8 is a flowchart of a script termination process according to a preferred embodiment of the present invention. As shown in FIG. 8, the following steps S802 to S806 are included. Step S802, the script management tool sends a termination script message to the version management module of the main version. Step S804, the version management module of the main version kills the main process of the script. In step S806, the version management module returns a success message to the script management tool. It should be noted that the steps shown in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and, although the logical order is shown in the flowchart, in some cases, The steps shown or described may be performed in an order different than that herein. The embodiment of the present invention provides a reader starting device, which is applied to a reader, and the reader starting device can be used to implement the above-mentioned reader starting method. FIG. 9 is a structural block diagram of a reader initiating apparatus according to an embodiment of the present invention. As shown in FIG. 9, the powering module 91, the first determining module 92, and the starting module 93 are included. The structure of the reader starting device will be described in detail below. The power-on module 91 is configured to be powered on by using the major version, wherein the main version is a fixed part of the version of the reader; the first determining module 92 is connected to the power-on module 91, and is configured to determine that the script is stored by itself, where the script It is a part of the change in the version of the reader; the startup module 93 is connected to the first determination module 92, and is set to start the process according to the script. 10 is a block diagram showing the structure of a reader activation device according to a preferred embodiment of the present invention. As shown in FIG. 10, the device further includes: a receiving module 94 connected to the power-on module 91, configured to transmit using FTP or TFTP files. The protocol receives the uploaded script; the storage module 95 is connected to the receiving module 94, and is configured to store the script received by the receiving module 94 in its own FLASH. FIG. 11 is a block diagram showing the structure of a reader initiating apparatus according to a preferred embodiment of the present invention. As shown in FIG. 11, the apparatus further includes: a second determining module 96 connected to the power-on module 91, configured to determine a server and a client of the client. The interface standards of the version are inconsistent or the protocol processing manner is inconsistent; the executing module 97 is connected to the second determining module 96, and is configured to perform an operation of the reader to receive the uploaded script by using an FTP or TFTP file transfer protocol. 12 is a block diagram 3 of a structure of a reader initiating apparatus according to a preferred embodiment of the present invention. As shown in FIG. 12, the booting module 93 includes: a setting submodule 931, which is set to execute in a plurality of scripts stored by the reader itself. a script for the operation initiated by the process; a query sub-module 932, connected to the setting sub-module 931, set to a script for query setting; a first startup sub-module 933, connected to the query sub-module 932, set to start the query sub-module 932 query script a creation submodule 934, connected to the first startup submodule 933, set to create a main process of the script initiated by the first startup submodule 933; a second startup submodule 935, connected to the creation submodule 934, set to be based on the script The corresponding configuration file starts the process related to the script. It should be noted that the reader activation device described in the device embodiment corresponds to the foregoing method embodiment, and the specific implementation process has been described in detail in the method embodiment, and details are not described herein again. In summary, the present invention provides a reader starting method and apparatus. The present invention divides the version of the reader into a fixed main version and a script that may be changed. When a version change is required, it is only necessary to activate and change the script. Thus, the present invention improves the ease of modification to the need for versatile testing and the stability of the version. Industrial Applicability The technical solution of the present invention has industrial applicability, improves the ease of modification to the demand for versatile testing, and the stability of the reader version. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or they may be Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书  Claims
1. 一种阅读器启动方法, 包括: 1. A reader startup method, comprising:
阅读器使用主版本上电, 其中所述主版本是所述阅读器的版本中固定不动 的部分;  The reader is powered up using the major version, wherein the major version is a fixed portion of the version of the reader;
所述阅读器确定自身存储有脚本, 其中所述脚本是所述阅读器的版本中变 更的部分;  The reader determines that it has stored a script, wherein the script is part of a change in the version of the reader;
所述阅读器根据所述脚本进行进程启动。  The reader initiates a process according to the script.
2. 根据权利要求 1所述的方法, 其中, 在所述阅读器确定自身存储有脚本之前, 还包括: 2. The method according to claim 1, wherein before the reader determines that the script is stored by itself, the method further includes:
所述阅读器使用文件传输协议 FTP或简单文件传输协议 TFTP接收上传的 所述脚本;  The reader receives the uploaded script using a file transfer protocol FTP or a simple file transfer protocol TFTP;
所述阅读器将所述脚本存储在自身的 FLASH中。  The reader stores the script in its own FLASH.
3. 根据权利要求 2所述的方法, 其中, 在所述阅读器使用 FTP或 TFTP接收上传 的所述脚本之前, 还包括: The method according to claim 2, wherein before the reader receives the uploaded script by using FTP or TFTP, the method further includes:
确定客户的服务器与所述主版本的接口标准不一致或者协议处理方式不一 致;  Determining that the client's server is inconsistent with the interface standard of the main version or that the protocol is handled inconsistently;
执行所述阅读器使用 FTP或 TFTP接收上传的所述脚本的操作。  Executing the operation of the reader to receive the uploaded script using FTP or TFTP.
4. 根据权利要求 1至 3中任一项所述的方法, 其中, 所述阅读器根据所述脚本进 行进程启动包括: 在所述阅读器自身存储的多个脚本中, 设置执行所述进程启 动的操作的脚本。 The method according to any one of claims 1 to 3, wherein the process of starting the process according to the script comprises: setting, in the plurality of scripts stored by the reader itself, performing the process The script for the started operation.
5. 根据权利要求 4所述的方法, 其中, 在所述阅读器自身存储的多个脚本中, 设 置执行所述进程启动的操作的脚本之后, 还包括: 查询所述设置的脚本。 The method according to claim 4, wherein, after the script for executing the process initiated by the process is set in the plurality of scripts stored by the reader itself, the method further includes: querying the set script.
6. 根据权利要求 1至 3中任一项所述的方法, 其中, 所述阅读器根据所述脚本进 行进程启动包括: The method according to any one of claims 1 to 3, wherein the process of starting the process according to the script comprises:
所述阅读器启动所述脚本;  The reader starts the script;
创建所述脚本的主进程; 根据与所述脚本对应的配置文件, 启动与所述脚本相关的进程。 一种阅读器启动装置, 应用于阅读器, 包括: Create the main process of the script; A process related to the script is started according to a configuration file corresponding to the script. A reader activation device for use in a reader, comprising:
上电模块, 设置为使用主版本上电, 其中所述主版本是所述阅读器的版本 中固定不动的部分;  The power-on module is configured to be powered on by using the major version, where the main version is a fixed part of the version of the reader;
第一确定模块, 设置为确定自身存储有脚本, 其中所述脚本是所述阅读器 的版本中变更的部分;  a first determining module, configured to determine that a script is stored by itself, wherein the script is a part of a change in a version of the reader;
启动模块, 设置为根据所述脚本进行进程启动。 根据权利要求 7所述的装置, 其中, 所述装置还包括:  The startup module is set to start the process according to the script. The device according to claim 7, wherein the device further comprises:
接收模块, 设置为使用 FTP或 TFTP接收上传的所述脚本; 存储模块, 设置为将所述脚本存储在自身的 FLASH中。 根据权利要求 8所述的装置, 其中, 所述装置还包括: 第二确定模块, 设置为确定客户的服务器与所述主版本的接口标准不一致 或者协议处理方式不一致;  The receiving module is configured to receive the uploaded script by using FTP or TFTP; and the storage module is configured to store the script in its own FLASH. The device according to claim 8, wherein the device further comprises: a second determining module, configured to determine that the interface of the client is inconsistent with the interface standard of the major version or that the protocol processing manner is inconsistent;
执行模块, 设置为执行所述阅读器使用 FTP或 TFTP接收上传的所述脚本 的操作。  And an execution module, configured to perform the operation of the reader to receive the uploaded script by using FTP or TFTP.
10. 根据权利要求 7至 9中任一项所述的装置, 其中, 所述启动模块包括: 设置子 模块, 设置为在所述阅读器自身存储的多个脚本中, 设置执行所述进程启动的 操作的脚本。 The device according to any one of claims 7 to 9, wherein the startup module comprises: a setting submodule, configured to perform execution of the process in a plurality of scripts stored by the reader itself The script for the operation.
PCT/CN2012/073125 2011-11-30 2012-03-27 Reader start method and apparatus WO2013078805A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011103893692A CN103136009A (en) 2011-11-30 2011-11-30 Reader starting method and reader starting device
CN201110389369.2 2011-11-30

Publications (1)

Publication Number Publication Date
WO2013078805A1 true WO2013078805A1 (en) 2013-06-06

Family

ID=48495880

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/073125 WO2013078805A1 (en) 2011-11-30 2012-03-27 Reader start method and apparatus

Country Status (2)

Country Link
CN (1) CN103136009A (en)
WO (1) WO2013078805A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7398932B2 (en) * 2005-04-07 2008-07-15 Intel Corporation Methods and apparatus for providing a radio frequency identification system
US7715835B1 (en) * 2007-03-27 2010-05-11 Symantec Corporation Method and apparatus for administering mobile client devices across locations
KR20100073188A (en) * 2008-12-22 2010-07-01 한국전자통신연구원 Method and server and terminal apparatus for variable configuration of application software
CN101859393A (en) * 2009-04-02 2010-10-13 飞力凯网路股份有限公司 Communication facilities, messaging device, program and read write line provide system
CN102200908A (en) * 2010-03-23 2011-09-28 上海果壳电子有限公司 Firmware system of electronic book reader

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826019A (en) * 2009-03-02 2010-09-08 中兴通讯股份有限公司 Version management system, returning system, returning method and upgrading method of reader

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7398932B2 (en) * 2005-04-07 2008-07-15 Intel Corporation Methods and apparatus for providing a radio frequency identification system
US7715835B1 (en) * 2007-03-27 2010-05-11 Symantec Corporation Method and apparatus for administering mobile client devices across locations
KR20100073188A (en) * 2008-12-22 2010-07-01 한국전자통신연구원 Method and server and terminal apparatus for variable configuration of application software
CN101859393A (en) * 2009-04-02 2010-10-13 飞力凯网路股份有限公司 Communication facilities, messaging device, program and read write line provide system
CN102200908A (en) * 2010-03-23 2011-09-28 上海果壳电子有限公司 Firmware system of electronic book reader

Also Published As

Publication number Publication date
CN103136009A (en) 2013-06-05

Similar Documents

Publication Publication Date Title
US10871953B2 (en) Application update method and apparatus
CN111770169B (en) Method, device, equipment and storage medium for upgrading equipment firmware
US7181746B2 (en) Initialization, reconfiguration, and shut down of a module function
US10574793B2 (en) Method, apparatus and terminal device for communication protocol compatibility
CN109451472B (en) Dynamic management method for multiple Bluetooth chips on Android intelligent device
US20170163478A1 (en) Method,electronic device and system for updating client configuration in key-value pair database
CN107861760A (en) BIOS collocation method, terminal and server
EP2429225A1 (en) Method for provisioning parameters of terminal, system thereof, and terminal management device
CN101170423A (en) A service-oriented service cluster deployment method
CN109587272B (en) Method and device for optimizing microservice and electronic equipment
CN112905337A (en) Software and hardware hybrid deployment MySQL cluster scheduling method and device
CN112256294A (en) Deployment method, cloud platform, system and storage medium of terminal application
KR20090084670A (en) Method and system for two-phase mechanism for discovering web services based management service
JP6195465B2 (en) Remote card content management using synchronous server-side scripting
EP4030776A1 (en) Method and apparatus for triggering vomci function from olt to send omci messages
CN107526584B (en) Data access method and device
CN105656661B (en) Single board software management method and system
US8051191B2 (en) Ethernet extensibility
CN108712298B (en) Network equipment upgrading method and device, network equipment and storage medium
US10911547B2 (en) Systems and methods for SMB monitor dialect
WO2013078805A1 (en) Reader start method and apparatus
JP6259919B2 (en) Communication method between server and secure element
CN115185553A (en) Method for updating device firmware of user and related device
JP2021184235A5 (en)
CN112860300A (en) Distributed SDK (software development kit) hot update processing method and application server cluster

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: 12853372

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: 12853372

Country of ref document: EP

Kind code of ref document: A1