WO2013016994A1 - Message sending method and system - Google Patents

Message sending method and system Download PDF

Info

Publication number
WO2013016994A1
WO2013016994A1 PCT/CN2012/077767 CN2012077767W WO2013016994A1 WO 2013016994 A1 WO2013016994 A1 WO 2013016994A1 CN 2012077767 W CN2012077767 W CN 2012077767W WO 2013016994 A1 WO2013016994 A1 WO 2013016994A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
data
protocol type
protocol
module
Prior art date
Application number
PCT/CN2012/077767
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 WO2013016994A1 publication Critical patent/WO2013016994A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/77Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for interrogation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0492Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload by using a location-limited connection, e.g. near-field communication or limited proximity of entities

Definitions

  • the present invention relates to the field of communications, and in particular to a message sending method and system.
  • RFID Radio Frequency Identification
  • RFID application systems are often deployed in an enterprise network, working with RFID devices, middleware systems, and other application systems within the enterprise network.
  • RFID application systems There are a large number of frequent messages in the process of working together, and these messages
  • the type of protocol and the way it is delivered are different.
  • the developer of the application system needs to understand the specific details and delivery technology of each message protocol while developing the business function, which increases the learning cost of the developer and also reduces the learning cost.
  • the present invention provides a message transmitting method and system to at least solve the above problem that the RFID application system is directly responsible for the delivery of messages, which limits the scalability of the application system.
  • a message sending system including: a message protocol parsing module configured to parse a message from an RFID application system to obtain a protocol type of a message; and a message data processing module configured to be based on a protocol type Customizing the message data of the message; the message data conversion module is configured to perform data conversion and encapsulation on the customized message data according to the protocol type; the message protocol connection module is configured to send the encapsulated message data to the message destination.
  • the system further includes: an external interface module, configured to receive a message sending request sent by the RFID application system to the system, where the message sending request carries the message to be sent.
  • the system further comprises: an initialization module configured to initialize the system based on initialization information read from an external configuration file.
  • a message sending method including: parsing a message from an RFID application system to obtain a protocol type of the message; and customizing the message data of the message according to the protocol type; according to the protocol type Data conversion and encapsulation of the customized message data; sending the encapsulated message data to the message destination.
  • the method before parsing the message from the RFID application system, the method further includes: receiving a message sending request sent by the RFID application system to the system, where the message sending request carries the message to be sent.
  • the method before receiving the message sending request sent by the RFID application system to the system, the method further includes: initializing the system according to the initialization information read from the external configuration file.
  • the message from the RFID application system is parsed, and the protocol type of the message is obtained by: parsing and translating the message header of the message, and extracting the protocol type attribute of the message from the message.
  • the method before the message data of the message is customized according to the protocol type, the method further includes: determining whether the system supports the protocol type; if not, returning the prompt information to the RFID application system.
  • the initialization data matching the protocol type is extracted from the external configuration file, and the data processing module and the message data conversion module are initialized.
  • transmitting the encapsulated message data to the message destination comprises: establishing a connection with the message destination, and transmitting the encapsulated message data to the message destination.
  • the RFID application system is separated from the message transmission, thereby reducing the coupling degree between the business logic of the RFID application and the message transmission, thereby achieving the effects of improving the development efficiency and increasing the system scalability.
  • FIG. 1 is a block diagram of a message transmitting system according to a first embodiment of the present invention
  • FIG. 2 is a flow chart of a message sending method according to a second embodiment of the present invention
  • 3 is a block diagram of a message sending system according to a third embodiment of the present invention
  • FIG. 4 is a schematic diagram of a message sending process according to Embodiment 3 of the present invention.
  • FIG. 1 is a structural block diagram of a message transmitting system according to Embodiment 1 of the present invention. As shown in FIG. 1, the system includes: a message protocol parsing module 10, a message data processing module 20, a message data conversion module 30, and a message protocol connection module 40.
  • the message protocol parsing module 10, the message data processing module 20, the message data converting module 30, and the message protocol connecting module 40 are sequentially connected.
  • the message protocol parsing module 10 is configured to parse the message from the RFID application system to obtain a protocol type of the message;
  • the message data processing module 20 is configured to customize the message data of the message according to the protocol type;
  • the message data conversion module 30 And being configured to perform data conversion and encapsulation on the customized message data according to the protocol type;
  • the message protocol connection module 40 is configured to send the encapsulated message data to the message destination.
  • the system further includes an external interface module (not shown), the external interface module is configured to receive
  • FIG. 2 is a flowchart of a message sending method according to Embodiment 2 of the present invention. As shown in Figure 2, the following steps are included: Step S202, parsing the message from the RFID application system to obtain a protocol type of the message. Step S204: Customizing the message data of the message according to the protocol type. Step S206: Perform data conversion and encapsulation on the customized message data according to the protocol type.
  • Step S208 sending the encapsulated message data to the message destination.
  • the method further includes: initializing the system according to the initialization information read from the external configuration file; and receiving a message sending request sent by the RFID application system to the system, where the message sending request carries the sending request Message.
  • Step S202 includes: parsing and translating a message header of the message, and extracting a protocol type attribute of the message.
  • the method further includes: determining whether the system supports the protocol type; if not, returning the prompt information to the RFID application system; if yes, extracting the initialization data matching the protocol type from the external configuration file, and Initialize the data processing module and the message data conversion module.
  • Step S208 includes: establishing a connection with the message destination, and sending the encapsulated message data to the message destination.
  • FIG. 3 is a structural block diagram of a message transmission system according to Embodiment 3 of the present invention. As shown in FIG. 3, the system includes: a message protocol parser 10, a message data processing engine 20, a message data conversion engine 30, a message protocol connector 40, an initialization module 50, and an external interface module 60.
  • the functions implemented by each functional module are as follows:
  • the message protocol parser 10 is responsible for parsing and translating the message header, and extracting key attributes of the protocol message.
  • the message data processing engine 20 is responsible for processing the message data, but does not change the type of the message data after processing.
  • the message data conversion engine 30 is responsible for type conversion of the message data according to the protocol requirements.
  • the message protocol connector 40 is responsible for establishing a connection with the message destination, completing a specific message sending task, and feeding back the result.
  • the initialization module 50 is responsible for reading the specific implementation of the message protocol parser 10, the message data data processor 20, the message data converter 30, the message protocol connector 40, and the matching relationship between these implementations and protocols from the external configuration file.
  • the external interface module 60 provides a unified interface for sending messages to the application system.
  • 4 is a schematic diagram of a message sending process according to Embodiment 3 of the present invention
  • FIG. 5 is a flow chart of a message sending method according to Embodiment 3 of the present invention.
  • the RFID application system sends a message to a message sending system, and the message is sent.
  • the sending system completes the processing and conversion of the message data and then sends it to the message destination.
  • FIG. 4 is a schematic diagram of a message sending process according to Embodiment 3 of the present invention
  • FIG. 5 is a flow chart of a message sending method according to Embodiment 3 of the present invention.
  • Step S502 initializing a specific implementation of a message protocol parser, a message data data processor, a message data converter, a message protocol connector, and determining these Achieve a matching relationship with the relevant protocol.
  • Step S504 the application system sends a request for sending a message to the system through the external interface module of the system, and the external interface module transfers the message flow to the message protocol parser.
  • Step S506 the message protocol parser analyzes the message header and parses out the protocol type of the message.
  • step S508 it is determined whether the system supports the message protocol. If the system does not support the message protocol, step S418 is performed.
  • step S510 extracting a specific implementation of the message data processor and the message data converter matched with the protocol according to the protocol type, loading the message data processing engine and the message data conversion engine, and transmitting the message to the message data processing engine. deal with.
  • Step S512 the message data processing engine sequentially calls the message data processor in the engine to complete the customization processing of the message data, and the message is sent to the message data conversion engine for processing.
  • Step S514 the message enters the message data conversion engine, and the engine sequentially invokes the message data converter therein, completes the assembly of the message data according to the requirements of the data format of each message protocol, and sends the message to the message protocol connector for processing.
  • Step S516 the message is transmitted to the message protocol connector, and the message protocol connector is used to complete the specific message sending work.
  • the system can also automatically convert the data format when the message is sent. For example: The data objects generated in a business should be sent out by mail and JMS at the same time, and the mail data format is different from the JMS mode. If the service component only processes the business logic, how does it know this? What are the two data formats and how do you convert them? In this application scenario, the business logic only needs to delegate the message transmission to the message exchange framework, which completes the conversion of the message data. In addition, through this system, business functions are completely isolated from the message format. All transmission, conversion, and routing of messages are completely transparent to the service components.
  • 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 and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention provides a message sending method and system. The system comprises: a message protocol parsing module, configured to parse a message from an RFID application system to obtain a protocol type of the message; a message data processing module, configured to perform customized processing on message data of the message according to the protocol type; a message data transformation module, configured to perform, according to the protocol type, data transformation and encapsulation on the message data after customized processing; and a message protocol connection module, configured to send the encapsulated message data to a message destination. By means of the present invention, the RFID application system and message sending are separated, thereby reducing the coupling between service logic of an RFID application and message sending, and further improving the development efficiency and enhancing the system expansibility.

Description

消息发送方法及系统 技术领域 本发明涉及通信领域, 具体而言, 涉及一种消息发送方法及系统。 背景技术 随着物联网的高速发展, RFID (Radio Frequency Identification, 射频识别) 技术 逐渐进入到人们日常工作和生活中的各个领域, RFID应用系统的工作环境也变得日益 复杂。 RFID应用系统经常会被部署在一个企业网中, 与 RFID设备、 中间件系统、 以 及企业网内其它应用系统协同工作, 在协同工作的过程中会存在大量且频繁的消息传 递, 而且, 这些消息的协议类型和传递方式都是不同的。 在这种情况下, 为了完成消 息的组装和发送, 应用系统的开发人员在开发业务功能的同时, 还需要了解每种消息 协议的具体细节和传递技术, 增加了开发人员的学习成本, 也降低了开发人员对核心 业务功能的聚焦度。 同时, 由于 RFID应用系统直接负责消息的传递, 导致应用系统 中的业务逻辑和消息处理、 发送逻辑, 耦合在一起, 限制了应用系统的扩展性, 当需 要支持一种新消息协议时, 应用系统要做整体修改。 针对相关技术中由于 RFID应用系统直接负责消息的传递, 限制了应用系统的扩 展性的问题, 目前尚未提出有效的解决方案。 发明内容 本发明提供了一种消息发送方法及系统, 以至少解决上述由于 RFID应用系统直 接负责消息的传递, 限制了应用系统的扩展性的问题。 根据本发明的一个方面, 提供了一种消息发送系统, 包括: 消息协议解析模块, 设置为将来自 RFID应用系统的消息进行解析, 得到消息的协议类型; 消息数据处理 模块, 设置为根据协议类型对消息的消息数据进行定制化处理; 消息数据转换模块, 设置为根据协议类型对定制化处理后的消息数据进行数据转换和封装; 消息协议连接 模块, 设置为将封装后的消息数据发送至消息目的地。 优选地, 该系统还包括: 外部接口模块, 设置为接收 RFID应用系统向本系统发 送的消息发送请求, 其中, 消息发送请求中携带需发送的消息。 优选地, 该系统还包括: 初始化模块, 设置为根据从外部配置文件中读取的初始 化信息对本系统进行初始化。 根据本发明的另一方面, 提供了一种消息发送方法, 包括: 将来自 RFID应用系 统的消息进行解析, 得到消息的协议类型; 根据协议类型对消息的消息数据进行定制 化处理; 根据协议类型对定制化处理后的消息数据进行数据转换和封装; 将封装后的 消息数据发送至消息目的地。 优选地, 将来自 RFID应用系统的消息进行解析之前, 还包括: 接收 RFID应用系 统向本系统发送的消息发送请求, 其中, 消息发送请求中携带需发送的消息。 优选地, 接收 RFID应用系统向本系统发送的消息发送请求之前, 还包括: 根据 从外部配置文件中读取的初始化信息对本系统进行初始化。 优选地, 将来自 RFID应用系统的消息进行解析, 得到消息的协议类型包括: 对 消息的消息头进行解析和翻译, 从中提取消息的协议类型属性。 优选地, 根据协议类型对消息的消息数据进行定制化处理之前, 还包括: 判断本 系统是否支持协议类型; 如果否, 则向 RFID应用系统返回提示信息。 优选地, 如果本系统支持协议类型, 则从外部配置文件中提取与协议类型相匹配 的初始化数据, 并对数据处理模块和消息数据转换模块进行初始化。 优选地, 将封装后的消息数据发送至消息目的地包括: 与消息目的地建立连接, 并将封装后的消息数据发送至消息目的地。 通过本发明,采用将 RFID应用系统与消息发送相分离,从而降低了 RFID应用的 业务逻辑与消息发送的耦合度, 进而取得了提高开发效率, 增加系统扩展性的效果。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据本发明实施例一的消息发送系统结构框图; 图 2是根据本发明实施例二的消息发送方法流程图; 图 3是根据本发明实施例三的消息发送系统结构框图; 图 4是根据本发明实施例三的消息发送过程示意图; 以及 图 5是根据本发明实施例三的消息发送方法流程图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 实施例一 图 1是根据本发明实施例一的消息发送系统结构框图。如图 1所示, 该系统包括: 消息协议解析模块 10、 消息数据处理模块 20、 消息数据转换模块 30和消息协议连接 模块 40。 其中, 消息协议解析模块 10、 消息数据处理模块 20、 消息数据转换模块 30 和消息协议连接模块 40依次连接。 消息协议解析模块 10, 设置为将来自 RFID应用系统的消息进行解析, 得到消息 的协议类型; 消息数据处理模块 20, 设置为根据协议类型对消息的消息数据进行定制 化处理; 消息数据转换模块 30, 设置为根据协议类型对定制化处理后的消息数据进行 数据转换和封装; 消息协议连接模块 40, 设置为将封装后的消息数据发送至消息目的 地。 在上述实施例中,通过将 RFID应用系统与消息发送相分离,从而降低了 RFID应 用的业务逻辑与消息发送的耦合度, 进而取得了提高开发效率, 增加系统扩展性的效 果。 其中, 该系统还包括一外部接口模块(图中未示出), 该外部接口模块设置为接收The present invention relates to the field of communications, and in particular to a message sending method and system. BACKGROUND With the rapid development of the Internet of Things, RFID (Radio Frequency Identification) technology has gradually entered various fields of daily work and life, and the working environment of RFID application systems has become increasingly complicated. RFID application systems are often deployed in an enterprise network, working with RFID devices, middleware systems, and other application systems within the enterprise network. There are a large number of frequent messages in the process of working together, and these messages The type of protocol and the way it is delivered are different. In this case, in order to complete the assembly and delivery of the message, the developer of the application system needs to understand the specific details and delivery technology of each message protocol while developing the business function, which increases the learning cost of the developer and also reduces the learning cost. The focus of developers on core business functions. At the same time, because the RFID application system is directly responsible for the delivery of messages, the business logic and message processing and sending logic in the application system are coupled together, which limits the scalability of the application system. When a new message protocol needs to be supported, the application system Make an overall change. In view of the related art, since the RFID application system is directly responsible for the delivery of messages, the problem of the scalability of the application system is limited, and an effective solution has not been proposed yet. SUMMARY OF THE INVENTION The present invention provides a message transmitting method and system to at least solve the above problem that the RFID application system is directly responsible for the delivery of messages, which limits the scalability of the application system. According to an aspect of the present invention, a message sending system is provided, including: a message protocol parsing module configured to parse a message from an RFID application system to obtain a protocol type of a message; and a message data processing module configured to be based on a protocol type Customizing the message data of the message; the message data conversion module is configured to perform data conversion and encapsulation on the customized message data according to the protocol type; the message protocol connection module is configured to send the encapsulated message data to the message destination. Preferably, the system further includes: an external interface module, configured to receive a message sending request sent by the RFID application system to the system, where the message sending request carries the message to be sent. Preferably, the system further comprises: an initialization module configured to initialize the system based on initialization information read from an external configuration file. According to another aspect of the present invention, a message sending method is provided, including: parsing a message from an RFID application system to obtain a protocol type of the message; and customizing the message data of the message according to the protocol type; according to the protocol type Data conversion and encapsulation of the customized message data; sending the encapsulated message data to the message destination. Preferably, before parsing the message from the RFID application system, the method further includes: receiving a message sending request sent by the RFID application system to the system, where the message sending request carries the message to be sent. Preferably, before receiving the message sending request sent by the RFID application system to the system, the method further includes: initializing the system according to the initialization information read from the external configuration file. Preferably, the message from the RFID application system is parsed, and the protocol type of the message is obtained by: parsing and translating the message header of the message, and extracting the protocol type attribute of the message from the message. Preferably, before the message data of the message is customized according to the protocol type, the method further includes: determining whether the system supports the protocol type; if not, returning the prompt information to the RFID application system. Preferably, if the system supports the protocol type, the initialization data matching the protocol type is extracted from the external configuration file, and the data processing module and the message data conversion module are initialized. Preferably, transmitting the encapsulated message data to the message destination comprises: establishing a connection with the message destination, and transmitting the encapsulated message data to the message destination. Through the invention, the RFID application system is separated from the message transmission, thereby reducing the coupling degree between the business logic of the RFID application and the message transmission, thereby achieving the effects of improving the development efficiency and increasing the system scalability. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 1 is a block diagram of a message transmitting system according to a first embodiment of the present invention; FIG. 2 is a flow chart of a message sending method according to a second embodiment of the present invention; 3 is a block diagram of a message sending system according to a third embodiment of the present invention; FIG. 4 is a schematic diagram of a message sending process according to Embodiment 3 of the present invention; and FIG. 5 is a flow chart of a message sending method according to Embodiment 3 of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. 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. Embodiment 1 FIG. 1 is a structural block diagram of a message transmitting system according to Embodiment 1 of the present invention. As shown in FIG. 1, the system includes: a message protocol parsing module 10, a message data processing module 20, a message data conversion module 30, and a message protocol connection module 40. The message protocol parsing module 10, the message data processing module 20, the message data converting module 30, and the message protocol connecting module 40 are sequentially connected. The message protocol parsing module 10 is configured to parse the message from the RFID application system to obtain a protocol type of the message; the message data processing module 20 is configured to customize the message data of the message according to the protocol type; the message data conversion module 30 And being configured to perform data conversion and encapsulation on the customized message data according to the protocol type; the message protocol connection module 40 is configured to send the encapsulated message data to the message destination. In the above embodiment, by separating the RFID application system from the message transmission, the coupling degree between the business logic of the RFID application and the message transmission is reduced, thereby improving the development efficiency and increasing the system scalability. The system further includes an external interface module (not shown), the external interface module is configured to receive
RFID应用系统向本系统发送的消息发送请求,其中, 消息发送请求中携带需发送的消 息。 其中, 该系统还包括一初始化模块(图中未示出), 该初始化模块设置为根据从外 部配置文件中读取的初始化信息对本系统进行初始化。 实施例二 图 2是根据本发明实施例二的消息发送方法流程图。如图 2所示,包括以下步骤: 步骤 S202, 将来自 RFID应用系统的消息进行解析, 得到消息的协议类型。 步骤 S204, 根据协议类型对消息的消息数据进行定制化处理。 步骤 S206, 根据协议类型对定制化处理后的消息数据进行数据转换和封装。 步骤 S208, 将封装后的消息数据发送至消息目的地。 在本实施例中,通过将 RFID应用系统与消息发送相分离,从而降低了 RFID应用 的业务逻辑与消息发送的耦合度,进而取得了提高开发效率,增加系统扩展性的效果。 其中, 在步骤 S202之前, 还包括: 根据从外部配置文件中读取的初始化信息对本 系统进行初始化; 以及接收 RFID应用系统向本系统发送的消息发送请求, 其中, 消 息发送请求中携带需发送的消息。 其中, 步骤 S202包括: 对消息的消息头进行解析和翻译, 从中提取消息的协议类 型属性。 其中, 在步骤 S204之前, 还包括: 判断本系统是否支持协议类型; 如果否, 则向 RFID应用系统返回提示信息; 如果是,则从外部配置文件中提取与协议类型相匹配的 初始化数据, 并对数据处理模块和消息数据转换模块进行初始化。 其中, 步骤 S208包括: 与消息目的地建立连接, 并将封装后的消息数据发送至消 息目的地。 实施例三 图 3是根据本发明实施例三的消息发送系统结构框图。如图 3所示, 该系统包括: 消息协议解析器 10、 消息数据处理引擎 20、 消息数据转换引擎 30、 消息协议连 接器 40、 初始化模块 50和外部接口模块 60。 其中, 各功能模块所实现的功能如下: 消息协议解析器 10, 负责对消息头进行解析和翻译, 从中提取该协议消息的关键 属性。 消息数据处理引擎 20, 负责对消息数据进行处理, 但处理后并不改变消息数据的 类型。 消息数据转换引擎 30, 负责按照协议要求对消息数据进行类型转换幼数据组装。 消息协议连接器 40, 负责与消息目的地建立连接, 完成具体的消息发送任务, 并 反馈结果。 初始化模块 50, 负责从外部配置文件中读取消息协议解析器 10、消息数据数据处 理器 20、 消息数据转换器 30、 消息协议连接器 40的具体实现以及这些实现与协议的 匹配关系。 外部接口模块 60, 对应用系统提供消息发送的统一接口。 图 4是根据本发明实施例三的消息发送过程示意图, 图 5是根据本发明实施例三 的消息发送方法流程图, 如图 4所示, RFID应用系统将消息发送至消息发送系统, 由 消息发送系统完成消息数据的处理和转换工作, 然后再发送至消息目的地。 如图 5所 示, 利用实施三中的消息发送系统发送消息包括以下步骤: 步骤 S502, 初始化消息协议解析器、 消息数据数据处理器、 消息数据转换器、 消 息协议连接器的具体实现并确定这些实现与相关协议的匹配关系。 步骤 S504,应用系统通过本系统的外部接口模块,向本系统发出发送消息的请求, 外部接口模块将消息流转到消息协议解析器。 步骤 S506, 消息协议解析器对消息头进行分析, 解析出消息的协议类型。 步骤 S508, 判断本系统是否支持此消息协议, 如果本系统不支持此消息协议, 则 执行步骤 S418; 如果本系统支持此消息协议, 则执行步骤 S510。 步骤 S510, 根据协议类型提取与该协议匹配的消息数据处理器、 消息数据转换器 的具体实现, 并将其装入消息数据处理引擎和消息数据转换引擎, 并将消息传入消息 数据处理引擎进行处理。 步骤 S512, 消息数据处理引擎依次调用引擎中的消息数据处理器, 完成对消息数 据的定制化处理, 并将消息传入消息数据转换引擎进行处理。 步骤 S514, 消息进入消息数据转换引擎, 引擎依次调用其中的消息数据转换器, 按照各消息协议对数据格式的要求, 完成对消息数据组装,并将消息传入消息协议连接 器进行处理。 步骤 S516, 消息传入消息协议连接器, 由消息协议连接器完成具体的消息发送工 步骤 S518, 向应用应用系统返回不支持此消息协议的提示信息。 通过本发明的上述各实施例, 提供一种辅助方法及系统来解 RFID应用系统在消 息发送方面开发效率低、 扩展性差的问题, 为应用开发者提供一个消息发送的统一接 口层, 屏蔽各种消息间的差异。 同时将消息发送代码从业务逻辑代码中解耦, 减少开 发者在消息发送相关的编码量和对消息发送相关知识的学习成本。 统一消息框架会在 底层对各种消息格式和调用形式进行适配, 并对开发者保持透明。 将业务逻辑与消息 发送隔离, 使应用业务开发人员能够更加专注于业务逻辑的开发, 而不用关心消息的 具体发送细节。 同时, 该系统还可以自动完成消息发送时数据格式的转换。 例如: 一个业务中产 生的数据对象要同时以邮件方式和 JMS方式对外发送, 而邮件方式和 JMS方式所需 要的消息数据格式是不同的, 如果这个服务组件仅仅处理业务逻辑, 那它怎样知道这 两种数据格式都是什么, 且如何转换呢?在这种应用场景下, 业务逻辑只需要将消息 发送委托给消息交换框架, 由它完成消息数据的转换工作。 另外, 通过本系统, 业务功能被完全与消息格式隔离。 所有的对消息的传输, 转 换以及路由对服务组件来都是完全透明的。 将业务逻辑与发送和转换消息进行解耦, 给应用带来了巨大的灵活性, 使系统可以在不进行改动的情况下, 融入一个新的企业 网。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 The RFID application system sends a request for sending a message to the system, where the message sending request carries the message to be sent. Wherein, the system further comprises an initialization module (not shown), the initialization module being arranged to initialize the system according to the initialization information read from the external configuration file. Embodiment 2 FIG. 2 is a flowchart of a message sending method according to Embodiment 2 of the present invention. As shown in Figure 2, the following steps are included: Step S202, parsing the message from the RFID application system to obtain a protocol type of the message. Step S204: Customizing the message data of the message according to the protocol type. Step S206: Perform data conversion and encapsulation on the customized message data according to the protocol type. Step S208, sending the encapsulated message data to the message destination. In this embodiment, by separating the RFID application system from the message transmission, the coupling degree between the business logic of the RFID application and the message transmission is reduced, thereby achieving the effect of improving development efficiency and increasing system scalability. Before the step S202, the method further includes: initializing the system according to the initialization information read from the external configuration file; and receiving a message sending request sent by the RFID application system to the system, where the message sending request carries the sending request Message. Step S202 includes: parsing and translating a message header of the message, and extracting a protocol type attribute of the message. Before the step S204, the method further includes: determining whether the system supports the protocol type; if not, returning the prompt information to the RFID application system; if yes, extracting the initialization data matching the protocol type from the external configuration file, and Initialize the data processing module and the message data conversion module. Step S208 includes: establishing a connection with the message destination, and sending the encapsulated message data to the message destination. Embodiment 3 FIG. 3 is a structural block diagram of a message transmission system according to Embodiment 3 of the present invention. As shown in FIG. 3, the system includes: a message protocol parser 10, a message data processing engine 20, a message data conversion engine 30, a message protocol connector 40, an initialization module 50, and an external interface module 60. The functions implemented by each functional module are as follows: The message protocol parser 10 is responsible for parsing and translating the message header, and extracting key attributes of the protocol message. The message data processing engine 20 is responsible for processing the message data, but does not change the type of the message data after processing. The message data conversion engine 30 is responsible for type conversion of the message data according to the protocol requirements. The message protocol connector 40 is responsible for establishing a connection with the message destination, completing a specific message sending task, and feeding back the result. The initialization module 50 is responsible for reading the specific implementation of the message protocol parser 10, the message data data processor 20, the message data converter 30, the message protocol connector 40, and the matching relationship between these implementations and protocols from the external configuration file. The external interface module 60 provides a unified interface for sending messages to the application system. 4 is a schematic diagram of a message sending process according to Embodiment 3 of the present invention, and FIG. 5 is a flow chart of a message sending method according to Embodiment 3 of the present invention. As shown in FIG. 4, the RFID application system sends a message to a message sending system, and the message is sent. The sending system completes the processing and conversion of the message data and then sends it to the message destination. As shown in FIG. 5, sending a message by using the message sending system in Embodiment 3 includes the following steps: Step S502, initializing a specific implementation of a message protocol parser, a message data data processor, a message data converter, a message protocol connector, and determining these Achieve a matching relationship with the relevant protocol. Step S504, the application system sends a request for sending a message to the system through the external interface module of the system, and the external interface module transfers the message flow to the message protocol parser. Step S506, the message protocol parser analyzes the message header and parses out the protocol type of the message. In step S508, it is determined whether the system supports the message protocol. If the system does not support the message protocol, step S418 is performed. If the system supports the message protocol, step S510 is performed. Step S510, extracting a specific implementation of the message data processor and the message data converter matched with the protocol according to the protocol type, loading the message data processing engine and the message data conversion engine, and transmitting the message to the message data processing engine. deal with. Step S512, the message data processing engine sequentially calls the message data processor in the engine to complete the customization processing of the message data, and the message is sent to the message data conversion engine for processing. Step S514, the message enters the message data conversion engine, and the engine sequentially invokes the message data converter therein, completes the assembly of the message data according to the requirements of the data format of each message protocol, and sends the message to the message protocol connector for processing. Step S516, the message is transmitted to the message protocol connector, and the message protocol connector is used to complete the specific message sending work. Step S518, returning, to the application application system, prompt information that does not support the message protocol. Through the above embodiments of the present invention, an auxiliary method and system are provided to solve the problem that the RFID application system has low development efficiency and poor scalability in message transmission, and provides a unified interface layer for message sending for application developers, shielding various types. The difference between the messages. At the same time, the message sending code is decoupled from the business logic code, which reduces the developer's learning cost in message sending and the learning cost of sending related knowledge. The Unified Messaging framework adapts the various message formats and calling forms at the bottom and remains transparent to developers. Isolating business logic from messaging, enabling application business developers to focus more on the development of business logic without concern for the specific delivery details of the message. At the same time, the system can also automatically convert the data format when the message is sent. For example: The data objects generated in a business should be sent out by mail and JMS at the same time, and the mail data format is different from the JMS mode. If the service component only processes the business logic, how does it know this? What are the two data formats and how do you convert them? In this application scenario, the business logic only needs to delegate the message transmission to the message exchange framework, which completes the conversion of the message data. In addition, through this system, business functions are completely isolated from the message format. All transmission, conversion, and routing of messages are completely transparent to the service components. Decoupling business logic from sending and converting messages gives the application tremendous flexibility, allowing the system to integrate into a new corporate network without making changes. 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 and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as 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

权 利 要 求 书 Claim
1. 一种消息发送系统, 包括: 1. A messaging system comprising:
消息协议解析模块, 设置为将来自 RFID应用系统的消息进行解析, 得到 所述消息的协议类型;  a message protocol parsing module configured to parse a message from the RFID application system to obtain a protocol type of the message;
消息数据处理模块, 设置为根据所述协议类型对所述消息的消息数据进行 定制化处理;  a message data processing module, configured to customize the message data of the message according to the protocol type;
消息数据转换模块, 设置为根据所述协议类型对定制化处理后的所述消息 数据进行数据转换和封装;  a message data conversion module, configured to perform data conversion and encapsulation on the customized message data according to the protocol type;
消息协议连接模块, 设置为将所述封装后的消息数据发送至消息目的地。  The message protocol connection module is configured to send the encapsulated message data to a message destination.
2. 根据权利要求 1所述的系统, 其中, 还包括: 2. The system according to claim 1, further comprising:
外部接口模块, 设置为接收所述 RFID应用系统向本系统发送的消息发送 请求, 其中, 所述消息发送请求中携带所述消息。  The external interface module is configured to receive a message sending request sent by the RFID application system to the system, where the message sending request carries the message.
3. 根据权利要求 2所述的系统, 其中, 还包括: 初始化模块, 设置为根据从外部配置文件中读取的初始化信息对本系统进 行初始化。 3. The system of claim 2, further comprising: an initialization module configured to initialize the system based on initialization information read from an external configuration file.
4. 一种消息发送方法, 包括: 4. A method for sending a message, comprising:
将来自 RFID应用系统的消息进行解析, 得到所述消息的协议类型; 根据所述协议类型对所述消息的消息数据进行定制化处理; 根据所述协议类型对定制化处理后的所述消息数据进行数据转换和封装; 将所述封装后的消息数据发送至消息目的地。  Parsing the message from the RFID application system to obtain a protocol type of the message; performing customized processing on the message data of the message according to the protocol type; and customizing the processed message data according to the protocol type Performing data conversion and encapsulation; sending the encapsulated message data to a message destination.
5. 根据权利要求 4所述的方法, 其中, 将来自 RFID应用系统的消息进行解析之 前, 还包括: 5. The method according to claim 4, wherein before parsing the message from the RFID application system, the method further comprises:
接收所述 RFID应用系统向本系统发送的消息发送请求, 其中, 所述消息 发送请求中携带所述消息。  Receiving a message sending request sent by the RFID application system to the system, where the message sending request carries the message.
6. 根据权利要求 5所述的方法, 其中, 接收所述 RFID应用系统向本系统发送的 消息发送请求之前, 还包括: 根据从外部配置文件中读取的初始化信息对本系统进行初始化。 根据权利要求 4所述的方法, 其中, 将来自 RFID应用系统的消息进行解析, 得到所述消息的协议类型包括: The method according to claim 5, wherein, before receiving the message sending request sent by the RFID application system to the system, the method further includes: The system is initialized based on the initialization information read from the external configuration file. The method according to claim 4, wherein the message from the RFID application system is parsed, and the protocol type of the message is obtained:
对所述消息的消息头进行解析和翻译, 从中提取所述消息的所述协议类型 属性。 根据权利要求 7所述的方法, 其中, 根据所述协议类型对所述消息的消息数据 进行定制化处理之前, 还包括:  A header of the message is parsed and translated, from which the protocol type attribute of the message is extracted. The method according to claim 7, wherein before the message data of the message is customized according to the protocol type, the method further includes:
判断本系统是否支持所述协议类型;  Determining whether the system supports the protocol type;
如果否, 则向所述 RFID应用系统返回提示信息。 根据权利要求 8所述的方法, 其中, 如果本系统支持所述协议类型, 则从外部 配置文件中提取与所述协议类型相匹配的初始化数据, 并对所述数据处理模块 和所述消息数据转换模块进行初始化。 根据权利要求 4至 9任一项所述的方法, 其中, 将所述封装后的消息数据发送 至消息目的地包括:  If not, a prompt message is returned to the RFID application system. The method according to claim 8, wherein if the system supports the protocol type, extracting initialization data matching the protocol type from an external configuration file, and the data processing module and the message data The conversion module is initialized. The method according to any one of claims 4 to 9, wherein transmitting the encapsulated message data to a message destination comprises:
与外部的所述消息目的地建立连接, 并将所述封装后的所述消息数据发送 至所述消息目的地。  Establishing a connection with the external message destination and transmitting the encapsulated message data to the message destination.
PCT/CN2012/077767 2011-07-29 2012-06-28 Message sending method and system WO2013016994A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011102154778A CN102263707A (en) 2011-07-29 2011-07-29 Method and system for sending messages
CN201110215477.8 2011-07-29

Publications (1)

Publication Number Publication Date
WO2013016994A1 true WO2013016994A1 (en) 2013-02-07

Family

ID=45010172

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/077767 WO2013016994A1 (en) 2011-07-29 2012-06-28 Message sending method and system

Country Status (2)

Country Link
CN (1) CN102263707A (en)
WO (1) WO2013016994A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113487340A (en) * 2021-05-24 2021-10-08 康键信息技术(深圳)有限公司 Service decoupling processing method, device, equipment and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263707A (en) * 2011-07-29 2011-11-30 中兴通讯股份有限公司 Method and system for sending messages
CN103248557A (en) * 2012-02-07 2013-08-14 北京糯米网科技发展有限公司 Method and equipment for receiving and sending information
CN104378236A (en) * 2014-11-24 2015-02-25 青岛海尔软件有限公司 Internet of things device management platform and method
CN105791345B (en) * 2014-12-22 2019-07-19 北京北方华创微电子装备有限公司 The communication system of server-side and industrial personal computer in semiconductor manufacturing equipment
CN107395486B (en) * 2017-04-18 2020-09-04 阿里巴巴集团控股有限公司 Data communication method, device and system and message middleware

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1808462A (en) * 2004-12-20 2006-07-26 韩国电子通信研究院 Rfid reader interface and event management apparatus for supporting multi-protocol-based heterogeneous readers and method therefor
US20090140843A1 (en) * 2007-11-29 2009-06-04 Electronics And Telecommunications Research Institute Method for providing radio frequency identification application interface and system thereof
US20100134289A1 (en) * 2008-11-28 2010-06-03 Electronics And Telecommunications Research Institute Rfid reader controlling device, interlocking method for rfid reader, and rfid reader controlling method
CN102263707A (en) * 2011-07-29 2011-11-30 中兴通讯股份有限公司 Method and system for sending messages
CN102523069A (en) * 2011-11-21 2012-06-27 天津中兴软件有限责任公司 Method for sending message

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1808462A (en) * 2004-12-20 2006-07-26 韩国电子通信研究院 Rfid reader interface and event management apparatus for supporting multi-protocol-based heterogeneous readers and method therefor
US20090140843A1 (en) * 2007-11-29 2009-06-04 Electronics And Telecommunications Research Institute Method for providing radio frequency identification application interface and system thereof
US20100134289A1 (en) * 2008-11-28 2010-06-03 Electronics And Telecommunications Research Institute Rfid reader controlling device, interlocking method for rfid reader, and rfid reader controlling method
CN102263707A (en) * 2011-07-29 2011-11-30 中兴通讯股份有限公司 Method and system for sending messages
CN102523069A (en) * 2011-11-21 2012-06-27 天津中兴软件有限责任公司 Method for sending message

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113487340A (en) * 2021-05-24 2021-10-08 康键信息技术(深圳)有限公司 Service decoupling processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN102263707A (en) 2011-11-30

Similar Documents

Publication Publication Date Title
WO2013016994A1 (en) Message sending method and system
CN112615822B (en) Message processing method and device, computing equipment and readable storage medium
US20100115041A1 (en) Creating a message readable by a plurality of heterogeneous recipients
CN112114979A (en) Remote procedure call method and device
US20030009539A1 (en) Distributed object middleware connection method
CN105721473A (en) WEB side remote invoking optimizing method and system
CN101764843A (en) Processing method and system for remote process call, client end and server
CN112689020A (en) Message transmission method, message middleware, electronic equipment and storage medium
JP2012512445A (en) Configuring the message processing pipeline
CN113992641B (en) Data processing method, device, equipment and storage medium
CN111866157B (en) Cloud service gateway and cloud service internal and external request format conversion method
US20220245080A1 (en) Method for communication of a componentized application, computing device and computer storage medium
CN113434315B (en) Interface management method and device, storage medium and electronic equipment
CN112905273A (en) Service calling method and device
CN109005163B (en) HTTP dynamic request service calling method
CN102523069A (en) Method for sending message
CN112866268B (en) Message processing method and system
CN112511636B (en) Data transmission system, method, device, computer equipment and storage medium
CN112769741B (en) Message communication method and electronic equipment
KR100945563B1 (en) System and Method for RFID Middleware Based on ALE Standard Specification
CN113765872A (en) Method and system for adaptive data format conversion adaptation
Leitner et al. Towards flexible interface mediation for dynamic service invocations
CN116132214B (en) Event transmission method, device, equipment and medium based on event bus model
US9135090B2 (en) Messaging bus residing on a mobile device
CN116233187A (en) Message service method and message server

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

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

Country of ref document: EP

Kind code of ref document: A1