[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN116668997A - Positioning method, user interface and electronic equipment - Google Patents

Positioning method, user interface and electronic equipment Download PDF

Info

Publication number
CN116668997A
CN116668997A CN202210157215.9A CN202210157215A CN116668997A CN 116668997 A CN116668997 A CN 116668997A CN 202210157215 A CN202210157215 A CN 202210157215A CN 116668997 A CN116668997 A CN 116668997A
Authority
CN
China
Prior art keywords
positioning
capability
equipment
master device
condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210157215.9A
Other languages
Chinese (zh)
Inventor
房帅磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202210157215.9A priority Critical patent/CN116668997A/en
Publication of CN116668997A publication Critical patent/CN116668997A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/50Service provisioning or reconfiguring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/003Locating users or terminals or network equipment for network management purposes, e.g. mobility management locating network equipment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The application discloses a positioning method, a user interface and electronic equipment. The positioning method relates to a master device and a slave device, wherein the master device can determine a device for initiating positioning according to the positioning capability of the master device and/or the slave device when the master device needs to acquire position information to execute a service, the positioning capability is used for indicating the positioning effect of the electronic device, when the positioning effect of the master device is good, the master device starts positioning to acquire the position information of the master device, when the positioning effect of the slave device is good, the master device acquires the position information acquired when the slave device starts positioning, and finally the master device completes the service by using the position information. Therefore, when a plurality of electronic devices coexist, the device for finally executing positioning can be determined by combining the positioning capability of the plurality of devices, the positioning effect of the device is improved as much as possible, and the main device is ensured to finish the service better.

Description

Positioning method, user interface and electronic equipment
Technical Field
The present application relates to the field of terminals and communications technologies, and in particular, to a positioning method, a user interface, and an electronic device.
Background
With the development of the internet, services of electronic devices are increasing, and many services need to be used in places where the electronic devices are located. The electronic device may trigger a position fix to obtain the location of the electronic device prior to executing the service, thereby executing the service using the location, e.g., displaying weather of a city in which the electronic device is currently located, pushing nearby news, etc.
Disclosure of Invention
The application provides a positioning method, a user interface and electronic equipment, so that when the electronic equipment executes a service requiring to acquire position information, the equipment initiating positioning can be determined from one or more pieces of equipment, the positioning effect of equipment positioning is improved as much as possible, and the electronic equipment is ensured to finish the service as much as possible.
In a first aspect, an embodiment of the present application provides a positioning method, including: the first equipment acquires positioning capability; the method comprises the steps that under the condition that the positioning capability of first equipment meets a first condition, the first equipment obtains position information of the first equipment, and/or under the condition that the positioning capability of second equipment meets a second condition, the first equipment obtains position information of the second equipment; the first device performs a first service based on location information, the location information being location information of the first device and/or location information of the second device.
The first device may refer to a master device, which needs to acquire location information to perform the first service, and the second device may refer to a slave device, which may provide location information for the master device.
By implementing the method provided by the embodiment of the application, the main equipment can combine the positioning capability of the main equipment and/or other equipment to determine the positioning equipment which finally initiates positioning, and the service of the main equipment is executed based on the position information acquired by the positioning equipment. The positioning capability indicates a positioning effect, and when the positioning capability of the equipment reaches a preset condition, the positioning effect of the equipment is better, so that the positioning effect can be improved as much as possible while the main equipment acquires the position information, the cost of the main equipment when executing the service is reduced, for example, when the duration requirement of the main equipment is higher, the main equipment can acquire the position information of the slave equipment when the slave equipment is started to be positioned, and the duration capability of the main equipment is improved while the service is ensured to be completed.
With reference to the first aspect, in some embodiments, the first condition and the second condition are the same or different.
With reference to the first aspect, in some embodiments, in a case where the positioning capability of the first device meets a first condition, the first device obtains location information of the first device, and/or in a case where the positioning capability of the second device meets a second condition, the first device obtains location information of the second device, including: under the condition that the positioning capability of the first equipment meets a first condition and the positioning capability of the second equipment does not meet a second condition, the first equipment acquires the position information of the first equipment; and under the condition that the positioning capability of the first equipment does not meet the first condition and the positioning capability of the second equipment meets the second condition, the first equipment acquires the position information of the second equipment.
That is, the master device may determine the positioning device with the best positioning effect from a plurality of devices including the master device and the slave device, so as to enhance the service execution effect of the master device, such as positioning accuracy, device endurance, positioning speed, and the like, as much as possible without affecting the user experience.
With reference to the first aspect, in some embodiments, the distance between the first device and the second device is less than the first value.
Because the main equipment can use the position information of other equipment to execute the service, the difference between the position information of other equipment and the position information of the main equipment is not great, and the distance between the other equipment and the main equipment is smaller than a certain range, thereby ensuring the accuracy of the position information and the normal execution of the service.
With reference to the first aspect, in some embodiments, the method further comprises: the first device detects a first operation for triggering execution of a first service.
With reference to the first aspect, in some embodiments, the first device performs a first service based on the location information, and specifically includes: the first device displays a first user interface having information related to the location information displayed thereon.
The host device may perform a corresponding service, for example, displaying weather of a city in which the host device is located, displaying news in the vicinity, etc., after acquiring the location information, to provide a service related to the location information to the user.
With reference to the first aspect, in some embodiments, the method further comprises: the first device displays a second user interface, and the second user interface displays a first control; the first device detects a second operation acting on the first control, the second operation being used to trigger acquisition of positioning capability and to execute the first service.
That is, the main device may provide a positioning control, where the positioning control may be used to trigger on or off a positioning function, so that a user may determine, according to his own needs, which situation triggers on or off the positioning function, so as to ensure that the main device normally executes a positioning service, and reduce power loss and improve operability of the user.
With reference to the first aspect, in some embodiments, the method further comprises: the first device sends a capability negotiation request to the second device, the capability negotiation request being for requesting acquisition of positioning capabilities of the second device.
With reference to the first aspect, in some embodiments, before the first device acquires the positioning capabilities of the first device and the second device, the method further includes: the first device discovers the second device through one or more wireless communication technologies of bluetooth, wi-Fi, NFC.
With reference to the first aspect, in some embodiments, the positioning capability includes one or more of: the method comprises the following steps of electric quantity, a charging state, a positioning mode, positioning overhead, a load condition, a device type, an opening state of a positioning function, a screen-off state, a positioning state, a distance and a network identifier.
With reference to the first aspect, in some embodiments, the positioning means includes: network positioning and GPS positioning, the device types include: power sensitive and non-power sensitive.
With reference to the first aspect, in some embodiments, the satisfaction of the first condition by the positioning capability of the first device specifically includes: the positioning capability of the first device is higher than the second value and/or the positioning capability of the first device matches a preset positioning capability.
With reference to the first aspect, in some embodiments, the second device comprises one or more devices.
When the slave device comprises a plurality of devices, the master device can sort the positioning effects of the plurality of devices according to the positioning capabilities of the plurality of devices, so as to select the positioning device with the best positioning effect.
With reference to the first aspect, in some embodiments, in a case where the location information includes location information collected by a plurality of devices, the first device performs a first service based on the location information collected by the plurality of devices, specifically including: the first equipment processes the position information to obtain processed position information; the first device performs a first service based on the processed location information.
When the master device obtains the position information of the plurality of devices, the master device can further process the plurality of position information, such as position fusion or position screening, so as to determine a more accurate position information and improve the execution effect of the service of the master device.
In a second aspect, embodiments of the present application provide an electronic device including a memory, one or more processors, and one or more programs; the one or more processors, when executing the one or more programs, cause the electronic device to perform the method as described in the first aspect or any implementation of the first aspect.
In a third aspect, embodiments of the present application provide a computer readable storage medium comprising instructions which, when run on an electronic device, cause the computer to perform a method as described in the first aspect or any implementation of the first aspect.
In a fourth aspect, embodiments of the application provide a computer program product which, when run on a computer, causes the computer to perform a method as described in the first aspect or any implementation of the first aspect.
The positioning method provided by the embodiment of the application can be used for selecting the positioning equipment most suitable for initiating positioning from one or more pieces of electronic equipment by combining the positioning capability of the electronic equipment when the electronic equipment coexist, so that the position information acquired by the positioning equipment is obtained, and the service execution effect of the equipment executing the service according to the position information is optimal, such as small power loss, high positioning speed, high positioning accuracy and the like.
Drawings
Fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present application;
fig. 2 is a flow chart of a positioning method according to an embodiment of the present application;
FIGS. 3A-3B, 4A-4B, and 5A-5C illustrate some user interfaces provided by embodiments of the present application;
fig. 6 is another schematic flow chart related to a positioning method according to an embodiment of the present application;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;
fig. 8 is a schematic software structure of an electronic device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a positioning device according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly and thoroughly described below with reference to the accompanying drawings. Wherein, in the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; the text "and/or" is merely an association relation describing the associated object, and indicates that three relations may exist, for example, a and/or B may indicate: the three cases where a exists alone, a and B exist together, and B exists alone, and furthermore, in the description of the embodiments of the present application, "plural" means two or more than two.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the application, unless otherwise indicated, the meaning of "a plurality" is two or more.
The term "User Interface (UI)" in the following embodiments of the present application is a media interface for interaction and information exchange between an application program or an operating system and a user, which enables conversion between an internal form of information and a form acceptable to the user. The user interface is a source code written in a specific computer language such as java, extensible markup language (extensible markup language, XML) and the like, and the interface source code is analyzed and rendered on the electronic equipment to finally be presented as content which can be identified by a user. A commonly used presentation form of the user interface is a graphical user interface (graphic user interface, GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It may be a visual interface element of text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc., displayed in a display of the electronic device.
In order to accomplish the positioning of the electronic device, there are two positioning modes:
1) Network positioning
Network positioning includes base station positioning and WiFi positioning. The base station positioning is a positioning system based on cellular mobile communication technology, and is mainly used for calculating the approximate position of the electronic equipment based on the communication time difference between the base station and the electronic equipment. The WiFi positioning is realized by detecting the ID (router address) of WiFi and then completing positioning under the cooperation of a WiFi position database and a map database.
In general, network positioning is mainly based on the position of a wireless access point or a base station, which has a high positioning speed, but has a large positioning error, and needs to be able to perform positioning under the networking condition.
2) Global positioning system (Global Positioning System, GPS) positioning
GPS positioning is to estimate the distance between a satellite and an electronic device by receiving satellite signals and the propagation time of the signals, so as to determine the position of the electronic device.
In general, GPS positioning is mainly based on the position of satellites, its positioning result is accurate, and networking is not required, but its positioning speed is slow.
Although the electronic device can acquire the position information of the electronic device by using the two modes, starting the electronic device to position can increase the power consumption of the electronic device, when the electric quantity of the electronic device is low, the two modes are not beneficial to saving the electric quantity of the electronic device, the standby time of the electronic device is prolonged, and when the configuration of the electronic device is low, the positioning capability of the electronic device is weak, which may cause inaccurate positioning results. Therefore, how to complete the positioning of the electronic device and improve the positioning effect of the electronic device is a current urgent problem to be solved.
The embodiment of the application provides a positioning method, which relates to a master device and a slave device, wherein the master device can acquire the positioning capability of the master device and/or the slave device, and when the master device triggers a positioning service, the positioning capability is used for indicating the positioning effect of the electronic device according to the positioning capability of the master device and/or the slave device, when the positioning effect of the master device is better, the master device starts positioning to acquire the position information of the master device, when the positioning effect of the slave device is better, the master device initiates a positioning request to the slave device, acquires the position information of the slave device, and finally the master device uses the position information to finish the positioning service.
The number of the main devices can be one, the number of the auxiliary devices can be one or more, and the main device can determine the optimal positioning device from the plurality of devices according to the positioning capability of each device, so that the positioning effect of the devices is improved as much as possible.
The positioning capability may include, but is not limited to, one or more of the following: the power, the charge state, the positioning mode, the positioning overhead, the load condition, the equipment type, the starting state of the positioning function, the screen off state, the positioning state, the distance, the network identification and the like. Positioning effects may include, but are not limited to: positioning speed, positioning accuracy, positioning loss, etc. Specifically, the master device may determine a positioning effect of each device according to a positioning capability of each device, and rank each device according to the positioning effect, where the device with a better positioning effect ranks higher, and the master device may select location information of the device ranked higher when performing positioning. For example, with the positioning loss as the positioning effect, the master device may determine the positioning loss through the charging state and the positioning overhead of each device, and when the device is in the charging state and the positioning loss is smaller, the positioning loss of the device is smaller, and the ranking of the device is higher. A specific description of the positioning capabilities and positioning effects can be found in the subsequent method embodiments, which are not first developed here.
Therefore, when a plurality of electronic devices coexist, the main device can combine the positioning capability of other electronic devices, select the most suitable electronic device to execute positioning, the positioning effect of the electronic device is improved as much as possible, the cost of the main device when executing positioning service is reduced, for example, when the duration requirement of the main device is higher, the main device can acquire the position information of the auxiliary device when starting positioning, the duration capability of the main device is improved when the positioning service is finished, or when the main device needs to acquire the position information of network positioning and does not have or does not support the network positioning capability at present, the main device can acquire the position information of the auxiliary device when starting network positioning, and the main device is ensured to finish the service as much as possible.
Fig. 1 illustrates a communication system 1000 provided by an embodiment of the present application.
As shown in fig. 1, the communication system 1000 may include: master device 1001 and slave device 1002. Wherein the number of master devices 1001 is one, and the number of slave devices 1002 may be one or more. Illustratively, in the communication system 1000 shown in fig. 1, the number of master devices 1001 and slave devices 1002 is one. Wherein:
the master device 1001 is a device that needs to acquire position information. Specifically, master device 1001 may be configured to initiate a capability negotiation request to slave device 100, obtain the positioning capabilities of slave device 1002, and determine the device that initiated the positioning based on the positioning capabilities of master device 1001 and slave device 1002. When the slave device 1002 is a device that needs to initiate positioning, the master device 1001 is further configured to send a positioning request to the slave device 1002, obtain location information of the slave device 1002, and when the master device 1001 is a device that needs to initiate positioning, the master device 1001 initiates positioning, and obtain location information of the master device 1001. In addition, the master device 1001 may also be used to perform a positioning service according to the location information. For a description of the master device 1001 determining a device that initiates positioning according to positioning capabilities, reference will be made to the following, which is not first developed.
The slave device 1002 is a device that provides location information. Specifically, the slave device 1002 may be configured to receive a capability negotiation request sent by the master device 1001, send its own positioning capability to the master device 1001, receive a positioning request of the master device 1001, initiate positioning according to the positioning request, obtain location information, and send the location information to the master device 1001.
In addition, the communication connection between the master device 1001 and the slave device 1002 may be a wired connection or a wireless connection. The master device 1001 may send a capability negotiation request to the slave device 1002 based on the communication connection, obtain the positioning capability of the slave device 1002, send a positioning request to the slave device 1002, obtain the position information of the slave device 1002, and so on. The wireless connection may be a close range connection such as a high fidelity wireless communication (wireless fidelity, wi-Fi) connection, a bluetooth connection, an infrared connection, an NFC connection, a ZigBee connection, or a remote connection including, but not limited to, a remote connection of a mobile network based on 2g,3g,4g,5g, and subsequent standard protocols. For example, master device 1001 and slave device 1002 may log onto the same user account (e.g., hua as an account) and then make a remote connection through a server.
Fig. 2 shows a flow chart of a positioning method according to an embodiment of the present application.
As shown in fig. 2, the positioning method may include:
s101, the master device acquires a service request.
The service request is used for requesting to acquire the location information of the main device, and executing a service according to the location information, where the service may refer to a function related to the location information of the device in an application installed on the main device, and the main device may satisfy a user's requirement by executing the service, for example, the service may refer to displaying weather, pushing nearby news, navigating, and the like, where the service needs to acquire the location information of the main device to complete.
The master device obtaining the service request may include the following two cases:
1) The master device detects a user operation, and obtains a service request in response to the operation
The user operation can be used for triggering the service, and the master device can start to execute the service according to the user operation, namely, the service request is generated, and the position information of the master device is requested to be acquired. Specifically, the user operation may refer to a touch operation acting on the main device, for example, a click operation acting on an application program displayed in the main device, or may refer to a voice operation acting on the main device, for example, a voice instruction of a user to input "open a navigation application", or the like, which is not limited by the embodiment of the present application. In the embodiment of the present application, the user operation may also be referred to as a first operation. The service triggered by the first operation may also be referred to as a first service.
3A-3B illustrate some user interfaces involved when a master device detects a user operation to obtain a service request.
FIG. 3A illustrates an exemplary user interface 10 on a host device for an application menu, which may be referred to as the host interface of the host device.
As shown in fig. 3A, the user interface 10 may include: status bar 101, calendar indicator 102, weather indicator 103, settings icon 104, browser icon 105. Wherein:
the status bar 101 may include one or more signal strength indicators of a mobile communication signal, one or more signal strength indicators of a wireless fidelity (WiFi) signal, a battery status indicator, and a time indicator. Calendar indicator 102 may be used to indicate the current time. Weather indicator 103 may be used to indicate a weather type.
As shown in fig. 3A, the host device may detect a user operation on the browser icon 105, for example, a click operation on the browser icon 105, and in response to the operation, the host device opens the browser application, displays the user interface 20 shown in fig. 3B, where the user interface 20 is a user interface provided by the browser application, and in fig. 3B, the user interface 20 may be a main page of the browser application.
As shown in fig. 3B, the user interface 20 is used to display a search portal of the browser application, a search keyword, and information recommended by the browser application according to the location information. The user interface 20 may include a news display area 201, where the news display area 201 is configured to display nearby news searched according to location information of the host device when the browser application starts the nearby news pushing function.
That is, when the main device detects a user operation and opens the browser application, since the opening of the browser application starts a nearby news pushing function, the function needs to acquire the location information of the main device to be normally executed, so after detecting the operation of opening the browser application by the user, the main device generates a service request for requesting to acquire the location information of the main device, so that the browser application can normally execute the news pushing function according to the location information, and the main device can display nearby news searched according to the location information when displaying the user interface 20.
In addition, in the process that the host device acquires the location information and acquires the news according to the location information, the host device may display a prompt 201A as shown in fig. 3B in the user interface 20, the prompt 201A being used to prompt the user that the host device is acquiring the location information and acquiring the news according to the location information.
It will be appreciated that, not limited to the above operation of opening a browser and triggering the operation of obtaining a service request, in other embodiments of the present application, the host device may also receive other operations, such as an operation acting on a navigation application, a weather application, etc., and the embodiments of the present application are not limited thereto.
2) The master device automatically obtains the service request
The master device may automatically obtain the service request when it detects that the preset condition is satisfied. Specifically, the master device may periodically acquire the service request at a specified time or interval, for example, the master device may periodically update the location information of the master device for 10 minutes, so the master device may automatically acquire the service request every 10 minutes.
It can be understood that, the method is not limited to the above two cases of triggering and acquiring service requests, and the embodiment of the application does not limit the time for triggering and acquiring service requests by the master device.
S102, the main equipment acquires the positioning capability of the main equipment.
The positioning capability of the master device is used to characterize the positioning effect of the master device. The positioning capability may include, but is not limited to: power, state of charge, positioning capability, positioning overhead, load conditions, device type, on state of positioning function, off screen state, positioning state, network identification, etc.
The power refers to the current remaining power of the electronic device, for example, 10% of the power remains in the main device. When the electric quantity of the main device is smaller, the electric quantity loss of the main device when the main device starts positioning is required to be considered, and when the electric quantity of the main device is smaller than 5%, the main device can acquire the position information of the auxiliary device through the auxiliary device starting positioning when the electric quantity of the main device is needed, so that the position information can be acquired by the main device according to the position information, and the electric quantity consumption when the main device starts positioning is avoided.
The charging state includes both charged and uncharged states. When the main equipment is in a charging state currently, the fact that the electric quantity loss of the main equipment is not considered currently is indicated, and when the position information is needed, the main equipment can be directly started to acquire the position information of the main equipment.
The positioning modes can include, but are not limited to, network positioning and GPS positioning, when the main device comprises the network positioning mode, the main device can complete positioning by using the network positioning mode, and when the main device comprises the GPS positioning mode, the main device can complete positioning by using the GPS positioning mode. The main device can determine which mode of positioning the main device specifically needs to start according to the service of the main device, for example, when the main device currently has position information which needs to be accurate by one service, the main device can start GPS positioning to acquire the accurate position information acquired by the GPS positioning. The description of network positioning and GPS positioning can be found in the foregoing, and will not be repeated here. In addition, it should be noted that the master device does not include a network positioning manner, which may mean that hardware of the master device does not support network positioning, or that the master device does not currently open network positioning, and similarly, the master device does not include a GPS positioning manner, which may mean that hardware of the master device does not support GPS positioning, or that the master device does not currently open GPS positioning.
The positioning overhead is used to represent the power consumption overhead of the electronic device when the electronic device is turned on for positioning. For example, an overhead level may be defined for positioning overhead, where the power consumption overhead of the device is different at different levels, and the higher the level, the greater the power consumption overhead of the electronic device when the device turns on positioning.
The load situation refers to the load situation of the current operation of the device, wherein the load situation of the electronic device may be determined by the central processing unit (central processing unit, CPU) usage, memory usage or system throughput (Transactions Per Second, TPS). For example, the load capacity of the electronic device may be divided into a plurality of load classes according to the CPU usage rate, the memory usage rate or the TPS of the electronic device, where the load classes are different, the load of the electronic device is different, the higher the load class is, the greater the load of the electronic device is, the heavier the work of the current electronic device is, the lower the load class is, the smaller the load of the electronic device is, and the current electronic device is idle. In other words, a less loaded electronic device is more suitable for start-up positioning than a more loaded electronic device.
The device type may be used to indicate whether the electronic device is a power sensitive device, where a power sensitive device is a device that has a greater limit on power consumption than a device that is not power sensitive. For example, for a device with sufficient electric power, the loss of power has a small influence on the normal operation of the device, and the device may be referred to as a non-power sensitive device. That is, since the positioning causes a loss of power, the non-power sensitive device can start positioning, and the power sensitive device is not suitable to start positioning.
The on state of the positioning function comprises two states of an on positioning function and an off positioning function. Compared with the state that the main equipment is in the positioning function not started, when the main equipment is in the positioning function started state, the position information can be acquired more quickly, and the execution of the service is completed. Thus, the master device may determine whether to initiate positioning using the master device in conjunction with the on state of the positioning function.
The screen-off state comprises two states of screen-off and screen-on. When the main equipment is in the screen-off state, all applications of the main equipment are in the background running state, the power consumption of the main equipment is small, when the main equipment is in the screen-on state, the main equipment is possibly in the state of running the applications in the foreground, at the moment, the system resources of the main equipment are occupied, and the starting positioning occupies the system resources of the main equipment, so that the power consumption is caused, and therefore, the main equipment can be combined with the screen-off state to determine whether the main equipment is used for starting the positioning.
The location status may be used to indicate whether the master device is currently initiating a location fix, obtaining location information. When the master device is currently initiating positioning to obtain location information, the master device may directly use the current location information to perform the service without combining the positioning capabilities of other devices to determine the positioning device.
Positioning effects may include, but are not limited to: positioning speed, positioning accuracy, positioning loss, etc. The positioning speed refers to the time required for completing positioning, the positioning accuracy refers to the accuracy of the obtained position information, and the positioning loss refers to the loss degree of power caused by starting positioning. The positioning speed of the main device may be determined according to the electric quantity, the positioning manner and the load condition of the main device, specifically, when the electric quantity of the device is larger, the positioning capability is network positioning and the load is smaller, the positioning speed of the device is faster, the positioning loss of the device may be determined according to the charging state and the positioning overhead of the device, specifically, when the device is in the charging state and the positioning overhead is smaller, the positioning loss of the device is smaller. Therefore, when the positioning effects are different, the positioning capabilities to be considered are different, and the positioning effects required by the main equipment can be specifically combined, and then the positioning effects of the equipment are determined according to the positioning capabilities associated with the positioning effects.
The master device may trigger acquisition of the positioning capabilities of the master device in several cases:
1) After the main equipment acquires the service request, triggering and acquiring the positioning capability of the main equipment
That is, the master device may trigger acquisition of the positioning capability of the master device when it detects that the position information needs to be acquired, so that the master device may determine whether to initiate positioning according to the positioning capability of the master device.
2) After receiving user operation, the main equipment triggers and acquires the positioning capability of the main equipment
That is, the master device may display a prompt message to prompt the user whether to acquire the positioning capability of the master device, and trigger to acquire the positioning capability of the master device after receiving the approval of the user to acquire the positioning capability of the master device, or the master device may provide a positioning switch, trigger to start the positioning operation after receiving the action of the user on the positioning switch, and trigger to acquire the positioning capability of the master device.
4A-4B illustrate some of the user interfaces involved in activating a position switch by a master device.
Fig. 4A illustrates a main interface of a main device, namely, a user interface 10, and a detailed description of the user interface 10 can be referred to in fig. 3A, which is not repeated herein.
As shown in fig. 4A, the host device may detect a user operation to slide down, display a window 106 as shown in fig. 4B on the user interface 10, the window 106 for displaying one or more shortcut switches through which a user may quickly turn on one or more functions, such as WiFi, bluetooth, flashlight, flight mode, etc.
As shown in fig. 4B, the window 106 may include a control 106A, which control 106A may accept user operations (e.g., touch operations, click operations) to turn on/off the co-location function. The presentation of control 106A can include icons and/or text (e.g., text "locate", "co-locate", "multi-device locate", "distributed locate", etc.). When the master device detects a user operation acting on the control 106A, that is, detects a user operation for starting the co-location function, the master device may start the location function, that is, obtain location capabilities of itself and other devices, determine a device for starting location according to the location capabilities, and control the device to start location, so as to obtain location information. In some embodiments, the host device, upon detecting a user operation on control 106A, may alter the display form of control 106A, such as adding shadows when control 106A is displayed, as shown in FIG. 4B.
It will be appreciated that, without limitation to the above-mentioned receipt of a slide down operation in fig. 4A, window 106 may be displayed, and the host device may also display window 106 via other user interfaces, such as those provided by an application, to which embodiments of the present application are not limited.
As can be seen from fig. 4A-4B, the master device may provide a positioning control, and the user may control whether the master device obtains positioning capabilities of the respective devices by controlling the opening and closing of the control, and control the positioning of the devices according to the positioning capabilities.
In the embodiment of the application, the positioning control can also be called a first control, the user interface displayed by the master device and containing the first control can also be called a second user interface, and the user operation acted on the first control by the user can also be called a second operation, and the second operation is used for triggering to acquire the positioning capability of the master device and/or the slave device and executing the service.
3) Periodic acquisition by a master device
That is, the master device may automatically and periodically update the positioning capability of the master device, so as to ensure the accuracy of the positioning capability of the master device when the master device starts the execution of the service.
It can be understood that the above mentioned three cases of triggering to obtain the positioning capability of the master device are not limited, for example, the master device may also trigger to obtain its positioning capability when turning on or on a screen, which is not limited by the embodiment of the present application.
It can be seen that, the execution sequence of step S101 and step S102 is not limited in the embodiment of the present application, the master device may acquire the positioning capability of the master device when acquiring the service request, or may acquire the positioning capability of the master device when acquiring the service request.
S103, the master device judges whether the master device is a positioning device according to the positioning capability of the master device.
The positioning device is the electronic device with the best positioning effect, and is also the device for finally starting positioning.
In the embodiment of the application, after the positioning capability of the main equipment is obtained, the main equipment can directly judge whether the main equipment can directly start positioning according to the positioning capability of the main equipment, and obtain the position information of the main equipment, so that the service is executed according to the position information of the main equipment.
That is, when the positioning effect of the master device is good, the master device is a positioning device. This is because if the positioning effect of the master device itself is good, the master device can choose the device that initiates the positioning from the master device and the slave devices without combining the positioning capability of the slave devices. Therefore, the speed of executing the service by the main equipment can be increased, and the most accurate position information can be obtained while the positioning effect is met. For example, when positioning loss is used as a positioning effect, if the main device is currently in a charging state, the main device directly initiates positioning and cannot cause the influence of electric quantity loss, and at the moment, the positioning loss when the main device initiates positioning is smaller, the main device can directly initiate positioning and acquire the position information of the main device.
In addition, when the positioning effect of the main equipment is not good, the main equipment can be further combined with the positioning capability of other equipment to select the equipment which is most suitable for initiating positioning from the equipment.
The determining that the positioning effect of the device is determined according to whether the positioning capability of the device meets a preset condition, wherein the determining that the positioning capability of the device meets the preset condition specifically comprises: the positioning capabilities of the device reach a threshold value and/or the positioning capabilities of the device match a preset capability, etc. For example, the power is higher than 50%, the device type is non-power sensitive, etc.
Therefore, when the master device determines that the master device is a positioning device according to the positioning capability of the master device, step S112 is performed, otherwise step S104 is performed.
It should be noted that step S103 is an optional step, and the master device may directly acquire the positioning capabilities of the plurality of devices, and combine the positioning capabilities of the plurality of devices to select the positioning device from them.
S104, the master device discovers the slave device.
The slave device refers to an electronic device located near the master device, and the description of the slave device may be referred to in detail and will not be repeated here.
Wherein the master device may discover the slave device through one or more wireless communication technologies of a communication module, e.g., bluetooth, wiFi, NFC, etc. Preferably, the master device may discover an electronic device located near the master device through bluetooth, which may further reduce power consumption of the master device when performing the positioning service, since bluetooth has a smaller power consumption of the master device.
In some embodiments, the host device may initiate one or more of WLAN, bluetooth, or NFC in the wireless communication module to discover electronic devices in the vicinity of the host device in response to user operation by the user to initiate the co-location function. The description of the co-location function may be referred to in detail with respect to fig. 4A-4B, and will not be repeated here.
In other embodiments, the master device may trigger discovery of electronic devices in the vicinity of the master device after the service request is obtained.
S105, the master device sends a capability negotiation request to the slave device.
After the master device discovers the slave device, the master device may send a capability negotiation request to the slave device, the capability negotiation request requesting acquisition of the positioning capability of the slave device. Preferably, the master device may perform capability negotiation with the slave device based on bluetooth low energy, reducing power consumption of the master device.
S106, the slave device obtains the positioning capability of the slave device.
The positioning capabilities of the slave device are used to characterize the positioning effect of the slave device. The positioning capability may include, but is not limited to: the power, the charge state, the positioning mode, the positioning overhead, the load condition, the equipment type, the starting state of the positioning function, the screen off state, the positioning state, the distance, the network identification and the like. The descriptions of the electric quantity, the charging state, the positioning mode, the positioning overhead, the load condition, the device type, the on state, the off state, and the positioning state in the positioning capability may refer to the related descriptions of the positioning capability of the main device in step S102, which are not repeated herein. In addition, the distance refers to a distance between the slave device and the master device, and when the positioning effect includes positioning accuracy, the master device may determine the positioning device using a distance between the slave device and the master device as a positioning capability of the slave device, since the further the distance is, the larger an error of the position information of the slave device as the position information of the master device is. The network identifier may refer to a local area network identifier, where the local area network identifier is used to indicate whether the master device and the slave device are in the same local area network, and when the slave device and the master device are in the same local area network, the higher the communication efficiency between the master device and the slave device is, the more reliable the communication between the master device and the slave device is.
It can be seen that the positioning capabilities that the slave device needs to acquire and the positioning capabilities that the master device needs to acquire may be the same or different. For example, the positioning capability of the master device may include a device type, and the positioning capability of the slave device may not include a device type, so that when the master device determines the positioning device according to the positioning capability of each device, the master device may preferentially determine whether the master device may be directly determined as the positioning device according to the device type of the master device, if the device type of the master device is non-power sensitive, the master device may directly start positioning, without determining the positioning effect of other devices, so as to shorten the positioning time, otherwise, the master device may determine the positioning effect of each device in combination with other positioning capabilities of each device, such as positioning overhead, electric quantity, and the like.
S107. the slave returns the positioning capability of the slave to the master.
At this time, the master device may obtain the positioning capabilities of the master device and the slave device. For example, the master device may establish a location capability information table, store the location capability of each device in the location capability information table, and periodically update and maintain the location capability information table, so as to ensure the accuracy of the information in the location capability table. In addition, when the master device acquires the positioning request again, if the positioning capability information table already stores the positioning capability of one slave device, the master device may not acquire the positioning capability of the slave device any more.
It will be appreciated that when there are multiple slaves, the master may send a capability negotiation request to multiple slaves, acquiring the positioning capabilities of the multiple slaves.
In some embodiments, after the master device obtains the positioning capability of each device, the devices meeting the requirements may be further screened out according to the positioning capability of each device. This is because some devices may not have a positioning function and cannot acquire location information, so the master device does not need to waste system resources to calculate the positioning effect of the devices, and the master device can remove the devices from the positioning capability information table. Or further, because the service request initiated by the master device may need the location information acquired by different locating modes, the master device may further screen out the devices meeting the requirements according to the locating modes of each device, for example, when the master device needs the location information of network locating, the master device may screen out the devices containing the locating modes of network locating according to the locating capability of each device, and when the master device needs the location information of GPS locating, the master device may screen out the devices containing the locating modes of GPS locating according to the locating capability of each device.
S108, the master device determines the positioning device according to the positioning capabilities of the master device and the slave device and the positioning strategy.
Specifically, the main device may determine the positioning effect of each device according to the positioning policy in combination with the positioning capability of each device, and select the positioning device with the best positioning effect from the positioning effects, and the main device may respond to the service request of the main device by using the position information acquired by the positioning device, so as to complete the service of the main device.
That is, when a service request exists, the master device determines the positioning device for starting positioning from a plurality of devices including the master device and the slave device, so that the positioning effect of the plurality of devices is improved as much as possible, and the service execution effect of the master device is improved.
In an embodiment of the present application, the positioning strategy may include, but is not limited to, the following two types:
1) Setting different ratios for different positioning capacities, and calculating the numerical value representing the positioning effect in a summation mode
That is, different ratios may be set according to the degree of association of the positioning capability with the positioning effect. Taking the positioning effect of the main device as an example of the positioning speed, assuming that the degree of association between the electric quantity, the positioning capability and the load condition of the electronic device and the positioning speed is gradually reduced, that is, the electric quantity of the electronic device affects the positioning speed of the device most easily, the positioning capability is second, the load condition is minimum, the ratio of the electric quantity, the positioning capability and the load condition can be set to 3, 2 and 1, the main device can substitute the respective positioning capability of the device and the ratio corresponding to the respective positioning capability into the following formula 1, and calculate the numerical value corresponding to the positioning effect of the respective device:
Positioning effect = positioning capability 1 x ratio 1+ positioning capability 2 x ratio 2+ … … + positioning capability N x ratio N formula 1
Therefore, the calculation formula for the positioning effect of each device can be obtained as follows: the electric quantity is 3+positioning capability is 2+load condition is 1, wherein the electric quantity, the positioning capability and the load condition can be preprocessed into corresponding numerical values respectively. It can be seen that the larger the corresponding value of the positioning effect is, the better the positioning effect of the electronic equipment is.
That is, the master device may select an electronic device having the largest or smallest value of the positioning effect as the positioning device. Specifically, when the positioning effect of the electronic device with the largest value is the best, the electronic device with the largest value can be selected as the positioning device, and when the positioning effect of the electronic device with the smallest value is the best, the electronic device with the smallest value can be selected as the positioning device.
It can be seen that the positioning device is determined by summing the ratios of the positioning capabilities, so that the positioning effects of the devices can be determined more accurately by comprehensively considering the positioning capabilities of the devices.
2) Setting different priority levels for different positioning capabilities, wherein the positioning effect of equipment which preferentially meets the preset capability is best
When the electronic device preferentially meets the requirement of a certain positioning capability, the positioning effect of the electronic device can be preferentially determined to be the best. Taking the positioning effect of the main equipment as an example of positioning loss, when the main equipment is in a charging state, the main equipment in the charging state can offset the power loss caused by positioning through charging, so that the positioning effect of the main equipment can be considered to be best, and the main equipment can directly start positioning to acquire position information without considering other positioning capabilities or the positioning effects of other equipment. Or further, when each device is not in a charging state or a plurality of devices are in a charging state, the positioning device can be further determined by combining other positioning capabilities, such as positioning cost, for example, when the positioning cost of the slave device is minimum, the slave device can be determined to be the device with the best positioning effect.
It can be seen that the positioning device is determined according to the device which preferably satisfies the preset capability, so that the positioning speed can be increased, and the master device can respond to the service request as soon as possible to complete the execution of the service.
In general, the master device may determine the positioning effect of the device by determining whether the positioning capability of the device satisfies a preset condition, and further, the master device may determine the positioning device by comparing the positioning capability of each device or the degree of matching with the preset condition.
For example, it may be preferentially determined whether the positioning capability of one device (master device or slave device) satisfies a preset condition. When the positioning capability of the main equipment meets a first condition, the main equipment is positioning equipment; and when the positioning capability of the slave device meets the second condition, the slave device is a positioning device. Alternatively, further, a location device may be determined in conjunction with location capabilities between multiple devices. When the positioning capability of the master device meets a first condition and the positioning capability of the slave device does not meet a second condition, the master device is the positioning device; and when the positioning capability of the master device does not meet the first condition and the positioning capability of the slave device meets the second condition, the slave device is the positioning device. The first condition and the second condition may be the same, and at this time, the master device may determine positioning effects of the master device and the slave device according to the same criteria, for example, determine the positioning device according to a positioning manner and a charging state of the master device and the slave device. The first condition and the second condition may also be different, and in this case, the master device may determine the positioning effect of the master device and the slave device according to different standards, for example, determine the positioning device according to the device type, the charging state, and the positioning manner of the master device, and the charging state and the positioning manner of the slave device.
It should be noted that in other embodiments of the present application, other positioning strategies may be included, and embodiments of the present application are not limited in this respect. For example, the positioning device may be determined by combining the above two positioning strategies, and for example, a plurality of devices that preferentially satisfy a certain preset capability may be found first, then the numerical values corresponding to the positioning effects of the plurality of devices are sorted according to the ratio of the positioning capabilities, and the device with the best positioning effect is selected according to the numerical values, and is determined as the positioning device, so that the positioning speed is increased, and the positioning capability of each device is comprehensively considered.
In addition, when there are a plurality of devices with the best positioning effect, the positioning device may be determined by four ways:
1) The main equipment randomly selects one equipment from the equipment with the best positioning effect as positioning equipment;
2) The main equipment selects equipment closest to the main equipment from the equipment with the best positioning effect as positioning equipment, so that the accuracy of the position information can be improved as much as possible;
3) When the plurality of devices with the best positioning effect comprise the main device, the main device is selected as the positioning device, so that the step of sending a positioning request to the slave device by the main device can be reduced, and the speed of executing the service by the main device is increased;
4) The main device selects one device from the devices with the best positioning effect as the positioning device according to the selection of the user, so that the device which is finally positioned can be determined according to the selection of the user, and the operability of the user is improved.
That is, when there are a plurality of devices with the best positioning effect, the master device may determine one or more positioning devices, and when the master device may determine a plurality of positioning devices, the master device may further process the position information collected by the plurality of positioning devices, for example, select the position information with the highest occurrence frequency, so as to determine final position information, or perform fusion processing on the plurality of position information, so as to determine a position located between the plurality of positions. When the master device can determine a plurality of positioning devices, all the devices with the best positioning effect can be determined as positioning devices, or part of the devices with the best positioning effect can be randomly selected from the plurality of devices with the best positioning effect to be used as positioning devices, or the devices with the distance from the master device smaller than a certain threshold range can be selected from the plurality of devices with the best positioning effect to be used as positioning devices, or the plurality of positioning devices can be determined according to the selection of a user, and the embodiment of the application is not limited to the above.
In some embodiments, the master device may determine the location device from the slave devices based solely on the location capabilities of the slave devices and the location policy. At this point, the master device may determine the location device from the one or more slave devices without considering the location capabilities of the master device. Alternatively, when the master device only finds one slave device, the master device may directly acquire the location information of the slave device, that is, when the master device performs step S104, when the slave device only has one device, steps S109 to S111 may be directly performed.
Steps S109-S111 may be performed when the slave device is a positioning device, and step S112 may be performed when the master device is a positioning device.
In addition, after the master device determines the positioning device, different prompt messages can be displayed in the user interface according to whether the positioning device is the master device or the slave device, so that a user can acquire whether the device initiating positioning is the master device or the slave device. Reference may be made to fig. 5A-5B with particular reference to the user interface involved in the master device determining the locating device.
In the process that the host device determines the positioning device and acquires the position information through the positioning device, the host device may display a user interface as shown in (a) or (b) of fig. 5A. Specifically, the master device may display a location identifier 101A as shown in (a) of fig. 5A or a location identifier 101B as shown in (B) of fig. 5A in the status bar 101 of the user interface 20. The location identifier 101A and the location identifier 101B are used to indicate that the current master device is initiating a location function. In addition, the master device may also indicate the device that initiates the positioning currently through the positioning identifier 101A and the positioning identifier 101B. It can be seen from the positioning identifier 101A and the positioning identifier 101B that a distance scale is included below the icon of the positioning identifier 101B, and the icon of the positioning identifier 101B is darker than the icon of the positioning identifier 101A, where the positioning identifier 101A is used for indicating that the master device is a positioning device, and the positioning identifier 101B is used for indicating that the slave device is a positioning device. The description of the user interface 20 may be found in detail in the foregoing descriptions of fig. 3A-3B, and will not be repeated here.
Alternatively, when the positioning device is a slave device, the master device may also display the identification of the slave device, such as the device model number, the device type, the device name, and the like, on the left side of the positioning identification 101B as shown in (B) of fig. 5A.
That is, the master device may display a location identifier in the status bar and distinguish the device currently initiating the location by a change in the color, size, shape, etc. of the location identifier.
In the process that the master device determines the positioning device and obtains the position information through the positioning device, when the positioning device is a slave device, the master device may also display prompt information 202 as shown in fig. 5B in the user interface 20. The hint information 202 is used to indicate that the master device is acquiring location information for a slave device having a device name of "HUAWEI 10". Wherein the prompt 202 includes a change option 202A, the change option 202A being usable by a user to trigger an adjustment of a positioning device that initiates positioning. Thus, the user can adjust the equipment for initiating positioning according to the own requirements, and the operability of the user is improved.
It will be appreciated that when the positioning device is the master device itself, the master device may not display a prompt message to prompt the device currently initiating positioning, i.e., display the user interface 20 as shown in fig. 3B.
If the master device determines that the master device is not a positioning device in step S103, or further, after determining that the slave device is a positioning device in step S108, steps S109-S111 may be performed to obtain the position information of the slave device.
S109, when the slave equipment is the positioning equipment, the master equipment sends a positioning request to the slave equipment.
The positioning request is used for triggering the slave device to start positioning and acquiring the position information of the slave device.
In some embodiments, the location request further includes a location mode requested by the master device, because different service requests of the master device may need location information collected by different location modes, and the master device may determine the location mode according to a service corresponding to the service request. For example, when the service executed by the main device is navigation, the most suitable positioning mode of the service is GPS positioning, because accurate position information is required for navigation, the error of the position information acquired by network positioning is large, the service is not applicable, and the GPS positioning is accurate, so that the position information can be acquired by using GPS positioning, and for example, when the service executed by the main device is weather inquiring, the most suitable positioning mode of the service is network positioning, because only approximate position is required for weather inquiring, and the GPS positioning consumes more time compared with the network positioning, so that the position information can be acquired by using network positioning.
S110, starting positioning by the slave equipment, and acquiring position information of the slave equipment.
The location information of the slave device is used to indicate the location of the slave device, and since the slave device is located at a relatively short distance from the master device, the location information of the slave device may be used instead of the location information of the master device, and the master device may use the location information of the slave device when executing the service. The slave device may acquire the location information of the slave device by means of network positioning or GPS positioning. The manner of network positioning or GPS positioning can be referred to in the foregoing, and will not be described in detail herein.
S111, the slave device returns the position information of the slave device to the master device.
That is, the master device may acquire the location information transmitted from the slave device.
If the master device determines that the master device is a positioning device through step S103 or step S108, the master device may execute step S112 to obtain the location information of the master device.
And S112, when the main equipment is positioning equipment, the main equipment starts positioning and acquires the position information of the main equipment.
In some embodiments, the master device may determine a positioning manner of the master device according to a service request of the master device, and further obtain location information of the master device using the positioning manner. This is because the location information collected by different positioning methods may be required for different service requests, and the specific connection between the different services and the positioning methods may be referred to in the related description of step S108, which is not repeated here.
S113, responding to the service request, and executing the service by the main equipment according to the position information.
When the positioning device is a master device, the position information is the position information collected by the master device, and when the positioning device is a slave device, the position information is the position information collected by the slave device. Finally, the main equipment can execute corresponding service according to the position information, and normal execution of the service is ensured. Wherein, the master device performs a service according to the location information, which may mean that the master device displays information related to the location information, including text, picture, video, audio, and the like.
Illustratively, FIG. 5C illustrates a user interface that the host device involves when completing a service after obtaining location information.
As shown in fig. 5C, after the host device obtains the location information, the relevant news related to the location may be searched according to the location information indicated by the location information, and the searched news may be displayed in the news display area 201 in fig. 5C, for example, when the location of the host device is a city, the news display area 201 may display the news 1"A city air temperature warms up" and the news 2"a city is checked out" and the user may view the relevant information of the region where the user is located by browsing the news nearby the news displayed in the news display area 201, so as to learn about the interesting things. In the embodiment of the present application, the user interface shown in fig. 5C may also be referred to as a first user interface, where news information of a city where a master device or a slave device is located is displayed.
In general, the positioning method provided by the embodiment of the application is suitable for a plurality of devices, when one device needs to acquire the position information, the device can combine the positioning capability of surrounding devices to determine the device which initiates positioning finally, so as to achieve different positioning effects, for example, save the power consumption of the device, accelerate the service execution speed of the device, obtain better user experience, and the like.
For a better understanding of the present solution, a detailed procedure for obtaining location information by the master device will be described with reference to a specific flowchart shown in fig. 6.
Suppose there is scenario 1: the user opens the weather application in the bracelet, inquires about the current weather, and a large screen and a mobile phone exist around the bracelet. The positioning capabilities of the wristband, large screen and cell phone are shown in table 1:
TABLE 1
The bracelet is used as a master device, and the large screen and the mobile phone are slave devices, wherein the bracelet is required to acquire the position information acquired by network positioning currently, and inquire weather according to the position information. At this time, the bracelet may generate a service request for inquiring weather based on the operation of opening the weather application by the user, obtain the positioning capability of each device, arrange to obtain the above table 1, and then use the positioning loss as the positioning effect, and the bracelet may obtain the position information according to the following steps S201-S207, where the method includes:
S201, judging whether the main equipment belongs to power sensitive equipment.
After obtaining the service request, the master device can judge whether the master device belongs to the power sensitive device according to the device type of the master device, if so, the master device is indicated to have larger limit on power consumption at present, and is not suitable for positioning, if not, the master device is indicated to have smaller limit on power consumption at present, and even if the positioning can cause the power consumption of the master device, the master device can start positioning.
Step S203 may be performed when the master device belongs to a power sensitive device, otherwise step S202 may be performed.
In scenario 1, it can be seen from table 1 that since the bracelet belongs to a power consumption sensitive device, step S203 is performed after step S201 is performed.
It can be understood that, in addition to determining whether the master device belongs to the power sensitive device to determine whether to use the master device to start positioning, conditions such as whether the master device has positioning capability, and whether the master device has positioning capability are determined to use the master device to start positioning, which are not limited by the embodiment of the present application.
S202, acquiring the position information of the main equipment.
When the main equipment does not belong to the power sensitive equipment, the main equipment can directly start positioning to acquire the position information, so that the service execution efficiency of the main equipment is improved.
S203, ordering the positioning effects of the devices according to the positioning capability of the devices.
When the main equipment belongs to the power sensitive equipment, the main equipment can further combine the positioning capability of each equipment, and the positioning effect of each equipment is calculated by utilizing a positioning strategy. The largest value corresponding to the positioning effect, or the higher the ranking of the device with the most fitting positioning capability and preset capability.
For example, it is possible to set a larger ratio of the positioning capability with respect to the positioning loss, calculate the positioning effect of each device, or determine the device in the charged state as the device having the best positioning effect, or the like.
For a description of determining the positioning effect according to the positioning capability, reference may be made to the related description of step S108, and the description is omitted here.
In scenario 1, in the process of ordering, since the bracelet needs the location information acquired by network positioning, the bracelet can preferentially judge whether the equipment supporting network positioning exists according to the positioning mode of each equipment. It can be seen from table 1 that the large screen and the mobile phone meet the requirement, and then the positioning effects of the large screen and the mobile phone are further ordered according to the charging states of the large screen and the mobile phone, and it can be seen that the large screen is in the charging state and the mobile phone is in the uncharged state, so that the positioning effect of the large screen is higher than that of the mobile phone.
It should be noted that, when the master device ranks the positioning effects of the devices, each device may include a master device and a slave device, so that the master device may further determine the positioning device from all devices if it is determined that the master device does not satisfy the preliminary condition. Alternatively, each device herein may include only the slave device, so that the master device may directly exclude the master device and determine the positioning device among the slave devices in the case where it is determined that the master device does not satisfy the condition.
S204, judging whether a plurality of devices with the best positioning effect exist.
The master device can find out the device with the best positioning effect according to the ordering of the positioning effects of the devices, wherein the positioning effect of the device is better when the ranking is higher. Wherein steps S205-S206 may be performed when there are a plurality of devices with the best positioning effect at the same time, and step S207 may be performed when there is only one device with the best positioning effect.
In the scene 1, the positioning effects of the large screen are best only as can be seen by sequencing according to the positioning capabilities of the bracelet, the large screen and the mobile phone.
S205, acquiring the position information of the devices with the best positioning effect.
The master device may send a positioning request to the devices with the best positioning effects at the same time, to request to acquire the position information acquired by the devices with the best positioning effects.
S206, further processing the plurality of position information to obtain final position information.
The master device may find the most accurate or most accurate location information from the acquired plurality of location information as final location information. For example, the position information having the highest frequency of occurrence is found out from the plurality of position information as the final position information. Alternatively, the master device may randomly select one location information from the plurality of location information as the final location information. The embodiment of the present application does not limit the process.
S207, acquiring the position information of the equipment with the best positioning effect.
That is, when there is only one device with the best positioning effect, the master device may directly acquire the position information acquired after the device starts positioning.
In the scene 1, the bracelet can acquire position information acquired by the large screen, finally, the bracelet can acquire weather according to the position information, and the queried weather condition is displayed in the display screen through weather application.
As can be seen from steps S201 to S207, the master device may dynamically adjust the device that initiates positioning according to the positioning capability of each device, so as to ensure that the best positioning effect is obtained.
It should be noted that the above steps S201 to S207 are only one specific example listed for the sake of understanding the present solution, and do not constitute limitation of the embodiments of the present application, and the embodiments of the present application mainly surround the idea of selecting a device from which positioning is finally completed according to the positioning capabilities of a plurality of devices, and thus other solutions developed around the idea fall within the scope of the embodiments of the present application.
Fig. 7 shows a hardware configuration diagram of the electronic device 100.
The electronic device 100 may be a cell phone, tablet, desktop, laptop, handheld, notebook, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook, as well as a cellular telephone, personal digital assistant (personal digital assistant, PDA), augmented reality (augmented reality, AR) device, virtual Reality (VR) device, artificial intelligence (artificial intelligence, AI) device, wearable device, vehicle-mounted device, smart home device, and/or smart city device, with embodiments of the application not being particularly limited as to the particular type of electronic device.
In the embodiment of the present application, the electronic device 100 may also refer to the above-mentioned main device.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may be configured to determine a device that initiates positioning based on the positioning capabilities of each device, and in addition, the processor 110 may be configured to perform services based on location information of the electronic device 100 or other devices, and so on.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, demodulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, the mobile communication module 150 or the wireless communication module 160 may be configured to send a capability negotiation request to other devices, receive a positioning capability sent by other devices, send a positioning request to other devices, receive location information sent by other devices, and the like, and in addition, the mobile communication module 150 or the wireless communication module 160 may be configured to complete positioning and obtain location information of the electronic device 100.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD). The display panel may also be manufactured using organic light-emitting diode (OLED), active-matrix organic light-emitting diode (AMOLED) or active-matrix organic light-emitting diode (active-matrix organic light emitting diode), flexible light-emitting diode (FLED), mini, micro-OLED, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device may include 1 or N display screens 194, N being a positive integer greater than 1.
In some embodiments, the display 194 may be used to display some user interfaces related to the electronic device 100 performing business or controlling co-location functions, particularly with reference to the user interfaces and related descriptions shown in fig. 3A-3B, 4A-4B, and 5A-5C.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also perform algorithm optimization on noise and brightness of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The internal memory 121 may include one or more random access memories (random access memory, RAM) and one or more non-volatile memories (NVM).
The random access memory may include a static random-access memory (SRAM), a dynamic random-access memory (dynamic random access memory, DRAM), a synchronous dynamic random-access memory (synchronous dynamic random access memory, SDRAM), a double data rate synchronous dynamic random-access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, such as fifth generation DDR SDRAM is commonly referred to as DDR5 SDRAM), etc.; the nonvolatile memory may include a disk storage device, a flash memory (flash memory).
The FLASH memory may include NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. divided according to an operation principle, may include single-level memory cells (SLC), multi-level memory cells (MLC), triple-level memory cells (TLC), quad-level memory cells (QLC), etc. divided according to a storage specification, may include universal FLASH memory (english: universal FLASH storage, UFS), embedded multimedia memory cards (embedded multi media Card, eMMC), etc. divided according to a storage specification.
The random access memory may be read directly from and written to by the processor 110, may be used to store executable programs (e.g., machine instructions) for an operating system or other on-the-fly programs, may also be used to store data for users and applications, and the like.
The nonvolatile memory may store executable programs, store data of users and applications, and the like, and may be loaded into the random access memory in advance for the processor 110 to directly read and write.
The external memory interface 120 may be used to connect external non-volatile memory to enable expansion of the memory capabilities of the electronic device 100. The external nonvolatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and video are stored in an external nonvolatile memory.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 180F to achieve quick focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object in the vicinity of the electronic device 100. The electronic device 100 can detect that the user holds the electronic device 100 close to the ear by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The temperature sensor 180J is for detecting temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to avoid the low temperature causing the electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 180M, so as to implement a heart rate detection function.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, i.e.: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
The electronic device may be a portable terminal device such as a mobile phone, a tablet computer, a wearable device, etc. on which iOS, android, microsoft or other operating systems are mounted, or may be a non-portable terminal device such as a Laptop computer (Laptop) having a touch-sensitive surface or touch panel, a desktop computer having a touch-sensitive surface or touch panel, etc. The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
Fig. 8 is a schematic software structure of the electronic device 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the mobile operating system is divided into four layers, from top to bottom, an application layer, a program framework layer/core services layer, an underlying library and runtime, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 8, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The program framework layer provides an application programming interface (application programming interface, API) and programming framework for the application programs of the application layer. The program framework layer includes a number of predefined functions.
As shown in fig. 8, the program framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is for providing communication functions of the electronic device. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
The runtime may refer to all code libraries, frameworks, etc. that are needed by the program to run. For example, for the C language, the runtime includes a series of libraries of functions that are required for the C program to run. For the Java language, the runtime includes virtual machines and the like required for running Java programs, in addition to core libraries. The core library may include function functions that the Java language needs to call.
The underlying library may comprise a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The workflow of the electronic device software and hardware is illustrated below in connection with capturing a photo scene.
When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into the original input event (including information such as touch coordinates, time stamp of touch operation, etc.). The original input event is stored at the kernel layer. The application framework layer acquires an original input event from the kernel layer, and identifies a control corresponding to the input event. Taking the touch operation as a touch click operation, taking a control corresponding to the click operation as an example of a control of a camera application icon, the camera application calls an interface of an application framework layer, starts the camera application, further starts a camera driver by calling a kernel layer, and captures a still image or video by the camera 193.
Fig. 9 shows a schematic structural diagram of a positioning device according to an embodiment of the present application.
As shown in fig. 9, the positioning device may include: capability negotiation module 001, processing module 002, positioning module 003, and service execution module 004.
The capability negotiation module 001 may be configured to send a request for acquiring positioning capability to each electronic device, and acquire and store the positioning capability of each electronic device. Wherein the positioning capability may include, but is not limited to: power, state of charge, positioning mode, positioning overhead, load conditions, device type, etc.
The processing module 002 may be configured to prioritize the positioning effects of each electronic device according to the positioning capability and the positioning policy of each electronic device, determine the electronic device with the best positioning effect according to the priority, and determine the electronic device with the best positioning effect as the device that needs to perform positioning.
The positioning module 003 can be used for controlling a device to be positioned, starting positioning, and acquiring position information of the device, wherein the position information is used for indicating the position of the device.
The service execution module 004 may be configured to execute a service of the electronic device according to the location information acquired by the positioning module 003, for example, determining weather according to a location where the device is located, acquiring news in the vicinity according to the location where the device is located, navigating according to the location where the device is located, and so on.
It should be noted that the functions related to the capability negotiation module 001 and the positioning module 003 in the positioning device may be implemented by the mobile communication module 150 or the wireless communication module 160 of the electronic device 100, and the functions related to the processing module 002 and the service execution module 004 may be implemented by the processor 110 of the electronic device 100, which is not mentioned in the positioning device, as described above.
The embodiments of the present application may be arbitrarily combined to achieve different technical effects.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.
In summary, the foregoing description is only exemplary embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention should be included in the protection scope of the present invention.

