WO2012040982A1 - Secondary development method and development system of hand-held reader - Google Patents

Secondary development method and development system of hand-held reader Download PDF

Info

Publication number
WO2012040982A1
WO2012040982A1 PCT/CN2010/079783 CN2010079783W WO2012040982A1 WO 2012040982 A1 WO2012040982 A1 WO 2012040982A1 CN 2010079783 W CN2010079783 W CN 2010079783W WO 2012040982 A1 WO2012040982 A1 WO 2012040982A1
Authority
WO
WIPO (PCT)
Prior art keywords
handheld reader
interface
writer
message
operating system
Prior art date
Application number
PCT/CN2010/079783
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 WO2012040982A1 publication Critical patent/WO2012040982A1/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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Definitions

  • the present invention relates to the field of communications, and in particular, to a secondary development method and a development system for a handheld reader/writer.
  • BACKGROUND OF THE INVENTION As a portable reader, the handheld reader/writer meets the needs of various applications in the mobile environment, and has played a huge role in the fields of intelligent transportation, warehousing and logistics, and asset management. With the rise of Internet of Things technology, RFID technology has been rapidly developed, and the functions of current handheld readers have been comprehensively improved. Existing handheld readers have already covered 2D barcode scanning and lasers.
  • Handheld readers as a device, need to provide users with various functions for controlling the operation of the handheld reader.
  • the user calls this function to control the handheld reader to perform certain operations, such as controlling handheld reading and writing.
  • the device counts the label, and after checking the content of the label, it further applies according to the meaning of the label content, such as storage, classification, and the like.
  • the secondary development of the handheld reader is the development work by calling the interface of the device, that is, by calling the interface of the device to develop various functions.
  • the current secondary development of handheld readers is usually through a serial port directly connected to a PDA or a board supporting a specific function, while a PDA usually uses a Windows Mobile or Windows CE operating system.
  • the .NET Compact Framework and Java provided by Microsoft provide development support for portable devices. Therefore, the development of handheld readers is generally a direct call to the secondary development interface supported on the PDA operating system.
  • the handheld reader is controlled by the application system as a module of the entire application system, the handheld is controlled by the PC.
  • the handheld reader only provides the above interface, The user needs to communicate multiple times, multiple definitions and multiple calls to achieve this function, which increases the workload of development and has higher technical requirements for users.
  • the operating system of the mobile device used on Windows CE or Windows Mobile is essentially different from the operating system on the PC, so the user needs to learn the new operating system again to perform secondary development, adding secondary development. Difficulty and cost, at the same time, the above-mentioned interface enables the secondary development of the handheld reader to develop an application system as a transit and connection link on the PDA, which increases the cost.
  • the present invention provides a secondary development method and development system for a handheld reader/writer, which can reduce the workload, the difficulty and cost of development.
  • the present invention discloses a system for secondary development of a handheld reader/writer, comprising an operating system dynamic link library module located at an operating system end, located in a handheld Reader/writer dynamic link library module and handheld reader management module, wherein the operating system dynamic link library module is set to establish an interface with the handheld reader, the handheld reader dynamic link library module Set to establish an interface with the operating system, the handheld reader management module is configured to receive commands from the operating system dynamic link library module through the interface to manage the handheld reader.
  • the interface of the operating system is consistent with the interface form of the handheld reader/writer.
  • the operating system dynamic link library module includes an interface submodule and a driving submodule; wherein the interface submodule comprises a handheld reader and a handheld reader The communication interface of the communication and the command interface configured to control the handheld reader to perform various services; the driver submodule is configured to provide a driver.
  • the handheld reader/writer management module includes a driver submodule and a call loading submodule, wherein the driver submodule is configured to provide a driver, The call load submodule is set to call and load the handheld reader dynamic link library module.
  • the handheld reader/writer management module further includes an interface sub-module for displaying an operation result.
  • the handheld reader operating system dynamic link library module comprises a communication interface configured to communicate with a PC and a command interface configured to receive PC control. .
  • the communication and the command between the PC and the handheld reader are performed by using a message, and the format of the message is: message header identifier + message type + message total length + message body + check value + message tail identifier.
  • the present invention also discloses a method for secondary development of a handheld reader/writer, which comprises the following steps: an operating system dynamic link library module establishes an interface with a handheld reader/writer; The link library module establishes an interface with the operating system side; the handheld reader/writer management module receives commands from the operating system dynamic link library module through the interface, and manages the handheld reader/writer.
  • the interface of the operating system is consistent with the interface form of the handheld reader/writer.
  • the communication and the command between the PC and the handheld reader are performed by using a message, and the format of the message is: message header identifier + message type + message total length + message body + check value + message tail identifier.
  • the beneficial effects of the present invention are as follows:
  • the system for secondary development of the handheld reader/writer disclosed by the present invention comprises an operating system dynamic link library module located at the operating system end, and a reader/writer located at the handheld reader/writer end.
  • the dynamic link library module and the handheld reader/writer management module in the present invention, the operating system dynamic link library module establishes an interface with the handheld reader/writer, and the handheld reader dynamic link library module establishes an interface with the operating system terminal,
  • the handheld reader management module receives commands from the operating system dynamic link library module through the interface to manage the handheld reader, thereby facilitating the transfer of the secondary development on the handheld reader to the operation.
  • the operator can perform the second opening without the operation of the handheld reader/writer. The hair is reduced, the technical requirements for the operator are reduced, and the development difficulty and cost are reduced.
  • FIG. 1 exemplarily illustrates a structural diagram of a secondary development system of a handheld reader/writer according to an embodiment of the present invention
  • FIG. 2 exemplarily illustrates a secondary development method of a handheld reader/writer according to an embodiment of the present invention
  • FIG. 3 exemplarily depicts an internal command execution flow of a secondary development method of a handheld reader/writer according to an embodiment of the present invention.
  • a system for secondary development of a handheld reader/writer includes an operating system dynamic link library module located at an operating system end, a reader/writer dynamic link library module at a handheld reader/writer end, and Handheld reader management module.
  • a system for secondary development of a handheld reader/writer includes an operating system dynamic link library module located at an operating system end, and a reader/writer dynamic at a handheld reader/writer end. a link library module and a handheld reader management module, wherein the operating system dynamic link library module is set to establish an interface with the handheld reader, and the handheld reader dynamic link library module is set to establish an interface with the operating system.
  • the handheld reader management module is configured to receive commands from the operating system dynamic link library module through the interface to manage the handheld reader. The function of each module is explained below.
  • the operating system dynamic link library module includes an interface submodule and a driver submodule.
  • the interface sub-module includes a communication interface configured to communicate with the handheld reader and a command interface configured to control the handheld reader to perform various services.
  • the driver submodule is configured to provide various drivers, and the driver provided mainly includes: a driver for encapsulating commands and parsing the returned result; a driver supporting communication between the PC and the handheld reader through the serial port; Driver for communication between the PC and the handheld reader via the USB port; Supports the driver for communication between the PC and the handheld reader through the network port; Supports the connection between the PC and the handheld reader via Wifi Communication driver.
  • the handheld reader management module is used for the management of the handheld reader, including the driver submodule, the call loading submodule, and the interface submodule.
  • the driver submodule is set to provide various drivers, and the driver provided mainly includes: a driver for supporting communication between the handheld reader and the PC through the serial port; supporting the USB between the handheld reader and the PC Port communication driver; A driver that supports communication between the handheld reader and the PC through the network port; a driver that supports wireless fidelity (Wifi) communication between the handheld reader and the PC.
  • the functions performed by the driver mainly include message parsing, message forwarding, and so on.
  • the message parsing is to parse the command message sent from the PC when calling the dynamic link library, and execute the corresponding command according to the command message; the message forwarding includes message receiving and message sending, and the message receiving is mainly used when receiving the PC end by calling the dynamic link library.
  • the command message sent, the message is sent mainly to return the execution result of the command.
  • the call load submodule is set to call and load the handheld reader dynamic link library module, including loading the dynamic link library, calling various business function functions, and the like.
  • the interface sub-module is set to display the operation result, and the displayed content includes whether the system is successfully started, whether the business operation is successful, etc., and provides an audible prompt function.
  • the display operation structure allows the operator to understand the operation status of the handheld reader, and can make timely adjustments according to its operating conditions, providing users with a more humane and more intimate service.
  • Handheld Reader Operating System The dynamic link library module includes a communication interface for communicating with a PC and a command interface for receiving PC control.
  • the secondary development interface provided by the PC is consistent with the secondary development interface provided by the handheld reader, which can be easily connected directly, which can simplify user development and improve development efficiency.
  • the developer only needs to connect the handheld reader to the PC, and then can perform secondary development on the PC side, thereby facilitating the secondary development on the handheld reader side.
  • the operator can perform secondary development without having to master the operation of the handheld reader, which reduces the technical requirements for the operator and reduces the development difficulty and cost.
  • the message format of communication between the PC and the handheld reader is: message header identification + message type + total message length + message body + check value + message tail identifier.
  • the various parts of the message are defined as follows: Message header: Special characters; Message type: Used to represent specific command messages. Handheld readers call specific interfaces based on this type, such as reading messages, counting messages, etc.; Total message length: All The sum of the byte lengths of the message items; Message body: The structure of the parameter required to call the interface, here the byte stream format; Check value: The value used to verify the error of the transmission process; End of message identifier: Special characters .
  • Embodiment 2 As shown in FIG.
  • the method for secondary development of an embodiment of the handheld reader/writer includes the following steps: Step 101: The handheld reader/writer establishes a physical connection with the PC.
  • the physical connection between the handheld reader and the PC includes serial port, USB port, WIFI port or network port.
  • Step 102: The handheld reader/writer is connected to the PC interface through a handheld reader interface, and returns the result to the PC after the operation is successful.
  • the internal command execution flow of the secondary development method of the handheld reader/writer includes the following steps: Step 201: The PC loads the dynamic link library and invokes the specific interface therein. Step 202: The PC interface verifies the PC dynamic link library parameter. Step 203: The PC verifies the valid parameter as a message body, adds a message header identifier, a message type, a total message length, a check value, and a message tail identifier to become a command message, and converts the command message into a continuous byte stream. Step 204: The PC sends a command message to the handheld reader/writer.
  • Step 205 After receiving the command message, the handheld reader/writer calls the handheld reader interface according to the message type, and converts the message body into a parameter.
  • Step 206 The handheld reader/writer executes the command in the command message.
  • Step 207 The handheld reader/writer reads the execution result as a message body, adds a message header identifier, a message type, a check value, and a message tail identifier to become a return message, and converts the return message into a byte stream.
  • Step 208, the handheld reader sends a return message to the PC.
  • the system for secondary development of the handheld reader/writer disclosed by the invention comprises an operating system dynamic link library module located at the operating system end, a reader/writer dynamic link library module located at the handheld reader/writer end, and a handheld reader/writer management module,
  • the operating system dynamic link library module establishes an interface with the handheld reader
  • the handheld reader dynamic link library module establishes an interface with the operating system
  • the reader/writer management module receives commands from the operating system dynamic link library module through the interface, and manages the handheld reader/writer, thereby conveniently transferring the secondary development performed on the handheld reader/writer side to the operating system.
  • the operator can perform secondary development without having to master the operation of the handheld reader, which reduces the technical requirements of the operator and reduces the development difficulty and cost.
  • the interface of the operating system is consistent with the interface form of the handheld reader/writer, and can be conveniently connected directly, thereby simplifying user development and improving development efficiency.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)
  • Stored Programmes (AREA)

Abstract

A secondary development method and a development system of a hand-held reader are provided, wherein, the development system includes: an operating system dynamic link library module (1) in the operating system side, a hand-held reader dynamic link library module (2) and a hand-held reader management module (3) in the hand-held reader side, in which the operating system dynamic link library module is used to establish an interface with the hand-held reader, the hand-held reader dynamic link library module is used to establish an interface with the operating system side, and the hand-held reader management module is used to receive commands from the operating system dynamic link library module through the interface, so as to manage the hand-held reader. The solution can reduce workload of the secondary development of the hand-held reader, and decrease the development difficulty and cost.

Description

一种手持式读写器二次的开发方法和开发系统 技术领域 本发明涉及通讯领域, 特别涉及一种手持式读写器二次的开发方法和开 发系统。 背景技术 手持式读写器作为一种便携式读写器, 满足了移动环境下的多种应用需 求, 目前已经在智能交通领域、 仓储物流领域、 资产管理领域发挥了巨大的 作用。 随着物联网技术的兴起, 射频识别技术得到了快速的发展, 使得目前的 手持式读写器的功能也得到了全面的提升, 现有的手持式读写器已经涵盖了 二维条码扫描、 激光定位、 摄像头、 ETC技术中的 OBU发卡、 超高频应用、 高频应用等众多领域, 应用的领域的增加, 也对手持式读写器的软件开发提 出了更高的要求。 手持式读写器作为一种设备, 需提供给用户用于控制手持式读写器工作 的各种函数, 用户通过调用此函数控制手持式读写器完成某种操作, 例如控 制手持式读写器清点标签, 清点到标签内容后根据标签内容的含义做进一步 的应用, 如入库、 分类等。 手持式读写器的二次开发即通过调用设备的接口进行的开发工作, 即通 过调用设备的接口开发各种函数。 目前的手持式读写器的二次开发通常是通过串口方式与 PDA 或支持特 定功能的单板直连, 而 PDA通常釆用 Windows Mobile或者 Windows CE操 作系统。 微软提供的 .net精简框架及 java提供了对便携设备的开发支持, 因 此手持式读写器的开发一般是直接调用在 PDA 操作系统上支持的二次开发 接口。 对于直接在手持式读写器上开发的应用来说, 通过现有的接口可正常使 用, 但当手持式读写器作为整个应用系统的一个模块受应用系统控制时, 通 过 PC端控制手持式读写器工作时, 如果手持式读写器只提供了上述接口, 则用户实现此功能需要多次通讯、 多次定义和多次调用, 增大了开发的工作 量, 对用户也有较高的技术要求。 对于用户来说,用于在 Windows CE或 Windows Mobile上的移动设备的 操作系统与 PC机上的操作系统有本质区别, 因此用户需要再次学习新的操 作系统才能进行二次开发, 增加了二次开发的难度和成本, 同时, 上述接口 使手持式读写器的二次开发需要在 PDA 上开发作为中转及连接纽带的应用 系统, 又增加了成本。 发明内容 本发明提供了一种手持式读写器二次的开发方法和开发系统, 能减少工 作量, 降氏开发难度和成本。 为解决上述技术问题, 本发明釆用了如下的技术方案: 一方面, 本发明公开了一种手持式读写器二次开发的系统, 包含位于操 作系统端的操作系统动态链接库模块、 位于手持式读写器端的读写器动态链 接库模块和手持式读写器管理模块, 其中, 操作系统动态链接库模块设置为 建立与手持式读写器的接口, 手持式读写器动态链接库模块设置为建立与操 作系统端的接口, 手持式读写器管理模块设置为通过接口, 从操作系统动态 链接库模块接收命令, 进行手持式读写器的管理。 上述手持式读写器二次开发的系统的一个实施例中, 所述操作系统的接 口与所述手持式读写器的接口形式一致。 上述手持式读写器二次开发的系统的一个实施例中, 所述操作系统动态 链接库模块包括接口子模块和驱动子模块; 其中, 所述接口子模块包括设置 为和手持式读写器通讯的通讯接口和设置为控制手持式读写器执行各种业务 的命令接口; 所述驱动子模块设置为提供驱动程序。 上述手持式读写器二次开发的系统的一个实施例中, 所述手持式读写器 管理模块包括驱动子模块和调用加载子模块, 其中, 所述驱动子模块设置为 提供驱动程序, 所述调用加载子模块设置为调用、 加载手持式读写器动态链 接库模块。 上述手持式读写器二次开发的系统的一个实施例中, 所述手持式读写器 管理模块还包括界面子模块, 用于显示操作结果。 上述手持式读写器二次开发的系统的一个实施例中, 所述手持式读写器 操作系统动态链接库模块包括设置为和 PC机通讯的通讯接口和设置为接收 PC机控制的命令接口。 上述手持式读写器二次开发的系统的一个实施例中, 所述 PC机和手持 式读写器之间的通讯和命令通过消息进行, 所述消息的格式为: 消息头标识 +消息类型 +消息总长度 +消息体 +校验值 +消息尾标识。 另一方面, 本发明还公开了一种手持式读写器二次开发的方法, 包含以 下步 4聚: 操作系统动态链接库模块建立与手持式读写器的接口; 手持式读写器动态链接库模块建立与操作系统端的接口; 手持式读写器管理模块通过接口从操作系统动态链接库模块接收命令, 进行手持式读写器的管理。 上述手持式读写器二次开发的方法的一个实施例中, 所述操作系统的接 口与所述手持式读写器的接口形式一致。 上述手持式读写器二次开发的方法的一个实施例中, 所述 PC机和手持 式读写器之间的通讯和命令通过消息进行, 所述消息的格式为: 消息头标识 +消息类型 +消息总长度 +消息体 +校验值 +消息尾标识。 和现有技术相比, 本发明的有益效果在于: 本发明公开的手持式读写器二次开发的系统包含位于操作系统端的操作 系统动态链接库模块、 位于手持式读写器端的读写器动态链接库模块和手持 式读写器管理模块, 本发明中, 操作系统动态链接库模块建立与手持式读写 器的接口, 手持式读写器动态链接库模块建立与操作系统端的接口后, 手持 式读写器管理模块通过接口, 从操作系统动态链接库模块接收命令, 进行手 持式读写器的管理, 从而可以把方便地把在手持式读写器端进行的二次开发 转移到操作系统端, 操作人员无需掌握手持式读写器的操作即可进行二次开 发, 降低了对操作人员的技术要求, 降低了开发难度和成本。 附图说明 图 1示例性地描述了本发明一个实施例的手持式读写器二次开发系统结 构图; 图 2示例性地描述了本发明一个实施例的手持式读写器二次开发方法的 流程图; 图 3示例性地描述了本发明一个实施例的手持式读写器二次开发方法的 内部命令执行流程。 具体实施方式 下面对照附图并结合具体实施方式对本发明进行进一步详细说明。 如图 1所示, 本发明一个实施例的手持式读写器二次开发的系统, 包含 位于操作系统端的操作系统动态链接库模块、 位于手持式读写器端的读写器 动态链接库模块和手持式读写器管理模块。 TECHNICAL FIELD The present invention relates to the field of communications, and in particular, to a secondary development method and a development system for a handheld reader/writer. BACKGROUND OF THE INVENTION As a portable reader, the handheld reader/writer meets the needs of various applications in the mobile environment, and has played a huge role in the fields of intelligent transportation, warehousing and logistics, and asset management. With the rise of Internet of Things technology, RFID technology has been rapidly developed, and the functions of current handheld readers have been comprehensively improved. Existing handheld readers have already covered 2D barcode scanning and lasers. Positioning, camera, OBU card issuance in ETC technology, ultra-high frequency applications, high frequency applications and many other fields, the application field has increased, and higher requirements are put forward for the software development of handheld readers. Handheld readers, as a device, need to provide users with various functions for controlling the operation of the handheld reader. The user calls this function to control the handheld reader to perform certain operations, such as controlling handheld reading and writing. The device counts the label, and after checking the content of the label, it further applies according to the meaning of the label content, such as storage, classification, and the like. The secondary development of the handheld reader is the development work by calling the interface of the device, that is, by calling the interface of the device to develop various functions. The current secondary development of handheld readers is usually through a serial port directly connected to a PDA or a board supporting a specific function, while a PDA usually uses a Windows Mobile or Windows CE operating system. The .NET Compact Framework and Java provided by Microsoft provide development support for portable devices. Therefore, the development of handheld readers is generally a direct call to the secondary development interface supported on the PDA operating system. For applications developed directly on handheld readers, it can be used normally through existing interfaces, but when the handheld reader is controlled by the application system as a module of the entire application system, the handheld is controlled by the PC. When the reader is working, if the handheld reader only provides the above interface, The user needs to communicate multiple times, multiple definitions and multiple calls to achieve this function, which increases the workload of development and has higher technical requirements for users. For the user, the operating system of the mobile device used on Windows CE or Windows Mobile is essentially different from the operating system on the PC, so the user needs to learn the new operating system again to perform secondary development, adding secondary development. Difficulty and cost, at the same time, the above-mentioned interface enables the secondary development of the handheld reader to develop an application system as a transit and connection link on the PDA, which increases the cost. SUMMARY OF THE INVENTION The present invention provides a secondary development method and development system for a handheld reader/writer, which can reduce the workload, the difficulty and cost of development. In order to solve the above technical problem, the present invention adopts the following technical solutions: In one aspect, the present invention discloses a system for secondary development of a handheld reader/writer, comprising an operating system dynamic link library module located at an operating system end, located in a handheld Reader/writer dynamic link library module and handheld reader management module, wherein the operating system dynamic link library module is set to establish an interface with the handheld reader, the handheld reader dynamic link library module Set to establish an interface with the operating system, the handheld reader management module is configured to receive commands from the operating system dynamic link library module through the interface to manage the handheld reader. In an embodiment of the system for secondary development of the handheld reader/writer, the interface of the operating system is consistent with the interface form of the handheld reader/writer. In an embodiment of the system for secondary development of the handheld reader/writer, the operating system dynamic link library module includes an interface submodule and a driving submodule; wherein the interface submodule comprises a handheld reader and a handheld reader The communication interface of the communication and the command interface configured to control the handheld reader to perform various services; the driver submodule is configured to provide a driver. In an embodiment of the system for secondary development of the handheld reader/writer, the handheld reader/writer management module includes a driver submodule and a call loading submodule, wherein the driver submodule is configured to provide a driver, The call load submodule is set to call and load the handheld reader dynamic link library module. In an embodiment of the system for secondary development of the handheld reader/writer, the handheld reader/writer management module further includes an interface sub-module for displaying an operation result. In an embodiment of the system for secondary development of the handheld reader/writer, the handheld reader operating system dynamic link library module comprises a communication interface configured to communicate with a PC and a command interface configured to receive PC control. . In an embodiment of the system for secondary development of the handheld reader/writer, the communication and the command between the PC and the handheld reader are performed by using a message, and the format of the message is: message header identifier + message type + message total length + message body + check value + message tail identifier. In another aspect, the present invention also discloses a method for secondary development of a handheld reader/writer, which comprises the following steps: an operating system dynamic link library module establishes an interface with a handheld reader/writer; The link library module establishes an interface with the operating system side; the handheld reader/writer management module receives commands from the operating system dynamic link library module through the interface, and manages the handheld reader/writer. In an embodiment of the method for secondary development of the handheld reader/writer, the interface of the operating system is consistent with the interface form of the handheld reader/writer. In an embodiment of the method for secondary development of the handheld reader/writer, the communication and the command between the PC and the handheld reader are performed by using a message, and the format of the message is: message header identifier + message type + message total length + message body + check value + message tail identifier. Compared with the prior art, the beneficial effects of the present invention are as follows: The system for secondary development of the handheld reader/writer disclosed by the present invention comprises an operating system dynamic link library module located at the operating system end, and a reader/writer located at the handheld reader/writer end. The dynamic link library module and the handheld reader/writer management module, in the present invention, the operating system dynamic link library module establishes an interface with the handheld reader/writer, and the handheld reader dynamic link library module establishes an interface with the operating system terminal, The handheld reader management module receives commands from the operating system dynamic link library module through the interface to manage the handheld reader, thereby facilitating the transfer of the secondary development on the handheld reader to the operation. On the system side, the operator can perform the second opening without the operation of the handheld reader/writer. The hair is reduced, the technical requirements for the operator are reduced, and the development difficulty and cost are reduced. BRIEF DESCRIPTION OF DRAWINGS FIG. 1 exemplarily illustrates a structural diagram of a secondary development system of a handheld reader/writer according to an embodiment of the present invention; FIG. 2 exemplarily illustrates a secondary development method of a handheld reader/writer according to an embodiment of the present invention FIG. 3 exemplarily depicts an internal command execution flow of a secondary development method of a handheld reader/writer according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be further described in detail below with reference to the accompanying drawings. As shown in FIG. 1 , a system for secondary development of a handheld reader/writer according to an embodiment of the present invention includes an operating system dynamic link library module located at an operating system end, a reader/writer dynamic link library module at a handheld reader/writer end, and Handheld reader management module.
PC机是最常用的操作系统端, 下面以 PC机为例, 结合附图, 说明手持 式读写器二次开发的方法和系统。 实施例一: 如图 1所示, 本发明一个实施例的手持式读写器二次开发的系统, 包含 位于操作系统端的操作系统动态链接库模块、 位于手持式读写器端的读写器 动态链接库模块和手持式读写器管理模块, 其中, 操作系统动态链接库模块 设置为建立与手持式读写器的接口, 手持式读写器动态链接库模块设置为建 立与操作系统端的接口, 手持式读写器管理模块设置为通过接口, 从操作系 统动态链接库模块接收命令, 进行手持式读写器的管理。 下面分别说明各模块的作用。 操作系统动态链接库模块包括接口子模块和驱动子模块。 接口子模块包括设置为和手持式读写器通讯的通讯接口和设置为控制手 持式读写器执行各种业务的命令接口。 驱动子模块设置为提供各种驱动程序, 其提供的驱动程序主要包括: 用于封装命令和解析返回结果的驱动程序; 支持 PC机和手持式读写器之间通过串口通讯的驱动程序; 支持 PC机和手持式读写器之间通过 USB口通讯的驱动程序; 支持 PC机和手持式读写器之间通过网口通讯的驱动程序; 支持 PC机和手持式读写器之间通过 Wifi通讯的驱动程序。 手持式读写器管理模块用于手持式读写器的管理, 包括驱动子模块、 调 用加载子模块和界面子模块。 驱动子模块设置为提供各种驱动程序, 其提供的驱动程序主要包括: 支持手持式读写器和 PC机之间通过串口通讯的驱动程序; 支持手持式读写器和 PC机之间通过 USB口通讯的驱动程序; 支持手持式读写器和 PC机之间通过网口通讯的驱动程序; 支持手持式读写器和 PC机之间通过无线保真 ( Wifi )通讯的驱动程序。 驱动程序执行的功能主要包括消息解析、 消息转发等。 消息解析是解析从 PC端通过调用动态链接库时发送的命令消息, 并根 据命令消息执行相应的命令; 消息转发包括消息接收和消息发送, 消息接收 主要用于接收 PC端通过调用动态链接库时发送的命令消息, 消息发送主要 用于返回命令的执行结果。 调用加载子模块设置为调用、 加载手持式读写器动态链接库模块, 包括 加载动态链接库、 调用各种业务功能函数等。 界面子模块设置为显示操作结果,其显示的内容包括系统是否启动成功、 业务操作是否成功等, 还提供声音提示功能。 显示操作结构可使操作人员了解手持式读写器的运行状况, 可根据其运 行状况及时做出调整, 给用户提供了更人性化、 更贴心的服务。 手持式读写器操作系统动态链接库模块包括用于和 PC机通讯的通讯接 口和用于接收 PC机控制的命令接口。 The PC is the most commonly used operating system. The PC and the following take the PC as an example to illustrate the method and system for secondary development of the handheld reader. Embodiment 1 As shown in FIG. 1 , a system for secondary development of a handheld reader/writer according to an embodiment of the present invention includes an operating system dynamic link library module located at an operating system end, and a reader/writer dynamic at a handheld reader/writer end. a link library module and a handheld reader management module, wherein the operating system dynamic link library module is set to establish an interface with the handheld reader, and the handheld reader dynamic link library module is set to establish an interface with the operating system. The handheld reader management module is configured to receive commands from the operating system dynamic link library module through the interface to manage the handheld reader. The function of each module is explained below. The operating system dynamic link library module includes an interface submodule and a driver submodule. The interface sub-module includes a communication interface configured to communicate with the handheld reader and a command interface configured to control the handheld reader to perform various services. The driver submodule is configured to provide various drivers, and the driver provided mainly includes: a driver for encapsulating commands and parsing the returned result; a driver supporting communication between the PC and the handheld reader through the serial port; Driver for communication between the PC and the handheld reader via the USB port; Supports the driver for communication between the PC and the handheld reader through the network port; Supports the connection between the PC and the handheld reader via Wifi Communication driver. The handheld reader management module is used for the management of the handheld reader, including the driver submodule, the call loading submodule, and the interface submodule. The driver submodule is set to provide various drivers, and the driver provided mainly includes: a driver for supporting communication between the handheld reader and the PC through the serial port; supporting the USB between the handheld reader and the PC Port communication driver; A driver that supports communication between the handheld reader and the PC through the network port; a driver that supports wireless fidelity (Wifi) communication between the handheld reader and the PC. The functions performed by the driver mainly include message parsing, message forwarding, and so on. The message parsing is to parse the command message sent from the PC when calling the dynamic link library, and execute the corresponding command according to the command message; the message forwarding includes message receiving and message sending, and the message receiving is mainly used when receiving the PC end by calling the dynamic link library. The command message sent, the message is sent mainly to return the execution result of the command. The call load submodule is set to call and load the handheld reader dynamic link library module, including loading the dynamic link library, calling various business function functions, and the like. The interface sub-module is set to display the operation result, and the displayed content includes whether the system is successfully started, whether the business operation is successful, etc., and provides an audible prompt function. The display operation structure allows the operator to understand the operation status of the handheld reader, and can make timely adjustments according to its operating conditions, providing users with a more humane and more intimate service. Handheld Reader Operating System The dynamic link library module includes a communication interface for communicating with a PC and a command interface for receiving PC control.
PC 机提供的二次开发的接口和手持式读写器提供的二次开发的接口形 式一致, 可以方便的直连, 可以简化用户的开发, 提高开发效率。 釆用本发明的系统, 开发人员只需要将手持式读写器与 PC机相连, 即 可在 PC机端进行二次开发, 从而把方便地把在手持式读写器端进行的二次 开发转移到操作系统端, 操作人员无需掌握手持式读写器的操作即可进行二 次开发, 降低了对操作人员的技术要求, 降低了开发难度和成本。 The secondary development interface provided by the PC is consistent with the secondary development interface provided by the handheld reader, which can be easily connected directly, which can simplify user development and improve development efficiency. With the system of the present invention, the developer only needs to connect the handheld reader to the PC, and then can perform secondary development on the PC side, thereby facilitating the secondary development on the handheld reader side. When it is transferred to the operating system, the operator can perform secondary development without having to master the operation of the handheld reader, which reduces the technical requirements for the operator and reduces the development difficulty and cost.
PC机和手持式读写器之间通讯的消息格式为: 消息头标识 +消息类型 +消息总长度 +消息体 +校验值 +消息尾标识。 消息的各部分定义如下: 消息头: 特殊字符; 消息类型: 用于代表具体的命令消息, 手持式读写器根据此类型调用具 体的接口, 如读消息、 清点消息等; 消息总长度: 所有消息项的字节长度之和; 消息体: 调用接口所需的参数的结构体, 此处为字节流格式; 校验值: 用于验证传输过程是否出错的值; 消息尾标识: 特殊字符。 实施例二: 如图 2所示,手持式读写器二次开发一个实施例的方法, 包含以下步 4聚: 步骤 101 , 手持式读写器与 PC机建立物理连接。 手持式读写器与 PC 机之间的物理连接方式包括串口、 USB 口、 WIFI 口或者网口等。 步骤 102 , PC机根据物理连接方式的不同, 启动 PC机接口。 步骤 102, 手持式读写器通过手持式读写器接口与 PC机接口相连,操作 成功后返回结果至 PC机。 步骤 103 , PC机通过调用接口发送各种业务命令至手持式读写器。 步骤 104, 手持式读写器收到业务命令后, 对消息进行解析并执行各种 业务命令。 步骤 105 , 手持式读写器操作成功后, 返回操作结果至 PC机。 如图 3所示, 本发明一个实施例的手持式读写器二次开发方法的内部命 令执行流程包含以下步骤: 步骤 201 , PC机加载动态链接库, 调用其中的具体接口。 步骤 202 , PC机接口对 PC机动态链接库参数进行验证。 步骤 203 , PC机将验证合法的参数作为消息体, 增加消息头标识、 消息 类型、 消息总长度、 校验值、 消息尾标识后成为命令消息, 并将命令消息转 化为连续的字节流。 步骤 204 , PC机将命令消息发送给手持式读写器。 步骤 205 , 手持式读写器收到命令消息后, 根据消息类型调用手持式读 写器接口, 并将消息体转换为参数。 步骤 206, 手持式读写器执行命令消息中的命令。 步骤 207, 手持式读写器将执行结果作为消息体, 添加消息头标识、 消 息类型、 校验值、 消息尾标识后成为返回消息, 并将返回消息转换为字节流。 步骤 208, 手持式读写器将返回消息发送给 PC机。 步骤 209, PC机收到返回消息中的命令执行结果, 对消息进行解析, 并 将其中的消息体返回给手持式读写器。 本发明公开的手持式读写器二次开发的系统包含位于操作系统端的操作 系统动态链接库模块、 位于手持式读写器端的读写器动态链接库模块和手持 式读写器管理模块, 本发明中, 操作系统动态链接库模块建立与手持式读写 器的接口, 手持式读写器动态链接库模块建立与操作系统端的接口后, 手持 式读写器管理模块通过接口, 从操作系统动态链接库模块接收命令, 进行手 持式读写器的管理, 从而可以把方便地把在手持式读写器端进行的二次开发 转移到操作系统端, 操作人员无需掌握手持式读写器的操作即可进行二次开 发, 降低了对操作人员的技术要求, 降低了开发难度和成本。 此外, 本发明 中, 操作系统的接口与所述手持式读写器的接口形式一致, 可方便的直连, 因此可以简化用户的开发, 提高开发效率。 以上内容是结合具体的实施方式对本发明所作的进一步详细说明, 不能 认定本发明的具体实施只局限于这些说明。 对于本发明所属技术领域的普通 技术人员来说, 在不脱离本发明构思的前提下, 还可以做出若千简单推演或 替换, 都应当视为属于本发明的保护范围。 The message format of communication between the PC and the handheld reader is: message header identification + message type + total message length + message body + check value + message tail identifier. The various parts of the message are defined as follows: Message header: Special characters; Message type: Used to represent specific command messages. Handheld readers call specific interfaces based on this type, such as reading messages, counting messages, etc.; Total message length: All The sum of the byte lengths of the message items; Message body: The structure of the parameter required to call the interface, here the byte stream format; Check value: The value used to verify the error of the transmission process; End of message identifier: Special characters . Embodiment 2: As shown in FIG. 2, the method for secondary development of an embodiment of the handheld reader/writer includes the following steps: Step 101: The handheld reader/writer establishes a physical connection with the PC. The physical connection between the handheld reader and the PC includes serial port, USB port, WIFI port or network port. Step 102: The PC starts the PC interface according to different physical connection modes. Step 102: The handheld reader/writer is connected to the PC interface through a handheld reader interface, and returns the result to the PC after the operation is successful. Step 103: The PC sends various service commands to the handheld reader by calling the interface. Step 104: After receiving the service command, the handheld reader parses the message and executes various service commands. Step 105: After the handheld reader is successfully operated, return the operation result to the PC. As shown in FIG. 3, the internal command execution flow of the secondary development method of the handheld reader/writer according to an embodiment of the present invention includes the following steps: Step 201: The PC loads the dynamic link library and invokes the specific interface therein. Step 202: The PC interface verifies the PC dynamic link library parameter. Step 203: The PC verifies the valid parameter as a message body, adds a message header identifier, a message type, a total message length, a check value, and a message tail identifier to become a command message, and converts the command message into a continuous byte stream. Step 204: The PC sends a command message to the handheld reader/writer. Step 205: After receiving the command message, the handheld reader/writer calls the handheld reader interface according to the message type, and converts the message body into a parameter. Step 206: The handheld reader/writer executes the command in the command message. Step 207: The handheld reader/writer reads the execution result as a message body, adds a message header identifier, a message type, a check value, and a message tail identifier to become a return message, and converts the return message into a byte stream. Step 208, the handheld reader sends a return message to the PC. Step 209: The PC receives the command execution result in the return message, parses the message, and returns the message body to the handheld reader/writer. The system for secondary development of the handheld reader/writer disclosed by the invention comprises an operating system dynamic link library module located at the operating system end, a reader/writer dynamic link library module located at the handheld reader/writer end, and a handheld reader/writer management module, In the invention, the operating system dynamic link library module establishes an interface with the handheld reader, and the handheld reader dynamic link library module establishes an interface with the operating system, and is handheld The reader/writer management module receives commands from the operating system dynamic link library module through the interface, and manages the handheld reader/writer, thereby conveniently transferring the secondary development performed on the handheld reader/writer side to the operating system. At the end, the operator can perform secondary development without having to master the operation of the handheld reader, which reduces the technical requirements of the operator and reduces the development difficulty and cost. In addition, in the present invention, the interface of the operating system is consistent with the interface form of the handheld reader/writer, and can be conveniently connected directly, thereby simplifying user development and improving development efficiency. The above is a further detailed description of the present invention in connection with the specific embodiments, and the specific implementation of the invention is not limited to the description. It will be apparent to those skilled in the art that the present invention may be practiced without departing from the spirit and scope of the invention.

Claims

权 利 要 求 书 Claim
1. 一种手持式读写器二次开发的系统, 包含位于操作系统端的操作系统 动态链接库模块、 位于手持式读写器端的手持式读写器动态链接库模 块和手持式读写器管理模块, 其中, 所述操作系统动态链接库模块设 置为建立与手持式读写器的接口, 所述手持式读写器动态链接库模块 设置为建立与操作系统端的接口, 所述手持式读写器管理模块设置为 通过接口, 从操作系统动态链接库模块接收命令, 进行手持式读写器 的管理。 1. A system for secondary development of a handheld reader, comprising an operating system dynamic link library module on the operating system side, a handheld reader dynamic link library module on the handheld reader side, and a handheld reader management a module, wherein the operating system dynamic link library module is configured to establish an interface with a handheld reader, the handheld reader dynamic link library module is configured to establish an interface with an operating system, the handheld read and write The device management module is configured to receive commands from the operating system dynamic link library module through the interface to manage the handheld reader/writer.
2. 如权利要求 1 所述的手持式读写器二次开发的系统, 其中, 所述操作 系统的接口与所述手持式读写器的接口形式一致。 2. The system for secondary development of a handheld reader/writer according to claim 1, wherein the interface of the operating system is in the same form as the interface of the handheld reader/writer.
3. 如权利要求 1或 2所述的手持式读写器二次开发的系统, 其中, 所述 操作系统动态链接库模块包括接口子模块和驱动子模块; 其中, 所述 接口子模块包括用于和手持式读写器通讯的通讯接口和用于控制手持 式读写器执行各种业务的命令接口; 所述驱动子模块设置为提供驱动程序。 The system for secondary development of the handheld reader/writer according to claim 1 or 2, wherein the operating system dynamic link library module comprises an interface submodule and a driving submodule; wherein the interface submodule comprises And a communication interface for communicating with the handheld reader/writer and a command interface for controlling the handheld reader to perform various services; the driver submodule is configured to provide a driver.
4. 如权利要求 1或 2所述的手持式读写器二次开发的系统, 其中, 所述 手持式读写器管理模块包括驱动子模块和调用加载子模块, 其中, 所 述驱动子模块设置为提供驱动程序,所述调用加载子模块设置为调用、 加载手持式读写器动态链接库模块。 The system for secondary development of the handheld reader/writer according to claim 1 or 2, wherein the handheld reader/writer management module comprises a driving submodule and a calling loading submodule, wherein the driving submodule Set to provide a driver, the call load submodule is set to call, load the handheld reader dynamic link library module.
5. 如权利要求 4所述的手持式读写器二次开发的系统, 其中, 所述手持 式读写器管理模块还包括界面子模块, 设置为显示操作结果。 5. The system for secondary development of a handheld reader/writer according to claim 4, wherein the handheld reader/writer management module further comprises an interface sub-module configured to display an operation result.
6. 如权利要求 1或 2所述的手持式读写器二次开发的系统, 其中, 所述 手持式读写器操作系统动态链接库模块包括设置为和 PC 机通讯的通 讯接口和设置为接收 PC机控制的命令接口。 The secondary development system of the handheld reader/writer according to claim 1 or 2, wherein the handheld reader operating system dynamic link library module comprises a communication interface configured to communicate with a PC and is set to Receive the command interface controlled by the PC.
7. 如权利要求 6 所述的手持式读写器二次开发的系统, 其中, 所述 PC 机和手持式读写器之间的通讯和命令通过消息进行, 所述消息的格式 为: 消息头标识 +消息类型 +消息总长度 +消息体 +校验值 +消息尾标 识。 7. The system for secondary development of the handheld reader/writer according to claim 6, wherein the communication and the command between the PC and the handheld reader are performed by a message, and the format of the message is: Message header ID + message type + message total length + message body + check value + message tail identifier.
8. —种手持式读写器二次开发的方法, 包含以下步骤: 操作系统动态链接库模块建立与手持式读写器的接口; 手持式读写器动态链接库模块建立与操作系统端的接口; 手持式读写器管理模块通过接口从所述操作系统动态链接库模块 接收命令, 进行手持式读写器的管理。 8. A method for secondary development of a handheld reader, comprising the following steps: an operating system dynamic link library module establishes an interface with a handheld reader; a handheld reader dynamic link library module establishes an interface with an operating system The handheld reader/writer management module receives commands from the operating system dynamic link library module through the interface to manage the handheld reader/writer.
9. 如权利要求 8所述的手持式读写器二次开发的方法, 其中, 所述操作 系统的接口与所述手持式读写器的接口形式一致。 9. The method of secondary development of a handheld reader/writer according to claim 8, wherein the interface of the operating system is in the same form as the interface of the handheld reader/writer.
10. 如权利要求 8或 9所述的手持式读写器二次开发的方法, 其中, 所述 PC机和手持式读写器之间的通讯和命令通过消息进行,所述消息的格 式为: 消息头标识 +消息类型 +消息总长度 +消息体 +校验值 +消息尾标 识。 10. The method of secondary development of a handheld reader/writer according to claim 8 or 9, wherein communication and commands between the PC and the handheld reader are performed by a message, and the format of the message is : Message header ID + message type + message total length + message body + check value + message tail identifier.
PCT/CN2010/079783 2010-09-28 2010-12-14 Secondary development method and development system of hand-held reader WO2012040982A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010295069.3 2010-09-28
CN201010295069.3A CN102004638B (en) 2010-09-28 2010-09-28 Secondary development method and development system of handheld reader-writer

Publications (1)

Publication Number Publication Date
WO2012040982A1 true WO2012040982A1 (en) 2012-04-05

Family

ID=43812020

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/079783 WO2012040982A1 (en) 2010-09-28 2010-12-14 Secondary development method and development system of hand-held reader

Country Status (2)

Country Link
CN (1) CN102004638B (en)
WO (1) WO2012040982A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569803B (en) * 2016-10-19 2020-04-03 东信和平科技股份有限公司 Reader-writer driving method and device and card writing device
CN107341423B (en) * 2017-07-13 2020-10-09 金邦达有限公司 Test method and test equipment for smart card and computer readable storage medium
CN118377465B (en) * 2024-06-20 2024-09-24 昆山龙雨智能科技有限公司 Method and device for bridging application software and NFC reader-writer

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2854695Y (en) * 2005-06-22 2007-01-03 联想(北京)有限公司 Mobile storage device with storage and card reading function
CN101441566A (en) * 2008-11-18 2009-05-27 腾讯科技(深圳)有限公司 Embedded type platform and method for dynamically linking program on the same
US7606973B2 (en) * 2004-09-08 2009-10-20 International Business Machines Corporation System and method for pervasive computing with a portable non-volatile memory device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2678018Y (en) * 2004-01-08 2005-02-09 上海华申智能卡应用系统有限公司 Double-frequency hand electronic label read-write apparatus
CN101236611B (en) * 2007-02-02 2012-07-18 成都西谷曙光数字技术有限公司 Intelligent electronic label system
CN101819524B (en) * 2009-02-27 2013-12-04 中兴通讯股份有限公司 Access method of RFID (Radio Frequency Identification Device) reader and interface driving device thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7606973B2 (en) * 2004-09-08 2009-10-20 International Business Machines Corporation System and method for pervasive computing with a portable non-volatile memory device
CN2854695Y (en) * 2005-06-22 2007-01-03 联想(北京)有限公司 Mobile storage device with storage and card reading function
CN101441566A (en) * 2008-11-18 2009-05-27 腾讯科技(深圳)有限公司 Embedded type platform and method for dynamically linking program on the same

Also Published As

Publication number Publication date
CN102004638A (en) 2011-04-06
CN102004638B (en) 2015-07-22

Similar Documents

Publication Publication Date Title
US20240296081A1 (en) Method, computer device and storage medium for protocol stack data transmission based on linux system
CN202171797U (en) System convenient for driver-free printing and computing equipment
CN102811379B (en) A kind of television set, message treatment method and system
CN102945169A (en) Native APP fused Web APP development system based on Android
CA2628235A1 (en) Near field communication host controller interface
WO2006071516A1 (en) System and method for monitoring and training users of mobile devices in a network
EP2341692B1 (en) Communication between integrated device and mobile application client on mobile personal communication device
CN105162673A (en) Data transmission interface and method
JP2013516011A (en) Token for communicating with host device, and corresponding communication system and method
WO2010022642A1 (en) Enfc mobile terminal and electronic payment control method thereof
WO2012040982A1 (en) Secondary development method and development system of hand-held reader
US9049201B1 (en) Communication between integrated device and mobile application client on mobile personal communication device
CN111757282A (en) Short message sending method and device
US9078282B2 (en) Method and apparatus for implementing network device function of wireless communication terminal
WO2021057351A1 (en) Apparatus and method for controlling android bluetooth in glibc environment, and terminal device
CN113177202A (en) Data calling method and system, double-chip sales terminal and readable storage medium
CN112866268A (en) Message processing method and system
CN200973163Y (en) Short message system for universal logistics operation process
CN112835836A (en) Method and device for information interaction between host and smart card
CN102385557B (en) Drive processing method and processing device
CN114329457A (en) Communication method and device
CN110795149A (en) Terminal platform operation method, device, equipment and readable storage medium
CN104104646B (en) Security information interaction system, device and method based on safety barrier proactive command
CN116842970B (en) Information processing method, device, equipment and storage medium
CN116170506B (en) System and method for realizing loose coupling butt joint of mobile terminal signature service and reader

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

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

Country of ref document: EP

Kind code of ref document: A1