CN107483319A - Message sending method, device, storage medium, server and electronic equipment - Google Patents
Message sending method, device, storage medium, server and electronic equipment Download PDFInfo
- Publication number
- CN107483319A CN107483319A CN201710644142.5A CN201710644142A CN107483319A CN 107483319 A CN107483319 A CN 107483319A CN 201710644142 A CN201710644142 A CN 201710644142A CN 107483319 A CN107483319 A CN 107483319A
- Authority
- CN
- China
- Prior art keywords
- message
- server
- electronic device
- electronic
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/214—Monitoring or handling of messages using selective forwarding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/224—Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
Description
技术领域technical field
本申请属于通信技术领域,尤其涉及一种消息发送方法、装置、存储介质、服务器及电子设备。The present application belongs to the technical field of communication, and in particular relates to a message sending method, device, storage medium, server and electronic equipment.
背景技术Background technique
随着通信技术的快速发展,用户可以使用同一账号登录多个智能设备(例如智能手机、智能手表、平板电脑等),从而当其他用户向该账号发送消息时,该账号对应的多个智能设备均可同时收到消息,并且发出响铃、或者提示音等提醒通知。With the rapid development of communication technology, users can use the same account to log in to multiple smart devices (such as smartphones, smart watches, tablet computers, etc.), so that when other users send messages to the account, multiple smart devices corresponding to the account Both can receive messages at the same time, and send out reminders such as ringing or prompting sounds.
发明内容Contents of the invention
本申请提供一种消息发送方法、装置、存储介质、服务器及电子设备,能够智能地管理多设备的消息发送,以确保及时地且灵活地向多设备发送消息。The present application provides a message sending method, device, storage medium, server, and electronic device, capable of intelligently managing message sending of multiple devices, so as to ensure timely and flexible message sending to multiple devices.
第一方面,本申请实施例提供一种消息发送方法,应用于服务器,所述消息发送方法包括:In the first aspect, the embodiment of the present application provides a method for sending a message, which is applied to a server, and the method for sending a message includes:
当接收到消息发送请求时,从电子设备集合中确定第一设备和第二设备,其中所述消息发送请求携带待发送的消息以及所述电子设备集合的第一标识,所述第一设备和所述第二设备均绑定所述第一标识;When a message sending request is received, a first device and a second device are determined from the set of electronic devices, wherein the message sending request carries a message to be sent and a first identifier of the set of electronic devices, the first device and the second device The second device is bound to the first identifier;
向所述第一设备发送第一信息,其中所述第一信息携带所述消息并且用于指示所述第一设备启动提醒事件;sending first information to the first device, where the first information carries the message and is used to instruct the first device to start a reminder event;
检测所述第一设备是否在预设时长内响应所述提醒事件;Detecting whether the first device responds to the reminder event within a preset time period;
若否,则向所述第二设备发送第二信息,其中所述第二信息携带所述消息并且用于指示所述第二设备启动提醒事件。If not, send second information to the second device, where the second information carries the message and is used to instruct the second device to start a reminder event.
第二方面,本申请实施例提供一种消息发送方法,应用于电子设备,所述消息发送方法包括:In the second aspect, the embodiment of the present application provides a method for sending a message, which is applied to an electronic device, and the method for sending a message includes:
当接收到消息时,向服务器发送消息发送请求,其中所述消息发送请求携带待发送的消息以及电子设备集合的第一标识,所述电子设备集合包括第一设备和第二设备,并且所述第一设备和第二设备均绑定所述第一标识;When receiving a message, send a message sending request to the server, where the message sending request carries the message to be sent and the first identifier of the electronic device set, the electronic device set includes the first device and the second device, and the Both the first device and the second device are bound to the first identifier;
若所述服务器指示所述电子设备为第一设备,则启动提醒事件;If the server indicates that the electronic device is the first device, then start a reminder event;
检测所述提醒事件是否在预设时长内获得响应;Detecting whether the reminder event is responded within a preset time period;
若否,则向所述服务器发送第三信息,或者向所述第二设备发送第四信息,其中所述第三信息用于指示所述服务器向所述第二设备发送第二信息,所述第二信息和所述第四信息均携带所述消息并且用于指示所述第二设备启动提醒事件。If not, send third information to the server, or send fourth information to the second device, where the third information is used to instruct the server to send second information to the second device, the Both the second information and the fourth information carry the message and are used to instruct the second device to start a reminder event.
第三方面,本申请实施例提供一种消息发送装置,应用于服务器,所述消息发送装置包括:In a third aspect, the embodiment of the present application provides a message sending device, which is applied to a server, and the message sending device includes:
确定模块,用于当接收到消息发送请求时,从电子设备集合中确定第一设备和第二设备,其中所述消息发送请求携带待发送的消息以及所述电子设备集合的第一标识,所述第一设备和所述第二设备均绑定所述第一标识;A determining module, configured to determine the first device and the second device from the set of electronic devices when a request for sending a message is received, wherein the request for sending a message carries a message to be sent and a first identifier of the set of electronic devices, so Both the first device and the second device are bound to the first identifier;
第一发送模块,用于向所述第一设备发送第一信息,其中所述第一信息携带所述消息并且用于指示所述第一设备启动提醒事件;A first sending module, configured to send first information to the first device, where the first information carries the message and is used to instruct the first device to start a reminder event;
第一检测模块,用于检测所述第一设备是否在预设时长内响应所述提醒事件;A first detection module, configured to detect whether the first device responds to the reminder event within a preset time period;
第二发送模块,用于若否,则向所述第二设备发送第二信息,其中所述第二信息携带所述消息并且用于指示所述第二设备启动提醒事件。The second sending module is configured to, if not, send second information to the second device, where the second information carries the message and is used to instruct the second device to start a reminder event.
第四方面,本申请实施例提供一种消息发送装置,应用于电子设备,所述消息发送装置包括:In the fourth aspect, the embodiment of the present application provides a message sending device, which is applied to electronic equipment, and the message sending device includes:
第三发送模块,用于当接收到消息时,向服务器发送消息发送请求,其中所述消息发送请求携带待发送的消息以及电子设备集合的第一标识,所述电子设备集合包括第一设备和第二设备,并且所述第一设备和第二设备均绑定所述第一标识;The third sending module is configured to send a message sending request to the server when receiving the message, where the message sending request carries the message to be sent and the first identifier of the electronic device set, the electronic device set includes the first device and a second device, and both the first device and the second device are bound to the first identifier;
启动模块,用于若所述服务器指示所述电子设备为第一设备,则启动提醒事件;A starting module, configured to start a reminder event if the server indicates that the electronic device is the first device;
第二检测模块,用于检测所述提醒事件是否在预设时长内获得响应;The second detection module is used to detect whether the reminder event is responded within a preset time period;
第四发送模块,用于若否,则向所述服务器发送第三信息,或者向所述第二设备发送第四信息,其中所述第三信息用于指示所述服务器向所述第二设备发送第二信息,所述第二信息和所述第四信息均携带所述消息并且用于指示所述第二设备启动提醒事件。A fourth sending module, configured to send third information to the server if not, or send fourth information to the second device, where the third information is used to instruct the server to send the second information to the second device Sending second information, where both the second information and the fourth information carry the message and are used to instruct the second device to start a reminder event.
第五方面,本申请实施例提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述第一方面的消息发送方法。In a fifth aspect, the embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program is run on a computer, the computer is made to execute the message sending method of the first aspect above.
第六方面,本申请实施例提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述第二方面的消息发送方法。In a sixth aspect, the embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program is run on a computer, the computer is made to execute the message sending method of the second aspect above.
第七方面,本申请实施例提供一种服务器,包括处理器和存储器,所述存储器有计算机程序,所述处理器通过调用所述计算机程序,用于执行上述第一方面的消息发送方法。In a seventh aspect, the embodiment of the present application provides a server, including a processor and a memory, the memory has a computer program, and the processor is used to execute the message sending method of the first aspect above by invoking the computer program.
第八方面,本申请实施例提供一种电子设备,包括处理器和存储器,所述存储器有计算机程序,所述处理器通过调用所述计算机程序,用于执行上述第二方面的消息发送方法。In an eighth aspect, the embodiment of the present application provides an electronic device, including a processor and a memory, the memory has a computer program, and the processor is used to execute the message sending method of the second aspect above by invoking the computer program.
本申请实施例提供的消息发送方法,将通过第一标识建立关系的多个电子设备区分为第一设备和第二设备,先向第一设备发送消息并使第一设备启动提醒事件,即先向用户常用的或者预设的设备发送消息,可以避免多个设备同时接收到消息并触发相应的提醒事件而带来的干扰和噪音;当第一设备在预设时长内没有响应消息时,服务器再向第二设备发送消息并使第二设备启动提醒事件,即在用户没有及时响应消息时,服务器向用户的其他设备发送消息,可以确保消息能够及时地发送到用户的其他设备并向用户发出提醒。The message sending method provided by the embodiment of the present application distinguishes multiple electronic devices that establish a relationship through the first identifier into a first device and a second device, first sends a message to the first device and causes the first device to start a reminder event, that is, first Sending a message to the user's usual or preset device can avoid the interference and noise caused by multiple devices receiving the message at the same time and triggering the corresponding reminder event; when the first device does not respond to the message within the preset time period, the server Then send a message to the second device and enable the second device to start a reminder event, that is, when the user does not respond to the message in time, the server sends a message to the user's other device, which can ensure that the message can be sent to the user's other device in time and sent to the user remind.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can also obtain other drawings according to these drawings without creative efforts.
图1为本申请实施例提供的消息发送系统的应用场景示意图;FIG. 1 is a schematic diagram of an application scenario of a message sending system provided by an embodiment of the present application;
图2为本申请实施例提供的消息发送系统的另一应用场景示意图;FIG. 2 is a schematic diagram of another application scenario of the message sending system provided by the embodiment of the present application;
图3为本申请实施例提供的应用于服务器的消息发送方法的流程示意图;FIG. 3 is a schematic flowchart of a message sending method applied to a server provided in an embodiment of the present application;
图4为本申请实施例提供的应用于服务器的消息发送方法的另一流程示意图;FIG. 4 is another schematic flowchart of a message sending method applied to a server provided by an embodiment of the present application;
图5为本申请实施例提供的确定第一设备和第二设备的流程示意图;FIG. 5 is a schematic flowchart of determining the first device and the second device provided by the embodiment of the present application;
图6为本申请实施例提供的确定第一设备和第二设备的另一流程示意图;FIG. 6 is another schematic flowchart of determining the first device and the second device provided by the embodiment of the present application;
图7为本申请实施例提供的确定第一设备和第二设备的再一流程示意图;FIG. 7 is another schematic flowchart of determining the first device and the second device provided by the embodiment of the present application;
图8为本申请实施例提供的应用于电子设备的消息发送方法的流程示意图;FIG. 8 is a schematic flowchart of a message sending method applied to an electronic device provided in an embodiment of the present application;
图9为本申请实施例提供的应用于电子设备的消息发送方法的另一流程示意图;FIG. 9 is another schematic flowchart of a message sending method applied to an electronic device provided in an embodiment of the present application;
图10为本申请实施例提供的应用于服务器的消息发送装置的结构示意图;FIG. 10 is a schematic structural diagram of a message sending device applied to a server provided in an embodiment of the present application;
图11为本申请实施例提供的应用于服务器的消息发送装置的结构示意图;FIG. 11 is a schematic structural diagram of a message sending device applied to a server provided in an embodiment of the present application;
图12为本申请实施例提供的服务器的结构示意图;FIG. 12 is a schematic structural diagram of a server provided by an embodiment of the present application;
图13为本申请实施例提供的电子设备的结构示意图;FIG. 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图14为本申请实施例提供的电子设备的另一结构示意图。FIG. 14 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式detailed description
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Referring to the drawings, wherein the same reference numerals represent the same components, the principles of the present application are exemplified by being implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the present application, which should not be construed as limiting other specific embodiments of the present application that are not described in detail here.
在以下的说明中,本申请的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本申请原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。In the following description, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise stated. Accordingly, these steps and operations will several times be referred to as being computer-implemented, which herein refers to operations by a computer processing unit of electronic signals representing data in a structured form. This operation transforms the data or maintains it at a location in the computer's memory system that can reconfigure or otherwise alter the operation of the computer in a manner well known to testers in the art. The data structures maintained by the data are physical locations in the memory that have certain characteristics defined by the data format. However, the principle of the present application is described in the above text, which is not meant to be a limitation, and testers in the field will understand that the various steps and operations described below can also be implemented in hardware.
本文所使用的术语“模块”可看做为在该运算系统上执行的软件对象。本文所述的不同组件、模块、引擎及服务可看做为在该运算系统上的实施对象。而本文所述的装置及方法可以以软件的方式进行实施,当然也可在硬件上进行实施,均在本申请保护范围之内。The term "module" as used herein may be considered a software object that executes on the computing system. The various components, modules, engines and services described herein can be considered as implementation objects on the computing system. The devices and methods described herein can be implemented in the form of software, and of course can also be implemented in hardware, all of which are within the protection scope of the present application.
本申请中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是某些实施例还包括没有列出的步骤或模块,或某些实施例还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。The terms "first", "second" and "third" in this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or modules that are not listed, or some embodiments Other steps or modules inherent to these processes, methods, products or devices are also included.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
本申请实施例提供一种消息发送方法,该消息发送方法的执行主体可以是本申请实施例提供的消息发送装置,或者集成了所述消息发送装置的服务器,其中所述消息发送装置可以采用硬件或者软件的方式实现。The embodiment of the present application provides a method for sending a message. The execution body of the message sending method may be the message sending device provided in the embodiment of the present application, or a server integrating the message sending device, wherein the message sending device may use hardware Or implemented by software.
请参阅图1,图1为本申请实施例提供的消息发送系统的应用场景示意图,其中该消息发送系统具体可以包括服务器和至少一个电子设备。其中,电子设备可以是手机、平板电脑、台式电脑、笔记本电脑、掌上电脑等设备。Please refer to FIG. 1 . FIG. 1 is a schematic diagram of an application scenario of a message sending system provided by an embodiment of the present application, wherein the message sending system may specifically include a server and at least one electronic device. Wherein, the electronic device may be a mobile phone, a tablet computer, a desktop computer, a notebook computer, a handheld computer and the like.
当电子设备从发送方接收到消息时,例如电子设备a接收到来电,电子设备a向服务器发送消息发送请求,该消息发送请求携带待发送的消息以及电子设备集合的第一标识,其中电子设备集合包括绑定了第一标识的所有电子设备;服务器接收消息发送请求后,根据第一标识确定电子设备集合包括的电子设备,例如电子设备a、电子设备b、电子设备c以及电子设备d,并且从电子设备集合中确定第一设备和第二设备,例如从电子设备集合中确定第一设备包括电子设备a,第二设备包括电子设备b、电子设备c以及电子设备d;接着服务器向电子设备a发送第一信息,其中该第一信息携带所述消息并且用于指示电子设备a启动提醒事件,并检测电子设备a是否在预设时长内响应该提醒事件,例如用户是否在预设时长内接通来电、挂断来电、或者查看短信等;若电子设备a没有在预设时长内响应该提醒事件,则服务器分别向电子设备b、电子设备c以及电子设备d发送第二信息,其中该第二信息携带所述消息并且用于指示电子设备b、电子设备c以及电子设备d启动提醒事件。When the electronic device receives a message from the sender, for example, electronic device a receives an incoming call, electronic device a sends a message sending request to the server, and the message sending request carries the message to be sent and the first identifier of the electronic device set, wherein the electronic device The set includes all electronic devices bound with the first identifier; after receiving the message sending request, the server determines the electronic devices included in the electronic device set according to the first identifier, such as electronic device a, electronic device b, electronic device c, and electronic device d, And determine the first device and the second device from the electronic device set, for example, determine from the electronic device set that the first device includes electronic device a, and the second device includes electronic device b, electronic device c, and electronic device d; then the server sends the electronic device Device a sends first information, wherein the first information carries the message and is used to instruct electronic device a to start a reminder event, and detects whether electronic device a responds to the reminder event within a preset time period, for example, whether the user responds to the reminder event within a preset time period. If the electronic device a does not respond to the reminder event within the preset time period, the server sends the second information to the electronic device b, electronic device c and electronic device d respectively, wherein The second information carries the message and is used to instruct electronic device b, electronic device c and electronic device d to start a reminder event.
可以理解的是,每个电子设备的提醒方式可以是不同的,例如电子设备b的提醒方式是响铃,电子设备c的提醒方式是振动,电子设备d的提醒方式是提示音。It can be understood that the reminding mode of each electronic device may be different, for example, the reminding mode of electronic device b is ringing, the reminding mode of electronic device c is vibration, and the reminding mode of electronic device d is prompt sound.
请参阅图2,图2为本申请实施例提供的消息发送系统的另一应用场景示意图,该应用场景与图1中的应用场景的区别仅在于:若电子设备a没有在预设时长内响应所述消息,则电子设备a分别向电子设备b、电子设备c以及电子设备d发送所述消息。Please refer to Figure 2, Figure 2 is a schematic diagram of another application scenario of the message sending system provided by the embodiment of the present application, the difference between this application scenario and the application scenario in Figure 1 is that if electronic device a does not respond within the preset time period For the message, electronic device a sends the message to electronic device b, electronic device c, and electronic device d respectively.
本申请实施例提供一种消息发送方法,应用于服务器,该消息发送方法包括:当接收到消息发送请求时,从电子设备集合中确定第一设备和第二设备,其中所述消息发送请求携带待发送的消息以及所述电子设备集合的第一标识,所述第一设备和所述第二设备均绑定所述第一标识;向所述第一设备发送第一信息,其中所述第一信息携带所述消息并且用于指示所述第一设备启动提醒事件;检测所述第一设备是否在预设时长内响应所述提醒事件;若否,则向所述第二设备发送第二信息,其中所述第二信息携带所述消息并且用于指示所述第二设备启动提醒事件。An embodiment of the present application provides a message sending method, which is applied to a server. The message sending method includes: when a message sending request is received, determining a first device and a second device from a set of electronic devices, wherein the message sending request carries The message to be sent and the first identifier of the set of electronic devices, the first device and the second device are bound to the first identifier; sending the first information to the first device, wherein the first A piece of information carries the message and is used to instruct the first device to start a reminder event; detect whether the first device responds to the reminder event within a preset time period; if not, send a second message to the second device information, wherein the second information carries the message and is used to instruct the second device to start a reminder event.
请参阅图3,图3为本申请实施例提供的应用于服务器的消息发送方法的流程示意图。本申请实施例将从消息发送装置的角度进行描述,该消息发送装置具体可以集成在服务器中。所述消息发送方法包括:Please refer to FIG. 3 . FIG. 3 is a schematic flowchart of a message sending method applied to a server provided in an embodiment of the present application. This embodiment of the present application will be described from the perspective of a message sending device, and the message sending device may specifically be integrated in a server. The message sending method includes:
步骤101,当接收到消息发送请求时,从电子设备集合中确定第一设备和第二设备,其中该消息发送请求携带待发送的消息以及电子设备集合的第一标识,第一设备和第二设备均绑定所述第一标识。Step 101, when receiving a message sending request, determine the first device and the second device from the electronic device set, where the message sending request carries the message to be sent and the first identification of the electronic device set, the first device and the second device All devices are bound to the first identifier.
比如,服务器接收由电子设备发送的消息发送请求,其中该消息发送请求携带待发送的消息以及电子设备集合的第一标识,然后服务器从电子设备集合中确定第一设备和第二设备,其中第一设备和所述第二设备均绑定第一标识。For example, the server receives a message sending request sent by an electronic device, where the message sending request carries a message to be sent and a first identifier of a set of electronic devices, and then the server determines the first device and the second device from the set of electronic devices, where the first Both a device and the second device are bound to the first identifier.
在本申请实施例中,接收消息发送请求的方式可以有很多种,比如:In the embodiment of this application, there are many ways to receive a message sending request, such as:
当有其他服务器或电子设备向电子设备发送消息时,在该消息在电子设备显示以及触发相应的提醒事件(登录如响铃、振动、或提示音等)之前,该电子设备向服务器发送消息发送请求,其中,该消息发送请求携带上述消息。When another server or electronic device sends a message to the electronic device, the electronic device sends a message to the server before the message is displayed on the electronic device and triggers a corresponding reminder event (login such as ringing, vibration, or prompt tone, etc.). request, wherein the message sending request carries the above message.
需要说明的是,消息发送请求由电子设备集合中最先收到消息的电子设备发送。因此可以是第一设备向服务器发送消息发送请求,也可以是第二设备向服务器发送消息发送请求,也可以是最先收到消息的多个电子设备同时向服务器发送消息发送请求。It should be noted that the message sending request is sent by the electronic device that receives the message first in the electronic device set. Therefore, it may be that the first device sends a message sending request to the server, or the second device sends a message sending request to the server, or multiple electronic devices that receive the message first simultaneously send a message sending request to the server.
在本申请实施例中,消息可以是来电、短信、彩信、邮件、微博以及即时消息等。其中,即时消息指的是即时通信工具的消息,即时通信工具可以是,例如QQ、微信、或者脸书(facebook)等,其中即时通信工具发送的消息可以是文本消息、语音消息、文件消息、图片消息或者视频消息等。In this embodiment of the application, the message may be an incoming call, a short message, a multimedia message, an email, a microblog, an instant message, and the like. Wherein, the instant message refers to the message of the instant communication tool, and the instant communication tool may be, for example, QQ, WeChat, or Facebook (facebook), etc., wherein the message sent by the instant communication tool may be a text message, a voice message, a file message, Picture message or video message, etc.
在本申请实施例中,电子设备集合是绑定了同一个第一标识的多个电子设备的集合。在某些实施方式中,第一标识可以是账号。比如,用户预先向服务器申请并注册一个账号,并且使用该账号绑定多个电子设备(即在多个电子设备登录该账号),则可以将绑定同一账号的多个电子设备确定为一个电子设备集合,该账号作为电子设备集合的第一标识。In this embodiment of the present application, the set of electronic devices is a set of multiple electronic devices bound to the same first identifier. In some implementations, the first identifier may be an account number. For example, if the user applies for and registers an account with the server in advance, and uses the account to bind multiple electronic devices (that is, to log in to the account on multiple electronic devices), then the multiple electronic devices bound to the same account can be determined as one electronic device. For a device set, the account is used as the first identifier of the electronic device set.
在本申请实施例中,第一设备是用于优先接收消息并启动提醒事件的设备,第二设备是在第一设备没有及时响应提醒事件时用于接收消息并启动提醒事件的设备。In this embodiment of the application, the first device is a device for preferentially receiving a message and starting a reminder event, and the second device is a device for receiving a message and starting a reminder event when the first device fails to respond to the reminder event in time.
在某些实施方式中,电子设备集合中每一电子设备的身份(即第一设备或第二设备)可以预先存储在服务器中。In some implementations, the identity of each electronic device in the electronic device set (ie, the first device or the second device) may be pre-stored in the server.
在本申请实施例中,电子设备集合中每一电子设备的身份(即第一设备或第二设备)可以有多种设置方式。In the embodiment of the present application, the identity of each electronic device in the electronic device set (that is, the first device or the second device) can be set in multiple ways.
比如,用户通过电子设备向服务器发送请求,主动设置电子设备集合中各个电子设备的身份。For example, the user sends a request to the server through the electronic device, and actively sets the identity of each electronic device in the electronic device collection.
又比如,服务器根据预设规则,设置电子设备集合中每一电子设备的身份。For another example, the server sets the identity of each electronic device in the electronic device set according to preset rules.
可以理解的是,第一设备和第二设备的设备类型可以不同。比如第一设备是手机、第二设备是平板电脑。It can be understood that the device types of the first device and the second device may be different. For example, the first device is a mobile phone, and the second device is a tablet computer.
需要说明的是,第一设备和第二设备的数量均可以是一个或至少两个,并且每一第一设备、以及每一第二设备的设备类型均可以不同。比如电子设备集合包括一个第一设备和两个第二设备,其中该第一设备为手机,两个第二设备分别为手机和平板电脑。It should be noted that the number of the first device and the number of the second device may be one or at least two, and the device types of each first device and each second device may be different. For example, the set of electronic devices includes a first device and two second devices, wherein the first device is a mobile phone, and the two second devices are respectively a mobile phone and a tablet computer.
步骤102,向第一设备发送第一信息,其中该第一信息携带所述消息并且用于指示第一设备启动提醒事件。Step 102: Send first information to the first device, where the first information carries the message and is used to instruct the first device to start a reminder event.
比如,服务器向电子设备集合中的所有第一设备发送第一信息,该第一信息携带所述消息,并且指示每一第一设备启动相应的提醒事件。For example, the server sends first information to all first devices in the electronic device set, the first information carries the message, and instructs each first device to start a corresponding reminder event.
即,本申请实施例中,当服务器接收到消息发送请求时,无论该消息发送请求是由第一设备还是第二设备发送的,服务器会先将消息发送至第一设备,并使第一设备启动相应的提醒事件。That is, in this embodiment of the application, when the server receives a message sending request, no matter whether the message sending request is sent by the first device or the second device, the server will first send the message to the first device, and make the first device Start the corresponding reminder event.
可以理解的,第一设备可以设置为用户常用的设备,则当用户的多个电子设备中的任何一个收到消息或者其中部分电子设备同时收到消息时,服务器可以将消息先发送至用户常用的第一设备,并使第一设备启动相应的提醒事件,以通知用户。一方面,由于服务器先将消息发送至第一设备,则不会使所有电子设备均收到消息且触发各个电子设备的提醒事件,如响铃、振动、或者提示音等,从而不会对用户产生过多干扰及噪音;另一方面,由于第一设备是用户常用的设备,服务器优先将消息发送到第一设备,则用户可以及时地接收到消息。It can be understood that the first device can be set as a device commonly used by the user, then when any one of the multiple electronic devices of the user receives the message or some of the electronic devices receive the message at the same time, the server can first send the message to the user's commonly used device. the first device, and enable the first device to start a corresponding reminder event to notify the user. On the one hand, since the server first sends the message to the first device, all electronic devices will not receive the message and trigger reminder events for each electronic device, such as ringing, vibration, or prompt sound, etc. Too much interference and noise are generated; on the other hand, since the first device is frequently used by the user, the server preferentially sends the message to the first device, and the user can receive the message in time.
步骤103,检测第一设备是否在预设时长内响应提醒事件,若否则执行步骤104。Step 103, detecting whether the first device responds to the reminder event within a preset time period, if not, execute step 104.
比如,服务器向第一设备发送消息之后开始计时,检测该第一设备是否在预设时长内响应所述提醒事件,若该第一设备在预设时长内响应所述提醒事件,则服务器停止其他操作;若该第一设备没有在预设时长内响应所述提醒事件,则服务器执行步骤104。For example, the server starts timing after sending a message to the first device, and detects whether the first device responds to the reminder event within a preset time period. If the first device responds to the reminder event within a preset time period, the server stops other Operation; if the first device does not respond to the reminder event within a preset time period, the server executes step 104 .
在本申请实施例中,预设时长可以由用户预先设置。比如,预设时长可以是10秒、30秒、或者60秒等。In the embodiment of the present application, the preset duration may be preset by the user. For example, the preset duration may be 10 seconds, 30 seconds, or 60 seconds.
在某些实施方式中,预设时长也可以根据第一设备的类型设定。比如,第一设备是手机,设定其预设时长为20秒;第一设备是平板电脑,设定其预设时长为50秒等。In some implementations, the preset duration can also be set according to the type of the first device. For example, if the first device is a mobile phone, its default duration is set to 20 seconds; if the first device is a tablet computer, its default duration is set to 50 seconds.
在某些实施方式中,响应提醒事件的方式与消息的类型相关,例如消息是来电时,响应提醒事件的方式是接听来电或者切断来电;消息是短信、彩信、邮件、微博、或者即时消息等时,响应提醒事件的方式是查看短信、彩信、查邮件、微博、或者即时消息等。In some implementations, the way to respond to the reminder event is related to the type of message, for example, when the message is an incoming call, the way to respond to the reminder event is to answer the call or cut off the call; the message is a text message, multimedia message, email, Weibo, or instant message When waiting, the way to respond to the reminder event is to check text messages, multimedia messages, check emails, Weibo, or instant messages.
若有多个第一设备,则分别检测每一第一设备是否在预设时长内响应消息,若其中一个第一设备在预设时长内响应消息,则可认为第一设备在预设时长内响应消息。If there are multiple first devices, it is detected whether each first device responds to the message within the preset time period. If one of the first devices responds to the message within the preset time period, it can be considered that the first device is within the preset time period. Respond to the message.
步骤104,向第二设备发送第二信息,其中该第二信息携带所述消息并且用于指示第二设备启动提醒事件。Step 104, sending second information to the second device, where the second information carries the message and is used to instruct the second device to start a reminder event.
比如,服务器检测到第一设备没有在预设时长内响应所述提醒事件,则向第二设备发送第二信息,其中所述第二信息携带所述消息并且用于指示所述第二设备启动提醒事件。For example, the server detects that the first device does not respond to the reminder event within a preset time period, and then sends second information to the second device, where the second information carries the message and is used to instruct the second device to start Reminder event.
在本申请实施例中,第一设备和第二设备可以不需要在同一局域网中,第一设备和第二设备只需要与所述服务器连接即可。In this embodiment of the present application, the first device and the second device do not need to be in the same local area network, and the first device and the second device only need to be connected to the server.
本申请实施例中,当服务器检测到第一设备在预设时长内没有响应提醒事件,再向第二设备发送消息并使第二设备启动提醒事件,一方面可以避免多个设备同时接收到消息并触发相应的提醒事件而带来的干扰和噪音,另一方面在用户没有在第一设备及时响应消息时,向第二设备发送消息以避免消息的遗漏。In the embodiment of this application, when the server detects that the first device does not respond to the reminder event within the preset time period, it sends a message to the second device and enables the second device to start the reminder event. On the one hand, it can prevent multiple devices from receiving the message at the same time. And trigger the interference and noise caused by the corresponding reminder event. On the other hand, when the user does not respond to the message in the first device in time, send a message to the second device to avoid missing the message.
因此,本申请实施例的消息发送方法,将通过第一标识建立关系的多个电子设备区分为第一设备和第二设备,先向第一设备发送消息并使第一设备启动提醒事件,即先向用户常用的或者预设的设备发送消息,可以避免多个设备同时接收到消息并触发相应的提醒事件而带来的干扰和噪音;当第一设备在预设时长内没有响应消息时,服务器再向第二设备发送消息并使第二设备启动提醒事件,即在用户没有及时响应消息时,服务器向用户的其他设备发送消息,可以确保消息能够及时地发送到用户的其他设备并向用户发出提醒。Therefore, in the message sending method of the embodiment of the present application, multiple electronic devices that establish a relationship through the first identifier are divided into the first device and the second device, first send a message to the first device and make the first device start a reminder event, that is, Send a message to the user's usual or preset device first, which can avoid the interference and noise caused by multiple devices receiving the message at the same time and triggering the corresponding reminder event; when the first device does not respond to the message within the preset time, The server then sends a message to the second device and enables the second device to start a reminder event, that is, when the user does not respond to the message in time, the server sends a message to the user's other device, which can ensure that the message can be sent to the user's other device in time and notify the user Send a reminder.
在某些实施方式中,从电子设备集合中确定第一设备和第二设备,可以具体包括:In some implementations, determining the first device and the second device from the set of electronic devices may specifically include:
根据当前时刻,从电子设备集合中确定第一设备和第二设备。According to the current moment, the first device and the second device are determined from the electronic device set.
比如,服务器中预先存储多个第一预设时间段与电子设备集合中各个电子设备的第一对应关系;服务器在接收到消息发送请求之后,获取服务器的当前时刻;根据当前时刻,确定对应的第一预设时间段;根据第一对应关系,从电子设备集合中确定该第一预设时间段对应的第一设备以及第二设备。For example, the server pre-stores the first corresponding relationship between a plurality of first preset time periods and each electronic device in the electronic device set; after receiving the message sending request, the server obtains the current time of the server; according to the current time, determines the corresponding A first preset time period: according to the first correspondence, determine the first device and the second device corresponding to the first preset time period from the electronic device set.
即,在不同的时间,电子设备集合中的第一设备以及第二设备可以是不同的电子设备。比如,电子设备集合中包括电子设备1、电子设备2、以及电子设备3,预先将一天24小时分为3个第一预设时间段0:00-8:00、8:00-18:00以及18:00-24:00,第一对应关系可以设置为:在0:00-8:00时,电子设备1是第一设备,电子设备2和电子设备3是第二设备;在8:00-18:00时,电子设备2是第一设备,电子设备1和电子设备3是第二设备;以及18:00-24:00时,电子设备3是第一设备,电子设备1和电子设备2是第二设备。以上仅为举例说明,并不对预设时间段与各个电子设备的对应关系进行限定。That is, at different times, the first device and the second device in the electronic device set may be different electronic devices. For example, the electronic device collection includes electronic device 1, electronic device 2, and electronic device 3, and 24 hours a day is divided into three first preset time periods 0:00-8:00, 8:00-18:00 And 18:00-24:00, the first correspondence can be set as: at 0:00-8:00, electronic device 1 is the first device, and electronic device 2 and electronic device 3 are the second device; at 8:00: From 00 to 18:00, electronic device 2 is the first device, and electronic device 1 and electronic device 3 are the second device; and from 18:00 to 24:00, electronic device 3 is the first device, and electronic device 1 and electronic Device 2 is the second device. The above is only for illustration, and does not limit the corresponding relationship between the preset time period and each electronic device.
因此,在本申请实施例中,可以根据用户需要设定不同时间段的第一设备和第二设备,例如工作时间第一设备是用户随身携带的手机,非工作时间第一设备是用户在家常用的平板电脑等,从而提升对多设备的消息发送进行管理的智能化。Therefore, in this embodiment of the application, the first device and the second device can be set for different time periods according to the needs of the user. For example, the first device during working hours is the mobile phone that the user carries with him, and the first device during non-working hours is the mobile phone that the user uses at home. Tablet PCs, etc., so as to improve the intelligence of managing the message sending of multiple devices.
在某些实施方式中,从电子设备集合中确定第一设备和第二设备,可以具体包括:In some implementations, determining the first device and the second device from the set of electronic devices may specifically include:
获取所述电子设备集合中每一电子设备响应在先发送的消息的历史响应记录;Obtaining a historical response record of each electronic device in the electronic device set responding to a previously sent message;
根据所述历史响应记录,将最后一次响应消息的电子设备确定为第一设备,或者将响应在先发送的消息的次数最多的电子设备确定为第一设备;According to the historical response record, determine the electronic device that responded to the message last time as the first device, or determine the electronic device that responded to the message sent earlier as the first device;
将所述电子设备集合中除了所述确定的第一设备之外的其他电子设备确定为第二设备。Determining other electronic devices in the set of electronic devices except the determined first device as second devices.
在本申请实施例中,根据最后一次响应的消息确定用户最后一次使用的电子设备,可以预测该电子设备是用户最可能使用的电子设备,将该电子设备作为第一设备有利于确保用户及时地接收到消息。In this embodiment of the application, the last electronic device used by the user is determined according to the last response message, and it can be predicted that this electronic device is the electronic device most likely to be used by the user. Taking the electronic device as the first device is beneficial to ensure that the user timely Message received.
在本申请实施例中,还可以根据响应在先发送的消息的次数确定用户最经常使用的电子设备,将该电子设备作为第一设备也有利于确保用户及时地接收到消息。In the embodiment of the present application, the electronic device most frequently used by the user may also be determined according to the number of times of responding to messages sent earlier, and the electronic device as the first device is also beneficial to ensure that the user receives messages in a timely manner.
在某些实施方式中,从电子设备集合中确定第一设备和第二设备,可以具体包括:In some implementations, determining the first device and the second device from the set of electronic devices may specifically include:
获取所述电子设备集合中每一电子设备与所述服务器进行交互的历史交互数据;Obtain historical interaction data of each electronic device in the electronic device set interacting with the server;
根据所述历史交互数据,将最后一次与所述服务器进行交互的电子设备确定为第一设备;determining the electronic device that interacted with the server last time as the first device according to the historical interaction data;
将所述电子设备集合中除了所述确定的第一设备之外的其他电子设备确定为第二设备。Determining other electronic devices in the set of electronic devices except the determined first device as second devices.
在本申请实施例中,根据最后一次与服务器进行交互的电子设备确定为第一设备,可以确保该第一设备与服务器的连接状态,从而确保消息可以及时地发送至该电子设备。In the embodiment of the present application, according to the electronic device that interacts with the server last time is determined as the first device, the connection status between the first device and the server can be ensured, so as to ensure that the message can be sent to the electronic device in time.
在本申请实施例中,电子设备与服务器进行交互可以包括电子设备向服务器发送消息、请求、通知、数据等、也可以包括服务器向电子设备发送消息、请求、通知、数据等。比如,电子设备按照预设频率向服务器发送通知,以使服务器获该电子设备的网络连接状态。In this embodiment of the present application, the interaction between the electronic device and the server may include the electronic device sending messages, requests, notifications, data, etc. to the server, and may also include the server sending messages, requests, notifications, data, etc. to the electronic device. For example, the electronic device sends a notification to the server according to a preset frequency, so that the server obtains the network connection status of the electronic device.
在某些实施方式中,所述向所述第二设备发送所述第二信息,可以具体包括:In some implementation manners, the sending the second information to the second device may specifically include:
根据当前时刻,从所述第二设备中确定目标设备;determining a target device from the second device according to the current moment;
向所述目标设备发送所述第二信息。Send the second information to the target device.
比如,服务器中预先存储多个第二预设时间段与各个第二设备的第二对应关系;服务器检测到第一设备没有在预设时长内响应提醒事件时,获取服务器的当前时刻;根据当前时刻,确定对应的第二预设时间段;根据第二对应关系,从第二设备中确定该第二预设时间段对应的第二设备作为目标设备;然后服务器向目标设备发送第二信息。For example, the server pre-stores the second corresponding relationship between a plurality of second preset time periods and each second device; when the server detects that the first device does not respond to the reminder event within the preset time period, it obtains the current time of the server; according to the current time, determine the corresponding second preset time period; according to the second correspondence, determine the second device corresponding to the second preset time period from the second devices as the target device; then the server sends the second information to the target device.
即,在不同的时间,服务器可以设置需要发送消息的第二设备。比如,第二设备包括电子设备1、电子设备2和电子设备3,可以设置白天向电子设备1和电子设备2发送消息,晚上向电子设备3发送消息。That is, at different times, the server can set the second device that needs to send the message. For example, the second device includes electronic device 1, electronic device 2, and electronic device 3, and it can be set to send messages to electronic device 1 and electronic device 2 during the day, and to send messages to electronic device 3 at night.
因此,在本申请实施例中,可以根据用户需要设定不同时间段需要发送消息的第二设备,例如工作时间第二设备是用户随身携带的手机,非工作时间第二设备是用户在家常用的平板电脑等,从而提升对多设备的消息发送进行管理的智能化。Therefore, in this embodiment of the application, the second device that needs to send messages in different time periods can be set according to the needs of the user. For example, the second device during working hours is the mobile phone that the user carries with him, and the second device during non-working hours is the mobile phone that the user often uses at home. Tablet PCs, etc., so as to improve the intelligence of managing the message sending of multiple devices.
上述所有的技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All the above-mentioned technical solutions may be combined in any way to form optional embodiments of the present application, which will not be repeated here.
由上述可知,本申请实施例的消息发送方法,应用于服务器,将通过第一标识建立关系的多个电子设备区分为第一设备和第二设备,先向第一设备发送消息并使第一设备启动提醒事件,即先向用户常用的或者预设的设备发送消息,可以避免多个设备同时接收到消息并触发相应的提醒事件而带来的干扰和噪音;当第一设备在预设时长内没有响应消息时,服务器再向第二设备发送消息并使第二设备启动提醒事件,即在用户没有及时响应消息时,服务器向用户的其他设备发送消息,可以确保消息能够及时地发送到用户的其他设备并向用户发出提醒。It can be seen from the above that the message sending method of the embodiment of the present application is applied to the server, and the multiple electronic devices that establish a relationship through the first identifier are distinguished into the first device and the second device, and the message is first sent to the first device and the first device The device starts a reminder event, that is, it sends a message to the user's commonly used or preset device first, which can avoid the interference and noise caused by multiple devices receiving the message at the same time and triggering the corresponding reminder event; When there is no response message, the server sends a message to the second device and enables the second device to start a reminder event, that is, when the user does not respond to the message in time, the server sends a message to other devices of the user, which can ensure that the message can be sent to the user in time other devices and alert the user.
请参阅图4,图4为本申请实施例提供的应用于服务器的消息发送方法的另一流程示意图。本申请实施例以消息发送装置集成在服务器为例,描述本申请实施例的消息发送方法的具体实施步骤。该消息发送方法包括以下步骤:Please refer to FIG. 4 . FIG. 4 is another schematic flowchart of a message sending method applied to a server provided by an embodiment of the present application. In the embodiment of the present application, the specific implementation steps of the message sending method in the embodiment of the present application are described by taking the message sending device integrated in the server as an example. The message sending method includes the following steps:
步骤201,电子设备接收到消息时,向服务器发送消息发送请求,其中该消息发送请求携带待发送的消息以及电子设备集合的第一标识,所述电子设备集合包括第一设备和第二设备,并且所述第一设备和第二设备均绑定所述第一标识。Step 201, when the electronic device receives the message, it sends a message sending request to the server, where the message sending request carries the message to be sent and the first identification of the electronic device set, the electronic device set includes the first device and the second device, And both the first device and the second device are bound to the first identifier.
比如,电子设备a接收到来电事件时,向服务器发送消息发送请求,该消息发送请求携带待发送的来电事件以及电子设备集合的第一标识,该电子设备集合包括绑定第一标识的电子设备a、电子设备b、电子设备c以及电子设备d。For example, when electronic device a receives an incoming call event, it sends a message sending request to the server, the message sending request carries the incoming call event to be sent and the first identifier of the electronic device set, the electronic device set includes electronic devices bound to the first identifier a, electronic equipment b, electronic equipment c, and electronic equipment d.
步骤202,服务器接收到消息发送请求时,服务器从所述电子设备集合中确定第一设备和第二设备。Step 202, when the server receives the message sending request, the server determines the first device and the second device from the set of electronic devices.
比如,服务器接收到电子设备a的消息发送请求时,基于预设规则,服务器从电子设备集合中确定第一设备为电子设备a,第二设备是电子设备b、电子设备c以及电子设备d。For example, when the server receives a message sending request from electronic device a, based on preset rules, the server determines from the electronic device set that the first device is electronic device a, and the second device is electronic device b, electronic device c, and electronic device d.
可以理解的是,服务器从所述电子设备集合中确定第一设备和第二设备的方式可以有多种。It can be understood that there may be multiple manners for the server to determine the first device and the second device from the set of electronic devices.
步骤203,服务器向第一设备发送消息。Step 203, the server sends a message to the first device.
比如,服务器向电子设备a发送来电事件,并且触发电子设备a启动相应的提醒事件,例如响铃和/或振动等。可以理解的是,提醒方式可以由用户自行设置。For example, the server sends an incoming call event to electronic device a, and triggers electronic device a to start a corresponding reminder event, such as ringing and/or vibrating. It can be understood that the reminder mode can be set by the user.
步骤204,服务器检测第一设备是否在预设时长内响应消息,若否则执行步骤205。In step 204, the server detects whether the first device responds to the message within a preset time period, and if not, executes step 205.
比如,设置预设时长为15秒,服务器检测到电子设备a在15秒内没有接听或者挂断来电,则执行步骤205;若服务器检测到电子设备a在15秒内接听或者挂断来电,则停止其他操作。For example, if the preset duration is set to 15 seconds, and the server detects that the electronic device a does not answer or hang up the call within 15 seconds, then perform step 205; if the server detects that the electronic device a answers or hangs up the call within 15 seconds, then Stop other operations.
步骤205,服务器向第二设备发送消息或者第一设备向第二设备发送消息。Step 205, the server sends a message to the second device or the first device sends a message to the second device.
比如,电子设备a、电子设备b、电子设备c以及电子设备d不在同一局域网,服务器检测到电子设备a在15秒内没有接听或者挂断来电,则服务器向电子设备b、电子设备c以及电子设备d发送来电事件,并且触发相应的提醒事件,例如响铃和/或振动等。For example, if electronic device a, electronic device b, electronic device c, and electronic device d are not in the same local area network, and the server detects that electronic device a does not answer or hang up the call within 15 seconds, the server sends a notification to electronic device b, electronic device c, and electronic device The device d sends an incoming call event, and triggers a corresponding reminder event, such as ringing and/or vibrating.
又比如,电子设备a、电子设备b、电子设备c以及电子设备d在同一局域网,服务器检测到电子设备a在15秒内没有接听或者挂断来电,则服务器向电子设备a发送指示信息,该指示信息用于指示电子设备a向电子设备b、电子设备c以及电子设备d发送来电事件,并且触发相应的提醒事件,例如响铃和/或振动等,当然服务器也可以仍然直接向向电子设备b、电子设备c以及电子设备d发送来电事件,并且触发相应的提醒事件,例如响铃和/或振动等。For another example, electronic device a, electronic device b, electronic device c and electronic device d are in the same local area network, and the server detects that electronic device a does not answer or hang up the incoming call within 15 seconds, then the server sends instruction information to electronic device a, the The instruction information is used to instruct electronic device a to send incoming call events to electronic device b, electronic device c, and electronic device d, and trigger corresponding reminder events, such as ringing and/or vibrating, etc. Of course, the server can still directly send calls to electronic devices b. Electronic device c and electronic device d send an incoming call event, and trigger a corresponding reminder event, such as ringing and/or vibrating.
可以理解的是,若电子设备a和电子设备b在同一局域网,而电子设备a、电子设备c以及电子设备d不在同一局域网,服务器检测到电子设备a在15秒内没有接听或者挂断来电时,服务器可以向电子设备b发送来电事件,并且向电子设备a发送指示信息,使电子设备a向电子设备c和电子设备d发送来电事件。It can be understood that if electronic device a and electronic device b are in the same local area network, but electronic device a, electronic device c and electronic device d are not in the same local area network, and the server detects that electronic device a does not answer or hang up the call within 15 seconds , the server may send an incoming call event to electronic device b, and send indication information to electronic device a, so that electronic device a sends an incoming call event to electronic device c and electronic device d.
在本申请实施例中,服务器从所述电子设备集合中确定第一设备和第二设备(即步骤202)可以包括多种方式。In this embodiment of the present application, the server may determine the first device and the second device from the set of electronic devices (that is, step 202 ) may include various methods.
请参阅图5,图5为本申请实施例提供的确定第一设备和第二设备的流程示意图。在某些实施方式中,服务器从所述电子设备集合中确定第一设备和第二设备(即步骤202)可以包括以下步骤:Please refer to FIG. 5 . FIG. 5 is a schematic flowchart of determining a first device and a second device according to an embodiment of the present application. In some implementation manners, the server determining the first device and the second device from the set of electronic devices (that is, step 202) may include the following steps:
步骤301,获取所述服务器的当前时刻。Step 301, acquire the current time of the server.
比如,获取到服务器的当前时刻是10:00。For example, the current time obtained from the server is 10:00.
步骤302,根据所述当前时刻,从所述电子设备集合中确定所述第一设备和所述第二设备。Step 302: Determine the first device and the second device from the set of electronic devices according to the current moment.
比如,继续以电子设备集合包括电子设备a、电子设备b、电子设备c以及电子设备d为例,根据当前时刻10:00,确定第一设备为电子设备c,第二设备为电子设备a、电子设备b、以及电子设备d。For example, continue to take the example that the set of electronic devices includes electronic device a, electronic device b, electronic device c, and electronic device d. According to the current time 10:00, it is determined that the first device is electronic device c, and the second device is electronic device a, Electronic device b, and electronic device d.
请参阅图6,图6为本申请实施例提供的确定第一设备和第二设备的另一流程示意图。在某些实施方式中,服务器从所述电子设备集合中确定第一设备和第二设备(即步骤202)可以包括以下步骤:Please refer to FIG. 6 . FIG. 6 is another schematic flowchart of determining the first device and the second device provided by the embodiment of the present application. In some implementation manners, the server determining the first device and the second device from the set of electronic devices (that is, step 202) may include the following steps:
步骤401,获取所述电子设备集合中每一电子设备响应在先发送的消息的历史响应记录。Step 401 , acquiring historical response records of each electronic device in the electronic device set responding to a previously sent message.
步骤402,根据所述历史响应记录,将最后一次响应消息的电子设备确定为第一设备,或者将响应在先发送的消息的次数最多的电子设备确定为第一设备。Step 402, according to the historical response record, determine the electronic device that responded to the message last time as the first device, or determine the electronic device that responded to the message sent earlier as the first device the most times.
步骤403,将所述电子设备集合中除了所述确定的第一设备之外的其他电子设备确定为第二设备。Step 403, determining other electronic devices in the set of electronic devices except the determined first device as second devices.
其中步骤401至步骤403可以具体包括:Wherein steps 401 to 403 may specifically include:
比如,继续以电子设备集合包括电子设备a、电子设备b、电子设备c以及电子设备d为例,服务器分别获取子设备a、电子设备b、电子设备c以及电子设备d响应在先发送的消息的历史响应记录;根据历史响应记录,最后一次响应消息的电子设备是电子设备b,则将电子设备b确定为第一设备,将电子设备a、电子设备c以及电子设备d确定为第二设备。For example, continuing to take the example that the set of electronic devices includes electronic device a, electronic device b, electronic device c, and electronic device d, the server respectively obtains sub-device a, electronic device b, electronic device c, and electronic device d in response to the message sent earlier historical response records; according to the historical response records, the electronic device that responded to the message last time is electronic device b, then electronic device b is determined as the first device, and electronic device a, electronic device c, and electronic device d are determined as the second device .
又比如,继续以电子设备集合包括电子设备a、电子设备b、电子设备c以及电子设备d为例,服务器分别获取子设备a、电子设备b、电子设备c以及电子设备d响应在先发送的消息的历史响应记录;根据历史响应记录,响应在先发送的消息的次数最多的电子设备是电子设备a,则将电子设备a确定为第一设备,将电子设备b、电子设备c以及电子设备d确定为第二设备。For another example, continue taking the example that the set of electronic devices includes electronic device a, electronic device b, electronic device c, and electronic device d, the server respectively obtains sub-device a, electronic device b, electronic device c, and electronic device d in response to the The historical response record of the message; according to the historical response record, the electronic device that responds to the message sent earlier is the electronic device a, then the electronic device a is determined as the first device, and the electronic device b, the electronic device c and the electronic device d is determined as the second device.
请参阅图7,图7为本申请实施例提供的确定第一设备和第二设备的再一流程示意图。在某些实施方式中,服务器从所述电子设备集合中确定第一设备和第二设备(即步骤202)可以包括以下步骤:Please refer to FIG. 7 . FIG. 7 is a schematic flowchart of still another determination of the first device and the second device provided by the embodiment of the present application. In some implementation manners, the server determining the first device and the second device from the set of electronic devices (that is, step 202) may include the following steps:
步骤501,获取所述电子设备集合中每一电子设备与所述服务器进行交互的历史交互数据。Step 501, acquiring historical interaction data of each electronic device in the electronic device set interacting with the server.
步骤502,根据所述历史交互数据,将最后一次与所述服务器进行交互的电子设备确定为第一设备。Step 502, according to the historical interaction data, determine the electronic device that interacted with the server last time as the first device.
步骤503,将所述电子设备集合中除了所述确定的第一设备之外的其他电子设备确定为第二设备。Step 503, determining other electronic devices in the set of electronic devices except the determined first device as second devices.
其中步骤501至步骤503可以具体包括:Wherein steps 501 to 503 may specifically include:
比如,继续以电子设备集合包括电子设备a、电子设备b、电子设备c以及电子设备d为例,服务器分别获取子设备a、电子设备b、电子设备c以及电子设备d与服务器进行交互的历史交互数据;根据历史交互数据,最后一次与服务器进行交互的电子设备是电子设备d,则将电子设备d确定为第一设备,将电子设备a、电子设备b以及电子设备c确定为第二设备。For example, continue to take the electronic device collection including electronic device a, electronic device b, electronic device c, and electronic device d as an example, and the server respectively obtains the interaction history of sub-device a, electronic device b, electronic device c, and electronic device d with the server Interaction data; according to the historical interaction data, the last electronic device interacting with the server is electronic device d, then electronic device d is determined as the first device, and electronic device a, electronic device b, and electronic device c are determined as the second device .
本申请实施例的消息发送方法,应用于服务器,将通过第一标识建立关系的多个电子设备区分为第一设备和第二设备,先向第一设备发送消息,即先向用户常用的或者预设的设备发送消息,可以避免多个设备同时接收到消息并触发相应的提醒事件而带来的干扰和噪音;当第一设备在预设时长内没有响应消息时,服务器再向第二设备发送消息,即在用户没有及时响应消息时,服务器向用户的其他设备发送消息,可以确保消息能够及时地发送到用户的其他设备并向用户发出提醒。The message sending method of the embodiment of the present application is applied to a server to distinguish a plurality of electronic devices that establish a relationship through a first identifier into a first device and a second device, and first send a message to the first device, that is, first send a message to the user's commonly used or The preset device sends a message, which can avoid the interference and noise caused by multiple devices receiving the message at the same time and triggering the corresponding reminder event; when the first device does not respond to the message within the preset time, the server will send the Sending a message, that is, when the user does not respond to the message in time, the server sends a message to the user's other devices, which can ensure that the message can be sent to the user's other devices in time and send a reminder to the user.
请参阅图8,图8为本申请实施例提供的应用于电子设备的消息发送方法的流程示意图。本申请实施例将从消息发送装置的角度进行描述,该消息发送装置具体可以集成在电子设备中。应用于电子设备的消息发送方法包括:Please refer to FIG. 8 . FIG. 8 is a schematic flowchart of a method for sending a message applied to an electronic device according to an embodiment of the present application. The embodiment of the present application will be described from the perspective of a message sending apparatus, and the message sending apparatus may specifically be integrated in an electronic device. Message sending methods applied to electronic devices include:
步骤111,当接收到消息时,向服务器发送消息发送请求,其中所述消息发送请求携带消息以及电子设备集合的第一标识,所述电子设备集合包括第一设备和第二设备,并且所述第一设备和第二设备均绑定所述第一标识。Step 111, when a message is received, send a message sending request to the server, where the message sending request carries the message and the first identifier of the electronic device set, the electronic device set includes the first device and the second device, and the Both the first device and the second device are bound to the first identifier.
比如,当电子设备接收到消息时,电子设备向服务器发送消息发送请求,其中该消息发送请求携带所述消息以及电子设备集合的第一标识。For example, when the electronic device receives a message, the electronic device sends a message sending request to the server, where the message sending request carries the message and the first identifier of the electronic device set.
步骤112,若所述服务器指示所述电子设备为第一设备,则启动提醒事件。Step 112, if the server indicates that the electronic device is the first device, start a reminder event.
比如,当电子设备从服务器接收到指示,该指示确认该电子设备为第一设备,则启动提醒事件。For example, when the electronic device receives an indication from the server, and the indication confirms that the electronic device is the first device, a reminder event is initiated.
步骤113,检测所述提醒事件是否在预设时长内获得响应,若否则执行步骤114。Step 113 , check whether the reminder event is responded within a preset time period, if not, execute step 114 .
比如,当电子设备启动提醒事件就开始计时,检测该电子设备是否在预设时长内响应提醒事件,若该电子设备的提醒事件在预设时长内没有获得响应,则电子设备执行步骤114。For example, when the electronic device starts a reminder event, it starts timing, and detects whether the electronic device responds to the reminder event within a preset time period.
在某些实施方式中,响应提醒事件的方式与消息的类型相关,例如消息是来电时,响应提醒事件的方式是接听来电或者切断来电;消息是短信、彩信、邮件、微博、或者即时消息等时,响应提醒事件的方式是查看短信、彩信、查邮件、微博、或者即时消息等。In some implementations, the way to respond to the reminder event is related to the type of message, for example, when the message is an incoming call, the way to respond to the reminder event is to answer the call or cut off the call; the message is a text message, multimedia message, email, Weibo, or instant message When waiting, the way to respond to the reminder event is to check text messages, multimedia messages, check emails, Weibo, or instant messages.
步骤114,向所述服务器发送第三信息,或者向所述第二设备发送第四信息,其中所述第三信息用于指示所述服务器向所述第二设备发送第二信息,所述第二信息和所述第四信息均携带所述消息并且用于指示所述第二设备启动提醒事件。Step 114, sending third information to the server, or sending fourth information to the second device, where the third information is used to instruct the server to send second information to the second device, the first Both the second information and the fourth information carry the message and are used to instruct the second device to start a reminder event.
比如,当检测到提醒事件没有在预设时长内获得响应,则电子设备向服务器发送第三信息,其中该第三信息用于指示服务器向第二设备发送第二信息,即通过服务器将消息发送至第二设备并且使第二设备启动提醒事件。在该情况下,第一设备和第二设备可以不用在同一局域网中。For example, when it is detected that the reminder event does not receive a response within a preset time period, the electronic device sends third information to the server, where the third information is used to instruct the server to send the second information to the second device, that is, the server sends the message to to the second device and cause the second device to initiate a reminder event. In this case, the first device and the second device may not be in the same local area network.
又比如,当检测到提醒事件没有在预设时长内获得响应,则电子设备(即第一设备)向第二设备发送第四信息,即电子设备将消息发送至第二设备并使第二设备启动提醒事件。在该情况下,第一设备和第二设备需要在同一局域网中。For another example, when it is detected that the reminder event does not receive a response within the preset time period, the electronic device (that is, the first device) sends fourth information to the second device, that is, the electronic device sends the message to the second device and makes the second device Start a reminder event. In this case, the first device and the second device need to be in the same local area network.
请参阅图9,图9为本申请实施例的应用于电子设备的消息发送方法的另一流程图。在某些实施方式中,应用于电子设备的消息发送方法还包括:Please refer to FIG. 9 . FIG. 9 is another flowchart of a message sending method applied to an electronic device according to an embodiment of the present application. In some implementations, the message sending method applied to the electronic device further includes:
步骤115,若所述服务器指示所述电子设备为第二设备,则不启动提醒事件。Step 115, if the server indicates that the electronic device is the second device, then do not initiate a reminder event.
由上述可知,本申请实施例的消息发送方法,应用于电子设备,将通过第一标识建立关系的多个电子设备区分为第一设备和第二设备,当电子设备接收到消息发送请求时,通过服务器判断该电子设备是否为第一设备,若该电子设备是第一设备,则启动该电子设备的提醒事件,即第一设备可以优先启动提醒事件以通知用户,从而避免多个设备同时接收到消息并触发相应的提醒事件而带来的干扰和噪音;然后当该第一设备的提醒事件没有在预设时长内获得响应时,第一设备通知服务器将消息转发至第二设备并且使第二设备启动提醒事件,或者第一设备直接将消息转发至第二设备并且使第二设备启动提醒事件,从而可以在用户没有及时响应消息时,向用户的其他设备发送消息,以确保消息能够及时地发送到用户的其他设备并向用户发出提醒。It can be seen from the above that the message sending method of the embodiment of the present application is applied to electronic devices, and multiple electronic devices that establish a relationship through the first identifier are distinguished into the first device and the second device. When the electronic device receives a message sending request, The server judges whether the electronic device is the first device, and if the electronic device is the first device, start the reminder event of the electronic device, that is, the first device can give priority to start the reminder event to notify the user, so as to prevent multiple devices from receiving The interference and noise caused by receiving the message and triggering the corresponding reminder event; then when the reminder event of the first device does not get a response within the preset time period, the first device notifies the server to forward the message to the second device and makes the second device The second device starts a reminder event, or the first device directly forwards the message to the second device and causes the second device to start a reminder event, so that when the user does not respond to the message in time, it can send a message to other devices of the user to ensure that the message can be delivered in time to other devices of the user and alert the user.
为便于更好地实施本申请实施例提供的应用于服务器的消息发送方法,本申请实施例还提供一种应用于服务器的消息发送装置。其中名词的含义与上述消息发送方法相同,具体实现细节可以参考方法实施例中的说明。In order to better implement the message sending method applied to the server provided by the embodiment of the present application, the embodiment of the present application further provides a message sending device applied to the server. The meanings of the nouns are the same as those of the above message sending method, and for specific implementation details, please refer to the description in the method embodiments.
请参阅图10,图10为本申请实施例提供的应用于服务器的消息发送装置的结构示意图。其中该消息发送装置600应用于服务器,该消息发送装置600包括确定模块601、第一发送模块602、第一检测模块603以及第二发送模块604。Please refer to FIG. 10 . FIG. 10 is a schematic structural diagram of a message sending device applied to a server according to an embodiment of the present application. The message sending device 600 is applied to a server, and the message sending device 600 includes a determining module 601 , a first sending module 602 , a first detecting module 603 and a second sending module 604 .
其中,确定模块601用于:当接收到消息发送请求时,从电子设备集合中确定第一设备和第二设备,其中所述消息发送请求携带待发送的消息以及所述电子设备集合的第一标识,所述第一设备和所述第二设备均绑定所述第一标识。Wherein, the determining module 601 is configured to: when receiving a message sending request, determine the first device and the second device from the electronic device set, wherein the message sending request carries the message to be sent and the first device of the electronic device set. An identifier, where both the first device and the second device are bound to the first identifier.
比如,确定模块601接收由电子设备发送的消息发送请求,其中该消息发送请求携带待发送的消息以及电子设备集合的第一标识,然后服务器从电子设备集合中确定第一设备和第二设备,其中第一设备和所述第二设备均绑定第一标识。For example, the determining module 601 receives a message sending request sent by an electronic device, where the message sending request carries a message to be sent and a first identifier of a set of electronic devices, and then the server determines the first device and the second device from the set of electronic devices, Wherein the first device and the second device are both bound with the first identifier.
在本申请实施例中,接收消息发送请求的方式可以有很多种,比如:In the embodiment of this application, there are many ways to receive a message sending request, such as:
当有其他服务或电子设备器向电子设备发送消息时,在该消息在电子设备显示以及触发相应的提醒事件(登录如响铃、振动、或提示音等)之前,触发该电子设备向服务器发送消息发送请求。其中,该消息发送请求携带上述消息。When other services or electronic devices send messages to the electronic device, before the message is displayed on the electronic device and triggers a corresponding reminder event (login such as ringing, vibration, or prompt tone, etc.), the electronic device is triggered to send the message to the server. Message sending request. Wherein, the message sending request carries the above message.
需要说明的是,消息发送请求由电子设备集合中最先监听到上述端口收到消息的电子设备发送。因此可以是第一设备向服务器发送消息发送请求,也可以是第二设备向服务器发送消息发送请求,也可以是最先收到消息的多个电子设备同时向服务器发送消息发送请求。It should be noted that the request for sending the message is sent by the electronic device in the set of electronic devices that first listens to the message received by the port above. Therefore, it may be that the first device sends a message sending request to the server, or the second device sends a message sending request to the server, or multiple electronic devices that receive the message first simultaneously send a message sending request to the server.
在本申请实施例中,消息可以是来电、短信、彩信、邮件、微博以及即时消息等。其中,即时消息指的是即时通信工具的消息,即时通信工具可以是,例如QQ、微信、或者facebook等,其中即时通信工具发送的消息可以是文本消息、语音消息、文件消息、图片消息或者视频消息等。In this embodiment of the application, the message may be an incoming call, a short message, a multimedia message, an email, a microblog, an instant message, and the like. Wherein, the instant message refers to the message of the instant communication tool, and the instant communication tool can be, for example, QQ, WeChat, or facebook, etc., wherein the message sent by the instant communication tool can be a text message, a voice message, a file message, a picture message or a video news etc.
在本申请实施例中,电子设备集合是绑定了同一个第一标识的多个电子设备的集合。在某些实施方式中,第一标识可以是账号。比如,用户预先向服务器申请并注册一个账号,并且使用该账号绑定多个电子设备(即在多个电子设备登录该账号),则可以将绑定同一账号的多个电子设备确定为一个电子设备集合,该账号作为电子设备集合的第一标识。In this embodiment of the present application, the set of electronic devices is a set of multiple electronic devices bound to the same first identifier. In some implementations, the first identifier may be an account number. For example, if the user applies for and registers an account with the server in advance, and uses the account to bind multiple electronic devices (that is, to log in to the account on multiple electronic devices), then the multiple electronic devices bound to the same account can be determined as one electronic device. For a device set, the account is used as the first identifier of the electronic device set.
在本申请实施例中,第一设备是用于优先接收消息并启动提醒事件的设备,第二设备是在第一设备没有及时响应提醒事件时用于接收消息并启动提醒事件的设备。In this embodiment of the application, the first device is a device for preferentially receiving a message and starting a reminder event, and the second device is a device for receiving a message and starting a reminder event when the first device fails to respond to the reminder event in time.
在某些实施方式中,电子设备集合中每一电子设备的身份(即第一设备或第二设备)可以预先存储在服务器中。In some implementations, the identity of each electronic device in the electronic device set (ie, the first device or the second device) may be pre-stored in the server.
在本申请实施例中,电子设备集合中每一电子设备的身份(即第一设备或第二设备)可以有多种设置方式。In the embodiment of the present application, the identity of each electronic device in the electronic device set (that is, the first device or the second device) can be set in multiple ways.
比如,用户通过电子设备向服务器发送请求,主动设置电子设备集合中各个电子设备的身份。For example, the user sends a request to the server through the electronic device, and actively sets the identity of each electronic device in the electronic device collection.
又比如,服务器根据预设规则,设置电子设备集合中每一电子设备的身份。For another example, the server sets the identity of each electronic device in the electronic device set according to preset rules.
可以理解的是,第一设备和第二设备的设备类型可以不同。比如第一设备是手机、第二设备是平板电脑。It can be understood that the device types of the first device and the second device may be different. For example, the first device is a mobile phone, and the second device is a tablet computer.
需要说明的是,第一设备和第二设备的数量均可以是一个或至少两个,并且每一第一设备、以及每一第二设备的设备类型均可以不同。比如电子设备集合包括一个第一设备和两个第二设备,其中该第一设备为手机,两个第二设备分别为手机和平板电脑。It should be noted that the number of the first device and the number of the second device may be one or at least two, and the device types of each first device and each second device may be different. For example, the set of electronic devices includes a first device and two second devices, wherein the first device is a mobile phone, and the two second devices are respectively a mobile phone and a tablet computer.
第一发送模块602用于:向所述第一设备发送第一信息,其中所述第一信息携带所述消息并且用于指示所述第一设备启动提醒事件。The first sending module 602 is configured to: send first information to the first device, where the first information carries the message and is used to instruct the first device to start a reminder event.
比如,第一发送模块602向电子设备集合中的所有第一设备发送第一信息,该第一信息携带所述消息,并且指示每一第一设备启动相应的提醒事件。For example, the first sending module 602 sends first information to all first devices in the electronic device set, where the first information carries the message and instructs each first device to start a corresponding reminder event.
即,本申请实施例中,当服务器接收到消息发送请求时,无论该消息发送请求是由第一设备还是第二设备发送的,服务器会先将消息发送至第一设备,并使第一设备启动相应的提醒事件。That is, in this embodiment of the application, when the server receives a message sending request, no matter whether the message sending request is sent by the first device or the second device, the server will first send the message to the first device, and make the first device Start the corresponding reminder event.
可以理解的,第一设备可以设置为用户常用的设备,则当用户的多个电子设备中的任何一个收到消息或者其中部分电子设备同时收到消息时,服务器可以将消息先发送至用户常用的第一设备,并使第一设备启动相应的提醒事件。一方面,由于服务器先将消息发送至第一设备,则不会使所有电子设备均收到消息且触发各个电子设备的提醒事件,如响铃、振动、或者提示音等,从而不会对用户产生过多干扰及噪音;另一方面,由于第一设备是用户常用的设备,服务器优先将消息发送到第一设备,则用户可以及时地接收到消息。It can be understood that the first device can be set as a device commonly used by the user, then when any one of the multiple electronic devices of the user receives the message or some of the electronic devices receive the message at the same time, the server can first send the message to the user's commonly used device. the first device, and enable the first device to start a corresponding reminder event. On the one hand, since the server first sends the message to the first device, all electronic devices will not receive the message and trigger reminder events for each electronic device, such as ringing, vibration, or prompt sound, etc. Too much interference and noise are generated; on the other hand, since the first device is frequently used by the user, the server preferentially sends the message to the first device, and the user can receive the message in time.
第一检测模块603用于:检测所述第一设备是否在预设时长内响应所述提醒事件。The first detection module 603 is configured to: detect whether the first device responds to the reminder event within a preset time period.
比如,第一发送模块602向第一设备发送消息之后开始计时,第一检测模块603检测该第一设备是否在预设时长内响应所述提醒事件,若该第一设备在预设时长内响应所述提醒事件,则服务器停止其他操作;若该第一设备没有在预设时长内响应所述提醒事件,则服务器触发第二发送模块604的操作。For example, the first sending module 602 starts timing after sending a message to the first device, and the first detection module 603 detects whether the first device responds to the reminder event within the preset time period, and if the first device responds within the preset time period For the reminder event, the server stops other operations; if the first device does not respond to the reminder event within a preset time period, the server triggers the operation of the second sending module 604 .
在本申请实施例中,预设时长可以由用户预先设置。比如,预设时长可以是10秒、30秒、或者60秒等。In the embodiment of the present application, the preset duration may be preset by the user. For example, the preset duration may be 10 seconds, 30 seconds, or 60 seconds.
在某些实施方式中,预设时长也可以根据第一设备的类型设定。比如,第一设备是手机,设定其预设时长为20秒;第一设备是平板电脑,设定其预设时长为50秒等。In some implementations, the preset duration can also be set according to the type of the first device. For example, if the first device is a mobile phone, its default duration is set to 20 seconds; if the first device is a tablet computer, its default duration is set to 50 seconds.
在某些实施方式中,响应提醒事件息的方式与消息的类型相关,例如消息是来电时,响应提醒事件的方式是接听来电或者切断来电;消息是短信、彩信、邮件、微博、或者即时消息等时,响应提醒事件的方式是查看短信、彩信、邮件、微博、或者即时消息等。In some implementations, the way of responding to the reminder event information is related to the type of message, for example, when the message is an incoming call, the way to respond to the reminder event is to answer the call or cut off the call; the message is a text message, multimedia message, email, microblog, or instant message When receiving messages, etc., the way to respond to the reminder event is to check text messages, multimedia messages, emails, Weibo, or instant messages.
若有多个第一设备,则分别检测每一第一设备是否在预设时长内响应消息,若其中一个第一设备在预设时长内响应消息,则可认为第一设备在预设时长内响应消息。If there are multiple first devices, it is detected whether each first device responds to the message within the preset time period. If one of the first devices responds to the message within the preset time period, it can be considered that the first device is within the preset time period. Respond to the message.
第二发送模块604用于:若否,则向所述第二设备发送第二信息,其中所述第二信息携带所述消息并且用于指示所述第二设备启动提醒事件。The second sending module 604 is configured to: if not, send second information to the second device, where the second information carries the message and is used to instruct the second device to start a reminder event.
比如,第一检测模块603检测到第一设备没有在预设时长内响应所述提醒事件,则第二发送模块604向第二设备发送第二信息,其中所述第二信息携带所述消息并且用于指示所述第二设备启动提醒事件。For example, when the first detection module 603 detects that the first device does not respond to the reminder event within a preset time period, the second sending module 604 sends second information to the second device, where the second information carries the message and It is used to instruct the second device to start a reminder event.
在本申请实施例中,第一设备和第二设备可以不需要在同一局域网中,第一设备和第二设备只需要与所述服务器连接即可。In this embodiment of the present application, the first device and the second device do not need to be in the same local area network, and the first device and the second device only need to be connected to the server.
本申请实施例中,当服务器检测到第一设备在预设时长内没有响应第二信息,其中所述第二信息携带所述消息并且用于指示所述第二设备启动提醒事件,再向第二设备发送消息并使第二设备启动提醒事件,一方面可以避免多个设备同时接收到消息并触发相应的提醒事件而带来的干扰和噪音,另一方面在用户没有在第一设备及时响应消息时,向第二设备发送消息以避免消息的遗漏。In this embodiment of the present application, when the server detects that the first device does not respond to the second information within a preset time period, wherein the second information carries the message and is used to instruct the second device to start a reminder event, and then sends the second message to the second device. The second device sends a message and enables the second device to start a reminder event. On the one hand, it can avoid the interference and noise caused by multiple devices receiving the message at the same time and triggering the corresponding reminder event. On the other hand, if the user does not respond in time on the first device When receiving a message, send the message to the second device to avoid missing the message.
因此,本申请实施例的消息发送装置,应用于服务器,将通过第一标识建立关系的多个电子设备区分为第一设备和第二设备,先向第一设备发送消息并使第一设备启动提醒事件,即先向用户常用的或者预设的设备发送消息,可以避免多个设备同时接收到消息并触发相应的提醒事件而带来的干扰和噪音;当第一设备在预设时长内没有响应消息时,服务器再向第二设备发送消息并使第二设备启动提醒事件,即在用户没有及时响应消息时,服务器向用户的其他设备发送消息,可以确保消息能够及时地发送到用户的其他设备并向用户发出提醒。Therefore, the message sending device of the embodiment of the present application is applied to a server, and distinguishes a plurality of electronic devices that establish a relationship through a first identifier into a first device and a second device, first sends a message to the first device and makes the first device start Reminder event, that is, to send a message to the user's usual or preset device first, which can avoid the interference and noise caused by multiple devices receiving the message at the same time and triggering the corresponding reminder event; When responding to the message, the server sends a message to the second device and enables the second device to start a reminder event, that is, when the user does not respond to the message in time, the server sends a message to other devices of the user, which can ensure that the message can be sent to other devices of the user in time. device and alert the user.
在某些实施方式中,确定模块601可以具体用于:In some implementations, the determination module 601 can be specifically used for:
根据当前时刻,从所述电子设备集合中确定所述第一设备和所述第二设备。The first device and the second device are determined from the set of electronic devices according to the current moment.
比如,服务器中预先存储多个第一预设时间段与电子设备集合中各个电子设备的第一对应关系;服务器在接收到消息发送请求之后,确定模块601可以具体获取服务器的当前时刻;根据当前时刻,确定对应的第一预设时间段;根据第一对应关系,从电子设备集合中确定该第一预设时间段对应的第一设备以及第二设备。For example, the server pre-stores the first corresponding relationship between a plurality of first preset time periods and each electronic device in the electronic device set; after the server receives the message sending request, the determining module 601 can specifically obtain the current time of the server; according to the current time, determine the corresponding first preset time period; according to the first correspondence, determine the first device and the second device corresponding to the first preset time period from the set of electronic devices.
即,在不同的时间,电子设备集合中的第一设备以及第二设备可以是不同的电子设备。比如,电子设备集合中包括电子设备1、电子设备2、以及电子设备3,预先将一天24小时分为3个第一预设时间段0:00-8:00、8:00-18:00以及18:00-24:00,第一对应关系可以设置为:在0:00-8:00时,电子设备1是第一设备,电子设备2和电子设备3是第二设备;在8:00-18:00时,电子设备2是第一设备,电子设备1和电子设备3是第二设备;以及18:00-24:00时,电子设备3是第一设备,电子设备1和电子设备2是第二设备。以上仅为举例说明,并不对预设时间段与各个电子设备的对应关系进行限定。That is, at different times, the first device and the second device in the electronic device set may be different electronic devices. For example, the electronic device collection includes electronic device 1, electronic device 2, and electronic device 3, and 24 hours a day is divided into three first preset time periods 0:00-8:00, 8:00-18:00 And 18:00-24:00, the first correspondence can be set as: at 0:00-8:00, electronic device 1 is the first device, and electronic device 2 and electronic device 3 are the second device; at 8:00: From 00 to 18:00, electronic device 2 is the first device, and electronic device 1 and electronic device 3 are the second device; and from 18:00 to 24:00, electronic device 3 is the first device, and electronic device 1 and electronic Device 2 is the second device. The above is only for illustration, and does not limit the corresponding relationship between the preset time period and each electronic device.
因此,在本申请实施例中,可以根据用户需要设定不同时间段的第一设备和第二设备,例如工作时间第一设备是用户随身携带的手机,非工作时间第一设备是用户在家常用的平板电脑等,从而提升对多设备的消息发送进行管理的智能化。Therefore, in this embodiment of the application, the first device and the second device can be set for different time periods according to the needs of the user. For example, the first device during working hours is the mobile phone that the user carries with him, and the first device during non-working hours is the mobile phone that the user uses at home. Tablet PCs, etc., so as to improve the intelligence of managing the message sending of multiple devices.
在某些实施方式中,确定模块601可以具体用于:In some implementations, the determination module 601 can be specifically used for:
获取所述电子设备集合中每一电子设备响应在先发送的消息的历史响应记录;Obtaining a historical response record of each electronic device in the electronic device set responding to a previously sent message;
根据所述历史响应记录,将最后一次响应消息的电子设备确定为第一设备,或者将响应在先发送的消息的次数最多的电子设备确定为第一设备;According to the historical response record, determine the electronic device that responded to the message last time as the first device, or determine the electronic device that responded to the message sent earlier as the first device;
将所述电子设备集合中除了所述确定的第一设备之外的其他电子设备确定为第二设备。Determining other electronic devices in the set of electronic devices except the determined first device as second devices.
在本申请实施例中,根据最后一次响应的消息确定用户最后一次使用的电子设备,可以预测该电子设备是用户最可能使用的电子设备,将该电子设备作为第一设备有利于确保用户及时地接收到消息。In this embodiment of the application, the last electronic device used by the user is determined according to the last response message, and it can be predicted that this electronic device is the most likely electronic device used by the user. Taking the electronic device as the first device is beneficial to ensure that the user timely Message received.
在本申请实施例中,还可以根据响应在先发送的消息的次数确定用户最经常使用的电子设备,将该电子设备作为第一设备也有利于确保用户及时地接收到消息。In the embodiment of the present application, the electronic device most frequently used by the user may also be determined according to the number of times of responding to messages sent earlier, and the electronic device as the first device is also beneficial to ensure that the user receives messages in a timely manner.
在某些实施方式中,确定模块601可以具体用于:In some implementations, the determination module 601 can be specifically used for:
获取所述电子设备集合中每一电子设备与所述服务器进行交互的历史交互数据;Obtain historical interaction data of each electronic device in the electronic device set interacting with the server;
根据所述历史交互数据,将最后一次与所述服务器进行交互的电子设备确定为第一设备;determining the electronic device that interacted with the server last time as the first device according to the historical interaction data;
将所述电子设备集合中除了所述确定的第一设备之外的其他电子设备确定为第二设备。Determining other electronic devices in the set of electronic devices except the determined first device as second devices.
在本申请实施例中,根据最后一次与服务器进行交互的电子设备确定为第一设备,可以确保该第一设备与服务器的连接状态,从而确保消息可以及时地发送至该电子设备。In the embodiment of the present application, according to the electronic device that interacts with the server last time is determined as the first device, the connection status between the first device and the server can be ensured, so as to ensure that the message can be sent to the electronic device in time.
在本申请实施例中,电子设备与服务器进行交互可以包括电子设备向服务器发送消息、请求、通知、数据等、也可以包括服务器向电子设备发送消息、请求、通知、数据等。比如,电子设备按照预设频率向服务器发送通知,以使服务器获该电子设备的网络连接状态。In this embodiment of the present application, the interaction between the electronic device and the server may include the electronic device sending messages, requests, notifications, data, etc. to the server, and may also include the server sending messages, requests, notifications, data, etc. to the electronic device. For example, the electronic device sends a notification to the server according to a preset frequency, so that the server obtains the network connection status of the electronic device.
在某些实施方式中,第二发送模块604可以具体用于:In some implementation manners, the second sending module 604 may be specifically used for:
根据当前时刻,从所述第二设备中确定目标设备;determining a target device from the second device according to the current moment;
向所述目标设备发送第二信息。Send second information to the target device.
比如,服务器中预先存储多个第二预设时间段与各个第二设备的第二对应关系;服务器检测到第一设备没有在预设时长内响应提醒事件时,第二发送模块604可以获取服务器的当前时刻;根据当前时刻,确定对应的第二预设时间段;根据第二对应关系,从第二设备中确定该第二预设时间段对应的第二设备作为目标设备;然后服务器向目标设备发送第二信息。For example, the server pre-stores the second corresponding relationship between a plurality of second preset time periods and each second device; when the server detects that the first device does not respond to the reminder event within the preset time period, the second sending module 604 can obtain the server according to the current moment, determine the corresponding second preset time period; according to the second correspondence, determine the second device corresponding to the second preset time period from the second devices as the target device; then the server sends the target device The device sends the second information.
即,在不同的时间,服务器可以设置需要发送消息的第二设备。比如,第二设备包括电子设备1、电子设备2和电子设备3,可以设置白天向电子设备1和电子设备2发送消息,晚上向电子设备3发送消息。That is, at different times, the server can set the second device that needs to send the message. For example, the second device includes electronic device 1, electronic device 2, and electronic device 3, and it can be set to send messages to electronic device 1 and electronic device 2 during the day, and to send messages to electronic device 3 at night.
因此,在本申请实施例中,可以根据用户需要设定不同时间段需要发送消息的第二设备,例如工作时间第二设备是用户随身携带的手机,非工作时间第二设备是用户在家常用的平板电脑等,从而提升对多设备的消息发送进行管理的智能化。Therefore, in this embodiment of the application, the second device that needs to send messages in different time periods can be set according to the needs of the user. For example, the second device during working hours is the mobile phone that the user carries with him, and the second device during non-working hours is the mobile phone that the user often uses at home. Tablet PCs, etc., so as to improve the intelligence of managing the message sending of multiple devices.
上述所有的技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All the above-mentioned technical solutions may be combined in any way to form optional embodiments of the present application, which will not be repeated here.
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现。During specific implementation, each of the above modules may be implemented as an independent entity, or may be combined arbitrarily to be implemented as the same or several entities.
上述所有的技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All the above-mentioned technical solutions may be combined in any way to form optional embodiments of the present application, which will not be repeated here.
由上述可知,本申请实施例的消息发送装置,应用于服务器,将通过第一标识建立关系的多个电子设备区分为第一设备和第二设备,先向第一设备发送消息,即先向用户常用的或者预设的设备发送消息并使第一设备启动提醒事件,可以避免多个设备同时接收到消息并触发相应的提醒事件而带来的干扰和噪音;当第一设备在预设时长内没有响应消息时,服务器再向第二设备发送消息,即在用户没有及时响应消息时,服务器向用户的其他设备发送消息并使第二设备启动提醒事件,可以确保消息能够及时地发送到用户的其他设备并向用户发出提醒。From the above, it can be known that the message sending device of the embodiment of the present application is applied to a server, and distinguishes a plurality of electronic devices that establish a relationship through a first identifier into a first device and a second device, and first sends a message to the first device, that is, first sends a message to the The user's usual or preset device sends a message and makes the first device start a reminder event, which can avoid the interference and noise caused by multiple devices receiving the message at the same time and triggering the corresponding reminder event; When there is no response message, the server sends a message to the second device, that is, when the user does not respond to the message in time, the server sends a message to other devices of the user and enables the second device to start a reminder event, which can ensure that the message can be sent to the user in time other devices and alert the user.
本申请实施例中,所述应用于服务器的消息发送装置与上文实施例中应用于服务器的消息发送方法属于同一构思,在所述应用于服务器的消息发送装置上可以运行所述应用于服务器的消息发送方法实施例中提供的任一方法,其具体实现过程详见所述应用于服务器的消息发送方法的实施例,此处不再赘述。In the embodiment of the present application, the message sending device applied to the server belongs to the same idea as the message sending method applied to the server in the above embodiment, and the message sending device applied to the server can run the message sending device applied to the server For any method provided in the embodiment of the message sending method, the specific implementation process thereof is detailed in the embodiment of the message sending method applied to the server, and will not be repeated here.
请参阅图11,图11为本申请实施例提供的应用于电子设备的消息发送装置的结构示意图。该消息发送装置700应用于电子设备,该消息发送装置700包括第三发送模块701、启动模块702、第二检测模块703以及第四发送模块704。Please refer to FIG. 11 . FIG. 11 is a schematic structural diagram of a message sending device applied to an electronic device provided by an embodiment of the present application. The message sending device 700 is applied to an electronic device, and the message sending device 700 includes a third sending module 701 , a starting module 702 , a second detecting module 703 and a fourth sending module 704 .
其中,第三发送模块701用于:当接收到消息时,向服务器发送消息发送请求,其中所述消息发送请求携带待发送的消息以及电子设备集合的第一标识,所述电子设备集合包括第一设备和第二设备,并且所述第一设备和第二设备均绑定所述第一标识。Wherein, the third sending module 701 is configured to: when receiving a message, send a message sending request to the server, wherein the message sending request carries the message to be sent and the first identifier of the electronic device set, the electronic device set includes the first A device and a second device, and both the first device and the second device are bound to the first identifier.
启动模块702用于:若所述服务器指示所述电子设备为第一设备,则启动提醒事件。The starting module 702 is configured to start a reminder event if the server indicates that the electronic device is the first device.
第二检测模块703用于:检测所述提醒事件是否在预设时长内获得响应。The second detection module 703 is configured to: detect whether the reminder event is responded within a preset time period.
第四发送模块704用于:若否,则向所述服务器发送第三信息,或者向所述第二设备发送第四信息,其中所述第三信息用于指示所述服务器向所述第二设备发送第二信息,所述第二信息和所述第四信息均携带所述消息并且用于指示所述第二设备启动提醒事件。The fourth sending module 704 is configured to: if not, send third information to the server, or send fourth information to the second device, where the third information is used to instruct the server to send the second information to the second device. The device sends second information, where both the second information and the fourth information carry the message and are used to instruct the second device to start a reminder event.
在某些实施方式中,启动模块702还可以用于:若所述服务器指示所述电子设备为第二设备,则不启动提醒事件。In some implementations, the starting module 702 may also be configured to: not start a reminder event if the server indicates that the electronic device is the second device.
由上述可知,本申请实施例的消息发送装置,应用于电子设备,将通过第一标识建立关系的多个电子设备区分为第一设备和第二设备,当电子设备接收到消息发送请求时,通过服务器判断该电子设备是否为第一设备,若该电子设备是第一设备,则启动该电子设备的提醒事件,即第一设备可以优先启动提醒事件以通知用户,从而避免多个设备同时接收到消息并触发相应的提醒事件而带来的干扰和噪音;然后当该第一设备的提醒事件没有在预设时长内获得响应时,第一设备通知服务器将消息转发至第二设备并且使第二设备启动提醒事件,或者第一设备直接将消息转发至第二设备并且使第二设备启动提醒事件,从而可以在用户没有及时响应消息时,向用户的其他设备发送消息,以确保消息能够及时地发送到用户的其他设备并向用户发出提醒。It can be seen from the above that the message sending device of the embodiment of the present application is applied to electronic devices, and multiple electronic devices that establish a relationship through the first identifier are distinguished into the first device and the second device. When the electronic device receives a message sending request, The server judges whether the electronic device is the first device, and if the electronic device is the first device, start the reminder event of the electronic device, that is, the first device can give priority to start the reminder event to notify the user, so as to prevent multiple devices from receiving The interference and noise caused by receiving the message and triggering the corresponding reminder event; then when the reminder event of the first device does not get a response within the preset time period, the first device notifies the server to forward the message to the second device and makes the second device The second device starts a reminder event, or the first device directly forwards the message to the second device and causes the second device to start a reminder event, so that when the user does not respond to the message in time, it can send a message to other devices of the user to ensure that the message can be delivered in time to other devices of the user and alert the user.
本申请实施例还提供一种服务器。请参阅图12,服务器800包括处理器801以及存储器802。其中,处理器801与存储器802电性连接。The embodiment of the present application also provides a server. Referring to FIG. 12 , a server 800 includes a processor 801 and a memory 802 . Wherein, the processor 801 is electrically connected with the memory 802 .
所述处理器801是服务器800的控制中心,利用各种接口和线路连接整个服务器的各个部分,通过运行或加载存储在存储器802内的计算机程序,以及调用存储在存储器802内的数据,执行服务器800的各种功能并处理数据,从而对服务器800进行整体监控。The processor 801 is the control center of the server 800. It uses various interfaces and lines to connect various parts of the entire server. By running or loading computer programs stored in the memory 802 and calling data stored in the memory 802, the server is executed. Various functions of the server 800 and process data, so as to monitor the server 800 as a whole.
所述存储器802可用于存储软件程序以及模块,处理器801通过运行存储在存储器802的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器802可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据服务器的使用所创建的数据等。此外,存储器802可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器802还可以包括存储器控制器,以提供处理器801对存储器802的访问。The memory 802 can be used to store software programs and modules, and the processor 801 executes various functional applications and data processing by running the computer programs and modules stored in the memory 802 . The memory 802 can mainly include a program storage area and a data storage area, wherein the program storage area can store operating systems, computer programs required by at least one function (such as sound playback function, image playback function, etc.) and the like; Data etc. created by the use of the server. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 802 may further include a memory controller to provide the processor 801 with access to the memory 802 .
在本申请实施例中,服务器800中的处理器801会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器802中,并由处理器801运行存储在存储器802中的计算机程序,从而实现各种功能,如下:In this embodiment of the application, the processor 801 in the server 800 will follow the steps below to load the instructions corresponding to the process of one or more computer programs into the memory 802, and run and store them in the memory 802 by the processor 801. A computer program to achieve various functions, as follows:
当接收到消息发送请求时,从电子设备集合中确定第一设备和第二设备,其中所述消息发送请求携带待发送的消息以及所述电子设备集合的第一标识,所述第一设备和所述第二设备均绑定所述第一标识;When a message sending request is received, a first device and a second device are determined from the set of electronic devices, wherein the message sending request carries a message to be sent and a first identifier of the set of electronic devices, the first device and the second device The second device is bound to the first identifier;
向所述第一设备发送第一信息,其中所述第一信息携带所述消息并且用于指示所述第一设备启动提醒事件;sending first information to the first device, where the first information carries the message and is used to instruct the first device to start a reminder event;
检测所述第一设备是否在预设时长内响应所述提醒事件;Detecting whether the first device responds to the reminder event within a preset time period;
若否,则向所述第二设备发送第二信息,其中所述第二信息携带所述消息并且用于指示所述第二设备启动提醒事件。If not, send second information to the second device, where the second information carries the message and is used to instruct the second device to start a reminder event.
在某些实施方式中,所述处理器801还可以执行以下步骤:In some implementation manners, the processor 801 may also perform the following steps:
根据当前时刻,从所述电子设备集合中确定所述第一设备和所述第二设备。The first device and the second device are determined from the set of electronic devices according to the current moment.
在某些实施方式中,所述处理器801还可以执行以下步骤:In some implementation manners, the processor 801 may also perform the following steps:
获取所述电子设备集合中每一电子设备响应在先发送的消息的历史响应记录;Obtaining a historical response record of each electronic device in the electronic device set responding to a previously sent message;
根据所述历史响应记录,将最后一次响应消息的电子设备确定为第一设备,或者将响应在先发送的消息的次数最多的电子设备确定为第一设备;According to the historical response record, determine the electronic device that responded to the message last time as the first device, or determine the electronic device that responded to the message sent earlier as the first device;
将所述电子设备集合中除了所述确定的第一设备之外的其他电子设备确定为第二设备。Determining other electronic devices in the set of electronic devices except the determined first device as second devices.
在某些实施方式中,所述处理器801还可以执行以下步骤:In some implementation manners, the processor 801 may also perform the following steps:
获取所述电子设备集合中每一电子设备与所述服务器进行交互的历史交互数据;Obtain historical interaction data of each electronic device in the electronic device set interacting with the server;
根据所述历史交互数据,将最后一次与所述服务器进行交互的电子设备确定为第一设备;determining the electronic device that interacted with the server last time as the first device according to the historical interaction data;
将所述电子设备集合中除了所述确定的第一设备之外的其他电子设备确定为第二设备。Determining other electronic devices in the set of electronic devices except the determined first device as second devices.
在某些实施方式中,所述处理器801还可以执行以下步骤:In some implementation manners, the processor 801 may also perform the following steps:
根据当前时刻,从所述第二设备中确定目标设备;determining a target device from the second device according to the current moment;
向所述目标设备发送第二信息。Send second information to the target device.
由上述可知,本申请实施例的服务器,将通过第一标识建立关系的多个电子设备区分为第一设备和第二设备,先向第一设备发送消息,即先向用户常用的或者预设的设备发送消息并使第一设备启动提醒事件,可以避免多个设备同时接收到消息并触发相应的提醒事件而带来的干扰和噪音;当第一设备在预设时长内没有响应消息时,服务器再向第二设备发送消息并使第二设备启动提醒事件,即在用户没有及时响应消息时,服务器向用户的其他设备发送消息,可以确保消息能够及时地发送到用户的其他设备并向用户发出提醒。It can be seen from the above that the server in the embodiment of the present application distinguishes multiple electronic devices that establish a relationship through the first identifier into the first device and the second device, and first sends a message to the first device, that is, first sends a message to the user's commonly used or preset The device sends a message and enables the first device to start a reminder event, which can avoid the interference and noise caused by multiple devices receiving the message at the same time and triggering the corresponding reminder event; when the first device does not respond to the message within the preset time period, The server then sends a message to the second device and enables the second device to start a reminder event, that is, when the user does not respond to the message in time, the server sends a message to the user's other device, which can ensure that the message can be sent to the user's other device in time and notify the user Send a reminder.
本申请实施例还提供一种电子设备。请参阅图13,电子设备900包括处理器901以及存储器902。其中,处理器901与存储器902电性连接。The embodiment of the present application also provides an electronic device. Referring to FIG. 13 , an electronic device 900 includes a processor 901 and a memory 902 . Wherein, the processor 901 is electrically connected with the memory 902 .
所述处理器901是电子设备900的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器902内的计算机程序,以及调用存储在存储器902内的数据,执行电子设备900的各种功能并处理数据,从而对电子设备900进行整体监控。The processor 901 is the control center of the electronic device 900, using various interfaces and lines to connect various parts of the entire electronic device, by running or loading computer programs stored in the memory 902, and calling data stored in the memory 902, Execute various functions of the electronic device 900 and process data, thereby monitoring the electronic device 900 as a whole.
所述存储器902可用于存储软件程序以及模块,处理器901通过运行存储在存储器902的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器902可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器902可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器902还可以包括存储器控制器,以提供处理器901对存储器902的访问。The memory 902 can be used to store software programs and modules, and the processor 901 executes various functional applications and data processing by running the computer programs and modules stored in the memory 902 . The memory 902 can mainly include a program storage area and a data storage area, wherein the program storage area can store operating systems, computer programs required by at least one function (such as sound playback function, image playback function, etc.); Data created by the use of electronic devices, etc. In addition, the memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 902 may further include a memory controller to provide the processor 901 with access to the memory 902 .
在本申请实施例中,电子设备900中的处理器901会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器902中,并由处理器901运行存储在存储器902中的计算机程序,从而实现各种功能,如下:In the embodiment of the present application, the processor 901 in the electronic device 900 will follow the steps below to load the instructions corresponding to the process of one or more computer programs into the memory 902, and run the instructions stored in the memory 902 by the processor 901. The computer program in the computer, so as to realize various functions, as follows:
当接收到消息时,向服务器发送消息发送请求,其中所述消息发送请求携带待发送的消息以及电子设备集合的第一标识,所述电子设备集合包括第一设备和第二设备,并且所述第一设备和第二设备均绑定所述第一标识;When receiving a message, send a message sending request to the server, where the message sending request carries the message to be sent and the first identifier of the electronic device set, the electronic device set includes the first device and the second device, and the Both the first device and the second device are bound to the first identifier;
若所述服务器指示所述电子设备为第一设备,则启动提醒事件;If the server indicates that the electronic device is the first device, then start a reminder event;
检测所述提醒事件是否在预设时长内获得响应;Detecting whether the reminder event is responded within a preset time period;
若否,则向所述服务器发送第三信息,或者向所述第二设备发送第四信息,其中所述第三信息用于指示所述服务器向所述第二设备发送第二信息,所述第二信息和所述第四信息均携带所述消息并且用于指示所述第二设备启动提醒事件。If not, send third information to the server, or send fourth information to the second device, where the third information is used to instruct the server to send second information to the second device, the Both the second information and the fourth information carry the message and are used to instruct the second device to start a reminder event.
在某些实施方式中,所述处理器901还可以执行以下步骤:In some implementation manners, the processor 901 may also perform the following steps:
若所述服务器指示所述电子设备为第二设备,则不启动提醒事件。If the server indicates that the electronic device is the second device, no reminder event is initiated.
请一并参阅图14,在某些实施方式中,电子设备900还可以包括:显示器903、射频电路904、音频电路905以及电源906。其中,其中,显示器903、射频电路904、音频电路905以及电源906分别与处理器901电性连接。Please also refer to FIG. 14 , in some implementation manners, the electronic device 900 may further include: a display 903 , a radio frequency circuit 904 , an audio circuit 905 and a power supply 906 . Wherein, the display 903 , the radio frequency circuit 904 , the audio circuit 905 and the power supply 906 are respectively electrically connected to the processor 901 .
所述显示器903可以用于显示由用户输入的信息或提供给用户的信息以及各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示器903可以包括显示面板,在某些实施方式中,可以采用液晶显示器(英文:Liquid CrystalDisplay,缩写:LCD)、或者有机发光二极管(英文:Organic Light-Emitting Diode,缩写:OLED)等形式来配置显示面板。The display 903 may be used to display information input by or provided to the user and various graphical user interfaces, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. The display 903 may include a display panel, and in some implementation manners, it may be configured in the form of a liquid crystal display (English: Liquid Crystal Display, abbreviated: LCD) or an organic light-emitting diode (English: Organic Light-Emitting Diode, abbreviated: OLED) display panel.
所述射频电路904可以用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。The radio frequency circuit 904 can be used to send and receive radio frequency signals to establish wireless communication with network equipment or other electronic equipment through wireless communication, and to send and receive signals with network equipment or other electronic equipment.
所述音频电路905可以用于通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 905 can be used to provide an audio interface between the user and the electronic device through a speaker or a microphone.
所述电源906可以用于给电子设备900的各个部件供电。在一些实施例中,电源906可以通过电源管理系统与处理器901逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power supply 906 can be used to supply power to various components of the electronic device 900 . In some embodiments, the power supply 906 may be logically connected to the processor 901 through a power management system, so as to implement functions such as charging, discharging, and power consumption management through the power management system.
尽管图14中未示出,电子设备900还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 14 , the electronic device 900 may also include a camera, a Bluetooth module, etc., which will not be repeated here.
本申请实施例还提供一种存储介质,所述存储介质存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述任一实施例中的消息发送方法,比如:The embodiment of the present application also provides a storage medium, the storage medium stores a computer program, and when the computer program is run on the computer, the computer is made to execute the message sending method in any of the above embodiments, such as:
在本申请实施例中,所述存储介质可以是磁碟、光盘、只读存储器(英文:ReadOnly Memory,缩写:ROM)、或者随机存取记忆体(英文:Random Access Memory,缩写:RAM)等。In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a read-only memory (English: ReadOnly Memory, abbreviated: ROM), or a random access memory (English: Random Access Memory, abbreviated: RAM), etc. .
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
需要说明的是,对本申请实施例的所述消息发送方法而言,本领域普通测试人员可以理解实现本申请实施例所述消息发送方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在服务器或电子设备的存储器中,并被该服务器或电子设备内的至少一个处理器执行,在执行过程中可包括如所述消息发送方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。It should be noted that, for the message sending method of the embodiment of the present application, ordinary testers in the field can understand that all or part of the process of implementing the message sending method of the embodiment of the present application can be controlled by a computer program. hardware, the computer program can be stored in a computer-readable storage medium, such as stored in the memory of a server or an electronic device, and executed by at least one processor in the server or electronic device, during execution The process of the embodiment of the message sending method may be included. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, and the like.
对本申请实施例的所述消息发送装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the message sending device in the embodiment of the present application, its various functional modules may be integrated into one processing chip, or each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium, such as read-only memory, magnetic disk or optical disk, etc. .
以上对本申请实施例所提供的一种消息发送方法、装置、存储介质、服务器及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。A message sending method, device, storage medium, server, and electronic equipment provided by the embodiments of the present application have been described above in detail. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application. The above embodiments The description is only used to help understand the method of the present application and its core idea; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation and scope of application. In summary, The contents of this specification should not be understood as limiting the application.
Claims (18)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710644142.5A CN107483319A (en) | 2017-07-31 | 2017-07-31 | Message sending method, device, storage medium, server and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710644142.5A CN107483319A (en) | 2017-07-31 | 2017-07-31 | Message sending method, device, storage medium, server and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107483319A true CN107483319A (en) | 2017-12-15 |
Family
ID=60597544
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710644142.5A Pending CN107483319A (en) | 2017-07-31 | 2017-07-31 | Message sending method, device, storage medium, server and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107483319A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108683791A (en) * | 2018-03-22 | 2018-10-19 | 北京小米移动软件有限公司 | Information prompting method and device |
CN108766422A (en) * | 2018-04-02 | 2018-11-06 | 青岛海尔科技有限公司 | Response method, device, storage medium and the computer equipment of speech ciphering equipment |
CN110321481A (en) * | 2019-06-05 | 2019-10-11 | 平安科技(深圳)有限公司 | Information push method, system, computer equipment and storage medium |
CN110889322A (en) * | 2019-10-09 | 2020-03-17 | 深圳市九洲电器有限公司 | Method for preventing sedentary sitting and related product |
CN111127706A (en) * | 2019-11-28 | 2020-05-08 | 深圳指芯物联技术有限公司 | Intelligent lock control method, intelligent lock, cloud server and computing equipment |
CN111800775A (en) * | 2019-04-08 | 2020-10-20 | 中移(苏州)软件技术有限公司 | A beacon message sending method, electronic device and computer storage medium |
CN112688860A (en) * | 2020-12-25 | 2021-04-20 | 天津中新智冠信息技术有限公司 | Message processing method and device, storage medium and electronic equipment |
CN112731363A (en) * | 2020-12-28 | 2021-04-30 | 网银在线(北京)科技有限公司 | Method, device, equipment and storage medium for detecting nearby equipment |
CN112887483A (en) * | 2021-01-14 | 2021-06-01 | 华为技术有限公司 | Event reminding method and electronic equipment |
CN113162958A (en) * | 2020-01-23 | 2021-07-23 | 腾讯科技(深圳)有限公司 | Method, device and equipment for intelligently pushing message and storage medium |
WO2023216908A3 (en) * | 2022-05-07 | 2024-04-04 | 华为技术有限公司 | Message pushing method, and electronic device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103973786A (en) * | 2014-05-07 | 2014-08-06 | 惠州Tcl移动通信有限公司 | Synchronization method for notification messages of electronic device and electronic device |
CN104967557A (en) * | 2015-05-28 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Communication message sending method and device |
CN105704307A (en) * | 2016-01-13 | 2016-06-22 | 广东小天才科技有限公司 | Method and system for reminding intelligent terminal message |
CN106296135A (en) * | 2016-08-25 | 2017-01-04 | 广州华多网络科技有限公司 | Event-prompting method, device and terminal |
-
2017
- 2017-07-31 CN CN201710644142.5A patent/CN107483319A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103973786A (en) * | 2014-05-07 | 2014-08-06 | 惠州Tcl移动通信有限公司 | Synchronization method for notification messages of electronic device and electronic device |
CN104967557A (en) * | 2015-05-28 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Communication message sending method and device |
CN105704307A (en) * | 2016-01-13 | 2016-06-22 | 广东小天才科技有限公司 | Method and system for reminding intelligent terminal message |
CN106296135A (en) * | 2016-08-25 | 2017-01-04 | 广州华多网络科技有限公司 | Event-prompting method, device and terminal |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108683791A (en) * | 2018-03-22 | 2018-10-19 | 北京小米移动软件有限公司 | Information prompting method and device |
CN108766422A (en) * | 2018-04-02 | 2018-11-06 | 青岛海尔科技有限公司 | Response method, device, storage medium and the computer equipment of speech ciphering equipment |
CN108766422B (en) * | 2018-04-02 | 2020-09-15 | 青岛海尔科技有限公司 | Voice equipment response method and device, storage medium and computer equipment |
CN111800775A (en) * | 2019-04-08 | 2020-10-20 | 中移(苏州)软件技术有限公司 | A beacon message sending method, electronic device and computer storage medium |
CN111800775B (en) * | 2019-04-08 | 2022-07-01 | 中移(苏州)软件技术有限公司 | A beacon message sending method, electronic device and computer storage medium |
CN110321481A (en) * | 2019-06-05 | 2019-10-11 | 平安科技(深圳)有限公司 | Information push method, system, computer equipment and storage medium |
CN110889322A (en) * | 2019-10-09 | 2020-03-17 | 深圳市九洲电器有限公司 | Method for preventing sedentary sitting and related product |
CN111127706A (en) * | 2019-11-28 | 2020-05-08 | 深圳指芯物联技术有限公司 | Intelligent lock control method, intelligent lock, cloud server and computing equipment |
CN113162958A (en) * | 2020-01-23 | 2021-07-23 | 腾讯科技(深圳)有限公司 | Method, device and equipment for intelligently pushing message and storage medium |
CN112688860A (en) * | 2020-12-25 | 2021-04-20 | 天津中新智冠信息技术有限公司 | Message processing method and device, storage medium and electronic equipment |
CN112688860B (en) * | 2020-12-25 | 2022-07-12 | 天津中新智冠信息技术有限公司 | Message processing method and device, storage medium and electronic equipment |
CN112731363A (en) * | 2020-12-28 | 2021-04-30 | 网银在线(北京)科技有限公司 | Method, device, equipment and storage medium for detecting nearby equipment |
CN112887483A (en) * | 2021-01-14 | 2021-06-01 | 华为技术有限公司 | Event reminding method and electronic equipment |
CN112887483B (en) * | 2021-01-14 | 2023-04-11 | 华为技术有限公司 | Event reminding method and electronic equipment |
WO2023216908A3 (en) * | 2022-05-07 | 2024-04-04 | 华为技术有限公司 | Message pushing method, and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107483319A (en) | Message sending method, device, storage medium, server and electronic equipment | |
JP6228676B2 (en) | Connection state prompting method and apparatus | |
US20150127755A1 (en) | Method and apparatus for checking status of messages in electronic device | |
US20130078958A1 (en) | System and method for managing transient notifications using sensors | |
US12124765B2 (en) | Audio playing method and electronic device | |
JP6251352B2 (en) | Method, apparatus, and system for processing busy line | |
CN107544842A (en) | Application program processing method and device, computer equipment, storage medium | |
CN107562539A (en) | Applied program processing method and device, computer equipment, storage medium | |
US20160286044A1 (en) | Terminal and Recording Method of Terminal | |
CN107450952B (en) | Application control method and device, storage medium and electronic equipment | |
WO2018040813A1 (en) | Audio/video communication method, terminal, server, and storage medium | |
CN110945467B (en) | Disturbance-free method and terminal | |
WO2019024646A1 (en) | Application management and control method, apparatus, and electronic device | |
CN108055404A (en) | Notification reminding method, device, terminal and storage medium | |
WO2020135431A1 (en) | Message urgent reminding method and apparatus, and electronic device | |
CN106341315A (en) | Text message cleaning method, apparatus and mobile terminal | |
CN108334345A (en) | Applied program processing method, device, readable storage medium storing program for executing and mobile terminal | |
CN106126232A (en) | A kind of interface starts method and device | |
WO2019227318A1 (en) | Physical downlink control channel monitoring configuration method and apparatus, physical downlink control channel monitoring method and apparatus, and base station | |
CN105072282A (en) | Incoming call processing method and incoming call processing device | |
CN106713592B (en) | A kind of way of recording and mobile terminal of mobile terminal | |
CN108809894B (en) | A method and terminal for processing an Internet phone | |
WO2013040674A1 (en) | System and method for managing transient notifications using sensors | |
WO2021037228A1 (en) | System application management method and apparatus | |
CN107688498A (en) | Applied program processing method and device, computer equipment, 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171215 |