CN112135259A - Method and device for determining contact information, readable medium and electronic equipment - Google Patents

Method and device for determining contact information, readable medium and electronic equipment Download PDF

Info

Publication number
CN112135259A
CN112135259A CN202010796607.0A CN202010796607A CN112135259A CN 112135259 A CN112135259 A CN 112135259A CN 202010796607 A CN202010796607 A CN 202010796607A CN 112135259 A CN112135259 A CN 112135259A
Authority
CN
China
Prior art keywords
bluetooth device
determining
contact
information
scanning period
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.)
Granted
Application number
CN202010796607.0A
Other languages
Chinese (zh)
Other versions
CN112135259B (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.)
Xinhexin Technology Beijing Co ltd
Original Assignee
Xinhexin Technology Beijing 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 Xinhexin Technology Beijing Co ltd filed Critical Xinhexin Technology Beijing Co ltd
Priority to CN202010796607.0A priority Critical patent/CN112135259B/en
Publication of CN112135259A publication Critical patent/CN112135259A/en
Application granted granted Critical
Publication of CN112135259B publication Critical patent/CN112135259B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a method and a device for determining contact information, a readable medium and electronic equipment, wherein the method comprises the following steps: the method comprises the steps that a first Bluetooth device scans to obtain a first broadcast signal broadcasted by a second Bluetooth device in an m-th scanning period, and first record information corresponding to the first Bluetooth device in the m-th scanning period is determined; when the first Bluetooth device is in the nth scanning period, scanning to obtain a first broadcast signal broadcast by the second Bluetooth device, and determining second record information corresponding to the first Bluetooth device in the nth scanning period; determining contact information between the first Bluetooth device and the second Bluetooth device according to the first record information and the second record information; wherein m and n are positive integers, and the nth scanning period is after the mth scanning period; the closeness of contact can be determined; so that the propagators and the contacters can be tracked according to the contact closeness degree in epidemic prevention; better meets the requirements of epidemic prevention work.

Description

Method and device for determining contact information, readable medium and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for determining contact information, a readable medium, and an electronic device.
Background
In the prevention and treatment of some infectious diseases with extremely strong transmission ability, blocking the infection source and limiting the flow of pathogens are important prevention and treatment measures. This measure has achieved great success during epidemic prevention against new coronaviruses.
An important means for blocking the source of infection is to reduce the flow of the population and thus reduce the contact between people. At the same time, the flowing and contacting conditions of the population should be monitored as effectively as possible. So as to clarify the action track of the propagator and clarify the corresponding contact person. Therefore, the propagator and the contacter can be treated at the first time, and the pathogen diffusion is avoided.
However, in real life, the flow and contact of the population is complicated. It is difficult to perform complete monitoring. That is, the prior art lacks a way to conveniently and effectively determine person-to-person contact information.
Disclosure of Invention
The invention provides a method and a device for determining contact information, a readable medium and electronic equipment.
In a first aspect, the present invention provides a method for determining contact information, including:
when a first Bluetooth device is in an m-th scanning period, scanning to obtain a first broadcast signal broadcast by a second Bluetooth device, and determining first record information corresponding to the first Bluetooth device in the m-th scanning period;
when the first Bluetooth device is in the nth scanning period, scanning to obtain a first broadcast signal broadcast by the second Bluetooth device, and determining second record information corresponding to the first Bluetooth device in the nth scanning period;
determining contact information between the first Bluetooth device and the second Bluetooth device according to the first record information and the second record information;
wherein m and n are positive integers, and the nth scan period is after the mth scan period.
Preferably, the determining the second record information corresponding to the first bluetooth device in the nth scanning period includes:
when the first Bluetooth device is in the nth scanning period, scanning to obtain a first broadcast signal broadcasted by the second Bluetooth device; in the (n + 1) th scanning period, the first Bluetooth equipment does not scan to obtain a first broadcast signal broadcast by the second Bluetooth equipment; determining second record information corresponding to the first Bluetooth device in the nth scanning period.
Preferably, the determining the first record information corresponding to the first bluetooth device in the mth scanning period includes: determining timestamp information and device distance information corresponding to the mth scanning period of the first Bluetooth device;
the determining of the second record information corresponding to the first bluetooth device in the nth scanning period includes: and determining the timestamp information and the device distance information corresponding to the nth scanning period of the first Bluetooth device.
Preferably, the determining contact information between the first bluetooth device and the second bluetooth device according to the first record information and the second record information includes:
determining contact duration information according to the timestamp information corresponding to the mth scanning period and the timestamp information corresponding to the nth scanning period;
determining contact distance information according to the equipment distance information corresponding to the mth scanning period and the equipment distance information corresponding to the nth scanning period;
and determining the contact information between the first Bluetooth device and the second Bluetooth device according to the contact duration information and the contact distance information.
Preferably, the determining contact information according to the contact duration information and the contact distance information includes:
inquiring a preset grade strategy according to the contact duration information and the contact distance information to determine a corresponding contact grade;
and determining the contact information according to the contact grade.
Preferably, the determining the device distance information comprises:
determining the device distance information according to the signal strength of the first broadcast signal.
Preferably, the method further comprises the following steps:
and when the scanning duration of the first Bluetooth equipment reaches a preset switching period, switching the first Bluetooth equipment into a broadcasting mode and sending a broadcasting signal. .
In a second aspect, the present invention provides an apparatus for determining contact information, including:
the first record information determining module is used for determining first record information corresponding to a first Bluetooth device in an m-th scanning period when the first Bluetooth device scans a first broadcast number broadcasted by a second Bluetooth device in the m-th scanning period;
the second record information determining module is used for determining second record information corresponding to the first Bluetooth device in an nth scanning period when the first Bluetooth device scans to obtain a first broadcast signal broadcasted by the second Bluetooth device in the nth scanning period;
the contact information determining module is used for determining contact information between the first Bluetooth device and the second Bluetooth device according to the first record information and the second record information;
wherein m and n are positive integers, and the nth scan period is after the mth scan period.
In a third aspect, the present invention provides a readable medium comprising executable instructions, which when executed by a processor of an electronic device, perform the method for determining contact information according to any one of the first aspect.
In a fourth aspect, the present invention provides an electronic device, including a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor performs the method for determining contact information according to any one of the first aspect.
The invention provides a method and a device for determining contact information, a readable medium and electronic equipment, wherein the contact information capable of describing a contact process is accurately determined through first recorded information corresponding to the start of contact and second recorded information corresponding to the end of contact; the contact information comprises the contact duration and the contact distance of the contact, and not only can the existence of the contact be determined, but also the contact closeness degree can be further determined; so that the propagators and the contacters can be tracked according to the contact closeness degree in epidemic prevention; the practical requirements in epidemic prevention work are better met.
Further effects of the above-mentioned unconventional preferred modes will be described below in conjunction with specific embodiments.
Drawings
In order to more clearly illustrate the embodiments or the prior art solutions of the present invention, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic flowchart illustrating a method for determining contact information according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another method for determining contact information according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for determining contact information according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail and completely with reference to the following embodiments and accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
One of the important means for blocking the infection source is to effectively monitor the flowing and contacting conditions of the population. So as to clarify the action track of the propagator and clarify the corresponding contact person. Therefore, the propagator and the contacter can be treated at the first time, and the pathogen diffusion is avoided. This measure has achieved great success during epidemic prevention against new coronaviruses.
However, in real life, the flow and contact of the population is complicated. It is difficult to perform complete monitoring. At present, some technical solutions attempt to determine the contact situation between people more quickly through an intelligent terminal (e.g., a mobile phone, a wearable device, etc.) carried by most people.
Specifically, the near field communication devices (such as bluetooth devices) mounted on the intelligent terminal can be used for mutual communication, so that the contact between people can be determined. Taking bluetooth devices as an example, the communication range of bluetooth devices carried by current intelligent terminals is about 10 m. When the person a and the person b are in close contact, the bluetooth devices on the smart terminals carried by the person a and the person b can perform communication interaction through a scanning program (i.e. what is commonly called startLeScan of bluetooth adapter in the field) in the bluetooth adapter, that is, discovery and discovery exist between the two bluetooth devices. That is, if there is a communication interaction between bluetooth devices, it can be considered that there is a mutual contact between the corresponding persons.
However, the above-described technical solutions have a drawback in that only the presence or absence of contact can be determined, but specific contact information cannot be determined. That is, information indicating the degree of contact closeness, such as the specific contact time and contact distance, cannot be determined during the contact. The epidemic prevention treatment mode for the propagator and the contacter is often required to depend on the contact closeness degree. Therefore, the technical scheme still cannot meet the actual requirements in epidemic prevention work.
Therefore, the invention provides a method and a device for determining contact information, which perform communication interaction through a bluetooth device carried by an intelligent terminal to determine whether contact exists between people and determine specific contact information.
Referring to fig. 1, a specific embodiment of the method for determining contact information according to the present invention is shown. In daily life, intelligent terminals (such as mobile phones, smart watches, and the like) are used by almost everyone and are carried around. And all can carry on bluetooth equipment on the intelligent terminal. Therefore, in this embodiment, the determination of the contact information will be based on the bluetooth device.
It should be noted that during the communication interaction (usually called pairing in application), the bluetooth device can be divided into a master device and a slave device. The slave device is capable of broadcasting specific broadcast information. And after the master device scans the broadcast information, the communication connection can be established with the slave device. However, from a hardware perspective, the master and slave devices are equivalent. I.e., each bluetooth device, may communicate as either a master or a slave. In other words, the bluetooth device may have two modes of operation, a scan mode and a broadcast mode, and the two modes may be switched at any time during use. The bluetooth device in the scan mode, i.e. as the master device, may also be referred to as the first bluetooth device in this embodiment. The bluetooth device in the broadcast mode, i.e. as the slave device, may also be referred to as the second bluetooth device in this embodiment.
In this embodiment, the method specifically includes the following steps:
step 101, when a first bluetooth device is in an m-th scanning period, scanning to obtain a first broadcast signal broadcasted by a second bluetooth device, and determining first record information corresponding to the first bluetooth device in the m-th scanning period.
As described above, after entering the scanning mode, the first bluetooth device scans according to a preset scanning period to find out whether a second bluetooth device in the broadcast mode enters its communication range. The length of the scanning period can be set according to actual requirements, and can be set to 20 milliseconds in the embodiment.
It is assumed that the first bluetooth device has obtained the first broadcast signal broadcast by the second bluetooth device during the mth scan (m is a positive integer), i.e., the first scan in the mth scan period. It means that the second bluetooth device comes within the communication range of the first bluetooth device at this time. Meaning that the smart device (and the user of the smart device) carrying both starts to touch in close proximity.
Therefore, in the present embodiment, the first recording information corresponding to the mth scanning cycle is determined. The first recording information is recording information corresponding to the time when the contact is started. The first recording information may include time stamp information and device distance information corresponding to the mth scanning period. The time stamp information represents the time when the contact is initiated, and the device distance information represents the distance between the first bluetooth device and the second bluetooth device at the time of the contact initiation, i.e., the distance between the users of the respective two smart devices.
And step 102, when the first bluetooth device is in the nth scanning period, scanning to obtain a first broadcast signal broadcast by the second bluetooth device, and determining second record information corresponding to the first bluetooth device in the nth scanning period.
It is assumed that the first bluetooth device gets the first broadcast signal broadcast by the second bluetooth device during the nth scan (n is a positive integer greater than m), i.e., the last scan of the nth scan period after the mth scan period. This means that the second bluetooth device is now about to leave the communication range of the first bluetooth device. This means that the close-proximity contact of the smart device (and the user of the smart device) equipped with both devices is completed.
Therefore, in the present embodiment, the second recording information corresponding to the nth scanning period is determined. The second recording information is recording information corresponding to the time when the contact is completed. The second recording information may include time stamp information and device distance information corresponding to the nth scan cycle. The time stamp information represents the time of the contact end, and the device distance information represents the distance between the first bluetooth device and the second bluetooth device at the time of the contact end, that is, the distance between the users of the two corresponding smart devices.
It should be noted that, in this embodiment, the nth scanning period can be specifically determined as the scanning period in which the first broadcast signal is found in the last scanning in the following manner. When the first Bluetooth device is in the nth scanning period, scanning to obtain a first broadcast signal broadcasted by the second Bluetooth device; and in the (n + 1) th scanning period, when the first broadcast signal broadcasted by the second bluetooth device is not scanned, the (n) th scanning period can be considered as the scanning period for finding the first broadcast signal by the last scanning, and the second recording information corresponding to the (n) th scanning period is further determined.
Step 103, determining contact information between the first bluetooth device and the second bluetooth device according to the first recorded information and the second recorded information.
As can be seen from the foregoing, the first recording information includes the time and distance of the contact start; the second recording information includes the time and distance of the end of contact. Contact information between the first bluetooth device and the second bluetooth device may be determined according to the first recorded information and the second recorded information. The contact information includes the contact duration and the contact distance of the contact. While the length of contact and the distance of contact can represent the degree of closeness of contact.
That is, the method of the present embodiment can determine not only the presence or absence of contact, but also the degree of closeness of contact. The epidemic prevention treatment mode for the propagator and the contacter is often required to depend on the contact intimacy degree. Therefore, the method in the embodiment can have a better effect in epidemic prevention.
According to the technical scheme, the beneficial effects of the embodiment are as follows: the contact information capable of describing the contact process is accurately determined through the first recorded information corresponding to the contact start and the second recorded information corresponding to the contact end; the contact information comprises the contact duration and the contact distance of the contact, and not only can the existence of the contact be determined, but also the contact closeness degree can be further determined; so that the propagators and the contacters can be tracked according to the contact closeness degree in epidemic prevention; the practical requirements in epidemic prevention work are better met.
Fig. 1 shows only a basic embodiment of the method of the present invention, and based on this, certain optimization and expansion can be performed, and other preferred embodiments of the method can also be obtained.
Fig. 2 shows another embodiment of the method for determining contact information according to the present invention. This embodiment is explained in more detail based on the foregoing embodiment. The method specifically comprises the following steps:
step 201, when the first bluetooth device is in the m-th scanning period, scanning to obtain a first broadcast signal broadcasted by the second bluetooth device, and determining first record information corresponding to the first bluetooth device in the m-th scanning period.
Step 202, when the first bluetooth device is in the nth scanning period, scanning to obtain the first broadcast signal broadcast by the second bluetooth device, and determining the second record information corresponding to the first bluetooth device in the nth scanning period.
The above steps 201 to 202 are the same as those in the embodiment shown in fig. 1, and the description thereof will not be repeated.
It should be noted that, in the first recording information and the second recording information, the device distance information may be determined according to the signal strength of the first broadcast signal. Reference may be made specifically to the following formula:
d=10^((abs(RSSI)-A)/(10*n))
where d represents device distance information. Rssi (received Signal Strength indicator) is an indication of the Strength of the received Signal (i.e., the received first broadcast Signal), and is typically a negative value; in the art RSSI is 10 log P, where P represents the received signal power. A represents the signal strength when the first bluetooth device and the second bluetooth device are 1 meter apart. n represents an environmental attenuation factor. The values a and n should theoretically be measured actually, and may be set empirically in the application, and are considered as known parameters in this embodiment. abs () represents an absolute value computation function.
It should be noted that, in this embodiment, the first recorded information and the second recorded information may further include corresponding positioning information, and the specific position where the contact occurs may be further determined according to the positioning information.
Step 203, determining contact duration information according to the timestamp information corresponding to the mth scanning period and the timestamp information corresponding to the nth scanning period.
In this embodiment, the duration of the contact may be determined according to the timestamp information corresponding to the mth scanning cycle and the timestamp information corresponding to the nth scanning cycle. For example, the timestamp information corresponding to the m-th scanning period is 10 minutes and 02 seconds at 9 am; the timestamp information corresponding to the nth scanning period is 12 minutes and 16 seconds at 9 am. The calculation yields a contact time period of 2 minutes and 14 seconds.
And 204, determining contact distance information according to the equipment distance information corresponding to the mth scanning period and the equipment distance information corresponding to the nth scanning period.
According to the device distance information calculation method, the device distance corresponding to the scanning period can be calculated according to the intensity of the received first broadcast signal during each scanning of the first Bluetooth device. And it will be appreciated that the device distance will also typically vary over time during contact.
Therefore, in this embodiment, an average value of the device distance information corresponding to the m-th scanning period and the device distance information corresponding to the n-th scanning period may be calculated as the contact distance information. Preferably, a plurality of scanning periods between the m-th scanning period and the n-th scanning period may be additionally selected, the device distance information corresponding to each scanning period is calculated, and then the average value of all the obtained device distance information is determined as the contact distance information.
Step 205, determining the contact information between the first bluetooth device and the second bluetooth device according to the contact duration information and the contact distance information.
The contact duration information, the contact distance information and the positioning information can be directly used as part of the specific content of the contact information. In addition, in this embodiment, a specific level policy may be preset, and the preset level policy may be queried according to the contact duration information and the contact distance information to determine a corresponding contact level; and determining the contact information according to the contact grade.
Assume in this embodiment that the ranking policy is as follows:
when h is more than or equal to 30min and l is less than or equal to 10m, corresponding to first-stage close contact;
when the time is more than 30min and h is more than or equal to 20min and l is more than 10m, corresponding to two-stage close contact;
when the time is more than 20min and h is more than or equal to 10min and l is more than 10m, corresponding three-level close contact is carried out;
when h <10min and l >10m, corresponding to four stages of intimate contact.
Where h represents contact duration information and l represents contact distance information.
The contact of each level may correspond to different treatment modes in the epidemic prevention process, which is not limited in this embodiment.
It should be noted that the above differentiation of the contact level is not limited to the data provided in the above embodiments, and the contact level range may be set by itself according to actual situations.
In epidemic prevention, if person A goes to a shopping mall for shopping before the disease is not diagnosed, person A comes into contact with person B. The posterior nail is diagnosed with the infectious disease, the first recorded information and the second recorded information can be read through the intelligent device carried by the personnel nail, and the contact information is further determined. Therefore, the contact closeness degree of the person A and the person B is obtained, and therefore the person B can be accurately treated.
It should be noted that, at the time of contact occurrence, it is not determined which of the two parties of contact is a potential propagator. Therefore, preferably, both bluetooth devices are required to be used as the first bluetooth device for a period of time, so as to scan the other party, and thus the contact information can be determined locally at the intelligent terminal carried by the other party. That is to say, any bluetooth device equipped in the smart terminal needs to be switched between the first bluetooth device and the second bluetooth device.
In this embodiment, a specific switching period is preset. And when the scanning duration of the first Bluetooth equipment reaches a preset switching period, switching the first Bluetooth equipment into a broadcast mode. I.e. the first bluetooth device starts to transmit broadcast signals. For example, the switching period may be set to 20 seconds.
Fig. 3 shows an embodiment of the apparatus for determining contact information according to the present invention. The apparatus of this embodiment is a physical apparatus for performing the method described in fig. 1-2. The technical solution is essentially the same as that in the above embodiment, and the corresponding description in the above embodiment is also applicable to this embodiment. The device in this embodiment includes:
the first record information determining module 301 is configured to determine, when a first bluetooth device scans a first broadcast number broadcasted by a second bluetooth device in an mth scanning period, first record information corresponding to the first bluetooth device in the mth scanning period.
A second record information determining module 302, configured to determine second record information corresponding to the first bluetooth device in an nth scanning period when the first bluetooth device scans the first broadcast signal broadcast by the second bluetooth device in the nth scanning period.
A contact information determining module 303, configured to determine contact information between the first bluetooth device and the second bluetooth device according to the first record information and the second record information.
Wherein m and n are positive integers, and the nth scan period is after the mth scan period.
Further, on the basis of the embodiment shown in fig. 3, the preferred first record information determining module 301 includes:
and the first time recording unit is used for determining the timestamp information corresponding to the m-th scanning period of the first Bluetooth device.
And the first distance recording unit is used for determining the device distance information corresponding to the first Bluetooth device in the m-th scanning period.
Preferably, the second recording information determining module 302 includes:
and the second time recording unit is used for determining the timestamp information corresponding to the nth scanning period of the first Bluetooth device.
And the second distance recording unit is used for determining the device distance information corresponding to the first Bluetooth device in the nth scanning period.
Preferably, the contact information determining module 303 includes:
and the time length information determining unit is used for determining the contact time length information according to the timestamp information corresponding to the mth scanning period and the timestamp information corresponding to the nth scanning period.
And the distance information determining unit is used for determining the contact distance information according to the equipment distance information corresponding to the mth scanning period and the equipment distance information corresponding to the nth scanning period.
And the contact information determining unit is used for determining the contact information between the first Bluetooth device and the second Bluetooth device according to the contact duration information and the contact distance information.
Preferably, the contact information determination unit includes:
and the grade determining subunit is used for inquiring a preset grade strategy according to the contact duration information and the contact distance information so as to determine a corresponding contact grade.
And the information determining subunit is used for determining the contact information according to the contact level.
Preferably, the method further comprises the following steps:
and the switching module is used for switching the first Bluetooth equipment into a broadcast mode and sending a broadcast signal when the scanning duration of the first Bluetooth equipment reaches a preset switching period.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. On the hardware level, the electronic device comprises a processor and optionally an internal bus, a network interface and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
And the memory is used for storing the execution instruction. In particular, a computer program that can be executed by executing instructions. The memory may include both memory and non-volatile storage and provides execution instructions and data to the processor.
In a possible implementation manner, the processor reads the corresponding execution instruction from the non-volatile memory into the memory and then runs the corresponding execution instruction, and the corresponding execution instruction can also be obtained from other equipment so as to form the determination device of the contact information on a logic level. The processor executes the execution instructions stored in the memory, so that the determination method of the contact information provided by any embodiment of the invention is realized through the executed execution instructions.
The method performed by the apparatus for determining contact information according to the embodiment of the present invention shown in fig. 3 may be implemented in or by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
An embodiment of the present invention further provides a readable storage medium, where the readable storage medium stores an execution instruction, and when the stored execution instruction is executed by a processor of an electronic device, the electronic device can be caused to perform the method for determining contact information provided in any embodiment of the present invention, and is specifically configured to perform the method shown in fig. 1 or fig. 2.
The electronic device described in the foregoing embodiments may be a computer.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects.
The embodiments of the present invention are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present invention, and is not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (10)

1. A method for determining contact information, comprising:
when a first Bluetooth device is in an m-th scanning period, scanning to obtain a first broadcast signal broadcast by a second Bluetooth device, and determining first record information corresponding to the first Bluetooth device in the m-th scanning period;
when the first Bluetooth device is in the nth scanning period, scanning to obtain a first broadcast signal broadcast by the second Bluetooth device, and determining second record information corresponding to the first Bluetooth device in the nth scanning period;
determining contact information between the first Bluetooth device and the second Bluetooth device according to the first record information and the second record information;
wherein m and n are positive integers, and the nth scan period is after the mth scan period.
2. The method of claim 1, wherein the determining the second recorded information corresponding to the first bluetooth device in the nth scan cycle comprises:
when the first Bluetooth device is in the nth scanning period, scanning to obtain a first broadcast signal broadcasted by the second Bluetooth device; in the (n + 1) th scanning period, the first Bluetooth equipment does not scan to obtain a first broadcast signal broadcast by the second Bluetooth equipment; determining second record information corresponding to the first Bluetooth device in the nth scanning period.
3. The method of claim 1, wherein the determining the first recorded information corresponding to the first bluetooth device in the m-th scanning period comprises: determining timestamp information and device distance information corresponding to the mth scanning period of the first Bluetooth device;
the determining of the second record information corresponding to the first bluetooth device in the nth scanning period includes: and determining the timestamp information and the device distance information corresponding to the nth scanning period of the first Bluetooth device.
4. The method of claim 3, wherein determining contact information between the first Bluetooth device and the second Bluetooth device according to the first recorded information and the second recorded information comprises:
determining contact duration information according to the timestamp information corresponding to the mth scanning period and the timestamp information corresponding to the nth scanning period;
determining contact distance information according to the equipment distance information corresponding to the mth scanning period and the equipment distance information corresponding to the nth scanning period;
and determining the contact information between the first Bluetooth device and the second Bluetooth device according to the contact duration information and the contact distance information.
5. The method of claim 4, wherein the determining contact information according to the contact duration information and the contact distance information comprises:
inquiring a preset grade strategy according to the contact duration information and the contact distance information to determine a corresponding contact grade;
and determining the contact information according to the contact grade.
6. The method of claim 3, wherein the determining the device distance information comprises:
determining the device distance information according to the signal strength of the first broadcast signal.
7. The method according to any one of claims 1 to 6, further comprising:
and when the scanning duration of the first Bluetooth equipment reaches a preset switching period, switching the first Bluetooth equipment into a broadcasting mode and sending a broadcasting signal.
8. An apparatus for determining contact information, comprising:
the first record information determining module is used for determining first record information corresponding to a first Bluetooth device in an m-th scanning period when the first Bluetooth device scans a first broadcast number broadcasted by a second Bluetooth device in the m-th scanning period;
the second record information determining module is used for determining second record information corresponding to the first Bluetooth device in an nth scanning period when the first Bluetooth device scans to obtain a first broadcast signal broadcasted by the second Bluetooth device in the nth scanning period;
the contact information determining module is used for determining contact information between the first Bluetooth device and the second Bluetooth device according to the first record information and the second record information;
wherein m and n are positive integers, and the nth scan period is after the mth scan period.
9. A readable medium comprising executable instructions which, when executed by a processor of an electronic device, the electronic device performs the method of determining contact information of any one of claims 1 to 7.
10. An electronic device comprising a processor and a memory storing execution instructions, the processor performing the method of determining contact information according to any one of claims 1 to 7 when the processor executes the execution instructions stored in the memory.
CN202010796607.0A 2020-08-10 2020-08-10 Method and device for determining contact information, readable medium and electronic equipment Active CN112135259B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010796607.0A CN112135259B (en) 2020-08-10 2020-08-10 Method and device for determining contact information, readable medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010796607.0A CN112135259B (en) 2020-08-10 2020-08-10 Method and device for determining contact information, readable medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112135259A true CN112135259A (en) 2020-12-25
CN112135259B CN112135259B (en) 2022-11-04

