CN107911286A - A kind of intelligent things equipment message Notification Method and router based on router - Google Patents

A kind of intelligent things equipment message Notification Method and router based on router Download PDF

Info

Publication number
CN107911286A
CN107911286A CN201711338214.XA CN201711338214A CN107911286A CN 107911286 A CN107911286 A CN 107911286A CN 201711338214 A CN201711338214 A CN 201711338214A CN 107911286 A CN107911286 A CN 107911286A
Authority
CN
China
Prior art keywords
message
sent
intelligent
things equipment
management queue
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
CN201711338214.XA
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201711338214.XA priority Critical patent/CN107911286A/en
Publication of CN107911286A publication Critical patent/CN107911286A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of intelligent things equipment message Notification Method based on router, including:Receive the message that intelligent things equipment is sent;The message that intelligent things equipment is sent adds message management queue;According to default time interval, concentrate and the message in message management queue is sent to control of intelligent terminal.In addition, a kind of router is also disclosed, including:Message reception module, for receiving the message of intelligent things equipment transmission;Message managing module, the message for intelligent things equipment to be sent add message management queue;Message transmitting module, for according to default time interval, concentrating the message in message management queue being sent to control of intelligent terminal.By the present invention, convenience, the reliability of message informing are improved, same notification message in the short time is decreased and perplexs caused by user, improve user experience.

Description

A kind of intelligent things equipment message Notification Method and router based on router
Technical field
The present invention relates to Internet of Things field, more particularly to a kind of intelligent things equipment message Notification Method based on router And router.
Background technology
With the development of internet and Internet of Things, intelligent things equipment gradually initially enters family and the life of people, The mankind gradually enter the Intelligent life epoch.These intelligent things equipment are typically all to be set by intelligent terminal (such as mobile phone) It is fixed, while some " situation " notice/promptings of intelligent things equipment are also to be presented by intelligent terminal.
Intelligent things equipment in use, can send some " situation " (such as refrigerator temperature the is excessive) information of itself To control of intelligent terminal, give user and remind accordingly.The alerting pattern of intelligent things equipment is substantially as follows at present:
Intelligent things equipment is connected in internet;
Intelligent things equipment and the one-to-one binding of control of intelligent terminal;
Intelligent things equipment is to remote server PUSH message;
Remote server forwards the message to the control of intelligent terminal for binding the intelligent things equipment.
The basic mode of the prior art is for single intelligent things equipment, it is necessary to rely on the remote service in internet Device, if message sends failure, then intelligent things equipment needs to increase retransmission mechanism, if network is obstructed, then intelligent thing Connection equipment also needs to do the preservation retransmission mechanism of message, but since the hardware condition of intelligent things equipment in itself limits, does this Ground message storage and retransmission mechanism, excessively consume hardware resource.In addition, for individual equipment, above scheme may can be received, But to use above scheme, the then hardware cost expended when there are multiple intelligent things equipment, each equipment in home environment It is excessive, and consumer needs to spend more monetary costs to go to pay this fractional hardware cost.
In terms of remote server, because there are the message notification mechanism of oneself in different equipment vendors and are forwarded for message Remote server, so multiple intelligent things equipment to control of intelligent terminal carry out a message informing network structure excessively Complexity, as shown in Figure 1, message is pushed to respective remote server by intelligent things equipment first, then by respective long-range clothes Business device is pushed to the control of intelligent terminal bound in intelligent things equipment.
In terms of repetition message is excluded, if same equipment, same remind repeatedly trigger in the short time, can frequently it push To user, cause to perplex to user.
The content of the invention
The defects of in order to avoid the above-mentioned prior art, the present invention provide a kind of intelligent things equipment message based on router Notification Method and router, the notification message of all intelligent things equipment is managed concentratedly, relay to intelligence by router Control terminal, improves the convenience of message informing and the reliability of message informing.Specifically, technical solution is as follows:
On the one hand, the invention discloses a kind of intelligent things equipment message Notification Method based on router, including:S100 Receive the message that intelligent things equipment is sent;The message that S200 sends the intelligent things equipment adds message management queue; S300 is concentrated the message in the message management queue being sent to control of intelligent terminal according to default time interval.
Preferably, the message that intelligent things equipment described in the step S100 is sent includes the intelligent things equipment Identification information, type of message and message content.
Preferably, the step S200 includes:The message that S210 is sent according to the intelligent things equipment, disappears described in judgement Breath management queue in whether existing identical message, if so, entering step S220, otherwise enter step S230;S220 is abandoned The message that the intelligent things equipment received is sent;S230 manages strategy concentratedly according to default message, by the intelligent thing Join the message that equipment is sent and add message management queue.
Preferably, the step S300 includes:S310 is periodically checked according to default time interval and is counted the message Manage the message in queue;S320 judges whether the message number in the message management queue of statistics exceedes default quantity; If entering step S330, S340 is otherwise entered step;S330 according to message in the message management queue sequence;From described Default quantity bar message is chosen in message management queue as message to be sent;S340 chooses the institute in the message management queue There is message as message to be sent;S350 judges whether the control of intelligent terminal with the intelligent things equipment is in same office In the net of domain, if so, entering step S360, S370 is otherwise entered step;S360 disappears to be sent in the message management queue Breath is transmitted to the control of intelligent terminal;S370 sends out the message to be sent in the message management queue by remote server Give the control of intelligent terminal.
Preferably, the step S300 is further included:S380 delays when the message in the message management queue sends failure Deposit transmission failure;S390 is again sent the message of caching to institute by remote server after the network-in-dialing State control of intelligent terminal.
On the other hand, the invention also discloses a kind of router, including:Message reception module, for receiving intelligent things The message that equipment is sent;Message managing module, the message for the intelligent things equipment to be sent add message management queue; Message transmitting module, for according to default time interval, concentrating the message in the message management queue being sent to intelligence Control terminal.
Preferably, the message that the intelligent things equipment is sent includes the identification information of the intelligent things equipment, message Type and message content.
Preferably, the message managing module includes:Message judging submodule, for being sent out according to the intelligent things equipment The message sent, judge in the message management queue whether existing identical message;Message abandons submodule, for when described When message judging submodule judges existing identical message in the message management queue, abandon the message reception module and connect The message that the intelligent things equipment received is sent;Message adds submodule, for managing strategy concentratedly according to default message, The message that the intelligent things equipment is sent adds message management queue.
Preferably, the message transmitting module includes:Statistic submodule is checked, for according to default time interval, determining Phase checks and counts the message in the message management queue;Quantity judging submodule, for checking statistics submodule according to Message number in the message management queue of block statistics, judges whether the message number exceedes default quantity;Message is selected Submodule is taken, for when the quantity judging submodule judges that the message number exceedes default quantity, according to the message Manage the sequence of message in queue;Default quantity bar message is chosen from the message management queue as message to be sent;When When the quantity judging submodule judges the message number not less than default quantity, the institute in the message management queue is chosen There is message as message to be sent;Network judging submodule, for judge the control of intelligent terminal whether with the intelligent thing Connection equipment is in same LAN;Message sending submodule, for judging the intelligence control when the network judging submodule When terminal processed is in same LAN with the intelligent things equipment, the message to be sent in the message management queue is turned Issue the control of intelligent terminal;When the network judging submodule judges that the control of intelligent terminal is set with the intelligent things For when being not in same LAN, the message to be sent in the message management queue is sent to institute by remote server State control of intelligent terminal.
Preferably, the router further includes:Cache module, for sending the message pipe when the message transmitting module When managing the message transmission failure in queue, caching sends failure;The message transmitting module, is additionally operable to work as the network After connection, the message that the cache module caches is sent to the control of intelligent terminal by remote server again.
The present invention at least possesses with the next item down technique effect:
(1) message that the present invention sends intelligent things equipment is managed concentratedly, and forwarding is concentrated in timing, improves message The convenience of notice, makes message informing mode simplerization.
(2) present invention to intelligent things equipment send message unified form, containing intelligent things equipment identification information, Type of message and message content, easy to message management, improve the efficiency that identification forwards.
(3) present invention can local re-scheduling, can exclude identical message for the notification message that same equipment is frequently sent, keep away Having exempted from same intelligent things equipment, repeatedly triggering, frequent PUSH message to user terminal, cause what user perplexed in a short time Problem.
(4) relative in the prior art, message will lean on intelligent things equipment itself increase retransmission mechanism hair when sending failure Corresponding remote server is given, The present invention reduces the hardware condition limitation to intelligent things equipment, is set without intelligent things It is standby to do local message storage and retransmission mechanism, reduce the hardware resource consumption of intelligent things equipment, reduce cost.
(5) present invention simplifies network structure relative to the prior art, by managing the message of intelligent things equipment concentratedly, Timing concentrates and is transmitted to control of intelligent terminal again, relative to existing independent again and again to intelligent control from each intelligent things equipment For terminal processed sends a notification message, network structure is more simple, and exploitativeness is strong.
Brief description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is flow of multiple intelligent things equipment to control of intelligent terminal PUSH message in the prior art;
Fig. 2 is the flow chart of the intelligent things equipment message Notification Method embodiment of the invention based on router;
Fig. 3 is the flow chart of intelligent things equipment message Notification Method another embodiment of the invention based on router;
Fig. 4 is the flow chart of intelligent things equipment message Notification Method another embodiment of the invention based on router;
Fig. 5 is the block diagram of router embodiment of the present invention;
Fig. 6 is the block diagram of another embodiment of router of the present invention;
Fig. 7 receives forwarding message flow schematic diagram for router of the present invention " centralization ";
Fig. 8 is the flow diagram that new information adds queue in router of the present invention;
Fig. 9 is the management schematic diagram of queue in router of the present invention.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearer, the present invention is made below in conjunction with attached drawing into One step it is described in detail, it is clear that the described embodiment only a part of embodiment of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, those of ordinary skill in the art are obtained without making creative work All other embodiment, belongs to the scope of protection of the invention.
The invention discloses a kind of intelligent things equipment message Notification Method based on router, embodiment as shown in Fig. 2, Including:
S100 receives the message that intelligent things equipment is sent;
The message that S200 sends the intelligent things equipment adds message management queue;
S300 is concentrated the message in the message management queue being sent to intelligent control end according to default time interval End.
The present embodiment realizes intelligent things equipment message informing mechanism based on router, and router is set as intelligent things The standby message transfer management organization between control of intelligent terminal, receives the various notification messages that each smart machine is sent, and right The notification message of reception is managed concentratedly, is included in message management queue, then again at regular intervals by message management queue In message be sent to control of intelligent terminal.In this way, improving the convenience of message informing, make message informing mode simpler Change.
Preferably, the message that intelligent things equipment described in above-mentioned steps S100 is sent includes the intelligent things equipment Identification information, type of message and message content.Specifically, the form that Internet of Things equipment sends message can be set, so as to improve knowledge Other efficiency and forwarding rate.For example the message that intelligent things equipment is sent is by tri- parts of deviceId, msgType and body Form;Wherein, deviceId (can ensure uniqueness) using the MAC Address of intelligent things equipment;MsgType is by each intelligence Internet of Things equipment oneself defines, and is type of message;Body then represents specifically to need the message content prompted.
Another embodiment of the present invention, as shown in figure 3, including:
S100 receives the message that intelligent things equipment is sent;
The message that S210 is sent according to the intelligent things equipment, judge in the message management queue whether existing phase Same message, if so, entering step S220, otherwise enters step S230;
S220 abandons the message that the intelligent things equipment received is sent;
S230 manages strategy concentratedly according to default message, and the message that the intelligent things equipment is sent adds message pipe Manage queue;
S300 is concentrated the message in the message management queue being sent to intelligent control end according to default time interval End.
In above-described embodiment, after the message for receiving the transmission of intelligent things equipment, in order to avoid the repetition of same message is continuous Occur, therefore also need to carry out re-scheduling processing to the message of reception, whether see has identical message in message management queue, if If having, then discard processing, is not added message management queue;It's not true is then added into message management queue again. Specific re-scheduling processing, i.e., first check it is which intelligent things equipment is sended over according to the message A of reception, then see message Whether there is the message that the intelligent things equipment sends in management queue, if it is not, can determine that there is no identical certainly Message, then message A can be added to message management queue, waiting lines's forwarding;And then also need to if any into one Step investigation, specifically checks that type of message, message content etc. further determine that and whether there is same intelligence in message management queue The identical message that Internet of Things equipment is sent, then discard processing is performed if existing to message A;Then message A is drawn if being not present Enter message management queue.In addition, how message centralized management strategy, i.e., be managed sequence to the message of reception;Such as can be with Be ranked up according to the time of reception, the message first received is come before in message management queue, below according to the time Order is ranked up as being lined up successively.Certainly, in addition to according to time sequence, priority can also be considered, will be important Message come before, for example can be set in type of message, the message sets that msgType is 1 are important message, The message that msgType is 0 is then set as general notification message, in this way, when receiving the message that type of message is 1, then can incite somebody to action It is come before the message that type of message in message management queue is 0 (equivalent to the priority treatment that can jump the queue).Type of message can be set Fixed important with common, equally, intelligent things equipment can also set priority, for example the priority of intelligent refrigerator is 2 grades, Intelligent air The priority of tune is 1 grade (1 grade of priority level is higher than 2 grades);So when the notice that the type of message for receiving intelligent air condition is 1 disappears After breath, if identical message is not present through investigating in message management queue, then strategy can be managed concentratedly by default message, The notification message of the intelligent air condition is added into message management queue.If specifically, in message management queue, come above be The type of message that intelligent refrigerator is sent is 1 notification message, then, although the type of message of intelligent refrigerator and intelligent air condition disappear It is all 1 to cease type, is all important messages, still, since the priority of intelligent refrigerator is less than intelligent air condition, in sequence, Although just receiving the notification message of intelligent air condition below, still the notice that the type of message of intelligent air condition is 1 is disappeared The type of message that breath comes intelligent refrigerator is before 1 notification message.That is the message received is first according in sequence Type of message is ranked up, it is important come before;In the case where type of message is identical according to the preferential of intelligent things equipment Level sorts, priority level it is high come before;In the case that if the priority level of intelligent things equipment is identical, according to when Between be ranked up, first receive come before.In this way, it ensure that important message can timely be sent to intelligent control end End, avoids time delays.
Another embodiment of the method for the present invention, as shown in figure 4, including:
S100 receives the message that intelligent things equipment is sent;
The message that S200 sends the intelligent things equipment adds message management queue;
S310 is periodically checked according to default time interval and is counted the message in the message management queue;
S320 judges whether the message number in the message management queue of statistics exceedes default quantity;If enter step Rapid S330, otherwise enters step S340;
S330 according to message in the message management queue sequence;Default quantity is chosen from the message management queue Bar message is as message to be sent;
All message in the S340 selections message management queue are as message to be sent;
S350 judges whether the control of intelligent terminal is in same LAN with the intelligent things equipment, if so, S360 is entered step, otherwise enters step S370;
Message to be sent in the message management queue is transmitted to the control of intelligent terminal by S360;
Message to be sent in the message management queue is sent to the intelligent control by S370 by remote server Terminal.
, can be every default after message that intelligent things equipment is sent is added in message management queue in the present embodiment Concentration forwarding is carried out after period, before forwarding, can first check and count how many bar message in message management queue looked at, such as Fruit message number is relatively more, and breath management queue can be offseted according to default quantity and is segmented, limits the number of forwarding message every time Amount.For example have 40 message in message management queue, and each of setting can only at most send out 10, send at intervals of 15S;That , just 10 message are sent every 15S.Message in message management queue is all sequence, and first in, first out, sort forward elder generation Hair.Intelligent things equipment may correspond to different control of intelligent terminal, therefore, can also store an intelligent thing in the router Join equipment and the corresponding table of control of intelligent terminal, the message easy to which intelligent things equipment is sent is forwarded to accurate intelligent control Terminal.In addition, before sending, router can also judge control of intelligent terminal with intelligent things equipment whether in same local Net, if it is, the message of the intelligent things equipment directly can be transmitted to control of intelligent terminal by router;If It is not if same LAN, then just need to be sent to remote server by network, then forwarded by remote server To control of intelligent terminal.
Another embodiment of the present invention, on the basis of above-described embodiment, when network is bad or suspension in the case of may Can there is a situation where to send failure, and when the message in the message management queue sends failure, then it can cache transmission failure Message;After network-in-dialing, the message of caching is sent to the control of intelligent terminal by remote server again.Such as This, by local cache message, treats that the follow-up supervention of network-in-dialing is sent, and improves the reliability of message transmission.
Based on identical technical concept, the invention also discloses a kind of router, which can side using the present invention Method embodiment, specifically, as shown in figure 5, the router of the present invention includes:Message reception module 10, for receiving intelligent things The message that equipment is sent;Message managing module 20, the message for the intelligent things equipment to be sent add message management team Row;Message transmitting module 30, for according to default time interval, concentrating and being sent to the message in the message management queue Control of intelligent terminal.
In router embodiment of the present invention, by efficiently managing the message of intelligent things equipment transmission, and concentrated Formula timing is transmitted to control of intelligent terminal, improves the convenience of message informing and the reliability of message informing.Also reduce at the same time The cost of intelligent things equipment, simplifies network structure of the intelligent things equipment dispatch order message to control of intelligent terminal. In order to reduce the number of message transmission, the router of the present embodiment is taken according to intervals to cycle through message management Message in queue, such as every 10 seconds, send a message to remote server;If there is no message in queue, do not send.
Preferably, in above-mentioned router embodiment, the message that the intelligent things equipment is sent includes the intelligent things Identification information, type of message and the message content of equipment.The message that intelligent things equipment is sent is standardized, is uniformly disappeared The form of breath, in order to manage concentratedly and forward.
Another embodiment of router of the present invention, as shown in fig. 6, on the basis of above-mentioned router embodiment, it is described to disappear Breath management module 20 includes:Message judging submodule 21, for the message sent according to the intelligent things equipment, described in judgement In message management queue whether existing identical message;Message abandons submodule 22, for when the message judging submodule 21 when judging existing identical message in the message management queue, abandons the intelligence that the message reception module 10 receives The message that energy Internet of Things equipment is sent;Message adds submodule 23, for managing strategy concentratedly according to default message, by the intelligence The message that energy Internet of Things equipment is sent adds message management queue.
In above-mentioned router embodiment, all smart machines are managed using queue mechanism (message manages strategy concentratedly) Notification message, while exclude the same notification information of identical equipment.Wherein, message centralized management strategy, can combine message The time of significance level, the priority of intelligent things equipment and reception carries out integrated management sequence, allows critical notification message to arrange Sequence is above, so that control of intelligent terminal can be transmitted to as early as possible.It is specifically, right in embodiment of the method before can checking The explanation of message centralized management strategy.Certainly, intelligent things equipment can also add additional information for particularly important notification message, Such as mark "!”;So be labeled with when message judging submodule receives this "!" (represent particularly important) notification message after, The foremost that submodule is arranged in message management queue can be then added by message, immediately should by message transmitting module Important messages are transmitted to control of intelligent terminal, avoid the delay of time.
Another embodiment of router of the present invention, on the basis of any of the above-described embodiment, the message transmitting module 30 Including:Statistic submodule 31 is checked, for according to default time interval, periodically checking and counting in the message management queue Message;Quantity judging submodule 32, for being checked according in the message management queue of the statistics of statistic submodule 31 Message number, judge whether the message number exceedes default quantity;Message chooses submodule 33, for sentencing when the quantity When disconnected submodule 32 judges that the message number exceedes default quantity, according to the sequence of message in the message management queue;From Default quantity bar message is chosen in the message management queue as message to be sent;When the quantity judging submodule 32 judges When the message number is not less than default quantity, all message in the message management queue are chosen as message to be sent; Network judging submodule 34, for judging whether the control of intelligent terminal with the intelligent things equipment is in same LAN It is interior;Message sending submodule 35, for judging the control of intelligent terminal and the intelligence when the network judging submodule 34 When Internet of Things equipment is in same LAN, the message to be sent in the message management queue is transmitted to the intelligent control Terminal;When the network judging submodule 34 judges that the control of intelligent terminal is not at same office with the intelligent things equipment When in the net of domain, the message to be sent in the message management queue is sent to the intelligent control end by remote server End.
In above-mentioned router embodiment, if message is excessive in message management queue, segmentation is sent, and is such as only sent every time Preceding 10 message in queue.In addition, the present embodiment is sent intelligent things equipment by remote server also using network Message be transmitted to control of intelligent terminal.
Preferably, on the basis of above-mentioned router embodiment, the router further includes:Cache module 40, for working as When the message that the message transmitting module 30 sends in the message management queue sends failure, caching sends failure; The message transmitting module 30, is additionally operable to after the network-in-dialing, again passes through the message that the cache module 40 caches Remote server is sent to the control of intelligent terminal.
When network connection disconnects, message can be first locally stored in the notice router of the embodiment of the present invention, wait network After connection, then message is retransmitted, improve the reliability of message transmission.
The router embodiment of the present invention is corresponding with the embodiment of the method for the present invention, the technology of embodiment of the method for the invention Details can equally be well applied to the router embodiment of the present invention, be repeated to reduce, no longer superfluous to chat.
The router of the present invention is a kind of " intelligent router ".Being somebody's turn to do " intelligent router " can method implementation using the present invention Example is (hereinafter referred to as intelligent to forward the notification message of intelligent things equipment (hereinafter referred to as smart machine) to be given to control of intelligent terminal Terminal).
The main technical schemes of the present embodiment are to add " intelligence in the passage of the message informing in smart machine and intelligent terminal The thought of energy router ", the message of smart machine come centralized is received by intelligent router, then uniformly pass through remote service Device is handed down to intelligent terminal.The convenience of message informing is improved, makes message informing mode simplerization.Intelligent road is utilized at the same time Mechanism is sent by the queue mechanism and timing of device, to realize local re-scheduling, storage and the re-transmission of message, what raising message was sent can By property.
Specifically, in multi-terminal network, the centralized hinge that intelligent router is sent as message, all families are added Smart machine in network is transmitted notification messages in the message queue of intelligent router (such as by unified message format Fruit is repetition message, i.e., has existed in queue, be then not added in queue), then intelligent router is according still further to certain time Every the message in queue is sent to remote server, remote server pushes messages to intelligent terminal again.In network connection During disconnection, message can be first locally stored in intelligent router, and after waiting network-in-dialing, intelligent router retransmits message again.
" centralization " message sink based on router and forwarding process of the present embodiment are as shown in fig. 7, router and intelligence Energy equipment exists together in one family local area network, and router and intelligent terminal are all connected with internet, and router and intelligence are whole Hold one-to-one binding.
The message sink and sending method of the present invention relates generally to four steps:
(1) smart machine sends the notification message of oneself to router;
(2) router judges, if being then added without the notification message, do not have whether by same type message in message queue Have, which is added in message queue;
(3) message in queue is forwarded the message to the remote service specified according to certain time interval circulation by router Device, does not have message, does not then send in queue;
(4) remote server forwards messages to the intelligent terminal bound in router again.
The technology contents of four steps more than lower will be specifically described below:
(1) smart machine sends the notification message of oneself to router
When smart machine self-condition finds to change, it is necessary to when notifying intelligent terminal, smart machine can be by notification message The router being sent in LAN.
Notification message mainly has tri- parts of deviceId, msgType and body, as shown in the table:
deviceId msgType body
DeviceId (can ensure uniqueness) using the MAC Address of smart machine;MsgType by each smart machine from Oneself definition, is numeric type, such as " 0 " correspondence " refrigerator temperature is excessive ", " 1 " correspondence " refrigerator temperature is too low ";Body is then represented Specifically need the message content prompted;
(2) router receives and manages message
Router receives new information, and the Rule of judgment being added in queue is as shown in Figure 8.
If having there is the msgId message identical with deviceId in queue, which can be dropped, and avoid repeating The transmission of message.
Router receives the message of smart machine, is put into according to receiving time order in queue, as shown in Figure 9.
(3) router transmits the message to remote server according to certain time interval
In order to reduce the number of message transmission, router is taken according to intervals to cycle through disappearing in queue Breath, such as every 15 seconds, send a message to remote server;If there is no message in queue, do not send.
If message is excessive in message queue, segmentation is sent, such as preceding 10 message in each transmit queue.
If message sends failure, retransmission mechanism can be triggered;If network interruption, router locally preserves message, etc. After network-in-dialing, continue to send, improve the reliability that message is sent.
(4) remote server forwards messages to the intelligent terminal bound in router again
After remote server receives message, according to router and the binding relationship of intelligent terminal, road is transmitted the message to The intelligent terminal bound by device, intelligent terminal receive the reminder message of home intelligent equipment.
The present invention does " centralization " transfer of message transmission using router, improves the convenience of message informing;Use road By the queue mechanism in device come manage with re-scheduling notification message, reduce the short time in same notification message caused by user be stranded Disturb;Meanwhile the caching and retransmission mechanism that all smart machines do message are substituted by router, improve the reliable of message informing Property, save the caching of smart machine do-it-yourself message and the hardware cost of retransmission mechanism.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make these embodiments other change and modification.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out the present invention essence of various changes and deformation without departing from the present invention God and scope.In this way, if these modification and variation of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and deformation.

Claims (10)

  1. A kind of 1. intelligent things equipment message Notification Method based on router, it is characterised in that including:
    S100 receives the message that intelligent things equipment is sent;
    The message that S200 sends the intelligent things equipment adds message management queue;
    S300 is concentrated the message in the message management queue being sent to control of intelligent terminal according to default time interval.
  2. A kind of 2. intelligent things equipment message Notification Method based on router according to claim 1, it is characterised in that The message that intelligent things equipment described in the step S100 is sent includes the identification information of the intelligent things equipment, message class Type and message content.
  3. A kind of 3. intelligent things equipment message Notification Method based on router according to claim 1, it is characterised in that The step S200 includes:
    Whether the message that S210 is sent according to the intelligent things equipment, judge existing identical in the message management queue Message, if so, entering step S220, otherwise enters step S230;
    S220 abandons the message that the intelligent things equipment received is sent;
    S230 manages strategy concentratedly according to default message, and the message that the intelligent things equipment is sent adds message management team Row.
  4. 4. according to a kind of intelligent things equipment message Notification Method based on router of claim 1-3 any one of them, its It is characterized in that, the step S300 includes:
    S310 is periodically checked according to default time interval and is counted the message in the message management queue;
    S320 judges whether the message number in the message management queue of statistics exceedes default quantity;If enter step S330, otherwise enters step S340;
    S330 according to message in the message management queue sequence;Default quantity bar is chosen from the message management queue to disappear Breath is used as message to be sent;
    All message in the S340 selections message management queue are as message to be sent;
    S350 judges whether the control of intelligent terminal is in same LAN with the intelligent things equipment, if so, into Step S360, otherwise enters step S370;
    Message to be sent in the message management queue is transmitted to the control of intelligent terminal by S360;
    Message to be sent in the message management queue is sent to the control of intelligent terminal by S370 by remote server.
  5. A kind of 5. intelligent things equipment message Notification Method based on router according to claim 4, it is characterised in that The step S300 is further included:
    For S380 when the message in the message management queue sends failure, caching sends failure;
    S390 is again sent the message of caching by remote server whole to the intelligent control after network-in-dialing End.
  6. A kind of 6. router, it is characterised in that including:
    Message reception module, for receiving the message of intelligent things equipment transmission;
    Message managing module, the message for the intelligent things equipment to be sent add message management queue;
    Message transmitting module, for according to default time interval, concentrating and being sent to the message in the message management queue Control of intelligent terminal.
  7. 7. a kind of router according to claim 6, it is characterised in that the message that the intelligent things equipment is sent includes Identification information, type of message and the message content of the intelligent things equipment.
  8. 8. a kind of router according to claim 6, it is characterised in that the message managing module includes:
    Message judging submodule, for the message sent according to the intelligent things equipment, judges in the message management queue Whether existing identical message;
    Message abandon submodule, for when the message judging submodule judge it is existing identical in the message management queue During message, the message that the intelligent things equipment that the message reception module receives is sent is abandoned;
    Message adds submodule, for managing strategy concentratedly according to default message, disappears what the intelligent things equipment was sent Breath adds message management queue.
  9. 9. according to a kind of router of claim 6-8 any one of them, it is characterised in that the message transmitting module includes:
    Statistic submodule is checked, for according to default time interval, periodically checking and counting in the message management queue Message;
    Quantity judging submodule, the message count in the message management queue for checking statistic submodule statistics according to Amount, judges whether the message number exceedes default quantity;
    Message chooses submodule, for when the quantity judging submodule judges that the message number exceedes default quantity, pressing According to the sequence of message in the message management queue;Default quantity bar message is chosen from the message management queue as pending Send message;When the quantity judging submodule judges the message number not less than default quantity, the message management is chosen All message in queue are as message to be sent;
    Network judging submodule, for judging whether the control of intelligent terminal with the intelligent things equipment is in same local In net;
    Message sending submodule, for judging the control of intelligent terminal and the intelligent things when the network judging submodule When equipment is in same LAN, it is whole that the message to be sent in the message management queue is transmitted to the intelligent control End;When the network judging submodule judges that the control of intelligent terminal is not at same LAN with the intelligent things equipment When interior, the message to be sent in the message management queue is sent to the control of intelligent terminal by remote server.
  10. 10. a kind of router according to claim 9, it is characterised in that further include:
    Cache module, when the message for being sent when the message transmitting module in the message management queue sends failure, delays Deposit transmission failure;
    The message transmitting module, is additionally operable to after the network-in-dialing, again pass through the message that the cache module caches Remote server is sent to the control of intelligent terminal.
CN201711338214.XA 2017-12-14 2017-12-14 A kind of intelligent things equipment message Notification Method and router based on router Pending CN107911286A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711338214.XA CN107911286A (en) 2017-12-14 2017-12-14 A kind of intelligent things equipment message Notification Method and router based on router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711338214.XA CN107911286A (en) 2017-12-14 2017-12-14 A kind of intelligent things equipment message Notification Method and router based on router

Publications (1)

Publication Number Publication Date
CN107911286A true CN107911286A (en) 2018-04-13

Family

ID=61865698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711338214.XA Pending CN107911286A (en) 2017-12-14 2017-12-14 A kind of intelligent things equipment message Notification Method and router based on router

Country Status (1)

Country Link
CN (1) CN107911286A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112666877A (en) * 2021-02-01 2021-04-16 亚特智物联技术(广东)有限公司 Control system of Internet of things
WO2022037032A1 (en) * 2020-08-19 2022-02-24 海信视像科技股份有限公司 Display apparatus, display system, server, and non-volatile storage medium
CN116170385A (en) * 2023-04-21 2023-05-26 四川汉科计算机信息技术有限公司 Gateway information forwarding system, method, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022037032A1 (en) * 2020-08-19 2022-02-24 海信视像科技股份有限公司 Display apparatus, display system, server, and non-volatile storage medium
CN112666877A (en) * 2021-02-01 2021-04-16 亚特智物联技术(广东)有限公司 Control system of Internet of things
CN116170385A (en) * 2023-04-21 2023-05-26 四川汉科计算机信息技术有限公司 Gateway information forwarding system, method, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107911286A (en) A kind of intelligent things equipment message Notification Method and router based on router
CN103119898B (en) The equipment optimized for the delay of the end-to-end data packet transfer in wireless network and method
CN101527915B (en) Band dynamic selecting and time scheduling method in heterogeneous network
US9036560B2 (en) Hybrid routing and forwarding solution for a wireless sensor network
CN103929730B (en) Trigger method, equipment and system that message is sent
CN107371264A (en) A kind of method and apparatus of transmitting uplink data
CN101401133A (en) Selective activation of field devices in low power wireless mesh networks
CN107852661A (en) Operation for the low power sensor node of wireless network
JP2013021689A (en) Control device and control method
JP2003324443A (en) Ad hoc network system, ad hoc network communication method and radio terminal equipment
CN102164425A (en) MTC (machine type communication)equipment management method, system and MTC equipment
CN105827697A (en) User off-line detection method and user off-line detection system
CN109729602A (en) A kind of link data processing method, device and computer storage medium
CN110392994A (en) HARQ feedback method, device and readable storage medium storing program for executing
CN107306412A (en) Method, user equipment and base station to realize message transmitting
Marandi et al. Practical Bloom filter based epidemic forwarding and congestion control in DTNs: A comparative analysis
CN110401596B (en) Message transmission method and device, electronic equipment and readable storage medium
CN106332175A (en) Method and device for controlling transmission of dual-connection X2 state report and auxiliary base station
CN104813640B (en) A kind of Sink node method for routing and node device
CN115119317B (en) Method and system for optimizing allocation of satellite multicast communication outbound resources
CN110167120A (en) A kind of wireless Star Network low power consuming devices of Internet of Things
CN106658440A (en) Message sending method, related device and system
CN107612665A (en) Data message repeating method and network transmission system
CN103747421A (en) Two-stage cooperative multicast method and system
CN114221894A (en) Internet of things networking loss prevention system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180413