Movatterモバイル変換


[0]ホーム

URL:


CN113315694B - Instant messaging methods, devices and electronic equipment - Google Patents

Instant messaging methods, devices and electronic equipment
Download PDF

Info

Publication number
CN113315694B
CN113315694BCN202110589651.9ACN202110589651ACN113315694BCN 113315694 BCN113315694 BCN 113315694BCN 202110589651 ACN202110589651 ACN 202110589651ACN 113315694 BCN113315694 BCN 113315694B
Authority
CN
China
Prior art keywords
password
user
input
hand
electronic device
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.)
Active
Application number
CN202110589651.9A
Other languages
Chinese (zh)
Other versions
CN113315694A (en
Inventor
冀文彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN202110589651.9ApriorityCriticalpatent/CN113315694B/en
Publication of CN113315694ApublicationCriticalpatent/CN113315694A/en
Priority to PCT/CN2022/094373prioritypatent/WO2022247771A1/en
Application grantedgrantedCritical
Publication of CN113315694BpublicationCriticalpatent/CN113315694B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The application discloses an instant messaging method, an instant messaging device and electronic equipment, and belongs to the technical field of communication. The method is applied to a first electronic device, and the first electronic device is provided with a touch screen. The method comprises the following steps: receiving a first input to a pointer in an interface; displaying a password input interface in response to the first input; receiving a second input at the password input interface; acquiring a first password in response to the second input; establishing communication connection with second electronic equipment according to the first password; and the second password acquired by the second electronic equipment is matched with the first password.

Description

Translated fromChinese
即时通讯方法、装置和电子设备Instant messaging methods, devices and electronic equipment

技术领域Technical field

本申请属于通信技术领域,具体涉及一种即时通讯方法、装置和电子设备。This application belongs to the field of communication technology, and specifically relates to an instant messaging method, device and electronic equipment.

背景技术Background technique

智能穿戴设备被越来越多的应用于生活中,个性化需求也越来越丰富,由于智能穿戴设备所承载的功能越来越多,如何在智能穿戴设备上实现快速社交显得十分重要。Smart wearable devices are increasingly used in life, and personalized needs are becoming more and more abundant. Since smart wearable devices carry more and more functions, how to achieve rapid social interaction on smart wearable devices is very important.

通常,在智能穿戴设备上快速组建即时通讯,需要借助于社交账户或者第三方账户等即时通讯账户体系来实现,即,需要组建一个即时通讯的群组才能进行交流。但这种即时通讯的建立流程非常复杂,耗时较多,用户体验较差。Usually, rapid establishment of instant messaging on smart wearable devices requires the help of instant messaging account systems such as social accounts or third-party accounts. That is, an instant messaging group needs to be formed to communicate. However, the establishment process of this kind of instant messaging is very complicated, time-consuming, and has a poor user experience.

发明内容Contents of the invention

本申请实施例的目的是提供一种即时通讯方法,能够解决现有即时通讯的建立流程复杂、耗时较多的问题。The purpose of the embodiments of the present application is to provide an instant messaging method that can solve the existing problems of complicated and time-consuming instant messaging establishment process.

为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:

第一方面,本申请实施例提供了一种即时通讯方法,应用于第一电子设备,所述第一电子设备具有触摸屏,所述方法包括:In a first aspect, embodiments of the present application provide an instant messaging method, applied to a first electronic device, where the first electronic device has a touch screen, and the method includes:

接收对界面中的指针的第一输入;receiving first input to a pointer in the interface;

响应于所述第一输入,显示密码输入界面;In response to the first input, display a password input interface;

接收在所述密码输入界面的第二输入;Receive the second input on the password input interface;

响应于所述第二输入,获取第一密码;In response to the second input, obtaining a first password;

根据所述第一密码,建立与第二电子设备的通讯连接;其中,所述第二电子设备获取的第二密码与所述第一密码匹配。According to the first password, a communication connection with a second electronic device is established; wherein the second password obtained by the second electronic device matches the first password.

第二方面,本申请实施例提供了一种即时通讯装置,设置于第一电子设备,所述第一电子设备具有触摸屏,所述装置包括:In a second aspect, embodiments of the present application provide an instant messaging device, which is provided on a first electronic device. The first electronic device has a touch screen. The device includes:

第一接收模块,用于接收对界面中的指针的第一输入;A first receiving module, configured to receive a first input to a pointer in the interface;

第一响应模块,用于响应于所述第一输入,显示密码输入界面;A first response module, configured to display a password input interface in response to the first input;

第二接收模块,用于接收在所述密码输入界面的第二输入;a second receiving module, configured to receive the second input on the password input interface;

第二响应模块,用于响应于所述第二输入,获取第一密码;a second response module, configured to obtain the first password in response to the second input;

连接建立模块,用于根据所述第一密码,建立与第二电子设备的通讯连接;其中,所述第二电子设备获取的第二密码与所述第一密码匹配。A connection establishment module, configured to establish a communication connection with a second electronic device according to the first password; wherein the second password obtained by the second electronic device matches the first password.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device. The electronic device includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor. The program or instructions are When executed by the processor, the steps of the method described in the first aspect are implemented.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, embodiments of the present application provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, the steps of the method described in the first aspect are implemented. .

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, embodiments of the present application provide a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the first aspect. the method described.

在本申请实施例中,接收对界面中的指针的第一输入;响应于所述第一输入,显示密码输入界面;接收在所述密码输入界面的第二输入;响应于所述第二输入,获取第一密码;根据所述第一密码,建立与第二电子设备的通讯连接;其中,所述第二电子设备获取的第二密码与所述第一密码匹配。这样,通过对界面中的指针的第一输入来触发建立即时通讯的功能,并通过对指针的第二输入设置第一密码,使得第一电子设备根据所述第一密码与第二电子设备建立通讯连接,简化了即时通讯的连接建立流程。In the embodiment of the present application, a first input to a pointer in the interface is received; in response to the first input, a password input interface is displayed; a second input in the password input interface is received; in response to the second input , obtain the first password; establish a communication connection with the second electronic device according to the first password; wherein the second password obtained by the second electronic device matches the first password. In this way, the function of establishing instant messaging is triggered by the first input of the pointer in the interface, and the first password is set by the second input of the pointer, so that the first electronic device establishes a relationship with the second electronic device according to the first password. Communication connection simplifies the connection establishment process of instant messaging.

附图说明Description of the drawings

图1是本申请实施例一提供的即时通讯方法的流程图;Figure 1 is a flow chart of an instant messaging method provided by Embodiment 1 of the present application;

图2是本申请实施例二提供的即时通讯方法的流程图;Figure 2 is a flow chart of the instant messaging method provided in Embodiment 2 of the present application;

图3a~图3g是本申请实施例提供的例子中第一智能手表显示界面的示意图;Figures 3a to 3g are schematic diagrams of the first smart watch display interface in the example provided by the embodiment of the present application;

图4a~图4b是本申请实施例提供的例子中第二智能手表显示界面的示意图;4a to 4b are schematic diagrams of the display interface of the second smart watch in the example provided by the embodiment of the present application;

图5是本申请实施例提供的即时通讯装置的方框示意图;Figure 5 is a block diagram of an instant messaging device provided by an embodiment of the present application;

图6是本申请实施例的电子设备的方框示意图。FIG. 6 is a block diagram of an electronic device according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the scope of protection of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that data so used are interchangeable under appropriate circumstances so that embodiments of the present application can be practiced in sequences other than those illustrated or described herein. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的即时通讯方法进行详细地说明。The instant messaging method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios.

如图1所示,本申请实施例提供的一种即时通讯方法,本申请实施例提供的即时通讯方法可以应用于第一电子设备,该第一电子设备具有触摸屏,示例性的,该第一电子设备例如可以是智能穿戴设备,如智能手表、智能手环等设备。As shown in Figure 1, an instant messaging method provided by an embodiment of the present application can be applied to a first electronic device. The first electronic device has a touch screen. Exemplarily, the first electronic device has a touch screen. The electronic device may be, for example, a smart wearable device, such as a smart watch, a smart bracelet, and other devices.

具体的,该方法包括如下步骤1100~步骤1500:Specifically, the method includes the following steps 1100 to 1500:

步骤1100,接收对界面中的指针的第一输入。Step 1100: Receive a first input to a pointer in the interface.

本步骤中,该第一电子设备可以实时监测是否接收到该第一输入,也可以启动屏幕后的一段时间内检测是否接收到该第一输入。唤醒该第一电子设备的操作例如可以是检测到该第一用户的手腕抬起,或者检测到该第一用户点击该第一电子设备的触摸屏。本实施例对此不作具体限定。In this step, the first electronic device can monitor whether the first input is received in real time, or can detect whether the first input is received within a period of time after starting the screen. The operation of waking up the first electronic device may be, for example, detecting that the first user's wrist is raised, or detecting that the first user clicks on the touch screen of the first electronic device. This embodiment does not specifically limit this.

在本实施例中,该第一输入为控制该指针向预设方向移动。例如,该触摸屏的界面上显示表盘,该第一用户可以控制该时针和/或分针和/或秒针顺时针或逆时针移动。In this embodiment, the first input is to control the pointer to move in a preset direction. For example, a dial is displayed on the interface of the touch screen, and the first user can control the hour hand and/or minute hand and/or second hand to move clockwise or counterclockwise.

步骤1200,响应于该第一输入,显示密码输入界面。Step 1200: In response to the first input, display a password input interface.

该第一电子设备在接收到该第一输入后,在触摸屏上显示该密码输入界面。示例性的,该密码输入界面可以为具有时针、分针和秒针的钟表显示界面。After receiving the first input, the first electronic device displays the password input interface on the touch screen. For example, the password input interface may be a clock display interface with hour hands, minute hands and second hands.

例如,该第一电子设备接收到该第一用户控制该时针和/或分针和/或秒针顺时针或逆时针移动的输入时,显示该具有时针、分针和秒针的密码输入界面。For example, when the first electronic device receives input from the first user to control the hour hand and/or minute hand and/or second hand to move clockwise or counterclockwise, the first electronic device displays the password input interface with the hour hand, minute hand and second hand.

步骤1300,接收在该密码输入界面的第二输入。Step 1300: Receive the second input on the password input interface.

该第一电子设备在显示该密码输入界面后,实时检测是否接收到该第一用户在该密码输入界面的第二输入。实际应用中,该第一电子设备可以预设等待时间,如果在该等待时间内未接收到该第一用户在该密码输入界面的第二输入,则退出该密码输入界面并息屏;若在该等待时间内接收到该第一用户在该密码输入界面的第二输入,则执行下述步骤1400。After displaying the password input interface, the first electronic device detects in real time whether a second input from the first user on the password input interface is received. In practical applications, the first electronic device can preset a waiting time. If the first user's second input on the password input interface is not received within the waiting time, the first electronic device will exit the password input interface and close the screen; If the second input from the first user on the password input interface is received within the waiting period, the following step 1400 is executed.

在本实施例中,该第二输入可以包括:分别设置该时针,分针和秒针指向的数字。例如,该第一用户可以按照顺序,依次设置该时针、该分针和该秒针指向的数字。例如,该第一用户可以按照顺序,将该时针设置为指向数字10,将该分针设置为指向数字6,将该秒针设置为指向数字3,作为该第二输入。In this embodiment, the second input may include: setting the numbers pointed by the hour hand, minute hand and second hand respectively. For example, the first user can set the numbers pointed by the hour hand, the minute hand and the second hand in sequence. For example, the first user can set the hour hand to point to the number 10, the minute hand to point to the number 6, and the second hand to point to the number 3 in sequence as the second input.

步骤1400,响应于该第二输入,获取第一密码。Step 1400, in response to the second input, obtain the first password.

本步骤中,该第一电子设备在接收到该第二输入后,响应于该第二输入,分别获取该时针,分针和秒针所指向的数字,按照顺序将该时针、分针和秒针分别指向的数字组成该第一密码。In this step, after receiving the second input, the first electronic device responds to the second input, obtains the numbers pointed by the hour hand, minute hand and second hand respectively, and sets the numbers pointed by the hour hand, minute hand and second hand respectively in sequence. Numbers make up the first password.

例如,该第二输入为该第一用户按照顺序,将该时针设置为指向数字10,将该分针设置为指向数字6,将该秒针设置为指向数字3,则该第一密码即为时针10点,分针6点,秒针3点。For example, the second input is that the first user sets the hour hand to point to the number 10, the minute hand to point to the number 6, and the second hand to point to the number 3 in sequence, then the first password is hour hand 10 point, minute hand at 6 o'clock, second hand at 3 o'clock.

步骤1500,根据该第一密码,建立与第二电子设备的通讯连接;其中,所述第二电子设备获取的第二密码与所述第一密码匹配。Step 1500: Establish a communication connection with a second electronic device based on the first password; wherein the second password obtained by the second electronic device matches the first password.

该第一电子设备获取到该第一密码后,根据该第一密码生成通讯连接建立请求;并将该通讯连接建立请求发送至服务器,以使该服务器根据该第一密码确定该第二电子设备。需要说明的是,该第二电子设备获取到的第二密码与该第一密码匹配,且根据该第二密码生成了通讯连接请求发送至服务器。该服务器在确定第二电子设备后,向该第一电子设备返回通讯连接建立响应,该第一电子设备根据该通讯连接建立响应建立与该第二电子设备的通讯连接。After obtaining the first password, the first electronic device generates a communication connection establishment request based on the first password; and sends the communication connection establishment request to the server, so that the server determines the second electronic device based on the first password . It should be noted that the second password obtained by the second electronic device matches the first password, and a communication connection request is generated and sent to the server based on the second password. After determining the second electronic device, the server returns a communication connection establishment response to the first electronic device. The first electronic device establishes a communication connection with the second electronic device according to the communication connection establishment response.

进一步地,本实施例中,该第一电子设备在获取该第一密码的同时,还可以获取该第一密码的设置时间。具体的,可以将该第一用户完成设置该第一密码的时间确定为该第一密码的设置时间。这样,该第一电子设备可以基于该第一密码的设置时间设定密码有效时间段,即,该第二电子设备在根据第一密码建立与第二电子设备的通讯连接时,该第二电子设备获取的第二密码除了要与该第一密码匹配外,获取该第二密码的时间也需要在该有效时间段内,也就是说,同时满足这两个条件的第二电子设备才可以与该第一电子设备建立通讯连接。Further, in this embodiment, while acquiring the first password, the first electronic device can also acquire the setting time of the first password. Specifically, the time when the first user completes setting the first password can be determined as the setting time of the first password. In this way, the first electronic device can set the password validity period based on the setting time of the first password. That is, when the second electronic device establishes a communication connection with the second electronic device based on the first password, the second electronic device In addition to the second password obtained by the device matching the first password, the time at which the second password is obtained also needs to be within the valid time period. That is to say, only the second electronic device that meets these two conditions at the same time can communicate with the second password. The first electronic device establishes a communication connection.

具体的,该服务器在确定能与该第一电子设备建立通讯连接的第二电子设备时,先判断该第二电子设备发送的通讯连接建立请求中的第二密码的设置时间是否在密码有效时间段内,若在密码有效时间段内,判断该第二电子设备发送的通讯连接建立请求中的第二密码是否与该第一电子设备的第一密码匹配,若匹配,则将该第二电子设备确定为能够与该第一电子设备建立通讯连接的设备。Specifically, when determining a second electronic device that can establish a communication connection with the first electronic device, the server first determines whether the setting time of the second password in the communication connection establishment request sent by the second electronic device is within the password validity time. period, if within the password validity period, it is determined whether the second password in the communication connection establishment request sent by the second electronic device matches the first password of the first electronic device, and if they match, the second electronic device is The device is determined as a device capable of establishing a communication connection with the first electronic device.

其中,密码有效时间段是指从该第一电子设备的第一密码的设置时间起的预设时间段内,在该时间段内,该第一用户设置的第一密码是有效的。可选地,该预设时间段可以是第一用户指定的,也可以是服务器内设置的,本实施例对此不作具体限定。The password validity period refers to a preset time period from the setting time of the first password of the first electronic device. During this time period, the first password set by the first user is valid. Optionally, the preset time period may be specified by the first user, or may be set in the server, which is not specifically limited in this embodiment.

该第一电子设备在与该第二电子设备建立通讯连接后,该第一用户即可实现与第二用户之间的即时通讯。After the first electronic device establishes a communication connection with the second electronic device, the first user can realize instant communication with the second user.

在本申请实施例中,接收对界面中的指针的第一输入;响应于所述第一输入,显示密码输入界面;接收在所述密码输入界面的第二输入;响应于所述第二输入,获取第一密码;根据所述第一密码,建立与第二电子设备的通讯连接;其中,所述第二电子设备获取的第二密码与所述第一密码匹配。这样,通过对界面中的指针的第一输入来触发建立即时通讯的功能,并通过对指针的第二输入设置第一密码,使得第一电子设备根据所述第一密码与第二电子设备建立通讯连接,简化了即时通讯的连接建立流程。In the embodiment of the present application, a first input to a pointer in the interface is received; in response to the first input, a password input interface is displayed; a second input in the password input interface is received; in response to the second input , obtain the first password; establish a communication connection with the second electronic device according to the first password; wherein the second password obtained by the second electronic device matches the first password. In this way, the function of establishing instant messaging is triggered by the first input of the pointer in the interface, and the first password is set by the second input of the pointer, so that the first electronic device establishes a relationship with the second electronic device according to the first password. Communication connection simplifies the connection establishment process of instant messaging.

在本申请的一些实施例中,为了提升用户在即时通讯过程中的真实感,该第一电子设备在建立与第二电子设备之间的通讯连接之后,如图2所示,该即时通讯方法还可以包括步骤2100~步骤2200:In some embodiments of the present application, in order to enhance the user's sense of reality during instant messaging, after the first electronic device establishes a communication connection with the second electronic device, as shown in Figure 2, the instant messaging method It may also include steps 2100 to 2200:

步骤2100,将第一用户的用户属性信息发送至该第二电子设备进行显示,并接收该第二电子设备发送的第二用户的用户属性信息。Step 2100: Send the user attribute information of the first user to the second electronic device for display, and receive the user attribute information of the second user sent by the second electronic device.

其中,该用户属性信息包括:位置信息,用户信息,气候信息中的至少一个。该位置信息例如可以是GPS位置信息,该用户信息例如可以包括该第一用户或该第二用户的性别、喜好、心情、年龄、照片等信息,该气候信息例如可以包括该第一用户或该第二用户所在地的温度、天气、风向等信息。在此不一一列举。The user attribute information includes: at least one of location information, user information, and climate information. The location information may be, for example, GPS location information. The user information may include, for example, the gender, preferences, mood, age, photos and other information of the first user or the second user. The climate information may include, for example, the first user or the second user. Temperature, weather, wind direction and other information of the second user's location. Not listed here.

步骤2200,在该第一电子设备的通讯界面显示该第二用户的用户属性信息。Step 2200: Display the user attribute information of the second user on the communication interface of the first electronic device.

该第一电子设备在显示该第二用户的用户属性信息时,具体可以在该通讯界面上与该位置信息对应的方向显示所述第二用户的用户信息和/或气候信息。同样的,在第二电子设备的通讯界面,会在与该第一用户的位置信息对应的方向显示该第一用户的用户信息和/或气候信息。When displaying the user attribute information of the second user, the first electronic device may specifically display the user information and/or climate information of the second user in a direction corresponding to the location information on the communication interface. Similarly, on the communication interface of the second electronic device, the user information and/or climate information of the first user will be displayed in the direction corresponding to the location information of the first user.

例如,若第二用户处于东南方,则在该第一电子设备的通讯界面的东南方位显示该第二用户的头像、所在地的温度、天气等。若第一用户处于西方,则在该第二电子设备的通讯界面的西方显示该第一用户的头像、所在地天气、温度,第一用户的心情等。For example, if the second user is located in the southeast, the second user's avatar, local temperature, weather, etc. are displayed in the southeast position of the communication interface of the first electronic device. If the first user is in the west, the first user's avatar, local weather, temperature, first user's mood, etc. are displayed on the west side of the communication interface of the second electronic device.

又例如,可以根据该第一用户和第二用户的相对位置,在彼此的通讯界面上显示该第一用户和该第二用户的位置。例如,该第一用户相对于该第二用户处于东边,相应的,该第二用户相对于该第一用户就处于西边,则在第一电子设备和第二电子设备上相对位置处显示该第一用户的头像和该第二用户的头像。For another example, the locations of the first user and the second user may be displayed on each other's communication interfaces based on the relative locations of the first user and the second user. For example, if the first user is located in the east relative to the second user, and correspondingly, the second user is located in the west relative to the first user, then the first electronic device and the second electronic device are displayed at relative positions. An avatar of one user and an avatar of the second user.

在本申请实施例中,在建立即时通讯连接后,该第一电子设备还可以将第一用户的用户属性信息发送至第二电子设备进行显示,并获取第二用户的用户属性信息在通讯界面进行显示,这样可以让用户之间更亲近,在通讯过程中更具有真实感。In this embodiment of the present application, after establishing an instant messaging connection, the first electronic device can also send the user attribute information of the first user to the second electronic device for display, and obtain the user attribute information of the second user on the communication interface. Display, which can make users closer to each other and make the communication process more realistic.

可以理解的是,本申请实施例的即时通讯方法既可以应用于单人通讯的场景,也可以应用于多人通讯的场景。It can be understood that the instant messaging method in the embodiment of the present application can be applied to both a single-person communication scenario and a multi-person communication scenario.

下面以一个具体的例子对应用于单人通讯场景的即时通讯方法进行说明。The following uses a specific example to illustrate the instant messaging method applied to a single-person communication scenario.

在本例中,该即时通讯方法例如由智能手表执行,其中,第一智能手表由第一用户佩戴,第二智能手表由第二用户佩戴。In this example, the instant messaging method is executed by a smart watch, for example, where the first smart watch is worn by the first user, and the second smart watch is worn by the second user.

具体的,在本例的即时通讯方法中,第一智能手表监控该第一智能手表的姿态。在检测到该第一用户抬起手腕时启动屏幕,如图3a所示。具体的,该第一智能手表可以通过内置的陀螺仪监控该第一智能手表的姿态。Specifically, in the instant messaging method of this example, the first smart watch monitors the posture of the first smart watch. The screen is launched when it is detected that the first user raises his or her wrist, as shown in Figure 3a. Specifically, the first smart watch can monitor the posture of the first smart watch through a built-in gyroscope.

第一用户控制秒针和/或时针和/或分针向预设方向移动,触发建立即时通讯的功能,显示密码输入界面。第一用户在该密码输入界面将时针设置为指向数字9,分针设置为指向数字2,秒针设置为指向数字7,此时该第一智能手表接收到该第二输入,获取该第一密码,该第一密码的内容为:时针9点,分针2点,秒针7点,如图3b所示。该第一用户可以设置该第一密码在一段时间内有效。The first user controls the second hand and/or the hour hand and/or the minute hand to move in a preset direction, triggering the function of establishing instant messaging and displaying the password input interface. The first user sets the hour hand to point to the number 9, the minute hand to point to the number 2, and the second hand to point to the number 7 on the password input interface. At this time, the first smart watch receives the second input and obtains the first password. The contents of the first password are: hour hand at 9 o'clock, minute hand at 2 o'clock, and second hand at 7 o'clock, as shown in Figure 3b. The first user can set the first password to be valid for a period of time.

如图4a所示,第二智能手表监控该第二智能手表的姿态。在检测到该第二用户抬起手腕时启动屏幕。具体的,该第二智能手表可以通过内置的陀螺仪监控该第二智能手表的姿态。As shown in Figure 4a, the second smart watch monitors the posture of the second smart watch. The screen is activated when the second user's wrist lift is detected. Specifically, the second smart watch can monitor the posture of the second smart watch through a built-in gyroscope.

第二用户控制秒针和/或时针和/或分针向预设方向移动,触发建立即时通讯的功能,显示密码输入界面。第二用户在该密码输入界面将时针设置为指向数字9,分针设置为指向数字2,秒针设置为指向数字7,此时该第二智能手表接收到第二用户的该第二输入,获取第二密码,该第二密码的内容为:时针9点,分针2点,秒针7点。其中,该第二密码的内容来自于第一用户,具体的,该第一用户可以通过面对面口述、短信、电话、语音通话等方式将该第二密码的内容告知该第二用户,本实施例对此不作具体限定。The second user controls the second hand and/or the hour hand and/or the minute hand to move in a preset direction, triggering the function of establishing instant messaging and displaying the password input interface. The second user sets the hour hand to point to the number 9, the minute hand to point to the number 2, and the second hand to point to the number 7 on the password input interface. At this time, the second smart watch receives the second input from the second user and obtains the second Second password, the content of the second password is: hour hand 9 o'clock, minute hand 2 o'clock, second hand 7 o'clock. The content of the second password comes from the first user. Specifically, the first user can inform the second user of the content of the second password through face-to-face dictation, text messages, phone calls, voice calls, etc. In this embodiment There is no specific limit on this.

该第一智能手表和第二智能手表都向服务器发送通讯连接建立请求,该服务器判断在密码有效时间内,第一智能手表发来的第一密码和第二智能手表发来的第二密码匹配,则建立第一智能手表和第二智能手表之间的通讯连接。Both the first smart watch and the second smart watch send communication connection establishment requests to the server. The server determines that within the password validity period, the first password sent by the first smart watch and the second password sent by the second smart watch match. , then a communication connection between the first smart watch and the second smart watch is established.

在第一智能手表和第二智能手表的通讯连接成功建立后,该第一智能手表可以将该第一用户的用户属性信息,如GPS位置信息、用户信息,包括性别、喜好等,气候信息,包括温度、天气,风向等信息发送至该第二智能手表。After the communication connection between the first smart watch and the second smart watch is successfully established, the first smart watch can store the first user's user attribute information, such as GPS location information, user information, including gender, preferences, etc., climate information, Information including temperature, weather, wind direction and other information is sent to the second smart watch.

第二智能手表在接收到第一用户的用户属性信息后,根据第二智能手表的指南针和GPS位置信息显示第一用户的真实地理位置,同时在通讯界面显示第一用户所在地的天气,第一用户的性别,和/或第一用户的创作内容,如心情、随手拍图片等,如图3c和图3d所示。After receiving the user attribute information of the first user, the second smart watch displays the real geographical location of the first user based on the compass and GPS location information of the second smart watch, and at the same time displays the weather of the first user's location on the communication interface. The gender of the user, and/or the creative content of the first user, such as mood, random pictures, etc., as shown in Figure 3c and Figure 3d.

同样的,该第二智能手表将该第二用户的用户属性信息,如GPS位置信息、用户信息,包括性别、喜好等,气候信息,包括温度、天气,风向等信息发送至该第一智能手表。Similarly, the second smart watch sends the second user's user attribute information, such as GPS location information, user information, including gender, preferences, etc., and climate information, including temperature, weather, wind direction, etc., to the first smart watch. .

第一智能手表在接收到第二用户的用户属性信息后,根据第一智能手表的指南针和GPS位置信息显示第二用户的真实地理位置,同时在通讯界面显示第二用户所在地的天气,第二用户的性别等,如图4b所示。After receiving the user attribute information of the second user, the first smart watch displays the second user's true geographical location based on the compass and GPS location information of the first smart watch, and at the same time displays the weather at the second user's location on the communication interface. The user’s gender, etc., as shown in Figure 4b.

需要说明的是,在显示用户的真实地理位置时,也可以根据两个用户的相对位置来显示,例如,对方在东南边,则在智能手表的通讯界面上,对方的头像也显示在东南边。It should be noted that when displaying the user's true geographical location, it can also be displayed based on the relative positions of the two users. For example, if the other party is in the southeast, then on the communication interface of the smart watch, the other party's avatar is also displayed in the southeast. .

根据该例子,在建立即时通讯时,第一电子设备接收对界面中的指针的第一输入;响应于该第一输入,显示密码输入界面;接收在该密码输入界面的第二输入;响应于该第二输入,获取第一密码;根据该第一密码,建立与第二电子设备的通讯连接;其中,所述第二电子设备获取的第二密码与所述第一密码匹配,并在建立通讯连接后,在通讯界面对用户属性信息进行显示。这样,通过对界面中的指针的第一输入来触发建立即时通讯的功能,并通过对指针的第二输入设置第一密码,使得第一电子设备根据所述第一密码与第二电子设备建立通讯连接,简化了即时通讯的连接建立流程,同时,可以让用户之间更亲近,在通讯过程中更具有真实感。According to this example, when establishing instant messaging, the first electronic device receives a first input to a pointer in the interface; responds to the first input, displays a password input interface; receives a second input in the password input interface; responds to The second input obtains the first password; according to the first password, a communication connection with the second electronic device is established; wherein the second password obtained by the second electronic device matches the first password and is established After the communication is connected, the user attribute information is displayed on the communication interface. In this way, the function of establishing instant messaging is triggered by the first input of the pointer in the interface, and the first password is set by the second input of the pointer, so that the first electronic device establishes a relationship with the second electronic device according to the first password. Communication connection simplifies the connection establishment process of instant messaging. At the same time, it can make users closer to each other and make the communication process more realistic.

下面以一个具体的例子对应用于多人通讯场景的即时通讯方法进行说明。The following uses a specific example to illustrate the instant messaging method applied to multi-person communication scenarios.

在本例中,该即时通讯方法例如由智能手表执行,其中,第一智能手表由第一用户佩戴,第二智能手表由第二用户佩戴,第三智能手表由第三用户佩戴,第四智能手表由第四用户佩戴。In this example, the instant messaging method is executed by a smart watch, for example, where the first smart watch is worn by the first user, the second smart watch is worn by the second user, the third smart watch is worn by the third user, and the fourth smart watch is worn by the third user. The watch is worn by a fourth user.

具体的,在本例的即时通讯方法中,第一智能手表监控该第一智能手表的姿态。在检测到该第一用户抬起手腕时启动屏幕,如图3a所示。具体的,该第一智能手表可以通过内置的陀螺仪监控该第一智能手表的姿态。Specifically, in the instant messaging method of this example, the first smart watch monitors the posture of the first smart watch. The screen is launched when it is detected that the first user raises his or her wrist, as shown in Figure 3a. Specifically, the first smart watch can monitor the posture of the first smart watch through a built-in gyroscope.

第一用户控制秒针和/或时针和/或分针向预设方向移动,触发建立即时通讯的功能,显示密码输入界面。第一用户在该密码输入界面将时针设置为指向数字9,分针设置为指向数字2,秒针设置为指向数字7,此时该第一智能手表接收到第一用户的该第二输入,获取第一,该第一密码的内容为:时针9点,分针2点,秒针7点,如图3b所示。该第一用户可以设置该第一密码在一段时间内有效。The first user controls the second hand and/or the hour hand and/or the minute hand to move in a preset direction, triggering the function of establishing instant messaging and displaying a password input interface. The first user sets the hour hand to point to the number 9, the minute hand to point to the number 2, and the second hand to point to the number 7 on the password input interface. At this time, the first smart watch receives the second input from the first user and obtains the second input. 1. The content of the first password is: hour hand at 9 o'clock, minute hand at 2 o'clock, and second hand at 7 o'clock, as shown in Figure 3b. The first user can set the first password to be valid for a period of time.

如图4a所示,第二智能手表监控该第二智能手表的姿态。在检测到该第二用户抬起手腕时启动屏幕。具体的,该第二智能手表可以通过内置的陀螺仪监控该第二智能手表的姿态。As shown in Figure 4a, the second smart watch monitors the posture of the second smart watch. The screen is activated when the second user's wrist lift is detected. Specifically, the second smart watch can monitor the posture of the second smart watch through a built-in gyroscope.

第二用户控制秒针和/或时针和/或分针向预设方向移动,触发建立即时通讯的功能,显示密码输入界面。第二用户在该密码输入界面将时针设置为指向数字9,分针设置为指向数字2,秒针设置为指向数字7,此时该第二智能手表接收到第二用户的该第二输入,获取第二密码,该第二密码的内容:时针9点,分针2点,秒针7点。其中,该第二密码的内容来自于第一用户,具体的,该第一用户可以通过面对面口述、短信、电话、语音通话等方式将该第二密码的内容告知该第二用户,本实施例对此不作具体限定。The second user controls the second hand and/or the hour hand and/or the minute hand to move in a preset direction, triggering the function of establishing instant messaging and displaying the password input interface. The second user sets the hour hand to point to the number 9, the minute hand to point to the number 2, and the second hand to point to the number 7 on the password input interface. At this time, the second smart watch receives the second input from the second user and obtains the second Second password, the content of the second password: hour hand at 9 o'clock, minute hand at 2 o'clock, and second hand at 7 o'clock. The content of the second password comes from the first user. Specifically, the first user can inform the second user of the content of the second password through face-to-face dictation, text messages, phone calls, voice calls, etc. In this embodiment There is no specific limit on this.

第三智能手表监控该第三智能手表的姿态。在检测到该第三用户抬起手腕时启动屏幕。具体的,该第三智能手表可以通过内置的陀螺仪监控该第三智能手表的姿态。The third smart watch monitors the posture of the third smart watch. The screen is activated when the third user's wrist is detected to be raised. Specifically, the third smart watch can monitor the posture of the third smart watch through a built-in gyroscope.

第三用户控制秒针和/或时针和/或分针向预设方向移动,触发建立即时通讯的功能,显示密码输入界面。第三用户在该密码输入界面将时针设置为指向数字9,分针设置为指向数字2,秒针设置为指向数字7,此时该第三智能手表接收到第三用户的该第三输入,获取第三密码,该第三密码的内容为:时针9点,分针2点,秒针7点。其中,该第三密码的内容来自于第一用户或第二用户,具体的,该第一用户或该第二用户可以通过面对面口述、短信、电话、语音通话等方式将该第三密码的内容告知该第三用户,本实施例对此不作具体限定。The third user controls the second hand and/or the hour hand and/or the minute hand to move in a preset direction, triggering the function of establishing instant messaging and displaying the password input interface. The third user sets the hour hand to point to the number 9, the minute hand to point to the number 2, and the second hand to point to the number 7 on the password input interface. At this time, the third smart watch receives the third input from the third user and obtains the third Three passwords, the contents of the third password are: hour hand at 9 o'clock, minute hand at 2 o'clock, and second hand at 7 o'clock. The content of the third password comes from the first user or the second user. Specifically, the first user or the second user can provide the content of the third password through face-to-face dictation, text messages, phone calls, voice calls, etc. Inform the third user that this embodiment does not specifically limit this.

第四智能手表监控该第四智能手表的姿态。在检测到该第四用户抬起手腕时启动屏幕。具体的,该第四智能手表可以通过内置的陀螺仪监控该第四智能手表的姿态。The fourth smart watch monitors the posture of the fourth smart watch. The screen is activated when the fourth user's wrist lift is detected. Specifically, the fourth smart watch can monitor the posture of the fourth smart watch through a built-in gyroscope.

第四用户控制秒针和/或时针和/或分针向预设方向移动,触发建立即时通讯的功能,显示密码输入界面。第四用户在该密码输入界面将时针设置为指向数字9,分针设置为指向数字2,秒针设置为指向数字7,此时该第四智能手表接收到第四用户的该第四输入,获取第四密码,该第四密码的内容为:时针9点,分针2点,秒针7点。其中,该第四密码的内容来自于第一用户或第二用户或第三用户,具体的,该第一用户或第二用户或第三用户可以通过面对面口述、短信、电话、语音通话等方式将该第四密码的内容告知该第四用户,本实施例对此不作具体限定。The fourth user controls the second hand and/or the hour hand and/or the minute hand to move in a preset direction, triggering the function of establishing instant messaging and displaying the password input interface. The fourth user sets the hour hand to point to the number 9, the minute hand to point to the number 2, and the second hand to point to the number 7 on the password input interface. At this time, the fourth smart watch receives the fourth input from the fourth user and obtains the third Four codes, the content of the fourth code is: hour hand 9 o'clock, minute hand 2 o'clock, second hand 7 o'clock. Among them, the content of the fourth password comes from the first user, the second user, or the third user. Specifically, the first user, the second user, or the third user can communicate through face-to-face dictation, text messages, phone calls, voice calls, etc. The fourth user is informed of the content of the fourth password, which is not specifically limited in this embodiment.

该第一智能手表、第二智能手表、第三智能手表和第四智能手表都向服务器发送通讯连接建立请求,该服务器判断在密码有效时间内,第一智能手表、第二智能手表、第三智能手表和第四智能手表发来的密码匹配,则建立第一智能手表、第二智能手表、第三智能手表和第四智能手表之间的通讯连接。The first smart watch, the second smart watch, the third smart watch and the fourth smart watch all send communication connection establishment requests to the server. The server determines that within the password validity period, the first smart watch, the second smart watch and the third smart watch If the passwords sent by the smart watch and the fourth smart watch match, a communication connection between the first smart watch, the second smart watch, the third smart watch and the fourth smart watch is established.

在第一智能手表、第二智能手表、第三智能手表和第四智能手表之间的通讯连接成功建立后,该第一智能手表可以将该第一用户的用户属性信息,如GPS位置信息、用户信息,包括性别、喜好等,气候信息,包括温度、天气,风向等信息发送至该第二智能手表、第三智能手表和第四智能手表。After the communication connection between the first smart watch, the second smart watch, the third smart watch and the fourth smart watch is successfully established, the first smart watch can store the user attribute information of the first user, such as GPS location information, User information, including gender, preferences, etc., and climate information, including temperature, weather, wind direction and other information are sent to the second smart watch, the third smart watch and the fourth smart watch.

第二智能手表、第三智能手表和第四智能手表在接收到第一用户的用户属性信息后,根据各自的指南针和GPS位置信息显示第一用户的真实地理位置,同时在通讯界面显示第一用户所在地的天气,第一用户的性别,和/或第一用户的创作内容,如心情、随手拍图片等。After receiving the user attribute information of the first user, the second smart watch, the third smart watch and the fourth smart watch display the real geographical location of the first user based on their respective compasses and GPS location information, and at the same time display the first user on the communication interface. The weather at the user's location, the first user's gender, and/or the first user's creative content, such as mood, random pictures, etc.

同样的,该第二智能手表将该第二用户的用户属性信息,如GPS位置信息、用户信息,包括性别、喜好等,气候信息,包括温度、天气,风向等信息发送至该第一智能手表、第三智能手表和第四智能手表。Similarly, the second smart watch sends the second user's user attribute information, such as GPS location information, user information, including gender, preferences, etc., and climate information, including temperature, weather, wind direction, etc., to the first smart watch. , the third smart watch and the fourth smart watch.

第一智能手表、第三智能手表和第四智能手表在接收到第二用户的用户属性信息后,根据各自的指南针和GPS位置信息显示第二用户的真实地理位置,同时在通讯界面显示第二用户所在地的天气,第二用户的性别等。After receiving the user attribute information of the second user, the first smart watch, the third smart watch and the fourth smart watch display the second user's true geographical location based on their respective compasses and GPS location information, and at the same time display the second user's real geographical location on the communication interface. The weather at the user's location, the gender of the second user, etc.

该第三智能手表将该第三用户的用户属性信息,如GPS位置信息、用户信息,包括性别、喜好等,气候信息,包括温度、天气,风向等信息发送至该第一智能手表、第二智能手表和第四智能手表。The third smart watch sends the user attribute information of the third user, such as GPS location information, user information, including gender, preferences, etc., and climate information, including temperature, weather, wind direction, etc., to the first smart watch and the second smart watch. Smart watch and fourth smart watch.

第一智能手表、第二智能手表和第四智能手表在接收到第三用户的用户属性信息后,根据各自的指南针和GPS位置信息显示第三用户的真实地理位置,同时在通讯界面显示第三用户所在地的天气,第三用户的性别等。After receiving the user attribute information of the third user, the first smart watch, the second smart watch and the fourth smart watch display the third user's true geographical location based on their respective compasses and GPS location information, and at the same time display the third user's real geographical location on the communication interface. The weather at the user's location, the gender of the third user, etc.

该第四智能手表将该第四用户的用户属性信息,如GPS位置信息、用户信息,包括性别、喜好等,气候信息,包括温度、天气,风向等信息发送至该第一智能手表、第二智能手表和第三智能手表。The fourth smart watch sends the user attribute information of the fourth user, such as GPS location information, user information, including gender, preferences, etc., and climate information, including temperature, weather, wind direction, etc., to the first smart watch and the second smart watch. smart watches and third smart watches.

该第一智能手表、第二智能手表和第三智能手表在接收到第四用户的用户属性信息后,根据各自的指南针和GPS位置信息显示第四用户的真实地理位置,同时在通讯界面显示第四用户所在地的天气,第四用户的性别等,如图3e所示。After receiving the user attribute information of the fourth user, the first smart watch, the second smart watch and the third smart watch display the real geographical location of the fourth user based on their respective compasses and GPS location information, and at the same time display the third smart watch on the communication interface. The weather at the location of the fourth user, the gender of the fourth user, etc., as shown in Figure 3e.

在实际应用中,用户的心情可以以图标或表情进行显示,如图3f所示,将心情图标点开后,可以看到用户发表该心情的简单说明。In practical applications, the user's mood can be displayed as an icon or an expression, as shown in Figure 3f. After clicking on the mood icon, you can see a simple description of the user's mood.

以第一智能手表为例,如图3g所示,在显示用户属性信息时,可以将第一用户显示在通讯界面中心,第二、第三、第四用户分别根据真实地理位置进行显示,当其中一个用户分享信息时,第一用户的头像可以旋转至面相对应的用户头像,进行交流。这样,可以模仿真实的面对面交流,让用户在通讯过程中更具有真实感。Taking the first smart watch as an example, as shown in Figure 3g, when displaying user attribute information, the first user can be displayed in the center of the communication interface, and the second, third, and fourth users can be displayed according to their real geographical locations. When one of the users shares information, the first user's avatar can be rotated to face the corresponding user's avatar for communication. In this way, real face-to-face communication can be simulated, making the communication process more realistic for users.

根据该例子,在建立即时通讯时,第一电子设备接收第一用户输入的第一输入;响应于该第一输入,显示密码输入界面;接收在该密码输入界面的第二输入;响应于该第二输入,获取第一密码;根据该第一密码,建立与其他电子设备的通讯连接,其中,其他电子设备获取的密码均与该第一密码匹配,并在建立通讯连接后,在通讯界面对用户属性信息进行显示。这样,通过对界面中的指针的第一输入来触发建立即时通讯的功能,并通过对指针的第二输入设置第一密码,使得第一电子设备根据所述第一密码与第二电子设备建立通讯连接,简化了即时通讯的连接建立流程,同时,可以让用户之间更亲近,在通讯过程中更具有真实感。According to this example, when establishing instant messaging, the first electronic device receives a first input from the first user; in response to the first input, displays a password input interface; receives a second input in the password input interface; in response to the The second input is to obtain the first password; based on the first password, a communication connection with other electronic devices is established, where the passwords obtained by other electronic devices all match the first password, and after the communication connection is established, the communication interface Display user attribute information. In this way, the function of establishing instant messaging is triggered by the first input of the pointer in the interface, and the first password is set by the second input of the pointer, so that the first electronic device establishes a relationship with the second electronic device according to the first password. Communication connection simplifies the connection establishment process of instant messaging. At the same time, it can make users closer to each other and make the communication process more realistic.

需要说明的是,本申请实施例提供的即时通讯方法,执行主体可以为即时通讯装置,或者,或者该即时通讯装置中的用于执行建立即时通讯的方法的控制模块。本申请实施例中以即时通讯装置执行建立即时通讯的方法为例,说明本申请实施例提供的即时通讯方法。It should be noted that, for the instant messaging method provided by the embodiments of the present application, the execution subject may be an instant messaging device, or a control module in the instant messaging device for executing the method of establishing instant messaging. In the embodiment of this application, the instant messaging device performs the method of establishing instant messaging as an example to illustrate the instant messaging method provided by the embodiment of this application.

与上述方法实施例相对应,本实施例还提供一种即时通讯装置,设置于第一电子设备中,所述第一电子设备具有触摸屏,参见图5,该即时通讯装置500包括:第一接收模块510,第一响应模块520,第二接收模块530,第二响应模块540和连接建立模块550。Corresponding to the above method embodiment, this embodiment also provides an instant messaging device, which is provided in a first electronic device. The first electronic device has a touch screen. Referring to Figure 5, the instant messaging device 500 includes: a first receiving device module 510, the first response module 520, the second receiving module 530, the second response module 540 and the connection establishment module 550.

其中,第一接收模块510,用于接收对界面中的指针的第一输入;第一响应模块520,用于响应于所述第一输入,显示密码输入界面;第二接收模块530,用于接收在所述密码输入界面的第二输入;第二响应模块540,用于响应于所述第二输入,获取第一密码;连接建立模块550,用于根据所述第一密码,建立与第二电子设备的通讯连接;其中,所述第二电子设备获取的第二密码与所述第一密码匹配。Among them, the first receiving module 510 is used to receive the first input to the pointer in the interface; the first response module 520 is used to display the password input interface in response to the first input; the second receiving module 530 is used to Receive the second input on the password input interface; the second response module 540 is used to obtain the first password in response to the second input; the connection establishment module 550 is used to establish the connection with the third password according to the first password. Communication connection between two electronic devices; wherein the second password obtained by the second electronic device matches the first password.

其中,所述第一输入为控制所述指针向预设方向移动。Wherein, the first input is to control the pointer to move in a preset direction.

在本申请的一些实施例中,所述密码输入界面为具有时针,分针和秒针的钟表显示界面;所述第二输入为:分别设置所述时针,分针和秒针指向的数字;所述第二响应模块540具体用于:分别获取所述时针,分针和秒针所指向的数字,按照顺序将所述时针、分针和秒针分别指向的数字组成所述第一密码。In some embodiments of the present application, the password input interface is a clock display interface with hour hand, minute hand and second hand; the second input is: setting the numbers pointed by the hour hand, minute hand and second hand respectively; the second The response module 540 is specifically configured to: obtain the numbers pointed by the hour hand, minute hand and second hand respectively, and compose the first password according to the order of the numbers pointed by the hour hand, minute hand and second hand.

在本申请的一些实施例中,所述连接建立模块550具体用于:根据所述第一密码生成通讯连接建立请求;将所述通讯连接建立请求发送至服务器;以使所述服务器根据所述第一密码确定所述第二电子设备;根据所述服务器返回的通讯连接建立响应,建立与所述第二电子设备的通讯连接。In some embodiments of the present application, the connection establishment module 550 is specifically configured to: generate a communication connection establishment request according to the first password; send the communication connection establishment request to the server; so that the server can make the communication connection establishment request according to the first password. The first password determines the second electronic device; and establishes a communication connection with the second electronic device according to the communication connection establishment response returned by the server.

在本申请的一些实施例中,所述即时通讯装置500还可以包括:通信模块,用于将第一用户的用户属性信息发送至所述第二电子设备进行显示,并接收所述第二电子设备发送的第二用户的用户属性信息;显示模块,用于在所述第一电子设备的通讯界面显示所述第二用户的用户属性信息;其中,所述用户属性信息包括:位置信息,用户信息,气候信息中的至少一个。In some embodiments of the present application, the instant messaging device 500 may further include: a communication module for sending the user attribute information of the first user to the second electronic device for display, and receiving the second electronic device for display. The user attribute information of the second user sent by the device; a display module configured to display the user attribute information of the second user on the communication interface of the first electronic device; wherein the user attribute information includes: location information, user information, at least one of climate information.

具体的,所述显示模块具体可以用于:在所述通讯界面上与所述位置信息对应的方向显示所述第二用户的用户信息和/或气候信息。Specifically, the display module may be configured to display the user information and/or climate information of the second user on the communication interface in a direction corresponding to the location information.

本申请实施例中的即时通讯装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobilepersonal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,本申请实施例不作具体限定。The instant messaging device in the embodiment of the present application may be a device, or may be a component, integrated circuit, or chip in a terminal. The device may be a mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (personal digital assistant). , PDA), etc., the embodiments of this application are not specifically limited.

本申请实施例中的即时通讯装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The instant messaging device in the embodiment of the present application may be a device with an operating system. The operating system can be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.

本申请实施例提供的即时通讯装置能够实现图1至图2的方法实施例中即时通讯装置实现的各个过程,为避免重复,这里不再赘述。The instant messaging device provided by the embodiment of the present application can implement each process implemented by the instant messaging device in the method embodiment of Figures 1 to 2. To avoid duplication, the details will not be described here.

在本申请实施例中,在接收对界面中的指针的第一输入后,响应于该第一输入,显示密码输入界面;接收在所述密码输入界面的第二输入;响应于该第二输入,获取第一密码;并根据该第一密码,建立与第二电子设备的通讯连接;其中,所述第二电子设备获取的第二密码与所述第一密码匹配。这样,通过对界面中的指针的第一输入来触发建立即时通讯的功能,并通过对指针的第二输入设置第一密码,使得第一电子设备根据所述第一密码与第二电子设备建立通讯连接,简化了即时通讯的连接建立流程。In the embodiment of the present application, after receiving the first input to the pointer in the interface, in response to the first input, the password input interface is displayed; the second input in the password input interface is received; in response to the second input , obtain the first password; and establish a communication connection with the second electronic device according to the first password; wherein the second password obtained by the second electronic device matches the first password. In this way, the function of establishing instant messaging is triggered by the first input of the pointer in the interface, and the first password is set by the second input of the pointer, so that the first electronic device establishes a relationship with the second electronic device according to the first password. Communication connection simplifies the connection establishment process of instant messaging.

可选的,本申请实施例还提供一种电子设备,包括处理器610,存储器609,存储在存储器609上并可在该处理器610上运行的程序或指令,该程序或指令被处理器610执行时实现上述即时通讯方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, this embodiment of the present application also provides an electronic device, including a processor 610, a memory 609, and a program or instruction stored in the memory 609 and executable on the processor 610. The program or instruction is executed by the processor 610. During execution, each process of the above embodiment of the instant messaging method is implemented, and the same technical effect can be achieved. To avoid repetition, details will not be described here.

需要注意的是,本申请实施例中的电子设备包括上述该的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

图6为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 6 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

该电子设备600包括但不限于:射频单元601、网络模块602、音频输出单元603、输入单元604、传感器605、显示单元606、用户输入单元607、接口单元608、存储器609、以及处理器610等部件。The electronic device 600 includes but is not limited to: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, processor 610, etc. part.

本领域技术人员可以理解,电子设备600还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 600 may also include a power supply (such as a battery) that supplies power to various components. The power supply may be logically connected to the processor 610 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions. The structure of the electronic device shown in Figure 6 does not constitute a limitation on the electronic device. The electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .

其中,处理器610,用于接收对界面中的指针的第一输入;响应于所述第一输入,显示密码输入界面;接收在所述密码输入界面的第二输入;响应于所述第二输入,获取第一密码;根据所述第一密码,建立与第二电子设备的通讯连接;其中,所述第二电子设备获取的第二密码与所述第一密码匹配。The processor 610 is configured to receive a first input to a pointer in the interface; in response to the first input, display a password input interface; to receive a second input in the password input interface; in response to the second Enter to obtain the first password; establish a communication connection with the second electronic device according to the first password; wherein the second password obtained by the second electronic device matches the first password.