Family

ID=73851798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010796607.0A Active CN112135259B (en) 2020-08-10 2020-08-10 Method and device for determining contact information, readable medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112135259B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022257665A1 (en) * 2021-06-09 2022-12-15 荣耀终端有限公司 Device tracking detection method and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010277452A (en) * 2009-05-29 2010-12-09 Softbank Telecom Corp Portable terminal, apparatus, method and system for processing information
CN107071701A (en) * 2017-03-13 2017-08-18 广州视源电子科技股份有限公司 A kind of Bluetooth slave devices find the method and Bluetooth slave devices of target Bluetooth slave unit
CN111126535A (en) * 2020-03-03 2020-05-08 深圳市五湖智联实业有限公司 Crowd contact tracing device and tracing method thereof
CN111166300A (en) * 2020-03-10 2020-05-19 上海塑盟科技发展有限公司 Intelligent epidemic prevention device and method based on Bluetooth electronic temperature measurement patch
CN111210886A (en) * 2020-03-05 2020-05-29 宁波一川交通科技有限公司 System and method for collecting human health data in real time
CN210743026U (en) * 2019-11-21 2020-06-12 惠州万泓泰信息科技有限公司 Realize remote non-contact attendance device based on bluetooth
CN111446006A (en) * 2020-04-08 2020-07-24 陈恬慧 Method for tracking close contact person in epidemic situation of infectious disease

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010277452A (en) * 2009-05-29 2010-12-09 Softbank Telecom Corp Portable terminal, apparatus, method and system for processing information
CN107071701A (en) * 2017-03-13 2017-08-18 广州视源电子科技股份有限公司 A kind of Bluetooth slave devices find the method and Bluetooth slave devices of target Bluetooth slave unit
CN210743026U (en) * 2019-11-21 2020-06-12 惠州万泓泰信息科技有限公司 Realize remote non-contact attendance device based on bluetooth
CN111126535A (en) * 2020-03-03 2020-05-08 深圳市五湖智联实业有限公司 Crowd contact tracing device and tracing method thereof
CN111210886A (en) * 2020-03-05 2020-05-29 宁波一川交通科技有限公司 System and method for collecting human health data in real time
CN111166300A (en) * 2020-03-10 2020-05-19 上海塑盟科技发展有限公司 Intelligent epidemic prevention device and method based on Bluetooth electronic temperature measurement patch
CN111446006A (en) * 2020-04-08 2020-07-24 陈恬慧 Method for tracking close contact person in epidemic situation of infectious disease

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022257665A1 (en) * 2021-06-09 2022-12-15 荣耀终端有限公司 Device tracking detection method and electronic device

Also Published As

Publication number Publication date
CN112135259B (en) 2022-11-04

Similar Documents

Publication Publication Date Title
KR101849482B1 (en) Method and device for analyzing social relationship
CN110113497B (en) Voice call-out method, device, terminal and storage medium based on voice interaction
CN108076226B (en) Method for adjusting call quality, mobile terminal and storage medium
US20090149168A1 (en) System and method for disabling text message functionality
TWI294241B (en) Method for a communication device to filter an incoming call according to location
CN110213712B (en) Positioning transmission method, device, terminal and storage medium
CN112135259B (en) Method and device for determining contact information, readable medium and electronic equipment
CN111402914B (en) Noise elimination method, device, electronic equipment and storage medium
CN113849372A (en) Method and device for determining database capacity
RU2663355C1 (en) Method and device for installing connection for service
WO2014048107A1 (en) Terminal log generation method and terminal
JP2006060671A (en) Device, method and program for searching frequency channel
CN110689702A (en) Safety early warning method and device based on intelligent wearable device and intelligent wearable device
CN107295493B (en) Information reporting method, device, terminal and computer readable storage medium
CN115880119A (en) Carbon emission information generation method, device and medium based on two-stage cooperation
RU2733280C1 (en) Method and apparatus for transmitting system information
CN109688167B (en) Data processing method, device, equipment and computer storage medium
CN111885708B (en) Positioning method, positioning device, user equipment and computer readable storage medium
CN112532661B (en) Method, device, equipment and medium for pairing connection between same video applications
CN112232954A (en) Dynamic adjustment method and device for proposal timeout threshold value and electronic equipment
CN113141642A (en) Method, device, mobile terminal and storage medium for eliminating interference to GPS signal
CN116166701B (en) Service data real-time early warning method, device, equipment and storage medium
CN108156302B (en) Control method of mobile terminal, mobile terminal and storage medium
CN110968516A (en) Application memory testing method and device and computer storage medium
CN110636577A (en) Method, system and computer readable storage medium for high speed transmission of noise monitoring data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant