CN108667817A - Message converting system and message forwarding method - Google Patents

Message converting system and message forwarding method Download PDF

Info

Publication number
CN108667817A
CN108667817A CN201810356776.5A CN201810356776A CN108667817A CN 108667817 A CN108667817 A CN 108667817A CN 201810356776 A CN201810356776 A CN 201810356776A CN 108667817 A CN108667817 A CN 108667817A
Authority
CN
China
Prior art keywords
message
service end
access service
host computer
equipment
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
CN201810356776.5A
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.)
Xiamen Iotcomm Internet Of Things Technology Co Ltd
Original Assignee
Xiamen Iotcomm Internet Of Things Technology 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 Xiamen Iotcomm Internet Of Things Technology Co Ltd filed Critical Xiamen Iotcomm Internet Of Things Technology Co Ltd
Priority to CN201810356776.5A priority Critical patent/CN108667817A/en
Publication of CN108667817A publication Critical patent/CN108667817A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

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

Abstract

A kind of message converting system and message forwarding method.Wherein, the message converting system includes:With host computer into the host computer access service end of row data communication;With equipment into the equipment access service end of row data communication;Message manager, the message manager is for receiving and forwarding the message from host computer access service end and equipment access service end;Consultative management controller, the consultative management controller are used to receive the message come from message manager forwarding, and for the message after receiving to be forwarded to equipment access service end or host computer access service end.The message converting system improves message transfer efficiency.

Description

Message converting system and message forwarding method
Technical field
The present invention relates to Internet of Things field more particularly to a kind of message converting system and message forwarding methods.
Background technology
With the continuous development of Internet of Things cause, embedded device is more and more applied in Internet of Things.In order to allow The next machine platform of embedded device composition is preferably connect with the host computer in cloud platform, it usually needs is turned using message System is changed to dock two platforms.However, existing message converting system mostly can not effectively realize multiple terminal platform Conversion.Meanwhile in face of the access of a large amount of host computers and linking for a variety of the next equipment, the robustness of existing message converting system (Robust, also known as robustness) be not high, during the messages of most of existing message converting systems is shifted to new management mechanisms, is pre-processed to message It is and not perfect so that system transfer efficiency is not high.
Invention content
Problems solved by the invention is to provide a kind of message converting system and message forwarding method, to overcome existing message to turn Change system and the not high problem of conversion method transfer efficiency.
To solve the above problems, the present invention provides a kind of message converting systems, including:With host computer into row data communication Host computer access service end;With equipment into the equipment access service end of row data communication;Message manager, the message management Device is for receiving and forwarding the message from host computer access service end and equipment access service end;Consultative management control Device processed, the consultative management controller are used to receive the message come from message manager forwarding, and for after receiving Message is forwarded to equipment access service end or host computer access service end.
Optionally, equipment access service end includes TCP service modules and UDP service modules.
Optionally, the UDP service modules include session control module and port list.
Optionally, equipment access service end receives the device protocol message for coming from the equipment.
Optionally, the message manager includes message queue module and thread pool module.
Optionally, the consultative management controller includes protocol manager and protocol adaptor.
Optionally, the protocol manager includes service map listing.
Optionally, host computer access service end includes application layer protocol server-side and application layer client;It is described to answer It is used to receive the application layer protocol message for coming from the host computer with layer protocol server-side;The application layer protocol server-side is Http server-sides;The application layer client is used for the host computer sending application layer protocol message;The application layer client End is http clients.
Optionally, further include first thread group, the second sets of threads and third sets of threads;The first thread group includes first Thread pool, for providing thread to the application layer protocol server-side;Second sets of threads includes the second thread pool, for giving Equipment access service end provides thread;The third sets of threads includes third thread pool, for the message manager Thread is provided with the consultative management controller.
To solve the above problems, the present invention also provides a kind of message forwarding methods, including:To meeting application layer protocol First request message is parsed to generate the first request message;First request message is put into message queue;From institute It states and reads first request message in message queue, carry out protocol conversion with uniformly, form meet device protocol first turn Change message;The second request message to meeting device protocol is parsed to generate the second request message;Described second is asked Message is put into the message queue;Second request message is read from the message queue, carries out protocol conversion and system One, form the second conversion message for meeting application layer protocol.
Optionally, second request message is when logging in packet, and the login includes equipment UID numbers, IP address and end Slogan;Second request message to the second format is parsed to generate the second request message, including:Generate IP address and The Assembly Listing of port numbers;By the information in the IP address and port numbers that are carried in the second request message and the Assembly Listing into Row comparison and modification processing bundle the pointer including UID number informations with second request message;To bundle the pointer Second request message generate second request message.
It is a kind of by being arranged between host computer and equipment (slave computer) in terms of one of technical solution of the present invention New message converting system, the message converting system have message manager and consultative management controller, solve existing answer With end (host computer) problem low with equipment (internet of things equipment) message transfer efficiency, more equipment are solved, big data quantity is concurrently located Reason problem, improves the efficiency that data (message) are converted, and the communication mode of compatible different vendor distinct device realizes data conversion High efficiency improves the response speed that equipment is communicated with host computer, solves the burden of host computer processing message so that host computer is efficient Handle information.
Description of the drawings
Fig. 1 is message converting system schematic diagram provided in an embodiment of the present invention;
Fig. 2 is the message converting system schematic diagram that another embodiment of the present invention provides;
Fig. 3 is the part-structure schematic diagram of message converting system shown in Fig. 2.
Specific implementation mode
Existing message converting system is not high to the transfer efficiency of message.
For this purpose, the present invention provides a kind of offer message converting system, in implementing to large-engineering amount, equipment (under Position machine) with the stabilized communication of host computer, and realize and receive a large amount of message datas, and communication link is preserved and safeguarded, and Data are managed collectively and are handled, host computer (application end) is facilitated to do data cluster processing.
More clearly to indicate, the present invention is described in detail below in conjunction with the accompanying drawings.
The embodiment of the present invention provides a kind of message converting system, as shown in Figure 1, including:Host computer access service end 310, Equipment access service end 320, message manager 330 and consultative management controller 340.Host computer access service end 310 be used for Host computer 100 is into row data communication.Equipment access service end 320 is used for equipment 200 into row data communication.Message manager 330 for receiving and forwarding the message from host computer access service end 310 and equipment access service end 320.Consultative management control Device 340 processed is used to receive the message come from the forwarding of message manager 330, also, consultative management controller 340 will be for after receiving Message (message) converted after, be forwarded to " message after conversion " corresponding equipment access service end 320 or host computer connect Enter server-side 310.
Host computer access service end 310 is used for host computer 100 into row data communication, therefore, host computer access service end 310 communicate to connect with host computer 100.
Equipment access service end 320 be used for equipment 200 into row data communication, therefore, equipment access service end 320 with set Standby 200 communication connection.
Message manager 330 is for receiving due to that can receive and forward from host computer access service end 310 and equipment The message at access service end 320, therefore, message manager 330 and host computer access service end 310 and equipment access service end 320 communicate to connect.
On the one hand consultative management controller 340 can be used to receive the message come from the forwarding of message manager 330, on the other hand It can be used to the message after receiving being forwarded to equipment access service end 320 or host computer access service end 310, therefore, agreement pipe It manages controller 340 and distinguishes communication link with message manager 330, equipment access service end 320 and host computer access service end 310 It connects.
Host computer access service end 310 is for receiving the application layer protocol message (application layer protocol for coming from host computer 100 Message is the message for meeting application layer protocol).Meanwhile host computer access service end 310 is also used for meeting to the transmission of host computer 100 The message of application layer protocol.
Equipment access service end 320 is used to receive the device protocol message for coming from equipment 200, and (device protocol message accords with Close the message of device protocol).Meanwhile equipment access service end 320 can be used for meeting device protocol to the transmission of equipment 200 Message.
Since what is exchanged between host computer access service end 310 and host computer 100 is application layer protocol message, and equipment connects It is device protocol message to enter exchanged between server-side 320 and equipment 200, therefore, in the message conversion that the present embodiment is provided In system, between host computer access service end 310 and equipment access service end 320, need to realize to applying layer protocol message With the conversion of device protocol message.In the present embodiment, using 340 two structures of message manager 330 and consultative management controller The mode of cooperating efficiently realizes this function.
First, what the message or equipment access service end 320 that either host computer access service end 310 generates generated Message is forwarded to message manager 330, via the reception and forwarding of message manager 330, is then forwarded to consultative management control Device 340.Message manager 330 can connect the message at host computer access service end 310 and equipment access service end 320 Receive and forwarding, therefore, be equivalent at this time two server-sides transmit the message to capable of not being mutually exclusive message manager 330 (after It is continuous consultative management controller 340 is sent to by message manager 330 again to handle), therefore, solve (or the application of existing host computer End) message transfer problem with equipment (or slave computer, such as internet of things equipment), solve more equipment, big data quantity is concurrently located Reason problem improves the efficiency of data conversion, and can be compatible with the communication mode of different vendor's distinct device, realizes data conversion High efficiency, improve the response speed that communicate with host computer 100 of equipment 200, the solution processing message of host computer 100 (message conversion) Burden so that 100 efficient process information of host computer.
The message converting system that the present embodiment is provided can specifically apply in various scenes.For example, can apply to The implementation of wisdom street lamp control system.At this point, corresponding host computer 100 can be streetlight monitoring cloud platform (host computer 100 into one Step can be the application terminal of cloud platform), equipment 200 (slave computer) can be that (equipment 200 may further be intelligence to wisdom street lamp Intelligent street lamp terminal), message converting system therein is as shown in the structure in Fig. 1 between host computer 100 and equipment 200, institute It states message converting system and provides linking for streetlight monitoring cloud platform and wisdom street lamp terminal.As shown in the above, the report Literary converting system can be to the pretreatment of equipment message, then realizes that the message to equipment message and cloud platform instruction is converted, and is realized To more equipment, big data quantity concurrent processing problem realizes the terminal management of compatible different vendor different communication mode.
The embodiment of the present invention provides another message converting system, as shown in Figures 2 and 3.
The message converting system includes:Host computer access service end (does not mark, including the application layer protocol subsequently mentioned Server-side 611 and application layer client 612), equipment access service end (do not mark, including the TCP service modules subsequently mentioned 621 and UDP service modules 622), message manager 630 is (referring to Figure 3, including message team shown in Fig. 2 for subsequently mentioning Row module and thread pool module 632) and consultative management controller 640 (referring to Figure 3, including shown in Fig. 2 for subsequently mentioning Protocol manager 641 and protocol adaptor 642).
Host computer access service end is used for host computer 400 into row data communication.It uses at equipment access service end In with equipment 500 into row data communication.Message manager 630 for receiving and forward from host computer access service end and The message at equipment access service end.Consultative management controller 640 is used to receive to disappear from what the forwarding of message manager 630 came Breath, also, consultative management controller 640 be used for by receive after message (message) converted after, be forwarded to and " reported after conversion (the present embodiment is further to be forwarded to host computer to connect for the corresponding equipment access service end of text " or host computer access service end Enter the application layer client 612 of server-side).
More about the property of above structure and advantage, previous embodiment corresponding contents are can refer to.For example, the present embodiment In, host computer access service end is for receiving the application layer protocol message for coming from host computer 100.Correspondingly, on described Position machine access service end can be used for 100 sending application layer protocol message of host computer.Equipment access service end is used for Receive the device protocol message for coming from equipment 500.Correspondingly, equipment access service end can be used for equipment 500 Sending device protocol massages.Also, corresponding processing procedure is efficient and will not influence each other, and principle can refer to aforementioned implementation Example corresponding contents.
In the present embodiment, host computer 400 can be in cloud platform.Equipment 500 (slave computer) can be embedded set It is standby, such as embedded wisdom terminal.The number of host computer 400 and equipment 500 all can be multiple.
In the present embodiment, Fig. 2 is shown, host computer access service end may include 611 He of application layer protocol server-side Application layer client 612.Application layer protocol server-side 611 is for receiving the application layer protocol message for coming from host computer 400.It answers Can be http server-sides with layer protocol server-side 611..Application layer client 612 is used to meet application to the transmission of host computer 400 The message of layer protocol.Application layer client 612 can be http clients.It is found that when application layer protocol server-side 611 is http Server-side, and application layer client 612 be http clients when, between host computer access service end and host computer 400 Interactive message, to meet the message of http agreements.
In the present embodiment, Fig. 2 is shown, equipment access service end includes TCP service modules 621 and UDP service modules 622.And Fig. 2 is further displayed, and the present embodiment is that equipment access service end passes through UDP service modules 622 and equipment 500 Carry out message interaction.But in other embodiments, equipment access service end can also be by TCP service modules 621 with set Standby 500 carry out message interaction.
In the present embodiment, Fig. 2 is shown, the message converting system further includes first thread group 651, the second sets of threads 652 With third sets of threads 653;The first thread group 651 includes first thread pond (not marking), for giving application layer protocol service End 611 provides thread;Second sets of threads 652 includes the second thread pool (not marking), for being carried to equipment access service end For thread;Third sets of threads 653 includes third thread pool (not marking), for being controlled to message manager 630 and consultative management Device 640 (protocol manager 641 for being specifically as follows consultative management controller 640) provides thread.
Fig. 3 is the part-structure schematic diagram of message converting system shown in Fig. 2.
Fig. 2 and Fig. 3 shows that message manager 630, message manager 630 include message queue module (not shown).
Show that UDP service modules 622 further comprise 6222 (UDP of session control module 6221 and port list in Fig. 3 Portlist)。
Show that consultative management controller 640, consultative management controller 640 include consultative management shown in Fig. 2 in Fig. 3 Device 641 and protocol adaptor 642.Consultative management controller 640 includes protocol manager 641 (Protocol manager) and association Adapter 642 (Protocol Convert Adapter) is discussed, it can be in conjunction with referring to figs. 2 and 3.Protocol manager 641 includes Service map listing 6411 (or message conversion table).
Fig. 3 also middle equipment 500 and UDP service modules 622, message manager 630 and consultative managements in message converting system The communication connection relation schematic diagram of controller 640.
A kind of operational process for the message converting system that the present embodiment is provided can be:
Host computer 400 sends http request, is specifically as follows transmission JSON messages and gives message converting system;Wherein, message Converting system may be used Boost.Asio programmings and realize server, at this point, http server-sides can call Boost.Asio different Read/write interface is walked, the http request that host computer 400 is sent is received;Http server-side checking request message simultaneously parses JSON reports The command context of text;Http server-sides create the message queue that 400 request message of host computer is put into message queue module In (Message Queue);During this, first thread group 651 creates a certain number of threads, and http is supplied to service End, to ensure that http server-sides (i.e. application layer protocol server-side 611) realize corresponding function;
Message queue module in message manager 630 receives 400 message of host computer, and provides safe synchronous obstruction Read/write interface;During this, third sets of threads 653 will create a certain number of threads, for being read from message queue module Message, giving the processing of consultative management controller 640, (if not receiving the message of host computer 400, respective thread is by message queue Module is blocked, until there is new information to come);
Consultative management controller 640 will be responsible for each module of management coordination, and processing protocol conversion is formed transformed with uniformly Message;Also maintained equipment 500 information of consultative management controller 640, these information include device type, manufacturer, TCP connection The information such as location, 400 address of corresponding host computer;Consultative management controller 640 also parses the ID of equipment 500 (embedded device) (such as CCU ID), and basic packet format;Consultative management controller 640 also handles the general head of JSON messages, according to CCU ID Corresponding protocol adaptor 642 is called to be converted into such as device protocol;If corresponding equipment on-line can call the equipment Access service end TCP service modules 621 transmit the message to corresponding equipment;At the same time, consultative management controller 640 may be used also It is connected with processing equipment 500 and disconnects message, safeguard the up/down threadiness state of relevant device, login/heartbeat packet of response apparatus etc.; During this, third sets of threads 653 creates a certain number of threads, and is supplied to consultative management controller 640, to ensure to assist It discusses Management Controller 640 and realizes corresponding function;
When sending transformed corresponding message to equipment 500, the second sets of threads 652 will wound at equipment access service end A certain number of threads are built, equipment access service end is supplied to, ensure that corresponding function is realized at equipment access service end.
A kind of operational process for the message converting system that the present embodiment is provided can be:
Equipment 500 sends hexadecimal message (or binary system message) to message converting system, can be TCP service modules 621 or UDP service modules 622 are received into for example corresponding equipment;Order is replied or reported to relevant device, creates a bottom Machine message is put into the message queue of message queue module;During this, the second sets of threads 652 will create a certain number of lines Journey is supplied to equipment access service end, ensures that corresponding function is realized at equipment access service end.
Message queue module receives the message from embedded device (equipment 500), and provides the synchronous resistance of thread-safe Fill in read/write interface;Thread pool in third sets of threads 653 will create a certain number of threads, for from message queue module Message queue in read message, give consultative management controller 640 processing (if do not receive relevant device message confirm, Then respective thread is blocked by message queue module, until there is new information to come);
When message queue module reads message, and after giving consultative management controller 640, consultative management controller 640 will It is responsible for coordinating each module, processing protocol conversion is with uniformly, and invocation protocol adapter 642 verifies whether message format meets Packet format is converted into JSON messages later;It, will by http clients if relevant device has 400 address of corresponding host computer Message issues host computer 400, and asynchronous Non-Blocking I/O design may be used in http clients, and using timing read/write host computer 400 Data are replied, and daily record (log) is written.
From the mating reaction of above-mentioned first thread group 651, the second sets of threads 652 and third sets of threads 653 it is found that this implementation The message converting system that example provides uses multithreading, proposes the thread management schemes of sets of threads.The message converting system After placing the message in message queue, message converting system distribution thread is waited for read queue message, when message converting system It distributes after thread read message, thread can be assigned and map message according to service map listing, when message maps After, it is sent in http clients, TCP service modules 621 or UDP service modules 622 according to type of message, is then transmitted To the applications such as corresponding terminal device or cloud platform.
That is, the message converting system that the present embodiment is provided can have the thread group management scheme of multithreading, In multiple threads, can be facilitated by the way that thread is grouped management according to the different progress thread groupings of function The thread management for managing entire message converting system, when phenomena such as blocking or collapsing occurs in the thread of some module, message turns Other functions of modules for changing system are unaffected, can be worked normally.
Due to using multithreading, the thread management schemes of sets of threads and the thread group management scheme of multithreading, this reality The problem of message converting system that example is provided can cope with more equipment and big data quantity concurrent processing is applied, message conversion is promoted The robustness (robustness) and stability of system.Meanwhile the message converting system uses more concurrency protocol loophole mechanism so that Message converting system connect more stability and high efficiency with cloud platform (host computer 400).
In addition, often changing using the port of the equipment of udp protocol, if using traditional approach, thread can be caused to waste. Also, in existing traditional approach, when the processing thread of udp protocol blocks, the whole paralysis of consultative management controller can be caused Paralysis, eventually leading to message converting system can not work.
In the present embodiment, as previously mentioned, equipment access service end includes TCP service modules 621 and UDP clothes Business module 622, also, UDP service modules 622 include session control module 6221 and port list 6222.By being serviced in UDP Session control module 6221 and port list 6222 is arranged in module 622, and the present embodiment forms a kind of UDP server-sides link pretreatment Mechanism so that for message converting system when handling udp protocol, mitigation whole system is due to link is often changed caused by system Load.
Specifically, referring to Figure 3, showing that session control module 6221 and port list 6222 realize UDP services Hold the pretreated mechanism of link, corresponding cooperating process as follows:
After equipment 500, which will log in packet (message), is supplied to message converting system, the UID numbers of equipment 500 can be with login IP address and port numbers bound, and message is saved in UDP service modules 622;Hereafter, this equipment 500 sends message Give message converting system, system that can generate a pointer including UID message and be bundled in main body of the packet;From this, this equipment 500 Address mapping will not be managed in protocol manager 641 with change, report the IP address of carrying and port numbers every time It talks about after control module 6221 receives, all can be compared and change to port list 6222 in UDP service modules 622 etc. and is corresponding Processing (if comparison result is consistent, need not be changed;If comparison result is inconsistent, by new IP address and port numbers group It closes update to be modified in list, to reach the reply of port number change);Message in subsequent consultative management controller 640, Only content modification (will not be processed to address) can be carried out, corresponding address is UID pointers, when message is handled well, transmission When returning this equipment, according to this corresponding IP address of UID pointer maps and port numbers.Pass through this working mechanism, the present embodiment Message converting system can reduce protocol manager 641 memory loss, improve the stability of system.
That is, in the present embodiment, due to being provided with session control module 6221 and port in UDP service modules 622 List 6222 can be realized and compare correction mechanism to adding port in UDP service modules 622, will be easy to cause blocking originally Port is corrected, and setting carries out before message enters consultative management controller 640, is reduced consultative management controller 640 and is handled UDP The worker thread of port numbers (variation) promotes the working efficiency of message converting system, promotes the stability of message converting system.
The embodiment of the present invention additionally provides a kind of message forwarding method, including:
The first request message to meeting application layer protocol is parsed to generate the first request message;First request is disappeared Breath is put into message queue;The first request message is read from message queue, carries out protocol conversion with uniformly, formation meets equipment First conversion message of agreement;
The second request message to meeting device protocol is parsed to generate the second request message;By the second request message It is put into message queue;The second request message is read from message queue, carries out protocol conversion with uniformly, formation meets application layer Second conversion message of agreement.
First request message and the second conversion message all can be JSON messages.First conversion message and the second request message Can be binary system or hexadecimal message, in short, can be the message for meeting various kinds of equipment agreement.
In the present embodiment, the second request message is when logging in packet, and login includes equipment UID numbers, IP address and port numbers.
In the present embodiment, above-mentioned the second request message to the second format is parsed to generate the mistake of the second request message Journey can specifically include following steps:
Generate the Assembly Listing of IP address and port numbers;
The IP address carried in second request message and port numbers are compared and are changed with the information in Assembly Listing Processing, by pointer and the second request message binding including UID number informations;
The second request message to bundle pointer generates the second request message.
Above-mentioned comparison and the process for changing processing may include:The IP address and port numbers that will be carried in second request message This pair of combination, is compared with IP address and port number combinations stored in Assembly Listing, if it is existing combination (i.e. this pair of combination with existing certain is identical to combining), then do not change corresponding information in this Assembly Listing, i.e., need not increase This pair is added to be combined in Assembly Listing;, whereas if this pair of combination is not in Assembly Listing, this combines this pair In information update to Assembly Listing.It follows that the Assembly Listing of blank is added in the group credit union of first pair of IP address and port numbers In.
Although present disclosure is as above, present invention is not limited to this.Any those skilled in the art are not departing from this It in the spirit and scope of invention, can make various changes or modifications, therefore protection scope of the present invention should be with claim institute Subject to the range of restriction.

Claims (10)

1. a kind of message converting system, which is characterized in that including:
With host computer into the host computer access service end of row data communication;
With equipment into the equipment access service end of row data communication;
Message manager, the message manager is for receiving and forwarding from host computer access service end and the equipment The message at access service end;
Consultative management controller, the consultative management controller are used to receive the message come from message manager forwarding, and For the message after receiving to be forwarded to equipment access service end or host computer access service end.
2. message converting system as described in claim 1, which is characterized in that equipment access service end includes TCP services Module and UDP service modules.
3. message converting system as claimed in claim 2, which is characterized in that the UDP service modules include session control mould Block and port list.
4. message converting system as described in claim 1, which is characterized in that the message manager includes message queue mould Block.
5. message converting system as described in claim 1, which is characterized in that the consultative management controller includes consultative management Device and protocol adaptor.
6. message converting system as claimed in claim 5, which is characterized in that the protocol manager includes service mapping row Table.
7. message converting system as described in claim 1, which is characterized in that host computer access service end includes application layer Protocol server and application layer client;The application layer protocol server-side is for receiving the application layer for coming from the host computer Protocol massages;The application layer protocol server-side is http server-sides;The application layer client is used to send out to the host computer Send application layer protocol message;The application layer client is http clients.
8. message converting system as claimed in claim 7, which is characterized in that further include first thread group, the second sets of threads and Third sets of threads;The first thread group includes first thread pond, for providing thread to the application layer protocol server-side;Institute It includes the second thread pool to state the second sets of threads, for providing thread to equipment access service end;The third sets of threads packet Third thread pool is included, for providing thread to the message manager and the consultative management controller.
9. a kind of message forwarding method, which is characterized in that including:
The first request message to meeting application layer protocol is parsed to generate the first request message;First request is disappeared Breath is put into message queue;First request message is read from the message queue, is carried out protocol conversion with uniformly, is formed Meet the first conversion message of device protocol;
The second request message to meeting device protocol is parsed to generate the second request message;By second request message It is put into the message queue;Read second request message from the message queue, carry out protocol conversion with uniformly, shape At the second conversion message for meeting application layer protocol.
10. message forwarding method as claimed in claim 9, which is characterized in that second request message is institute when logging in packet It includes equipment UID numbers, IP address and port numbers to state login;
Second request message to the second format is parsed to generate the second request message, including:
Generate the Assembly Listing of IP address and port numbers;
The IP address carried in second request message and port numbers are compared and are changed with the information in the Assembly Listing Processing bundlees the pointer including UID number informations with second request message;It is asked with bundle the pointer described second Message is asked to generate second request message.
CN201810356776.5A 2018-04-19 2018-04-19 Message converting system and message forwarding method Pending CN108667817A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810356776.5A CN108667817A (en) 2018-04-19 2018-04-19 Message converting system and message forwarding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810356776.5A CN108667817A (en) 2018-04-19 2018-04-19 Message converting system and message forwarding method

Publications (1)

Publication Number Publication Date
CN108667817A true CN108667817A (en) 2018-10-16

Family

ID=63780757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810356776.5A Pending CN108667817A (en) 2018-04-19 2018-04-19 Message converting system and message forwarding method

Country Status (1)

Country Link
CN (1) CN108667817A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111413945A (en) * 2020-03-19 2020-07-14 西安法士特汽车传动有限公司 Method and system for realizing multiple protocols based on thread interaction
CN113259430A (en) * 2021-05-11 2021-08-13 京东数字科技控股股份有限公司 Message calling method and device, electronic equipment and storage medium
CN113572651A (en) * 2021-09-27 2021-10-29 军事科学院***工程研究院网络信息研究所 Cloud platform resource management method and system based on multi-protocol equipment management architecture
CN115039392A (en) * 2020-03-10 2022-09-09 深圳市欢太科技有限公司 Message processing method, device and system and server

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102438015A (en) * 2011-12-13 2012-05-02 清华大学 System and method for node access of internet of things
CN102958105A (en) * 2012-10-23 2013-03-06 大唐软件技术股份有限公司 Internet of things terminal access method and device
CN103095609A (en) * 2013-01-09 2013-05-08 大唐软件技术股份有限公司 Access adaptive method and device based on Internet of things terminals
CN103139150A (en) * 2011-11-25 2013-06-05 中兴通讯股份有限公司 Terminal adaptation processing method, protocol adaptation module and terminal
CN103491190A (en) * 2013-09-30 2014-01-01 国家电网公司 Processing method for large-scale real-time concurrent charger monitoring data
CN103685292A (en) * 2013-12-20 2014-03-26 哈尔滨工业大学 Universal device and method for protocol conversion
KR101636904B1 (en) * 2015-02-11 2016-07-06 부산대학교 산학협력단 Apparatus and Method for Repeating IoT providing Protocol Schema-based Secure Proxy
CN106878163A (en) * 2017-04-13 2017-06-20 冶金自动化研究设计院 A kind of intelligent networking gateway of many data protocol conversions

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139150A (en) * 2011-11-25 2013-06-05 中兴通讯股份有限公司 Terminal adaptation processing method, protocol adaptation module and terminal
CN102438015A (en) * 2011-12-13 2012-05-02 清华大学 System and method for node access of internet of things
CN102958105A (en) * 2012-10-23 2013-03-06 大唐软件技术股份有限公司 Internet of things terminal access method and device
CN103095609A (en) * 2013-01-09 2013-05-08 大唐软件技术股份有限公司 Access adaptive method and device based on Internet of things terminals
CN103491190A (en) * 2013-09-30 2014-01-01 国家电网公司 Processing method for large-scale real-time concurrent charger monitoring data
CN103685292A (en) * 2013-12-20 2014-03-26 哈尔滨工业大学 Universal device and method for protocol conversion
KR101636904B1 (en) * 2015-02-11 2016-07-06 부산대학교 산학협력단 Apparatus and Method for Repeating IoT providing Protocol Schema-based Secure Proxy
CN106878163A (en) * 2017-04-13 2017-06-20 冶金自动化研究设计院 A kind of intelligent networking gateway of many data protocol conversions

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115039392A (en) * 2020-03-10 2022-09-09 深圳市欢太科技有限公司 Message processing method, device and system and server
CN111413945A (en) * 2020-03-19 2020-07-14 西安法士特汽车传动有限公司 Method and system for realizing multiple protocols based on thread interaction
CN111413945B (en) * 2020-03-19 2021-08-03 西安法士特汽车传动有限公司 Method and system for realizing multiple protocols based on thread interaction
CN113259430A (en) * 2021-05-11 2021-08-13 京东数字科技控股股份有限公司 Message calling method and device, electronic equipment and storage medium
CN113572651A (en) * 2021-09-27 2021-10-29 军事科学院***工程研究院网络信息研究所 Cloud platform resource management method and system based on multi-protocol equipment management architecture
CN113572651B (en) * 2021-09-27 2021-12-24 军事科学院***工程研究院网络信息研究所 Cloud platform resource management method and system based on multi-protocol equipment management architecture

Similar Documents

Publication Publication Date Title
CN108667817A (en) Message converting system and message forwarding method
CN105100232B (en) A kind of method of the serve end program smooth upgrade of continual service
CN103902486B (en) System, device and method for implementation of remote direct memory access
CN101072167B (en) Method and system for transmitting information through communication system
CN103856361A (en) Method and system for realizing remote debugging
CN108124003A (en) Network management device connection processing method, apparatus and system
CN104144080B (en) The system and method being managed using remote equipment to terminal device
CN108322530A (en) Transmission method, device, gateway and the storage medium of context information
CN107800603B (en) Intranet user accesses the method and storage medium of headend equipment based on VPN
CN106453334A (en) Communication protocol switching method, apparatus and system
CN105554540B (en) The implementation method and device of a kind of network interface in condition receiving card
CN107846466A (en) Mapping method, server, cloud terminal and the system of cloud peripheral equipment of terminal
CN101567861B (en) Data synchronization method and application system between heterogeneous application systems
CN109729040A (en) Method, equipment and the computer-readable medium of the selection of agreement
CN110049137A (en) A kind of instruction transmission method, collecting method and relevant apparatus
CN107682460A (en) A kind of distributed storage trunked data communication method and system
CN106557288A (en) A kind of method and device for obtaining print data
CN116132511A (en) Proxy-based sensor equipment cross-bus and cross-protocol access DDS network system
CN115348126A (en) Network target range entity equipment access method, device and implementation system
CN110417876A (en) Node server and main control device in session method, distributed system
CN106878419A (en) A kind of efficient Method of printing of desktop cloud based on tunnel and system
CN101977165A (en) Message transmission method and message bus system in cloud mode
CN109936566A (en) A kind of data transmission method system, device and computer readable storage medium
CN112583937A (en) Visual convenient cloud resource deployment system combining public cloud and private cloud
CN105471718B (en) A kind of implementation method of full duplex message queue

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181016