其中,所述第一输入为控制所述指针向预设方向移动。所述密码输入界面为具有时针,分针和秒针的钟表显示界面;所述第二输入为:分别设置所述时针,分针和秒针指向的数字。Wherein, the first input is to control the pointer to move in a preset direction. The password input interface is a clock display interface with hour hand, minute hand and second hand; the second input is: setting the numbers pointed by the hour hand, minute hand and second hand respectively.

在本申请实施例中,接收对界面中的指针的第一输入;响应于所述第一输入,显示密码输入界面;接收在所述密码输入界面的第二输入;响应于所述第二输入,获取第一密码;根据所述第一密码,建立与第二电子设备的通讯连接;其中,所述第二电子设备获取的第二密码与所述第一密码匹配。这样,通过对界面中的指针的第一输入来触发建立即时通讯的功能,并通过对指针的第二输入设置第一密码,使得第一电子设备根据所述第一密码与第二电子设备建立通讯连接,简化了即时通讯的连接建立流程。In the embodiment of the present application, a first input to a pointer in the interface is received; in response to the first input, a password input interface is displayed; a second input in the password input interface is received; in response to the second input , obtain the first password; establish a communication connection with the second electronic device according to the first password; wherein the second password obtained by the second electronic device matches the first password. In this way, the function of establishing instant messaging is triggered by the first input of the pointer in the interface, and the first password is set by the second input of the pointer, so that the first electronic device establishes a relationship with the second electronic device according to the first password. Communication connection simplifies the connection establishment process of instant messaging.

本申请实施例还提供一种可读存储介质,该可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述即时通讯方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the program or instructions are executed by a processor, each process of the instant messaging method embodiment is implemented and the same can be achieved. To avoid repetition, the technical effects will not be repeated here.

其中,该处理器为上述实施例中该的电子设备中的处理器。该可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device in the above embodiment. The readable storage medium includes computer readable storage media, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.

本申请实施例另提供了一种芯片,该芯片包括处理器和通信接口,该通信接口和该处理器耦合,该处理器用于运行程序或指令,实现上述即时通讯方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above instant messaging method embodiment, and can achieve the same technical effect, so to avoid repetition, we will not repeat them here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions may be performed, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例该的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk , CD), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of various embodiments of the present application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.

Claims (7)

CN202110589651.9A2021-05-272021-05-27 Instant messaging methods, devices and electronic equipmentActiveCN113315694B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN202110589651.9ACN113315694B (en)2021-05-272021-05-27 Instant messaging methods, devices and electronic equipment
PCT/CN2022/094373WO2022247771A1 (en)2021-05-272022-05-23Instant messaging method and apparatus and electronic device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110589651.9ACN113315694B (en)2021-05-272021-05-27 Instant messaging methods, devices and electronic equipment

Publications (2)

Publication NumberPublication Date
CN113315694A CN113315694A (en)2021-08-27
CN113315694Btrue CN113315694B (en)2023-11-10

Family

ID=77375879

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110589651.9AActiveCN113315694B (en)2021-05-272021-05-27 Instant messaging methods, devices and electronic equipment

Country Status (2)

CountryLink
CN (1)CN113315694B (en)
WO (1)WO2022247771A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113315694B (en)*2021-05-272023-11-10维沃移动通信有限公司 Instant messaging methods, devices and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103368617A (en)*2013-06-282013-10-23东莞宇龙通信科技有限公司 Smart device interaction system and smart device interaction method
CN104717356A (en)*2013-12-172015-06-17Lg电子株式会社Mobile terminal and controlling method thereof
JP2017044574A (en)*2015-08-262017-03-02カシオ計算機株式会社Communication device, timepiece and communication method
CN107850869A (en)*2015-07-092018-03-27Lg 电子株式会社Intelligent watch and the method for controlling intelligent watch
CN109670818A (en)*2019-02-152019-04-23广东小天才科技有限公司Payment method and payment system for smart watch
CN109816381A (en)*2019-02-152019-05-28广东小天才科技有限公司Payment method of smart watch and smart watch
CN111538452A (en)*2020-04-172020-08-14维沃移动通信有限公司Interface display method and device and electronic equipment
CN111586889A (en)*2020-04-272020-08-25维沃移动通信有限公司Equipment connection method and device and electronic equipment
CN112464219A (en)*2020-12-102021-03-09歌尔科技有限公司Screen locking password encryption and decryption method and device, smart watch and medium
WO2021047477A1 (en)*2019-09-092021-03-18科大国盾量子技术股份有限公司Key allocation method and system, mobile terminal and wearable device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104640233B (en)*2015-01-282018-12-21广州三星通信技术研究有限公司The methods, devices and systems of communication connection are established between electronic equipment
US10663925B2 (en)*2015-03-012020-05-26Andrey AbramovHybrid smart watch multiple sources of time, multiple power sources, and multiple time indicator mechanisms
WO2017003043A1 (en)*2015-07-012017-01-05엘지전자 주식회사Mobile terminal and control method therefor
KR20170014297A (en)*2015-07-292017-02-08엘지전자 주식회사Watch-type mobile terminal and method for controlling the same
WO2020227133A1 (en)*2019-05-062020-11-12Apple Inc.Standalone wearable device configuration and interface
CN113315694B (en)*2021-05-272023-11-10维沃移动通信有限公司 Instant messaging methods, devices and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103368617A (en)*2013-06-282013-10-23东莞宇龙通信科技有限公司 Smart device interaction system and smart device interaction method
CN104717356A (en)*2013-12-172015-06-17Lg电子株式会社Mobile terminal and controlling method thereof
CN107850869A (en)*2015-07-092018-03-27Lg 电子株式会社Intelligent watch and the method for controlling intelligent watch
JP2017044574A (en)*2015-08-262017-03-02カシオ計算機株式会社Communication device, timepiece and communication method
CN109670818A (en)*2019-02-152019-04-23广东小天才科技有限公司Payment method and payment system for smart watch
CN109816381A (en)*2019-02-152019-05-28广东小天才科技有限公司Payment method of smart watch and smart watch
WO2021047477A1 (en)*2019-09-092021-03-18科大国盾量子技术股份有限公司Key allocation method and system, mobile terminal and wearable device
CN111538452A (en)*2020-04-172020-08-14维沃移动通信有限公司Interface display method and device and electronic equipment
CN111586889A (en)*2020-04-272020-08-25维沃移动通信有限公司Equipment connection method and device and electronic equipment
CN112464219A (en)*2020-12-102021-03-09歌尔科技有限公司Screen locking password encryption and decryption method and device, smart watch and medium

Also Published As

Publication numberPublication date
CN113315694A (en)2021-08-27
WO2022247771A1 (en)2022-12-01

Similar Documents

PublicationPublication DateTitle
CN107016038B (en)Method of executing application and electronic device supporting the same
US12233345B2 (en)In-game status bar
KR102481687B1 (en)Job information processing method and electronic device supporting the same
US20170041272A1 (en)Electronic device and method for transmitting and receiving content
WO2016029417A1 (en)Method and apparatus for pushing and displaying message
KR102635945B1 (en)Method for managing a schedule and electronic apparatus therefor
US20170111308A1 (en)Electronic device and method for processing message
CN110023985A (en)Generating and displaying customized avatar in electronic message
US20170289074A1 (en)Method for messenger operation based on location information and electronic device supporting the same
KR20170093027A (en)Method for processing voice instructions and electronic device supporting the same
CN106209964A (en)Electronic installation and the method being used for controlling the execution of application in an electronic
CN110199503A (en)Method for generating message and wearable electronic equipment for supporting this method
KR20170110469A (en)A method for providing a video call and an electronic device therefor
US20160321444A1 (en)Electronic device for providing short-cut user interface and method therefor
US12147818B2 (en)Electronic apparatus for launching an application in a state where a lock function is set and operating method thereof
US10080108B2 (en)Electronic device and method for updating point of interest
KR20170060782A (en)Electronic device and method for providing call service
US20250126181A1 (en)Context surfacing in collections
KR20180010071A (en)Method for managing a mail and electronic apparatus therefor
KR20170053065A (en)Electronic device and method for providing recommendation object
US11625410B2 (en)Electronic device and method for providing information on work and personal life
KR20170052003A (en)Electronic device having multiple displays and method for controlling thereof
US11593826B1 (en)Messaging and gaming applications rewards
CN113315694B (en) Instant messaging methods, devices and electronic equipment
KR102323797B1 (en)Electronic device and method for sharing information of the same

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp