CN102523069A - Method for sending message - Google Patents

Method for sending message Download PDF

Info

Publication number
CN102523069A
CN102523069A CN2011103699103A CN201110369910A CN102523069A CN 102523069 A CN102523069 A CN 102523069A CN 2011103699103 A CN2011103699103 A CN 2011103699103A CN 201110369910 A CN201110369910 A CN 201110369910A CN 102523069 A CN102523069 A CN 102523069A
Authority
CN
China
Prior art keywords
message
data
protocol
application system
protocol type
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN2011103699103A
Other languages
Chinese (zh)
Inventor
张恺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TIANJIN ZHONGXING SOFTWARE Co Ltd
Original Assignee
TIANJIN ZHONGXING SOFTWARE Co Ltd
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 TIANJIN ZHONGXING SOFTWARE Co Ltd filed Critical TIANJIN ZHONGXING SOFTWARE Co Ltd
Priority to CN2011103699103A priority Critical patent/CN102523069A/en
Publication of CN102523069A publication Critical patent/CN102523069A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention provides a method and a system for sending a message. The system comprises: a message protocol analysis module for analyzing the message from an RFID (radio frequency identification device) application system to obtain a protocol type of the message; a message data processing module for customizing message data of the message according to the protocol type; a message data conversion module for carrying out data conversion and packaging on the customized message data according to the protocol type; and a message protocol connecting module for sending the packaged message data to a message destination. Through the method and the system for sending the message, the RFID application system is separated from the message sending, so that the service logic of RFID application and the coupling degree of message sending are reduced, the development efficiency is improved, and the effect of system expandability is increased.

Description

Message method
Technical field
The present invention relates to the communications field, in particular to a kind of message method and system.
Background technology
Along with the high speed development of Internet of Things, the every field during RFID (Radio Frequency Identification, radio frequency identification) technology progresses into people's routine work and lives, it is complicated day by day that the operational environment of RFID application system also becomes.The RFID application system is deployed in the enterprise network through regular meeting; With other application system collaborative work in RFID equipment, middleware system and the enterprise network; In the process of collaborative work, can there be a large amount of and frequent message transmission; And these protocol of messages types all are different with transfer mode.In this case; For assembling and the transmission of accomplishing message; The developer of application system is in the exploitation business function; Also need understand the detail and transmission technology of every kind of messaging protocol, increase developer's learning cost, also reduce the degree of focus of developer the core business function.Simultaneously, because the RFID application system directly is responsible for the transmission of message, cause service logic and Message Processing, transmission logic in the application system; Be coupled; Limited the autgmentability of application system, when needs were supported a kind of new information agreement, application system will be made whole the modification.
To in the correlation technique because the RFID application system directly is responsible for the transmission of message, limited the problem of the autgmentability of application system, effective solution is not proposed at present as yet.
Summary of the invention
Main purpose of the present invention is to provide a kind of message method and system, to solve above-mentioned at least because the RFID application system directly is responsible for the transmission of message, has limited the problem of the autgmentability of application system.
According to an aspect of the present invention, a kind of message transmission system is provided, has comprised: the messaging protocol parsing module is used for obtaining the protocol of messages type with resolving from the message of RFID application system; The message data processing module is used for according to protocol type the message data of message being carried out customization; The message data modular converter is used for carrying out data transaction and encapsulation according to the message data of protocol type after to customization; The messaging protocol link block is used for the message data after the encapsulation is sent to the message destination.
Preferably, this system also comprises: external interface module, be used to receive the message send request that the RFID application system is sent to native system, and wherein, carry the message that needs transmission in the message send request.
Preferably, this system also comprises: initialization module is used for according to the initialization information that reads from the exterior arrangement file native system being carried out initialization.
According to a further aspect in the invention, a kind of message method is provided, has comprised: will resolve from the message of RFID application system, and obtain the protocol of messages type; According to protocol type the message data of message is carried out customization; Carry out data transaction and encapsulation according to the message data of protocol type after to customization; Message data after the encapsulation is sent to the message destination.
Preferably, before will resolving from the message of RFID application system, also comprise: receive the message send request that the RFID application system is sent to native system, wherein, carry the message that needs transmission in the message send request.
Preferably, received the RFID application system before the message send request that native system sends, also comprise: native system is carried out initialization according to the initialization information that from the exterior arrangement file, reads.
Preferably, will resolve, and obtain the protocol of messages type and comprise: the message header of message resolved and translated, therefrom extract the protocol of messages type attribute from the message of RFID application system.
Preferably, according to protocol type the message data of message is carried out also comprising before the customization: judge whether supported protocol type of native system; If, then do not return information to the RFID application system.
Preferably, if native system supported protocol type is then extracted the initialization data that is complementary with protocol type from the exterior arrangement file, and data processing module and message data modular converter are carried out initialization.
Preferably, the message data after the encapsulation being sent to the message destination comprises: connect with the message destination, and the message data after will encapsulating is sent to the message destination.
Through the present invention, adopt RFID application system and message transmission are separated, thereby reduced the service logic of RFID application and the degree of coupling that message is sent, and then obtained raising development efficiency, increase the effect of system extension property.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the message transmission system structured flowchart according to the embodiment of the invention one;
Fig. 2 is the message method flow chart according to the embodiment of the invention two;
Fig. 3 is the message transmission system structured flowchart according to the embodiment of the invention three;
Fig. 4 is the message transmitting process sketch map according to the embodiment of the invention three.
Fig. 5 is the message method flow chart according to the embodiment of the invention three.
Embodiment
Hereinafter will and combine embodiment to specify the present invention with reference to accompanying drawing.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
Embodiment one
Fig. 1 is the message transmission system structured flowchart according to the embodiment of the invention one.As shown in Figure 1, this system comprises: messaging protocol parsing module 10, message data processing module 20, message data modular converter 30 and messaging protocol link block 40.Wherein, messaging protocol parsing module 10, message data processing module 20, message data modular converter 30 and messaging protocol link block 40 are connected successively.
Messaging protocol parsing module 10 is used for obtaining the protocol of messages type with resolving from the message of RFID application system; Message data processing module 20 is used for according to protocol type the message data of message being carried out customization; Message data modular converter 30 is used for carrying out data transaction and encapsulation according to the message data of protocol type after to customization; Messaging protocol link block 40 is used for the message data after the encapsulation is sent to the message destination.
In the above-described embodiments, be separated, thereby reduced the degree of coupling that service logic that RFID uses and message are sent, and then obtained raising development efficiency, the effect of increase system extension property through RFID application system and message are sent.
Wherein, this system also comprises an external interface module (not shown), and this external interface module is used to receive the message send request that the RFID application system is sent to native system, wherein, carries the message that needs transmission in the message send request.
Wherein, this system also comprises an initialization module (not shown), and this initialization module is used for according to the initialization information that reads from the exterior arrangement file native system being carried out initialization.
Embodiment two
Fig. 2 is the message method flow chart according to the embodiment of the invention two.As shown in Figure 2, may further comprise the steps:
Step S202 will resolve from the message of RFID application system, obtain the protocol of messages type.
Step S204 carries out customization according to protocol type to the message data of message.
Step S206 carries out data transaction and encapsulation according to the message data of protocol type after to customization.
Step S208 is sent to the message destination with the message data after the encapsulation.
In the present embodiment, be separated, thereby reduced the degree of coupling that service logic that RFID uses and message are sent, and then obtained raising development efficiency, the effect of increase system extension property through RFID application system and message are sent.
Wherein, before step S202, also comprise: native system is carried out initialization according to the initialization information that from the exterior arrangement file, reads; And receive the message send request that the RFID application system is sent to native system, wherein, carry the message that needs transmission in the message send request.
Wherein, step S202 comprises: the message header of message is resolved and translated, therefrom extract the protocol of messages type attribute.
Wherein, before step S204, also comprise: judge whether supported protocol type of native system; If, then do not return information to the RFID application system; If then from the exterior arrangement file, extract the initialization data that is complementary with protocol type, and data processing module and message data modular converter carried out initialization.
Wherein, step S208 comprises: connect with the message destination, and the message data after will encapsulating is sent to the message destination.
Embodiment three
Fig. 3 is the message transmission system structured flowchart according to the embodiment of the invention three.As shown in Figure 3, this system comprises:
Messaging protocol resolver 10, message data processing engine 20, message data transform engine 30, messaging protocol connector 40, initialization module 50 and external interface module 60.Wherein, the function that each functional module realized is following:
Messaging protocol resolver 10 is responsible for message header is resolved and translated, and therefrom extracts the determinant attribute of this protocol message.
Message data processing engine 20 is responsible for message data is handled, but is not changed the type of message data after handling.
Message data transformation engine 30 is responsible in accordance with the agreement calls for the message data type conversion Ba data assembled.
Messaging protocol connector 40 is responsible for connecting with the message destination, and accomplish concrete message and send task, and feedback result.
Initialization module 50 is responsible for from the exterior arrangement file, reading the concrete realization of messaging protocol resolver 10, message data data processor 20, message data transducer 30, messaging protocol connector 40 and the matching relationship of these realizations and agreement.
External interface module 60, the unified interface that the application system is given information and sends.
Fig. 4 is the message transmitting process sketch map according to the embodiment of the invention three; Fig. 5 is the message method flow chart according to the embodiment of the invention three; As shown in Figure 4; The RFID application system is sent to message transmission system with message, accomplishes the processing and the conversion work of message data by message transmission system, and then is sent to the message destination.As shown in Figure 5, utilize the message transmission system transmission packet of implementing in three to draw together following steps:
Step S502, the matching relationship of the concrete realization of initial message protocol resolver, message data data processor, message data transducer, messaging protocol connector and definite these realizations and related protocol.
Step S504, application system is sent the request of sending message through the external interface module of native system to native system, and external interface module forwards message flow to the messaging protocol resolver.
Step S506, the messaging protocol resolver is analyzed message header, parses the protocol of messages type.
Step S508 judges whether native system supports this messaging protocol, if native system is not supported this messaging protocol, and execution in step S418 then; If native system is supported this messaging protocol, then execution in step S510.
Step S510; Extract and the message data processor of this agreement coupling, the concrete realization of message data transducer according to protocol type; And with its pack into message data processing engine and message data transform engine, and import message into the message data processing engine and handle.
Step S512, the message data processing engine is called the message data processor in the engine successively, accomplishes the customization to message data, and imports message into the message data transform engine and handle.
Step S514, message gets into the message data transform engine, and engine calls message data transducer wherein successively, according to the requirement of each messaging protocol to the data form, accomplishes message data set dress, and imports message into the messaging protocol connector and handle.
Step S516, message is imported the messaging protocol connector into, accomplishes concrete message transmission work by the messaging protocol connector.
Step S518 returns the information of not supporting this messaging protocol to the applications system.
Through above-mentioned each embodiment of the present invention; Provide a kind of householder method and system to separate that the RFID application system is low in message sender face development efficiency, the problem of autgmentability difference; Unified interface layer for application developer provides a message to send shields the difference between various message.Simultaneously message is sent code decoupling zero from business logic codes, reduce the developer and send relevant encoding amount and message sent the learning cost of relevant knowledge in message.The unified message framework can carry out adaptive at bottom to the various message formats and the form of calling, and the developer is kept transparent.Service logic and message are sent isolation, make the applied business developer can be absorbed in the exploitation of service logic more, and need not be concerned about the concrete transmission details of message.
The conversion of data format when simultaneously, this system can also accomplish the message transmission automatically.For example: the data object that produces in business is wanted externally send with lettergram mode and JMS mode simultaneously; And lettergram mode is different with the needed message data form of JMS mode; The logic if this serviced component is only managed business, how does it know what all is these two kinds of data formats, and how to change? Under this application scenarios; Service logic only need be sent message and entrusted to the message framework, accomplishes the conversion work of message data by it.
In addition, through native system, business function is isolated by complete and message format.All transmission to message, it all is fully transparent that conversion and route are come serviced component.Decoupling zero is carried out in service logic and transmission and transforming message, brought huge flexibility, make system under the situation of not changing, incorporate a new enterprise network to application.
Obviously, it is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize with the general calculation device; They can concentrate on the single calculation element; Perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element; Thereby; Can they be stored in the storage device and carry out, and in some cases, can carry out step shown or that describe with the order that is different from here by calculation element; Perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. a message method is characterized in that, comprising:
To resolve from the message of RFID application system, obtain said protocol of messages type;
According to said protocol type the message data of said message is carried out customization;
Carry out data transaction and encapsulation according to the said message data of said protocol type after to customization;
Message data after the said encapsulation is sent to the message destination.
2. method according to claim 4 is characterized in that, before will resolving from the message of RFID application system, also comprises:
Receive said RFID application system to the message send request that native system sends, wherein, carry said message in the said message send request.
3. method according to claim 5 is characterized in that, receives said RFID application system before the message send request that native system sends, and also comprises:
According to the initialization information that from the exterior arrangement file, reads native system is carried out initialization.
4. method according to claim 4 is characterized in that, will resolve from the message of RFID application system, obtains said protocol of messages type and comprises:
The message header of said message is resolved and translated, therefrom extract the said protocol type attribute of said message.
5. method according to claim 7 is characterized in that, according to said protocol type the message data of said message is carried out also comprising before the customization:
Judge whether native system supports said protocol type;
If, then do not return information to said RFID application system.
6. method according to claim 8; It is characterized in that; If native system is supported said protocol type, then from the exterior arrangement file, extract the initialization data that is complementary with said protocol type, and said data processing module and said message data modular converter are carried out initialization.
7. according to each described method of claim 4 to 9, it is characterized in that, the message data after the said encapsulation be sent to the message destination comprise:
Connect with the said message destination of outside, and the said message data after the said encapsulation is sent to said message destination.
CN2011103699103A 2011-11-21 2011-11-21 Method for sending message Pending CN102523069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103699103A CN102523069A (en) 2011-11-21 2011-11-21 Method for sending message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103699103A CN102523069A (en) 2011-11-21 2011-11-21 Method for sending message

Publications (1)

Publication Number Publication Date
CN102523069A true CN102523069A (en) 2012-06-27

Family

ID=46293878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103699103A Pending CN102523069A (en) 2011-11-21 2011-11-21 Method for sending message

Country Status (1)

Country Link
CN (1) CN102523069A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013016994A1 (en) * 2011-07-29 2013-02-07 中兴通讯股份有限公司 Message sending method and system
CN103747035A (en) * 2013-12-20 2014-04-23 深圳市金证科技股份有限公司 Message middleware multi-target routing and copying technology based on rule
CN108897632A (en) * 2018-07-18 2018-11-27 杭州鑫合汇互联网金融服务有限公司 A kind of message system and message method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013016994A1 (en) * 2011-07-29 2013-02-07 中兴通讯股份有限公司 Message sending method and system
CN103747035A (en) * 2013-12-20 2014-04-23 深圳市金证科技股份有限公司 Message middleware multi-target routing and copying technology based on rule
CN108897632A (en) * 2018-07-18 2018-11-27 杭州鑫合汇互联网金融服务有限公司 A kind of message system and message method

Similar Documents

Publication Publication Date Title
EP3399715B1 (en) Protocol conversion method, platform, and protocol conversion gateway
CN104125208B (en) Data transmission method and device
CN102546442B (en) Communication protocol conversion technology
KR101806257B1 (en) Method and apparatus for implementing subscription notification
CN102480462B (en) Universal protocol adapting method and device
CN110381093B (en) Method and device for converting data protocol, system for transmitting data and electronic equipment
CN110417783B (en) Data transmission method and device based on Internet of things, storage medium and terminal
CN103747004A (en) Realizing method of internet of things communication protocol
CN103428627A (en) Method for transferring data in internet of things, internet of things system and corresponding device
CN105245445A (en) Internet of things gateway
CN105429858A (en) Real-time message transmission method among multiple robots
CN109597604B (en) iOS platform based APP modularization development method, device and equipment
CN102263707A (en) Method and system for sending messages
CN102866925B (en) Communication method and system for middleware and user interface
CN111294235A (en) Data processing method, device, gateway and readable storage medium
CN112822115B (en) Service framework construction method and system based on plug-in engine
CN112311664A (en) Industrial Internet data interaction method and system and industrial gateway
CN108446105B (en) Lightweight API Server development framework and development method
CN102523069A (en) Method for sending message
Azzara et al. The icsi m2m middleware for iot-based intelligent transportation systems
KR101579928B1 (en) METHOD AND RECORDING MEDIUM FOR COMPATIBILITY BETWEEN IEC61850 AND CoAP
Cha et al. Standardization strategy for the Internet of wearable things
CN102404356A (en) Long-distance function call transmission adapter and data reading method thereof
CN112764945B (en) Message center service middleware system
CN111866157B (en) Cloud service gateway and cloud service internal and external request format conversion method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120627