CN109286578A - Message treatment method, device, gateway and storage medium - Google Patents
Message treatment method, device, gateway and storage medium Download PDFInfo
- Publication number
- CN109286578A CN109286578A CN201811133313.9A CN201811133313A CN109286578A CN 109286578 A CN109286578 A CN 109286578A CN 201811133313 A CN201811133313 A CN 201811133313A CN 109286578 A CN109286578 A CN 109286578A
- Authority
- CN
- China
- Prior art keywords
- message
- processed
- queue
- sent
- data transmission
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/62—Queue scheduling characterised by scheduling criteria
- H04L47/625—Queue scheduling characterised by scheduling criteria for service slots or service orders
- H04L47/6275—Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the present application discloses a kind of message treatment method, device, gateway and storage medium, this method includes the information to be processed for obtaining equipment end and sending, if the message to be processed is received by first data transmission channel, the message to be processed is inserted into first queue;If the message to be processed is received by the second data transmission channel, the priority for then determining the message to be processed, the message to be processed is inserted into second queue by the priority of message to be processed in the priority and second queue according to the message to be processed;First queue described in parallel processing and the message to be processed in the second queue, this programme ensure that the timeliness of Message Processing, improve Message Processing efficiency.
Description
Technical field
The invention relates to computer communication technology more particularly to a kind of message treatment method, device, gateways
And storage medium.
Background technique
In the end of Internet of things system, equipment end typically passes through gateway and cloud service interacts, equipment
End and the communication efficiency strong influence of the gateway operational efficiency of entire Internet of things system.Gateway and equipment end are adopted
Two-way communication is taken, equipment end can both receive the message of gateway transmission, actively can also send message, net to gateway
The data communication for closing equipment and equipment end is also such.
In order to avoid the conflict of two-way communication, adoptable scheme is binary channels (i.e. using double antenna), and an antenna is logical
Receipts are responsible in road, another antenna channels is responsible for hair, the disadvantage is that higher cost is high, each equipment will be equipped with two sets of R-T units
So as to cause hardware cost rising.Another way is using the time-sharing system based on single antenna, and equipment is equipped with an antenna, is led to
The mode for crossing division timeslice realizes two-way communication.In reality scene, a gateway often be responsible for multiple equipment end it
Between information exchange, the accumulation of message is be easy to cause in the case where communicating busy so that critical message delay or failure, point
When system the shortcomings that also reside in complete time-sharing system and can not ensure timely responding to for emergency message.
Summary of the invention
This application provides a kind of message treatment method, device, gateway and storage mediums, ensure that Message Processing
Timeliness improves Message Processing efficiency.
In a first aspect, the embodiment of the present application provides a kind of message treatment method, comprising:
The information to be processed that equipment end is sent is obtained, if the message to be processed is connect by first data transmission channel
It receives, then the message to be processed is inserted into first queue;
If the message to be processed pass through the second data transmission channel receive, it is determined that the message to be processed it is preferential
Grade, the priority of message to be processed is by the message to be processed in the priority and second queue according to the message to be processed
It is inserted into second queue;
First queue described in parallel processing and the message to be processed in the second queue.
Second aspect, the embodiment of the present application also provides a kind of message processing apparatus, comprising:
First message receiving module, for obtaining the information to be processed of equipment end transmission, if the message to be processed is logical
The reception of first data transmission channel is crossed, then the message to be processed is inserted into first queue;
Second message receiving module, if received for the message to be processed by the second data transmission channel, really
The priority of the fixed message to be processed, message to be processed in the priority and second queue according to the message to be processed
The message to be processed is inserted into second queue by priority;
Message processing module, for the message to be processed in first queue described in parallel processing and the second queue.
The third aspect, the embodiment of the present application also provides a kind of gateways, comprising: processor, memory and storage
On a memory and the computer program that can run on a processor, the processor are realized such as when executing the computer program
Message treatment method described in the embodiment of the present application.
Fourth aspect, the embodiment of the present application also provides a kind of storage medium comprising gateway executable instruction, institutes
Gateway executable instruction is stated when being executed by gateway processor for executing message described in the embodiment of the present application
Reason method.
5th aspect, the embodiment of the present application also provides a kind of message treatment methods, comprising:
When detecting message to be sent, the type of the message to be sent is determined, if the message to be sent is first
Preset kind, then switch to the first default frequency range and send the message to be sent to gateway and handled, if it is described to
Transmission message is the second preset kind, then the message to be sent is inserted into transmission according to the priority of the message to be sent
In queue, wherein the message to be sent sent by the described first default frequency range is passed by the gateway by the first data
Defeated channel receives;
By the second default frequency range by the message to be sent in the transmit queue be successively sent to the gateway into
Row processing, wherein the message to be sent sent by the described second default frequency range is passed by the gateway by the second data
Defeated channel receives.
In the present solution, the information to be processed that equipment end is sent is obtained, if the message to be processed is passed by the first data
Defeated channel receives, then the message to be processed is inserted into first queue;If the message to be processed passes through the second data
Transmission channel receives, it is determined that the priority of the message to be processed, the priority and second according to the message to be processed
The message to be processed is inserted into second queue by the priority of message to be processed in queue;First queue described in parallel processing
And the message to be processed in the second queue, it ensure that the timeliness of Message Processing, improve Message Processing efficiency.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow chart of message treatment method provided by the embodiments of the present application;
Fig. 2 is the flow chart of another message treatment method provided by the embodiments of the present application;
Fig. 3 is the flow chart of another message treatment method provided by the embodiments of the present application;
Fig. 4 is a kind of structural block diagram of message processing apparatus provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of gateway provided by the embodiments of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is for explaining the application, rather than the restriction to the application.It also should be noted that for the ease of retouching
It states, part relevant to the application is illustrated only in attached drawing rather than entire infrastructure.
Fig. 1 is a kind of flow chart of message treatment method provided by the embodiments of the present application, is applicable to gateway pair
The case where message that equipment end is sent is handled, this method can be executed by gateway provided by the embodiments of the present application,
The mode that software and/or hardware can be used in the message processing apparatus of the gateway realizes, as shown in Figure 1, the present embodiment provides
Concrete scheme it is as follows:
Step S101, the information to be processed that equipment end is sent is obtained, if the message to be processed is passed by the first data
Defeated channel receives, then the message to be processed is inserted into first queue.
Wherein, which can be equipment end and is sent to gateway, be disappeared by what gateway was handled
The message, is such as forwarded to the processing of Cloud Server by breath.It is set when the message to be processed is sent by equipment end and transmits arrival gateway
After standby, gateway obtains the message to be processed when receiving the message to be processed accordingly, determines its transmission path, such as
The fruit message to be processed is received by the first transmission channel, then correspondingly, message to be processed is inserted into first queue.One
In a embodiment, gateway is provided with two data transmission channels, and each data transmission channel can receive and come from equipment end
The message to be processed sent, illustratively, first data transmission channel are the reception channel of emergency message, the second data transmission letter
Road is the reception channel of common message, wherein different data transmission channels corresponds to different frequency ranges, is received by determination
The reception frequency range of message to be processed is the data transmission channel that can determine message to be processed, and there are two radio band, frequencies for such as setting
Section 1 is the frequency range of first data transmission channel, and frequency range 2 is the frequency range of the second data transmission channel, if what is received is to be processed
Message is received by frequency range 1, it is determined that the message to be processed is received by first data transmission channel, can be determined it as urgent
Message, and be inserted into first queue, wherein the message to be processed in first queue is to be connect by first data transmission channel
The message of receipts.
If step S102, the described message to be processed is received by the second data transmission channel, it is determined that described to be processed
The priority of message, the priority of message to be processed will be described in the priority and second queue according to the message to be processed
Message to be processed is inserted into second queue.
Wherein, if the message to be processed is received by the second data transmission channel, common message can be determined it as, this
When, carry out the determination of the priority of the message to be processed, wherein different priorities characterize the priority processing journey of message to be processed
Degree, priority is higher, before handling the time accordingly more.Specifically, priority and second queue according to message to be processed
In the priority of message to be processed message to be processed is inserted into second queue, wherein second queue commonly disappears for storing
Breath, illustratively, common message include at least two types, determine corresponding priority according to different types, are such as commonly disappeared
Ceasing type includes: query messages and control message, wherein the priority level initializing of control message is higher than query messages, i.e., will control
Message is inserted into before the query messages in second queue, optionally, can be successive according to receiving time for the message of same type
It is inserted into second queue, the message to be processed after such as arranging receiving time is inserted in after the message to be processed before receiving time is arranged.
Step S103, first queue described in parallel processing and the message to be processed in the second queue.
In one embodiment, gateway carries out the reception of message to be processed using two data transmission channels, wherein
One data transmission channel for receiving emergency message, insert for receiving plain edition message, emergency message by another transmission channel
Enter to first queue, common message is inserted into second queue, and the message to be processed in the first queue and second queue is using simultaneously
The mode of row processing carries out Message Processing, if the message to be processed in the parallel each queue of transmission is to Cloud Server or to it
It is handled to feed back to equipment end.
As shown in the above, disappeared by the way that two data transmission channels and corresponding two are arranged in gateway
Queue is ceased, so that emergency message and common message can be parallel processing, avoids the problem of emergency message is responded not in time, place
Reason efficiency is significantly improved, meanwhile, the division of priority is carried out for common message, priority processing priority is high wait locate
Message is managed, the availability of entire Internet of things system is still ensured that when there are a large amount of low value message or rubbish message.
Based on the above technical solution, in the first queue described in the parallel processing and the second queue
After message to be processed, further includes: if detecting that message to be processed sends failure, the message to be processed is inserted into pair
The tail of the queue for the queue answered.Avoid the problem that the message of processing failure is reprocessed to occupy process resource as a result,.
Fig. 2 is that the flow chart of another message treatment method provided by the embodiments of the present application is optionally determined by described
The response message of the received message to be processed of first data transmission channel transmits the response message by second data
Channel is sent to the equipment end.As shown in Fig. 2, technical solution is specific as follows:
Step S201, the information to be processed that equipment end is sent is obtained, if the message to be processed is passed by the first data
Defeated channel receives, then the message to be processed is inserted into first queue.
If step S202, the described message to be processed is received by the second data transmission channel, it is determined that described to be processed
The priority of message, the priority of message to be processed will be described in the priority and second queue according to the message to be processed
Message to be processed is inserted into second queue.
Step S203, first queue described in parallel processing and the message to be processed in the second queue.
Step S204, the response message by the received message to be processed of the first data transmission channel is determined, by institute
It states response message and the equipment end is sent to by second data transmission channel.
It in a possible embodiment, further include determining the first number when message to be processed in parallel processing queue
According to the response message of the received message to be processed of transmission channel, if it is needed to equipment end feedback response message, accordingly
Response message is sent to the equipment end by the second data transmission channel, equipment end only passes through first data transmission as a result,
Channel sends message, and the reception without message, the message sent for gateway pass through the second data transmission channel
It is received.
It can be seen from the above, being directed to first data transmission channel, it is only used for the message of receiving device end transmission, is counted by other
The response that response message is carried out according to transmission channel, so that first data transmission channel is not occupied by response message, when can be with first
Between receiving device end send message and carry out parallel processing.
Based on the above technical solution, the communication pattern of the first data transmission channel is listening mode, described
The communication pattern of second data transmission channel includes listening mode and sending mode, and in the listening mode and the transmission mould
It is switched between formula.Wherein, first data transmission channel takes a kind of communication pattern, and listening mode is for carrying out message sink
Monitoring, the message to be processed and being inserted into respective queue that real-time reception equipment end is sent handled, the transmission of the second data
The communication pattern of channel includes listening mode and sending mode, in the listen mode, the common message that receiving device end is sent,
In the transmit mode, the message that feedback message or cloud service are sent is sent to equipment end.It as a result, can be logical in first time
It crosses the information of first data transmission channel receiving device end transmission and is handled, ensure that the timeliness of emergency message processing.
Fig. 3 is the flow chart of another message treatment method provided by the embodiments of the present application.As shown in figure 3, technical solution
It is specific as follows:
Step S301, it when detecting message to be sent, determines the type of the message to be sent, to be sent disappears if described
Breath is the first preset kind, then switches to the first default frequency range transmission message to be sent to gateway and handled, such as
Message to be sent described in fruit is the second preset kind, then inserts the message to be sent according to the priority of the message to be sent
Enter into transmit queue.
Wherein, which can be emergency message type, and the second preset kind can be common message type,
Wherein, emergency message is the message for needing to handle in time, and the message for being sent to Cloud Server as client manually controls triggering can
It (can be promptly to disappear by increasing message type field in the message or using original field identification to be identified as emergency message
Breath, if emergency message is identified as 1,0) common message is identified as, emergency message is sent out by using the first default frequency range
It send, wherein connect by the gateway by first data transmission channel by the message to be sent that the first default frequency range is sent
It receives, the specific frequency of the first default frequency range can be according to manufacturer, developer's sets itself.If message to be sent is second pre-
If message to be sent is then inserted into transmit queue according to the priority of message to be sent by type (i.e. common message), wherein
Priority can be control class message priority to be processed and be higher than inquiry class message to be processed, i.e. inquiry class message insertion to be processed
To after control class message to be processed.
In one embodiment, when judging current message for emergency message, if transmission frequency range is the second default frequency range,
The switching for then carrying out sending frequency range, switches to the transmission that the first default frequency range carries out the emergency message, switches again after being sent
Return the transmission that the second default frequency range carries out message in corresponding queue.
Step S302, the message to be sent in the transmit queue is successively sent to by the net by the second default frequency range
Equipment is closed to be handled.
Wherein, the message that the second default frequency range is sent will be transmitted to gateway by the second data transmission channel, the frequency
Include a plurality of message to be processed in the corresponding transmit queue of section, is successively carried out according to the collating sequence of the message to be processed in queue
It sends.
It can be seen from the above, sending the message of different type rank by the way that different frequency ranges is arranged, emergency message ensure that
It is preferential to send, it ensure that the timeliness of Message Processing, improve Message Processing efficiency.
Fig. 4 is a kind of structural block diagram of message processing apparatus provided by the embodiments of the present application, and the device is above-mentioned for executing
The message treatment method that embodiment provides, has the corresponding functional module of execution method and beneficial effect.As shown in figure 4, the dress
It sets and specifically includes: first message receiving module 101, second message receiving module 102 and message processing module 103, wherein
First message receiving module 101, for obtaining the information to be processed of equipment end transmission, if the message to be processed
It is received, then the message to be processed is inserted into first queue by first data transmission channel.
Wherein, which can be equipment end and is sent to gateway, be disappeared by what gateway was handled
The message, is such as forwarded to the processing of Cloud Server by breath.It is set when the message to be processed is sent by equipment end and transmits arrival gateway
After standby, gateway obtains the message to be processed when receiving the message to be processed accordingly, determines its transmission path, such as
The fruit message to be processed is received by the first transmission channel, then correspondingly, message to be processed is inserted into first queue.One
In a embodiment, gateway is provided with two data transmission channels, and each data transmission channel can receive and come from equipment end
The message to be processed sent, illustratively, first data transmission channel are the reception channel of emergency message, the second data transmission letter
Road is the reception channel of common message, wherein different data transmission channels corresponds to different frequency ranges, is received by determination
The reception frequency range of message to be processed is the data transmission channel that can determine message to be processed, and there are two radio band, frequencies for such as setting
Section 1 is the frequency range of first data transmission channel, and frequency range 2 is the frequency range of the second data transmission channel, if what is received is to be processed
Message is received by frequency range 1, it is determined that the message to be processed is received by first data transmission channel, can be determined it as urgent
Message, and be inserted into first queue, wherein the message to be processed in first queue is to be connect by first data transmission channel
The message of receipts.
Second message receiving module 102, if received for the message to be processed by the second data transmission channel,
The priority for determining the message to be processed, according to message to be processed in the priority and second queue of the message to be processed
Priority the message to be processed is inserted into second queue.
Wherein, if the message to be processed is received by the second data transmission channel, common message can be determined it as, this
When, carry out the determination of the priority of the message to be processed, wherein different priorities characterize the priority processing journey of message to be processed
Degree, priority is higher, before handling the time accordingly more.Specifically, priority and second queue according to message to be processed
In the priority of message to be processed message to be processed is inserted into second queue, wherein second queue commonly disappears for storing
Breath, illustratively, common message include at least two types, determine corresponding priority according to different types, are such as commonly disappeared
Ceasing type includes: query messages and control message, wherein the priority level initializing of control message is higher than query messages, i.e., will control
Message is inserted into before the query messages in second queue, optionally, can be successive according to receiving time for the message of same type
It is inserted into second queue, the message to be processed after such as arranging receiving time is inserted in after the message to be processed before receiving time is arranged.
Message processing module 103 disappears for be processed in first queue described in parallel processing and the second queue
Breath.
In one embodiment, gateway carries out the reception of message to be processed using two data transmission channels, wherein
One data transmission channel for receiving emergency message, insert for receiving plain edition message, emergency message by another transmission channel
Enter to first queue, common message is inserted into second queue, and the message to be processed in the first queue and second queue is using simultaneously
The mode of row processing carries out Message Processing, if the message to be processed in the parallel each queue of transmission is to Cloud Server or to it
It is handled to feed back to equipment end.
As shown in the above, disappeared by the way that two data transmission channels and corresponding two are arranged in gateway
Queue is ceased, so that emergency message and common message can be parallel processing, avoids the problem of emergency message is responded not in time, place
Reason efficiency is significantly improved, meanwhile, the division of priority is carried out for common message, priority processing priority is high wait locate
Message is managed, the availability of entire Internet of things system is still ensured that when there are a large amount of low value message or rubbish message.
In a possible embodiment, the message processing module 103 is also used to: being determined and is passed by first data
The response message is sent to by the response message of the defeated received message to be processed of channel by second data transmission channel
The equipment end.
In a possible embodiment, the second message receiving module 102 is specifically used for:
Type according to the message to be processed determines that the priority of the message to be processed, the type include control class
Type and query type.
In a possible embodiment, the communication pattern of the first data transmission channel is listening mode, described the
The communication pattern of two data transmission channels includes listening mode and sending mode, and in the listening mode and the sending mode
Between switch over.
In a possible embodiment, the message processing module 103 is also used to:
After the first queue described in the parallel processing and the message to be processed in the second queue, if detection
It sends and fails to message to be processed, then the message to be processed is inserted into the tail of the queue of corresponding queue.
In a possible embodiment, the message processing module 103 is specifically used for:
Message to be processed in the first queue and second team is successively sent to server.
The present embodiment provides a kind of gateway on the basis of the various embodiments described above, and Fig. 5 is that the embodiment of the present application mentions
The structural schematic diagram of a kind of gateway supplied, as shown in figure 5, the gateway includes: memory 201, processor
(Central Processing Unit, CPU) 202, Peripheral Interface 203, communication module 204, these components pass through one or more
A communication bus or signal wire 205 communicate.
It should be understood that diagram gateway is only an example of gateway, and gateway can have
Have than shown in the drawings more or less component, two or more components can be combined, or can have not
Same component configuration.Various parts shown in the drawings can include one or more signal processings and/or dedicated integrated electricity
It is realized in the combination of hardware, software or hardware and software including road.
Wherein, memory 201, the memory 201 can be accessed by CPU202, Peripheral Interface 203 etc., the memory
201 may include high-speed random access memory, can also include nonvolatile memory, such as one or more disk storages
Device, flush memory device or other volatile solid-state parts.Peripheral Interface 203, the Peripheral Interface 203 can be by gateways
The peripheral hardware that outputs and inputs of equipment is connected to CPU202 and memory 201, and communication module 204 can be used for taking with equipment end and cloud
Business device carries out data transmission communicating.
It is arbitrarily real that the application can be performed in the message processing apparatus and gateway of the gateway provided in above-described embodiment
The message treatment method for applying gateway provided by example has and executes the corresponding functional module of this method and beneficial effect.Not
The technical detail of detailed description in the above-described embodiments, reference can be made to the message of gateway provided by the application any embodiment
Processing method.
The embodiment of the present application also provides a kind of storage medium comprising gateway executable instruction, and the gateway can
It executes instruction when being executed by gateway processor for executing a kind of message treatment method, this method comprises:
The information to be processed that equipment end is sent is obtained, if the message to be processed is connect by first data transmission channel
It receives, then the message to be processed is inserted into first queue;
If the message to be processed pass through the second data transmission channel receive, it is determined that the message to be processed it is preferential
Grade, the priority of message to be processed is by the message to be processed in the priority and second queue according to the message to be processed
It is inserted into second queue;
First queue described in parallel processing and the message to be processed in the second queue.
In a possible embodiment, the sound by the received message to be processed of the first data transmission channel is determined
Message is answered, the response message is sent to the equipment end by second data transmission channel.
In a possible embodiment, the priority of the determination message to be processed:
Type according to the message to be processed determines that the priority of the message to be processed, the type include control class
Type and query type.
In a possible embodiment, the communication pattern of the first data transmission channel is listening mode, described the
The communication pattern of two data transmission channels includes listening mode and sending mode, and in the listening mode and the sending mode
Between switch over.
In a possible embodiment, in the first queue described in the parallel processing and the second queue to
After processing message, further includes:
If detecting that message to be processed sends failure, the message to be processed is inserted into the team of corresponding queue
Tail.
In a possible embodiment, in first queue and the second queue described in the parallel processing wait locate
Managing message includes:
Message to be processed in the first queue and second team is successively sent to server.
Storage medium --- any various types of memory gateways or storage gateway." storage is situated between term
Matter " is intended to include: install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory
Device, such as DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory,
Magnetic medium (such as hard disk or optical storage);Register or the memory component of other similar types etc..Storage medium can be wrapped also
Include other types of memory or combinations thereof.In addition, storage medium can be located at program in the first computer being wherein performed
In system, or it can be located in different second computer systems, second computer system passes through network (such as internet)
It is connected to first computer system.Second computer system can provide program instruction to the first computer for executing.Term
" storage medium " may include that may reside in different location (such as in the different computer systems by network connection)
Two or more storage mediums.Storage medium can store can be performed by one or more processors program instruction (such as
It is implemented as computer program).
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present application
The message treatment method operation that executable instruction is not limited to the described above, can also be performed provided by the application any embodiment
Relevant operation in message treatment method.
Note that above are only the preferred embodiment and institute's application technology principle of the application.It will be appreciated by those skilled in the art that
The application is not limited to specific embodiment described here, be able to carry out for a person skilled in the art it is various it is apparent variation,
The protection scope readjusted and substituted without departing from the application.Therefore, although being carried out by above embodiments to the application
It is described in further detail, but the application is not limited only to above embodiments, in the case where not departing from the application design, also
It may include more other equivalent embodiments, and scope of the present application is determined by the scope of the appended claims.
Claims (10)
1. message treatment method characterized by comprising
The information to be processed that equipment end is sent is obtained, if the message to be processed is received by first data transmission channel,
The message to be processed is inserted into first queue;
If the message to be processed is received by the second data transmission channel, it is determined that the priority of the message to be processed,
The priority of message to be processed inserts the message to be processed in priority and second queue according to the message to be processed
Enter into second queue;
First queue described in parallel processing and the message to be processed in the second queue.
2. the method according to claim 1, wherein determine by the first data transmission channel it is received to
The response message for handling message, is sent to the equipment end by second data transmission channel for the response message.
3. the method according to claim 1, wherein the priority of the determination message to be processed:
Type according to the message to be processed determines the priority of the message to be processed, the type include Control Cooling and
Query type.
4. method according to any one of claim 1-3, which is characterized in that the communication of the first data transmission channel
Mode is listening mode, and the communication pattern of second data transmission channel includes listening mode and sending mode, and described
It is switched between listening mode and the sending mode.
5. method according to any one of claim 1-3, which is characterized in that the first queue described in the parallel processing
And after the message to be processed in the second queue, further includes:
If detecting that message to be processed sends failure, the message to be processed is inserted into the tail of the queue of corresponding queue.
6. method according to any one of claim 1-3, which is characterized in that first queue described in the parallel processing with
And the message to be processed in the second queue includes:
Message to be processed in the first queue and second team is successively sent to server.
7. message treatment method characterized by comprising
When detecting message to be sent, the type of the message to be sent is determined, if the message to be sent is first default
Type then switches to the first default frequency range transmission message to be sent to gateway and is handled, if described to be sent
Message is the second preset kind, then the message to be sent is inserted into transmit queue according to the priority of the message to be sent
In, wherein the message to be sent sent by the described first default frequency range is believed by the gateway by first data transmission
Road receives;
The message to be sent in the transmit queue is successively sent at the gateway by the second default frequency range
Reason, wherein the second data transmission letter is passed through by the gateway by the message to be sent that the described second default frequency range is sent
Road receives.
8. message processing apparatus characterized by comprising
First message receiving module, for obtaining the information to be processed of equipment end transmission, if the message to be processed passes through the
One data transmission channel receives, then the message to be processed is inserted into first queue;
Second message receiving module, if received for the message to be processed by the second data transmission channel, it is determined that institute
The priority for stating message to be processed, message to be processed is preferential in the priority and second queue according to the message to be processed
The message to be processed is inserted into second queue by grade;
Message processing module, for the message to be processed in first queue described in parallel processing and the second queue.
9. a kind of gateway, comprising: processor, memory and storage are on a memory and the meter that can run on a processor
Calculation machine program, which is characterized in that the processor is realized when executing the computer program such as any one of claim 1-7 institute
The message treatment method stated.
10. a kind of storage medium comprising gateway executable instruction, which is characterized in that the gateway executable instruction
When being executed by gateway processor for executing such as message treatment method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811133313.9A CN109286578A (en) | 2018-09-27 | 2018-09-27 | Message treatment method, device, gateway and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811133313.9A CN109286578A (en) | 2018-09-27 | 2018-09-27 | Message treatment method, device, gateway and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109286578A true CN109286578A (en) | 2019-01-29 |
Family
ID=65182007
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811133313.9A Pending CN109286578A (en) | 2018-09-27 | 2018-09-27 | Message treatment method, device, gateway and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109286578A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110322161A (en) * | 2019-07-10 | 2019-10-11 | 中国民航信息网络股份有限公司 | Flight comes into force come into force method of adjustment and the device of batch |
CN111328148A (en) * | 2020-03-11 | 2020-06-23 | 展讯通信(上海)有限公司 | Data transmission method and device |
CN111614486A (en) * | 2020-04-13 | 2020-09-01 | 北京瀚诺半导体科技有限公司 | Method, device, electronic equipment and medium for network management message transmission |
CN112000446A (en) * | 2020-07-13 | 2020-11-27 | 深圳市优必选科技股份有限公司 | Data transmission method and robot |
CN112506623A (en) * | 2019-09-16 | 2021-03-16 | 瑞昱半导体股份有限公司 | Message request method and device |
CN112714159A (en) * | 2020-12-21 | 2021-04-27 | 青岛易来智能科技股份有限公司 | Message forwarding method and device, storage medium and electronic device |
CN113438153A (en) * | 2021-06-25 | 2021-09-24 | 北京理工大学 | Vehicle-mounted gateway, intelligent automobile and control method |
CN115314473A (en) * | 2022-06-21 | 2022-11-08 | 中化学交通建设集团有限公司 | Communication method based on LoRa gateway, related equipment and monitoring system |
CN116701009A (en) * | 2022-11-21 | 2023-09-05 | 荣耀终端有限公司 | Data communication method and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102129443A (en) * | 2010-12-30 | 2011-07-20 | 中国民航信息网络股份有限公司 | Real-time data transmission channel and method based on USAS (Univac Standard Airline Systems) host |
CN103067985A (en) * | 2011-10-21 | 2013-04-24 | 上海无线通信研究中心 | Super-speed wireless local area network channel binding and allocation method based on channel quality |
US20160211920A1 (en) * | 2013-08-30 | 2016-07-21 | Nec Corporation | Optical transmission apparatus, optical reception apparatus, optical communication apparatus, optical communication system, and methods of controlling them |
CN106788911A (en) * | 2015-11-25 | 2017-05-31 | 华为技术有限公司 | A kind of method and apparatus of message retransmission |
CN106851593A (en) * | 2017-03-10 | 2017-06-13 | 广东欧珀移动通信有限公司 | A kind of broadcast transmission method, device and terminal |
-
2018
- 2018-09-27 CN CN201811133313.9A patent/CN109286578A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102129443A (en) * | 2010-12-30 | 2011-07-20 | 中国民航信息网络股份有限公司 | Real-time data transmission channel and method based on USAS (Univac Standard Airline Systems) host |
CN103067985A (en) * | 2011-10-21 | 2013-04-24 | 上海无线通信研究中心 | Super-speed wireless local area network channel binding and allocation method based on channel quality |
US20160211920A1 (en) * | 2013-08-30 | 2016-07-21 | Nec Corporation | Optical transmission apparatus, optical reception apparatus, optical communication apparatus, optical communication system, and methods of controlling them |
CN106788911A (en) * | 2015-11-25 | 2017-05-31 | 华为技术有限公司 | A kind of method and apparatus of message retransmission |
CN106851593A (en) * | 2017-03-10 | 2017-06-13 | 广东欧珀移动通信有限公司 | A kind of broadcast transmission method, device and terminal |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110322161A (en) * | 2019-07-10 | 2019-10-11 | 中国民航信息网络股份有限公司 | Flight comes into force come into force method of adjustment and the device of batch |
CN112506623A (en) * | 2019-09-16 | 2021-03-16 | 瑞昱半导体股份有限公司 | Message request method and device |
CN111328148A (en) * | 2020-03-11 | 2020-06-23 | 展讯通信(上海)有限公司 | Data transmission method and device |
CN111328148B (en) * | 2020-03-11 | 2023-04-07 | 展讯通信(上海)有限公司 | Data transmission method and device |
CN111614486A (en) * | 2020-04-13 | 2020-09-01 | 北京瀚诺半导体科技有限公司 | Method, device, electronic equipment and medium for network management message transmission |
CN112000446A (en) * | 2020-07-13 | 2020-11-27 | 深圳市优必选科技股份有限公司 | Data transmission method and robot |
CN112714159A (en) * | 2020-12-21 | 2021-04-27 | 青岛易来智能科技股份有限公司 | Message forwarding method and device, storage medium and electronic device |
CN113438153A (en) * | 2021-06-25 | 2021-09-24 | 北京理工大学 | Vehicle-mounted gateway, intelligent automobile and control method |
CN113438153B (en) * | 2021-06-25 | 2022-05-10 | 北京理工大学 | Vehicle-mounted gateway, intelligent automobile and control method |
CN115314473A (en) * | 2022-06-21 | 2022-11-08 | 中化学交通建设集团有限公司 | Communication method based on LoRa gateway, related equipment and monitoring system |
CN116701009A (en) * | 2022-11-21 | 2023-09-05 | 荣耀终端有限公司 | Data communication method and electronic equipment |
CN116701009B (en) * | 2022-11-21 | 2024-05-17 | 荣耀终端有限公司 | Data communication method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109286578A (en) | Message treatment method, device, gateway and storage medium | |
US10838890B2 (en) | Acceleration resource processing method and apparatus, and network functions virtualization system | |
CN110661849A (en) | Request processing method and device, electronic equipment and storage medium | |
CN108063813B (en) | Method and system for parallelizing password service network in cluster environment | |
CN110308984B (en) | Cross-cluster computing system for processing geographically distributed data | |
CN108984327B (en) | Message forwarding method, multi-core CPU and network equipment | |
CN105681426A (en) | Heterogeneous system | |
US11102293B2 (en) | System and method for migrating an agent server to an agent client device | |
CN111835809B (en) | Work order message distribution method, work order message distribution device, server and storage medium | |
CN105306755A (en) | Quality detection method and device for contact centre | |
CN114500546B (en) | Communication message sending method, device and equipment based on load balancing cluster | |
US10506021B2 (en) | Method and device for providing communication connection for a plurality of candidate applications in a mobile device | |
CN113905094B (en) | Industrial Internet integration method, device and system | |
CN114979058A (en) | CAN multi-mailbox multiplexing processing method and system | |
CN115480934A (en) | Distributed data processing method, device, equipment and storage medium | |
CN114518917A (en) | Algorithm module scheduling method, algorithm module scheduling device and readable storage medium | |
US8989184B2 (en) | Message relay apparatus and method | |
JP2010146246A (en) | Framework computer program for multi-agent system, network system and inter-agent communication method | |
US9766885B2 (en) | System, method, and storage medium | |
CN113301136B (en) | Service request processing method and device | |
US9674282B2 (en) | Synchronizing SLM statuses of a plurality of appliances in a cluster | |
CN113098914B (en) | Message bus system, message transmission method and device, and electronic equipment | |
CN116244099B (en) | Method and device for communication of processes in embedded system, electronic equipment and storage medium | |
CN115086296B (en) | Log transmission system, log transmission method and related device | |
US20230195546A1 (en) | Message Management Method and Apparatus, and Serverless System |
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: 20190129 |