CN105072147A - Notification message receiving processing method and device - Google Patents
Notification message receiving processing method and device Download PDFInfo
- Publication number
- CN105072147A CN105072147A CN201510387183.1A CN201510387183A CN105072147A CN 105072147 A CN105072147 A CN 105072147A CN 201510387183 A CN201510387183 A CN 201510387183A CN 105072147 A CN105072147 A CN 105072147A
- Authority
- CN
- China
- Prior art keywords
- notification message
- change notification
- receiving
- client
- detection period
- 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.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 21
- 238000001514 detection method Methods 0.000 claims abstract description 41
- 238000000034 method Methods 0.000 claims abstract description 8
- 238000001914 filtration Methods 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
- H04L67/5651—Reducing the amount or size of exchanged application data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention proposes a notification message receiving processing method and device. The flow executed at a message providing end comprises the steps: transmitting a variable notification message to a client in a detection period, wherein the variable notification message contains time sequence information of the variable notification message, so as to enable the client to judge whether the variable notification message is received or not based on the time sequence information and the receiving frequency for receiving the variable notification message. The method and device improves the operation stability of mobile equipment where a client application program Consumer APP is located.
Description
Technical Field
The present invention relates to the field of computer network technologies, and in particular, to a method and an apparatus for processing a received notification message.
Background
When the Property of provider app changes relatively frequently and the flag value of flag org, freedesktop, dbus, Property, emitschange signal of notification message corresponding to the Property is set to true or invalidates, and it is necessary to generate corresponding org, freedesktop, dbus, Property changed signal, consumer app subscribing to the signal may need to analyze the signal at the same frequency, and there arises a problem that when a mobile device in which the provider app is located is analyzing a signal, it needs to receive the next signal and starts to analyze the next signal, and if accumulation occurs, resources of the device in which the provider app is located are consumed seriously, which causes problems of overload, downtime, and even runaway of the mobile device. Therefore, a processing method for receiving notification messages is needed to solve the above technical problems in the prior art.
Disclosure of Invention
The invention provides a processing method and a processing device for receiving a notification message, which improve the running stability of mobile equipment where a client application ConsumerAPP is located.
The technical scheme adopted by the invention is as follows:
a processing method for receiving notification messages, the flow executed at a providing end comprises the following steps: and sending a change notification message to a client in a detection period, wherein the change notification message carries timing information of the change notification message, so that the client judges whether to receive the change notification message based on the timing information and the receiving frequency of receiving the change notification message.
Preferably, the detection period is initiated when a change in an attribute of the providing end application occurs.
Preferably, the provider application starts a detection cycle, sends a change notification message, and sends the change notification message to the router of the client via the provider router; or, the router at the providing end starts a detection period and sends the change notification message to the router at the client.
The invention also provides a processing method for receiving the notification message, and the flow executed at the client comprises the following steps: receiving a change notification message sent by the providing terminal in a detection period, wherein the change notification message carries timing information of the change notification message; determining whether to receive the change notification message based on the timing information and a reception frequency at which the change notification message is received.
Preferably, the timing information includes a sequence number of the change notification message in the detection period and a period time of the detection period; in determining whether to receive the change notification message based on the timing information and a reception frequency at which the change notification message is received: judging whether the sequence number exceeds the product of the cycle time and the receiving frequency; if yes, abandoning the change notification message; and if not, receiving the change notification message.
Preferably, the receiving frequency is determined according to a device parameter of a mobile device provided to the client.
The invention also provides a processing device for receiving the notification message, which is arranged at a providing end, and the device comprises a message sending module used for: and sending a change notification message to a client in a detection period, wherein the change notification message carries timing information of the change notification message, so that the client judges whether to receive the change notification message based on the timing information and the receiving frequency of receiving the change notification message.
The invention also provides a processing device for receiving the notification message, which is arranged at the client, and the device comprises: a receiving module, configured to receive a change notification message sent from the providing end in a detection period, where the change notification message carries timing information of the change notification message; and the judging module is used for judging whether to receive the change notification message or not based on the time sequence information and the receiving frequency of the change notification message.
Preferably, the timing information includes a sequence number of the change notification message in the detection period and a period time of the detection period, and the determining module is further configured to: judging whether the sequence number exceeds the product of the cycle time and the receiving frequency; if so, abandoning the change notification message, and sending a signal for abandoning the change notification message to the providing terminal so as to trigger the providing terminal to end the detection period; and if not, receiving the change notification message.
Preferably, the processing apparatus further comprises a receiving frequency determining module configured to: and determining the receiving frequency according to the equipment parameters of the mobile equipment arranged at the client.
By adopting the technical scheme, the invention at least has the following effects:
the processing method for receiving the notification message can effectively reduce the overload phenomenon caused by the client application program ConsumerAPP processing a large amount of data because the ProviderAPP at the providing end sends the change notification message at high frequency.
Drawings
Fig. 1 is a flowchart of a processing method for receiving a notification message according to a first embodiment of the present invention;
fig. 2 is a flowchart of a processing method for receiving a notification message according to a second embodiment of the present invention;
fig. 3 is a flowchart of a processing method for receiving a notification message according to a second embodiment of the present invention;
fig. 4 is a flowchart of a processing method for receiving a notification message according to a third embodiment of the present invention;
fig. 5 is a diagram illustrating a processing method for receiving a notification message according to a fourth embodiment of the present invention.
Fig. 6 is a block diagram of a processing device for receiving a notification message according to a fifth embodiment and a sixth embodiment of the present invention.
Detailed Description
To further explain the technical means and effects of the present invention adopted to achieve the intended purpose, the present invention will be described in detail with reference to the accompanying drawings and preferred embodiments.
The processing method for receiving the notification message can provide stable operation of the mobile equipment where the client application program is located. The processing method of the reception notification message of the present invention and its respective steps will be described in detail below.
First embodiment
As shown in fig. 1, the flow executed at the providing end of the processing method for receiving a notification message in this embodiment includes: step S10: and sending a change notification message to the client in a detection period, wherein the change notification message carries the timing information of the change notification message, so that the client judges whether to receive the change notification message or not based on the timing information and the receiving frequency of the change notification message. Preferably, the detection period is started when the Property of the providing-side application program ProviderAPP changes. The ProviderAPP starts a monitoring function, and when the Property change is monitored, a change notification message is sent, wherein the change notification message carries the time sequence information of the change notification message. Therefore, the providing end realizes the monitoring function, judges whether to receive the change notification message through the time sequence information and the receiving frequency, and determines whether the detection period needs to be ended or continues to monitor in the detection period according to whether the client receives the change notification message.
The notation Property of org, freedesk, dbus, Property, emitschange signal can be classified into three signal processing cases:
when the annotation value is True: property is changed, a new value of Property is sent carrying the Property in an update Property.
When the label value is False: property is changed, no non-cacheable Property, free Property, dbus, properties, Property changed message is sent.
When the label value is invalidates: when Property changes, Property is sent with no new value of Property.
The messages are all sent in a broadcast mode in a time domain session, and the application program App in the same session can receive the messages. The client application chooses to receive the message in the following way: a filter condition is registered with the client router via the addmatch method. After receiving the change notification message of the Property change, the client router determines whether the change notification message needs to be sent to the client application APP according to the filtering condition. The following is the type of change notification signal.
org.freedesktop.DBus.AddMatch(bus_proxy,"type='signal',name='org.example.App',path_namespace='/org/example/App'");
Wherein the parameters of addmatch include the following: type (message type); sender (Bus name or link unique name); interface (interface name); member (method name or signal name); path (object path); pathnamespace (); destination (destination).
After receiving the change notification message, the client router consumeraljoyn router determines whether to send the new value of Property to the client application consumerapp according to the filtering condition.
Second embodiment
As shown in fig. 2, the ProviderApp starts a detection cycle, sends a change notification message, and sends the change notification message to the router consumeraljoynrouter of the client via the ProviderAlljoynRouter. With respect to a client application program in a client registering a filter condition with a client router, a provider application program on a provider registers a filter condition with a provider router, and a change notification message conforming to the filter condition can add timing information to the provider router. Thus, ProviderAPP informs the provideralljoyrouter via the CoreLibrary to perform the monitoring function. After receiving the change notification message, the provideralljoyrouter filters the change notification message to add timing information to the change notification message meeting the filtering condition, wherein the timing information comprises: the number signal-number of the change notification message in the detection period and the period time of the detection period. In addition, the change notification message also carries parameters such as the message type, the name of the interface of the providing end, the name of the interface attribute, the object path of the providing end, and the like, and is sent out.
As shown in fig. 3, the providing-end router provideralljoyrouter starts a detection period, and sends a change notification message to the router consumeralljoyrouter of the client.
When the client application registers the message handling function (see fig. 2 and 3) with the client AlljoynCoreLibrary, the reception frequency is increased so that the client router acquires the reception frequency.
Third embodiment
As shown in fig. 4, this embodiment is a flow executed at the client, corresponding to the first embodiment. The process executed by the processing method for receiving the notification message at the client in the embodiment includes: step S20: and receiving a change notification message sent by a providing end in a detection period, wherein the change notification message carries the timing information of the change notification message. Step S30: whether to receive the change notification message is determined based on the timing information and the reception frequency of the reception change notification message. The time sequence information includes the number of messages, signal-number, sent by the change notification message in the detection period, or the number of messages sent by the change notification message up to the current time in the detection period. Preferably, the reception frequency is determined according to a device parameter of the mobile device.
Fourth embodiment
As shown in fig. 5, on the basis of the third embodiment, the timing information in this embodiment includes the sequence number of the change notification message within the detection period and the cycle time of the detection period, and therefore, in determining whether to receive the change notification message based on the timing information and the reception frequency of the received change notification message: step 300: judging whether the sequence number exceeds the product of the cycle time and the receiving frequency; step 301: if yes, giving up the change notification message; step 302: if not, receiving a change notification message.
The ConsumerApp determines the frequency of receiving the change notification message by the client according to the device parameters such as the performance and configuration of the mobile device.
After receiving the change notification message, the ConsumerRouter needs to determine whether the sequence number exceeds the product of the cycle time and the receiving frequency, in addition to the conventional filtering condition determination, such as the message type, the name of the interface of the providing end, the name of the interface attribute, the object path of the providing end, and the like. And if not, sending the change notification message to the CoreLibrary of the client, and calling a message processing function by the CoreLibrary to process the change notification message. So that the consumerapplication receives the change notification message (see fig. 2 and 3).
Fifth embodiment
As shown in fig. 6, the processing device for receiving a notification message in this embodiment is disposed at a providing end 10, where the device 10 includes a message sending module 100, configured to: and sending a change notification message to the client in a detection period, wherein the change notification message carries the timing information of the change notification message, so that the client judges whether to receive the change notification message or not based on the timing information and the receiving frequency of the change notification message.
Sixth embodiment
As shown in fig. 6, the processing device for receiving a notification message in the present embodiment is provided in the client 20, and the device 20 includes: a receiving module 200, configured to receive a change notification message sent from a providing end in a detection period, where the change notification message carries timing information of the change notification message. A judging module 201, configured to judge whether to receive the change notification message based on the timing information and a receiving frequency of the received change notification message.
Preferably, the timing information includes a sequence number of the change notification message in the detection period and a period time of the detection period, and the determining module is further configured to: judging whether the sequence number exceeds the product of the cycle time and the receiving frequency; if yes, giving up the change notification message; if not, receiving a change notification message.
Seventh embodiment
As shown in fig. 6, the processing apparatus further includes a receiving frequency determining module 202 configured to: the reception frequency is determined according to a device parameter of the mobile device.
While the invention has been described in connection with specific embodiments thereof, it is to be understood that it is intended by the appended drawings and description that the invention may be embodied in other specific forms without departing from the spirit or scope of the invention.
Claims (10)
1. A processing method for receiving a notification message, wherein a flow executed at a message provider includes:
and sending a change notification message to a client in a detection period, wherein the change notification message carries timing information of the change notification message, so that the client judges whether to receive the change notification message based on the timing information and the receiving frequency of receiving the change notification message.
2. The process of claim 1, wherein the detection period is initiated when a change in an attribute of a providing end application occurs.
3. The process of claim 2, wherein the provider application initiates a detection cycle, sends a change notification message, and sends it to the router of the client via the provider router; or,
and the providing end router starts a detection period and sends the change notification message to the router of the client.
4. A processing method for receiving a notification message, wherein a flow executed at a client includes:
receiving a change notification message sent by the providing terminal in a detection period, wherein the change notification message carries timing information of the change notification message;
determining whether to receive the change notification message based on the timing information and a reception frequency at which the change notification message is received.
5. The processing method according to claim 4, wherein the timing information includes a sequence number of the change notification message in the detection period and a cycle time of the detection period;
in determining whether to receive the change notification message based on the timing information and a reception frequency at which the change notification message is received:
judging whether the sequence number exceeds the product of the cycle time and the receiving frequency;
if yes, abandoning the change notification message;
and if not, receiving the change notification message.
6. The processing method according to claim 4 or 5, wherein the receiving frequency is determined according to a device parameter of a mobile device provided to the client.
7. A processing apparatus for receiving a notification message, which is disposed at a message provider, the apparatus comprising a message sending module, configured to:
and sending a change notification message to a client in a detection period, wherein the change notification message carries timing information of the change notification message, so that the client judges whether to receive the change notification message based on the timing information and the receiving frequency of receiving the change notification message.
8. A processing apparatus for receiving a notification message, the apparatus being provided at a client, the apparatus comprising:
a receiving module, configured to receive a change notification message sent from the providing end in a detection period, where the change notification message carries timing information of the change notification message;
and the judging module is used for judging whether to receive the change notification message or not based on the time sequence information and the receiving frequency of the change notification message.
9. The processing apparatus according to claim 8, wherein the timing information includes a sequence number of the change notification message in the detection period and a cycle time of the detection period;
the judging module is further configured to:
judging whether the sequence number exceeds the product of the cycle time and the receiving frequency;
if yes, abandoning the change notification message;
and if not, receiving the change notification message.
10. The processing apparatus according to claim 8 or 9, wherein the processing apparatus further comprises a reception frequency determination module configured to:
and determining the receiving frequency according to the equipment parameters of the mobile equipment arranged at the client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510387183.1A CN105072147B (en) | 2015-06-30 | 2015-06-30 | Processing method and device for receiving notification message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510387183.1A CN105072147B (en) | 2015-06-30 | 2015-06-30 | Processing method and device for receiving notification message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105072147A true CN105072147A (en) | 2015-11-18 |
CN105072147B CN105072147B (en) | 2021-05-14 |
Family
ID=54501426
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510387183.1A Active CN105072147B (en) | 2015-06-30 | 2015-06-30 | Processing method and device for receiving notification message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105072147B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113472856A (en) * | 2021-06-08 | 2021-10-01 | 北京城市网邻信息技术有限公司 | Message pushing processing method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040249890A1 (en) * | 2003-06-05 | 2004-12-09 | International Business Machines Corporation | Method and system for notification of electronic message reply requirements |
CN102480517A (en) * | 2010-11-30 | 2012-05-30 | 北京千橡网景科技发展有限公司 | Data push method, mobile terminal and server |
CN102882773A (en) * | 2012-10-19 | 2013-01-16 | 杭州也要买电子商务有限公司 | Webpage instant messaging method |
CN102892089A (en) * | 2012-09-25 | 2013-01-23 | 中国联合网络通信集团有限公司 | Message pushing method, device and system |
CN104394125A (en) * | 2014-11-07 | 2015-03-04 | 广东欧珀移动通信有限公司 | A method for a mobile device to share multimedia file and a mobile device |
CN104539504A (en) * | 2014-12-31 | 2015-04-22 | 北京海尔广科数字技术有限公司 | Event triggering method and device |
-
2015
- 2015-06-30 CN CN201510387183.1A patent/CN105072147B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040249890A1 (en) * | 2003-06-05 | 2004-12-09 | International Business Machines Corporation | Method and system for notification of electronic message reply requirements |
CN102480517A (en) * | 2010-11-30 | 2012-05-30 | 北京千橡网景科技发展有限公司 | Data push method, mobile terminal and server |
CN102892089A (en) * | 2012-09-25 | 2013-01-23 | 中国联合网络通信集团有限公司 | Message pushing method, device and system |
CN102882773A (en) * | 2012-10-19 | 2013-01-16 | 杭州也要买电子商务有限公司 | Webpage instant messaging method |
CN104394125A (en) * | 2014-11-07 | 2015-03-04 | 广东欧珀移动通信有限公司 | A method for a mobile device to share multimedia file and a mobile device |
CN104539504A (en) * | 2014-12-31 | 2015-04-22 | 北京海尔广科数字技术有限公司 | Event triggering method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113472856A (en) * | 2021-06-08 | 2021-10-01 | 北京城市网邻信息技术有限公司 | Message pushing processing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105072147B (en) | 2021-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10958543B2 (en) | Monitoring wireless access point events | |
CN105515900B (en) | A kind of method and device obtaining terminal presence | |
CN104980898A (en) | Information pushing method, system and equipment | |
CN111614557B (en) | Data transmission method and device of Mesh network, gateway and storage medium | |
CN108234171B (en) | Data processing method, system and device | |
EP2984803A1 (en) | Method and apparatus for generating insight into the customer experience of web based applications | |
WO2015018303A1 (en) | Method and device for detecting distributed denial of service attack | |
CN111800412A (en) | Advanced sustainable threat tracing method, system, computer equipment and storage medium | |
CN103391520B (en) | A kind ofly tackle the malice method of note, terminal, server and system | |
CN106937323B (en) | Method for monitoring number of user terminals and related equipment | |
WO2016054115A1 (en) | Systems and methods for detecting device identity at a proxy | |
CN106658348A (en) | Method and device for managing monitoring resources and CSE | |
CN104092732A (en) | Intelligent terminal software updating method and device | |
CN114553730A (en) | Application identification method and device, electronic equipment and storage medium | |
CN105072147B (en) | Processing method and device for receiving notification message | |
WO2020052789A1 (en) | Methods, policy node and charging node for enabling spending limit control | |
CN105245591A (en) | Method and system for monitoring desktop cloud performance experience | |
CN111596942A (en) | Method and device for forcibly triggering software upgrading and software upgrading system | |
CN111224983A (en) | Method and device for discovering equipment across network segments | |
EP3195528B1 (en) | Application control interworking in network | |
KR20210048524A (en) | Filter for bulk subscription | |
CN104980520B (en) | Notification message receiving method, device and system | |
CN109032723A (en) | A kind of interface jump method, device and equipment | |
CN107196916A (en) | A kind of method, network side equipment and the terminal of virus document detection | |
JP6787845B2 (en) | Suspected location estimation device and suspected location estimation method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |