CN107566655A - Handle the method and mobile terminal of communication message - Google Patents
Handle the method and mobile terminal of communication message Download PDFInfo
- Publication number
- CN107566655A CN107566655A CN201710901615.5A CN201710901615A CN107566655A CN 107566655 A CN107566655 A CN 107566655A CN 201710901615 A CN201710901615 A CN 201710901615A CN 107566655 A CN107566655 A CN 107566655A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- location information
- speed
- distance
- communication message
- 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
- 238000004891 communication Methods 0.000 title claims abstract description 185
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000012545 processing Methods 0.000 claims abstract description 28
- 238000004590 computer program Methods 0.000 claims description 10
- 230000006870 function Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 9
- 230000033001 locomotion Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本发明提供了一种处理通讯消息的方法及移动终端,涉及移动终端技术领域。所述方法包括:接收第二移动终端的通讯消息,若在接收到所述通讯消息后的第一预设时长内未检测到针对所述通讯消息的回复操作,则获取所述第一移动终端当前所处位置的第一位置信息,将所述第一位置信息发送给所述第二移动终端。本发明能够提高通讯的时效性和可靠性。
The invention provides a method for processing communication messages and a mobile terminal, and relates to the technical field of mobile terminals. The method includes: receiving a communication message from a second mobile terminal, and if no reply operation to the communication message is detected within a first preset time period after receiving the communication message, obtaining the first mobile terminal The first location information of the current location, and sending the first location information to the second mobile terminal. The invention can improve the timeliness and reliability of communication.
Description
技术领域technical field
本发明涉及移动终端技术领域,特别是涉及一种处理通讯消息的方法及移动终端。The invention relates to the technical field of mobile terminals, in particular to a method for processing communication messages and a mobile terminal.
背景技术Background technique
随着科学技术的发展,移动终端的应用也越来越广泛。移动终端通常能够与其它移动终端之间传输通讯消息,从而使用户之间进行通信,比如,拨打电话、发送短信或者其它通讯消息等。所以为了便于移动终端之间进行通讯,亟需一种处理通讯消息的方法。With the development of science and technology, the application of mobile terminals is becoming more and more extensive. Mobile terminals are generally capable of transmitting communication messages with other mobile terminals, so that users can communicate with each other, for example, making calls, sending short messages or other communication messages. Therefore, in order to facilitate communication between mobile terminals, a method for processing communication messages is urgently needed.
现有技术中,当第一移动终端在接收到第二移动终端的通讯消息时,可以基于用户的操作指令,对该通讯消息进行回复,包括接听电话、回复短信等。但如果在接收到该通讯消息时,用户正忙或者其它原因,可能不便于对第一移动终端进行操作,第一移动终端也就难以回复该通讯消息,从而导致通讯的时效性和可靠性较差。In the prior art, when a first mobile terminal receives a communication message from a second mobile terminal, it can reply to the communication message based on a user's operation instruction, including answering a call, replying a short message, and the like. However, if the user is busy or for other reasons when receiving the communication message, it may be inconvenient to operate the first mobile terminal, and it will be difficult for the first mobile terminal to reply to the communication message, resulting in less timeliness and reliability of communication. Difference.
发明内容Contents of the invention
本发明实施例提供一种处理通讯消息的方法及移动终端,以解决在第一移动无法及时向第二移动终端发送回复消息的情况下,因第二移动终端的用户难以感知第一移动终端的用户当前的状态而导致的通讯的时效性和可靠性较差的问题。Embodiments of the present invention provide a method for processing communication messages and a mobile terminal to solve the problem that the user of the second mobile terminal cannot perceive the status of the first mobile terminal when the first mobile cannot send a reply message to the second mobile terminal in time. The problem of poor timeliness and reliability of communication caused by the current state of the user.
为了解决上述技术问题,本发明是这样实现的:In order to solve the problems of the technologies described above, the present invention is achieved in that:
依据本发明的第一方面,提供了一种处理通讯消息的方法,应用于第一移动终端,该方法包括:According to a first aspect of the present invention, a method for processing communication messages is provided, which is applied to a first mobile terminal, and the method includes:
接收第二移动终端的通讯消息;receiving a communication message from the second mobile terminal;
若在接收到所述通讯消息后的第一预设时长内未检测到针对所述通讯消息的回复操作,则获取所述第一移动终端当前所处位置的第一位置信息;If no reply operation to the communication message is detected within a first preset time period after receiving the communication message, acquiring first location information of the current location of the first mobile terminal;
将所述第一位置信息发送给所述第二移动终端。Send the first location information to the second mobile terminal.
依据本发明的第二方面,提供了一种处理通讯消息的方法,应用于第二移动终端,该方法包括:According to a second aspect of the present invention, a method for processing communication messages is provided, which is applied to a second mobile terminal, and the method includes:
向第一移动终端发送通讯消息;sending a communication message to the first mobile terminal;
若在第二预设时长内未接收到所述第一移动终端针对所述通讯消息发送的回复消息,则获取当前所处位置的第二位置信息;If the reply message sent by the first mobile terminal to the communication message is not received within the second preset time period, then obtain the second location information of the current location;
将所述第二位置信息发送给所述第一移动终端,以使所述第一移动终端基于所述第二位置信息反馈所述第一移动终端与所述第二移动终端之间的距离,和/或,所述第一移动终端到达所述第二移动终端当前所处位置的预估时间。sending the second location information to the first mobile terminal, so that the first mobile terminal feeds back the distance between the first mobile terminal and the second mobile terminal based on the second location information, And/or, the estimated time when the first mobile terminal arrives at the current location of the second mobile terminal.
依据本发明的第三方面,提供了一种移动终端,该移动终端包括:According to a third aspect of the present invention, a mobile terminal is provided, and the mobile terminal includes:
第一接收模块,用于接收第二移动终端的通讯消息;The first receiving module is used to receive the communication message of the second mobile terminal;
获取模块,用于若在接收到所述通讯消息后的第一预设时长内未检测到针对所述通讯消息的回复操作,则获取所述第一移动终端当前所处位置的第一位置信息;An acquisition module, configured to acquire first location information of the current location of the first mobile terminal if no reply operation to the communication message is detected within a first preset time period after receiving the communication message ;
第一发送模块,用于将所述第一位置信息发送给所述第二移动终端。A first sending module, configured to send the first location information to the second mobile terminal.
依据本发明的第四方面,提供了一种移动终端,该移动终端包括:According to a fourth aspect of the present invention, a mobile terminal is provided, and the mobile terminal includes:
第一发送模块,用于向第一移动终端发送通讯消息;a first sending module, configured to send a communication message to a first mobile terminal;
获取模块,用于若在第二预设时长内未接收到所述第一移动终端针对所述通讯消息发送的回复消息,则获取当前所处位置的第二位置信息;An acquisition module, configured to acquire the second location information of the current location if the reply message sent by the first mobile terminal to the communication message is not received within a second preset time period;
第二发送模块,用于将所述第二位置信息发送给所述第一移动终端,以使所述第一移动终端基于所述第二位置信息反馈所述第一移动终端与所述第二移动终端之间的距离,和/或,所述第一移动终端到达所述第二移动终端当前所处位置的预估时间。The second sending module is configured to send the second location information to the first mobile terminal, so that the first mobile terminal feeds back the first mobile terminal and the second location information based on the second location information. The distance between the mobile terminals, and/or, the estimated time for the first mobile terminal to arrive at the current location of the second mobile terminal.
依据本发明的第五方面,提供了一种移动终端,该移动终端包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现本发明所述的处理通讯消息的方法的步骤。According to a fifth aspect of the present invention, a mobile terminal is provided, the mobile terminal includes a processor, a memory, and a computer program stored in the memory and operable on the processor, the computer program is controlled by the The processor implements the steps of the method for processing communication messages described in the present invention when executed.
依据本发明的第六方面,提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,计算机程序被处理器执行时实现本发明所述的处理通讯消息的方法的步骤。According to the sixth aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for processing communication messages described in the present invention are implemented.
在本发明实施例中,第一移动终端能够接收第二移动终端的通讯消息,若在接收到该通讯消息后的第一预设时长内未检测到针对该通讯消息的回复操作,则可能第一移动终端的用户当前不便于回复,所以可以获取第一移动终端当前所处位置的第一位置信息,将第一位置信息发送给第二移动终端,以使第二移动终端的用户及时感知第一移动终端的用户所处的位置,避免在难以获取回复时进行不必要的等待,提高了通讯的时效性和可靠性。In the embodiment of the present invention, the first mobile terminal can receive the communication message of the second mobile terminal, if no reply operation for the communication message is detected within the first preset time period after receiving the communication message, then the second mobile terminal may The user of a mobile terminal is currently inconvenient to reply, so the first location information of the current location of the first mobile terminal can be obtained, and the first location information can be sent to the second mobile terminal, so that the user of the second mobile terminal can perceive the first location information in time. The position of the user of the mobile terminal avoids unnecessary waiting when it is difficult to obtain a reply, and improves the timeliness and reliability of communication.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention , for those skilled in the art, other drawings can also be obtained according to these drawings without paying creative labor.
图1示出了本发明实施例一中的一种处理通讯消息的方法的流程图;FIG. 1 shows a flowchart of a method for processing communication messages in Embodiment 1 of the present invention;
图2示出了本发明实施例二中的一种处理通讯消息的方法的流程图;FIG. 2 shows a flowchart of a method for processing communication messages in Embodiment 2 of the present invention;
图3示出了本发明实施例三中的一种处理通讯消息的方法的流程图;FIG. 3 shows a flowchart of a method for processing communication messages in Embodiment 3 of the present invention;
图4示出了本发明实施例三中的一种第一移动终端移动的示意图;FIG. 4 shows a schematic diagram of the movement of a first mobile terminal in Embodiment 3 of the present invention;
图5示出了本发明实施例三中的一种处理通讯消息的方法的流程图;FIG. 5 shows a flow chart of a method for processing communication messages in Embodiment 3 of the present invention;
图6示出了本发明实施例四中的一种第一移动终端的结构框图;FIG. 6 shows a structural block diagram of a first mobile terminal in Embodiment 4 of the present invention;
图7示出了本发明实施例五中的一种第二移动终端的结构框图;FIG. 7 shows a structural block diagram of a second mobile terminal in Embodiment 5 of the present invention;
图8示出了本发明实施例六中的一种移动终端的结构框图。FIG. 8 shows a structural block diagram of a mobile terminal in Embodiment 6 of the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本发明的示例性实施例。虽然附图中显示了本发明的示例性实施例,然而应当理解,本发明可以以各种形式实现而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本发明,并且能够将本发明的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
实施例一Embodiment one
参照图1,示出了本发明实施例一的处理通讯消息的方法流程图,应用于第一移动终端,具体可以包括如下步骤:Referring to FIG. 1 , it shows a flowchart of a method for processing communication messages in Embodiment 1 of the present invention, which is applied to a first mobile terminal, and may specifically include the following steps:
步骤101,接收第二移动终端的通讯消息。Step 101, receiving a communication message from a second mobile terminal.
为了与第二移动终端进行通讯,可以接收来自第二移动终端的通讯消息。In order to communicate with the second mobile terminal, a communication message from the second mobile terminal may be received.
其中,通讯消息可以包括视频或音频等通讯请求,比如电话、其它通讯应用中的视频邀请或者音频邀请;该通讯消息还可以包括短信、其它通讯应用中的消息等。Wherein, the communication message may include a communication request such as video or audio, such as a phone call, a video invitation or an audio invitation in other communication applications; the communication message may also include a short message, a message in other communication applications, and the like.
第一移动终端或第二移动终端可以包括手机、智能手表、智能手环等终端。The first mobile terminal or the second mobile terminal may include terminals such as a mobile phone, a smart watch, and a smart bracelet.
步骤102,若在接收到所述通讯消息后的第一预设时长内未检测到针对所述通讯消息的回复操作,则获取所述第一移动终端当前所处位置的第一位置信息。Step 102, if no reply operation to the communication message is detected within a first preset time period after receiving the communication message, acquire first location information of the current location of the first mobile terminal.
如果第一移动终端在接收到通讯消息后的第一预设时长内,未能接收到用户针对该通讯消息的回复操作,无法回复该通讯消息,则用户当前可能不便于回复该通讯消息,比如正在驾驶或行进中,因此,可以获取当前所处的第一位置信息,以及时将该第一位置信息发送给第二移动终端,从而确保第二移动终端的用户能够在难以获取针对该通讯消息的回复时避免不必要的等待,提高了通讯的时效性和可靠性。If the first mobile terminal fails to receive the user's reply operation on the communication message within the first preset time period after receiving the communication message, and cannot reply to the communication message, it may be inconvenient for the user to reply to the communication message at present, such as is driving or traveling, therefore, the current first location information can be obtained, and the first location information can be sent to the second mobile terminal in time, thereby ensuring that the user of the second mobile terminal can obtain information on the communication message when it is difficult. Avoid unnecessary waiting when replying, and improve the timeliness and reliability of communication.
回复操作用于指示第一移动终端向第二移动终端发送回复消息,包括接通电话、回复短信、接受其它通讯应用中的视频邀请或音频邀请或通过其它通讯应用回复消息等操作。The reply operation is used to instruct the first mobile terminal to send a reply message to the second mobile terminal, including operations such as connecting a phone call, replying a text message, accepting a video invitation or an audio invitation in other communication applications, or replying a message through other communication applications.
第一预设时长可以由第一移动终端事先确定,比如接收用户提交的数值确定等。The first preset duration may be determined in advance by the first mobile terminal, for example, by receiving a numerical value submitted by a user and so on.
例如,第一预设时长可以为10秒。For example, the first preset duration may be 10 seconds.
第一移动终端可以在在接收到第二移动终端的通讯消息之后开始计时,从而对在接收到所述通讯消息后的第一预设时长内,是否检测到回复操作进行判断。The first mobile terminal may start timing after receiving the communication message from the second mobile terminal, so as to judge whether a reply operation is detected within a first preset time period after receiving the communication message.
第一位置信息用于说明第一移动设备当前所处的位置,第一位置信息可以包括经纬度或者由文字构成的地址等。比如,第一位置信息可以包括经度109度、纬度32度,或者,第一位置信息可以包括“A省B市C县D社区123号”The first location information is used to describe the current location of the first mobile device, and the first location information may include latitude and longitude or an address composed of characters. For example, the first location information may include longitude 109 degrees and latitude 32 degrees, or the first location information may include "No. 123, Community D, County C, City B, Province A"
第一移动终端可以通过定位应用或地图应用等来确定当前的第一位置信息,比如,通过GPS(Global Positioning System,全球定位系统)来确定第一位置信息。当然,在实际应用中,第一移动终端可以通过其它方式来确定第一位置信息,比如,可以电信运营商提供的基站进行定位。The first mobile terminal may determine the current first location information through a positioning application or a map application, for example, determine the first location information through a GPS (Global Positioning System, global positioning system). Of course, in practical applications, the first mobile terminal may determine the first location information in other ways, for example, positioning may be performed by a base station provided by a telecommunications operator.
步骤103,将所述第一位置信息发送给所述第二移动终端。Step 103, sending the first location information to the second mobile terminal.
第一移动终端可以基于第一终端对应的用户标识,通过对应的通讯应用,将第一位置消息发送给第二移动终端,比如基于电话号码通过短信将第一位置消息发送给第二移动终端,或者基于其它通讯应用账号,通过其它通讯应用,将第一位置信息发送给第二移动终端。The first mobile terminal may send the first location message to the second mobile terminal through a corresponding communication application based on the user identifier corresponding to the first terminal, for example, send the first location message to the second mobile terminal through a text message based on the phone number, Or based on other communication application accounts, the first location information is sent to the second mobile terminal through other communication applications.
用户标识用户用于标识用户,可以包括用户名称、用户编号等,比如前述中的电话号码或者其它通讯应用账号。当用户通过该用户标识在第一移动终端中登录对应的通讯应用时,该用户标识即与第一移动终端对应。User identification The user is used to identify the user, and may include a user name, a user number, etc., such as the aforementioned phone number or other communication application accounts. When the user logs in the corresponding communication application in the first mobile terminal through the user identifier, the user identifier corresponds to the first mobile terminal.
例如,第一预设时长为10秒,第一移动终端接收到来自第二移动终端的短信后开始计时,且计时达到10秒前未回复该短息,第一移动终端可以获取并得到第一位置信息为“A省B市C县D社区123号”,则第一移动终端向第二移动终端发送短信,该短信中携带“A省B市C县D社区123号”。当第二移动终端接收到该短信时,第二移动终端的用户可以确定第一移动终端的用户当前可能正在路上,不便于回复。也即是,当第一移动终端的用户无法及时与第二移动终端的用户进行沟通时,第一移动终端能够将第一位置信息通知给第二移动终端,从而使第二移动终端的用户得知这一情况,避免无必要的等待,提高了沟通的时效性和可靠性。For example, the first preset time length is 10 seconds, the first mobile terminal starts counting after receiving the short message from the second mobile terminal, and the short message is not replied before the counting reaches 10 seconds, the first mobile terminal can obtain and obtain the first If the location information is "No. 123, Community D, County C, City B, Province A", the first mobile terminal sends a short message to the second mobile terminal, and the text message carries "No. 123, Community D, County C, City B, Province A". When the second mobile terminal receives the short message, the user of the second mobile terminal can determine that the user of the first mobile terminal may be on the road at present, and it is not convenient to reply. That is, when the user of the first mobile terminal cannot communicate with the user of the second mobile terminal in time, the first mobile terminal can notify the second mobile terminal of the first location information, so that the user of the second mobile terminal can obtain Know this situation, avoid unnecessary waiting, and improve the timeliness and reliability of communication.
当然,如果第一移动终端和第二移动终端中安装有两个以上的通讯应用,即第一移动终端和第二移动终端可能分别对应来自不同通讯应用的多个用户标识,第一移动终端在接收到来自第一通讯应用的通讯消息且需要向第二移动终端发送第一位置信息时,可以根据第二移动终端对应的第一用户标识,查找第二移动终端对应的第二用户标识,并基于第二用户标识,通过第二通讯应用将第一位置信息发送给第二移动终端。Certainly, if more than two communication applications are installed in the first mobile terminal and the second mobile terminal, that is, the first mobile terminal and the second mobile terminal may respectively correspond to multiple user identifiers from different communication applications, the first mobile terminal may When a communication message from the first communication application is received and the first location information needs to be sent to the second mobile terminal, the second user identification corresponding to the second mobile terminal can be searched according to the first user identification corresponding to the second mobile terminal, and Based on the second user identifier, the first location information is sent to the second mobile terminal through the second communication application.
第一用户标识可以为用户在第一通讯应用中的用户标识,第二用户标识可以为该用户在第二通讯应用中的用户标识。第一移动终端可以根据第一用户标识,通过第二通讯应用获取该第二用户标识。The first user identifier may be the user identifier of the user in the first communication application, and the second user identifier may be the user identifier of the user in the second communication application. The first mobile terminal may acquire the second user identifier through the second communication application according to the first user identifier.
其中,第一移动终端可以通过第二通讯应用查询与第一用户标识绑定的用户标识,将查询到的用户标识确定为第二用户标识。Wherein, the first mobile terminal may query the user ID bound to the first user ID through the second communication application, and determine the queried user ID as the second user ID.
第二移动终端可以事先向第二通讯应用的服务器发送绑定请求,从而将第二移动终端中用户的第一用户标识和第二用户标识进行绑定。The second mobile terminal may send a binding request to the server of the second communication application in advance, so as to bind the first user ID and the second user ID of the user in the second mobile terminal.
在本发明实施例中,第一移动终端能够接收第二移动终端的通讯消息,若在接收到该通讯消息后的第一预设时长内未检测到针对该通讯消息的回复操作,则可能第一移动终端的用户当前不便于回复,所以可以获取第一移动终端当前所处位置的第一位置信息,将第一位置信息发送给第二移动终端,以使第二移动终端的用户及时感知第一移动终端的用户所处的位置,避免在难以获取回复时进行不必要的等待,提高了通讯的时效性和可靠性。In the embodiment of the present invention, the first mobile terminal can receive the communication message of the second mobile terminal, if no reply operation for the communication message is detected within the first preset time period after receiving the communication message, then the second mobile terminal may The user of a mobile terminal is currently inconvenient to reply, so the first location information of the current location of the first mobile terminal can be obtained, and the first location information can be sent to the second mobile terminal, so that the user of the second mobile terminal can perceive the first location information in time. The position of the user of the mobile terminal avoids unnecessary waiting when it is difficult to obtain a reply, and improves the timeliness and reliability of communication.
实施例二Embodiment two
参照图2,示出了本发明实施例二的处理通讯消息的方法流程图,应用于第二移动终端,具体可以包括如下步骤:Referring to FIG. 2 , it shows a flowchart of a method for processing communication messages according to Embodiment 2 of the present invention, which is applied to a second mobile terminal and may specifically include the following steps:
步骤201,向第一移动终端发送通讯消息。Step 201, sending a communication message to a first mobile terminal.
为了与第一移动终端进行通讯,可以向第一移动终端发送通讯消息。In order to communicate with the first mobile terminal, a communication message may be sent to the first mobile terminal.
步骤202,若在第二预设时长内未接收到所述第一移动终端针对所述通讯消息发送的回复消息,则获取当前所处位置的第二位置信息。Step 202, if no reply message sent by the first mobile terminal in response to the communication message is received within a second preset time period, then acquire second location information of the current location.
如果在第二预设时长内未接收到第一移动终端针对通讯消息发送的回复消息,则说明第一移动终端的用户当前可能不便于回复该通讯消息,因此,为了便于获取得到与第一移动终端之间的距离,和/或,为了便于获取得到第一移动终端可能到达第二移动终端当前所处位置的时长,从而使第二移动终端的用户对第一移动终端的用户当前的位置或状态进行评估,进而确定是否再次向第一移动终端发送通讯消息,或者等待与第一移动终端的用户会面等,减少了因无法及时接收到第一移动终端的回复而导致的通讯的时效性和可靠性较低的问题。If no reply message sent by the first mobile terminal for the communication message is received within the second preset time period, it means that the user of the first mobile terminal may not be convenient to reply to the communication message at present. The distance between the terminals, and/or, in order to obtain the time length during which the first mobile terminal may arrive at the current location of the second mobile terminal, so that the user of the second mobile terminal is aware of the current location of the user of the first mobile terminal or Evaluate the state, and then determine whether to send a communication message to the first mobile terminal again, or wait to meet with the user of the first mobile terminal, etc., which reduces the timeliness and timeliness of communication caused by the inability to receive the reply of the first mobile terminal in time. low reliability issues.
第二移动终端确定第二预设时长的方式,可以与第一移动终端确定第一预设时长的方式相似,此处不再一一赘述。The manner in which the second mobile terminal determines the second preset duration may be similar to the manner in which the first mobile terminal determines the first preset duration, which will not be repeated here.
其中,由于通讯消息或者针对该通讯消息的回复在传输的过程中通常会占用一部分时间,所以第二预设时长可以大于第一预设时长,比如,第二预设时长可以比第一预设时长大2秒或3秒等。Wherein, since the communication message or the reply to the communication message usually takes a part of time during transmission, the second preset duration may be longer than the first preset duration, for example, the second preset duration may be longer than the first preset duration. The duration is 2 seconds or 3 seconds, etc.
第二移动终端可以在发送该通讯消息之后计时,从而对是否在第二预设时长内接收到第一移动终端针对通讯消息发送的回复消息进行判断。The second mobile terminal may count time after sending the communication message, so as to judge whether the reply message sent by the first mobile terminal for the communication message is received within the second preset time period.
第二移动终端在向第一移动终端发送通讯消息之后,如果该通讯消息为电话、其它通讯应用的视频邀请或音频邀请,则当电话接通、视频或音频邀请被接受时,可以确定接收到针对该通讯消息的回复消息;如果该通讯消息为短信或者其它通讯应用的消息,可以在通过对应通讯应用接收到针对该通讯应用的消息回复的消息时,确定接收到针对该通讯消息的回复消息。After the second mobile terminal sends a communication message to the first mobile terminal, if the communication message is a phone call or a video invitation or audio invitation for other communication applications, when the phone call is connected and the video or audio invitation is accepted, it can be determined that the invitation has been received. A reply message for the communication message; if the communication message is a short message or a message of other communication applications, it can be determined that a reply message for the communication message is received when a message replying to the message of the communication application is received through the corresponding communication application .
例如,第二移动终端通过电话号码向第一移动终端拨打电话,该电话被接通或者该电话未被接通但基于该电话号码接收到短信回复,则确定接收到针对该电话的回复消息。或者,第二移动终端通过电话号码向第一移动重终端发送短信,基于该电话号码接收到短信回复,则确定接收该针对该短信的回复消息。For example, if the second mobile terminal makes a call to the first mobile terminal through the phone number, if the call is connected or the call is not connected but a text message reply is received based on the phone number, then it is determined that a reply message for the call is received. Alternatively, the second mobile terminal sends a short message to the first mobile heavy terminal through the phone number, and if the phone number receives a reply to the short message, it determines to receive the reply message to the short message.
当然,在实际应用中,第二移动终端在基于第一移动终端的用户的第一用户标识,通过第一通讯应用向第一移动终端发送通讯消息之后,如果基于第一移动终端的用户的第二用户标识,通过第二通讯应用接收到来自第一移动终端的用户的通讯消息时,也可以确定接收到针对该通讯消息的回复消息。其中,第二用户标识与第一用户标识绑定。Of course, in practical applications, after the second mobile terminal sends a communication message to the first mobile terminal through the first communication application based on the first user ID of the user of the first mobile terminal, if based on the first user ID of the user of the first mobile terminal, Two user identification, when a communication message from the user of the first mobile terminal is received through the second communication application, it may also be determined that a reply message to the communication message is received. Wherein, the second user ID is bound with the first user ID.
例如,第二移动终端通过电话号码向第一移动终端拨打电话,该电话未被接通,但第二移动终端基于与该电话号码绑定的微博账号,接收到来自微博应用的消息,则确定接收到针对该电话的回复消息。For example, the second mobile terminal makes a call to the first mobile terminal through the phone number, but the call is not connected, but the second mobile terminal receives a message from the Weibo application based on the Weibo account bound to the phone number, Then it is determined that the reply message for the phone call is received.
第二位置信息的形式可以与第一位置信息的形式相同,且第二移动终端确定第二位置信息的方式可以与第一移动终端确定第一位置信息的方式相同,此处不再一一赘述。The form of the second location information may be the same as that of the first location information, and the second mobile terminal may determine the second location information in the same manner as the first mobile terminal determines the first location information, and details will not be repeated here. .
步骤203,将所述第二位置信息发送给所述第一移动终端,以使所述第一移动终端基于所述第二位置信息反馈所述第一移动终端与所述第二移动终端之间的距离,和/或,所述第一移动终端到达所述第二移动终端当前所处位置的预估时间。Step 203, sending the second location information to the first mobile terminal, so that the first mobile terminal feeds back the information between the first mobile terminal and the second mobile terminal based on the second location information distance, and/or, the estimated time for the first mobile terminal to arrive at the current location of the second mobile terminal.
第二移动终端将第二位置信息发送给第一移动终端的方式,可以与第一移动终端将第一位置信息发送给第二移动终端的方式相同,此处不再一一赘述。The manner in which the second mobile terminal sends the second location information to the first mobile terminal may be the same as the manner in which the first mobile terminal sends the first location information to the second mobile terminal, which will not be repeated here.
距离可以包括第一距离和第二距离,其中,第一距离指第一移动终端所处的位置与第二移动终端所处的位置之间的直线距离,第二距离指第一移动终端所处的位置与第二移动终端所处的位置之间的道路长度。The distance may include a first distance and a second distance, wherein the first distance refers to the linear distance between the location of the first mobile terminal and the location of the second mobile terminal, and the second distance refers to the distance between the location of the first mobile terminal. The road length between the location of and the location of the second mobile terminal.
第一移动终端在接收到第二位置信息时,可以获取第一移动终端的第一位置信息,根据第一位置信息和第二位置信息,确定距离,将该距离发送给第二移动终端;和/或,根据第一位置信息和第二位置信息,确定该距离,根据该距离以及第一移动终端的速度,确定到达第二移动终端所处位置的预估时间,并将确定的预估时间发送给第二移动终端。When the first mobile terminal receives the second location information, it can acquire the first location information of the first mobile terminal, determine the distance according to the first location information and the second location information, and send the distance to the second mobile terminal; and /or, according to the first location information and the second location information, determine the distance, according to the distance and the speed of the first mobile terminal, determine the estimated time to arrive at the location of the second mobile terminal, and use the determined estimated time sent to the second mobile terminal.
第一移动终端可以通过地图应用或者交通应用等,来获取第一移动终端与第二移动终端之间的距离。The first mobile terminal may acquire the distance between the first mobile terminal and the second mobile terminal through a map application or a traffic application.
第一移动终端可以通过加速度传感器、其它能够测量速度的应用或组件等,来确定第一移动终端的速度。The first mobile terminal may determine the speed of the first mobile terminal through an acceleration sensor, other applications or components capable of measuring speed, and the like.
在本发明实施例中,第二移动终端能够向第一移动终端发送通讯消息,若在第二预设时长内未接收到第一移动终端针对该通讯消息发送的回复消息,则可以将第二移动终端的第二位置信息发送给第一移动终端,从而使第第一移动终端反馈与第一移动终端之间的距离,和/或,第一移动终端可能到达第二移动终端当前所处位置的时长。因此,能够便于第二移动终端的用户对第一移动终端的用户当前的位置或状态进行评估,进而确定是否再次向第一移动终端发送通讯消息,或者等待与第一移动终端的用户会面等,减少了因无法及时接收到第一移动终端的回复而导致的通讯的时效性和可靠性较低的问题。In the embodiment of the present invention, the second mobile terminal can send a communication message to the first mobile terminal, and if no reply message sent by the first mobile terminal for the communication message is received within the second preset time period, the second mobile terminal can send the communication message to the first mobile terminal. The second location information of the mobile terminal is sent to the first mobile terminal, so that the first mobile terminal feeds back the distance from the first mobile terminal, and/or, the first mobile terminal may arrive at the current location of the second mobile terminal duration. Therefore, it is convenient for the user of the second mobile terminal to evaluate the current location or status of the user of the first mobile terminal, and then determine whether to send a communication message to the first mobile terminal again, or wait for a meeting with the user of the first mobile terminal, etc. The problem of low timeliness and reliability of communication caused by the inability to receive the reply of the first mobile terminal in time is reduced.
实施例三Embodiment three
参照图3,示出了本发明实施例三的处理通讯消息的方法时序图,应用于第一移动终端与第二移动终端之间的交互中,具体可以包括如下步骤:Referring to FIG. 3 , it shows a sequence diagram of a method for processing communication messages according to Embodiment 3 of the present invention, which is applied to the interaction between the first mobile terminal and the second mobile terminal, and may specifically include the following steps:
步骤301,第二移动终端向第一移动终端发送通讯消息,若在第二预设时长内未接收到所述第一移动终端针对所述通讯消息发送的回复消息,则获取当前所处位置的第二位置信息,将所述第二位置信息发送给所述第一移动终端。Step 301, the second mobile terminal sends a communication message to the first mobile terminal, and if no reply message sent by the first mobile terminal for the communication message is received within a second preset time period, obtain the information of the current location second location information, sending the second location information to the first mobile terminal.
其中,第二移动终端判断在第二预设时长内是否接收到第一移动终端针对通讯消息发送的回复消息以及将第二位置信息发送给第一移动终端的方式,可以参见前述中的相关描述,此处不再一一赘述。Wherein, the second mobile terminal judges whether it receives the reply message sent by the first mobile terminal to the communication message within the second preset time period and sends the second location information to the first mobile terminal, which can refer to the relevant description in the foregoing. , which will not be repeated here.
在本发明实施例中,优选的,由于第二位置信息可能属于用户隐私,因此,为了确保通讯的安全性,第二移动终端在发送第二位置信息之前,可以判断第一移动终端是否具有接收第二位置信息的权限。In the embodiment of the present invention, preferably, since the second location information may belong to user privacy, in order to ensure the security of communication, the second mobile terminal may determine whether the first mobile terminal has the ability to receive the second location information before sending the second location information. The permission of the second location information.
由于第二移动终端通常是根据第一移动终端对应的用户标识,通过对应的通讯应用向第一移动终端发送通讯消息,所以第二移动终端可以根据该用户标识,从预先存储的白名单中查询是否存在该用户标识,如果存在则可以确定第二移动终端具有接收第二位置信息的权限,否则可以确定第二移动终端没有接收第二位置信息的权限。Since the second mobile terminal usually sends a communication message to the first mobile terminal through the corresponding communication application according to the user identification corresponding to the first mobile terminal, the second mobile terminal can query from the pre-stored white list according to the user identification Whether the user identifier exists, if yes, it can be determined that the second mobile terminal has the right to receive the second location information, otherwise it can be determined that the second mobile terminal has no right to receive the second location information.
其中,第二移动终端可以事先针对各通讯应用,在属于该通讯应用的用户标识中选择至少一个用户标识,存储至对应的白名单中。Wherein, the second mobile terminal may select at least one user ID among the user IDs belonging to the communication application for each communication application in advance, and store it in the corresponding white list.
步骤302,所述第一移动终端接收所述通讯消息,判断在接收到所述通讯消息后的第一预设时长内是否检测到针对所述通讯消息的回复操作,如果否则执行步骤303,如果是则结束处理通讯消息的流程。Step 302, the first mobile terminal receives the communication message, and judges whether a reply operation to the communication message is detected within a first preset time period after receiving the communication message, if not, perform step 303, if If yes, the process of processing the communication message ends.
其中,第一移动终端判断在接收到所述通讯消息后的第一预设时长内是否检测到针对所述通讯消息的回复操作的方式,可以参见前述中的相关描述,此处不再一一赘述。Wherein, the manner in which the first mobile terminal judges whether a reply operation to the communication message is detected within the first preset time period after receiving the communication message can refer to the relevant description in the foregoing, and will not be described here one by one. repeat.
步骤303,所述第一移动终端判断所述第二移动终端是否具有接收第一位置信息的权限,如果判定所述第二移动终端具有接收所述第一位置信息的权限,则执行步骤304,否则结束处理通讯消息的流程。Step 303, the first mobile terminal judges whether the second mobile terminal has the right to receive the first location information, and if it determines that the second mobile terminal has the right to receive the first location information, then execute step 304, Otherwise, end the process of processing the communication message.
由于在后续步骤中,第一移动终端可以向第二移动终端发送第一位置信息等可能属于用户隐私的信息,为了确保通讯的安全性,可以判断第二移动终端是否具有接收这些信息的权限。Since in the subsequent steps, the first mobile terminal can send the first location information and other information that may belong to the user's privacy to the second mobile terminal, in order to ensure the security of communication, it can be determined whether the second mobile terminal has the authority to receive such information.
其中,第一移动终端可以判断所述第二移动终端是否与预设用户标识对应,如果是则确定第二移动终端具有接收第一位置信息的权限,否则确定第二移动终端不具有接收第一位置信息的权限。Wherein, the first mobile terminal may determine whether the second mobile terminal corresponds to the preset user ID, and if so, determine that the second mobile terminal has the right to receive the first location information; otherwise, determine that the second mobile terminal does not have the right to receive the first location information. Permissions for Location Information.
预设用户标识用户说明具有接收第一位置信息的权限的第二移动终端。第一移动终端可以通过与前述中第二移动终端相似的方式,选择至少一个用户标识作为预设用户标识,当然也可以将选择的预设用户标识存储至白名单。The preset user identifier specifies the second mobile terminal that has the authority to receive the first location information. The first mobile terminal may select at least one user identifier as a preset user identifier in a manner similar to that of the aforementioned second mobile terminal, and of course may also store the selected preset user identifier in a white list.
第一移动终端可以将第二移动终端对应的用户标识与预设用户标识进行比较,如果一致则可以确定第二移动终端与预设用户标识对应,否则可以确定第二移动终端不予预设用户标识对应。The first mobile terminal can compare the user ID corresponding to the second mobile terminal with the preset user ID, and if they are consistent, it can be determined that the second mobile terminal corresponds to the preset user ID, otherwise it can be determined that the second mobile terminal does not allow the preset user ID. ID corresponds.
步骤304,所述第一移动终端获取所述第一移动终端当前所处位置的第一位置信息。Step 304, the first mobile terminal acquires first location information of the current location of the first mobile terminal.
其中,第一移动终端获取第一位置信息的方式,可以参见前述中的相关描述,此处不再一一赘述。For the manner in which the first mobile terminal obtains the first location information, reference may be made to relevant descriptions in the foregoing, and details will not be repeated here.
步骤305,所述第一移动终端接收所述第二移动终端发送的所述第二位置信息。Step 305, the first mobile terminal receives the second location information sent by the second mobile terminal.
步骤306,所述第一移动终端根据所述第一位置信息和所述第二位置信息,确定与所述第二移动终端之间的距离。Step 306, the first mobile terminal determines a distance from the second mobile terminal according to the first location information and the second location information.
其中,根据第一位置信息和第二位置信息,确定第一移动终端与第二移动终端之间的距离的方式,可以参见前述中的相关描述,此处不再一一赘述。For the manner of determining the distance between the first mobile terminal and the second mobile terminal according to the first location information and the second location information, reference may be made to relevant descriptions in the foregoing, and details will not be repeated here.
步骤307,所述第一移动终端确定所述第一移动终端当前的速度。Step 307, the first mobile terminal determines the current speed of the first mobile terminal.
其中,第一移动终端确定的第一移动终端当前的速度的方式,可以参见前述中的相关描述此处不再一一赘述。Wherein, the manner of determining the current speed of the first mobile terminal by the first mobile terminal may refer to the related descriptions in the foregoing and will not repeat them one by one here.
在本发明实施例中,优选的,第一移动终端的速度包括第一移动移动终端的实际速度在预设方向上的速度分量,该预设方向由第一移动终端所处的位置指向第二移动终端所处的位置。In the embodiment of the present invention, preferably, the speed of the first mobile terminal includes a speed component of the actual speed of the first mobile terminal in a preset direction, and the preset direction points from the position of the first mobile terminal to the second The location of the mobile terminal.
其中,当该速度分量为正值时,说明第一移动终端沿该预设方向移动靠近第二移动终端所处的位置,当该速度分量为负值时,说明第一移动终端沿该预设方向由第一移动终端所处的位置远离第二移动终端所处的位置。Wherein, when the velocity component is a positive value, it means that the first mobile terminal moves close to the position of the second mobile terminal along the preset direction; when the velocity component is negative, it means that the first mobile terminal moves along the preset direction. The direction is from where the first mobile terminal is located away from where the second mobile terminal is located.
例如,第一移动终端移动的示意图可以如图4所示。其中,点A表示第一移动终端所处的位置,点B表示第二移动终端所处的位置,且点B处于点A的正东方向。点A正沿被偏东30度方向运行,速度V的大小为10米/秒,预设方向为点A指向点B的方向,则在点A和点B的公共平面内,以该预设方向为X轴,以与该预设方向垂直的方式为Y轴,对点A的速度进行正交分解,得到点A在该预设方向为速度分量V1为5米/秒,该速度分量为正值,即所说明点A在沿该预设方向靠近点B。For example, a schematic diagram of the movement of the first mobile terminal may be as shown in FIG. 4 . Wherein, point A represents the position where the first mobile terminal is located, point B represents the position where the second mobile terminal is located, and point B is in the east direction of point A. Point A is running in the direction of 30 degrees eastward, the magnitude of velocity V is 10 m/s, and the preset direction is point A pointing to point B, then in the common plane of point A and point B, with the preset The direction is the X axis, and the way perpendicular to the preset direction is the Y axis, and the velocity of point A is decomposed orthogonally, and the velocity component V1 of point A in the preset direction is 5 m/s, and the velocity component is Positive value means point A is approaching point B along the preset direction.
步骤308,所述第一移动终端判断所述速度是否大于预设速度阈值。如果判定所述速度是否大于所述预设速度阈值,则执行步骤309,否则执行步骤310。Step 308, the first mobile terminal judges whether the speed is greater than a preset speed threshold. If it is determined whether the speed is greater than the preset speed threshold, go to step 309 , otherwise go to step 310 .
由前述可知,第一移动终端的用户当前可能并未向第二移动终端所处的位置靠近,或者向第二移动终端所处的位置靠近的速度非常有限,在这种情况下,第一移动终端可能难以计算到达第二移动终端所处位置的预估时间,或者计算得到的预估时间数值很大,参考价值较低,所以,为了避免不必要的计算过程,提高处理通讯消息的效率,可以对当前速度是否大于预设速度阈值进行判断。It can be seen from the foregoing that the user of the first mobile terminal may not be approaching the location of the second mobile terminal at present, or the speed of approaching the location of the second mobile terminal is very limited. In this case, the first mobile terminal It may be difficult for the terminal to calculate the estimated time to arrive at the location of the second mobile terminal, or the calculated estimated time value is very large, and the reference value is low. Therefore, in order to avoid unnecessary calculation processes and improve the efficiency of processing communication messages, It can be judged whether the current speed is greater than the preset speed threshold.
预设速度阈值可以由第一移动终端事先确定,比如接收用户提交的数据得到。The preset speed threshold may be determined in advance by the first mobile terminal, for example, obtained by receiving data submitted by a user.
步骤309,所述第一移动终端根据所述速度和所述距离,确定到达所述第二移动终端当前所处位置的预估时间。Step 309, the first mobile terminal determines an estimated time to arrive at the current location of the second mobile terminal according to the speed and the distance.
其中,由于速度可以包括第一移动终端的实际速度或者该实际速度在预设方向的速度分量,距离可以包括第一距离或第二距离,所以第一移动终端可以将第一距离除以该实际速度在预设方向的速度分量,或者,将第二距离除以该实际速度,即可计算得到到达第二移动终端所处位置的预估时间。Wherein, since the speed may include the actual speed of the first mobile terminal or the speed component of the actual speed in the preset direction, and the distance may include the first distance or the second distance, the first mobile terminal may divide the first distance by the actual The velocity component of the velocity in the preset direction, or dividing the second distance by the actual velocity, can calculate the estimated time to arrive at the location of the second mobile terminal.
例如,第一距离为1000米,第一移动终端在预设方向的速度分量为5米/秒,则计算得到第一移动终端到达第二移动终端所处位置的时长为200秒。For example, if the first distance is 1000 meters, and the velocity component of the first mobile terminal in the preset direction is 5 m/s, then the calculated duration for the first mobile terminal to reach the location of the second mobile terminal is 200 seconds.
在本发明实施例中,优选的,由于第一移动终端在道路中移动时,所耗费的时长也会受车流量、道路拥堵状况等因素的影响,所以为了提高确定到达二移动终端所处位置的预估时间的准确性,第一移动终端可以获取与所述第二移动终端之间道路的路况信息,根据所述路况信息、所述速度和所述距离,确定所述预估时间。In the embodiment of the present invention, preferably, since the time spent by the first mobile terminal is also affected by factors such as traffic volume and road congestion when moving on the road, in order to improve the efficiency of determining the location of the second mobile terminal To estimate the accuracy of the time, the first mobile terminal may acquire road condition information of the road between the second mobile terminal and determine the estimated time according to the road condition information, the speed and the distance.
路况信息可以包括车流量或道路拥堵状况。第一移动终端可以通过地图应用或者交通应用来获取该路况信息,确定与该路况信息对应权值,在通过速度和距离计算得到预估时间时,可以通过该权值对该预估时间进行修正,将修正后的预估时间确定为第一移动终端到达第二移动终端所处位置的预估时间。Traffic information may include traffic flow or road congestion. The first mobile terminal can obtain the road condition information through the map application or the traffic application, determine the weight corresponding to the road condition information, and when the estimated time is obtained by calculating the speed and distance, the estimated time can be corrected by the weight , determining the corrected estimated time as the estimated time when the first mobile terminal arrives at the location of the second mobile terminal.
例如,计算得到第一移动终端到达第二移动终端所处位置的预估时间为200秒,获取到车流量为100辆/分钟,确定对应的权值为1.2,则将200*1.2=240,即修正后第一移动终端移动至第二移动终端所处位置的预估时间为240秒。For example, the calculated estimated time for the first mobile terminal to arrive at the location of the second mobile terminal is 200 seconds, and the traffic flow obtained is 100 vehicles/minute, and the corresponding weight is determined to be 1.2, then 200*1.2=240, That is, the estimated time for the first mobile terminal to move to the location of the second mobile terminal after correction is 240 seconds.
其中,第一移动终端可以事先获取多个路况信息,并根据经验或者相关的算法,确定与该路况信息对应的权值,将各路况信息以及对应的权值,存储至路况信息与权值之间的对应关系中。从而在之后获取与路况信息对应的权值时,可以根据该路况信息,从存储的路况信息与权值之间的对应关系中,快速准确地获取到对应的权值。Wherein, the first mobile terminal may obtain a plurality of road condition information in advance, and determine the weight value corresponding to the road condition information according to experience or related algorithms, and store each road condition information and the corresponding weight value in the link between the road condition information and the weight value. in the corresponding relationship between them. Therefore, when the weight value corresponding to the road condition information is obtained later, the corresponding weight value can be quickly and accurately obtained from the stored correspondence between the road condition information and the weight value according to the road condition information.
步骤310,所述第一移动终端将所述第一位置信息发送给所述第二移动终端,且将所述距离、所述速度和所述预估时间中的至少一个发送给所述第二移动终端。Step 310, the first mobile terminal sends the first location information to the second mobile terminal, and sends at least one of the distance, the speed and the estimated time to the second mobile terminal mobile terminal.
为了避免在接收到第二移动终端的通讯消息后,由第一移动终端的用户不便于回复该通讯消息而导致第二移动终端的用户进行不必要等待,提高通讯的时效性和可靠性,可以及时地将第一移动终端所处的第一位置信息发送给第二移动终端,以使第二移动终端的用户在接收到第一位置信息时,感知到第一移动终端的用户当前的位置。In order to avoid that after receiving the communication message from the second mobile terminal, it is inconvenient for the user of the first mobile terminal to reply to the communication message and cause the user of the second mobile terminal to wait unnecessarily, so as to improve the timeliness and reliability of the communication, you can Timely sending the first location information of the first mobile terminal to the second mobile terminal, so that the user of the second mobile terminal perceives the current location of the user of the first mobile terminal when receiving the first location information.
其中,若第一移动终端将第一位置信息发送给第二移动终端,则第二移动终端也可以根据该第一位置信息与第二位置信息,确定该距离。Wherein, if the first mobile terminal sends the first location information to the second mobile terminal, the second mobile terminal may also determine the distance according to the first location information and the second location information.
在本发明实施例中,优选的,为了使第二移动终端的用户进一步感知第一移动终端的用户当前的速度、距离、到达的预估时间等信息,从而确定是否在原地等待第一移动终端的用户、是否向第一移动终端所处的位置靠近等,以进一步提高通讯的时效性和可靠性,第一移动终端可以将由前述得到的第一移动终端所处位置与第二移动终端所处位置之间的距离、第一移动终端的速度、以及第一移动终端到达第二移动终端所处位置的预估时间中的至少一个,通知给第二移动终端。In the embodiment of the present invention, preferably, in order to make the user of the second mobile terminal further perceive information such as the current speed, distance, and estimated time of arrival of the user of the first mobile terminal, so as to determine whether to wait for the first mobile terminal in place users, whether they approach the location of the first mobile terminal, etc., to further improve the timeliness and reliability of communication, the first mobile terminal can compare the location of the first mobile terminal obtained above with the location of the second mobile terminal At least one of the distance between the locations, the speed of the first mobile terminal, and the estimated time for the first mobile terminal to reach the location of the second mobile terminal is notified to the second mobile terminal.
当然,在实际应用中,第一移动终端也可以将第一位置信息、与第二移动终端之间的距离、第一移动终端的速度和到达第二移动终端所处位置的预估时间中的至少一个发送给所述第二移动终端。Of course, in practical applications, the first mobile terminal may also use the first location information, the distance from the second mobile terminal, the speed of the first mobile terminal, and the estimated time to reach the location of the second mobile terminal. At least one is sent to the second mobile terminal.
例如,一种处理通讯消息的方法流程图可以如图5所示。由图5可知,在步骤501中,移动终端A向移动终端B拨打电话或发送短信,其中,移动终端A即为第二移动终端,移动终端B即为第一移动终端;在步骤502中,移动终端B在设定时间内没有回复电话或短信,其中,该设定的时间既可以为前述中的第一预设时长;在步骤503中,移动终端B提示用户是否授权移动终端A获取移动终端B的位置信息,比如可以通过弹出窗口进行提示,如果是则执行步骤504,否则结束;在步骤504中,移动终端B获取移动终端A的第二位置信息、移动终端B的第一位置信息、移动终端B当前的实际速度以及路况信息,计算得到到达移动终端A所处位置的预估时间,将该预估时间通过短信发送给移动终端A;在步骤505中,移动终端A接收到移动终端B回复的短信。For example, a flowchart of a method for processing communication messages may be shown in FIG. 5 . As can be seen from FIG. 5, in step 501, mobile terminal A makes a call or sends a short message to mobile terminal B, wherein mobile terminal A is the second mobile terminal, and mobile terminal B is the first mobile terminal; in step 502, Mobile terminal B does not reply to the phone call or text message within the set time, wherein the set time can be the first preset duration mentioned above; in step 503, mobile terminal B prompts the user whether to authorize mobile terminal A to obtain mobile The location information of terminal B, for example, can be prompted through a pop-up window, if yes, execute step 504, otherwise end; in step 504, mobile terminal B obtains the second location information of mobile terminal A, the first location information of mobile terminal B , the current actual speed of mobile terminal B and road condition information, calculate the estimated time to arrive at the location of mobile terminal A, and send the estimated time to mobile terminal A by short message; in step 505, mobile terminal A receives the mobile terminal A The text message replied by Terminal B.
在本发明实施例中,首先,第一移动终端能够接收第二移动终端的通讯消息,若在接收到该通讯消息后的第一预设时长内未检测到针对该通讯消息的回复操作,则可能第一移动终端的用户当前不便于回复,所以可以获取第一移动终端当前所处位置的第一位置信息,将第一位置信息发送给第二移动终端,以使第二移动终端的用户及时感知第一移动终端的用户所处的位置,避免在难以获取回复时进行不必要的等待,提高了通讯的时效性和可靠性。In the embodiment of the present invention, firstly, the first mobile terminal can receive the communication message of the second mobile terminal, if no reply operation for the communication message is detected within the first preset time period after receiving the communication message, then It may be inconvenient for the user of the first mobile terminal to reply at present, so the first location information of the current location of the first mobile terminal can be obtained, and the first location information can be sent to the second mobile terminal, so that the user of the second mobile terminal can respond in time. The location of the user of the first mobile terminal is sensed, unnecessary waiting is avoided when it is difficult to obtain a reply, and the timeliness and reliability of communication are improved.
其次,第一移动终端可以判断第二移动终端是否与预设用户标识对应,从而确定第二移动终端是否具有接收第一位置信息权限,从而能够避免在确定第二移动终端不具有接收第一位置信息权限时,将第一位置信息发送给第二移动终端,避免将用户隐私泄露给其它用户,提高了通讯的安全性。Secondly, the first mobile terminal can determine whether the second mobile terminal corresponds to the preset user ID, so as to determine whether the second mobile terminal has the right to receive the first location information, thereby avoiding When the information is authorized, the first location information is sent to the second mobile terminal, which avoids leakage of user privacy to other users and improves communication security.
另外,第一移动终端能够将第二移动终端之间的距离、第一移动终端的速度、以及第一移动终端到达第二移动终端所处位置的预估时间中的至少一个通知给第二移动终端,使第二移动终端的用户能够进一步感知第一移动终端的用户当前的速度、距离、到达的预估时间等信息,从而确定是否在原地等待第一移动终端的用户、是否向第一移动终端所处的位置靠近等,进一步提高了通讯的时效性和可靠性。In addition, the first mobile terminal is capable of notifying the second mobile terminal of at least one of the distance between the second mobile terminals, the speed of the first mobile terminal, and the estimated time for the first mobile terminal to arrive at the location where the second mobile terminal is located. Terminal, so that the user of the second mobile terminal can further perceive information such as the current speed, distance, and estimated time of arrival of the user of the first mobile terminal, so as to determine whether to wait for the user of the first mobile terminal in place, whether to move to the first The location of the terminal is close, etc., which further improves the timeliness and reliability of communication.
实施例四Embodiment four
参照图6,示出了本发明实施例四的一种移动终端的结构框图,具体可以包括:Referring to FIG. 6 , it shows a structural block diagram of a mobile terminal according to Embodiment 4 of the present invention, which may specifically include:
第一接收模块601,用于接收第二移动终端的通讯消息;The first receiving module 601 is configured to receive the communication message of the second mobile terminal;
获取模块602,用于若在接收到所述通讯消息后的第一预设时长内未检测到针对所述通讯消息的回复操作,则获取所述第一移动终端当前所处位置的第一位置信息;An obtaining module 602, configured to obtain the first location of the current location of the first mobile terminal if no reply operation to the communication message is detected within a first preset time period after receiving the communication message information;
第一发送模块603,用于将所述第一位置信息发送给所述第二移动终端A first sending module 603, configured to send the first location information to the second mobile terminal
可选的,所述移动终端还包括:Optionally, the mobile terminal also includes:
第二接收模块,用于接收所述第二移动终端发送的第二位置信息;A second receiving module, configured to receive second location information sent by the second mobile terminal;
第一确定模块,用于根据所述第一位置信息和所述第二位置信息,确定与所述第二移动终端之间的距离;A first determining module, configured to determine a distance from the second mobile terminal according to the first location information and the second location information;
第二发送模块,用于将所述距离发送给所述第二移动终端。A second sending module, configured to send the distance to the second mobile terminal.
可选的,所述移动终端还包括:Optionally, the mobile terminal also includes:
第二确定模块,用于确定所述第一移动终端当前的速度;A second determining module, configured to determine the current speed of the first mobile terminal;
第三发送模块,用于将所述速度发送给所述第二移动终端。A third sending module, configured to send the speed to the second mobile terminal.
可选的,所述移动终端还包括:Optionally, the mobile terminal also includes:
第三确定模块,用于确定所述第一移动终端当前的速度以及与所述第二移动终端之间的距离;A third determining module, configured to determine the current speed of the first mobile terminal and the distance to the second mobile terminal;
第四确定模块,用于根据所述速度和所述距离,确定到达所述第二移动终端当前所处位置的预估时间;A fourth determining module, configured to determine an estimated time to arrive at the current location of the second mobile terminal according to the speed and the distance;
第四发送模块,用于将所述预估时间发送给所述第二移动终端。A fourth sending module, configured to send the estimated time to the second mobile terminal.
可选的,所述第四确定模块包括:Optionally, the fourth determination module includes:
获取子模块,用于获取与所述第二移动终端之间道路的路况信息;An acquisition submodule, configured to acquire road condition information of the road between the second mobile terminal and the second mobile terminal;
确定子模块,用于根据所述路况信息、所述速度和所述距离,确定所述预估时间。A determining submodule, configured to determine the estimated time according to the road condition information, the speed and the distance.
可选的,所述第四确定模块还包括:Optionally, the fourth determination module also includes:
判断子模块,用于判断所述速度是否大于预设速度阈值;A judging submodule, configured to judge whether the speed is greater than a preset speed threshold;
触发子模块,用于若所述速度大于所述预设速度阈值,则触发所述第四确定模块执行所述根据所述速度和所述距离,确定到达所述第二移动终端当前所处位置的预估时间的步骤。A triggering submodule, configured to trigger the fourth determining module to perform the step of determining to arrive at the current location of the second mobile terminal according to the speed and the distance if the speed is greater than the preset speed threshold. estimated time steps.
可选的,所述移动终端还包括:Optionally, the mobile terminal also includes:
判断模块,用于判断所述第二移动终端是否与预设用户标识对应;A judging module, configured to judge whether the second mobile terminal corresponds to a preset user identifier;
触发模块,用于若所述第二移动终端与所述预设用户标识对应,则执行触发所述第一发送模块将所述第一位置信息发送给所述第二移动终端的步骤。A triggering module, configured to trigger the first sending module to send the first location information to the second mobile terminal if the second mobile terminal corresponds to the preset user identifier.
本发明实施例提供的移动终端能够实现图1和图3的方法实施例中第一移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal provided by the embodiment of the present invention can implement various processes implemented by the first mobile terminal in the method embodiments in FIG. 1 and FIG. 3 , and details are not repeated here to avoid repetition.
在本发明实施例中,第一移动终端能够接收第二移动终端的通讯消息,若在接收到该通讯消息后的第一预设时长内未检测到针对该通讯消息的回复操作,则可能第一移动终端的用户当前不便于回复,所以可以获取第一移动终端当前所处位置的第一位置信息,将第一位置信息发送给第二移动终端,以使第二移动终端的用户及时感知第一移动终端的用户所处的位置,避免在难以获取回复时进行不必要的等待,提高了通讯的时效性和可靠性。In the embodiment of the present invention, the first mobile terminal can receive the communication message of the second mobile terminal, if no reply operation for the communication message is detected within the first preset time period after receiving the communication message, then the second mobile terminal may The user of a mobile terminal is currently inconvenient to reply, so the first location information of the current location of the first mobile terminal can be obtained, and the first location information can be sent to the second mobile terminal, so that the user of the second mobile terminal can perceive the first location information in time. The position of the user of the mobile terminal avoids unnecessary waiting when it is difficult to obtain a reply, and improves the timeliness and reliability of communication.
实施例五Embodiment five
参照图7,示出了本发明实施例五的一种移动终端的结构框图,具体可以包括:Referring to FIG. 7 , it shows a structural block diagram of a mobile terminal according to Embodiment 5 of the present invention, which may specifically include:
第一发送模块701,用于向第一移动终端发送通讯消息;The first sending module 701 is configured to send a communication message to the first mobile terminal;
获取模块702,用于若在第二预设时长内未接收到所述第一移动终端针对所述通讯消息发送的回复消息,则获取当前所处位置的第二位置信息;An obtaining module 702, configured to obtain second location information of the current location if a reply message sent by the first mobile terminal to the communication message is not received within a second preset time period;
第二发送模块703,用于将所述第二位置信息发送给所述第一移动终端,以使所述第一移动终端基于所述第二位置信息反馈所述第一移动终端与所述第二移动终端之间的距离,和/或,所述第一移动终端到达所述第二移动终端当前所处位置的预估时间。The second sending module 703 is configured to send the second location information to the first mobile terminal, so that the first mobile terminal feeds back the first mobile terminal and the second location information based on the second location information. The distance between two mobile terminals, and/or, the estimated time when the first mobile terminal arrives at the current location of the second mobile terminal.
本发明实施例提供的移动终端能够实现图2和图3的方法实施例中第二移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal provided by the embodiment of the present invention can implement various processes implemented by the second mobile terminal in the method embodiments in FIG. 2 and FIG. 3 , and details are not repeated here to avoid repetition.
在本发明实施例中,第二移动终端能够向第一移动终端发送通讯消息,若在第二预设时长内未接收到第一移动终端针对该通讯消息发送的回复消息,则可以将第二移动终端的第二位置信息发送给第一移动终端,从而使第第一移动终端反馈与第一移动终端之间的距离,和/或,第一移动终端可能到达第二移动终端当前所处位置的时长。因此,能够便于第二移动终端的用户对第一移动终端的用户当前的位置或状态进行评估,进而确定是否再次向第一移动终端发送通讯消息,或者等待与第一移动终端的用户会面等,减少了因无法及时接收到第一移动终端的回复而导致的通讯的时效性和可靠性较低的问题。In the embodiment of the present invention, the second mobile terminal can send a communication message to the first mobile terminal, and if no reply message sent by the first mobile terminal for the communication message is received within the second preset time period, the second mobile terminal can send the communication message to the first mobile terminal. The second location information of the mobile terminal is sent to the first mobile terminal, so that the first mobile terminal feeds back the distance from the first mobile terminal, and/or, the first mobile terminal may arrive at the current location of the second mobile terminal duration. Therefore, it is convenient for the user of the second mobile terminal to evaluate the current location or status of the user of the first mobile terminal, and then determine whether to send a communication message to the first mobile terminal again, or wait for a meeting with the user of the first mobile terminal, etc. The problem of low timeliness and reliability of communication caused by the inability to receive the reply of the first mobile terminal in time is reduced.
实施例六Embodiment six
图8为实现本发明各个实施例的一种移动终端的硬件结构示意图,FIG. 8 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention,
该移动终端800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、处理器810、以及电源811等部件。本领域技术人员可以理解,图8中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The mobile terminal 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and Power supply 811 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in Figure 8 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.
其中,射频单元801,用于接收第二移动终端的通讯消息;Wherein, the radio frequency unit 801 is used to receive the communication message of the second mobile terminal;
处理器810,用于:Processor 810 for:
若在接收到所述通讯消息后的第一预设时长内未检测到针对所述通讯消息的回复操作,则获取所述第一移动终端当前所处位置的第一位置信息;If no reply operation to the communication message is detected within a first preset time period after receiving the communication message, acquiring first location information of the current location of the first mobile terminal;
将所述第一位置信息发送给所述第二移动终端。Send the first location information to the second mobile terminal.
在本发明实施例中,第一移动终端能够接收第二移动终端的通讯消息,若在接收到该通讯消息后的第一预设时长内未检测到针对该通讯消息的回复操作,则可能第一移动终端的用户当前不便于回复,所以可以获取第一移动终端当前所处位置的第一位置信息,将第一位置信息发送给第二移动终端,以使第二移动终端的用户及时感知第一移动终端的用户所处的位置,避免在难以获取回复时进行不必要的等待,提高了通讯的时效性和可靠性。In the embodiment of the present invention, the first mobile terminal can receive the communication message of the second mobile terminal, if no reply operation for the communication message is detected within the first preset time period after receiving the communication message, then the second mobile terminal may The user of a mobile terminal is currently inconvenient to reply, so the first location information of the current location of the first mobile terminal can be obtained, and the first location information can be sent to the second mobile terminal, so that the user of the second mobile terminal can perceive the first location information in time. The position of the user of the mobile terminal avoids unnecessary waiting when it is difficult to obtain a reply, and improves the timeliness and reliability of communication.
可选的,射频单元801,还用于接收所述第二移动终端发送的第二位置信息;Optionally, the radio frequency unit 801 is further configured to receive second location information sent by the second mobile terminal;
处理器810,还用于:Processor 810, also for:
根据所述第一位置信息和所述第二位置信息,确定与所述第二移动终端之间的距离;determining a distance to the second mobile terminal according to the first location information and the second location information;
将所述距离发送给所述第二移动终端。Send the distance to the second mobile terminal.
可选的,处理器810,还用于:Optionally, the processor 810 is also used for:
确定所述第一移动终端当前的速度;determining a current velocity of said first mobile terminal;
将所述速度发送给所述第二移动终端。sending the speed to the second mobile terminal.
可选的,处理器810,还用于:Optionally, the processor 810 is also used for:
确定所述第一移动终端当前的速度以及与所述第二移动终端之间的距离;determining the current speed of the first mobile terminal and the distance from the second mobile terminal;
根据所述速度和所述距离,确定到达所述第二移动终端当前所处位置的预估时间;determining an estimated time to arrive at the current location of the second mobile terminal according to the speed and the distance;
将所述预估时间发送给所述第二移动终端。sending the estimated time to the second mobile terminal.
可选的,处理器810,还用于:Optionally, the processor 810 is also used for:
获取与所述第二移动终端之间道路的路况信息;Obtaining road condition information of the road between the second mobile terminal;
根据所述路况信息、所述速度和所述距离,确定所述预估时间。The estimated time is determined according to the road condition information, the speed and the distance.
可选的,处理器810,还用于:Optionally, the processor 810 is also used for:
判断所述速度是否大于预设速度阈值;judging whether the speed is greater than a preset speed threshold;
若所述速度大于所述预设速度阈值,则执行所述根据所述速度和所述距离,确定到达所述第二移动终端当前所处位置的预估时间的步骤。If the speed is greater than the preset speed threshold, the step of determining an estimated time to arrive at the current location of the second mobile terminal according to the speed and the distance is performed.
可选的,处理器810,还用于:Optionally, the processor 810 is also used for:
判断所述第二移动终端是否与预设用户标识对应;judging whether the second mobile terminal corresponds to a preset user identifier;
若所述第二移动终端与所述预设用户标识对应,则执行所述将所述第一位置信息发送给所述第二移动终端的步骤。If the second mobile terminal corresponds to the preset user identifier, the step of sending the first location information to the second mobile terminal is performed.
在本发明的一个优选实施例中,处理器810,用于:In a preferred embodiment of the present invention, the processor 810 is configured to:
向第一移动终端发送通讯消息;sending a communication message to the first mobile terminal;
若在第二预设时长内未接收到所述第一移动终端针对所述通讯消息发送的回复消息,则获取当前所处位置的第二位置信息;If the reply message sent by the first mobile terminal to the communication message is not received within the second preset time period, then obtain the second location information of the current location;
将所述第二位置信息发送给所述第一移动终端,以使所述第一移动终端基于所述第二位置信息反馈所述第一移动终端与所述第二移动终端之间的距离,和/或,所述第一移动终端到达所述第二移动终端当前所处位置的预估时间。sending the second location information to the first mobile terminal, so that the first mobile terminal feeds back the distance between the first mobile terminal and the second mobile terminal based on the second location information, And/or, the estimated time when the first mobile terminal arrives at the current location of the second mobile terminal.
在本发明实施例中,第二移动终端能够向第一移动终端发送通讯消息,若在第二预设时长内未接收到第一移动终端针对该通讯消息发送的回复消息,则可以将第二移动终端的第二位置信息发送给第一移动终端,从而使第第一移动终端反馈与第一移动终端之间的距离,和/或,第一移动终端可能到达第二移动终端当前所处位置的时长。因此,能够便于第二移动终端的用户对第一移动终端的用户当前的位置或状态进行评估,进而确定是否再次向第一移动终端发送通讯消息,或者等待与第一移动终端的用户会面等,减少了因无法及时接收到第一移动终端的回复而导致的通讯的时效性和可靠性较低的问题。In the embodiment of the present invention, the second mobile terminal can send a communication message to the first mobile terminal, and if no reply message sent by the first mobile terminal for the communication message is received within the second preset time period, the second mobile terminal can send the communication message to the first mobile terminal. The second location information of the mobile terminal is sent to the first mobile terminal, so that the first mobile terminal feeds back the distance from the first mobile terminal, and/or, the first mobile terminal may arrive at the current location of the second mobile terminal duration. Therefore, it is convenient for the user of the second mobile terminal to evaluate the current location or status of the user of the first mobile terminal, and then determine whether to send a communication message to the first mobile terminal again, or wait for a meeting with the user of the first mobile terminal, etc. The problem of low timeliness and reliability of communication caused by the inability to receive the reply of the first mobile terminal in time is reduced.
应理解的是,本发明实施例中,射频单元801可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器810处理;另外,将上行的数据发送给基站。通常,射频单元801包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元801还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, after receiving the downlink data from the base station, the processor 810 processes it; Uplink data is sent to the base station. Generally, the radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 801 can also communicate with the network and other devices through a wireless communication system.
移动终端通过网络模块802为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 802, such as helping users send and receive emails, browse web pages, and access streaming media.
音频输出单元803可以将射频单元801或网络模块802接收的或者在存储器809中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元803还可以提供与移动终端800执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元803包括扬声器、蜂鸣器以及受话器等。The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 can also provide audio output related to a specific function performed by the mobile terminal 800 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
输入单元804用于接收音频或视频信号。输入单元804可以包括图形处理器(Graphics Processing Unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元806上。经图形处理器8041处理后的图像帧可以存储在存储器809(或其它存储介质)中或者经由射频单元801或网络模块802进行发送。麦克风8042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元801发送到移动通信基站的格式输出。The input unit 804 is used for receiving audio or video signals. The input unit 804 may include a graphics processing unit (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processing unit 8041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 806 . The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage media) or sent via the radio frequency unit 801 or the network module 802 . The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 801 for output in the case of a phone call mode.
移动终端800还包括至少一种传感器805,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板8061的亮度,接近传感器可在移动终端800移动到耳边时,关闭显示面板8061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器805还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 800 also includes at least one sensor 805, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 8061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 8061 and the / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games, etc.) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 805 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元806用于显示由用户输入的信息或提供给用户的信息。显示单元806可包括显示面板8061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板8061。The display unit 806 is used to display information input by the user or information provided to the user. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
用户输入单元807可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板8071上或在触控面板8071附近的操作)。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器810,接收处理器810发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板8071。除了触控面板8071,用户输入单元807还可以包括其他输入设备8072。具体地,其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 807 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072 . The touch panel 8071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 8071 or near the touch panel 8071). operate). The touch panel 8071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 810, receive the command sent by the processor 810 and execute it. In addition, the touch panel 8071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 8071 , the user input unit 807 may also include other input devices 8072 . Specifically, other input devices 8072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
进一步的,触控面板8071可覆盖在显示面板8061上,当触控面板8071检测到在其上或附近的触摸操作后,传送给处理器810以确定触摸事件的类型,随后处理器810根据触摸事件的类型在显示面板8061上提供相应的视觉输出。虽然在图8中,触控面板8071与显示面板8061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板8071与显示面板8061集成而实现移动终端的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 8071 can be covered on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near it, it will be sent to the processor 810 to determine the type of the touch event, and then the processor 810 will The type of event provides a corresponding visual output on the display panel 8061. Although in FIG. 8, the touch panel 8071 and the display panel 8061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 8071 and the display panel 8061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.
接口单元808为外部装置与移动终端800连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元808可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端800内的一个或多个元件或者可以用于在移动终端800和外部装置之间传输数据。The interface unit 808 is an interface for connecting an external device to the mobile terminal 800 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 808 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.
存储器809可用于存储软件程序以及各种数据。存储器809可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器809可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 809 can be used to store software programs as well as various data. The memory 809 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 809 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.
处理器810是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器809内的软件程序和/或模块,以及调用存储在存储器809内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器810可包括一个或多个处理单元;优选的,处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。The processor 810 is the control center of the mobile terminal, which uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 809, and calling data stored in the memory 809 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 810 .
移动终端800还可以包括给各个部件供电的电源811(比如电池),优选的,电源811可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 800 can also include a power supply 811 (such as a battery) for supplying power to various components. Preferably, the power supply 811 can be logically connected to the processor 810 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.
另外,移动终端800包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 800 includes some functional modules not shown, which will not be repeated here.
实施例七Embodiment seven
优选的,本发明实施例还提供一种移动终端,包括处理器810,存储器809,存储在存储器809上并可在所述处理器810上运行的计算机程序,该计算机程序被处理器810执行时实现上述的第一移动终端或第二移动终端处理通讯消息的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides a mobile terminal, including a processor 810, a memory 809, and a computer program stored in the memory 809 and operable on the processor 810. When the computer program is executed by the processor 810 The various processes of the above-mentioned embodiment of the method for processing a communication message by the first mobile terminal or the second mobile terminal can achieve the same technical effect. To avoid repetition, details are not repeated here.
实施例八Embodiment Eight
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述的第一移动终端或第二移动终端处理通讯消息的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned method for processing a communication message by the first mobile terminal or the second mobile terminal is implemented. The various processes of the embodiment can achieve the same technical effect, so in order to avoid repetition, details are not repeated here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive. Those of ordinary skill in the art will Under the enlightenment of the present invention, many forms can also be made without departing from the gist of the present invention and the protection scope of the claims, all of which belong to the protection of the present invention.
Claims (17)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710901615.5A CN107566655A (en) | 2017-09-28 | 2017-09-28 | Handle the method and mobile terminal of communication message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710901615.5A CN107566655A (en) | 2017-09-28 | 2017-09-28 | Handle the method and mobile terminal of communication message |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107566655A true CN107566655A (en) | 2018-01-09 |
Family
ID=60983609
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710901615.5A Pending CN107566655A (en) | 2017-09-28 | 2017-09-28 | Handle the method and mobile terminal of communication message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107566655A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103020097A (en) * | 2012-06-01 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Method and device for public transport transfer program recommendation |
CN103134511A (en) * | 2012-12-25 | 2013-06-05 | 上海博泰悦臻电子设备制造有限公司 | Prompting method of vehicle-mounted device and navigation routes |
CN103369455A (en) * | 2012-03-26 | 2013-10-23 | 宇龙计算机通信科技(深圳)有限公司 | Method for transmitting position information and mobile terminal |
CN105277204A (en) * | 2015-09-24 | 2016-01-27 | 惠州华阳通用电子有限公司 | Information-based navigation method and apparatus thereof |
CN105657188A (en) * | 2015-05-22 | 2016-06-08 | 三星电子(中国)研发中心 | Communicating method of mobile terminal and mobile terminal |
CN105827808A (en) * | 2015-09-24 | 2016-08-03 | 维沃移动通信有限公司 | Automatic reply method and electronic device |
WO2016198101A1 (en) * | 2015-06-10 | 2016-12-15 | Telefonaktiebolaget Lm Ericsson (Publ) | Protecting iaps from ddos attacks |
CN106412238A (en) * | 2016-08-30 | 2017-02-15 | 广东欧珀移动通信有限公司 | Method for acquiring relative information and mobile terminal |
-
2017
- 2017-09-28 CN CN201710901615.5A patent/CN107566655A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103369455A (en) * | 2012-03-26 | 2013-10-23 | 宇龙计算机通信科技(深圳)有限公司 | Method for transmitting position information and mobile terminal |
CN103020097A (en) * | 2012-06-01 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Method and device for public transport transfer program recommendation |
CN103134511A (en) * | 2012-12-25 | 2013-06-05 | 上海博泰悦臻电子设备制造有限公司 | Prompting method of vehicle-mounted device and navigation routes |
CN105657188A (en) * | 2015-05-22 | 2016-06-08 | 三星电子(中国)研发中心 | Communicating method of mobile terminal and mobile terminal |
WO2016198101A1 (en) * | 2015-06-10 | 2016-12-15 | Telefonaktiebolaget Lm Ericsson (Publ) | Protecting iaps from ddos attacks |
CN105277204A (en) * | 2015-09-24 | 2016-01-27 | 惠州华阳通用电子有限公司 | Information-based navigation method and apparatus thereof |
CN105827808A (en) * | 2015-09-24 | 2016-08-03 | 维沃移动通信有限公司 | Automatic reply method and electronic device |
CN106412238A (en) * | 2016-08-30 | 2017-02-15 | 广东欧珀移动通信有限公司 | Method for acquiring relative information and mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107943489B (en) | Data sharing method and mobile terminal | |
CN110166439B (en) | Device sharing method, terminal, router and server | |
CN107770768A (en) | A kind of data network restoration methods, mobile terminal | |
CN108022446A (en) | A kind of parking spot acquisition methods, mobile terminal | |
CN110456395B (en) | A positioning method and terminal device | |
CN107608855B (en) | Reminder method and mobile terminal | |
CN108882142A (en) | Reminder message sending method and mobile terminal | |
CN111130817A (en) | Group creation method, electronic device and server | |
JP7249436B2 (en) | PC5 link establishment method, device and system | |
CN111601323B (en) | Application method of network slice and electronic equipment | |
CN108541015A (en) | A kind of signal strength reminding method and mobile terminal | |
CN108551525B (en) | State determination method of movement track and mobile terminal | |
CN108197934A (en) | A kind of method of payment and terminal device | |
CN108592939A (en) | A kind of air navigation aid and terminal | |
CN108429856A (en) | A positioning information acquisition method and mobile terminal | |
CN110366182A (en) | A data transmission method and terminal equipment | |
CN111399792B (en) | A content sharing method and electronic device | |
CN110536236B (en) | Communication method, terminal equipment and network equipment | |
CN108984231A (en) | A kind of login method and mobile terminal of application program account | |
CN109618278B (en) | Positioning method and mobile terminal | |
CN108366167A (en) | A kind of method and mobile terminal of prompting message | |
CN108988413B (en) | Mobile terminal charging method and mobile terminal | |
CN108055389B (en) | Missed call processing method and mobile terminal | |
CN108347692A (en) | A network connection reminding method, device and mobile terminal | |
CN108769408A (en) | A kind of message method and terminal device |
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: 20180109 |