Map construction method, device, electronic device and storage medium

By integrating antenna modules on electronic devices to determine the location of the target device and receive data, it solves the problem of indoor map construction for home users and achieves convenient and efficient map construction.

CN114187384BActive Publication Date: 2024-10-25SHENZHEN TCL DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111553211.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-17
Publication Date
2024-10-25
Estimated Expiration
2041-12-17

AI Technical Summary

Technical Problem

In home use scenarios, building indoor maps requires professional scanning equipment, and the equipment is expensive, making it difficult for ordinary users to build maps.

Method used

By integrating the first antenna module and the second antenna module on the electronic device, the location information of the target device is determined, and data sent by the target device is received to construct an indoor map.

Benefits of technology

The convenience of map construction is improved, and map construction only needs the cooperation of electronic equipment and target equipment, reducing equipment cost and complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114187384B_ABST
    Figure CN114187384B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a map construction method, device, electronic device and storage medium. The method includes: the electronic device determines the first location information of the target device through the first antenna module and the second antenna module, then receives the target data sent by the target device, and then determines the second location information of the target device according to the target data, and finally constructs the map according to the first location information and the second location information. In the embodiment of the present application, only the cooperation between the electronic device and the target device is required to complete the construction of the indoor map, which improves the convenience of building the map.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a map construction method, device, electronic device and storage medium. Background Art

[0002] In the related art, if an indoor map needs to be constructed, a scanning device needs to enter each room or corner to scan, so as to obtain spatial data, and finally construct a spatial map based on the spatial data.

[0003] However, in some home use scenarios, it is difficult to purchase suitable scanning equipment, and some scanning equipment has a high price, so it is difficult for ordinary users to build indoor maps. Summary of the invention

[0004] The embodiments of the present application provide a map construction method, device, electronic device and storage medium. The map construction method improves the convenience of map construction.

[0005] In a first aspect, an embodiment of the present application provides a map construction method, which is applied to an electronic device, the electronic device including a first antenna module and a second antenna module, the method including:

[0006] Determine first location information of a target device by using a first antenna module and a second antenna module;

[0007] Receive target data sent by the target device;

[0008] determining second location information of the target device according to the target data;

[0009] A map is constructed based on the first location information and the second location information.

[0010] In a second aspect, an embodiment of the present application provides a map construction device, which is applied to an electronic device, the electronic device including a first antenna module and a second antenna module, and the device includes:

[0011] A first location determination module, used to determine first location information of a target device through a first antenna module and a second antenna module;

[0012] An acquisition module, used for receiving target data sent by a target device;

[0013] A second location determination module, used to determine second location information of the target device according to the target data;

[0014] A construction module is used to construct a map according to the first position information and the second position information.

[0015] In a third aspect, an embodiment of the present application provides an electronic device comprising a memory storing executable program code and a processor coupled to the memory; the processor calls the executable program code stored in the memory to execute the steps in the map construction method provided in the embodiment of the present application.

[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a plurality of instructions suitable for loading by a processor to execute the steps in the map construction method provided in the embodiment of the present application.

[0017] In the embodiment of the present application, the electronic device determines the first location information of the target device through the first antenna module and the second antenna module, then receives the target data sent by the target device, and then determines the second location information of the target device according to the target data, and finally builds a map according to the first location information and the second location information. In the embodiment of the present application, only the electronic device and the target device need to cooperate to complete the construction of the indoor map, which improves the convenience of building the map. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 It is a first flow chart of the map construction method provided in the embodiment of the present application.

[0020] Figure 2 It is a second flow chart of the map construction method provided in the embodiment of the present application.

[0021] Figure 3 It is a schematic diagram of a scene of map construction provided in an embodiment of the present application.

[0022] Figure 4 It is a structural schematic diagram of a map construction device provided in an embodiment of the present application.

[0023] Figure 5 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] 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 those skilled in the art without creative work are within the scope of protection of this application.

[0025] In the prior art, when constructing a map, professional scanning equipment is often required to scan the space where the scanning equipment is located, so as to determine the map corresponding to the space. For example, some users purchase sweeping robots with scanning functions to scan indoors, but sweeping robots have some limitations, such as some places blocked by obstacles or some places that cannot accommodate sweeping robots, which cannot be scanned. In addition, purchasing a sweeping robot costs users a lot of money. Therefore, it is very inconvenient to construct indoor maps through scanning equipment such as sweeping robots.

[0026] In order to solve the above technical problems, the embodiment of the present application provides a map construction method, which can be applied to a variety of electronic devices such as smart TVs, computers, mobile phones, monitors, etc. The map construction method can improve the convenience of map construction.

[0027] Please continue reading Figure 1 , Figure 1 1 is a schematic diagram of a first process of a map construction method provided in an embodiment of the present application. The map construction method may include the following steps:

[0028] 110. Determine first location information of a target device using a first antenna module and a second antenna module.

[0029] In some embodiments, a first antenna module and a second antenna module are provided on the electronic device, and both the first antenna module and the second antenna module can be used for transmitting and receiving signals, such as transmitting and receiving ultra-wideband (UWB) radio frequency signals.

[0030] The target device is provided with a third antenna module. The first antenna module and the second antenna module can both receive radio frequency signals sent by the third antenna module, and the first antenna module and the second antenna module can also send radio frequency signals to the third antenna module.

[0031] In some implementations, the electronic device may first determine a first distance between the first antenna module and the second antenna module.

[0032] The first antenna module of the electronic device can emit a first signal. After receiving the first signal, the third antenna module will send a first return signal to the first antenna module. The electronic device can determine the second distance between the electronic device and the target device based on the first signal and the first return signal.

[0033] The second antenna module of the electronic device can emit a second signal. After receiving the second signal, the third antenna module will send a second return signal to the second antenna module. The electronic device can determine the third distance between the electronic device and the target device based on the second signal and the second return signal.

[0034] Finally, the electronic device determines first position information corresponding to the target device in space according to the first distance, the second distance and the third distance.

[0035] 120. Receive target data sent by the target device.

[0036] In some embodiments, the target data includes inertial sensing data.

[0037] For example, an inertial sensor (IMU, Inertial Measurement Unit) is provided on the target device, and the inertial sensor can obtain the acceleration of the target device, thereby generating inertial sensing data according to the acceleration information corresponding to different moments.

[0038] In some embodiments, the target data includes radar data.

[0039] For example, a millimeter-wave radar is provided on the target device, and the millimeter-wave radar can scan the surrounding environment of the target device and then generate radar data according to the scanning result.

[0040] For another example, a laser radar is provided on the target device, which can scan the surrounding environment of the target device and then generate radar data according to the scanning results.

[0041] After the target device acquires the target data, the target device can send the target data to the electronic device by wireless transmission, and the electronic device completes the reception of the target data. For example, the target device can send the target data to the electronic device by wireless transmission such as Bluetooth or WiFi, and the electronic device can receive the target data by wireless transmission such as Bluetooth or WiFi.

[0042] It should be noted that target data is data that can prove the location of the target device. The type of target data is not limited to inertial sensor data and radar data. Target data can also include satellite positioning data corresponding to the target device, such as GPS data. The amount and type of target data are not limited in this application.

[0043] 130. Determine second location information of the target device according to the target data.

[0044] In some embodiments, after receiving the target data, the electronic device may determine the second location information of the target device according to the target data. For example, the electronic device may determine its own location in the radar data according to the radar data, and then establish a coordinate system using the location as the origin, and then determine the coordinate information of the target location in the coordinate system, and the electronic device determines the third location information of the target device according to the coordinate information.

[0045] The electronic device may directly determine the third location information as the second location information corresponding to the target device.

[0046] In some implementations, after receiving the target data, the electronic device may analyze the fourth position information corresponding to the target device in space at different times according to the inertial sensing data.

[0047] Then, the third location information and the fourth location information corresponding to the same time are determined, and the second location information corresponding to the target device is determined according to the third location information and the fourth location information.

[0048] Specifically, the electronic device may determine a position overlap range corresponding to the target device in the third position information and the fourth position information, and then determine the position overlap range as the second position information corresponding to the target device.

[0049] 140. Construct a map according to the first location information and the second location information.

[0050] In some embodiments, after the electronic device obtains the first location information and the second location information, it can determine a first weight value corresponding to the first location information and a second weight value corresponding to the second location information, and then determine the target location information based on the first location and the first weight value, the second location information and the second weight value. Finally, a map is constructed based on the target location information.

[0051] For example, the coordinates corresponding to the first position information are multiplied by the first weight value to obtain a first result. The second position information is multiplied by the second weight value to obtain a second result. Then the second results are added to obtain the final coordinate information, which is the target position information.

[0052] It should be noted that the value ranges of the first weight value and the second weight value are both between 0 and 1, and the sum of the first weight value and the second weight value is equal to 1.

[0053] In addition, if the first location information and the second location information are location information at the same time, the obtained target location information is also the location information corresponding to the time.

[0054] After the electronic device obtains target location information corresponding to the target device at multiple target moments within a preset time range, a map can be constructed according to the target location information corresponding to each target moment.

[0055] In the embodiment of the present application, the electronic device determines the first location information of the target device through the first antenna module and the second antenna module, then receives the target data sent by the target device, and then determines the second location information of the target device according to the target data, and finally builds a map according to the first location information and the second location information. In the embodiment of the present application, only the electronic device and the target device need to cooperate to complete the construction of the indoor map, which improves the convenience of building the map.

[0056] For a more detailed understanding of the map construction method provided in the embodiment of the present application, please refer to Figure 2 , Figure 2 : is a second flow chart of the map construction method provided in the embodiment of the present application. The map construction method may include the following steps:

[0057] 201. Obtain a first distance between a first antenna module and a second antenna module.

[0058] Please also read Figure 3 , Figure 3 It is a schematic diagram of a scene of map construction provided in an embodiment of the present application.

[0059] In the map construction scenario, the electronic device A1 includes a first antenna module A11 and a second antenna module A12, and the target device B1 includes a third antenna module B11.

[0060] The electronic device may be a smart TV, and the first antenna module A11 and the second antenna module A12 are disposed at different ends of the same horizontal position of the electronic device A1. For example, the first antenna module A11 and the second antenna module A12 are both located at the top ends of the electronic device.

[0061] The electronic device may determine a distance L1 between the first antenna module A11 and the second antenna module A12.

[0062] 202. Obtain a second distance between the first antenna module and the target device and a third distance between the second antenna module and the target device.

[0063] In some embodiments, the first antenna module A11 of the electronic device can emit a first signal, and the third antenna module B11 will send a first return signal to the first antenna module A11 after receiving the first signal. The electronic device can determine the second distance L2 between the electronic device and the target device based on the first signal and the first return signal.

[0064] The second antenna module A12 of the electronic device can emit a second signal. After receiving the second signal, the third antenna module B11 will send a second return signal to the second antenna module A12. The electronic device can determine the third distance L3 between the electronic device and the target device based on the second signal and the second return signal.

[0065] In some implementations, the first antenna module A11, the second antenna module A12, and the third antenna module B11 are all ultra-wideband radio frequency antenna modules. The first antenna module A11, the second antenna module A12, and the third antenna module B11 can all send and receive ultra-wideband radio frequency signals.

[0066] 203. Determine first location information of the target device according to the first distance, the second distance, and the third distance.

[0067] In some implementations, after the electronic device determines the first distance, the second distance, and the third distance, the electronic device may construct three sides of a triangle according to the first distance, the second distance, and the third distance. Figure 3 As shown, the first distance L1 , the second distance L2 , and the third distance L3 form a triangle.

[0068] At this time, the electronic device can determine the angle, position, etc. of the target device relative to the electronic device according to triangle-related operation rules.

[0069] In some embodiments, the distance between the first antenna module A11 and the second antenna module A12 is relatively close, and the first antenna module A11 and the second antenna module A12 can be regarded as a whole. The first antenna module A11 can be used as the origin to establish a first coordinate system, and then the coordinate information of the target device is determined according to the distance and angle relationship between the target device and the first antenna module A11. Finally, the coordinate information is determined as the first position information corresponding to the target device.

[0070] 204. Receive target data sent by the target device.

[0071] In some embodiments, the target data includes inertial sensing data.

[0072] For example, an inertial sensor (IMU, Inertial Measurement Unit) is provided on the target device, and the inertial sensor can obtain the acceleration of the target device, thereby generating inertial sensing data according to the acceleration information corresponding to different moments.

[0073] In some embodiments, the target data includes radar data.

[0074] For example, a millimeter-wave radar is provided on the target device, and the millimeter-wave radar can scan the surrounding environment of the target device and then generate radar data according to the scanning result.

[0075] For another example, a laser radar is provided on the target device, which can scan the surrounding environment of the target device and then generate radar data according to the scanning results.

[0076] After the target device acquires the target data, the target device can send the target data to the electronic device by wireless transmission, and the electronic device completes the reception of the target data. For example, the target device can send the target data to the electronic device by wireless transmission such as Bluetooth or WiFi, and the electronic device can receive the target data by wireless transmission such as Bluetooth or WiFi.

[0077] It should be noted that target data is data that can prove the location of the target device. The type of target data is not limited to inertial sensor data and radar data. Target data can also include satellite positioning data corresponding to the target device, such as GPS data. The amount and type of target data are not limited in this application.

[0078] In some implementations, the target device may be a remote controller, for example, the electronic device is a smart TV, and the target device is the remote controller. When the remote controller is held in the user's hand and moved, target data corresponding to the target device is generated.

[0079] 205. Determine third position information of the target device according to the radar data.

[0080] In some embodiments, the electronic device can determine its own position in the radar data based on the radar data, and then establish a second coordinate system using the position as the origin, and then determine the coordinate information of the target position in the second coordinate system. The electronic device determines the third position information of the target device based on the coordinate information.

[0081] 206. Determine fourth position information of the target device according to the inertial sensing data.

[0082] In some implementations, after receiving the target data, the electronic device may analyze the fourth position information corresponding to the target device in space at different times according to the inertial sensing data.

[0083] In some implementations, the inertial sensing data may also be input into some inertial data analysis models, so as to analyze the fourth position information corresponding to the target device in the space at different times.

[0084] 207. Determine the second location information according to the third location information and the fourth location information.

[0085] In some embodiments, the electronic device may determine the overlap range of the positions corresponding to the target device in the third position information and the fourth position information, and then determine the overlap range as the second position information corresponding to the target device. It should be noted that the third position information and the fourth position information are position information at the same time.

[0086] For example, the third location information includes the first coverage range of the target device, the second location information includes the second coverage range of the target device, and if the first coverage range and the second coverage range overlap, there is an overlapping range, and then the location information corresponding to the overlapping range is determined as the second location information of the target device.

[0087] In some implementations, multiple reference position points may be determined in the overlapped range, and then coordinate information corresponding to the multiple reference position points may be determined, and finally average coordinate information corresponding to the multiple reference position points may be obtained, that is, the coordinates of each reference position point may be added and then divided by the number of reference position points to obtain average coordinate information. Finally, the average coordinate information may be determined as the second position information corresponding to the target device.

[0088] 208. Obtain a first weight value corresponding to the first position information and a second weight value corresponding to the second position information.

[0089] In some embodiments, after the electronic device obtains the first location information and the second location information, it can determine a first weight value corresponding to the first location information and a second weight value corresponding to the second location information. The first weight value and the second weight value both have a value range between 0 and 1, and the sum of the first weight value and the second weight value is equal to 1.

[0090] 209. Determine target position information according to the first position and the first weight value using the second position information and the second weight value.

[0091] For example, the coordinates corresponding to the first position information are multiplied by the first weight value to obtain a first result. The second position information is multiplied by the second weight value to obtain a second result. Then the second results are added to obtain the final coordinate information, which is the target position information.

[0092] It should be noted that, if the first location information and the second location information are location information at the same time, the obtained target location information is also the location information corresponding to the time.

[0093] 210. Determine target position information corresponding to each target moment within a preset time range.

[0094] The electronic device can obtain the target location information corresponding to each target moment within a preset time range. For example, when the electronic device is turned on, the electronic device can obtain the target location information corresponding to the target device every second.

[0095] 211. Construct a map based on the target location information corresponding to each target moment.

[0096] In some embodiments, after the electronic device obtains the position information corresponding to each moment, the coordinate information corresponding to the target device at each moment will be generated in the coordinate system corresponding to the target device and the electronic device. Based on multiple coordinate information, the obstacle information and movable position information in the space can be roughly determined, and finally a map corresponding to the space where the target device and the electronic device are located is generated.

[0097] Through the map construction method provided in the embodiment of the present application, the construction of the indoor map can be completed only by cooperation between the electronic device and the target device, thereby improving the convenience of map construction.

[0098] In an embodiment of the present application, the electronic device obtains a first distance between the first antenna module and the second antenna module, obtains a second distance between the first antenna module and the target device, and a third distance between the second antenna module and the target device, and determines the first position information of the target device based on the first distance, the second distance and the third distance.

[0099] Then, the target data sent by the target device is received, the third position information of the target device is determined according to the radar data, the fourth position information of the target device is determined according to the inertial sensor data, and the second position information is determined according to the third position information and the fourth position information.

[0100] Then, a first weight value corresponding to the first position information and a second weight value corresponding to the second position information are obtained, and the target position information is determined based on the first position and the first weight value, the target position information corresponding to each target moment within a preset time range is determined, and a map is constructed based on the target position information corresponding to each target moment. Through the cooperation between the electronic device and the target device, the construction of the indoor map can be completed, which improves the convenience of map construction.

[0101] See also Figure 4 , Figure 4 : is a schematic diagram of the structure of a map construction device provided in an embodiment of the present application. The map construction device is applied to an electronic device, and the map construction device includes:

[0102] The first location determination module 310 is configured to determine first location information of a target device through a first antenna module and a second antenna module.

[0103] The first position determination module 310 is also used to obtain a first distance between the first antenna module and the second antenna module; obtain a second distance between the first antenna module and the target device and a third distance between the second antenna module and the target device; and determine the first position information of the target device based on the first distance, the second distance and the third distance.

[0104] The acquisition module 320 is used to receive target data sent by the target device.

[0105] The second location determination module 330 is configured to determine second location information of the target device according to the target data.

[0106] The second position determination module 330 is further used to determine third position information of the target device according to the radar data; and determine the second position information according to the third position information.

[0107] The second position determination module 330 is further configured to determine fourth position information of the target device according to the inertial sensing data; and determine second position information according to the third position information and the fourth position information.

[0108] The second position determination module 330 is further used to determine the position overlap range corresponding to the target device in the third position information and the fourth position information; and determine the position overlap range as the second position information.

[0109] The construction module 340 is used to construct a map according to the first position information and the second position information.

[0110] The construction module 340 is also used to obtain a first weight value corresponding to the first position information and a second weight value corresponding to the second position information; determine the target position information according to the first position and the first weight value, using the second position information and the second weight value; and construct a map according to the target position information.

[0111] The construction module 340 is further used to determine the target position information corresponding to each target moment within a preset time range; and to construct a map according to the target position information corresponding to each target moment.

[0112] In the embodiment of the present application, the electronic device determines the first location information of the target device through the first antenna module and the second antenna module, then receives the target data sent by the target device, and then determines the second location information of the target device according to the target data, and finally builds a map according to the first location information and the second location information. In the embodiment of the present application, only the electronic device and the target device need to cooperate to complete the construction of the indoor map, which improves the convenience of building the map.

[0113] Accordingly, the present application also provides an electronic device, such as Figure 5 As shown, the electronic device may include an input unit 401, a display unit 402, a memory 403 including one or more computer-readable storage media, a sensor 405, a processor 404 including one or more processing cores, and a power supply 406. Those skilled in the art will appreciate that Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0114] The input unit 401 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, in a specific embodiment, the input unit 401 may include a touch-sensitive surface and other input devices. The touch-sensitive surface, also known as a touch display screen or a touchpad, can collect the user's touch operations on or near it (such as the user's operation on or near the touch-sensitive surface using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch-sensitive surface may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 404, and can receive and execute the command sent by the processor 404. In addition, the touch-sensitive surface can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch-sensitive surface, the input unit 401 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.

[0115] The display unit 402 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 402 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch-sensitive surface may cover the display panel. When the touch-sensitive surface detects a touch operation on or near it, it is transmitted to the processor 404 to determine the type of touch event. Subsequently, the processor 404 provides a corresponding visual output on the display panel according to the type of touch event. Although in Figure 5 In the embodiment, the touch-sensitive surface and the display panel are used as two independent components to realize input and output functions, but in some embodiments, the touch-sensitive surface and the display panel can be integrated to realize input and output functions.

[0116] The memory 403 can be used to store software programs and modules, and the processor 404 executes various functional applications and data processing by running the software programs and modules stored in the memory 403. The memory 403 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the memory 403 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 403 may also include a memory controller to provide the processor 404 and the input unit 401 with access to the memory 403.

[0117] The electronic device may also include at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and / or backlight when the electronic device is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the electronic device, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0118] The processor 404 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 403 and calling data stored in the memory 403, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 404 may include one or more processing cores; preferably, the processor 404 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 404.

[0119] The electronic device also includes a power supply 406 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 404 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions. The power supply 406 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

[0120] Although not shown, the electronic device may also include a camera, a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the processor 404 in the electronic device will load the executable files corresponding to the processes of one or more applications into the memory 403 according to the following instructions, and the processor 404 will run the applications stored in the memory 403 to achieve various functions:

[0121] Determine first location information of a target device by using a first antenna module and a second antenna module;

[0122] Receive target data sent by the target device;

[0123] determining second location information of the target device according to the target data;

[0124] A map is constructed based on the first location information and the second location information.

[0125] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0126] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the map construction methods provided in the embodiment of the present application. For example, the instructions can execute the following steps:

[0127] Determine first location information of a target device by using a first antenna module and a second antenna module;

[0128] Receive target data sent by the target device;

[0129] determining second location information of the target device according to the target data;

[0130] A map is constructed based on the first location information and the second location information.

[0131] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0132] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0133] Since the instructions stored in the storage medium can execute the steps in any map construction method provided in the embodiments of the present application, the beneficial effects that can be achieved by any map construction method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0134] The above is a detailed introduction to a map construction method, device, electronic device and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A map construction method, applied to an electronic device, characterized in that: The electronic device includes a first antenna module and a second antenna module, and the method includes: Determine first location information of a target device by using the first antenna module and the second antenna module; Receiving target data sent by the target device; determining second location information of the target device according to the target data; constructing a map according to the first location information and the second location information; The first location information and the second location information are coordinate information corresponding to the target device, and constructing a map according to the first location information and the second location information includes: Obtaining a first weight value corresponding to the first location information and a second weight value corresponding to the second location information; Multiplying the first position information and the first weight value to obtain a first result, and multiplying the second position information and the second weight value to obtain a second result; Adding the first result and the second result to obtain target location information; Building a map based on the target location information; The target data includes radar data, and determining the second position information of the target device according to the target data includes: determining third position information of the target device according to the radar data; determining the second location information according to the third location information; The target data includes inertial sensing data, and determining the second position information of the target device according to the target data includes: determining fourth position information of the target device according to the inertial sensing data; determining the second location information according to the third location information and the fourth location information; The determining the second location information according to the third location information and the fourth location information includes: Determine an overlap range of a position corresponding to the target device in the third position information and the fourth position information; Determine the position overlap range as the second position information; The step of constructing a map according to the target location includes: Determine the target location information corresponding to each target moment within a preset time range; A map is constructed according to the target position information corresponding to each target moment.

2. The map construction method according to claim 1, characterized in that: The determining the first location information of the target device by using the first antenna module and the second antenna module includes: Obtaining a first distance between the first antenna module and the second antenna module; Acquire a second distance between the first antenna module and the target device and a third distance between the second antenna module and the target device; The first location information of the target device is determined according to the first distance, the second distance and the third distance.

3. A map construction device, applied to an electronic device, characterized in that: The electronic device comprises a first antenna module and a second antenna module, and the device comprises: A first location determination module, used to determine first location information of a target device through the first antenna module and the second antenna module; An acquisition module, used for receiving target data sent by the target device; A second location determination module, configured to determine second location information of the target device according to the target data; A construction module, configured to construct a map according to the first location information and the second location information; The first location information and the second location information are coordinate information corresponding to the target device, and the construction module is further used for: Obtaining a first weight value corresponding to the first location information and a second weight value corresponding to the second location information; Multiplying the first position information and the first weight value to obtain a first result, and multiplying the second position information and the second weight value to obtain a second result; Adding the first result and the second result to obtain target location information; Building a map based on the target location information; The target data includes radar data, and the second position determination module is further used for: determining third position information of the target device according to the radar data; determining the second location information according to the third location information; The target data includes inertial sensing data, and the second position determination module is further used for: determining fourth position information of the target device according to the inertial sensing data; determining the second location information according to the third location information and the fourth location information; The second location determination module is further configured to: Determine an overlap range of a position corresponding to the target device in the third position information and the fourth position information; Determine the position overlap range as the second position information; The building blocks are also used to: Determine the target location information corresponding to each target moment within a preset time range; A map is constructed according to the target position information corresponding to each target moment.

4. An electronic device, characterized in that: include: A memory storing executable program code, and a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the steps in the map construction method as claimed in claim 1 or 2.

5. A computer-readable storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the map construction method according to claim 1 or 2.