Claims (17)

1. A method of positioning, the method comprising:
the first equipment acquires positioning capability;
the method comprises the steps that under the condition that the positioning capability of first equipment meets a first condition, the first equipment obtains position information of the first equipment, and/or under the condition that the positioning capability of second equipment meets a second condition, the first equipment obtains position information of the second equipment;
The first device executes a first service based on the location information, wherein the location information is the location information of the first device and/or the location information of the second device.
2. The method of claim 1, wherein the first condition and the second condition are the same or different.
3. Method according to claim 1 or 2, characterized in that the first device obtains location information of the first device in case the location capability of the first device fulfils a first condition and/or the second device in case the location capability of the second device fulfils a second condition, in particular comprising:
the first equipment acquires position information of the first equipment under the condition that the positioning capability of the first equipment meets the first condition and the positioning capability of the second equipment does not meet the second condition;
and under the condition that the positioning capability of the first equipment does not meet the first condition and the positioning capability of the second equipment meets the second condition, the first equipment acquires the position information of the second equipment.
4. A method according to any of claims 1-3, wherein the distance of the first device and the second device is smaller than a first value.
5. The method according to any one of claims 1-4, further comprising:
the first device detects a first operation, where the first operation is used to trigger execution of the first service.
6. The method according to any of claims 1-5, wherein the first device performs a first service based on the location information, specifically comprising:
the first device displays a first user interface having information related to the location information displayed thereon.
7. The method according to any one of claims 1-6, further comprising:
the first device displays a second user interface, and the second user interface displays a first control;
the first device detects a second operation acting on the first control, wherein the second operation is used for triggering acquisition of the positioning capability and executing the first service.
8. The method according to any one of claims 1-7, further comprising:
the first device sends a capability negotiation request to the second device, where the capability negotiation request is used to request to obtain a positioning capability of the second device.
9. The method of any of claims 1-8, wherein prior to the first device acquiring the location capabilities of the first device and the second device, the method further comprises:
the first device discovers the second device through one or more wireless communication technologies of Bluetooth, wi-Fi and NFC.
10. The method of any one of claims 1-9, wherein the positioning capability comprises one or more of: the method comprises the following steps of electric quantity, a charging state, a positioning mode, positioning overhead, a load condition, a device type, an opening state of a positioning function, a screen-off state, a positioning state, a distance and a network identifier.
11. The method of claim 10, wherein the positioning means comprises: network positioning and GPS positioning, the device types include: power sensitive and non-power sensitive.
12. The method according to any of claims 1-11, wherein the satisfaction of the first condition by the positioning capability of the first device comprises in particular: the positioning capability of the first device is higher than the second value and/or the positioning capability of the first device matches a preset positioning capability.
13. The method of any one of claims 1-12, wherein the second device comprises one or more devices.
14. The method according to any of claims 1-13, wherein in case the location information comprises location information collected by a plurality of devices, the first device performs a first service based on the location information, comprising in particular:
the first equipment processes the position information acquired by the plurality of equipment to obtain processed position information;
the first device performs the first service based on the processed location information.
15. An electronic device comprising a memory, one or more processors, and one or more programs; the one or more processors, when executing the one or more programs, cause the electronic device to implement the method of any of claims 1-14.
16. A computer readable storage medium comprising instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of claims 1 to 14.
17. A computer program product, characterized in that the computer program product, when run on a computer, causes the computer to perform the method of any of claims 1 to 14.
CN202210157215.9A 2022-02-21 2022-02-21 Positioning method, user interface and electronic equipment Pending CN116668997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210157215.9A CN116668997A (en) 2022-02-21 2022-02-21 Positioning method, user interface and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210157215.9A CN116668997A (en) 2022-02-21 2022-02-21 Positioning method, user interface and electronic equipment

Publications (1)

Publication Number Publication Date
CN116668997A true CN116668997A (en) 2023-08-29

Family

ID=87712348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210157215.9A Pending CN116668997A (en) 2022-02-21 2022-02-21 Positioning method, user interface and electronic equipment

Country Status (1)

Country Link
CN (1) CN116668997A (en)

Similar Documents

Publication Publication Date Title
CN110910872B (en) Voice interaction method and device
CN114397980B (en) Application display method and electronic equipment
CN112397062B (en) Voice interaction method, device, terminal and storage medium
WO2020000448A1 (en) Flexible screen display method and terminal
CN112947947B (en) Download method, distribution method, terminal equipment, server and system of installation package
CN116360725B (en) Display interaction system, display method and device
CN113553130B (en) Method for executing drawing operation by application and electronic equipment
CN111371849A (en) Data processing method and electronic equipment
CN116070035B (en) Data processing method and electronic equipment
CN115333941B (en) Method for acquiring application running condition and related equipment
CN114765768B (en) Network selection method and device
CN116668997A (en) Positioning method, user interface and electronic equipment
CN115706753B (en) Application management method and device, electronic equipment and storage medium
CN117009023B (en) Method for displaying notification information and related device
CN114817521B (en) Searching method and electronic equipment
CN117707562B (en) Parameter updating method and terminal equipment
CN116795476B (en) Wallpaper deleting method and electronic equipment
CN116541102B (en) File preloading method and device, electronic equipment and readable storage medium
CN114996078B (en) Method and device for compiling control of dex file
CN117850896A (en) Preloading method, electronic equipment, chip and readable storage medium
CN118646821A (en) Card display method and electronic equipment
CN116819434A (en) Distance measurement method and electronic equipment
CN117687814A (en) Exception handling method, system and storage medium
CN117177216A (en) Information interaction method and device and electronic equipment
CN118054851A (en) Equipment networking method and electronic equipment

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