CN111399011A - Position information determining method and electronic equipment - Google Patents
Position information determining method and electronic equipment Download PDFInfo
- Publication number
- CN111399011A CN111399011A CN202010174982.1A CN202010174982A CN111399011A CN 111399011 A CN111399011 A CN 111399011A CN 202010174982 A CN202010174982 A CN 202010174982A CN 111399011 A CN111399011 A CN 111399011A
- Authority
- CN
- China
- Prior art keywords
- electronic device
- position information
- information
- electronic equipment
- location information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S19/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/38—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
- G01S19/39—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/42—Determining position
- G01S19/421—Determining position by combining or switching between position solutions or signals derived from different satellite radio beacon positioning systems; by combining or switching between position solutions or signals derived from different modes of operation in a single system
- G01S19/426—Determining position by combining or switching between position solutions or signals derived from different satellite radio beacon positioning systems; by combining or switching between position solutions or signals derived from different modes of operation in a single system by combining or switching between position solutions or signals derived from different modes of operation in a single system
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
Abstract
本发明提供了一种位置信息的确定方法和电子设备,涉及通信技术领域。该方法应用于第一电子设备,包括:通过所述第一电子设备的定位模块获取所述第一电子设备的位置信息;通过所述第一电子设备的近场通信模块获取第二电子设备的位置信息;将所述位置信息中信号较强的电子设备对应的位置信息作为目标位置信息。本发明的方案通过获取所述第一电子设备的位置信息和第二电子设备的位置信息,并所述位置信息中信号较强的电子设备对应的位置信息作为目标位置信息,可以在用户使用多个电子设备时,通过多个电子设备各自互相定位且互相辅助,可以提高用户所在位置的定位精度。
The invention provides a method and electronic device for determining position information, and relates to the technical field of communication. The method, applied to a first electronic device, includes: acquiring location information of the first electronic device through a positioning module of the first electronic device; acquiring location information of the second electronic device through a near field communication module of the first electronic device Location information; take the location information corresponding to the electronic device with a stronger signal in the location information as the target location information. The solution of the present invention obtains the position information of the first electronic device and the position information of the second electronic device, and uses the position information corresponding to the electronic device with a stronger signal in the position information as the target position information. When there are multiple electronic devices, the positioning accuracy of the user's location can be improved by positioning and assisting each other with the plurality of electronic devices.
Description
技术领域technical field
本发明涉及通信技术领域,特别涉及一种位置信息的确定方法和电子设备。The present invention relates to the field of communication technologies, and in particular, to a method for determining location information and an electronic device.
背景技术Background technique
目前,已知的三个载频信号全球定位系统(Global Positioning System,GPS)L1、GPS L2、GPS L5中,除GPS L1频率相对较高外,GPS L2和GPS L5频率较低,如果使用两支独立的天线实现,占用空间较大,现有电子设备空间紧张,无论使用多支单频的GPS天线或是使用多频GPS天线使用频率器件进行分频,天线效率均不理想。由于用户场景的多样性,GPS天线很难始终保持工作在最佳状态,因此,当用户使用多个电子设备易出现定位信息不一致的问题。At present, among the three known carrier frequency signals Global Positioning System (GPS) L1, GPS L2, and GPS L5, in addition to the relatively high frequency of GPS L1, the frequencies of GPS L2 and GPS L5 are relatively low. The implementation of independent antennas takes up a lot of space, and the space of existing electronic equipment is tight. Whether using multiple single-frequency GPS antennas or using multi-frequency GPS antennas for frequency division by frequency components, the antenna efficiency is not ideal. Due to the diversity of user scenarios, it is difficult for the GPS antenna to keep working in the best state all the time. Therefore, when the user uses multiple electronic devices, the problem of inconsistent positioning information is prone to occur.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种位置信息的确定方法和电子设备,以解决当用户使用多个电子设备时定位信息不一致的问题。Embodiments of the present invention provide a method and electronic device for determining location information, so as to solve the problem of inconsistent location information when a user uses multiple electronic devices.
为了解决上述技术问题,本发明是这样实现的:In order to solve the above-mentioned technical problems, the present invention is achieved in this way:
第一方面,本发明实施例提供了一种位置信息的确定方法,应用于第一电子设备,包括:In a first aspect, an embodiment of the present invention provides a method for determining location information, applied to a first electronic device, including:
通过所述第一电子设备的定位模块获取所述第一电子设备的位置信息;Obtain the location information of the first electronic device through the positioning module of the first electronic device;
通过所述第一电子设备的近场通信模块获取第二电子设备的位置信息;Obtain location information of the second electronic device through the near field communication module of the first electronic device;
将所述位置信息中信号较强的电子设备对应的位置信息作为目标位置信息。The position information corresponding to the electronic device with the stronger signal in the position information is used as the target position information.
第二方面,本发明实施例还提供了一种电子设备,所述电子设备为第一电子设备,包括:In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device is a first electronic device, including:
第一获取模块,用于通过所述第一电子设备的定位模块获取所述第一电子设备的位置信息;a first obtaining module, configured to obtain the location information of the first electronic device through the positioning module of the first electronic device;
第二获取模块,用于通过所述第一电子设备的近场通信模块获取第二电子设备的位置信息;a second acquiring module, configured to acquire the location information of the second electronic device through the near field communication module of the first electronic device;
第一确定模块,用于将所述位置信息中信号较强的电子设备对应的位置信息作为目标位置信息。The first determining module is configured to use the position information corresponding to the electronic device with the stronger signal in the position information as the target position information.
第三方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的位置信息的确定方法的步骤。In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the determination of the location information as described above is realized. steps of the method.
这样,本发明实施例中,通过获取所述第一电子设备的位置信息和第二电子设备的位置信息,并将所述位置信息中信号较强的电子设备对应的位置信息作为目标位置信息,可以在用户使用多个电子设备时,通过多个电子设备各自互相定位且互相辅助,可以提高用户所在位置的定位精度。In this way, in this embodiment of the present invention, by acquiring the position information of the first electronic device and the position information of the second electronic device, and using the position information corresponding to the electronic device with a stronger signal in the position information as the target position information, When a user uses multiple electronic devices, the positioning accuracy of the user's location can be improved by positioning and assisting each other with the multiple electronic devices.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the drawings that are used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. , for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.
图1表示本发明实施例的位置信息的确定方法流程图;1 shows a flowchart of a method for determining location information according to an embodiment of the present invention;
图2表示本发明实施例的第一电子设备和第二电子设备的结构示意图;2 shows a schematic structural diagram of a first electronic device and a second electronic device according to an embodiment of the present invention;
图3表示本发明实施例的电子设备的模块示意图;3 is a schematic diagram of a module of an electronic device according to an embodiment of the present invention;
图4表示本发明实施例的电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
GPS是新一代空间卫星导航定位系统。其主要目的是为陆、海、空三大领域提供实时、全天候和全球性的导航服务。GPS系统有L1、L2、L5等载频信号:GPS is a new generation of space satellite navigation and positioning system. Its main purpose is to provide real-time, all-weather and global navigation services for the three major areas of land, sea and air. GPS system has L1, L2, L5 and other carrier frequency signals:
L1:1575.42±1.023MHz;L1: 1575.42±1.023MHz;
L2:1227.60±1.023MHz;L2: 1227.60±1.023MHz;
L5:1176.45±1.023MHz。L5: 1176.45±1.023MHz.
如图1所示,本发明实施例提供了一种位置信息的确定方法,应用于第一电子设备,包括:As shown in FIG. 1 , an embodiment of the present invention provides a method for determining location information, which is applied to a first electronic device, including:
步骤11,通过所述第一电子设备的定位模块获取所述第一电子设备的位置信息。Step 11: Acquire location information of the first electronic device through the positioning module of the first electronic device.
步骤12,通过所述第一电子设备的近场通信模块获取第二电子设备的位置信息。Step 12: Acquire location information of the second electronic device through the near field communication module of the first electronic device.
具体的,所述第一电子设备为主定位设备,所述第二电子设备为一个或多个辅助定位设备。例如:在用户携带一个手机以及佩戴一块手表的情况下,可以将手机作为主定位设备,手表作为辅助定位设备;在用户携带两个手机的情况下,用户可以设定哪个手机作为主定位设备,则另一个手机为辅助定位设备。所述第一电子设备通过自身的定位模块获取自身的位置信息,并且,第一电子设备通过自身的近场通信模块可以获取所述第二电子设备的位置信息。Specifically, the first electronic device is a main positioning device, and the second electronic device is one or more auxiliary positioning devices. For example: when the user carries a mobile phone and wears a watch, the mobile phone can be used as the main positioning device, and the watch can be used as the auxiliary positioning device; when the user carries two mobile phones, the user can set which mobile phone is the main positioning device. Then the other mobile phone is an auxiliary positioning device. The first electronic device obtains its own position information through its own positioning module, and the first electronic device can obtain the position information of the second electronic device through its own near field communication module.
具体的,如图2所示,第一电子设备可以包括:Specifically, as shown in FIG. 2 , the first electronic device may include:
第一GPS天线21;与所述第一GPS天线21电连接的第一GPS射频通路22;与所述第一GPS射频通路22电连接的第一GPS芯片23;与所述第一GPS芯片23电连接的第一主芯片24;与所述第一主芯片24电连接的第一蓝牙芯片25;与所述第一蓝牙芯片25电连接的第一蓝牙射频通路26;与所述第一蓝牙射频通路26电连接的第一蓝牙天线27。a first GPS antenna 21; a first GPS radio frequency channel 22 electrically connected to the first GPS antenna 21; a first GPS chip 23 electrically connected to the first GPS radio frequency channel 22; and the first GPS chip 23 The first main chip 24 electrically connected; the first bluetooth chip 25 electrically connected to the first main chip 24; the first bluetooth radio frequency channel 26 electrically connected to the first bluetooth chip 25; The radio frequency channel 26 is electrically connected to the first Bluetooth antenna 27 .
如图2所示,所述第二电子设备可以包括:As shown in Figure 2, the second electronic device may include:
第二GPS天线31;与所述第二GPS天线31电连接的第二GPS射频通路32;与所述第二GPS射频通路32电连接的第二GPS芯片33;与所述第二GPS芯片33电连接的第二主芯片34;与所述第二主芯片34电连接的第二蓝牙芯片35;与所述第二蓝牙芯片35电连接的第二蓝牙射频通路36;与所述第二蓝牙射频通路36电连接的第二蓝牙天线37。a second GPS antenna 31; a second GPS radio frequency path 32 electrically connected to the second GPS antenna 31; a second GPS chip 33 electrically connected to the second GPS radio frequency path 32; and the second GPS chip 33 A second main chip 34 electrically connected; a second Bluetooth chip 35 electrically connected to the second main chip 34; a second Bluetooth radio frequency channel 36 electrically connected to the second Bluetooth chip 35; The radio frequency channel 36 is electrically connected to the second Bluetooth antenna 37 .
其中,所述第一GPS天线21和所述第二GPS天线31均与卫星通信,所述第一蓝牙天线27与所述第二蓝牙天线37通过蓝牙等协议互相连接。所述第一GPS天线21和/或所述第二GPS天线31可以为单频GPS天线,也可以为多频GPS天线,也可以为与其他类型天线结合的天线等。并且,所述第一GPS天线21和所述第二GPS天线31可以分别为GPS L1、GPS L5工作频段的天线,也可以为GPS L1、L2、L5或北斗、伽利略等其他定位天线工作频段中任意一个或多个频段的组合。The first GPS antenna 21 and the second GPS antenna 31 both communicate with satellites, and the first Bluetooth antenna 27 and the second Bluetooth antenna 37 are connected to each other through protocols such as Bluetooth. The first GPS antenna 21 and/or the second GPS antenna 31 may be a single-frequency GPS antenna, a multi-frequency GPS antenna, or an antenna combined with other types of antennas. In addition, the first GPS antenna 21 and the second GPS antenna 31 may be antennas in the working frequency bands of GPS L1 and GPS L5, respectively, or may be in the working frequency bands of GPS L1, L2, L5 or other positioning antennas such as Beidou and Galileo. Any combination of one or more frequency bands.
步骤13,将所述位置信息中信号较强的电子设备对应的位置信息作为目标位置信息。Step 13: Use the position information corresponding to the electronic device with the stronger signal in the position information as the target position information.
具体的,在所述第一电子设备获取到第一电子设备的位置信息和第二电子设备的位置信息的情况下,通过比较第一电子设备和第二电子设备的信号强弱,选择信号强的电子设备对应的位置信息作为目标位置信息,并将所述目标位置信息发送至第二电子设备,所述目标位置信息作为第一电子设备和第二电子设备的目标位置信息。Specifically, when the first electronic device obtains the position information of the first electronic device and the position information of the second electronic device, the signal strength is selected by comparing the signal strengths of the first electronic device and the second electronic device. The position information corresponding to the electronic device is used as the target position information, and the target position information is sent to the second electronic device, and the target position information is used as the target position information of the first electronic device and the second electronic device.
本发明上述实施例中,通过获取所述第一电子设备的位置信息和第二电子设备的位置信息,并将所述位置信息中信号较强的电子设备对应的位置信息作为目标位置信息,可以在用户使用多个电子设备时,通过多个电子设备各自互相定位且互相辅助,可以提高用户所在位置的定位精度。In the above embodiment of the present invention, by acquiring the position information of the first electronic device and the position information of the second electronic device, and using the position information corresponding to the electronic device with a stronger signal in the position information as the target position information, it is possible to When a user uses multiple electronic devices, the positioning accuracy of the user's location can be improved by positioning and assisting each other with the multiple electronic devices.
可选的,所述步骤13,具体可以包括:Optionally, the
获取所述第一电子设备的信号质量信息,以及所述第二电子设备的信号质量信息;acquiring signal quality information of the first electronic device and signal quality information of the second electronic device;
将所述信号质量信息中信号质量较强的电子设备对应的位置信息作为所述目标位置信息。The location information corresponding to the electronic device with stronger signal quality in the signal quality information is used as the target location information.
具体的,在所述第一电子设备的信号质量信息中的信号质量高于所述第二电子设备的信号质量信息中的信号质量的情况下,确定所述第一电子设备的位置信息为所述目标位置信息;在所述第一电子设备的信号质量信息中的信号质量低于所述第二电子设备的信号质量信息中的信号质量的情况下,确定所述第二电子设备的位置信息为所述目标位置信息。Specifically, in the case that the signal quality in the signal quality information of the first electronic device is higher than the signal quality in the signal quality information of the second electronic device, determine that the location information of the first electronic device is the the target location information; in the case that the signal quality in the signal quality information of the first electronic device is lower than the signal quality in the signal quality information of the second electronic device, determine the location information of the second electronic device is the target location information.
可选的,所述信号质量信息为载波-噪声功率谱密度比信息,即参数C/N0,通常是用来表示接收机解调出的卫星信号的强弱的参数。Optionally, the signal quality information is carrier-to-noise power spectral density ratio information, that is, parameter C/N0, which is usually a parameter used to indicate the strength of the satellite signal demodulated by the receiver.
具体的,所述第一电子设备的第一主芯片24获取到第一电子设备的参数C/N0,以及所述第一电子设备的第二主芯片34获取第二电子设备的参数C/N0,所述第二电子设备的参数C/N0依次通过第二蓝牙天线37、第一蓝牙天线27、第一蓝牙射频通路26、第一蓝牙芯片25传递到所述第一主芯片24。所述第一主芯片24比较第一电子设备的参数C/N0以及第二电子设备的参数C/N0,如果第一电子设备的参数C/N0大于第二电子设备的参数C/N0,则将所述第一电子设备的位置信息作为目标位置信息;如果第二电子设备的参数C/N0大于第一电子设备的参数C/N0,则将所述第二电子设备的位置信息作为目标位置信息;在确定所述目标位置信息之后,所述第一主芯片24依次通过第一蓝牙芯片25、第一蓝牙射频通路26、第一蓝牙天线27、第二蓝牙天线37、第二蓝牙射频通路36、第二蓝牙芯片35将所述目标位置信息发送至所述第二主芯片34。Specifically, the first main chip 24 of the first electronic device obtains the parameter C/N0 of the first electronic device, and the second main chip 34 of the first electronic device obtains the parameter C/N0 of the second electronic device , the parameter C/N0 of the second electronic device is sequentially transmitted to the first main chip 24 through the second Bluetooth antenna 37 , the first Bluetooth antenna 27 , the first Bluetooth radio frequency channel 26 and the first Bluetooth chip 25 . The first main chip 24 compares the parameter C/N0 of the first electronic device and the parameter C/N0 of the second electronic device, if the parameter C/N0 of the first electronic device is greater than the parameter C/N0 of the second electronic device, then Use the position information of the first electronic device as the target position information; if the parameter C/N0 of the second electronic device is greater than the parameter C/N0 of the first electronic device, then use the position information of the second electronic device as the target position After determining the target location information, the first main chip 24 sequentially passes through the first Bluetooth chip 25, the first Bluetooth radio frequency channel 26, the first Bluetooth antenna 27, the second Bluetooth antenna 37, and the second Bluetooth radio frequency channel. 36. The second Bluetooth chip 35 sends the target location information to the second main chip 34.
可选的,所述步骤11,具体可以包括:Optionally, the
通过所述第一电子设备的定位模块获取第一卫星信号;Obtain the first satellite signal through the positioning module of the first electronic device;
根据所述第一卫星信号,获取所述第一电子设备当前所在位置的位置信息。Obtain location information of the current location of the first electronic device according to the first satellite signal.
具体的,所述第一电子设备通过GPS L1天线21获取第一卫星信号,所述GPS L1天线21通过所述第一GPS射频通路22将所述第一卫星信号传送至第一GPS芯片23,使所述第一GPS芯片23根据所述第一卫星信号解算出第一电子设备的位置信息,所述第一GPS芯片23将所述第一电子设备的位置信息发送至所述第一主芯片24。Specifically, the first electronic device obtains the first satellite signal through the GPS L1 antenna 21, and the GPS L1 antenna 21 transmits the first satellite signal to the first GPS chip 23 through the first GPS radio frequency channel 22, Make the first GPS chip 23 calculate the position information of the first electronic device according to the first satellite signal, and the first GPS chip 23 sends the position information of the first electronic device to the first main chip twenty four.
可选的,所述步骤12,具体可以包括:Optionally, the
通过所述第一电子设备的近场通信模块获取所述第二电子设备当前所在位置的位置信息,其中,所述第二电子设备当前所在位置的位置信息是所述第二电子设备根据接收到的第二卫星信号获取的位置信息。The location information of the current location of the second electronic device is acquired through the near field communication module of the first electronic device, wherein the location information of the current location of the second electronic device is obtained by the second electronic device according to the received The location information obtained from the second satellite signal.
具体的,所述第二电子设备通过GPS L5天线31获取第二卫星信号,所述GPS L5天线31通过所述第二GPS射频通路32将所述第二卫星信号传送至第二GPS芯片33,使所述第二GPS芯片33根据所述第二卫星信号解算出第二电子设备的位置信息,所述第二GPS芯片33将所述第二电子设备的位置信息发送至所述第二主芯片34,使所述第二主芯片34将所述第二电子设备的位置信息发送至第一电子设备的第一主芯片24。Specifically, the second electronic device obtains the second satellite signal through the GPS L5 antenna 31, and the GPS L5 antenna 31 transmits the second satellite signal to the second GPS chip 33 through the second GPS radio frequency channel 32, Make the second GPS chip 33 calculate the position information of the second electronic device according to the second satellite signal, and the second GPS chip 33 sends the position information of the second electronic device to the second main chip 34. Make the second main chip 34 send the location information of the second electronic device to the first main chip 24 of the first electronic device.
本发明上述实施例中,对于携带多个电子设备的用户,当单个电子设备无法支持多个GPS频段或部分GPS天线指标较差时,可以使用另一个电子设备的其他频段的GPS天线进行辅助定位;并且,当其中部分电子设备由于用户使用场景导致GPS天线指标恶化时,可以通过对比信号质量将更可靠的定位信息提供给用户,以保证用户的定位精确度。In the above-mentioned embodiment of the present invention, for a user who carries multiple electronic devices, when a single electronic device cannot support multiple GPS frequency bands or some GPS antenna indicators are poor, the GPS antenna of another electronic device can be used for assisted positioning. And, when some of the electronic devices deteriorate the GPS antenna index due to the user's usage scenario, more reliable positioning information can be provided to the user by comparing the signal quality to ensure the user's positioning accuracy.
如图3所示,本发明实施例提供了一种电子设备40,所述电子设备为第一电子设备,包括:As shown in FIG. 3, an embodiment of the present invention provides an
第一获取模块41,用于通过所述第一电子设备的定位模块获取所述第一电子设备的位置信息;a first obtaining
第二获取模块42,用于通过所述第一电子设备的近场通信模块获取第二电子设备的位置信息;The second obtaining
第一确定模块43,用于将所述位置信息中信号较强的电子设备对应的位置信息作为目标位置信息。The first determining
可选的,所述第一确定模块43,包括:Optionally, the first determining
第一获取单元,用于获取所述第一电子设备的信号质量信息,以及所述第二电子设备的信号质量信息;a first acquiring unit, configured to acquire signal quality information of the first electronic device and signal quality information of the second electronic device;
第一确定单元,用于将所述信号质量信息中信号质量较强的电子设备对应的位置信息作为所述目标位置信息。The first determining unit is configured to use the position information corresponding to the electronic device with stronger signal quality in the signal quality information as the target position information.
可选的,所述第一获取模块41,包括:Optionally, the
第二获取单元,用于通过所述第一电子设备的定位模块获取第一卫星信号;a second acquiring unit, configured to acquire the first satellite signal through the positioning module of the first electronic device;
第三获取单元,用于根据所述第一卫星信号,获取所述第一电子设备当前所在位置的位置信息。A third acquiring unit, configured to acquire position information of the current location of the first electronic device according to the first satellite signal.
可选的,所述第二获取模块42,包括:Optionally, the second obtaining
第四获取单元,用于通过所述第一电子设备的近场通信模块获取所述第二电子设备当前所在位置的位置信息,其中,所述第二电子设备当前所在位置的位置信息是所述第二电子设备根据接收到的第二卫星信号获取的位置信息。a fourth obtaining unit, configured to obtain the position information of the current position of the second electronic device through the near field communication module of the first electronic device, wherein the position information of the current position of the second electronic device is the The location information obtained by the second electronic device according to the received second satellite signal.
可选的,所述信号质量信息为载波-噪声功率谱密度比信息。Optionally, the signal quality information is carrier-to-noise power spectral density ratio information.
电子设备40能够实现图1至图2的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The
本发明上述实施例中,通过第一获取模块41和第二获取模块42获取所述第一电子设备的位置信息和第二电子设备的位置信息,并通过第一确定模块43将所述位置信息中信号较强的电子设备对应的位置信息作为目标位置信息,可以在用户使用多个电子设备时,通过多个电子设备各自互相定位且互相辅助,可以提高用户所在位置的定位精度。In the above embodiment of the present invention, the location information of the first electronic device and the location information of the second electronic device are acquired through the
图4为实现本发明各个实施例的一种电子设备的硬件结构示意图,该电子设备500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、处理器510、以及电源511等部件。本领域技术人员可以理解,图4中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。4 is a schematic diagram of the hardware structure of an electronic device implementing various embodiments of the present invention. The
其中,处理器510用于:Wherein, the
通过所述第一电子设备的定位模块获取所述第一电子设备的位置信息;Obtain the location information of the first electronic device through the positioning module of the first electronic device;
通过所述第一电子设备的近场通信模块获取第二电子设备的位置信息;Obtain location information of the second electronic device through the near field communication module of the first electronic device;
将所述位置信息中信号较强的电子设备对应的位置信息作为目标位置信息。The position information corresponding to the electronic device with the stronger signal in the position information is used as the target position information.
可选的,所述处理器510具体用于:Optionally, the
获取所述第一电子设备的信号质量信息,以及所述第二电子设备的信号质量信息;acquiring signal quality information of the first electronic device and signal quality information of the second electronic device;
将所述信号质量信息中信号质量较强的电子设备对应的位置信息作为所述目标位置信息。The location information corresponding to the electronic device with stronger signal quality in the signal quality information is used as the target location information.
可选的,所述处理器510具体用于:Optionally, the
通过所述第一电子设备的定位模块获取第一卫星信号;Obtain the first satellite signal through the positioning module of the first electronic device;
根据所述第一卫星信号,获取所述第一电子设备当前所在位置的位置信息。Obtain location information of the current location of the first electronic device according to the first satellite signal.
可选的,所述处理器510具体用于:Optionally, the
通过所述第一电子设备的近场通信模块获取所述第二电子设备当前所在位置的位置信息,其中,所述第二电子设备当前所在位置的位置信息是所述第二电子设备根据接收到的第二卫星信号获取的位置信息。The location information of the current location of the second electronic device is acquired through the near field communication module of the first electronic device, wherein the location information of the current location of the second electronic device is obtained by the second electronic device according to the received The location information obtained from the second satellite signal.
可选的,所述信号质量信息为载波-噪声功率谱密度比信息。Optionally, the signal quality information is carrier-to-noise power spectral density ratio information.
可见,该电子设备通过处理器510获取所述第一电子设备的位置信息和第二电子设备的位置信息,并将所述位置信息中信号较强的电子设备对应的位置信息作为目标位置信息,可以在用户使用多个电子设备时,通过多个电子设备各自互相定位且互相辅助,可以提高用户所在位置的定位精度。It can be seen that the electronic device obtains the position information of the first electronic device and the position information of the second electronic device through the
应理解的是,本发明实施例中,射频单元501可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器510处理;另外,将上行的数据发送给基站。通常,射频单元501包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元501还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the
电子设备通过网络模块502为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides the user with wireless broadband Internet access through the
音频输出单元503可以将射频单元501或网络模块502接收的或者在存储器509中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元503还可以提供与电子设备500执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元503包括扬声器、蜂鸣器以及受话器等。The
输入单元504用于接收音频或视频信号。输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元506上。经图形处理器5041处理后的图像帧可以存储在存储器509(或其它存储介质)中或者经由射频单元501或网络模块502进行发送。麦克风5042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元501发送到移动通信基站的格式输出。The
电子设备500还包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板5061的亮度,接近传感器可在电子设备500移动到耳边时,关闭显示面板5061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器505还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The
显示单元506用于显示由用户输入的信息或提供给用户的信息。显示单元506可包括显示面板5061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板5061。The
用户输入单元507可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板5071上或在触控面板5071附近的操作)。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器510,接收处理器510发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板5071。除了触控面板5071,用户输入单元507还可以包括其他输入设备5072。具体地,其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The
进一步的,触控面板5071可覆盖在显示面板5061上,当触控面板5071检测到在其上或附近的触摸操作后,传送给处理器510以确定触摸事件的类型,随后处理器510根据触摸事件的类型在显示面板5061上提供相应的视觉输出。虽然在图4中,触控面板5071与显示面板5061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板5071与显示面板5061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the
接口单元508为外部装置与电子设备500连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元508可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备500内的一个或多个元件或者可以用于在电子设备500和外部装置之间传输数据。The
存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器509可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
处理器510是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器509内的软件程序和/或模块,以及调用存储在存储器509内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器510可包括一个或多个处理单元;优选的,处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。The
电子设备500还可以包括给各个部件供电的电源511(比如电池),优选的,电源511可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The
另外,电子设备500包括一些未示出的功能模块,在此不再赘述。In addition, the
本发明实施例还提供一种电子设备,包括处理器510,存储器509,存储在存储器509上并可在所述处理器510上运行的计算机程序,该计算机程序被处理器510执行时实现上述位置信息的确定方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present invention further provides an electronic device, including a
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述位置信息的确定方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random AccessMemory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process of the foregoing method for determining location information is implemented, and can achieve the same In order to avoid repetition, the technical effect will not be repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010174982.1A CN111399011A (en) | 2020-03-13 | 2020-03-13 | Position information determining method and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010174982.1A CN111399011A (en) | 2020-03-13 | 2020-03-13 | Position information determining method and electronic equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111399011A true CN111399011A (en) | 2020-07-10 |
Family
ID=71434528
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010174982.1A Pending CN111399011A (en) | 2020-03-13 | 2020-03-13 | Position information determining method and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111399011A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114257951A (en) * | 2020-09-21 | 2022-03-29 | Oppo(重庆)智能科技有限公司 | Positioning method and apparatus, and storage medium and electronic device |
| WO2023124813A1 (en) * | 2021-12-31 | 2023-07-06 | 华为技术有限公司 | Positioning method and apparatus and electronic device |
Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN204334556U (en) * | 2015-02-02 | 2015-05-13 | 信华精机有限公司 | A vehicle communication module |
| CN105182385A (en) * | 2015-09-17 | 2015-12-23 | 北京奇虎科技有限公司 | Geographic position monitoring method and equipment |
| CN105891861A (en) * | 2015-10-21 | 2016-08-24 | 乐卡汽车智能科技(北京)有限公司 | Positioning method and device |
| CN106093988A (en) * | 2016-05-25 | 2016-11-09 | 宁波三星智能电气有限公司 | A kind of Allocation transformer terminal with positioning function and location implementing method thereof |
| CN206162073U (en) * | 2016-09-12 | 2017-05-10 | 深圳市腾进达信息技术有限公司 | Bluetooth sports watch |
| CN107064966A (en) * | 2017-04-27 | 2017-08-18 | 上海斐讯数据通信技术有限公司 | A kind of localization method of Intelligent worn device, alignment system and Intelligent worn device |
| CN107820311A (en) * | 2017-12-05 | 2018-03-20 | 中国科学院云南天文台 | For the quick early warning system of solar radio burst interference navigational communications event |
| CN207220324U (en) * | 2017-09-27 | 2018-04-13 | 深圳市凯而康智能科技有限公司 | A kind of Intelligent bracelet, charging terminal and Intelligent bracelet charging system |
| CN108936987A (en) * | 2018-08-16 | 2018-12-07 | 广州七喜电脑有限公司 | A kind of Intelligent bracelet and its Intelligent bracelet charging system |
| CN109444938A (en) * | 2018-10-23 | 2019-03-08 | 努比亚技术有限公司 | Combined positioning method, mobile terminal and the readable storage medium storing program for executing of mobile terminal |
| CN110673176A (en) * | 2019-10-30 | 2020-01-10 | 上海华测导航技术股份有限公司 | Novel method for carrier multipath inversion of GNSS receiver |
-
2020
- 2020-03-13 CN CN202010174982.1A patent/CN111399011A/en active Pending
Patent Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN204334556U (en) * | 2015-02-02 | 2015-05-13 | 信华精机有限公司 | A vehicle communication module |
| CN105182385A (en) * | 2015-09-17 | 2015-12-23 | 北京奇虎科技有限公司 | Geographic position monitoring method and equipment |
| CN105891861A (en) * | 2015-10-21 | 2016-08-24 | 乐卡汽车智能科技(北京)有限公司 | Positioning method and device |
| CN106093988A (en) * | 2016-05-25 | 2016-11-09 | 宁波三星智能电气有限公司 | A kind of Allocation transformer terminal with positioning function and location implementing method thereof |
| CN206162073U (en) * | 2016-09-12 | 2017-05-10 | 深圳市腾进达信息技术有限公司 | Bluetooth sports watch |
| CN107064966A (en) * | 2017-04-27 | 2017-08-18 | 上海斐讯数据通信技术有限公司 | A kind of localization method of Intelligent worn device, alignment system and Intelligent worn device |
| CN207220324U (en) * | 2017-09-27 | 2018-04-13 | 深圳市凯而康智能科技有限公司 | A kind of Intelligent bracelet, charging terminal and Intelligent bracelet charging system |
| CN107820311A (en) * | 2017-12-05 | 2018-03-20 | 中国科学院云南天文台 | For the quick early warning system of solar radio burst interference navigational communications event |
| CN108936987A (en) * | 2018-08-16 | 2018-12-07 | 广州七喜电脑有限公司 | A kind of Intelligent bracelet and its Intelligent bracelet charging system |
| CN109444938A (en) * | 2018-10-23 | 2019-03-08 | 努比亚技术有限公司 | Combined positioning method, mobile terminal and the readable storage medium storing program for executing of mobile terminal |
| CN110673176A (en) * | 2019-10-30 | 2020-01-10 | 上海华测导航技术股份有限公司 | Novel method for carrier multipath inversion of GNSS receiver |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114257951A (en) * | 2020-09-21 | 2022-03-29 | Oppo(重庆)智能科技有限公司 | Positioning method and apparatus, and storage medium and electronic device |
| WO2023124813A1 (en) * | 2021-12-31 | 2023-07-06 | 华为技术有限公司 | Positioning method and apparatus and electronic device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108279948B (en) | A kind of application program startup method and mobile terminal | |
| CN108769893B (en) | A terminal detection method and terminal | |
| CN110456395B (en) | A positioning method and terminal device | |
| CN107888765B (en) | Method for switching scene mode and mobile terminal | |
| CN111565078A (en) | Channel detection method in frequency division duplex mode, radio frequency circuit and electronic equipment | |
| CN108022446A (en) | A kind of parking spot acquisition methods, mobile terminal | |
| CN109976612B (en) | Application function implementation method, wearable device, mobile phone and computer-readable storage medium | |
| CN107911812A (en) | Optimal public land mobile network PPLMN list adjustment method and mobile terminal | |
| CN110855313A (en) | A signal control method and electronic device | |
| CN111443365A (en) | Positioning method and electronic equipment | |
| CN108197934A (en) | A kind of method of payment and terminal device | |
| CN110456923A (en) | Attitude sensing data processing method and electronic device | |
| CN110971335B (en) | A signal processing method, device and electronic equipment | |
| CN110234068B (en) | Positioning method and terminal equipment | |
| CN108495349A (en) | A kind of switching method and mobile terminal of carrier network | |
| CN109618278B (en) | A positioning method and mobile terminal | |
| CN111399011A (en) | Position information determining method and electronic equipment | |
| CN110824516B (en) | Positioning method and electronic equipment | |
| CN109660663B (en) | Antenna adjusting method and mobile terminal | |
| CN109443261B (en) | Method for obtaining folding angle of folding screen mobile terminal and mobile terminal | |
| CN108879856B (en) | Charging method and terminal | |
| CN110990029A (en) | Application processing method and electronic equipment | |
| CN108430025B (en) | A detection method and mobile terminal | |
| CN109932685A (en) | A kind of localization method, mobile terminal and indoor locating system | |
| CN109936817A (en) | A kind of localization method and terminal device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200710 |