Equipment positioning method, device and equipment
By using audio signals of different frequencies and actively controlling the sounding in the device positioning, the problem of inaccurate positioning caused by environmental interference is solved, the accuracy and scope of application of equipment positioning is improved, and the rapid and accurate positioning and multiple functions are achieved in complex environments. Efficient positioning of equipment collaboration.
Patent Information
- Application Number
- CN202410986588.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-12
AI Technical Summary
In actual use scenarios, due to interference from environmental factors (such as obstacles, environmental noise, etc.), the device positioning based on the audio signal is inaccurate, resulting in a decrease in search efficiency.
By controlling the second device to transmit audio signals of different frequencies to the spatial environment, combining audio signals of different frequencies to determine the position of the second device, weakening the interference of obstacles and noise in the environment, thereby improving the accuracy of position information and actively Controlling sounding achieves positioning, suitable for scenes where the holder of the second device is trapped and unconscious.
It improves the accuracy of equipment positioning, expands the scope of application of positioning methods, can quickly and accurately determine the equipment position in complex environments, and improve positioning efficiency in multi-device cooperation.
Smart Images

Figure CN118945591A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of positioning technology, and in particular to a device positioning method, apparatus and device. Background Art
[0002] Device positioning technology based on audio signals has been widely used in a variety of scenarios where specific devices need to be searched and located. As an example, after a sudden disaster occurs, the search device at the disaster site can receive the audio signal emitted by the searched device and determine the location of the searched device based on the received audio signal, thereby assisting the search personnel at the site to promptly find the trapped person holding the searched device and take rescue measures.
[0003] In actual usage scenarios, due to interference from environmental factors (such as obstacles, ambient noise, etc.), the audio signal received by the search device from the searched device sometimes cannot accurately reflect the positional relationship between the search device and the searched device, resulting in the search device determining the position of the searched device based on the audio signal is inaccurate, resulting in reduced search efficiency. Summary of the invention
[0004] To this end, this application discloses the following technical solutions:
[0005] A first aspect of the present application provides a device positioning method, which is applied to a first device, and the method includes:
[0006] Controlling a second device to transmit a first audio signal to a spatial environment, where the second device and the first device are in the same spatial environment;
[0007] determining first position information of the second device according to the first audio signal;
[0008] When the first audio signal satisfies a switching condition, controlling the second device to transmit a second audio signal to the spatial environment, wherein a frequency of the first audio signal is different from a frequency of the second audio signal;
[0009] The first position information of the second device is updated according to the second audio signal.
[0010] Optionally, controlling the second device to transmit the first audio signal to the spatial environment includes:
[0011] A first control signal is transmitted to a spatial environment where a second device is located, where the first control signal is used to trigger the second device to transmit a first audio signal.
[0012] Optionally, determining the first position information of the second device according to the first audio signal includes:
[0013] determining second position information of the second device according to the first audio signal;
[0014] receiving third location information of the second device provided by a third device, where the third location information is location information determined by the third device according to the received first audio signal, and the first device is in communication with the third device;
[0015] The first location information of the second device is determined according to the second location information and the third location information.
[0016] Optionally, the number of the third location information is multiple;
[0017] The determining the first location information of the second device according to the second location information and the third location information includes:
[0018] removing abnormal location information from the second location information and the plurality of third location information;
[0019] The first location information of the second device is determined according to the location information that has not been removed.
[0020] Optionally, also include:
[0021] Send trigger time information to the third device, so that the third device determines the third position information according to the trigger time information and the received first audio signal, wherein the trigger time information is the time information when the first device triggers the second device to transmit the first audio signal.
[0022] Optionally, also include:
[0023] After establishing communication connections with the plurality of third devices, sending reference information as a basis for grouping to a command center, the reference information including location information of the second device, location information of the third device, the number of the second devices, and the number of the third devices;
[0024] receiving a grouping instruction fed back by the command center based on the reference information, wherein the grouping instruction is used to divide the first device and the plurality of third devices into a plurality of groups;
[0025] forwarding the grouping instruction to a target third device according to the grouping instruction, and disconnecting the communication connection between the first device and the target third device, so as to trigger the target third device to establish a communication connection with each other according to the grouping instruction;
[0026] The target third device includes the third devices among the plurality of third devices that do not belong to the same group as the first device.
[0027] Optionally, also include:
[0028] receiving a connection request from a third device, and establishing a communication connection with the third device after determining that an identification code carried in the connection request is consistent with an identification code preset by the first device;
[0029] and / or,
[0030] A disconnection request from the third device is received, and the communication connection with the third device is disconnected.
[0031] Optionally, also include:
[0032] Determining location information of the first device;
[0033] The location information of the first device and the first location information of the second device are sent to a fourth device, and the fourth device is communicatively connected with the first device.
[0034] Optionally, the first audio signal satisfies a switching condition, including:
[0035] The intensity of the first audio signal is less than or equal to a first intensity threshold, or greater than or equal to a second intensity threshold, and the first intensity threshold is less than the second intensity threshold.
[0036] Optionally, also include:
[0037] Displaying the first location information of the second device on a display screen of the first device;
[0038] and / or,
[0039] Sending the first location information of the second device to a terminal device that is communicatively connected to the first device, wherein a display screen of the terminal device is used to display the first location information of the second device;
[0040] The first location information includes coordinates of the location of the second device in a coordinate system with the location of the first device as the origin.
[0041] A second aspect of the present application provides a device positioning apparatus, comprising:
[0042] A control unit, configured to control a second device to transmit a first audio signal to a spatial environment in which the second device and the first device are located;
[0043] a determining unit, configured to determine first position information of the second device according to the first audio signal;
[0044] The control unit is configured to control the second device to transmit a second audio signal to a spatial environment when the first audio signal satisfies a switching condition, wherein a frequency of the first audio signal is different from a frequency of the second audio signal;
[0045] The determining unit is configured to update the first location information of the second device according to the second audio signal.
[0046] A third aspect of the present application provides an electronic device, including:
[0047] A signal transmitter, used to transmit a control signal to the space environment;
[0048] An audio receiver, used to receive audio signals from the spatial environment;
[0049] Memory for storing computer programs;
[0050] The processor is used to implement the device positioning method provided in any one of the first aspects of the present application when executing the program in the memory.
[0051] The beneficial effects of this application are:
[0052] When searching for the location of the second device, the first device can control the second device to emit multiple audio signals of different frequencies, and combine the multiple audio signals of different frequencies to determine the location of the second device. Compared with a solution based on a single-frequency audio signal for searching, combining audio signals of different frequencies for searching can reduce interference from factors such as obstacles and noise in the environment, thereby improving the accuracy of the determined location information;
[0053] In addition, the present application realizes the positioning of the second device by actively controlling the sound emission, and no personnel are required to operate the second device during the positioning process. Compared with the positioning method that requires the operation of the second device, the positioning method of the present application has a wider scope of application. For example, the positioning method of the present application can be applied to the positioning of the second device in a scenario where the holder of the second device is trapped and loses consciousness;
[0054] Furthermore, in some embodiments, the first device may be located in combination with the third location information provided by the third device, thereby enabling multiple devices to collaborate and jointly search for the second device, and determining the location of the second device more quickly and accurately;
[0055] Moreover, in some embodiments, the first device may also provide the command center with location and quantity information of surrounding second and third devices, so that the command center can reasonably divide the first and third devices into multiple groups according to the location and quantity information of the second and third devices, and realize multi-device collaboration in each group to jointly search for the second device, thereby further improving positioning efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0057] Figure 1 is a flow chart of a device positioning method provided by an embodiment of the present application;
[0058] Figure 2 is a schematic diagram of determining location information of a second device provided by an embodiment of the present application;
[0059] Figure 3 is a schematic diagram of a first device connected to multiple third devices provided in an embodiment of the present application;
[0060] Figure 4 It is a structural schematic diagram of a device positioning apparatus provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0062] This application embodiment provides a device positioning method, which is applied to a first device. Figure 1 , is a flow chart of the method, and the method may include the following steps.
[0063] S101, controlling a second device to transmit a first audio signal to a spatial environment, where the second device and the first device are in the same spatial environment.
[0064] The device positioning method of this embodiment can be executed by a first device. The first device can be any electronic device having an inter-device communication function and having at least one audio receiving module. As an example, the audio receiving module can be a microphone.
[0065] When the first device has multiple audio receiving modules, the multiple audio receiving modules can be installed on the first device at a certain distance so that the first device can determine the position information based on the received audio signal.
[0066] In step S101, the first device may control the second device to transmit the first audio signal in the following manner:
[0067] A first control signal is transmitted to the spatial environment where the second device is located, where the first control signal is used to trigger the second device to transmit a first audio signal.
[0068] The first device may broadcast the first control signal to the surrounding environment in the form of broadcasting, and after receiving the first control signal, any second device may send out the first audio signal in response to the first control signal.
[0069] The first device may broadcast the first control signal when at least one of the following trigger conditions is met:
[0070] Trigger condition 1: the first device responds to the user's operation instruction to transmit the first control signal and broadcasts the first control signal;
[0071] Trigger condition two: the first device receives a control instruction sent by other electronic devices, and broadcasts a first control signal in response to the control instruction.
[0072] The first control signal may carry a first target frequency, and the second device may transmit a first audio signal of the first target frequency after receiving the first control signal.
[0073] The first target frequency may be set by a user of the first device, or may be set by other electronic devices in a control instruction sent.
[0074] Optionally, the first target frequency may also be determined by the first device itself when the first device determines to transmit the first control signal.
[0075] The first device may determine the first target frequency by searching a frequency table pre-stored in the first device for the lowest frequency or the highest frequency, and determining the frequency as the first target frequency.
[0076] S102: Determine first position information of a second device according to the first audio signal.
[0077] The first location information of the second device includes at least one of the following information:
[0078] The distance from the first device to the second device, the coordinates of the location of the second device (with the location of the first device as the origin), and the altitude of the second device.
[0079] Among them, when the first device has at least two audio receiving modules, the determined first position information may include the above three.
[0080] When the first device has only one audio receiving module, the determined first location information may include the distance from the first device to the second device.
[0081] For example, the first device has two audio receiving modules, microphone 1 and microphone 2. Figure 2 , which is a schematic diagram of determining the coordinates of the second device based on two microphones provided in this embodiment.
[0082] like Figure 2 As shown, the first device can determine the distance L1 from the second device to the microphone 1 according to the time from the transmission of the first control signal to the microphone 1 receiving the audio signal, and similarly determine the distance L2 from the second device to the microphone 2, and then calculate the coordinates (x, y) of the second device according to L1 and L2 using the following formulas (1) and (2). The coordinate system to which the coordinate belongs is a coordinate system with the midpoint between the microphone 1 and the microphone 2 as the origin, and D in the formula is the preset distance between the microphone 1 and the microphone 2. θ is the dynamic angle between the reference coordinates of the terminal device and the sound source (i.e., the second device), which can be calculated based on the difference between L1 and L2 and the distance D. The calculation method can refer to the relevant technology on sound source positioning.
[0083] y=Cos0×L1(1)
[0084]
[0085] When the first device has only one audio receiving module, the first device can calculate the distance L from the first device to the second device using formula (3) according to the time Ts when the first control signal is sent and the time Tx when the first audio signal is received.
[0086] L=V×[(Tx-Ts)-Δtx-Ats(3)
[0087] Wherein, V is the speed of sound in air; Δtx is the preset response time, which indicates the time elapsed from when the second device receives the first control signal to when it sends the first audio signal. This time can be pre-configured in the first device as an inherent parameter of the second device; Δts is the time required for the first device to recognize the first audio signal after the first audio signal reaches the microphone of the first device.
[0088] When there are multiple second devices, the first device may determine the first location information of each second device respectively according to step S102.
[0089] Optionally, to avoid confusion of audio signals of multiple second devices, the audio signal (including the first audio signal and the second audio signal) transmitted by each second device may carry a device identifier that can uniquely indicate the second device, so that the first device can distinguish audio signals of different second devices.
[0090] The altitude of the second device may be determined by the first device determining the altitude difference of the second device relative to the first device based on the first audio signal, that is, determining the z coordinate of the second device in a spatial rectangular coordinate system with the first device as the origin, and then the first device calculates the altitude of the second device based on the altitude of the first device itself and the altitude difference of the second device.
[0091] The method for determining the z coordinate of the second device can refer to the method for determining the coordinates of the second device based on two microphones, which will not be described in detail. The altitude of the first device can be obtained by satellite positioning, ultrasonic reflection, etc.
[0092] S103: When the first audio signal satisfies the switching condition, control the second device to transmit a second audio signal to the spatial environment, wherein the frequency of the first audio signal is different from the frequency of the second audio signal.
[0093] The second device may be controlled to transmit the second audio signal by the first device broadcasting the second control signal to the surrounding environment, and the second device transmits the second audio signal in response to the second control signal after receiving the second control signal.
[0094] The second control signal is used to instruct the second device to transmit an audio signal of a second target frequency, which is different from the first target frequency.
[0095] The first device may determine the second target frequency based on the first target frequency. For example, the first target frequency may be increased or decreased by a preset step to obtain the second target frequency. A frequency found in a preset frequency table that is just higher or lower than the first target frequency may be used as the second target frequency.
[0096] The first device may also be determined according to a user's operation or a control instruction of other electronic devices.
[0097] In some optional embodiments, the first audio signal satisfies the switching condition, which may include:
[0098] The intensity of the first audio signal is less than or equal to a first intensity threshold, or greater than or equal to a second intensity threshold, and the first intensity threshold is less than the second intensity threshold.
[0099] The specific values of the first intensity threshold and the second intensity threshold are not limited. As an example, the first intensity threshold may be 30 decibels, and the second intensity threshold may be 60 decibels.
[0100] Changing the frequency of the audio signal emitted by the second device when the intensity is too high (greater than or equal to the second intensity threshold) or too low (less than or equal to the first intensity threshold) has the following benefits:
[0101] When the strength of the received audio signal is too low or too high, the position information determined by the first device based on the audio signal may have obvious errors. In this case, timely changing the frequency of the audio signal is conducive to determining more accurate position information.
[0102] In some other optional embodiments, the first audio signal satisfies the switching condition, which may include:
[0103] The signal-to-noise ratio of the first audio signal is greater than a preset signal-to-noise ratio threshold.
[0104] The signal-to-noise ratio of the first audio signal can be obtained by detecting the signal-to-noise ratio of audio through the related prior art, which will not be elaborated in this embodiment.
[0105] When the first audio signal does not satisfy the switching condition, the first device controls the second device to maintain the current frequency and continue to transmit the first audio signal, and determines the first position information of the second device in real time according to the first audio signal.
[0106] S104: Update first location information of the second device according to the second audio signal.
[0107] The updating method may be that the first device determines new position information according to the second audio signal, and replaces the old first position information determined in S102 with the new position information; or the first device determines new position information according to the second audio signal, fuses the new position information and the old first position information in S102 to obtain updated first position information, and the fusion method may be to average the two, or other methods.
[0108] Optionally, after step S104, the first device may determine whether the currently received audio signal meets the switching condition each time it receives the audio signal from the second device. If so, the first device may continue to control the second device to send an audio signal having a frequency different from that of the previously received audio signal until the received audio signal does not meet the switching condition.
[0109] That is, when the second audio signal meets the switching condition, the first device can control the second device to transmit a third audio signal whose frequency is different from that of the first and second audio signals; when the third audio signal meets the switching condition, the first device can control the second device to transmit a fourth audio signal whose frequency is different from that of the previous audio signals, and so on.
[0110] Exemplarily, the first device may control the second device to gradually increase the frequency of the transmitted audio signal according to the rules of infrasound, audible sound, and ultrasound.
[0111] It is understandable that when the first device starts to perform device positioning, the first device automatically turns on the map, satellite positioning, altitude detection mic, etc.
[0112] The beneficial effects of this embodiment are:
[0113] The degree of interference of factors such as obstacles and noise in the environment on sounds of different frequencies generally varies. For example, sounds in a specific frequency band may be more easily absorbed or blocked by obstacles, while sounds in other frequency bands are less likely to be absorbed or blocked; the noise in the environment may have a higher intensity in a specific frequency band and a lower intensity in other frequency bands.
[0114] When the first device searches for the position of the second device according to the method of this embodiment, the second device is controlled to emit multiple audio signals of different frequencies, and the position of the second device is determined by combining the multiple audio signals of different frequencies. Compared with the solution of searching based on a single-frequency audio signal, this embodiment can avoid the situation where the single-frequency audio signal is too strongly interfered by environmental factors, resulting in a decrease in positioning accuracy, and improve the accuracy of the position information of the second device determined based on the audio signal in a complex environment.
[0115] In addition, the present application realizes the positioning of the second device by actively controlling the sound, and no personnel are required to operate the second device during the positioning process. Compared with the positioning method that requires operation of the second device, the positioning method of the present application has a wider scope of application. For example, the positioning method of the present application can be used to locate the second device in a scenario where the holder of the second device is trapped and loses consciousness.
[0116] In some optional embodiments, the first device may serve as a master device to establish a communication connection with other devices, and the first device and the other devices may jointly determine the first location information of the second device. In this case, the first device may determine the first location information of the second device in the following manner:
[0117] determining second position information of a second device according to the first audio signal;
[0118] Receiving third location information of the second device provided by a third device, where the third location information is location information determined by the third device according to the received first audio signal, and the first device and the third device are in communication connection;
[0119] The first location information of the second device is determined according to the second location information and the third location information.
[0120] The first device can decide whether to establish a communication connection with the third device based on the user's operation. For example, if the user sets the first device to a single-device search mode, the first device does not establish a communication connection with the third device. If the user sets the first device to a multi-device search mode, the first device establishes a communication connection with the third device.
[0121] The method of determining the second position information according to the first audio signal is the same as the method of directly determining the first position information according to the first audio signal in step S102, and will not be described in detail.
[0122] The third device may be another device that is the same as or different from the first device, and the third device has established a communication connection with the first device in advance.
[0123] In this embodiment, in order to enable the third device to determine the third location information of the second device, the first device can send trigger time information to the third device, so that the third device determines the third location information according to the trigger time information and the received first audio signal. The trigger time information is the time information when the first device triggers the second device to transmit the first audio signal.
[0124] If the first device triggers the second device to transmit the first audio signal by transmitting the first control signal, the trigger time information may be the time information of the first device transmitting the first control signal. For example, if the first device transmits the first control signal at 10:25:40, the trigger time information may be 10:25:40.
[0125] That is to say, when establishing a communication connection with a third device, after the first device transmits a first control signal, the time of transmitting the first control signal can be notified to the third device, so that the third device can determine the third position information of the second device relative to the third device according to the time of sending the first control signal and the time when the third device itself receives the first audio signal, according to the method of determining the first position information in step S102.
[0126] After the third device determines the third location information, it can be displayed on the third device's own display screen; it can be sent to a terminal device (such as a terminal device in a command center) that is communicatively connected to the third device so that it can be displayed on the terminal device; it can be sent to the first device so that the first device can finally determine the first location information; and the third location information can also be shared with other third devices when there are multiple third devices.
[0127] The third location information may include at least one of the following:
[0128] The distance from the third device to the second device, the coordinates of the location of the second device (with the location of the third device as the origin), and the altitude of the second device.
[0129] When the third device provides the third location information to the first device, it may also provide the location information of the third device itself.
[0130] After the first device and the third device establish a communication connection, the first device can also share its own location information with the third device in real time.
[0131] The method of determining the first location information according to the second location information and the third location information may be:
[0132] The first device may first convert the third location information into the same coordinate system as the second location information. For example, according to the location information of the third device, the distance from the third device to the second device is converted into the distance from the first device to the second device, and the coordinates with the third device as the origin are converted into the coordinates with the first device as the origin.
[0133] Then, the average of multiple location information in the same coordinate system is used as the first location information. For example, the distance in the second location information and the converted distance in the third location information are averaged, and the average value is determined as the actual distance from the first device to the second device. The coordinates in the second location information and the converted coordinates in the third location information are averaged, and the average value is determined as the actual coordinates of the second device in the coordinate system with the first device as the origin.
[0134] and Figure 1 Similar to the corresponding embodiment, when acting as the master device, the first device can also control the second device to send a second audio signal when the first audio signal meets the switching condition, so that the third device can determine the updated third position information of the second device according to the second audio signal, and send the updated third position information to the first device. When the first device updates the first position information, it can update the first position information according to the updated third position information and the second audio signal.
[0135] In the above embodiment, the first device can be positioned in combination with the third location information provided by the third device, thereby enabling multiple devices to collaborate and jointly search for the second device, and determining the location of the second device more quickly and accurately.
[0136] See also Figure 3 There may be multiple third devices connected to the first device for communication, and the corresponding number of third location information received by the first device may be multiple.
[0137] When the first device obtains multiple pieces of third location information, the first device may determine the first location information in the following manner:
[0138] removing abnormal location information from the second location information and the plurality of third location information;
[0139] The first location information of the second device is determined according to the location information that has not been removed.
[0140] The first device may determine the abnormal location information that needs to be removed in the following manner:
[0141] Determine an average value of multiple location information (including second location information and multiple third location information). For each location information, if the deviation between the location information and the average value is greater than a preset deviation threshold, determine that the location information is abnormal location information; if the deviation between the location information and the average value is less than or equal to the preset deviation threshold, determine that the location information does not belong to abnormal location information.
[0142] To eliminate inaccurate coordinates, the average value of the coordinate points and the size of the coordinate point values can be used for calculation. That is, the average value of all coordinate points is first calculated, and then the average value is compared with each coordinate point. If those points exceed the set range, the coordinate point is determined to be an inaccurate coordinate point. Repeat the previous operations of this step until all points meet the requirements. Finally, the average value of all remaining coordinate points can be calculated to obtain the accurate position of the second device.
[0143] The above process of removing abnormal position information can be repeatedly performed multiple times until there is no abnormal position information. That is, a batch of abnormal position information can be identified and removed according to the above process, and then a new average value can be re-determined for the position information that has not been removed, and the abnormal position information can be identified and removed again according to the above process based on the new average value until there is no abnormal position information.
[0144] The first device may determine the first location information according to the non-removed location information by averaging the non-removed location information. For details, please refer to the aforementioned method of determining the first location information according to the second location information and the third location information, which will not be described in detail.
[0145] Taking the location information including the coordinates of the location of the second device as an example, the first device can obtain the coordinates of multiple second devices provided by the third device and determined by the first device itself in a coordinate system with its own location as the origin, calculate the average of these coordinates and then remove the coordinates whose deviations from the average are greater than the deviation threshold, and then repeat the process for the coordinates that have not been removed. After finding that the deviations of the remaining coordinates from the average are all less than or equal to the deviation threshold, the first device calculates the average of all remaining coordinates and determines the calculation result as the first location information of the second device, that is, as the true coordinates of the second device in the coordinate system with the first device as the origin.
[0146] The way in which the first device and the third device establish a communication connection may be:
[0147] A connection request from a third device is received, and a communication connection is established with the third device after determining that the identification code carried in the connection request is consistent with the identification code preset by the first device.
[0148] The above identification code can be input into the first device and the third device respectively by the users of the first device and the third device, or can be sent to the first device and the third device by other devices (such as a command center) to which the first device and the third device are communicatively connected.
[0149] The first device and the third device may establish a communication connection via Bluetooth, WIFI, Star Flash, or any other communication technology.
[0150] The first device may also disconnect the communication connection with the third device in the following manner:
[0151] receiving a disconnection request from a third device, and disconnecting the communication connection with the third device;
[0152] Alternatively, in response to an operation instruction from the user or a control instruction from the command center, the communication connection with the third device is disconnected.
[0153] In some embodiments, the first device can establish or disconnect communication connections with other devices according to control instructions of the server, thereby meeting the needs of dynamic grouping.
[0154] In this embodiment, the first device can determine the number of second devices around the first device according to the received first audio signal. For example, if the first device receives first audio signals from 20 different devices, the first device determines that there are 20 second devices around the first device whose positions need to be determined.
[0155] The first device may also determine the number of third devices that establish communication connections with itself. Exemplarily, the number of third devices may be 30.
[0156] Then the first device can send the number of second devices and the number of third devices to the command center that is communicatively connected to the first device, and can also send the location information of the second devices and the location information of the third devices to the command center.
[0157] That is to say, after establishing a communication connection with multiple third devices, the first device can send reference information as a basis for grouping to the command center, where the reference information includes the location information of the second device, the location information of the third device, the number of second devices and the number of third devices.
[0158] After receiving the reference information, the command center can determine a grouping instruction for dividing the first device and the plurality of third devices into a plurality of groups according to the location information and quantity of the second device and the third device included in the reference information.
[0159] After sending the above reference information, the first device can receive a grouping instruction from the command center, which is used to divide the first device and multiple third devices into multiple groups. In combination with the above example, the grouping instruction is used to divide 31 devices (including 1 first device and 30 third devices into multiple groups). The grouping instruction can be determined based on the number of second devices, the number of third devices, and the location information of these second devices.
[0160] Based on the grouping instruction, the first device can disconnect itself from the communication connection with the target third device and forward the grouping instruction to these target third devices, so that the target third devices can establish a communication connection with each other according to the instructions of the grouping instruction, thereby forming multiple device groups, each device group is composed of a master device and at least one slave device that are connected to each other for communication, and devices in different device groups are not connected for communication, and the master device of each device group can act as the first device to execute the device positioning method of this embodiment.
[0161] The target third device refers to a third device that does not belong to the same group as the first device in the grouping instruction.
[0162] In this way, by providing reference information to the command center, the first device and multiple third devices can be dynamically divided into multiple groups according to the number and locations of the second devices being searched under the instruction of the grouping instructions, so that multiple devices can collaborate in each group to jointly search for the second device, thereby improving the search efficiency when searching for the locations of multiple second devices.
[0163] In some optional embodiments, the first device may also establish a communication connection with other devices as a slave device, and then the first device may share the determined first location information of the second device with the master device of the communication connection.
[0164] For example, the first device may serve as a slave device to establish a communication connection with the fourth device, and the fourth device may serve as a master device. In this case, the first device may perform the following steps:
[0165] Determining location information of the first device;
[0166] The location information of the first device and the first location information of the second device are sent to the fourth device, and the fourth device is communicatively connected with the first device.
[0167] The location information of the first device itself can be determined by satellite positioning or other positioning technologies.
[0168] Optionally, when there are multiple second devices, the first device can determine the distance between each second device and itself based on the strength of the audio signals of these second devices, select some of the second devices as target second devices, and send the location information of non-target second devices to the command center. Subsequently, the first device can only determine and display the location information of these target second devices in real time, and the location information of non-target second devices is determined by other devices designated by the command center, so as to avoid insufficient processing power of the first device and the inability to determine the location information of too many second devices.
[0169] The target second device may include a second device whose distance from the first device is less than or equal to a search distance threshold. The search distance threshold may be set according to factors such as the sensitivity of the first device and the acoustic attenuation of the environment in which it is located, and is not limited.
[0170] The first device may further perform the following steps:
[0171] Displaying the first location information of the second device on a display screen of the first device;
[0172] and / or,
[0173] The first location information of the second device is sent to a terminal device that is communicatively connected to the first device, and a display screen of the terminal device is used to display the first location information of the second device.
[0174] In addition, the first device may also display location information of the third device and the fourth device that are communicatively connected.
[0175] The third device and the fourth device may also display respective position information received by themselves or determined according to the audio signal.
[0176] Any device that displays location information can display a map for locating each device on its own display screen, and then display the above-mentioned various location information in the map, and can also display its own location information in the map.
[0177] Optionally, the second device may have multiple battery packs to avoid the situation where a single battery pack is damaged or exhausted and unable to emit an audio signal, thereby improving the positioning success rate.
[0178] Optionally, the first device, the third device and the fourth device may all be mounted with towed sonar detection equipment or other detection equipment through an external interface, so as to detect the audio signal of the second device in various complex environments.
[0179] The present application also provides a device positioning device, see Figure 4 , is a schematic diagram of the structure of the device, and the device may include the following units.
[0180] A control unit 401 is used to control the second device to transmit a first audio signal to the spatial environment in which it is located, and the second device and the first device are in the same spatial environment;
[0181] A determining unit 402, configured to determine first position information of a second device according to the first audio signal;
[0182] A control unit 401 is configured to control the second device to transmit a second audio signal to a spatial environment when the first audio signal meets a switching condition, wherein a frequency of the first audio signal is different from a frequency of the second audio signal;
[0183] The determining unit 402 is configured to update the first location information of the second device according to the second audio signal.
[0184] Optionally, when the control unit 401 controls the second device to transmit the first audio signal to the spatial environment, it is specifically configured to:
[0185] A first control signal is transmitted to the spatial environment where the second device is located, where the first control signal is used to trigger the second device to transmit a first audio signal.
[0186] Optionally, when the determining unit 402 determines the first location information of the second device according to the first audio signal, it is specifically configured to:
[0187] determining second position information of a second device according to the first audio signal;
[0188] Receiving third location information of the second device provided by a third device, where the third location information is location information determined by the third device according to the received first audio signal, and the first device and the third device are in communication connection;
[0189] The first location information of the second device is determined according to the second location information and the third location information.
[0190] Optionally, the control unit 401 is further configured to:
[0191] The trigger time information is sent to the third device, so that the third device determines the third position information according to the trigger time information and the received first audio signal, wherein the trigger time information is the time information when the first device triggers the second device to transmit the first audio signal.
[0192] Optionally, the determining unit 402 is further configured to:
[0193] After establishing communication connections with multiple third devices, sending reference information as a basis for grouping to a command center, the reference information including location information of the second device, location information of the third device, the number of the second devices, and the number of the third devices;
[0194] receiving a grouping instruction fed back by the command center based on the reference information, where the grouping instruction is used to divide the first device and the plurality of third devices into a plurality of groups;
[0195] forwarding the grouping instruction to the target third device according to the grouping instruction, and disconnecting the communication connection between the first device and the target third device, so as to trigger the target third device to establish a communication connection with each other according to the grouping instruction;
[0196] The target third device includes a third device among the plurality of third devices that does not belong to the same group as the first device.
[0197] Optionally, the number of the third location information is multiple;
[0198] When the determining unit 402 determines the first location information of the second device according to the second location information and the third location information, it is specifically used to:
[0199] removing abnormal location information from the second location information and the plurality of third location information;
[0200] The first location information of the second device is determined according to the location information that has not been removed.
[0201] Optionally, the device further includes a communication unit 403, configured to:
[0202] receiving a connection request from a third device, and establishing a communication connection with the third device after determining that an identification code carried in the connection request is consistent with an identification code preset by the first device;
[0203] and / or,
[0204] A disconnection request from a third device is received, and the communication connection with the third device is disconnected.
[0205] Optionally, the determining unit 402 is further configured to:
[0206] Determining location information of the first device;
[0207] The location information of the first device and the first location information of the second device are sent to the fourth device, and the fourth device is communicatively connected with the first device.
[0208] Optionally, the first audio signal satisfies a switching condition, including:
[0209] The intensity of the first audio signal is less than or equal to a first intensity threshold, or greater than or equal to a second intensity threshold, and the first intensity threshold is less than the second intensity threshold.
[0210] Optionally, the device further includes a display unit 404, which is used to:
[0211] Displaying the first location information of the second device on a display screen of the first device;
[0212] and / or,
[0213] The communication unit 403 is further used to send the first location information of the second device to a terminal device that is communicatively connected to the first device, and the display screen of the terminal device is used to display the first location information of the second device;
[0214] The first location information includes the coordinates of the location of the second device in a coordinate system with the location of the first device as the origin.
[0215] The specific working principle and beneficial effects of the device positioning apparatus provided in the embodiment of the present application can be found in the relevant steps and beneficial effects of the device positioning method provided in the embodiment of the present application, and will not be repeated here.
[0216] An embodiment of the present application provides an electronic device, including:
[0217] A signal transmitter, used to transmit a control signal to the space environment;
[0218] An audio receiver, used to receive audio signals from the spatial environment;
[0219] Memory for storing computer programs;
[0220] The processor is used to execute the above-mentioned computer program. When executing the above-mentioned computer program, it is specifically used to implement the device positioning method provided in any embodiment of the present application. For example, the following steps can be performed:
[0221] Using a signal transmitter to control the second device to transmit the first audio signal to the space environment in which it is located, the second device and the first device are in the same space environment;
[0222] determining first location information of a second device according to a first audio signal received by the audio receiver;
[0223] When the first audio signal satisfies the switching condition, the signal transmitter is used to control the second device to transmit the second audio signal to the spatial environment, and the frequency of the first audio signal is different from the frequency of the second audio signal;
[0224] The first location information of the second device is updated according to the second audio signal received by the audio receiver.
[0225] The working principle of the electronic device can be found in the relevant steps of the aforementioned device positioning method, which will not be described in detail.
[0226] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0227] For the convenience of description, the above system or device is described as being divided into various modules or units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0228] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0229] Finally, it should be noted that, in this article, relational terms such as first, second, third and fourth are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0230] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A device positioning method, characterized in that: Applied to a first device, the method includes: Controlling a second device to transmit a first audio signal to a spatial environment, where the second device and the first device are in the same spatial environment; determining first position information of the second device according to the first audio signal; When the first audio signal satisfies a switching condition, controlling the second device to transmit a second audio signal to the spatial environment, wherein a frequency of the first audio signal is different from a frequency of the second audio signal; The first position information of the second device is updated according to the second audio signal.
2. The method according to claim 1, characterized in that The controlling the second device to transmit the first audio signal to the spatial environment includes: A first control signal is transmitted to a spatial environment where a second device is located, where the first control signal is used to trigger the second device to transmit a first audio signal.
3. The method according to claim 1, characterized in that: The determining the first position information of the second device according to the first audio signal further includes: determining second position information of the second device according to the first audio signal; receiving third location information of the second device provided by a third device, where the third location information is location information determined by the third device according to the received first audio signal, and the first device is in communication with the third device; The first location information of the second device is determined according to the second location information and the third location information.
4. The method according to claim 3, characterized in that The number of the third location information is multiple; The determining the first location information of the second device according to the second location information and the third location information includes: removing abnormal location information from the second location information and the plurality of third location information; The first location information of the second device is determined according to the location information that has not been removed.
5. The method according to claim 3, characterized in that: Also includes: Send trigger time information to the third device, so that the third device determines the third position information according to the trigger time information and the received first audio signal, wherein the trigger time information is the time information when the first device triggers the second device to transmit the first audio signal.
6. The method according to claim 3, characterized in that Also includes: After establishing communication connections with the plurality of third devices, sending reference information as a basis for grouping to a command center, the reference information including location information of the second device, location information of the third device, the number of the second devices, and the number of the third devices; receiving a grouping instruction fed back by the command center based on the reference information, wherein the grouping instruction is used to divide the first device and the plurality of third devices into a plurality of groups; forwarding the grouping instruction to a target third device according to the grouping instruction, and disconnecting the communication connection between the first device and the target third device, so as to trigger the target third device to establish a communication connection with each other according to the grouping instruction; The target third device includes the third devices among the plurality of third devices that do not belong to the same group as the first device.
7. The method according to claim 3, characterized in that Also includes: receiving a connection request from a third device, and establishing a communication connection with the third device after determining that an identification code carried in the connection request is consistent with an identification code preset by the first device; and / or, A disconnection request from the third device is received, and the communication connection with the third device is disconnected.
8. The method according to claim 1, characterized in that Also includes: Determining location information of the first device; The location information of the first device and the first location information of the second device are sent to a fourth device, and the fourth device is communicatively connected with the first device.
9. The method according to claim 1, characterized in that: The first audio signal satisfies a switching condition, including: The intensity of the first audio signal is less than or equal to a first intensity threshold, or greater than or equal to a second intensity threshold, and the first intensity threshold is less than the second intensity threshold.
10. The method according to claim 1, characterized in that Also includes: Displaying the first location information of the second device on a display screen of the first device; and / or, Sending the first location information of the second device to a terminal device that is communicatively connected to the first device, wherein a display screen of the terminal device is used to display the first location information of the second device; The first location information includes coordinates of the location of the second device in a coordinate system with the location of the first device as the origin.
11. A device positioning apparatus, characterized in that: include: A control unit, configured to control a second device to transmit a first audio signal to a spatial environment in which the second device and the first device are located; a determining unit, configured to determine first position information of the second device according to the first audio signal; The control unit is configured to control the second device to transmit a second audio signal to a spatial environment when the first audio signal satisfies a switching condition, wherein a frequency of the first audio signal is different from a frequency of the second audio signal; The determining unit is configured to update the first location information of the second device according to the second audio signal.
12. An electronic device, characterized in that: include: A signal transmitter, used to transmit a control signal to the space environment; An audio receiver, used to receive audio signals from the spatial environment; Memory for storing computer programs; The processor is used to implement the device positioning method described in any one of claims 1 to 10 when executing the program in the memory.
