Movatterモバイル変換


[0]ホーム

URL:


CN111641928A - Method for determining close contact person, terminal equipment and server - Google Patents

Method for determining close contact person, terminal equipment and server
Download PDF

Info

Publication number
CN111641928A
CN111641928ACN202010456272.8ACN202010456272ACN111641928ACN 111641928 ACN111641928 ACN 111641928ACN 202010456272 ACN202010456272 ACN 202010456272ACN 111641928 ACN111641928 ACN 111641928A
Authority
CN
China
Prior art keywords
user
identity
terminal equipment
terminal device
server
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
Application number
CN202010456272.8A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010456272.8ApriorityCriticalpatent/CN111641928A/en
Publication of CN111641928ApublicationCriticalpatent/CN111641928A/en
Priority to PCT/CN2021/086394prioritypatent/WO2021238452A1/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明实施例公开了一种确定密切接触者的方法、终端设备及服务器,应用于通信技术领域,可以解决判断密切接触者的方法会存在判断不够精准的问题。该方法包括:终端设备向服务器发送请求消息,请求消息用于请求目标用户的身份标识;终端设备接收服务器发送的目标用户的身份标识;若终端设备本地存储的身份标识中存在与目标用户的身份标识匹配的身份标识,则确定终端设备的用户为目标用户的密切接触者;本地存储的身份标识为与终端设备建立过短距离无线通信连接的设备的用户的身份标识。

Figure 202010456272

The embodiments of the present invention disclose a method, a terminal device and a server for determining close contacts, which are applied to the field of communication technology and can solve the problem that the method for judging close contacts is not accurate enough. The method includes: the terminal device sends a request message to the server, where the request message is used to request the identity of the target user; the terminal device receives the identity of the target user sent by the server; if there is an identity of the target user in the locally stored identity of the terminal device If the matching ID is identified, the user of the terminal device is determined to be a close contact of the target user; the locally stored ID is the ID of the user of the device that has established a short-range wireless communication connection with the terminal device.

Figure 202010456272

Description

Translated fromChinese
一种确定密切接触者的方法、终端设备及服务器A method, terminal device and server for determining close contacts

技术领域technical field

本发明实施例涉及通信技术领域,尤其涉及一种确定密切接触者的方法、终端设备及服务器。Embodiments of the present invention relate to the field of communications technologies, and in particular, to a method, terminal device, and server for determining close contacts.

背景技术Background technique

新冠肺炎(corona virus disease 2019,COVID-19)防控工作一直持续,在密切接触者判断上,传统方法只能依赖于采用运营商信号路径或者用户手填路径来生成二维码的方式来判断是否是密切接触者。The prevention and control of COVID-19 (corona virus disease 2019, COVID-19) has continued. In terms of judging close contacts, the traditional method can only rely on the method of generating a QR code by using the operator's signal path or the user's hand-filled path to judge. whether they are close contacts.

运营商信号路径判断是否是密切接触者(是否是新冠肺炎感染着的密切接触者)的具体方式为:基于手机信号塔识别用户手机信号14日内途径的城市是否为重疫区,以此来判断手机用户是否为新冠肺炎感染者的密切接触者。用户主动填路径判断是否是密切接触者的具体方式为:手机用户在手机上主动填写每日途径的路线(含交通工具及班次)及地址,或者用户用手机扫描途径路径上的二维码,如果同路线及地址有用户被诊断为新冠肺炎感染者,则途径此路线及地址的所有用户均为密切接触者,需要在家隔离并做检测。The specific method of the operator's signal path to judge whether it is a close contact (whether it is a close contact of the new coronary pneumonia infection) is: based on the mobile phone tower to identify whether the city that the user's mobile phone signal passes through within 14 days is a severe epidemic area, so as to judge Whether the mobile phone user is a close contact of a person infected with new coronary pneumonia. The specific method for the user to fill in the path actively to determine whether it is a close contact is: the mobile phone user actively fills in the daily route (including means of transportation and shifts) and address on the mobile phone, or the user scans the QR code on the route with the mobile phone. If a user at the same route and address is diagnosed as a person with new coronary pneumonia, all users who pass through this route and address are close contacts and need to be isolated at home and tested.

但是采用运营商信号路径的方法,只能识别出用户在某个城市,而不能精确到街道,对于同个城市不同区无法处理,而采用用户手填路径的方法,一些用户可能漏填、填写错或故意不填,因此现有的判断密切接触者的方法会存在判断不够精准的问题。However, using the operator's signal path method can only identify the user in a certain city, but cannot be accurate to the street. It cannot be processed for different districts in the same city. However, using the method of manually filling in the path, some users may miss or fill in the path. wrong or intentionally omitted, so the existing methods for judging close contacts will have the problem of inaccurate judgment.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种确定密切接触者的方法、终端设备及服务器,用以解决现有的判断密切接触者的方法会存在判断不够精准的问题。Embodiments of the present invention provide a method, a terminal device, and a server for determining a close contact, so as to solve the problem of inaccurate determination in the existing method for determining a close contact.

为了解决上述技术问题,本发明实施例是这样实现的:In order to solve the above technical problems, the embodiments of the present invention are implemented as follows:

第一方面,提供一种确定密切接触者的方法,包括:In a first aspect, a method for identifying close contacts is provided, comprising:

终端设备向服务器发送请求消息,所述请求消息用于请求目标用户的身份标识;The terminal device sends a request message to the server, where the request message is used to request the identity of the target user;

所述终端设备接收所述服务器发送的所述目标用户的身份标识;receiving, by the terminal device, the identity identifier of the target user sent by the server;

若所述终端设备本地存储的身份标识中存在与所述目标用户的身份标识匹配的身份标识,则确定所述终端设备的用户为所述目标用户的密切接触者;If there is an identity identifier that matches the identity identifier of the target user in the identity identifier stored locally by the terminal device, determining that the user of the terminal device is a close contact of the target user;

所述本地存储的身份标识为与所述终端设备建立过短距离无线通信连接的设备的用户的身份标识。The locally stored identity is an identity of a user of a device that has established a short-range wireless communication connection with the terminal device.

第二方面,提供一种确定密切接触者的方法,包括:In a second aspect, a method for identifying close contacts is provided, comprising:

服务器接收终端设备发送的请求消息,所述请求消息用于请求目标用户的身份标识;The server receives a request message sent by the terminal device, where the request message is used to request the identity of the target user;

所述服务器将存储的目标用户的身份标识发送给终端设备。The server sends the stored identification of the target user to the terminal device.

第三方面,提供一种终端设备,该终端设备包括:发送模块,用于向服务器发送请求消息,所述请求消息用于请求目标用户的身份标识;In a third aspect, a terminal device is provided, the terminal device comprising: a sending module configured to send a request message to a server, where the request message is used to request an identity of a target user;

接收模块,用于接收所述服务器发送的所述目标用户的身份标识;a receiving module for receiving the identity of the target user sent by the server;

确定模块,用于若终端设备本地存储的身份标识中存在与所述目标用户的身份标识匹配的身份标识,则确定所述终端设备的用户为所述目标用户的密切接触者;a determining module, configured to determine that the user of the terminal device is a close contact of the target user if there is an identity identifier matching the identity identifier of the target user in the locally stored identifiers of the terminal device;

所述本地存储的身份标识为与所述终端设备建立过短距离无线通信连接的设备的用户的身份标识。The locally stored identity is an identity of a user of a device that has established a short-range wireless communication connection with the terminal device.

第四方面,提供一种服务器,该服务器包括:接收模块,用于接收终端设备发送的请求消息,所述请求消息用于请求目标用户的身份标识;In a fourth aspect, a server is provided, the server comprising: a receiving module configured to receive a request message sent by a terminal device, where the request message is used to request an identity of a target user;

发送模块,用于将存储的目标用户的身份标识发送给终端设备。The sending module is used for sending the stored identification of the target user to the terminal device.

第五方面,提供一种终端设备,该终端设备包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如第一方面所示的确定密切接触者的方法。In a fifth aspect, a terminal device is provided, the terminal device comprising: a processor, a memory, and a computer program stored on the memory and executable on the processor, when the computer program is executed by the processor Implement the method for identifying close contacts as shown in the first aspect.

第六方面,提供一种服务器,该终端设备包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如第二方面所示的确定密切接触者的方法。In a sixth aspect, a server is provided, the terminal device includes: a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being implemented when executed by the processor The method of identifying close contacts as shown in the second aspect.

第七方面,提供一种计算机可读存储介质,包括:所述计算机可读存储介质上存储计算机程序,计算机程序被处理器执行时,实现第一方面所示的确定密切接触者的方法,或者,实现第二方面所示的确定密切接触者的方法。In a seventh aspect, a computer-readable storage medium is provided, comprising: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for determining a close contact shown in the first aspect is implemented, or , implementing the method for identifying close contacts shown in the second aspect.

在本发明实施例中,终端设备可以向服务器发送用于请求目标用户的身份标识的请求消息,并在接收到服务器发送的目标用户的身份标识之后,可以查看终端设备本地存储的与所述终端设备建立过短距离无线通信连接的设备的用户的身份标识中,是否有与目标用户的身份标识匹配的身份标识,如果有则说明与终端设备的用户近距离接触过的用户中有目标用户,从而确认终端设备的用户为目标用户的密切接触者。这样可以基于短距离的无线通信技术获取让终端设备存储与终端设备的用户近距离接触过的用户的身份标识,并结合服务器中存储的目标用户的身份标识,自动对终端设备的用户是否为密切接触者进行判断,这样可以提高确定密切接触者的精确度。In this embodiment of the present invention, the terminal device may send a request message for requesting the identity of the target user to the server, and after receiving the identity of the target user sent by the server, the terminal device may view the information stored locally by the terminal device with the terminal Whether there is an identity that matches the identity of the target user in the identity of the user of the device to which the device has established a short-distance wireless communication connection, if so, it means that there is a target user among the users who have been in close contact with the user of the terminal device. Thus, it is confirmed that the user of the terminal device is a close contact of the target user. In this way, based on the short-range wireless communication technology, the terminal device can store the identity of the user who has been in close contact with the user of the terminal device, and combined with the identity of the target user stored in the server, it can automatically determine whether the user of the terminal device is in close contact with the user. Contact judgment, which improves the accuracy of identifying close contacts.

附图说明Description of drawings

图1为本发明实施例提供的一种可能的安卓操作系统的架构示意图;1 is a schematic diagram of the architecture of a possible Android operating system provided by an embodiment of the present invention;

图2为本发明实施例提供的一种无线通信系统的架构示意图;FIG. 2 is a schematic structural diagram of a wireless communication system according to an embodiment of the present invention;

图3为本发明实施例提供的一种确定密切接触者的方法示意图一;3 is a schematic diagram 1 of a method for determining a close contact provided by an embodiment of the present invention;

图4为本发明实施例提供的一种确定密切接触者的方法示意图二;4 is a schematic diagram 2 of a method for determining a close contact provided by an embodiment of the present invention;

图5为本发明实施例提供的一种确定密切接触者的方法示意图三;5 is a schematic diagram 3 of a method for determining a close contact provided by an embodiment of the present invention;

图6为本发明实施例提供的一种确定密切接触者的方法示意图四;6 is a schematic diagram 4 of a method for determining a close contact provided by an embodiment of the present invention;

图7为本发明实施例提供的一种确定密切接触者的方法示意图五;7 is a schematic diagram 5 of a method for determining a close contact provided by an embodiment of the present invention;

图8为本发明实施例提供的一种手机广播临时身份代码的示意图;8 is a schematic diagram of a mobile phone broadcasting a temporary identity code according to an embodiment of the present invention;

图9为本发明实施例提供的一种终端设备的结构示意图;FIG. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;

图10为本发明实施例提供的一种服务器的结构示意图;FIG. 10 is a schematic structural diagram of a server according to an embodiment of the present invention;

图11为本发明实施例提供的一种手机的硬件示意图。FIG. 11 is a schematic diagram of hardware of a mobile phone according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to represent examples, illustrations, or descriptions. Any embodiments or designs described as "exemplary" or "such as" in the embodiments of the present invention should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.

本发明实施例中的终端设备可以为具有操作系统的终端设备。该操作系统可以为安卓(Android)操作系统、ios操作系统或者鸿蒙操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。The terminal device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or a Hongmeng operating system, and may also be other possible operating systems, which are not specifically limited in the embodiment of the present invention.

下面以安卓操作系统为例,介绍一下本发明实施例提供的确定密切接触者的方法所应用的软件环境。Taking the Android operating system as an example below, the software environment to which the method for determining a close contact provided by the embodiment of the present invention is applied will be introduced.

如图1所示,为本发明实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1 , it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention. In FIG. 1, the architecture of the Android operating system includes four layers, namely: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).

其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。The application layer includes various applications (including system applications and third-party applications) in the Android operating system.

应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application framework layer is the framework of the application, and developers can develop some applications based on the application framework layer under the condition of complying with the development principles of the framework of the application.

系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes libraries (also called system libraries) and the Android operating system runtime environment. The library mainly provides various resources required by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.

内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the bottom layer of the Android operating system software layer. The kernel layer provides core system services and hardware-related drivers for the Android operating system based on the Linux kernel.

以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的确定密切接触者的方法的软件程序,从而使得该确定密切接触者的方法可以基于如图1所示的安卓操作系统运行。即处理器或者终端设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的确定密切接触者的方法。Taking the Android operating system as an example, in this embodiment of the present invention, a developer can develop a software program for implementing the method for determining a close contact provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. The method for determining close contacts can be run based on the Android operating system as shown in FIG. 1 . That is, the processor or the terminal device can implement the method for determining a close contact provided by the embodiment of the present invention by running the software program in the Android operating system.

本发明实施例中的终端设备可以为移动终端设备,也可以为非移动终端设备。移动终端设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer, UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等;非移动终端设备可以为个人计算机(personalcomputer,PC)、电视机(television, TV)、柜员机或者自助机等;本发明实施例不作具体限定。The terminal device in this embodiment of the present invention may be a mobile terminal device or a non-mobile terminal device. The mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA) etc.; the non-mobile terminal device may be a personal computer (personal computer, PC), a television (television, TV), a teller machine, or a self-service machine, etc. The embodiment of the present invention does not specifically limit it.

本发明实施例中的服务器可以为传统服务器,也可以为云端服务器。The server in the embodiment of the present invention may be a traditional server or a cloud server.

本发明实施例提供的确定密切接触者,可以应用于确定特定人员(本发明实施例中的目标用户)的密切接触者。The determination of close contacts provided by the embodiment of the present invention can be applied to determine the close contacts of a specific person (target user in the embodiment of the present invention).

可选的,该特征人员可以是指传染疾病的患者,例如,新冠肺炎的感染者。Optionally, the characteristic person may refer to a patient of an infectious disease, for example, an infected person of new coronary pneumonia.

本发明实施例提供的确定密切接触者的方法可以应用于如图2所示的通信系统中,假设该通信系统是应用于确定新冠肺炎的感染者的密切接触者。该系统中包括有:云端服务器、手机A、手机B和手机C。其中,手机B与手机A 和手机C曾处于较短距离内,因此手机B的用户与手机A的用户可能曾经亲密接触,手机B的用户与手机C的用户也有可能曾经亲密接触,这样手机C中可以保存手机B的用户的身份代码B1,而手机A中可以保存手机B的身份代码 B1,手机B中可以保存手机A的身份代码A1和手机C的身份代码C1。在手机 C的用户被确认为感染者的情况下,可以上传自己的身份代码给云端服务器,云端服务器会将手机C的用户的身份代码C1保存为感染者的身份代码。进一步的,手机A可以从云端服务器获取感染者的身份代码C1之后可以查询本地的身份代码,其中,不包括C1,因此手机A的用户不是感染者的密切接触者;手机B也可以从云端服务器获取感染者的身份代码C1之后可以查询本地的身份代码,其中,包括C1,因此手机B的用户是感染者的密切接触者。The method for determining a close contact provided by the embodiment of the present invention can be applied to the communication system as shown in FIG. 2 , assuming that the communication system is applied to determine the close contact of an infected person of new coronary pneumonia. The system includes: cloud server, mobile phone A, mobile phone B and mobile phone C. Among them, the mobile phone B, the mobile phone A and the mobile phone C used to be within a short distance, so the user of the mobile phone B may have had close contact with the user of the mobile phone A, and the user of the mobile phone B and the user of the mobile phone C might have had close contact, so that the mobile phone C The identity code B1 of the user of the mobile phone B can be stored in the mobile phone A, the identity code B1 of the mobile phone B can be stored in the mobile phone A, and the identity code A1 of the mobile phone A and the identity code C1 of the mobile phone C can be stored in the mobile phone B. When the user of mobile phone C is confirmed to be the infected person, he can upload his own identity code to the cloud server, and the cloud server will save the identity code C1 of the user of mobile phone C as the identity code of the infected person. Further, mobile phone A can obtain the identity code C1 of the infected person from the cloud server and then query the local identity code, which does not include C1, so the user of mobile phone A is not a close contact of the infected person; mobile phone B can also obtain the identity code of the infected person from the cloud server. After obtaining the identity code C1 of the infected person, the local identity code can be queried, including C1, so the user of mobile phone B is a close contact of the infected person.

其中,上述的较短距离内可以是指短距离通信连接的距离范围内,该距离范围可以根据该短距离通信连接能够建立的最大距离确定。假设,通过蓝牙连接的话,距离范围可以为200米内。图2中,100米和10米均处于该距离范围内。Wherein, the above-mentioned shorter distance may refer to the distance range of the short-distance communication connection, and the distance range may be determined according to the maximum distance that the short-distance communication connection can establish. Assuming, if connected via bluetooth, the distance range can be within 200 meters. In Figure 2, both 100 meters and 10 meters are within this distance range.

本发明实施例提供的确定密切接触者的方法的可以通过终端设备与服务器的信息交互实现,下面将结合附图对本发明实施例提供的确定密切接触者的方法进行示例性说明。The method for determining a close contact provided by the embodiment of the present invention can be implemented through information exchange between a terminal device and a server. The method for determining a close contact provided by the embodiment of the present invention will be exemplarily described below with reference to the accompanying drawings.

如图3所示,本发明实施例提供一种确定密切接触者的方法,该方法包括:As shown in FIG. 3 , an embodiment of the present invention provides a method for determining a close contact, and the method includes:

101、终端设备获取与终端设备建立短距离无线通信连接的设备的用户的身份代码。101. The terminal device acquires the identity code of the user of the device that establishes the short-range wireless communication connection with the terminal device.

其中,该设备的用户的身份代码为根据该设备的设备标识生成的。Wherein, the identity code of the user of the device is generated according to the device identification of the device.

可选的,终端设备获取与终端设备建立短距离无线通信连接的设备的用户的身份代码可以为以下两种情况:Optionally, the terminal device obtains the identity code of the user of the device that establishes the short-range wireless communication connection with the terminal device in the following two cases:

第一种情况:终端设备获取与终端设别建立短距离无线通信连接的设备的设备标识,并根据该设备标识生成该设备的身份代码。The first case: the terminal device obtains the device identifier of the device that establishes the short-range wireless communication connection with the terminal device, and generates the identity code of the device according to the device identifier.

第二种情况:该设备根据其设备标识生成该设备的用户的身份代码,终端设备直接获取该设备的用户的身份代码。The second case: the device generates the identity code of the user of the device according to its device identification, and the terminal device directly obtains the identity code of the user of the device.

102、终端设备将该设备的用户的身份代码本地存储。102. The terminal device locally stores the identity code of the user of the device.

本发明实施例中,终端设备可以将该设备的用户的身份代码本地存储,以记录终端设备近距离接触过的人员。In this embodiment of the present invention, the terminal device may locally store the identity code of the user of the device, so as to record the persons who have been in close contact with the terminal device.

可选的,终端设备还可以获取该终端设备的设备标识,并根据终端设备的设备标识,生成该终端设备的用户的身份代码,将该终端设备的用户的身份代码本地存储。Optionally, the terminal device may also acquire the device identifier of the terminal device, generate an identity code of the user of the terminal device according to the device identifier of the terminal device, and store the identity code of the user of the terminal device locally.

103、终端设备向服务器发送请求消息。103. The terminal device sends a request message to the server.

相应的,服务器接收终端设备发送的请求消息。Correspondingly, the server receives the request message sent by the terminal device.

其中,请求消息用于向服务器请求目标用户的身份标识。The request message is used to request the server for the identity of the target user.

可选的,本发明实施例中,可以在终端设备确定终端设备的用户不是目标用户的情况下,终端设备向服务器发送请求消息。Optionally, in this embodiment of the present invention, when the terminal device determines that the user of the terminal device is not the target user, the terminal device may send a request message to the server.

可选的,终端设备可以通过终端设备的用户输入的信息来确定终端设备的用户是不是目标用户,或者终端可以通过第三方平台(如,新闻平台、医疗系统、国家组织或机构等)公布的目标用户的信息确定终端设备的用户是不是目标用户。Optionally, the terminal device can determine whether the user of the terminal device is the target user through the information input by the user of the terminal device, or the terminal can publish information through a third-party platform (such as a news platform, a medical system, a national organization or institution, etc.). The information of the target user determines whether the user of the terminal device is the target user.

104、服务器将存储的目标用户的身份标识发送给终端设备。104. The server sends the stored identity of the target user to the terminal device.

本发明实施例中,服务器可以接收各个终端设备发送的目标用户的身份标识,并进行保存。In this embodiment of the present invention, the server may receive the target user's identity identifier sent by each terminal device, and store it.

105、若终端设备本地存储的身份标识中存在与目标用户的身份标识匹配的身份标识,则确定终端设备的用户为目标用户的密切接触者。105. If there is an identity identifier matching the identity identifier of the target user in the identity identifiers stored locally by the terminal device, determine that the user of the terminal device is a close contact of the target user.

其中,本地存储的身份标识为与终端设备建立过短距离无线通信连接的设备的用户的身份标识。The locally stored identity identifier is the identity identifier of the user of the device that has established a short-range wireless communication connection with the terminal device.

需要说明的是,本发明实施例中终端设备本地存储的身份标识中存在与目标用户的身份标识匹配的身份标识可以是指终端设备本地存储的身份标识中存在与目标用户的身份标识相同的身份标识,或者可以是指终端设备本地存储的身份标识中存在与目标用户的身份标识存在某种关联关系的身份标识,其中该关联关系应该可以指示两个身份标识对应于同一用户。It should be noted that, in the embodiment of the present invention, the presence of an identity identifier that matches the identity identifier of the target user in the identity identifier stored locally by the terminal device may mean that the identity identifier stored locally by the terminal device has an identity that is the same as that of the target user. The identifier, or it may refer to an identifier that has a certain association relationship with the target user's identifier in the locally stored identifiers of the terminal device, wherein the association relationship should indicate that the two identifiers correspond to the same user.

其中,上述短距离无线通信连接可以是指蓝牙连接,或者,近距离无线通信(nearfield communication,NFC)技术建立的连接等。The above-mentioned short-range wireless communication connection may refer to a Bluetooth connection, or a connection established by a near field communication (nearfield communication, NFC) technology, or the like.

在本发明实施例中,终端设备可以向服务器发送用于请求目标用户的身份标识的请求消息,并在接收到服务器发送的目标用户的身份标识之后,可以查看终端设备本地存储的与终端设备建立过短距离无线通信连接的设备的用户的身份标识中,是否有与目标用户的身份标识匹配的身份标识,如果有则说明与终端设备的用户近距离接触过的用户中有目标用户,从而确认终端设备的用户为目标用户的密切接触者。这样可以基于短距离的无线通信技术获取让终端设备存储与终端设备的用户近距离接触过的用户的身份标识,并结合服务器中存储的目标用户的身份标识,自动对终端设备的用户是否为密切接触者进行判断,这样可以提高确定密切接触者的精确度。In this embodiment of the present invention, the terminal device may send a request message for requesting the identity of the target user to the server, and after receiving the identity of the target user sent by the server, the terminal device may view the locally stored information about the connection with the terminal device. Whether there is an identity tag that matches the identity of the target user in the identity of the user of the device connected by short-range wireless communication, if so, it means that there is a target user among the users who have been in close contact with the user of the terminal device, so as to confirm The user of the terminal device is the close contact of the target user. In this way, based on the short-range wireless communication technology, the terminal device can store the identity of the user who has been in close contact with the user of the terminal device, and combined with the identity of the target user stored in the server, it can automatically determine whether the user of the terminal device is in close contact with the user. Contact judgment, which improves the accuracy of identifying close contacts.

进一步的,由于本发明实施例提供的方法无需获取终端设备的用户的位置数据和路径信息,并且判断密切接触者的逻辑都在终端设备本地实现,而服务器中只需维护目标用户的身份标识信息,因此实现了最大化的保护用户隐私。Further, because the method provided by the embodiment of the present invention does not need to obtain the location data and path information of the user of the terminal device, and the logic for judging close contacts is implemented locally in the terminal device, and the server only needs to maintain the identity information of the target user. , thus maximizing the protection of user privacy.

此外,还避免了手动填写路径的方式中,一些用户因为漏填、填错或者隐瞒不填而导致的信息不准确,进一步的提高了确定密切接触者的精确度。In addition, it also avoids inaccurate information caused by missing, wrongly filling or concealing the information in the way of manually filling in the path, which further improves the accuracy of identifying close contacts.

可选的,结合图3,如图4所示,上述105可以替换为下述106。Optionally, with reference to FIG. 3 , as shown in FIG. 4 , the above 105 may be replaced by the following 106 .

106、若终端设备本地存储的身份标识中不存在与目标用户的身份标识匹配的身份标识,则确定终端设备的用户非目标用户的密切接触者。106. If there is no identity identifier matching the identity identifier of the target user in the identity identifiers stored locally by the terminal device, determine that the user of the terminal device is not a close contact of the target user.

可选的,在终端设备确定终端设备的用户为目标用户的情况下,终端设备可以向服务器发送终端设备的用户的身份代码,终端设备的用户的身份代码为根据终端设备的设备标识生成的。Optionally, when the terminal device determines that the user of the terminal device is the target user, the terminal device may send the server an identity code of the user of the terminal device, where the identity code of the user of the terminal device is generated according to the device identifier of the terminal device.

示例性的,结合图3,如图5所示,上述105之后还可以包括以下步骤:Exemplarily, with reference to FIG. 3 , as shown in FIG. 5 , the following steps may be further included after 105 above:

107、终端设备确定终端设备的用户为目标用户。107. The terminal device determines that the user of the terminal device is the target user.

示例性的,在确定终端设备的用户为新冠肺炎的密切接触者之后,可以通过核酸检测等检测手段判断其是否为新冠肺炎的感染者(即目标用户),并将结果录入至终端设备中。Exemplarily, after it is determined that the user of the terminal device is a close contact of the new coronary pneumonia, detection methods such as nucleic acid detection can be used to determine whether the user is an infected person of the new coronary pneumonia (ie, the target user), and the result is entered into the terminal device.

108、终端设备向服务器发送终端设备的用户的身份代码。108. The terminal device sends the identity code of the user of the terminal device to the server.

相应的,服务器接收终端设备发送的终端设备的用户的身份代码,终端设备的用户的身份代码为根据终端设备的设备标识生成的。Correspondingly, the server receives the identity code of the user of the terminal device sent by the terminal device, and the identity code of the user of the terminal device is generated according to the device identification of the terminal device.

示例性的,在确定终端设备的与用户为新冠肺炎的感染者之后,可以将终端设备的用户的身份代码发送给服务器,以使得服务器可以保存终端设备的用户的身份代码,以更新服务器中的感染者的身份代码信息(即,目标用户的身份代码信息)。Exemplarily, after it is determined that the user of the terminal device is infected with COVID-19, the identity code of the user of the terminal device can be sent to the server, so that the server can save the identity code of the user of the terminal device to update the information in the server. The identity code information of the infected person (ie, the identity code information of the target user).

109、服务器将终端设备的用户的身份代码作为目标用户的身份代码进行存储。109. The server stores the identity code of the user of the terminal device as the identity code of the target user.

本发明实施例中,可以在终端设备的用户确定为目标用户时,及时向服务器上报其身份代码,以使得服务器可以及时更新服务器中存储的目标用户的身份代码信息,从而可以进一步提高确定密切接触者的精确度。In the embodiment of the present invention, when the user of the terminal device is determined to be the target user, its identity code can be reported to the server in time, so that the server can update the identity code information of the target user stored in the server in time, thereby further improving the determination of close contact the accuracy of the user.

在实际应用中,本发明实施例提供的确定密切接触者的方案可以包括两部分,第一部分为终端设备本地生成身份代码库(即存储终端设备的用户的身份代码,以及存储与终端设备建立短距离无线通信连接的其他设备的用户的身份代码);第二部分为终端设备查询是否密切接触者。以下分别对这两部分内容进行介绍。In practical applications, the solution for determining close contacts provided by the embodiments of the present invention may include two parts. The first part is for the terminal device to locally generate an identity code base (that is, to store the identity code of the user of the terminal device, and to store and establish a short-term connection with the terminal device). The identity code of the user of other devices connected by wireless communication); the second part is the terminal device inquiring whether it is a close contact. These two parts are introduced separately below.

第一部分:终端设备生成身份代码Part 1: End Device Generates Identity Code

在这部分内容中,如图6所示,终端设备通过以下步骤实现:In this part, as shown in Figure 6, the terminal device is implemented through the following steps:

201、开启快应用。201. Start the quick application.

可选的,可以接收用户开启快应用的操作,以开启快应用。Optionally, an operation of opening the quick application from the user may be received, so as to open the quick application.

上述快应用可以为基于本发明实施例提供的确定密切接触者的方法开发的应用程序。The above-mentioned quick application may be an application program developed based on the method for determining a close contact provided by the embodiment of the present invention.

202、判断用户是否已经授权生成身份代码库。202. Determine whether the user has been authorized to generate an identity code base.

若用户已授权,则执行203至206;若用户未授权,则执行207。If the user is authorized, go to 203 to 206; if the user is not authorized, go to 207.

203、判断是否开启蓝牙功能。203. Determine whether to enable the Bluetooth function.

若开启了,则执行204和205;若未开启,则执行206。If it is enabled, go to 204 and 205; if it is not enabled, go to 206.

204、获取与终端设备建立短距离无线通信连接的其他设备的用户的身份代码。204. Acquire an identity code of a user of another device that establishes a short-range wireless communication connection with the terminal device.

205、将其他设备的用户的身份代码存储在身份代码库。205. Store the identity codes of users of other devices in the identity code library.

206、输出开启蓝牙功能的引导信息,引导用户开启蓝牙功能。206. Output the guide information for enabling the bluetooth function, and guide the user to enable the bluetooth function.

本发明实施例中,206之后可以返回执行203。In this embodiment of the present invention, after 206, the execution of 203 may be returned.

207、显示询问用户是否允许授权的弹框。207. Display a pop-up box asking the user whether to allow authorization.

若接收到用户允许授权的输入,则执行208至210;若用户接收到用户不允许授权的输入,则执行211。If an input that the user allows authorization is received, execute 208 to 210; if the user receives an input that the user does not allow authorization, execute 211.

208、获取终端设备的设备标识。208. Obtain the device identifier of the terminal device.

209、生成终端设备的用户的身份代码。209. Generate an identity code of the user of the terminal device.

210、将终端设备的用户的身份代码保存至身份代码库。210. Save the identity code of the user of the terminal device to the identity code library.

211、输出允许授权的引导信息,引导用户授权生成身份代码库。211. Output the guide information that allows authorization, and guide the user to authorize to generate an identity code base.

本发明实施例中,在执行211之后可以返回执行207。In this embodiment of the present invention, after executing 211, it is possible to return to executing 207.

可选的,可以先输出引导查询密切接触者情况的信息,并提示查询密切接触者情况需要先允许授权生成身份代码库。Optionally, it is possible to output information that guides inquiring about the situation of close contacts, and prompt that inquiring about the situation of close contacts requires authorization to generate an identity code base first.

第二部分:终端设备查询是否密切接触者Part 2: Terminal equipment to check whether there are close contacts

示例性的,以目标用户为新冠肺炎感染者为例,在这部分内容中,如图7 所示,终端设备和服务器通过以下步骤实现:Exemplarily, taking the target user as an infected person with COVID-19 as an example, in this part, as shown in Figure 7, the terminal device and server are implemented through the following steps:

301、用户触发终端设备查询密切接触者情况。301. The user triggers the terminal device to inquire about the situation of the close contacts.

302、终端设备判断是否开启蓝牙功能。302. The terminal device determines whether to enable the Bluetooth function.

若开启了蓝牙功能,则执行303至314;若未开启蓝牙功能,则执行315。If the Bluetooth function is enabled, execute 303 to 314; if the Bluetooth function is not enabled, execute 315.

303、终端设备显示用户信息输入界面。303. The terminal device displays a user information input interface.

304、终端设备响应于用户在用户信息输入界面的操作,录入用户的健康状态信息。304. The terminal device inputs the user's health status information in response to the user's operation on the user information input interface.

305、终端设备判断终端设备的用户是否为感染者。305. The terminal device determines whether the user of the terminal device is an infected person.

若终端设备的用户不是感染者,则执行306至311;若终端设备的用户是感染者,则执行312至314。If the user of the terminal device is not an infected person, execute 306 to 311; if the user of the terminal device is an infected person, execute 312 to 314.

306、向服务器请求感染者身份代码。306. Request the identity code of the infected person from the server.

307、服务器下发感染者身份代码库中的感染者身份代码给终端设备。307. The server sends the infected person's identity code in the infected person's identity code base to the terminal device.

308、终端设备将感染者身份代码与本地身份代码库中的身份代码进行匹配。308. The terminal device matches the identity code of the infected person with the identity code in the local identity code base.

309、判断本地身份代码库中是否存在匹配的身份代码。309. Determine whether there is a matching identity code in the local identity code base.

若存在,则执行310;若不存在,则执行311。If it exists, execute 310; if not, execute 311.

310、确定终端设备的用户为感染者的密切接触者。310. Determine that the user of the terminal device is a close contact of the infected person.

311、确定终端设备的用户不是感染者的密切接触者。311. Determine that the user of the terminal device is not a close contact of the infected person.

312、终端设备向服务器上报终端设备的用户的身份代码。312. The terminal device reports the identity code of the user of the terminal device to the server.

313、服务器接收终端设备上报的身份代码。313. The server receives the identity code reported by the terminal device.

314、服务器将终端设备的用户的身份代码保存在感染者身份代码库。314. The server saves the identity code of the user of the terminal device in the infected person identity code base.

315、终端设备输出开启蓝牙功能的引导信息,引导用户开启蓝牙功能。315. The terminal device outputs guidance information for enabling the Bluetooth function, so as to guide the user to enable the Bluetooth function.

本发明实施例中,315之后可以返回执行302。In this embodiment of the present invention, after 315, the execution of 302 may be returned.

可选的,本发明实施例中为确保身份代码不被恶意获取及跟踪,身份代码还可做混淆优化,即手机设备之间互相广播的身份代码不会唯一不变、而是会随着蓝牙MAC地址随机变化而变化。Optionally, in this embodiment of the present invention, in order to ensure that the identity code is not maliciously obtained and tracked, the identity code can also be optimized by obfuscation, that is, the identity code broadcasted by mobile phone devices will not be unique and unchanged, but will change with the Bluetooth. The MAC address changes randomly.

示例性的,如图8所示,手机2广播的是临时身份代码b,由手机2身份代码B进行动态生成,单个手机可广播任意数量的代码b,避免了单个用户被恶意跟踪等问题。图8中,手机1的用户与手机2的用户近距离交流了一段时间后,手机1广播了三个临时身份代码b1、b2和b3,手机2广播了三个临时身份代码 a1、a2和a3,手机2知道接收了3个临时身份代码及时间,但不知道这三个临时身份代码均指示一个手机用户。Exemplarily, as shown in Figure 8, the mobile phone 2 broadcasts a temporary identity code b, which is dynamically generated by the identity code B of the mobile phone 2. A single mobile phone can broadcast any number of codes b, which avoids problems such as malicious tracking of a single user. In Figure 8, after the user of mobile phone 1 communicates with the user of mobile phone 2 at close range for a period of time, mobile phone 1 broadcasts three temporary identity codes b1, b2 and b3, and mobile phone 2 broadcasts three temporary identity codes a1, a2 and a3 , the mobile phone 2 knows that it has received three temporary identity codes and the time, but does not know that the three temporary identity codes all indicate a mobile phone user.

进一步的,数天后手机1的用户被确诊为新冠肺炎的感染者,可以通过卫计委或者手机1的用户自己上报身份代码B给云端服务器,在手机2的用户触发手机2从云端服务器获取新冠肺炎的感染者的身份代码B,并与本地存储的 b1、b2和b3进行匹配,发现B与b1、b2和b3匹配,但是手机2的用户并不能获知b1、b2和b3指示手机1的用户。Further, a few days later, the user of mobile phone 1 is diagnosed as infected with new coronary pneumonia, and can report the identity code B to the cloud server through the National Health and Family Planning Commission or the user of mobile phone 1, and the user of mobile phone 2 triggers mobile phone 2 to obtain the new crown from the cloud server. The identity code B of the infected person with pneumonia is matched with the locally stored b1, b2 and b3, and it is found that B matches b1, b2 and b3, but the user of mobile phone 2 cannot know that b1, b2 and b3 indicate the user of mobile phone 1 .

上述实现方式可以保护手机用户的隐私,避免单个用户被恶意追踪等问题的发生。The above implementation manner can protect the privacy of mobile phone users and avoid the occurrence of problems such as malicious tracking of a single user.

如图9所示,本发明实施例还提供一种终端设备,该终端设备包括:As shown in FIG. 9 , an embodiment of the present invention further provides a terminal device, where the terminal device includes:

发送模块401,用于向服务器发送请求消息,请求消息用于请求目标用户的身份标识;The sending module 401 is used to send a request message to the server, and the request message is used to request the identity of the target user;

接收模块402,用于接收服务器发送的目标用户的身份标识;A receiving module 402, configured to receive the identity of the target user sent by the server;

确定模块403,用于若终端设备本地存储的身份标识中存在与目标用户的身份标识匹配的身份标识,则确定终端设备的用户为目标用户的密切接触者;A determination module 403, configured to determine that the user of the terminal device is a close contact of the target user if there is an identity identifier that matches the identity identifier of the target user in the locally stored identity identifier of the terminal device;

本地存储的身份标识为与终端设备建立过短距离无线通信连接的设备的用户的身份标识。The locally stored identity is the identity of the user of the device that has established a short-range wireless communication connection with the terminal device.

可选的,确定模块403,还用于若终端设备本地存储的身份标识中不存在与目标用户的身份标识匹配的身份标识,则确定终端设备的用户非目标用户的密切接触者。Optionally, the determining module 403 is further configured to determine that the user of the terminal device is not a close contact of the target user if there is no identity identifier matching the identity identifier of the target user in the locally stored identifiers of the terminal device.

可选的,发送模块401,还用于在终端设备确定终端设备的用户为目标用户的情况下,向服务器发送终端设备的用户的身份代码,终端设备的用户的身份代码为根据终端设备的设备标识生成的。Optionally, the sending module 401 is further configured to send the identity code of the user of the terminal equipment to the server when the terminal equipment determines that the user of the terminal equipment is the target user, and the identity code of the user of the terminal equipment is based on the equipment of the terminal equipment. ID generated.

可选的,发送模块401,具体用于在终端设备确定终端设备的用户不是目标用户的情况下,向服务器发送请求消息。Optionally, the sending module 401 is specifically configured to send a request message to the server when the terminal device determines that the user of the terminal device is not the target user.

可选的,终端设备还可以包括:Optionally, the terminal device may also include:

获取模块404,用于备获取与终端设备建立短距离无线通信连接的设备的用户的身份代码;设备的用户的身份代码为根据设备的设备标识生成的。The obtaining module 404 is used for obtaining the identity code of the user of the device that establishes the short-range wireless communication connection with the terminal device; the identity code of the user of the device is generated according to the device identification of the device.

存储模块405,用于将设备的用户的身份代码本地存储。The storage module 405 is configured to locally store the identity code of the user of the device.

可选的,获取模块404,还用于终端设备获取终端设备的设备标识;根据终端设备的设备标识,生成终端设备的用户的身份代码,将终端设备的用户的身份代码本地存储。Optionally, the obtaining module 404 is further configured for the terminal device to obtain the device identifier of the terminal device; according to the device identifier of the terminal device, generate an identity code of the user of the terminal device, and store the identity code of the user of the terminal device locally.

本发明实施例中,还提供一种终端设备,包括:处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,计算机程序被处理器执行时实现方法实施例中终端设备执行的各个过程。In the embodiment of the present invention, a terminal device is also provided, including: a processor, a memory, and a computer program stored in the memory and running on the processor, when the computer program is executed by the processor, the terminal device in the method embodiment is executed. of each process.

如图10所示,提供一种服务器,包括:As shown in Figure 10, a server is provided, including:

接收模块501,用于接收终端设备发送的请求消息,请求消息用于请求目标用户的身份标识;A receiving module 501, configured to receive a request message sent by the terminal device, where the request message is used to request the identity of the target user;

发送模块502,用于将存储的目标用户的身份标识发送给终端设备。The sending module 502 is configured to send the stored identity of the target user to the terminal device.

可选的,接收模块501,还用于接收终端设备发送的终端设备的用户的身份代码,终端设备的用户的身份代码为根据终端设备的设备标识生成的;Optionally, the receiving module 501 is further configured to receive the identity code of the user of the terminal device sent by the terminal device, where the identity code of the user of the terminal device is generated according to the device identifier of the terminal device;

服务器还包括存储模块503,用于将终端设备的用户的身份代码作为目标用户的身份代码进行存储。The server further includes astorage module 503 for storing the identity code of the user of the terminal device as the identity code of the target user.

本发明实施例中,还提供一种服务器,包括:处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,计算机程序被处理器执行时实现方法实施例中服务器执行的各个过程。In an embodiment of the present invention, a server is also provided, including: a processor, a memory, and a computer program stored in the memory and executable on the processor, when the computer program is executed by the processor, each of the steps executed by the server in the method embodiment is implemented. process.

可选的,本发明实施例提供的终端设备可以为手机。Optionally, the terminal device provided in the embodiment of the present invention may be a mobile phone.

如图11所示,手机可以包括:射频(radio frequency,RF)电路1110、存储器1120、输入单元1130、显示单元1140、传感器1150、音频电路1160、无线保真(wireless fidelity,WiFi)模块1170、处理器1180、以及电源1190等部件。其中,射频电路1110包括接收器1111和发送器1112。本领域技术人员可以理解,图11中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。As shown in FIG. 11 , the mobile phone may include: a radio frequency (RF)circuit 1110, amemory 1120, aninput unit 1130, adisplay unit 1140, asensor 1150, anaudio circuit 1160, a wireless fidelity (WiFi)module 1170, Theprocessor 1180, the power supply 1190 and other components. Theradio frequency circuit 1110 includes a receiver 1111 and a transmitter 1112 . Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 11 does not constitute a limitation on the mobile phone, and may include more or less components than the one shown, or combine some components, or arrange different components.

RF电路1110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器1180处理;另外,将设计上行的数据发送给基站。通常,RF电路1110包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noiseamplifier,LNA)、双工器等。此外,RF电路 1110还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(globalsystem of mobile communication,GSM)、通用分组无线服务(general packet radioservice,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、长期演进(long term evolution,LTE)、电子邮件、短消息服务(short messaging service,SMS)等。TheRF circuit 1110 can be used for receiving and sending signals during information transmission and reception or during a call. In particular, after receiving the downlink information of the base station, it is processed by theprocessor 1180; in addition, it sends the designed uplink data to the base station. Generally, theRF circuit 1110 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like. In addition,RF circuitry 1110 may also communicate with networks and other devices via wireless communications. The above wireless communication can use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (code division multiple access) , CDMA), wideband code division multiple access (WCDMA), long term evolution (long term evolution, LTE), email, short message service (short messaging service, SMS) and the like.

存储器1120可用于存储软件程序以及模块,处理器1180通过运行存储在存储器1120的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等) 等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Thememory 1120 can be used to store software programs and modules, and theprocessor 1180 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in thememory 1120 . Thememory 1120 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally,memory 1120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

输入单元1130可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元1130可包括触控面板 1131以及其他输入设备1132。触控面板1131,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1131上或在触控面板1131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板1131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1180,并能接收处理器1180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1131。除了触控面板1131,输入单元1130还可以包括其他输入设备 1132。具体地,其他输入设备1132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Theinput unit 1130 may be used to receive inputted numerical or character information, and generate key signal input related to user setting and function control of the mobile phone. Specifically, theinput unit 1130 may include atouch panel 1131 andother input devices 1132. Thetouch panel 1131, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 1131). operation), and drive the corresponding connection device according to the preset program. Optionally, thetouch panel 1131 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, 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 then sends it to the touch controller. To theprocessor 1180, and can receive the commands sent by theprocessor 1180 and execute them. In addition, thetouch panel 1131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to thetouch panel 1131, theinput unit 1130 may also includeother input devices 1132. Specifically,other input devices 1132 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元1140可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1140可包括显示面板1141,可选的,可以采用液晶显示器(liquidcrystal display,LCD)、有机发光二极管(organic light-Emitting diode, OLED)等形式来配置显示面板1141。进一步的,触控面板1131可覆盖显示面板1141,当触控面板1131检测到在其上或附近的触摸操作后,传送给处理器1180 以确定触摸事件的类型,随后处理器1180根据触摸事件的类型在显示面板1141 上提供相应的视觉输出。虽然在图11中,触控面板1131与显示面板1141是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1131与显示面板1141集成而实现手机的输入和输出功能。Thedisplay unit 1140 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. Thedisplay unit 1140 may include adisplay panel 1141, and optionally, thedisplay panel 1141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, thetouch panel 1131 may cover thedisplay panel 1141. When thetouch panel 1131 detects a touch operation on or near it, it transmits the touch operation to theprocessor 1180 to determine the type of the touch event. Then theprocessor 1180 determines the type of the touch event according to the touch event. Type provides corresponding visual output ondisplay panel 1141 . Although in FIG. 11, thetouch panel 1131 and thedisplay panel 1141 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, thetouch panel 1131 and thedisplay panel 1141 can be integrated to form Realize the input and output functions of the mobile phone.

手机还可包括至少一种传感器1150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1141的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1141和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The cell phone may also include at least onesensor 1150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of thedisplay panel 1141 according to the brightness of the ambient light, and the proximity sensor may turn off thedisplay panel 1141 and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. Repeat.

音频电路1160、扬声器1161,传声器1162可提供用户与手机之间的音频接口。音频电路1160可将接收到的音频数据转换后的电信号,传输到扬声器1161,由扬声器1161转换为声音信号输出;另一方面,传声器1162将收集的声音信号转换为电信号,由音频电路1160接收后转换为音频数据,再将音频数据输出处理器1180处理后,经RF电路1110以发送给比如另一手机,或者将音频数据输出至存储器1120以便进一步处理。Theaudio circuit 1160, the speaker 1161, and the microphone 1162 can provide an audio interface between the user and the mobile phone. Theaudio circuit 1160 can convert the received audio data into an electrical signal, and transmit it to the speaker 1161, and the speaker 1161 converts it into a sound signal for output; on the other hand, the microphone 1162 converts the collected sound signal into an electrical signal, which is converted by theaudio circuit 1160 After receiving, it is converted into audio data, and then the audio data is output to theprocessor 1180 for processing, and then sent to, for example, another mobile phone through theRF circuit 1110, or the audio data is output to thememory 1120 for further processing.

WiFi属于短距离无线传输技术,手机通过WiFi模块1170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图11示出了WiFi模块1170,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through theWiFi module 1170, which provides users with wireless broadband Internet access. Although FIG. 11 shows theWiFi module 1170, it can be understood that it is not a necessary component of the mobile phone, and can be completely omitted as required within the scope of not changing the essence of the invention.

处理器1180是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1120内的软件程序和/或模块,以及调用存储在存储器1120内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器1180可包括一个或多个处理单元;优选的,处理器 1180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1180中。Theprocessor 1180 is the control center of the mobile phone, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in thememory 1120, and calling the data stored in thememory 1120. Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole. Optionally, theprocessor 1180 may include one or more processing units; preferably, theprocessor 1180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into theprocessor 1180.

手机还包括给各个部件供电的电源1190(比如电池),优选的,电源可以通过电源管理系统与处理器1180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。The mobile phone also includes a power supply 1190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to theprocessor 1180 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. Although not shown, the mobile phone may also include a camera, a Bluetooth module, and the like, which will not be repeated here.

本发明实施例中,RF电路1110可以向服务器发送请求消息,请求消息用于请求目标用户的身份标识,以及接收服务器发送的目标用户的身份标识;处理器1180,可以在终端设备本地存储的身份标识中存在与目标用户的身份标识匹配的身份标识的情况下,确定终端设备的用户为目标用户的密切接触者。In this embodiment of the present invention, theRF circuit 1110 may send a request message to the server, where the request message is used to request the identity of the target user, and receive the identity of the target user sent by the server; theprocessor 1180 may store the identity of the terminal device locally When there is an identity identifier matching the identity identifier of the target user in the identifier, it is determined that the user of the terminal device is a close contact of the target user.

可选的,上述手机还可以执行本发明实施例提供的确定密切接触者的方法中终端设备所执行的其他过程。Optionally, the above-mentioned mobile phone may also perform other processes performed by the terminal device in the method for determining a close contact provided by the embodiment of the present invention.

本发明实施例提供一种计算机可读存储介质,其特征在于,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现上述方法实施例中终端设备执行的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present invention provides a computer-readable storage medium, characterized in that, a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process performed by the terminal device in the foregoing method embodiment is implemented, and The same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.

本发明实施例还提供一种计算机可读存储介质,其特征在于,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现上述方法实施例中服务器执行的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present invention further provide a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process performed by the server in the foregoing method embodiments is implemented, and The same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.

其中,该计算机可读存储介质可以为只读存储器(Read-Only Memory, ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The computer-readable storage medium may be a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disk.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

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

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The 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 embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.

Claims (13)

CN202010456272.8A2020-05-262020-05-26Method for determining close contact person, terminal equipment and serverPendingCN111641928A (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN202010456272.8ACN111641928A (en)2020-05-262020-05-26Method for determining close contact person, terminal equipment and server
PCT/CN2021/086394WO2021238452A1 (en)2020-05-262021-04-12Method for determining close contact, terminal device, and server

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010456272.8ACN111641928A (en)2020-05-262020-05-26Method for determining close contact person, terminal equipment and server

Publications (1)

Publication NumberPublication Date
CN111641928Atrue CN111641928A (en)2020-09-08

Family

ID=72330563

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010456272.8APendingCN111641928A (en)2020-05-262020-05-26Method for determining close contact person, terminal equipment and server

Country Status (2)

CountryLink
CN (1)CN111641928A (en)
WO (1)WO2021238452A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112135261A (en)*2020-09-232020-12-25维沃移动通信有限公司Potential infector determination method, device, electronic equipment and storage medium
WO2021238452A1 (en)*2020-05-262021-12-02Oppo广东移动通信有限公司Method for determining close contact, terminal device, and server
CN113803854A (en)*2021-09-292021-12-17四川虹美智能科技有限公司Intelligent air conditioner, intelligent body and system for realizing motion mode of air conditioner
WO2022142442A1 (en)*2020-12-302022-07-07南方科技大学Intimate contact determining method and apparatus, electronic device, and medium
CN115052293A (en)*2022-04-062022-09-13北京京东乾石科技有限公司Method, device, medium, and electronic device for determining tight contact
CN115348578A (en)*2022-10-132022-11-15芯昇科技有限公司Method and device for tracking contacter

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114598995A (en)*2022-01-282022-06-07深圳源中瑞科技有限公司 Contact relationship tracking method, terminal device, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2010277452A (en)*2009-05-292010-12-09Softbank Telecom Corp Mobile terminal, information processing apparatus, information processing method, and information processing system
CN106487762A (en)*2015-08-312017-03-08腾讯科技(深圳)有限公司The recognition methodss of user identity, identification applications client and server
US20180052970A1 (en)*2016-08-162018-02-22International Business Machines CorporationTracking pathogen exposure
CN111090718A (en)*2020-03-192020-05-01中科星图(深圳)数字技术产业研发中心有限公司Portrait identification method based on track tracking
KR20200047457A (en)*2020-03-302020-05-07주식회사 올라운드Trace system for Infectious people and trace method using it

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
GB719771A (en)*1950-01-181954-12-08British Electricity AuthorityImprovements in or relating to tele-communication equipment
CN111641928A (en)*2020-05-262020-09-08Oppo广东移动通信有限公司Method for determining close contact person, terminal equipment and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2010277452A (en)*2009-05-292010-12-09Softbank Telecom Corp Mobile terminal, information processing apparatus, information processing method, and information processing system
CN106487762A (en)*2015-08-312017-03-08腾讯科技(深圳)有限公司The recognition methodss of user identity, identification applications client and server
US20180052970A1 (en)*2016-08-162018-02-22International Business Machines CorporationTracking pathogen exposure
CN111090718A (en)*2020-03-192020-05-01中科星图(深圳)数字技术产业研发中心有限公司Portrait identification method based on track tracking
KR20200047457A (en)*2020-03-302020-05-07주식회사 올라운드Trace system for Infectious people and trace method using it

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2021238452A1 (en)*2020-05-262021-12-02Oppo广东移动通信有限公司Method for determining close contact, terminal device, and server
CN112135261A (en)*2020-09-232020-12-25维沃移动通信有限公司Potential infector determination method, device, electronic equipment and storage medium
WO2022142442A1 (en)*2020-12-302022-07-07南方科技大学Intimate contact determining method and apparatus, electronic device, and medium
CN113803854A (en)*2021-09-292021-12-17四川虹美智能科技有限公司Intelligent air conditioner, intelligent body and system for realizing motion mode of air conditioner
CN115052293A (en)*2022-04-062022-09-13北京京东乾石科技有限公司Method, device, medium, and electronic device for determining tight contact
CN115052293B (en)*2022-04-062025-01-14北京京东振世信息技术有限公司 Close contact determination method, device, medium and electronic equipment
CN115348578A (en)*2022-10-132022-11-15芯昇科技有限公司Method and device for tracking contacter

Also Published As

Publication numberPublication date
WO2021238452A1 (en)2021-12-02

Similar Documents

PublicationPublication DateTitle
US10834237B2 (en)Method, apparatus, and storage medium for controlling cooperation of multiple intelligent devices with social application platform
CN111641928A (en)Method for determining close contact person, terminal equipment and server
US10057627B2 (en)Method, apparatus and system for displaying bullet screen information
CN107943489B (en) Data sharing method and mobile terminal
CN111597542B (en)Verification information sharing method and device, electronic equipment and storage medium
KR20170132240A (en) Communication message transmission method and device
CN109862504B (en)Display method and terminal equipment
CN112312308B (en)Indoor positioning method and terminal equipment
CN111698100B (en)Data processing method, system and related equipment
WO2019141130A1 (en)Payment method and terminal device
CN108592939A (en)A kind of air navigation aid and terminal
CN108541009A (en)A kind of detection method and terminal device of communications status
CN110622528B (en) Method and device for recommending information
CN109039989B (en)Address resolution protocol spoofing detection method, host and computer-readable storage medium
CN111093289A (en) A service transmission method and electronic device
CN106611152A (en)User identity determination method and apparatus
CN107104930A (en)It is a kind of that the methods, devices and systems for checking authority are set
CN114049967A (en)Epidemic situation monitoring method and device, storage medium and electronic equipment
CN110366182A (en) A data transmission method and terminal equipment
CN104901992B (en)A kind of method and apparatus of resource transfers
CN104135504B (en)A kind of service providing method, Apparatus and system based on application
WO2020029723A1 (en)Positioning method, related device, and computer readable storage medium
CN109932685A (en) A positioning method, mobile terminal and indoor positioning system
KR20220122731A (en) Multicast service processing method, multicast service setting method and communication device
CN109041212B (en) A positioning method and wearable device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20200908


[8]ページ先頭

©2009-2025 Movatter.jp