CN114466321A - Message sending method and device, electronic equipment and storage medium - Google Patents

Message sending method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114466321A
CN114466321A CN202210054865.0A CN202210054865A CN114466321A CN 114466321 A CN114466321 A CN 114466321A CN 202210054865 A CN202210054865 A CN 202210054865A CN 114466321 A CN114466321 A CN 114466321A
Authority
CN
China
Prior art keywords
target
channel
message
preset
determining
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
Application number
CN202210054865.0A
Other languages
Chinese (zh)
Other versions
CN114466321B (en
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.)
Beijing Shareit Information Technology Co Ltd
Original Assignee
Beijing Shareit Information 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 Beijing Shareit Information Technology Co Ltd filed Critical Beijing Shareit Information Technology Co Ltd
Priority to CN202210054865.0A priority Critical patent/CN114466321B/en
Publication of CN114466321A publication Critical patent/CN114466321A/en
Application granted granted Critical
Publication of CN114466321B publication Critical patent/CN114466321B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosed embodiment relates to a message sending method and device, an electronic device and a storage medium, wherein the message sending method is applied to a target device and comprises the following steps: acquiring message sending conditions of a plurality of preset channels in a preset time period; determining the current silent duration of the target equipment based on the historical message sending time of the target equipment; the current silent duration represents the duration of the message which is not sent by the current target equipment; determining a target channel in a plurality of preset channels according to the current silent duration and the message sending condition; and sending the target message through the target channel.

Description

Message sending method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of information technologies, and in particular, to a message sending method and apparatus, an electronic device, and a storage medium.
Background
At present, in an application scenario of message pushing such as short messages, the message pushing is often delayed or even lost due to reasons such as unstable network environment. In different actual message sending scenes, the most suitable message sending mode at present needs to be flexibly determined.
Disclosure of Invention
The embodiment of the disclosure provides a message sending method and device, electronic equipment and a storage medium.
A first aspect of the embodiments of the present disclosure provides a message sending method, which is applied to a target device, and the method includes:
acquiring message sending conditions of a plurality of preset channels in a preset time period;
determining the current silent duration of the target equipment based on the historical message sending time of the target equipment; the current silent duration represents the duration of the message which is not sent by the current target equipment;
determining a target channel in a plurality of preset channels according to the current silent duration and the message sending condition;
and sending the target message through the target channel.
Based on the above scheme, the determining a target channel in a plurality of preset channels according to the current silent duration and the message sending condition includes:
determining the priority order of a plurality of preset channels based on the message sending condition;
and determining a target channel in a plurality of preset channels according to the current silent duration and the priority sequence.
Based on the above scheme, the determining a target channel in a plurality of preset channels according to the current silent duration and the priority order includes:
if the current silencing time length is greater than or equal to a preset time length, determining whether a manufacturer channel of the target equipment exists in a plurality of preset channels;
if the manufacturer channel of the target equipment exists, determining the manufacturer channel of the target equipment as the target channel;
if the manufacturer channel of the target equipment does not exist, determining a preset channel with the highest priority as a target channel according to the priority sequence;
and if the current silencing time length is less than the preset time length, determining a preset channel with the highest priority as a target channel according to the priority sequence.
Based on the above scheme, if there is a vendor channel of the target device, determining that the vendor channel of the target device is the target channel includes:
if the manufacturer channel of the target equipment exists, determining an average consumption flow parameter of the manufacturer channel message delivery based on the message sending condition;
and if the average consumption flow parameter is lower than a first threshold value, determining that the manufacturer channel of the target equipment is a target channel.
Based on the above scheme, the method further comprises:
and if the current silent time length is less than the preset time length and the target message fails to be sent through the preset channel with the highest priority, sequentially sending the target message through the rest preset channels from high to low according to the priority.
Based on the above scheme, the method further comprises:
if the continuous failure times for sending the target message reach a second threshold value, determining the message sending frequency of the associated equipment in a preset range based on the position information of the target equipment; the associated equipment is the equipment with the same type as the target equipment;
determining, based on the message sending frequency, a number of associated devices for which the message sending frequency is higher than a third threshold;
if the number of the associated devices is larger than a fourth threshold value, establishing a long connection channel based on the target device;
and retransmitting the target message through the long connection channel.
Based on the above scheme, the determining the priority order of the multiple preset channels based on the message sending condition includes:
calculating a performance evaluation value of each preset channel based on at least one performance parameter indicated by the message sending condition of each preset channel and a preset weight corresponding to each performance parameter; the performance parameters include at least one of: the message delivery rate, the average message delivery duration, the message delivery number and the instruction sending number of the target equipment in the message sending process;
and determining the priority order of the plurality of preset channels based on the high-low ranking of the performance evaluation values of the plurality of preset channels.
Based on the above scheme, the method further comprises:
acquiring the position of the target equipment;
and determining a plurality of preset channels of which the coverage areas comprise the positions of the target equipment based on the coverage area information of the preset channels.
Based on the above scheme, the determining the current silent duration of the target device based on the historical message sending time of the target device includes:
and determining the current silent duration of the target equipment based on the difference value between the last message sending time of the target equipment and the current time.
Based on the above scheme, the method further comprises:
determining at least one historical silent duration based on time intervals between a plurality of historical message sending moments of the target device within the preset time period;
the determining a target channel in a plurality of preset channels according to the current silent duration and the message sending condition includes:
determining the average silent duration of the target equipment according to the current silent duration and at least one historical silent duration;
and determining a target channel in a plurality of preset channels according to the average silent duration and the message sending condition.
Based on the above scheme, the determining a target channel in a plurality of preset channels according to the current silent duration and the message sending condition includes:
determining a target message type based on the identification information of the target message to be sent;
determining whether a preset channel sends a message corresponding to the target message type according to the message sending condition;
if the preset channel sends a message corresponding to the target message type, determining that the preset channel is an alternative channel;
and determining a target channel in the alternative channels according to the current silent duration and the message sending condition.
A second aspect of the embodiments of the present disclosure provides a message sending apparatus, which is applied to a target device, and the apparatus includes:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the message sending conditions of a plurality of preset channels in a preset time period;
a determining unit, configured to determine a current silent duration of the target device based on a historical message sending time of the target device; the current silent duration represents the duration of the message which is not sent by the current target equipment;
a selecting unit, configured to determine a target channel among a plurality of preset channels according to the current silent duration and the message sending condition;
and the sending unit is used for sending the target message through the target channel.
Based on the above scheme, the selecting unit is specifically configured to:
determining the priority order of a plurality of preset channels based on the message sending condition;
and determining a target channel in a plurality of preset channels according to the current silent duration and the priority sequence.
Based on the above scheme, the selecting unit is specifically configured to:
if the current silencing time length is greater than or equal to a preset time length, determining whether a manufacturer channel of the target equipment exists in a plurality of preset channels;
if the manufacturer channel of the target equipment exists, determining the manufacturer channel of the target equipment as the target channel;
if the manufacturer channel of the target equipment does not exist, determining a preset channel with the highest priority as a target channel according to the priority sequence;
and if the current silencing time length is less than the preset time length, determining a preset channel with the highest priority as a target channel according to the priority sequence.
Based on the above scheme, the selecting unit is specifically configured to:
if the manufacturer channel of the target equipment exists, determining an average consumption flow parameter of the manufacturer channel message delivery based on the message sending condition;
and if the average consumption flow parameter is lower than a first threshold value, determining that the manufacturer channel of the target equipment is a target channel.
Based on the above scheme, the apparatus further comprises:
and the retransmission unit is used for sequentially passing through the remaining preset channels from high to low according to the priority to retransmit the target message if the current silencing time length is less than the preset time length and the target message fails to be transmitted through the preset channel with the highest priority.
Based on the above scheme, the retransmission unit is further configured to:
if the continuous failure times for sending the target message reach a second threshold value, determining the message sending frequency of the associated equipment in a preset range based on the position information of the target equipment; the associated equipment is the equipment with the same type as the target equipment;
determining, based on the message sending frequency, a number of associated devices for which the message sending frequency is higher than a third threshold;
if the number of the associated devices is larger than a fourth threshold value, establishing a long connection channel based on the target device;
and retransmitting the target message through the long connection channel.
Based on the above scheme, the selecting unit is specifically configured to:
calculating a performance evaluation value of each preset channel based on at least one performance parameter indicated by the message sending condition of each preset channel and a preset weight corresponding to each performance parameter; the performance parameters include at least one of: the message delivery rate, the average message delivery duration, the message delivery number and the instruction sending number of the target equipment in the message sending process;
and determining the priority order of the plurality of preset channels based on the high-low ranking of the performance evaluation values of the plurality of preset channels.
Based on the above scheme, the apparatus further comprises:
the query unit is used for acquiring the position of the target equipment; and determining a plurality of preset channels of which the coverage areas comprise the positions of the target equipment based on the coverage area information of the preset channels.
Based on the foregoing scheme, the determining unit is specifically configured to:
and determining the current silent duration of the target equipment based on the difference value between the last message sending time of the target equipment and the current time.
Based on the foregoing scheme, the determining unit is further configured to:
determining at least one historical silent duration based on time intervals between a plurality of historical message sending moments of the target device within the preset time period;
the selection unit is specifically configured to:
determining the average silent duration of the target equipment according to the current silent duration and at least one historical silent duration;
and determining a target channel in a plurality of preset channels according to the average silent duration and the message sending condition.
Based on the above scheme, the selecting unit is specifically configured to:
determining a target message type based on the identification information of the target message to be sent;
determining whether a preset channel sends a message corresponding to the target message type according to the message sending condition;
if the preset channel sends a message corresponding to the target message type, determining that the preset channel is an alternative channel;
and determining a target channel in the alternative channels according to the current silent duration and the message sending condition.
A third aspect of the embodiments of the present disclosure provides an electronic device, including:
a memory for storing processor-executable instructions;
a processor coupled to the memory;
wherein the processor is configured to execute the message sending method according to any of the above technical solutions.
A fourth aspect of the embodiments of the present disclosure provides a non-transitory computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when executed by a processor, the computer-executable instructions implement the message sending method according to any of the foregoing technical solutions.
The message sending method provided by the embodiment of the disclosure is applied to target equipment, and comprises the following steps: acquiring message sending conditions of a plurality of preset channels in a preset time period; determining the current silent duration of the target equipment based on the historical message sending time of the target equipment; the current silent duration represents the duration of the message which is not sent by the current target equipment; determining a target channel in a plurality of preset channels according to the current silent duration and the message sending condition; and sending the target message through the target channel. Therefore, whether the preset channel is suitable for sending the message or not can be determined based on the message sending conditions of different preset channels, the activity degree of the target device can be further determined by combining the silent duration of the target device, the preset channel which is most suitable for the message sending task of the current target device can be more accurately selected, and the message transmission effect is better optimized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a message sending method according to an embodiment of the disclosure;
fig. 2 is a schematic structural diagram of a message sending apparatus according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a message pushing method according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
As shown in fig. 1, an embodiment of the present disclosure provides a message sending method, applied to a target device, including:
s110: acquiring message sending conditions of a plurality of preset channels in a preset time period;
s120: determining the current silent duration of the target equipment based on the historical message sending time of the target equipment; the current silent duration represents the duration of the message which is not sent by the current target equipment;
s130: determining a target channel in a plurality of preset channels according to the current silent duration and the message sending condition;
s140: and sending the target message through the target channel.
In the embodiment of the present disclosure, the target device may be a terminal device that needs to send a message, such as a device like a mobile phone or a computer, or may be a server that needs to send a message. The message may include a short message and/or an instant messaging message, and the instant messaging message may include: notification messages, and various types of messages in applications within the target device. The preset channel may be a channel supported by the target device and/or a channel supported by the region where the target device is located and used for transmitting messages. The preset channel may be a wireless channel, such as a system channel provided by different operators, and/or a manufacturer channel provided by a manufacturer corresponding to the target device. Optionally, the preset channel may also be a wired channel.
In one embodiment, the preset time period may be a certain time period before the current time or the time of the message to be sent, for example, a day or an hour, or may also be a time period that has elapsed in the day where the current time is located, for example, a time period between 0:00 and the current time. The obtaining of the message sending condition may be determined by obtaining a historical operation record or log data of a preset channel within a preset time period. For example, the message transmission log data in the preset time period is called to a database corresponding to the preset channel, and the message sending condition is obtained based on the log data.
Illustratively, the messaging condition may be used to indicate at least one of: the number of message sending times, the number of message delivery times, the message delivery rate, the message delivery duration, the traffic cost required for message delivery, and the like.
Here, the message sending times are the total times of messages sent through the preset channel in the preset time period, and the message delivery times are the total times of messages successfully delivered in the messages sent through the preset channel in the preset time period. The message delivery duration may be an average duration used for delivering the message through a predetermined channel within a predetermined time period, for example, an average value may be calculated according to a duration from a message sending time to a message delivery time of each delivered message. The traffic cost required for message delivery may be an average traffic parameter consumed for delivering the message through a preset channel within a preset time period, for example, an average traffic value used for message delivery.
In another embodiment, the historical message sending time may be a sending time corresponding to a message that has been sent by the target device in history, wherein step S120 may include: and determining the current silent duration of the target equipment based on the historical message sending time of the target equipment in the preset time period. For example, the time interval between the last historical message sending time of the target device and the current time within the day before the current time is determined as the current silent duration of the target device.
In another embodiment, the target channel is determined according to the current silent duration and the message sending condition, and the target parameter of each preset channel is determined through weighting calculation based on a first weight of the current silent duration and a second weight of the message sending condition of the preset channel; a target channel is determined among a plurality of preset channels based on the target parameter. For example, the preset channel with the highest target parameter in the plurality of preset channels is selected as the target channel.
In another embodiment, S130 may further include: according to a plurality of performance parameters indicated by the message sending condition and the preset weight of each performance parameter, calculating the performance evaluation value of each preset channel in a weighted mode; determining a target parameter of each preset channel through weighting calculation based on a first weight of the current silent duration and a second weight of a performance evaluation value of the preset channel; a target channel is determined among a plurality of preset channels based on the target parameter. Here, the preset weight of the performance parameter is a different weight value from the first weight, the second weight, and the third weight.
In one embodiment, S130 may further include: and determining a target channel in a plurality of preset channels according to the current silent duration, the message sending condition and the message number or the information quantity of the target message to be sent. For example, a part of preset channels are selected from the plurality of preset channels based on the current silent duration, and the preset channel with the message sending condition most consistent with the message number or the information amount of the target message is determined as the target channel from the part of preset channels.
In another embodiment, determining the target channel in the plurality of preset channels according to the current silent duration, the message sending condition, and the number of messages or the amount of information of the target message to be sent may include: determining a target parameter of each preset channel through weighting calculation according to a first weight of the current silent duration, a second weight of a preset channel message sending condition and a third weight of the message number or the information quantity; a target channel is determined among a plurality of preset channels based on the target parameter.
In yet another embodiment, S130 may further include: according to a plurality of performance parameters indicated by the message sending condition and the preset weight of each performance parameter, calculating the performance evaluation value of each preset channel in a weighted mode; determining a target parameter of each preset channel through weighting calculation based on a first weight of the current silent duration, a second weight of a performance evaluation value of the preset channel and a third weight of the message number or the information amount; a target channel is determined among a plurality of preset channels based on the target parameter.
Therefore, by combining the message sending conditions of the preset channels and the current silent duration of the target device, the target channel can be selected more flexibly and accurately in the preset channels, the message transmission capability of the target channel can be more fit with the current state of the target device based on the current silent duration, and the association degree of the sending state of the target message and the active state of the target device is improved. On the basis, the adaptability of the transmission channel of the target message and the target device can be improved, and unnecessary errors generated by transmitting the message through the target channel can be reduced.
In some embodiments, the S130 may include:
determining the priority order of a plurality of preset channels based on the message sending condition;
and determining a target channel in a plurality of preset channels according to the current silent duration and the priority sequence.
In the embodiment of the present disclosure, determining the priority order of the multiple preset channels based on the message sending condition may include determining the priority order of the multiple preset channels based on the high-low ordering of the message sending capability indicated by the message sending condition. For example, the higher the message sending capability, the higher the priority corresponding to the preset channel.
In one embodiment, the priority order of the plurality of preset channels is determined based on the message sending condition, and the performance evaluation value of the preset channel can be determined based on a plurality of performance parameters contained in the message sending condition; and determining the priority order of the plurality of preset channels based on the high-low ranking of the performance evaluation values of the plurality of preset channels.
In another embodiment, determining the target channel among a plurality of preset channels according to the current silent duration and the priority order may include: determining a target parameter of each preset channel through weighting calculation according to a fourth preset weight of the current silent duration and a fifth preset weight of the priority sequence; a target channel is determined among a plurality of preset channels based on the target parameter.
For example, the target parameter may be calculated according to a fourth preset weight of the current silence period and a fifth preset weight corresponding to the ranking number corresponding to the priority order.
In another embodiment, a part of preset channels which accord with the device activity degree represented by the current silent duration can be selected from a plurality of preset channels according to the current silent duration; and determining a target channel based on the priority order of the partial preset channels.
In one embodiment, the current silent period may be used to determine the probability that the corresponding preset channel is determined as the target channel, for example, for different preset channels, the current silent period may be associated with different probabilities of being determined as the target channel.
For example, for a vendor channel of a target device, the current silence duration may be positively correlated with the probability that the vendor channel is determined to be the target channel. For a system channel provided by an operator, the current silence duration may be positively correlated with the probability that the channel a determines as the target channel, and the current silence duration may be negatively correlated with the probability that the channel B determines as the target channel, and the like.
In another embodiment, the priority of the preset channel in the priority order may have a preset association relationship, such as a positive association relationship, with the probability that the preset channel is determined as the target channel. Therefore, determining the priority order of the plurality of preset channels based on the message sending condition may include: and determining the priority order of the plurality of preset channels based on the message sending condition and the current silent duration.
In another embodiment, determining the priority order of the plurality of preset channels based on the message sending condition may further include: and determining the priority order of the preset channels based on the preset weighting coefficient of each preset channel corresponding to the current silent duration and the message sending condition.
Therefore, based on the message sending capability of the preset channel represented by the message sending condition, the plurality of preset channels can be sequenced, and the obtained priority order can be used as a reference for judging whether the target message is suitable to be sent or not. On the basis, by combining the current silent duration, the target channel which is most fit with the current active state of the target equipment and meets the target message sending requirement can be selected more accurately.
In some embodiments, the determining a target channel among a plurality of preset channels according to the current silent duration and the priority order includes:
if the current silencing time length is greater than or equal to a preset time length, determining whether a manufacturer channel of the target equipment exists in a plurality of preset channels;
if the manufacturer channel of the target equipment exists, determining the manufacturer channel of the target equipment as the target channel;
if the manufacturer channel of the target equipment does not exist, determining a preset channel with the highest priority as a target channel according to the priority sequence;
and if the current silencing time length is less than the preset time length, determining a preset channel with the highest priority as a target channel according to the priority sequence.
In the embodiment of the present disclosure, the preset time period may be a reference value representing the activity level of the target device, for example, the preset time period may be 1 hour or 1 day, and the like. When the current silencing time length is lower than the preset time length, the target equipment can be considered as active equipment; when the current silencing time length is greater than or equal to the preset time length, the target device can be regarded as a silencing device.
In an embodiment, the preset time duration may also be determined according to a type of the target message to be sent, for example, when the target message is a short message type in the target device, the preset time duration may be set to a longer value, for example, 1 day or 12 hours. When the target message is a message type in the communication application program in the target device, the preset time duration may be set to a shorter value, for example, 2 hours or 1 hour.
In one embodiment, when the current silent duration of the target device is greater than or equal to the preset duration, the target device preferentially sends the target message through a manufacturer channel provided by a manufacturer corresponding to the target device. Because the silent time of the target device is too long, stable connection with each current system channel may not be established in time, and therefore, it is more reliable to select a manufacturer channel as a target channel.
In another embodiment, the plurality of preset channels may include a vendor channel corresponding to the target device, and may further include system channels provided by a plurality of operators. If the current silent time length of the target device is greater than or equal to the preset time length and when the manufacturer channels do not exist in the plurality of preset channels, the target channel with the highest priority order in the preset channels can be selected. At this time, the channel having the best message transmission performance among the plurality of system channels is selected.
In another embodiment, if the current silence duration is less than the preset duration, which indicates that the activity level of the target device is high, it is not necessary to send a message only through the vendor channel to maintain stability. Therefore, the target channel can be selected from the plurality of preset channels according to the priority order, or the preset channel with the highest priority can be determined as the target channel according to the priority order from the preset channels except the manufacturer channel of the target device.
Therefore, different types of preset channels are determined to be selected for the target equipment with different activity degrees to send the target message according to the current silent duration, so that the goodness of fit between the attributes of the target channels and the current state of the target equipment is further improved, and the delivery rate of sending the target message is further improved.
In some embodiments, if there is a vendor channel of the target device, determining that the vendor channel of the target device is the target channel includes:
if the manufacturer channel of the target equipment exists, determining an average consumption flow parameter of the manufacturer channel message delivery based on the message sending condition;
and if the average consumption flow parameter is lower than a first threshold value, determining that the manufacturer channel of the target equipment is a target channel.
In an embodiment of the present disclosure, the average consumption flow parameter may include: an average value of consumed traffic parameters of messages sent through the vendor channel within a preset time period, wherein the average consumed traffic parameter may further include: the flow value, flow proportion or flow fee consumed by delivering a message, and the message delivery flow cost of the manufacturer channel can be determined based on the average consumed flow parameter.
In one embodiment, determining an average consumed traffic parameter for vendor channel messaging based on messaging may comprise: determining a flow parameter consumed by a message sent through a manufacturer channel in a preset time period based on the message sending condition of the manufacturer channel in the preset time period; an average consumed traffic parameter is determined based on the traffic parameter and the number of messages delivered.
In another embodiment, determining an average consumed traffic parameter for vendor channel messaging based on messaging may comprise: determining a flow parameter consumed by a message sent by a target device through a manufacturer channel in a preset time period based on a message sending condition of the manufacturer channel in the preset time period; an average consumed traffic parameter is determined based on the traffic parameter and the number of messages delivered.
In yet another embodiment, determining an average consumed traffic parameter for vendor channel messaging based on messaging conditions may comprise: determining first reference equipment within a preset range of target equipment based on the position information of the target equipment; the first reference equipment is equipment with the same manufacturer channel as the target equipment; determining a flow parameter consumed by a message sent by a first reference device through a manufacturer channel in a preset time period based on a message sending condition of the manufacturer channel in the preset time period; an average consumed traffic parameter is determined based on the traffic parameter and the number of messages delivered.
In yet another embodiment, determining an average consumed flow parameter for vendor channel messaging based on messaging conditions may include: determining a second reference device which is the same as the device type of the target device based on the device type of the target device; determining a flow parameter consumed by a message sent by a second reference device through a manufacturer channel in a preset time period based on the message sending condition of the manufacturer channel in the preset time period; an average consumed traffic parameter is determined based on the traffic parameter and the number of messages delivered.
In yet another embodiment, determining an average consumed flow parameter for vendor channel messaging based on messaging conditions may include: determining a flow parameter consumed by the associated message which is sent through the manufacturer channel and has the same type as the target message in a preset time period based on the message sending condition of the manufacturer channel in the preset time period; an average consumed traffic parameter is determined based on the traffic parameter and the number of messages delivered.
In one embodiment, if the average consumption traffic parameter is lower than the first threshold, the cost of the message delivery traffic of the vendor channel may be considered to be low, and the vendor channel of the target device may be determined to be the target channel.
In another embodiment, the method may further comprise: and if the average consumption flow parameter is higher than or equal to the first threshold value, selecting the channel with the highest priority as the target channel from a plurality of preset channels except the manufacturer channel based on the priority order.
In some embodiments, the method further comprises:
and if the current silent time length is less than the preset time length and the target message fails to be sent through the preset channel with the highest priority, sequentially sending the target message through the rest preset channels from high to low according to the priority.
In the embodiment of the present disclosure, when the target device is determined to be an active device based on the current silent duration, the target channel is selected according to the priority order. If the target channel does not deliver the target message, for example, a prompt message of message transmission failure is received, the target message is retransmitted through the remaining preset channels in sequence according to the priority order until the target message is delivered successfully.
In one embodiment, the method may further comprise: if the target channel fails to send the target message, recording the target channel, the type and/or information amount of the target message, the silent duration of the target device and the sending time of the target device as message sending failure information of the target channel. The message transmission failure information can be recorded in the message transmission condition of the target channel and used as reference information when channel selection is carried out next time.
In another embodiment, the method may further comprise: and if the target messages sent through all the preset channels fail to be sent, continuing to send the target messages through the plurality of preset channels in sequence from high to low in priority, and/or generating alarm information.
Therefore, when the target channel fails to transmit, the messages can be continuously retransmitted according to the message transmission capability sequence of the plurality of preset channels, so that the target messages can be retransmitted as fast as possible.
In some embodiments, the method further comprises:
if the continuous failure times for sending the target message reach a second threshold value, determining the message sending frequency of the associated equipment in a preset range based on the position information of the target equipment; the associated equipment is the equipment with the same type as the target equipment;
determining, based on the message sending frequency, a number of associated devices for which the message sending frequency is higher than a third threshold;
if the number of the associated devices is larger than a fourth threshold value, establishing a long connection channel based on the target device;
and retransmitting the target message through the long connection channel.
In the embodiment of the present disclosure, if the number of consecutive failures of sending the target message reaches the second threshold, it indicates that the difficulty of transmitting the target message through the preset channel is high. For example, the second threshold may be 2 times, 3 times, etc., or the second threshold may also be determined according to the number of preset channels, for example, the second threshold may be equal to the number of preset channels or half of the number of preset channels, etc.
In one embodiment, determining the message sending frequency of the associated device within the preset range based on the location information of the target device may be: determining related equipment within a certain distance range from the position of the target equipment based on the position information of the target equipment, for example, related equipment in the same city, county or town and other region ranges with the target equipment; and determining the message sending frequency of the associated equipment according to the message sending condition or the current silent duration of the associated equipment.
Here, the associated device may be all devices that have message sending capability or have sent a message, may be a device of the same type as the device of the target device, or may be a device having the same vendor channel as the target device.
In another embodiment, the associated device with frequent message transmission may be determined based on the message transmission frequency, i.e. the associated device may be considered as an active device when the message transmission frequency is higher than the third threshold. Due to the high cost of long connection channel set-up, a sufficient number of active devices need to be used. It may thus be determined whether it is necessary to establish a long connection channel, depending on the number of active devices in the associated device and the fourth threshold.
In yet another embodiment, the third threshold may be determined according to the property of the long connection channel, or may be determined according to the message transmission frequency of the target device. For example, when the current silence duration of the target device is lower than the first threshold, the third threshold may be equal to a message sending frequency of the target device, or when the current silence duration of the target device is greater than or equal to the first threshold, the third threshold may be determined according to a difference between the current silence duration of the target device and the first threshold.
In this way, when the preset channel is difficult to successfully deliver the target message, a long connection channel can be established to complete the retransmission of the target message based on the activity level and the number of other devices within a certain range near the target device.
In some embodiments, the determining the priority order of the plurality of preset channels based on the message sending condition includes:
calculating a performance evaluation value of each preset channel based on at least one performance parameter indicated by the message sending condition of each preset channel and a preset weight corresponding to each performance parameter; the performance parameters include at least one of: the message delivery rate, the average message delivery duration, the message delivery number and the instruction sending number of the target equipment in the message sending process;
and determining the priority order of the plurality of preset channels based on the high-low ranking of the performance evaluation values of the plurality of preset channels.
In the embodiment of the present disclosure, the performance parameter may be directly obtained in the message sending situation, for example, the message delivery number and the instruction sending number of the target device in the message sending process, or may be obtained by calculation based on the message sending situation, for example, the message delivery rate is obtained based on the ratio of the message delivery number and the message sending number, and the average message delivery duration is obtained based on the message delivery number and the duration used by each delivered message.
Here, the number of command transmissions of the target device during the message transmission process may be the number of operation commands issued by the target device side between the message issuance time and the message delivery time, for example, the number of click operations on the target device side. Thus, the instruction sending number of the target device in the message sending process can be used for representing the operation instruction number required by the target device for sending the message.
In one embodiment, determining the priority order of the plurality of preset channels based on the rank order of the performance evaluation values of the plurality of preset channels may include: determining the arrangement numerical value of each preset channel based on the high-low sequence of the performance evaluation values of the plurality of preset channels; based on the first weighting coefficient of the permutation value, combining at least one of a second weighting coefficient of the current silent duration, a third weighting coefficient of the message number or the information quantity of the target message and a fourth weighting coefficient of the message type of the target message, and obtaining a target parameter of a preset channel through weighting calculation; and determining the priority order of the plurality of preset channels based on the high-low ordering of the target parameters.
Therefore, the performance evaluation value calculated based on the performance parameter and the preset weight can more accurately represent the message sending capability of the preset channel, so that the determined priority order can be used for better determining the target channel for sending the target message, and a more stable transmission effect is provided for sending the target message.
In some embodiments, the method further comprises:
acquiring the position of the target equipment;
and determining a plurality of preset channels of which the coverage areas comprise the positions of the target equipment based on the coverage area information of the preset channels.
In the embodiment of the present disclosure, the coverage area information of the preset channel represents a geographical area supporting sending of a message through the preset channel, so that the preset channel available for the target device to send the message may be determined based on the location of the target device.
In one embodiment, determining a plurality of preset channels whose coverage areas include the positions of the target devices may include: and determining a plurality of preset channels of a target range with the position of the target equipment as the center. The target range may be a range formed by a preset distance with a radius centered on the target device position. Therefore, the negative influence of the target device on the message sending effect at the edge of the coverage range of the preset channel can be reduced, and the preset channel with higher message sending capability is provided.
In some embodiments, the S120 may include:
determining the current silent duration of the target equipment based on the difference value between the last message sending time and the current time of the target equipment; the current silent duration characterizes a duration of a message not sent by the current target device.
In the embodiment of the present disclosure, the last message sending time of the target device may be determined according to a message sending condition in a preset time period. The last message sending time, that is, the last message sending time within the preset time period. Therefore, the silent duration of the target device can be accurately acquired.
In some embodiments, the method further comprises:
determining at least one historical silent duration based on time intervals between a plurality of historical message sending moments of the target device within the preset time period;
the S130 may include:
determining the average silent duration of the target equipment according to the current silent duration and at least one historical silent duration;
and determining a target channel in a plurality of preset channels according to the average silent duration and the message sending condition.
In the embodiment of the present disclosure, the historical silent duration may be used to characterize the duration of silence that passes between every two adjacent historical message transmission times within a preset time period. For example, the historical silent period may be determined based on all historical message times in a preset time period, or the historical silent period may be determined based on a certain number of historical message times in the preset time period.
In one embodiment, determining the target channel among a plurality of preset channels according to the average silent duration and the message sending condition may include: determining a target parameter of each preset channel through weighting calculation based on a first weight of the average silent duration and a second weight of the message sending condition of the preset channel; a target channel is determined among a plurality of preset channels based on the target parameter. For example, the preset channel with the highest target parameter in the plurality of preset channels is selected as the target channel.
Here, the first weight is used for representing a weight of an activity degree of the target device, and the target channel is determined by the average silent duration, so that the first weight corresponds to the average silent duration; if the target channel is determined by the current silent duration, the first weight corresponds to the current silent duration.
In another embodiment, S130 may further include: according to a plurality of performance parameters indicated by the message sending condition and the preset weight of each performance parameter, calculating the performance evaluation value of each preset channel in a weighted mode; determining a target parameter of each preset channel through weighting calculation based on a first weight of the average silent duration and a second weight of a performance evaluation value of the preset channel; a target channel is determined among a plurality of preset channels based on the target parameter. Here, the preset weight of the performance parameter is a different weight value from the first weight, the second weight, and the third weight.
In one embodiment, S130 may further include: and determining a target channel in a plurality of preset channels according to the average silent duration, the message sending condition and the message number or the information quantity of the target message to be sent. For example, a part of preset channels are selected from the plurality of preset channels based on the average silent duration, and the preset channel with the message sending condition most consistent with the message number or the message amount of the target message is determined as the target channel from the part of preset channels.
In another embodiment, determining the target channel in the plurality of preset channels according to the average silent duration, the message sending condition, and the number of messages or the amount of information of the target message to be sent may include: determining a target parameter of each preset channel through weighting calculation according to the first weight of the average silent duration, the second weight of the message sending condition of the preset channel and the third weight of the message number or the information quantity; a target channel is determined among a plurality of preset channels based on the target parameter.
In yet another embodiment, S130 may further include: according to a plurality of performance parameters indicated by the message sending condition and the preset weight of each performance parameter, calculating the performance evaluation value of each preset channel in a weighted mode; determining a target parameter of each preset channel through weighting calculation based on a first weight of the average silent duration, a second weight of a performance evaluation value of the preset channel and a third weight of the message number or the information amount; a target channel is determined among a plurality of preset channels based on the target parameter.
Therefore, the overall activity degree of the target equipment can be more accurately reflected according to the average value calculated according to the current silent duration and the historical silent duration, and the influence of the contingency of the current silent duration on the selection of the target channel is reduced.
In some embodiments, the S130 may include:
determining a target message type based on the identification information of the target message to be sent;
determining whether a preset channel sends a message corresponding to the target message type according to the message sending condition;
if the preset channel sends a message corresponding to the target message type, determining that the preset channel is an alternative channel;
and determining a target channel in the alternative channels according to the current silent duration and the message sending condition.
In the embodiment of the present disclosure, the identification information of the target message may be carried in the target message, where the message type of the target message may be recorded, and for example, the message type may include a short message, a notification message, or various types of messages in an application program in the target device. Thus, the target message can be preferentially transmitted through a preset channel transmitted to the type of message.
In an embodiment, if the preset channel sends a message corresponding to the target message type, determining that the preset channel is an alternative channel may include: and if the preset channel sends the messages corresponding to the preset number of target message types, determining the preset channel as the alternative channel. Here, the preset number may be determined according to the type of the target message, for example, when the target message is a short message, the sending frequency of the device is low, and the preset number may be small, for example, 10 or 20.
In another embodiment, the method may further comprise: and if the preset channel for sending the message corresponding to the target message type does not exist, determining the target channel in the plurality of preset channels according to the current silent duration and the message sending condition.
Therefore, the reliability and the stability of the target channel for sending the target message can be improved by preferentially selecting the preset channel sent to the messages of the same type as the target channel.
As shown in fig. 2, an embodiment of the present disclosure provides a message sending apparatus, which is applied to a target device, and the apparatus includes:
an obtaining unit 10, configured to obtain message sending conditions of multiple preset channels in a preset time period;
a determining unit 20, configured to determine a current silent duration of the target device based on a historical message sending time of the target device; the current silent duration represents the duration of the message which is not sent by the current target equipment;
a selecting unit 30, configured to determine a target channel among a plurality of preset channels according to the current silent duration and the message sending condition;
a sending unit 40, configured to send the target message through the target channel.
In some embodiments, the selecting unit 30 is specifically configured to:
determining the priority order of a plurality of preset channels based on the message sending condition;
and determining a target channel in a plurality of preset channels according to the current silent duration and the priority sequence.
In some embodiments, the selecting unit 30 is specifically configured to:
if the current silencing time length is greater than or equal to a preset time length, determining whether a manufacturer channel of the target equipment exists in a plurality of preset channels;
if the manufacturer channel of the target equipment exists, determining the manufacturer channel of the target equipment as the target channel;
if the manufacturer channel of the target equipment does not exist, determining a preset channel with the highest priority as a target channel according to the priority sequence;
and if the current silencing time length is less than the preset time length, determining a preset channel with the highest priority as a target channel according to the priority sequence.
In some embodiments, the selecting unit 30 is specifically configured to:
if the manufacturer channel of the target equipment exists, determining an average consumption flow parameter of the manufacturer channel message delivery based on the message sending condition;
and if the average consumption flow parameter is lower than a first threshold value, determining that the manufacturer channel of the target equipment is a target channel.
In some embodiments, the apparatus further comprises:
and the retransmission unit is used for sequentially sending the target message through the remaining preset channels from high to low according to the priority if the current silent time length is less than the preset time length and the target message is failed to be sent through the preset channel with the highest priority.
In some embodiments, the retransmission unit is further configured to:
if the continuous failure times for sending the target message reach a second threshold value, determining the message sending frequency of the associated equipment in a preset range based on the position information of the target equipment; the associated equipment is the equipment with the same type as the target equipment;
determining, based on the message sending frequency, a number of associated devices for which the message sending frequency is higher than a third threshold;
if the number of the associated devices is larger than a fourth threshold value, establishing a long connection channel based on the target device;
and retransmitting the target message through the long connection channel.
In some embodiments, the selecting unit 30 is specifically configured to:
calculating a performance evaluation value of each preset channel based on at least one performance parameter indicated by the message sending condition of each preset channel and a preset weight corresponding to each performance parameter; the performance parameters include at least one of: the message delivery rate, the average message delivery duration, the message delivery number and the instruction sending number of the target equipment in the message sending process;
and determining the priority order of the plurality of preset channels based on the high-low ranking of the performance evaluation values of the plurality of preset channels.
In some embodiments, the apparatus further comprises:
the query unit is used for acquiring the position of the target equipment; and determining a plurality of preset channels of which the coverage areas comprise the positions of the target equipment based on the coverage area information of the preset channels.
In some embodiments, the determining unit 20 is specifically configured to:
and determining the current silent duration of the target equipment based on the difference value between the last message sending time of the target equipment and the current time.
In some embodiments, the determining unit 20 is further configured to:
determining at least one historical silent duration based on time intervals between a plurality of historical message sending moments of the target device within the preset time period;
the selecting unit 30 is specifically configured to:
determining the average silent duration of the target equipment according to the current silent duration and at least one historical silent duration;
and determining a target channel in a plurality of preset channels according to the average silent duration and the message sending condition.
In some embodiments, the selecting unit 30 is specifically configured to:
determining a target message type based on identification information of a target message to be sent;
determining whether a preset channel sends a message corresponding to the target message type according to the message sending condition;
if the preset channel sends a message corresponding to the target message type, determining that the preset channel is an alternative channel;
and determining a target channel in the alternative channels according to the current silent duration and the message sending condition.
One specific example is provided below in connection with any of the embodiments described above:
the embodiment of the disclosure provides a message pushing method suitable for regions with poor network environments, such as the southeast Asia market, and the like, and solves the problems of low message pushing rate, high cost and untimely message delivery.
The embodiment mainly comprises the following steps:
1) and selecting a channel with low price, timely arrival and high delivery rate for each country.
2) And acquiring the channel supported by the area according to the real-time coordinate of the user, and then selecting the optimal channel according to the price of the day, the arrival time, the delivery rate and the like.
3) The channels and corresponding priorities supported by each country are dynamic, and rules are modified after big data analysis according to feedback of messages sent out on the current day. The latest rule is acquired in real time each time.
4) And selecting the supported channels and the corresponding priorities according to the country, and then selecting the most appropriate channel according to the system version number, whether the user is an active user, a mobile phone manufacturer and the like.
5) Determining whether to send successfully, whether to reach timely, whether to retry and whether to change channel to retry according to the result returned by the channel
The embodiment is mainly applied to message pushing in areas with poor network environments, such as southeast asia, and the like, and as shown in fig. 3, the specific steps are as follows:
1. and configuring a supported channel list (list) by taking a country or a region as a dimension, and dynamically configuring the priority of each channel according to the sending condition.
2. The sending situation (including sending time, cost, sending state, sending equipment, click times and the like) is recorded by taking the user as a dimension, and then the big data is used for analysis.
3. And counting the delivery rate, delivery cost, delivery time, number of clicks and the like of various channels according to the country or region as dimensions. And after counting the result, calculating the priority and dynamically modifying the configuration.
4. The higher the delivery rate, the lower the cost and/or the shorter the time required for delivery, the higher the priority.
5. The channel used is determined by the degree of silencing.
5.1 for the user with not long silent time, if the corresponding manufacturer channel cost is high, the configured channel can be used first. If the transmission fails, the vendor channel is reused. If the corresponding vendor channel 0 is low cost or low cost, the vendor channel can be used directly.
5.2 if the user is a long silent user, directly using the vendor channel.
5.3 if the mobile phone brand does not have the manufacturer channel, retry in sequence according to the configured priority. If all fail, alarm
5.4 if it is an active user, use the configured priority. If the transmission fails, retry in sequence
6. And acquiring the channel with the highest local delivery rate, the lowest cost and the fastest delivery in real time.
7. If the local delivery rate of the vendor channel and the system channel is too low or the delivery delay is serious, and more local active users exist, the vendor channel and the system channel can choose to deploy own long-connection service, but the method is high in cost.
An embodiment of the present disclosure provides an electronic device, including:
a memory for storing processor-executable instructions;
a processor connected with the memory;
wherein the processor is configured to execute the message sending method provided by any of the foregoing technical solutions.
The processor may include various types of storage media, which are non-transitory computer storage media capable of continuing to remember the information stored thereon after a power failure of the electronic device.
The processor may be connected to the memory via a bus or the like for reading the executable program stored in the memory, for example, to be able to perform one or more of the methods described in the preceding claims.
An embodiment of the present disclosure provides a structure of an electronic device. The electronic device includes a processing component that further includes one or more processors, and memory resources, represented by memory, for storing instructions, such as application programs, that are executable by the processing component. The application program stored in the memory may include one or more modules that each correspond to a set of instructions. Furthermore, the processing component is configured to execute the instructions to perform any of the methods described above as applied to the electronic device, for example, the methods described in one or more of the preceding claims.
The electronic device may also include a power supply component configured to perform power management of the electronic device, a wired or wireless network interface configured to connect the electronic device to a network, and an input-output (I/O) interface. The electronic device may operate based on an operating system stored in memory, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
The disclosed embodiments provide a non-transitory computer-readable storage medium, wherein when instructions in the storage medium are executed by a processor of a computer, the computer is enabled to execute a message sending method according to one or more of the above technical solutions.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
In some cases, any two of the above technical features may be combined into a new method solution without conflict.
In some cases, any two of the above technical features may be combined into a new device solution without conflict.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (24)

1. A message sending method, applied to a target device, the method comprising:
acquiring message sending conditions of a plurality of preset channels in a preset time period;
determining the current silent duration of the target equipment based on the historical message sending time of the target equipment; the current silent duration represents the duration of the message which is not sent by the current target equipment;
determining a target channel in a plurality of preset channels according to the current silent duration and the message sending condition;
and sending the target message through the target channel.
2. The method of claim 1, wherein the determining a target channel among a plurality of preset channels according to the current silent duration and the message sending condition comprises:
determining the priority order of a plurality of preset channels based on the message sending condition;
and determining a target channel in a plurality of preset channels according to the current silent duration and the priority sequence.
3. The method of claim 2, wherein the determining a target channel among a plurality of preset channels according to the current silence duration and the priority order comprises:
if the current silencing time length is greater than or equal to a preset time length, determining whether a manufacturer channel of the target equipment exists in a plurality of preset channels;
if the manufacturer channel of the target equipment exists, determining the manufacturer channel of the target equipment as the target channel;
if the manufacturer channel of the target equipment does not exist, determining a preset channel with the highest priority as a target channel according to the priority sequence;
and if the current silencing time length is less than the preset time length, determining a preset channel with the highest priority as a target channel according to the priority sequence.
4. The method of claim 3, wherein determining that the vendor channel of the target device is the target channel if the vendor channel of the target device exists comprises:
if the manufacturer channel of the target equipment exists, determining an average consumption flow parameter of the manufacturer channel message delivery based on the message sending condition;
and if the average consumption flow parameter is lower than a first threshold value, determining that the manufacturer channel of the target equipment is a target channel.
5. The method of claim 3, further comprising:
and if the current silent time length is less than the preset time length and the target message fails to be sent through the preset channel with the highest priority, sequentially sending the target message through the rest preset channels from high to low according to the priority.
6. The method of claim 5, further comprising:
if the continuous failure times for sending the target message reach a second threshold value, determining the message sending frequency of the associated equipment in a preset range based on the position information of the target equipment; the associated equipment is the equipment with the same type as the target equipment;
determining, based on the message sending frequency, a number of associated devices for which the message sending frequency is higher than a third threshold;
if the number of the associated equipment is larger than a fourth threshold value, establishing a long connecting channel based on the target equipment;
and retransmitting the target message through the long connection channel.
7. The method of claim 2, wherein determining the priority order of the plurality of preset channels based on the message sending condition comprises:
calculating a performance evaluation value of each preset channel based on at least one performance parameter indicated by the message sending condition of each preset channel and a preset weight corresponding to each performance parameter; the performance parameters include at least one of: the message delivery rate, the average message delivery duration, the message delivery number and the instruction sending number of the target equipment in the message sending process;
and determining the priority order of the plurality of preset channels based on the high-low ranking of the performance evaluation values of the plurality of preset channels.
8. The method of claim 1, further comprising:
acquiring the position of the target equipment;
and determining a plurality of preset channels of which the coverage areas comprise the positions of the target equipment based on the coverage area information of the preset channels.
9. The method of claim 1, wherein the determining the current silence duration of the target device based on the historical message sending time of the target device comprises:
and determining the current silent duration of the target equipment based on the difference value between the last message sending time of the target equipment and the current time.
10. The method of claim 9, further comprising:
determining at least one historical silent duration based on time intervals between a plurality of historical message sending moments of the target device within the preset time period;
the determining a target channel in a plurality of preset channels according to the current silent duration and the message sending condition includes:
determining the average silent duration of the target equipment according to the current silent duration and at least one historical silent duration;
and determining a target channel in a plurality of preset channels according to the average silent duration and the message sending condition.
11. The method of claim 1, wherein the determining a target channel among a plurality of preset channels according to the current silent duration and the message sending condition comprises:
determining a target message type based on the identification information of the target message to be sent;
determining whether a preset channel sends a message corresponding to the target message type according to the message sending condition;
if the preset channel sends a message corresponding to the target message type, determining that the preset channel is an alternative channel;
and determining a target channel in the alternative channels according to the current silent duration and the message sending condition.
12. A message transmission apparatus, for use in a target device, the apparatus comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the message sending conditions of a plurality of preset channels in a preset time period;
a determining unit, configured to determine a current silent duration of the target device based on a historical message sending time of the target device; the current silent duration represents the duration of the message which is not sent by the current target equipment;
a selecting unit, configured to determine a target channel among a plurality of preset channels according to the current silent duration and the message sending condition;
and the sending unit is used for sending the target message through the target channel.
13. The apparatus according to claim 12, wherein the selection unit is specifically configured to:
determining the priority order of a plurality of preset channels based on the message sending condition;
and determining a target channel in a plurality of preset channels according to the current silent duration and the priority sequence.
14. The apparatus according to claim 13, wherein the selection unit is specifically configured to:
if the current silencing time length is greater than or equal to a preset time length, determining whether a manufacturer channel of the target equipment exists in a plurality of preset channels;
if the manufacturer channel of the target equipment exists, determining the manufacturer channel of the target equipment as the target channel;
if the manufacturer channel of the target equipment does not exist, determining a preset channel with the highest priority as a target channel according to the priority sequence;
and if the current silencing time length is less than the preset time length, determining a preset channel with the highest priority as a target channel according to the priority sequence.
15. The apparatus according to claim 14, wherein the selection unit is specifically configured to:
if the manufacturer channel of the target equipment exists, determining an average consumption flow parameter of the manufacturer channel message delivery based on the message sending condition;
and if the average consumption flow parameter is lower than a first threshold value, determining that the manufacturer channel of the target equipment is a target channel.
16. The apparatus of claim 14, further comprising:
and the retransmission unit is used for sequentially sending the target message through the remaining preset channels from high to low according to the priority if the current silent time length is less than the preset time length and the target message is failed to be sent through the preset channel with the highest priority.
17. The apparatus of claim 16, wherein the retransmission unit is further configured to:
if the continuous failure times for sending the target message reach a second threshold value, determining the message sending frequency of the associated equipment in a preset range based on the position information of the target equipment; the associated equipment is the equipment with the same type as the target equipment;
determining, based on the message sending frequency, a number of associated devices for which the message sending frequency is above a third threshold;
if the number of the associated devices is larger than a fourth threshold value, establishing a long connection channel based on the target device;
and retransmitting the target message through the long connection channel.
18. The apparatus according to claim 13, wherein the selection unit is specifically configured to:
calculating a performance evaluation value of each preset channel based on at least one performance parameter indicated by the message sending condition of each preset channel and a preset weight corresponding to each performance parameter; the performance parameters include at least one of: the message delivery rate, the average message delivery duration, the message delivery number and the instruction sending number of the target equipment in the message sending process;
and determining the priority order of the plurality of preset channels based on the high-low ranking of the performance evaluation values of the plurality of preset channels.
19. The apparatus of claim 12, further comprising:
the query unit is used for acquiring the position of the target equipment; and determining a plurality of preset channels of which the coverage areas comprise the positions of the target equipment based on the coverage area information of the preset channels.
20. The apparatus according to claim 12, wherein the determining unit is specifically configured to:
and determining the current silent duration of the target equipment based on the difference value between the last message sending time of the target equipment and the current time.
21. The apparatus of claim 20, wherein the determining unit is further configured to:
determining at least one historical silent duration based on time intervals between a plurality of historical message sending moments of the target device within the preset time period;
the selection unit is specifically configured to:
determining the average silent duration of the target equipment according to the current silent duration and at least one historical silent duration;
and determining a target channel in a plurality of preset channels according to the average silent duration and the message sending condition.
22. The apparatus according to claim 12, wherein the selection unit is specifically configured to:
determining a target message type based on identification information of a target message to be sent;
determining whether a preset channel sends a message corresponding to the target message type according to the message sending condition;
if the preset channel sends a message corresponding to the target message type, determining that the preset channel is an alternative channel;
and determining a target channel in the alternative channels according to the current silent duration and the message sending condition.
23. An electronic device, comprising:
a memory for storing processor-executable instructions;
a processor coupled to the memory;
wherein the processor is configured to perform the messaging method as provided in any one of claims 1 to 11.
24. A non-transitory computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the messaging method provided in any one of claims 1 to 11.
CN202210054865.0A 2022-01-18 2022-01-18 Message sending method and device, electronic equipment and storage medium Active CN114466321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210054865.0A CN114466321B (en) 2022-01-18 2022-01-18 Message sending method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210054865.0A CN114466321B (en) 2022-01-18 2022-01-18 Message sending method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114466321A true CN114466321A (en) 2022-05-10
CN114466321B CN114466321B (en) 2024-02-23

Family

ID=81409614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210054865.0A Active CN114466321B (en) 2022-01-18 2022-01-18 Message sending method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114466321B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115633317A (en) * 2022-12-21 2023-01-20 北京金楼世纪科技有限公司 Message channel configuration method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130047986A (en) * 2011-11-01 2013-05-09 주식회사 유비클 Message transferring intermediate-system and message transferring method by it
CN110336893A (en) * 2019-08-22 2019-10-15 深圳市万普拉斯科技有限公司 Information push method, device, mobile terminal and computer storage medium
CN110601965A (en) * 2019-09-24 2019-12-20 Oppo广东移动通信有限公司 Message distribution method, device and system and message gateway
US20200042367A1 (en) * 2018-07-31 2020-02-06 International Business Machines Corporation Determining when to send message to a computing node to process items using a machine learning module
CN111212391A (en) * 2020-01-14 2020-05-29 中保车服科技服务股份有限公司 Short message pushing method, device, equipment and readable medium
CN111741058A (en) * 2020-05-07 2020-10-02 北京五八信息技术有限公司 Message pushing method and device, electronic equipment and storage medium
CN112654003A (en) * 2020-12-14 2021-04-13 北京健康之家科技有限公司 Method, device, storage medium and electronic equipment for sending message

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130047986A (en) * 2011-11-01 2013-05-09 주식회사 유비클 Message transferring intermediate-system and message transferring method by it
US20200042367A1 (en) * 2018-07-31 2020-02-06 International Business Machines Corporation Determining when to send message to a computing node to process items using a machine learning module
CN110336893A (en) * 2019-08-22 2019-10-15 深圳市万普拉斯科技有限公司 Information push method, device, mobile terminal and computer storage medium
CN110601965A (en) * 2019-09-24 2019-12-20 Oppo广东移动通信有限公司 Message distribution method, device and system and message gateway
CN111212391A (en) * 2020-01-14 2020-05-29 中保车服科技服务股份有限公司 Short message pushing method, device, equipment and readable medium
CN111741058A (en) * 2020-05-07 2020-10-02 北京五八信息技术有限公司 Message pushing method and device, electronic equipment and storage medium
CN112654003A (en) * 2020-12-14 2021-04-13 北京健康之家科技有限公司 Method, device, storage medium and electronic equipment for sending message

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115633317A (en) * 2022-12-21 2023-01-20 北京金楼世纪科技有限公司 Message channel configuration method and system

Also Published As

Publication number Publication date
CN114466321B (en) 2024-02-23

Similar Documents

Publication Publication Date Title
US7359835B2 (en) Method and system for probing a wireless network to monitor and process the wireless network performance
TW201732694A (en) Task allocation method, system and device
CN112788632B (en) Anti-interference method and device for network access avoidance
CN109962827B (en) Equipment link detection method, device, equipment and readable storage medium
CN114466321B (en) Message sending method and device, electronic equipment and storage medium
US11381484B2 (en) Dynamically requesting mobile devices to report network information
CN110312245A (en) A kind of business monitoring method and device of transnational roaming terminal
CN112838980B (en) Message processing method, system, device, electronic equipment and storage medium
CN110012051A (en) Notify method for pushing, device, terminal device, server and system
CN115348652B (en) Node mode setting method and device for wireless low-power-consumption lossy network
CN108880994B (en) Method and device for retransmitting mails
CN114862500A (en) Order processing method and device, electronic equipment and storage medium
CN115348251A (en) File downloading method and device, computer equipment and storage medium
US20080148267A1 (en) Method and apparatus for preventing the omission and repeated execution of schedule information due to a time change
CN112799796A (en) Timed task management method, device and storage medium
CN114338765B (en) Equipment connection abnormality identification method and system, electronic device and storage medium
CN112135366A (en) Short wave communication link establishing method, communication system and storage medium
CN112637362B (en) Request result determining method, device and system, electronic equipment and storage medium
EP4319254A1 (en) Load query processing method and apparatus, storage medium, and electronic apparatus
CN114915383B (en) Short message state synchronization method for handset toward north-fighting communication platform
CN109634639B (en) Method and device for updating downtime notification mode
CN111132308B (en) Mobile terminal positioning method and device
CN118018588A (en) Server connection method, device, apparatus, storage medium, and program product
CN113364667A (en) Message notification method and device
CN113282414A (en) Service processing method and device, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant