



技术领域technical field
本发明涉及通信技术领域,特别涉及一种闹钟设置方法和移动终端。The invention relates to the technical field of communication, in particular to an alarm clock setting method and a mobile terminal.
背景技术Background technique
目前,智能终端的应用市场中,闹钟软件均是针对个人定制,设计的目标场景也是针对个人。At present, in the application market of smart terminals, alarm clock software is customized for individuals, and the target scenarios are also designed for individuals.
虽然最近也出现一些具有社交功能的闹钟软件,能够获取与自己闹钟时间一致的用户数据,但也未能实现对其他用户的闹钟进行设置同步。Although some alarm clock software with social functions has appeared recently, which can obtain user data consistent with its own alarm clock time, it has not been able to synchronize the settings of other users' alarm clocks.
另外一些定时提醒的应用,如电子邮件定时发送、定时短信等等,虽然能够在指定时间将提醒信息发送给目标终端,但是需要多次在通讯录中选择目标终端的用户,操作性较差,且只会提醒一次,错过之后不会再提醒。另外,目标终端对于该类提醒只能被动接受,不能主动接受或者主动拒绝。Other regular reminder applications, such as regular sending of e-mails, regular short messages, etc., although the reminder information can be sent to the target terminal at a specified time, the user who needs to select the target terminal in the address book many times has poor operability. And it will only be reminded once, and will not be reminded again if you miss it. In addition, the target terminal can only passively accept such reminders, and cannot actively accept or reject them.
目前应用市场中,都是针对个人需求定制的闹钟应用,未出现为他人设置闹钟的闹钟同步应用。In the current application market, there are all alarm clock applications customized for individual needs, and there is no alarm clock synchronization application that sets alarm clocks for others.
发明内容Contents of the invention
有鉴于此,本发明提供一种闹钟设置方法和移动终端,能够通过移动终端之间的通信实现对作为闹钟被设置者的移动终端闹钟的设置。In view of this, the present invention provides an alarm clock setting method and a mobile terminal, capable of setting the alarm clock of the mobile terminal as the alarm clock setter through communication between the mobile terminals.
为解决上述技术问题,本发明的技术方案是这样实现的:In order to solve the problems of the technologies described above, the technical solution of the present invention is achieved in the following way:
一种闹钟设置方法,应用于包括两个以上移动终端的系统中,所述方法包括:A method for setting an alarm clock, applied to a system comprising more than two mobile terminals, the method comprising:
任一移动终端作为闹钟设置者,确定闹钟被设置者的名单,并将闹钟相关信息发送给所述名单中的闹钟被设置者;在接收到闹钟被设置者发送的闹钟设置成功的消息时,确定该闹钟被设置者成功设置闹钟;Any mobile terminal, as the alarm clock setter, determines the list of the alarm clock setters, and sends the alarm clock related information to the alarm clock setters in the list; when receiving the alarm clock setting success message sent by the alarm clock setter, Make sure that the alarm clock is successfully set by the person who set the alarm clock;
该移动终端作为闹钟被设置者,接收到闹钟相关信息时,根据该闹钟相关信息进行闹钟设置,完成闹钟设置时,向闹钟设置者发送闹钟设置成功的消息。As the alarm clock setter, the mobile terminal sets the alarm clock according to the alarm clock related information when receiving the alarm clock related information, and sends a message that the alarm clock setting is successful to the alarm clock setter when the alarm clock setting is completed.
一种移动终端,该移动终端包括:发送单元、接收确定单元和处理单元;A mobile terminal, comprising: a sending unit, a receiving determination unit, and a processing unit;
所述发送单元,用于本移动终端作为闹钟设置者时,确定闹钟被设置者的名单;并将闹钟相关信息发送给所述确定单元确定的名单中的闹钟被设置者;用于本本移动终端作为闹钟被设置者时,所述处理单元完成闹钟设置时,向闹钟设置者发送闹钟设置成功的消息;The sending unit is used for determining the list of the alarm clock setters when the mobile terminal is the alarm clock setter; and sending the alarm clock related information to the alarm clock setters in the list determined by the determination unit; used for the mobile terminal of the notebook As the person who sets the alarm clock, when the processing unit finishes setting the alarm clock, it sends a message that the alarm clock setting is successful to the alarm clock setter;
所述接收确定单元,用于本移动终端作为闹钟设置者时,在接收到闹钟被设置者发送的闹钟设置成功的消息时,确定该闹钟被设置者成功设置闹钟;用于本移动终端作为闹钟被设置者时,接收闹钟相关信息;The receiving determination unit is used for determining that the alarm clock has been successfully set by the alarm clock setter when the mobile terminal is used as the alarm clock setter when receiving the alarm clock setting success message sent by the alarm clock setter; it is used for the mobile terminal as the alarm clock When set, receive alarm clock related information;
所述处理单元,用于本移动终端作为闹钟设置者时,根据所述接收确定单元接收到的闹钟相关信息进行闹钟设置。The processing unit is used to set the alarm clock according to the alarm clock related information received by the receiving determination unit when the mobile terminal is the alarm clock setter.
综上所述,本发明通过作为闹钟设置者的移动终端将闹钟相关信息,发送给作为闹钟被设置者的移动终端,使闹钟被设置者根据闹钟相关信息进行闹钟的设置,并反馈设置成功的消息给闹钟设置者。能够通过移动终端之间的通信实现对作为闹钟被设置者的移动终端闹钟的设置。In summary, the present invention sends the alarm clock related information to the mobile terminal as the alarm clock setter through the mobile terminal as the alarm clock setter, so that the alarm clock setter can set the alarm clock according to the alarm clock related information, and feedback the successful setting Message to the alarm setter. The setting of the alarm clock of the mobile terminal as the alarm clock setter can be realized through the communication between the mobile terminals.
附图说明Description of drawings
图1为本发明实施例中闹钟设置方法流程示意图;Fig. 1 is a schematic flow chart of an alarm clock setting method in an embodiment of the present invention;
图2为本发明具体实施例中闹钟设置方法流程示意图;Fig. 2 is a schematic flow chart of an alarm clock setting method in a specific embodiment of the present invention;
图3为本发明具体实施例中系统示意图;Fig. 3 is a schematic diagram of the system in a specific embodiment of the present invention;
图4为本发明具体实施例中应用于上述技术的移动终端的结构示意图。Fig. 4 is a schematic structural diagram of a mobile terminal applied to the above technology in a specific embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案及优点更加清楚明白,以下参照附图并举实施例,对本发明所述方案作进一步地详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the solutions of the present invention will be further described in detail below with reference to the accompanying drawings and examples.
本发明实施例中提出一种闹钟设置方法,应用于包括两个以上移动终端的系统中。作为闹钟设置者的移动终端将闹钟相关信息,发送给作为闹钟被设置者的移动终端,使闹钟被设置者根据闹钟相关信息进行闹钟的设置,并反馈设置成功的消息给闹钟设置者。能够通过移动终端之间的通信实现对作为闹钟被设置者的移动终端闹钟的设置。In the embodiment of the present invention, a method for setting an alarm clock is proposed, which is applied to a system including more than two mobile terminals. The mobile terminal as the alarm clock setter sends the alarm clock related information to the mobile terminal as the alarm clock setter, so that the alarm clock setter can set the alarm clock according to the alarm clock related information, and feeds back a successful setting message to the alarm clock setter. The setting of the alarm clock of the mobile terminal as the alarm clock setter can be realized through the communication between the mobile terminals.
本发明具体实施例中的移动终端可以为手机、PAD、平板电脑等能够设置闹钟且具有通信功能的移动终端。The mobile terminal in the specific embodiment of the present invention may be a mobile terminal capable of setting an alarm clock and having a communication function, such as a mobile phone, a PAD, and a tablet computer.
参见图1,图1为本发明实施例中闹钟设置方法流程示意图。具体步骤为:Referring to FIG. 1 , FIG. 1 is a schematic flowchart of a method for setting an alarm clock in an embodiment of the present invention. The specific steps are:
步骤101,系统中的移动终端作为闹钟设置者时,确定闹钟被设置者的名单,并将闹钟相关信息发送给所述名单中的闹钟被设置者;在接收到闹钟被设置者发送的闹钟设置成功的消息时,确定该闹钟被设置者成功设置闹钟。
在一个系统中,任一移动终端既可以作为某个闹钟的闹钟设置者,也可以作为某个闹钟的闹钟被设置者。In one system, any mobile terminal can be both the alarm clock setter and the alarm clock setter of a certain alarm clock.
作为闹钟设置者的移动终端可以设置发送的闹钟相关信息对应的闹钟,也可以不设置发送的闹钟相关信息对应的闹钟。其中,闹钟相关信息包含设置的时间,提醒内容等信息。The mobile terminal as the alarm clock setter may set the alarm clock corresponding to the sent alarm clock related information, or may not set the alarm clock corresponding to the sent alarm clock related information. Wherein, the information related to the alarm clock includes information such as the set time, reminder content, and the like.
确定的闹钟被设置者的名单,可以是用户输入,也可以在移动终端中配置的移动终端的标识中选择。该名单中可以包括一个或多个闹钟被设置者。The list of determined alarm clock setters can be input by the user, or can be selected from the identifiers of the mobile terminal configured in the mobile terminal. The list may include one or more alarm clock setters.
移动终端在发送闹钟相关信息时,至少可以通过两种方式进行发送,具体实现如下:When the mobile terminal sends alarm-related information, it can send it in at least two ways, and the specific implementation is as follows:
第一种,采用网络通信的方式进行闹钟相关信息的发送。The first one is to send the related information of the alarm clock by means of network communication.
该移动终端作为闹钟设置者时,配置作为闹钟被设置者的移动终端的用户标识。其中,用户标识可以为手机号码、移动终端的APP的用户ID等能够唯一标识该移动终端的用户标识。When the mobile terminal is used as the alarm clock setter, the user identification of the mobile terminal as the alarm clock setter is configured. Wherein, the user identifier may be a mobile phone number, a user ID of an APP of the mobile terminal, etc., which can uniquely identify the mobile terminal.
如跟团旅游时,导游所持的移动终端作为闹钟设置者,团员所持的移动终端作为闹钟被设置者。此时,导游所持的移动终端需配置各团员所持的移动终端的用户标识。For example, when traveling with a group, the mobile terminal held by the tour guide is used as the alarm clock setter, and the mobile terminal held by the group members is used as the alarm clock setter. At this time, the mobile terminal held by the tour guide needs to be configured with the user identification of the mobile terminal held by each group member.
作为闹钟设置者的移动终端,需要将闹钟相关信息发送给作为闹钟被设置者的移动终端时,获取这些闹钟被设置者当前的IP地址。各移动终端的IP地址是动态变化的,因此,需根据配置的移动终端的用户标识在服务器上查找闹钟被设置者当前的IP地址。When the mobile terminal as the alarm clock setter needs to send alarm clock related information to the mobile terminal as the alarm clock setters, the current IP addresses of the alarm clock setters are acquired. The IP address of each mobile terminal changes dynamically, therefore, the current IP address of the person whose alarm clock is set needs to be searched on the server according to the configured user identification of the mobile terminal.
各移动终端预先会在服务器上进行注册,服务器存储并实时更新各移动终端的用户标识对应的IP地址。Each mobile terminal will register with the server in advance, and the server stores and updates the IP address corresponding to the user identification of each mobile terminal in real time.
作为闹钟设置者的移动终端对闹钟相关信息进行加密,并将加密后的闹钟相关信息封装为用户数据包协议(User Datagram Protocol,UDP)报文或传输控制协议(Transmission Control Protocol,TCP)报文,发送给确定的名单中的闹钟被设置者;其中,所述UDP报文或TCP报文的目的IP地址为,根据配置的移动终端的用户标识在服务器上获取的该移动终端当前的IP地址。As the alarm clock setter, the mobile terminal encrypts the alarm clock related information, and encapsulates the encrypted alarm clock related information into a User Datagram Protocol (UDP) message or a Transmission Control Protocol (Transmission Control Protocol, TCP) message , sent to the person whose alarm clock is set in the determined list; wherein, the destination IP address of the UDP message or TCP message is the current IP address of the mobile terminal obtained on the server according to the configured user identification of the mobile terminal .
采用数据通信的方式收发闹钟相关信息时,收发相关报文时的端口选择端口大于49151的端口号。端口号0-65535为有效端口号。When data communication is used to send and receive alarm clock related information, the port selection port when sending and receiving related messages is greater than the port number of 49151. Port numbers 0-65535 are valid port numbers.
第二种,采用短信或微信的方式将闹钟相关信息发送。The second method is to send the related information of the alarm clock by SMS or WeChat.
该移动终端作为闹钟设置者时,配置作为闹钟被设置者的移动终端的用户标识。When the mobile terminal is used as the alarm clock setter, the user identification of the mobile terminal as the alarm clock setter is configured.
如果配置的用户标识为电话号码时,采用短信的方式或微信的方式发送;如果配置的用户标识为微信号码时,采用微信的方式发送。If the configured user ID is a phone number, it will be sent by SMS or WeChat; if the configured user ID is a WeChat number, it will be sent by WeChat.
该移动终端作为闹钟设置者,通过配置的作为闹钟设置者的移动终端的用户标识,将闹钟相关信息以短息或微信的形式发送给确定的名单中的闹钟被设置者。The mobile terminal, as the alarm clock setter, sends the alarm clock related information to the alarm clock setters in the determined list in the form of SMS or WeChat through the configured user identification of the mobile terminal as the alarm clock setter.
步骤102,该移动终端作为闹钟被设置者,接收到闹钟相关信息时,根据该闹钟相关信息进行闹钟设置,设置完成时向闹钟设置者发送闹钟设置成功的消息。
由于作为闹钟设置者有两种方式发送闹钟相关信息,那么作为闹钟被设置者接收到的闹钟相关信息的形式也存在两种。接收到不同形式的闹钟相关信息,进行不同的处理,具体处理如下:Since there are two ways for the alarm clock setter to send the alarm clock related information, there are also two forms of the alarm clock related information received by the alarm clock setter. Different forms of alarm clock related information are received and processed differently. The specific processing is as follows:
第一种,如果接收到的是UPD报文或TCP报文时,解封装该UDP报文或TCP报文,并进行相应解密,获得闹钟相关信息,根据该闹钟相关信息进行闹钟设置。The first one is that if a UPD message or a TCP message is received, the UDP message or TCP message is decapsulated, and correspondingly decrypted to obtain alarm clock related information, and the alarm clock is set according to the alarm clock related information.
第二种,如果接收到以短信或微信的形式发送的闹钟相关信息时,读取该短信中的闹钟相关信息,并根据该闹钟相关信息进行闹钟设置。The second method is to read the alarm clock related information in the short message and set the alarm clock according to the alarm clock related information when receiving the alarm clock related information sent in the form of SMS or WeChat.
在具体实现时,移动终端上可以配置授权读取某些用户标识对应的移动终端的短信息或微信。During specific implementation, the mobile terminal may be configured to authorize reading of short messages or WeChat messages of mobile terminals corresponding to certain user identifiers.
本发明具体实现时,实现环境不受区域影响,如作为闹钟设置者的移动终端和作为闹钟被设置者的移动终端不在同一个时区,作为闹钟被设置者的移动终端接收到并获取闹钟相关信息时,需要进行时间换算后,再设置对应的闹钟。When the present invention is actually implemented, the realization environment is not affected by the area. For example, the mobile terminal as the alarm clock setter and the mobile terminal as the alarm clock setter are not in the same time zone, and the mobile terminal as the alarm clock setter receives and acquires alarm clock related information. , you need to convert the time before setting the corresponding alarm clock.
下面结合附图,结合具体实施例详细说明本发明具体实施例中如何实现闹钟设置。参见图2,图2为本发明具体实施例中闹钟设置方法流程示意图。具体步骤为:How to implement the alarm clock setting in specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments. Referring to FIG. 2 , FIG. 2 is a schematic flowchart of a method for setting an alarm clock in a specific embodiment of the present invention. The specific steps are:
步骤201,作为闹钟设置者的移动终端,确定闹钟被设置者的名单。
步骤202,作为闹钟设置者的移动终端,将闹钟相关信息发送给所述名单上的闹钟被设置者。
步骤203,作为闹钟被设置者的移动终端,接收到闹钟相关信息。In
步骤204,作为闹钟被设置者的移动终端,若确定发送该闹钟相关信息的闹钟设置者的信息在所述白名单中,执行步骤208。
步骤205,作为闹钟被设置者的移动终端,若确定发送该闹钟相关信息的闹钟设置者的信息在所述黑名单中,结束本流程。
步骤206,作为闹钟被设置者的移动终端,若发送该闹钟相关信息的闹钟设置者的信息不在黑名单中且不在白名单中时,确定是否允许设置该闹钟相关信息对应的闹钟,如果时,执行步骤207;否则,执行步骤209。
步骤207,作为闹钟被设置者的移动终端,将发送闹钟相关信息的闹钟设置者的信息加入白名单,执行步骤208。In step 207, the mobile terminal, which is the person who sets the alarm clock, adds the information of the alarm clock setter who sends the alarm clock related information to the white list, and executes
在具体实现时,可以给白名单设置时间权限。如跟团旅游,可以设置该白名单的有效权限时间为旅游时间;如会议提醒的白名单,白名单的有效权限时间可以设置为工作日;如果是家庭出行计划等,家庭白名单,可以设置有效权限时间为永久等。During specific implementation, time permissions can be set for the whitelist. If you are traveling with a group, you can set the effective permission time of the white list as the travel time; for the white list of meeting reminders, the valid permission time of the white list can be set to weekdays; if it is a family travel plan, etc., the family white list can be set The effective permission time is permanent and so on.
步骤208,作为闹钟被设置者的移动终端,根据该闹钟相关信息进行闹钟设置,设置完成时向闹钟设置者发送闹钟设置成功的消息。
步骤209,作为闹钟被设置者的移动终端,确定是否将发送闹钟相关信息的闹钟设置者的信息加入黑名单,如果是,执行步骤210;否则,执行步骤211。
步骤210,作为闹钟被设置者的移动终端,将发送闹钟相关信息的闹钟设置者的信息加入黑名单,结束本流程。
步骤211,作为闹钟被设置者的移动终端,向发送闹钟相关信息的闹钟设置者的移动终端发送拒绝消息。In
步骤212,作为闹钟设置者的移动终端,接收到闹钟设置成功的消息时,确定该闹钟被设置者成功设置闹钟,结束本流程。
步骤213,作为闹钟设置者的移动终端,接收到拒绝的消息,或预设时间内未接收到消息时,确定该闹钟被设置者未设置闹钟相关信息对应的闹钟。
参见图3,图3为本发明具体实施例中系统示意图。图3中包括5个移动终端,其中移动终端1作为移动终端2和移动终端3的闹钟设置者,移动终端2作为移动终端4和移动终端5的闹钟设置者,移动终端2和移动终端3相对于移动终端1作为闹钟被设置者,移动终端4和移动终端5相对于移动终端2作为闹钟被设置者。Referring to Fig. 3, Fig. 3 is a schematic diagram of a system in a specific embodiment of the present invention. 3 includes five mobile terminals, wherein mobile terminal 1 is the alarm clock setter of mobile terminal 2 and mobile terminal 3, mobile terminal 2 is the alarm clock setter of mobile terminal 4 and mobile terminal 5, and mobile terminal 2 and mobile terminal 3 are opposite The mobile terminal 1 serves as the alarm clock setter, and the mobile terminal 4 and the mobile terminal 5 serve as the alarm clock setters with respect to the mobile terminal 2 .
移动终端1需要使移动终端2和移动终端3设置一个闹钟时,将闹钟相关信息分别发送给移动终端2和移动终端3。When mobile terminal 1 needs to set an alarm clock for mobile terminal 2 and mobile terminal 3, it sends alarm clock related information to mobile terminal 2 and mobile terminal 3 respectively.
移动终端2接收到移动终端1发送的闹钟相关信息时,若确定本地的白名单中存在移动终端1的信息时,根据该闹钟相关信息进行闹钟设置,并向移动终端1发送闹钟设置成功的消息。When the mobile terminal 2 receives the alarm clock-related information sent by the mobile terminal 1, if it is determined that the information of the mobile terminal 1 exists in the local white list, the alarm clock is set according to the alarm clock related information, and sends a message that the alarm clock is set successfully to the mobile terminal 1 .
若移动终端2确定本地的黑名单中存在移动终端1的信息时,向发送闹钟相关信息的闹钟设置者发送拒绝消息。If the mobile terminal 2 determines that there is information about the mobile terminal 1 in the local blacklist, it sends a rejection message to the alarm clock setter who sent the alarm clock related information.
若移动终端2确定本地黑名单和白名单中均不存在移动终端1的信息时,确定是否允许设置该闹钟相关信息对应的闹钟,如果是,将发送闹钟相关信息的闹钟设置者的信息加入白名单,根据该闹钟相关信息进行闹钟设置,并向移动终端1发送闹钟设置成功的消息;否则,将发送闹钟相关信息的闹钟设置者的信息加入黑名单,并向发送闹钟相关信息的闹钟设置者发送拒绝消息。If mobile terminal 2 determines that there is no information of mobile terminal 1 in the local blacklist and whitelist, determine whether to allow the alarm clock corresponding to the alarm clock related information to be set, if yes, add the information of the alarm clock setter who sends the alarm clock related information to the white list list, set the alarm clock according to the relevant information of the alarm clock, and send a message that the alarm clock setting is successful to the mobile terminal 1; Send a rejection message.
本发明具体实施例中闹钟设置具有可传递性,被同步闹钟相关信息的移动终端在设置闹钟成功时,可以向其他移动终端同步该闹钟相关信息。具体实现过程如下:In the specific embodiment of the present invention, the setting of the alarm clock is transmissible, and the mobile terminal whose alarm clock-related information is synchronized can synchronize the alarm clock-related information to other mobile terminals when the alarm clock is successfully set. The specific implementation process is as follows:
移动终端1接收到移动终端2发送的闹钟设置成功的消息,确定移动终端2成功设置闹钟。接收到移动终端2发送的拒绝消息时,确定移动终端2未设置对应的闹钟。The mobile terminal 1 receives the message that the alarm clock is set successfully sent by the mobile terminal 2, and determines that the mobile terminal 2 successfully sets the alarm clock. When the rejection message sent by the mobile terminal 2 is received, it is determined that the mobile terminal 2 has not set a corresponding alarm clock.
移动终端3接收到闹钟相关信息时,处理过程和移动终端2相似,这里不再详细描述。When the mobile terminal 3 receives the alarm clock-related information, the processing procedure is similar to that of the mobile terminal 2, and will not be described in detail here.
假设该系统中还包括移动终端4和移动终端5,移动终端2上如果配置了根据移动终端1发送的闹钟相关信息设置闹钟时,需将该闹钟相关信息发送给移动终端4和移动终端5,即该移动终端2针对该闹钟相关信息对应的闹钟,存在闹钟被设置者。Assuming that the system also includes a mobile terminal 4 and a mobile terminal 5, if the mobile terminal 2 is configured to set an alarm clock according to the alarm clock related information sent by the mobile terminal 1, the alarm clock related information needs to be sent to the mobile terminal 4 and the mobile terminal 5, That is, the mobile terminal 2 has an alarm clock setter for the alarm clock corresponding to the alarm clock related information.
移动终端2将移动终端1发送的闹钟相关信息,分别发送给移动终端4和移动终端5。移动终端4和移动终端5接收到闹钟相关信息后,处理过程同移动终端2类似,只是交互对象是同移动终端2,而不是移动终端1。The mobile terminal 2 sends the alarm clock-related information sent by the mobile terminal 1 to the mobile terminal 4 and the mobile terminal 5 respectively. After the mobile terminal 4 and the mobile terminal 5 receive the relevant information of the alarm clock, the processing process is similar to that of the mobile terminal 2, except that the interactive object is the same as the mobile terminal 2 instead of the mobile terminal 1.
这种实现可应用的场景为分层、分组管理。如一个大的导游团,一个团长,5个组长。团长所持的移动终端为上述实例中的移动终端1,5个组长中的一个组长所持的移动终端为移动终端2;该组长的所管理的组员所持的移动终端为移动终端4和移动终端5。The applicable scenarios for this implementation are hierarchical and group management. Such as a large tour guide group, one group leader, five group leaders. The mobile terminal held by the group leader is mobile terminal 1 in the above example, and the mobile terminal held by one of the five group leaders is mobile terminal 2; the mobile terminal held by the team members managed by the group leader is mobile terminal 4 and mobile terminal 5.
本发明具体实施例中,闹钟设置过程还具有延迟性。具体实现如下:In a specific embodiment of the present invention, the alarm clock setting process also has a delay. The specific implementation is as follows:
移动终端1在向移动终端2和移动终端3发送闹钟相关信息时,还可携带上延时设置闹钟相关信息对应的闹钟的延时时间。When the mobile terminal 1 sends the alarm clock related information to the mobile terminal 2 and the mobile terminal 3, it may also carry the delay time of the alarm clock corresponding to the alarm clock related information.
移动终端2和移动终端3接收到闹钟相关信息时,在延时时间到时再根据闹钟相关信息进行闹钟设置。When the mobile terminal 2 and the mobile terminal 3 receive the relevant information of the alarm clock, they will set the alarm clock according to the relevant information of the alarm clock when the delay time expires.
在具体实现时,闹钟设置者还可以发送信息修改已设置的闹钟,或删除已设置的闹钟。以修改已设置的闹钟为例:In actual implementation, the alarm clock setter can also send a message to modify the set alarm clock, or delete the set alarm clock. Take modifying the alarm clock that has been set as an example:
移动终端1若需要修改已设置在移动终端2和移动终端3上的闹钟时,向移动终端2和移动终端3发送修改对应闹钟的闹钟相关信息。If the mobile terminal 1 needs to modify the alarm clocks that have been set on the mobile terminal 2 and the mobile terminal 3, it will send the alarm clock related information for modifying the corresponding alarm clocks to the mobile terminal 2 and the mobile terminal 3.
移动终端2接收到修改闹钟的闹钟相关信息时,使用该修改闹钟的闹钟相关信息,修改本地已设置的相关闹钟;并向移动终端4和移动终端5发送修改闹钟的闹钟相关信息。When the mobile terminal 2 receives the alarm clock related information for modifying the alarm clock, it uses the alarm clock related information for modifying the alarm clock to modify the related alarm clock that has been set locally; and sends the alarm clock related information for modifying the alarm clock to the mobile terminal 4 and mobile terminal 5.
移动终端3、移动终端4和移动终端5的处理过程同移动终端2的处理过程类似,不再详细描述。The processing procedures of the mobile terminal 3 , the mobile terminal 4 and the mobile terminal 5 are similar to the processing procedures of the mobile terminal 2 and will not be described in detail.
基于同样的发明构思,本申请还提出一种移动终端。参见图4,图4为本发明具体实施例中应用于上述技术的移动终端的结构示意图。该移动终端包括:发送单元401、接收确定单元402和处理单元403。Based on the same inventive concept, this application also proposes a mobile terminal. Referring to FIG. 4 , FIG. 4 is a schematic structural diagram of a mobile terminal applied to the above technology in a specific embodiment of the present invention. The mobile terminal includes: a sending
发送单元401,用于本移动终端作为闹钟设置者时,确定闹钟被设置者的名单;并将闹钟相关信息发送给所述确定单元确定的名单中的闹钟被设置者;用于本本移动终端作为闹钟被设置者时,处理单元403完成闹钟设置时,向闹钟设置者发送闹钟设置成功的消息。The sending
接收确定单元402,用于本移动终端作为闹钟设置者时,在接收到闹钟被设置者发送的闹钟设置成功的消息时,确定该闹钟被设置者成功设置闹钟;用于本移动终端作为闹钟被设置者时,接收闹钟相关信息。The receiving
处理单元403,用于本移动终端作为闹钟设置者时,根据接收确定单元402接收到的闹钟相关信息进行闹钟设置。The
较佳地,Preferably,
接收确定单元402,进一步用于本移动终端作为闹钟被设置者时,在接收到闹钟相关信息之后,确定是否允许设置该闹钟相关信息对应的闹钟;确定是否将发送闹钟相关信息的闹钟设置者的信息加入黑名单;用于本移动终端作为闹钟设置者时,接收到闹钟被设置者发送的拒绝消息,或预设时间内未接收到闹钟成功设置的消息时,确定该闹钟被设置者未设置该闹钟相关信息对应的闹钟。The receiving
处理单元403,进一步用于若接收确定单元402确定是允许设置该闹钟相关信息对应的闹钟时,将发送闹钟相关信息的闹钟设置者的信息加入白名单,并执行所述根据该闹钟相关信息进行闹钟设置的操作;若所述确定单元确定将发送闹钟相关信息的闹钟设置者的信息加入黑名单时,将发送闹钟相关信息的闹钟设置者的信息加入黑名单。The
发送单元401,进一步用于本移动终端作为闹钟被设置者,且接收确定单元402确定不将发送闹钟相关信息的闹钟设置者的信息加入黑名单时,向发送闹钟相关信息的闹钟设置者发送拒绝消息。The sending
较佳地,Preferably,
接收确定单元402,进一步用于本移动终端作为闹钟被设置者时,在确定是否允许设置该闹钟相关信息对应的闹钟之前,确定发送该闹钟相关信息的闹钟设置者的信息是否在所述白名单中,是否在所述黑名单中。The receiving
处理单元403,进一步用于当接收确定单元402确定发送该闹钟相关信息的闹钟设置者的信息在所述白名单中时,执行根据该闹钟相关信息进行闹钟设置的操作;若接收确定单元402确定发送该闹钟相关信息的闹钟设置者的信息在所述黑名单中,结束操作;若确定发送该闹钟相关信息的闹钟设置者的信息不在所述白名单中,且不在所述黑名单中,执行所述确定是否允许设置该闹钟相关信息对应的闹钟,及后续操作。The
较佳地,该移动终端进一步包括:配置单元404。Preferably, the mobile terminal further includes: a
配置单元404,用于本移动终端作为闹钟设置者时,配置作为闹钟被设置者的移动终端的用户标识。The
发送单元401,具体用于对闹钟相关信息进行加密,并将加密后的闹钟相关信息封装为UDP报文或TCP报文,发送给作为闹钟被设置者的移动终端;其中,所述UDP报文或TCP报文的目的IP地址为,根据配置单元404配置的移动终端的用户标识在服务器上获取的该移动终端的IP地址。The sending
接收确定单元402,具体用于接收到UDP报文或TCP报文时,解封装该UDP报文或TCP报文,并进行相应的解密,获得闹钟相关信息,根据该闹钟相关信息进行闹钟设置。The receiving
较佳地,该移动终端进一步包括:配置单元404。Preferably, the mobile terminal further includes: a
配置单元404,用于本移动终端作为闹钟设置者时,配置作为闹钟被设置者的移动终端的用户标识。The
发送单元401,具体用于通过配置单元404配置的作为闹钟设置者的移动终端的用户标识,将闹钟相关信息以短息或微信的形式发送给所述名单中的闹钟被设置者对应的移动终端。The sending
接收确定单元402,具体用于接收以短息或微信的形式发送的闹钟相关信息时,读取该短信中的闹钟相关信息,并根据该闹钟相关信息进行闹钟设置。The
较佳地,Preferably,
接收确定单元402,进一步用于本移动终端作为闹钟被设置者,在处理单元403根据该闹钟相关信息进行闹钟设置时,确定本移动终端针对该闹钟相关信息对应的闹钟,是否存在闹钟被设置者。The
发送单元401,进一步用于本移动终端作为闹钟被设置者,且在所述接收单元确定本移动终端针对该闹钟相关信息对应的闹钟,存在闹钟被设置者时,将该闹钟相关信息送给本移动终端对应的闹钟被设置者进行闹钟设置。The sending
较佳地,Preferably,
发送单元401,进一步用于本移动终端作为闹钟设置者,在向作为闹钟被设置者发送闹钟相关信息时,携带延时设置该闹钟相关信息对应的闹钟的延时时间。The sending
处理单元403,进一步用于本移动终端作为闹钟被设置者,在确定根据接收到闹钟相关信息设置闹钟时,在接收的闹钟相关信息中携带的延时时间到时再根据闹钟相关信息进行闹钟设置。The
上述实施例的单元可以集成于一体,也可以分离部署;可以合并为一个单元,也可以进一步拆分成多个子单元。The units in the above embodiments can be integrated or deployed separately; they can be combined into one unit, or can be further split into multiple sub-units.
综上所述,本发明通过作为闹钟设置者的移动终端将闹钟相关信息,发送给作为闹钟被设置者的移动终端,使闹钟被设置者根据闹钟相关信息进行闹钟的设置,并反馈设置成功的消息给闹钟设置者。能够通过移动终端之间的通信实现对作为闹钟被设置者的移动终端闹钟的设置。In summary, the present invention sends the alarm clock related information to the mobile terminal as the alarm clock setter through the mobile terminal as the alarm clock setter, so that the alarm clock setter can set the alarm clock according to the alarm clock related information, and feedback the successful setting Message to the alarm setter. The setting of the alarm clock of the mobile terminal as the alarm clock setter can be realized through the communication between the mobile terminals.
本发明具体实施例中利用网络通信,使移动终端之间实现了闹钟的同步,为移动终端的使用者提供了功能完善的闹钟解决方案,满足了使用者在出行、工作、生活中遇到的各类闹钟需求,为使用者提供了便利,同时也提升了移动终端的使用价值。In the specific embodiment of the present invention, network communication is used to realize the synchronization of alarm clocks between mobile terminals, providing a fully functional alarm clock solution for mobile terminal users, and meeting the needs of users in travel, work and life. The demand for various alarm clocks provides convenience for users, and also improves the use value of mobile terminals.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310509016.0ACN103561379A (en) | 2013-10-24 | 2013-10-24 | Alarm clock setting method and mobile terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310509016.0ACN103561379A (en) | 2013-10-24 | 2013-10-24 | Alarm clock setting method and mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN103561379Atrue CN103561379A (en) | 2014-02-05 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310509016.0APendingCN103561379A (en) | 2013-10-24 | 2013-10-24 | Alarm clock setting method and mobile terminal |
| Country | Link |
|---|---|
| CN (1) | CN103561379A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104468990A (en)* | 2014-11-22 | 2015-03-25 | 广东欧珀移动通信有限公司 | Alarm clock setting method and terminal |
| CN104580706A (en)* | 2014-12-17 | 2015-04-29 | 惠州Tcl移动通信有限公司 | Mobile terminal and reserve information processing method based on instant message |
| CN105306704A (en)* | 2015-10-10 | 2016-02-03 | 陆俊 | Mobile terminal alarm clock control method and mobile terminal |
| CN105516222A (en)* | 2014-09-24 | 2016-04-20 | 小米科技有限责任公司 | Prompting method and device |
| CN105812546A (en)* | 2014-12-30 | 2016-07-27 | Tcl集团股份有限公司 | Alarm clock control method and alarm clock control device |
| CN105828275A (en)* | 2016-02-02 | 2016-08-03 | 乐卡汽车智能科技(北京)有限公司 | Terminal data sharing method and device |
| CN106055414A (en)* | 2016-05-17 | 2016-10-26 | 珠海市魅族科技有限公司 | Data sharing method and user equipment |
| CN106790993A (en)* | 2016-11-23 | 2017-05-31 | 深圳哈乐派科技有限公司 | A kind of remote prompting method and device |
| CN107277279A (en)* | 2017-07-19 | 2017-10-20 | 河南神州数码索贝科技有限公司 | A kind of terminal alarm clock reminds the method and device set |
| CN107357161A (en)* | 2017-08-30 | 2017-11-17 | 吴清瑶 | Electronic alarm clock and calibration method during a kind of school quick by Quick Response Code |
| CN107809544A (en)* | 2017-11-16 | 2018-03-16 | 珠海格力电器股份有限公司 | Alarm clock reminding method and device |
| CN110049197A (en)* | 2019-05-30 | 2019-07-23 | 涂哲 | A kind of based reminding method and communicating terminal |
| CN114356164A (en)* | 2022-01-05 | 2022-04-15 | 维沃移动通信有限公司 | Sharing method and sharing device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101212733A (en)* | 2006-12-27 | 2008-07-02 | 上海基信通讯技术有限公司 | Method for setting a short message for calendar reminding automatically on mobile telephone |
| CN101315543A (en)* | 2008-06-28 | 2008-12-03 | 黄更 | Network digital alarm clock, long-range control method and signal synchronous transmission method |
| CN102624915A (en)* | 2012-03-23 | 2012-08-01 | 中兴通讯股份有限公司 | A kind of alarm clock cloud service method and system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101212733A (en)* | 2006-12-27 | 2008-07-02 | 上海基信通讯技术有限公司 | Method for setting a short message for calendar reminding automatically on mobile telephone |
| CN101315543A (en)* | 2008-06-28 | 2008-12-03 | 黄更 | Network digital alarm clock, long-range control method and signal synchronous transmission method |
| CN102624915A (en)* | 2012-03-23 | 2012-08-01 | 中兴通讯股份有限公司 | A kind of alarm clock cloud service method and system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105516222A (en)* | 2014-09-24 | 2016-04-20 | 小米科技有限责任公司 | Prompting method and device |
| CN104468990A (en)* | 2014-11-22 | 2015-03-25 | 广东欧珀移动通信有限公司 | Alarm clock setting method and terminal |
| CN104580706A (en)* | 2014-12-17 | 2015-04-29 | 惠州Tcl移动通信有限公司 | Mobile terminal and reserve information processing method based on instant message |
| CN104580706B (en)* | 2014-12-17 | 2019-05-21 | 惠州Tcl移动通信有限公司 | A kind of mobile terminal and the reservation information processing method based on instant message |
| CN105812546A (en)* | 2014-12-30 | 2016-07-27 | Tcl集团股份有限公司 | Alarm clock control method and alarm clock control device |
| CN105812546B (en)* | 2014-12-30 | 2020-11-06 | Tcl科技集团股份有限公司 | Alarm clock control method and alarm clock control device |
| CN105306704B (en)* | 2015-10-10 | 2018-11-23 | 深圳中琛源科技股份有限公司 | Mobile terminal alarm clock control method and mobile terminal |
| CN105306704A (en)* | 2015-10-10 | 2016-02-03 | 陆俊 | Mobile terminal alarm clock control method and mobile terminal |
| CN105828275A (en)* | 2016-02-02 | 2016-08-03 | 乐卡汽车智能科技(北京)有限公司 | Terminal data sharing method and device |
| CN106055414A (en)* | 2016-05-17 | 2016-10-26 | 珠海市魅族科技有限公司 | Data sharing method and user equipment |
| CN106790993A (en)* | 2016-11-23 | 2017-05-31 | 深圳哈乐派科技有限公司 | A kind of remote prompting method and device |
| CN107277279A (en)* | 2017-07-19 | 2017-10-20 | 河南神州数码索贝科技有限公司 | A kind of terminal alarm clock reminds the method and device set |
| CN107357161A (en)* | 2017-08-30 | 2017-11-17 | 吴清瑶 | Electronic alarm clock and calibration method during a kind of school quick by Quick Response Code |
| CN107809544A (en)* | 2017-11-16 | 2018-03-16 | 珠海格力电器股份有限公司 | Alarm clock reminding method and device |
| CN110049197A (en)* | 2019-05-30 | 2019-07-23 | 涂哲 | A kind of based reminding method and communicating terminal |
| CN114356164A (en)* | 2022-01-05 | 2022-04-15 | 维沃移动通信有限公司 | Sharing method and sharing device |
| Publication | Publication Date | Title |
|---|---|---|
| CN103561379A (en) | Alarm clock setting method and mobile terminal | |
| US10412061B2 (en) | Method and system for encrypted communications | |
| JP7086327B2 (en) | Securely transfer user information between applications | |
| US9876772B1 (en) | Encrypting and transmitting data | |
| KR102395799B1 (en) | Method and Apparatus for Supporting Secure Chat | |
| CN105187372B (en) | A kind of data processing method based on mobile application entrance, device and system | |
| WO2021016259A1 (en) | Systems and methods of salutation protocol to communicate using a private overlay peer to peer network | |
| US20170033925A1 (en) | Methods and apparatus for implementing a communications system secured using one-time pads | |
| US9654288B1 (en) | Securing group communications | |
| CN105706416B (en) | User equipment and computer readable medium for network access | |
| CN107211049A (en) | Pre-cache on WAP | |
| US20170374044A1 (en) | Messenger application systems and methods | |
| US10291621B2 (en) | System, information processing apparatus, and storage medium | |
| JP2020526991A (en) | Techniques for multi-agent messaging | |
| JP4897503B2 (en) | Account linking system, account linking method, linkage server device | |
| CN104202736A (en) | Mobile terminal short message end-to-end encryption method oriented to Android system | |
| CN105451298A (en) | Network-sharing method and system, network access method and system, and electronic device | |
| CN104184652B (en) | Method and system for information interaction between terminals | |
| CN112055977A (en) | Service slice activation method, service slice activation device and storage medium | |
| JP2015095896A (en) | Method for encrypting and decrypting file using telephone number | |
| EP4525402A1 (en) | Method, system, and non-transitory computer-readable recording medium for providing messenger service | |
| US9571462B1 (en) | Extensible personality-based messaging system in a distributed computerized infrastructure for establishing a social network | |
| US20120272233A1 (en) | Automatic creating method of group application and couple application | |
| CN105992312A (en) | Wireless network accessing method and system and access point device | |
| CN110460567A (en) | A method and device for identity authentication |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20140205 | |
| RJ01 | Rejection of invention patent application after publication |