Positioning technology selection method, circuit, apparatus, electronic device, and storage medium

By integrating sensors into wearable devices to obtain carbon dioxide concentration, identify indoor or outdoor scenarios, and select appropriate positioning technologies, the problem of existing positioning technologies being unable to flexibly switch between different scenarios is solved, resulting in more accurate positioning results and a better user experience.

CN122330809APending Publication Date: 2026-07-03GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGDONG XIAOTIANCAI TECH CO LTD
Filing Date
2025-01-03
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

Existing positioning technologies cannot be flexibly switched or combined in different scenarios, which increases the complexity of smart terminals in selection and application, and makes it impossible to achieve accurate location determination.

Method used

By integrating sensors into wearable devices, the concentration of target gases in the air, especially carbon dioxide, can be obtained. Based on the concentration difference, indoor or outdoor scenes can be identified, and appropriate positioning technologies, such as GPS, Wi-Fi, and Bluetooth beacons, can be intelligently selected to achieve scene-adaptive positioning technology switching.

Benefits of technology

It improves the accuracy of positioning results, avoids the limitations of a single technology in unsuitable scenarios, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122330809A_ABST
    Figure CN122330809A_ABST
Patent Text Reader

Abstract

This application proposes a positioning technology selection method, circuit, device, electronic device, and storage medium for wearable devices. The wearable device integrates sensors, including: acquiring the concentration of a target gas in the air; obtaining scene information of the wearable device based on the target gas concentration; and selecting a preset positioning technology corresponding to the scene information, where the scene information indicates whether the wearable device is indoors or outdoors. By intelligently identifying the scene of the wearable device—indoors or outdoors—and automatically switching to the most suitable positioning technology, the accuracy of the positioning results is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of positioning technology, and in particular to positioning technology selection methods, circuits, devices, electronic devices, and storage media. Background Technology

[0002] With the rapid development of positioning technology, existing technologies can now achieve relatively accurate location determination. The main existing positioning technologies include Global Positioning System (GPS), Radio Frequency Identification (RFID), Wi-Fi, Bluetooth Beacon, and Ultra-Wideband (UWB). Each technology has its unique application scenarios and technical characteristics, but no single technology is suitable for all scenarios, which brings complexity to the selection and application of smart terminals. How to flexibly select positioning technology based on scenario information is a problem that urgently needs to be solved. Summary of the Invention

[0003] This application provides a positioning technology selection method, circuit, device, electronic device, and storage medium, which can select a suitable positioning technology based on the gas concentration in the air, thereby making the positioning more accurate.

[0004] The first aspect of this application provides a positioning technology selection method applied to a wearable device, wherein the wearable device integrates sensors, including:

[0005] The concentration of the target gas in the air is obtained through the sensor;

[0006] The scene information of the wearable device is obtained based on the target gas concentration;

[0007] Based on the scene information, a preset positioning technology corresponding to the scene information of the wearable device is selected, wherein the scene information is used to indicate whether the wearable device is indoors or outdoors.

[0008] In some possible embodiments, the positioning technology includes: indoor positioning technology, outdoor positioning technology, and the step of obtaining scene information of the wearable device based on the target gas concentration, and selecting a preset positioning technology corresponding to the scene information of the wearable device based on the scene information, includes:

[0009] The concentration of the target gas is compared with the magnitude of a first preset concentration threshold and a second preset concentration threshold, wherein the first preset concentration threshold is greater than the second preset concentration threshold;

[0010] If the target gas concentration is greater than or equal to the first preset concentration threshold, the indoor positioning technology is selected, wherein the target gas concentration being greater than the preset concentration threshold indicates that the wearable device is indoors;

[0011] If the target gas concentration is less than or equal to the second preset concentration threshold, the outdoor positioning technology is selected, wherein the target gas concentration being less than the preset concentration threshold indicates that the wearable device is outdoors.

[0012] In some possible embodiments, the positioning technology includes: indoor positioning technology, outdoor positioning technology, and the step of obtaining scene information of the wearable device based on the target gas concentration, and selecting a preset positioning technology corresponding to the scene information of the wearable device based on the scene information, further includes:

[0013] When the target gas concentration is between the first preset concentration threshold and the second preset concentration threshold, the rate of change of the target gas concentration within a preset time period is calculated. The rate of change is the average change of the change difference within the preset time period. The change difference is the difference between the target gas concentration at the start time within the preset time period and the target gas concentration at the end time within the preset time period.

[0014] If the rate of change of the target gas concentration indicates that the target gas concentration is increasing, and the rate of change is greater than the preset concentration change rate threshold, the indoor positioning technology is selected, wherein the increase in the target gas concentration and the rate of change being greater than the preset concentration change rate threshold indicates that the wearable device is indoors;

[0015] If the target gas concentration decreases and the rate of change is greater than the preset concentration change rate threshold, the outdoor positioning technology is selected, wherein the rate of change of the target gas concentration being less than the preset concentration change rate threshold indicates that the wearable device is outdoors.

[0016] In some possible embodiments, the positioning technology includes: indoor positioning technology, outdoor positioning technology, and the step of obtaining scene information of the wearable device based on the target gas concentration, and selecting a preset positioning technology corresponding to the scene information of the wearable device based on the scene information, further includes:

[0017] If the concentration of the target gas is less than a third preset concentration threshold, the outdoor positioning technology is selected, wherein the third preset concentration threshold is less than the second preset concentration threshold;

[0018] If the concentration of the target gas is greater than the third preset threshold, the location is re-established.

[0019] In some possible embodiments, the positioning technology includes: indoor positioning technology, outdoor positioning technology, and the step of obtaining scene information of the wearable device based on the target gas concentration, and selecting a preset positioning technology corresponding to the scene information of the wearable device based on the scene information, includes:

[0020] Calculate the rate of change of the target gas concentration within a preset time period according to a preset cycle;

[0021] Calculate the rate of change of the target gas concentration within a preset time period. The rate of change is the average change of the change difference within the preset time period. The change difference is the difference between the target gas concentration at the start time and the target gas concentration at the end time within the preset time period.

[0022] If the rate of change of the target gas concentration indicates that the target gas concentration is increasing, and the rate of change is greater than the preset concentration change rate threshold, the indoor positioning technology is selected, wherein the increase in the target gas concentration and the rate of change being greater than the preset concentration change rate threshold indicates that the wearable device is indoors;

[0023] If the target gas concentration decreases and the rate of change is greater than the preset concentration change rate threshold, the outdoor positioning technology is selected, wherein the rate of change of the target gas concentration being less than the preset concentration change rate threshold indicates that the wearable device is outdoors.

[0024] In some possible embodiments, the sensor further includes a temperature and humidity sensor, wherein obtaining the concentration of the target gas in the air via the sensor includes:

[0025] The temperature and humidity in the air are detected by the temperature and humidity sensor.

[0026] Based on the influence of air temperature and humidity on the temperature of the air mixture, the temperature is compensated using a pre-set compensation algorithm;

[0027] The thermal conductivity of the mixed gas after compensation at the temperature is obtained from the thermal conductivity gas sensor;

[0028] The target gas concentration is obtained by using the thermal conductivity corresponding to the temperature after the mixed gas is compensated.

[0029] In some possible embodiments, the volume of the gas test chamber of the sensor is preset, the sensor being a thermally conductive gas sensor, and the acquisition of the target gas concentration in the air through the sensor includes:

[0030] The thermal conductivity of the mixed gas in the air is obtained based on the temperature detected by the thermal conductivity gas sensor.

[0031] The mole fraction of the target gas is obtained by M = (λ1-λ3) / (λ2-λ3), where the mole fraction of the target gas is the volume percentage of the target gas, λ1 is the thermal conductivity of the mixed gas, λ2 is the pre-set thermal conductivity of the target gas, and λ3 is the pre-set thermal conductivity of the air.

[0032] The volume of the target gas is obtained by multiplying the volume percentage of the target gas by the volume of the gas testing chamber.

[0033] The mass of the target gas is obtained by multiplying the volume of the target gas by the pre-set density of the target gas.

[0034] The amount of the target gas is obtained based on the mass of the target gas and the pre-set molar mass of the target gas;

[0035] The concentration of the target gas is obtained by dividing the amount of the target gas substance by the volume of the target gas.

[0036] In some possible embodiments, the sensor is a thermally conductive gas sensor, and the temperature value of the thermally conductive gas sensor is preset. The step of obtaining the concentration of the target gas in the air through the sensor includes:

[0037] The concentration of the target gas is obtained by C = a × ΔT + b;

[0038] Wherein, C is the concentration of the target gas, ΔT is the temperature change of the heat conduction gas sensor, the temperature change is the difference between the current temperature and the preset temperature value of the heat conduction gas sensor, and a and b are preset values.

[0039] A second aspect of this application provides a positioning technology selection circuit for use in wearable devices, comprising:

[0040] Host computer;

[0041] The sensor is connected to the host computer;

[0042] A power supply is provided to power the host computer and the sensors.

[0043] The host computer is used to receive data from the sensor, process and analyze the data, obtain scene information of the wearable device, and select a positioning technology corresponding to the scene information.

[0044] A third aspect of this application provides a positioning technology selection device for wearable devices, wherein the wearable device integrates sensors, including:

[0045] The acquisition module is used to acquire the concentration of the target gas in the air through the sensor;

[0046] The selection module is used to obtain scene information of the wearable device based on the target gas concentration, and select a preset positioning technology corresponding to the scene information of the wearable device based on the scene information. The scene information is used to indicate whether the wearable device is indoors or outdoors.

[0047] A fourth aspect of this application provides an electronic device comprising:

[0048] processor;

[0049] Memory used to store the processor's executable instructions;

[0050] The processor is configured to execute the instructions to implement a positioning technology selection method as described in any one of the embodiments of the first aspect of this application.

[0051] A fifth aspect of this application provides a storage medium that, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform a positioning technology selection method as described in any one of the first aspects of this application.

[0052] The technical solutions provided in this application have at least the following beneficial effects:

[0053] This application provides a positioning technology selection method applied to wearable devices. The wearable device integrates sensors to acquire the concentration of a target gas in the air and obtains scene information based on this concentration. Then, it selects a preset positioning technology corresponding to the scene information. This method can intelligently identify the scene in which the wearable device is located: indoors or outdoors, and automatically switch to the most suitable positioning technology. Different positioning technologies perform differently in specific environments; precise matching avoids the limitations of a single technology in unsuitable scenarios, thereby improving the accuracy of positioning results and further enhancing the user experience. Attached Figure Description

[0054] Figure 1 This is a schematic diagram illustrating an application scenario of a positioning technology selection method proposed in an embodiment of this application;

[0055] Figure 2 This is a flowchart illustrating a positioning technology selection method proposed in an embodiment of this application;

[0056] Figure 3 This is a flowchart illustrating a positioning technology selection method proposed in an embodiment of this application;

[0057] Figure 4 This is a flowchart illustrating a positioning technology selection method proposed in an embodiment of this application;

[0058] Figure 5 This is a flowchart illustrating a positioning technology selection method proposed in an embodiment of this application;

[0059] Figure 6 This is a flowchart illustrating a positioning technology selection method proposed in an embodiment of this application;

[0060] Figure 7 This is a flowchart illustrating a positioning technology selection method proposed in an embodiment of this application;

[0061] Figure 8 This is a schematic diagram of the circuit for obtaining gas concentration in a positioning technology selection method proposed in an embodiment of this application;

[0062] Figure 9 This is a schematic diagram of the structure of a positioning technology selection device proposed in an embodiment of this application;

[0063] Figure 10 This is a schematic diagram of a positioning technology selection device proposed in an embodiment of this application. Detailed Implementation

[0064] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0065] To facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with essentially the same function and effect. For example, "first instruction" and "second instruction" are used to distinguish different user instructions and do not limit their order. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.

[0066] It should be noted that in the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0067] Furthermore, "at least one" refers to one or more, while "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b, and c, where a, b, and c can be single or multiple.

[0068] It should be noted that, in the embodiments of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0069] With the rapid development of positioning technology, we have been able to achieve relatively accurate location determination. The main existing positioning technologies include GPS, RFID, Wi-Fi positioning, Bluetooth Beacons, and UWB technology, each with its unique application scenarios and technical characteristics. However, no single technology is suitable for all scenarios, which brings complexity to the selection and application of smart terminals. For example, GPS provides high-precision location information in outdoor environments, especially suitable for open areas, but its signal is severely attenuated or even lost in urban canyons with tall buildings, indoor or underground environments; RFID tags are inexpensive and have fast reading speeds, but their range is limited, and they are usually used for precise positioning at close range; Wi-Fi positioning utilizes existing infrastructure and can provide good positioning results in indoor environments, but it relies on pre-built map databases and is easily affected by environmental changes; Bluetooth beacons are low-power and easy to integrate into mobile applications, but their effective coverage is relatively small; UWB is known for its extremely high temporal resolution and resistance to multipath effects, achieving centimeter-level high-precision positioning, but its current adoption rate is low and the equipment cost is high. To meet the positioning needs in different scenarios, it is necessary to develop a method that can flexibly switch or combine multiple positioning technologies based on specific scenario information.

[0070] In view of the above challenges, this application proposes a positioning technology selection method, specifically designed for wearable devices integrating multiple sensors. This method uses a built-in gas sensor to obtain the concentration of a target gas in the air, such as carbon dioxide (CO2), as one of the criteria for judgment. Since CO2 concentrations in indoor and outdoor environments typically differ significantly—indoor CO2 concentrations are often higher than 600 ppm, especially in areas with frequent crowds; while outdoor CO2 concentrations are generally maintained between 350 and 500 ppm due to free air circulation—this method can effectively infer whether the wearable device is currently in an indoor or outdoor environment based on CO2 concentration. Once the scene information is determined, i.e., whether the user is indoors or outdoors, the most suitable preset positioning technology for that scene can be intelligently selected. For example, when the environment is confirmed to be outdoor, GPS may be prioritized for accurate positioning because GPS provides high-precision location services in open areas. Conversely, when a high CO2 concentration is detected and the environment is determined to be indoors, a more suitable indoor positioning technology such as Wi-Fi or Bluetooth beacons can be switched, as these technologies can provide more accurate location data in enclosed spaces.

[0071] For example, Figure 1This illustration shows an application scenario of the positioning technology selection method proposed in this application, which includes a wearable device 101. As shown, the wearable device 101 measures a gas concentration (e.g., CO2 concentration) and compares it with a preset concentration threshold to determine whether the wearable device is in an indoor or outdoor environment. The wearable device may be a smartwatch, health tracker, smart glasses, or any other portable electronic device with a built-in gas sensor and the ability to process environmental data. These devices are typically also equipped with other types of sensors, such as light sensors, temperature sensors, and humidity sensors, to assist in determining environmental conditions.

[0072] Indoor settings may include living rooms, bedrooms, or kitchens in family homes; office spaces such as meeting rooms, open-plan offices, or private offices; public spaces in commercial buildings such as shopping malls, supermarkets, cinemas, and restaurants; hospital wards and clinic waiting areas in medical institutions; and learning environments such as classrooms, libraries, and laboratories in educational institutions. In these environments, due to limited air circulation, the concentration of carbon dioxide produced by human activities is often high, typically exceeding 600 ppm, and increases with population density.

[0073] Conversely, outdoor scenarios may include pedestrian walkways, plazas, parks, and other densely populated but open spaces in urban streets; natural environments such as forest trails, beaches, and mountains away from buildings; outdoor training areas outside sports venues like stadiums, playgrounds, and gyms; transportation hubs such as bus stops, subway entrances, and train platforms near public transportation; and non-densely populated areas such as the areas surrounding factories, farmland, and pastures in industrial or agricultural zones. In outdoor environments, due to free air circulation, carbon dioxide concentrations are generally lower, around 350 to 500 ppm, unless under specific conditions (such as urban roads with high vehicle exhaust emissions).

[0074] By making such distinctions, the wearable device 101 can more accurately identify its specific scene and select the most suitable positioning technology accordingly.

[0075] The following explains in detail the execution flow of the positioning technology selection method proposed in the embodiments of this application.

[0076] For example, such as Figure 2 As shown, this method is applied to wearable devices, which integrate sensors. The execution steps are as follows:

[0077] Step 201: Obtain the concentration of the target gas in the air using the sensor;

[0078] For example, the sensor can be a thermally conductive gas sensor. A thermally conductive gas sensor is a widely used device for detecting and measuring the concentration of various components in a gas mixture. Its working principle is based on the fact that different gases have different thermal conductivities, meaning they have varying abilities to transfer heat. When an electric current passes through a heating element, it dissipates heat and raises the ambient temperature; if different types of gases are present in the environment, the temperature distribution around the heating element will change due to their different thermal conductivities. This change can be captured by a precise temperature measurement circuit and converted into an electrical signal output.

[0079] For example, a heat conduction gas sensor should output a zero value in the absence of CO2. However, due to sensor drift and environmental factors, actual measurements may show a non-zero output in the absence of CO2, necessitating zero-point calibration. The purpose of zero-point calibration is to determine the sensor's accurate output in the absence of CO2 so that this baseline value can be subtracted in subsequent measurements, thereby improving measurement accuracy.

[0080] In the embodiments of this application, two methods can be used to obtain the concentration of the target gas in the air.

[0081] For example, the calculation steps of the first method are as follows: Figure 3 As shown, the volume of the gas test chamber of the sensor is preset. The sensor is a thermally conductive gas sensor. The step of obtaining the concentration of the target gas in the air through the sensor includes:

[0082] Step 301: Obtain the thermal conductivity of the mixed gas in the air based on the temperature detected by the thermal conductivity gas sensor;

[0083] For example, different gases have different thermal conductivities, and when the concentration of CO2 in a gas mixture changes, the thermal conductivity of the mixture also changes. A thermal conductivity gas sensor contains a heating element and a temperature sensor. The heating element heats the gas, and the transfer of heat within the gas depends on its thermal conductivity. When the CO2 concentration changes, the thermal conductivity of the gas mixture changes, resulting in different temperature changes detected by the temperature sensor. The CO2 concentration is inferred by measuring this temperature change.

[0084] The following explains in detail how to further calculate the CO2 concentration using thermal conductivity.

[0085] Step 302: Obtain the mole fraction of the target gas using M = (λ1-λ3) / (λ2-λ3);

[0086] The mole fraction of the target gas is the volume percentage of the target gas, where λ1 is the thermal conductivity of the mixed gas, λ2 is the pre-set thermal conductivity of the target gas, and λ3 is the pre-set thermal conductivity of the air.

[0087] For example, in the embodiments of this application, the mixed gas is a binary gas, air and CO2, that is, λ2 is the preset thermal conductivity of CO2 and λ3 is the preset thermal conductivity of air; at normal temperature and pressure (usually referring to a temperature of 20 degrees Celsius or 68 degrees Fahrenheit and a pressure of 101.325 kPa), the thermal conductivity of CO2 λ2 = 0.0146 W / (m·K) and the thermal conductivity of air λ3 = 0.0257 W / (m·K).

[0088] For example, assuming the thermal conductivity of the obtained mixed gas sample is λ1 = 0.023 W / (m·K), the mole fraction of CO2 in the mixed gas can be calculated using the above formula:

[0089] Substituting the known values ​​into the formula M=(λ1-λ3) / (λ2-λ3), we get M=(0.023-0.0257) / (0.0146-0.0257)=-0.0027 / (-0.0111)≈0.2432.

[0090] Therefore, in this example, the mole fraction of CO2 is approximately 0.2432, or 24.32%.

[0091] Step 303: Obtain the volume of the target gas by calculating the product of the volume ratio of the target gas and the volume of the gas testing chamber;

[0092] For example, if the volume of the gas test chamber of the sensor is preset to L, then the volume of the target gas is 0.2432L.

[0093] Step 304: Obtain the mass of the target gas;

[0094] The mass of the target gas is obtained by multiplying the volume of the target gas by the pre-set density of the target gas.

[0095] For example, the mass m = ρ CO2 V CO2 The mass of the target gas is equal to its volume of 0.2432 L multiplied by the density of CO2, which is 1.976 kg / m³. 3 (Normal temperature and pressure).

[0096] Step 305: Obtain the amount of the target gaseous substance;

[0097] The amount of substance n of the target gas is obtained based on the mass m of the target gas and the pre-set molar mass M1 of the target gas.

[0098] For example, using the formula n = m CO2 / M1 CO2 The amount n of the target gaseous substance is obtained.

[0099] Step 306: Obtain the concentration of the target gas by dividing the amount of the target gas substance by the volume of the target gas.

[0100] For example, the target gas concentration is obtained by C = n / V.

[0101] For example, the target gas concentration can also be obtained through a second method. The temperature value of a thermally conductive gas sensor is preset, and the acquisition of the target gas concentration in the air through the sensor includes:

[0102] The concentration of the target gas is obtained by C = a × ΔT + b;

[0103] Wherein, C is the concentration of the target gas, ΔT is the temperature change of the heat conduction gas sensor, the temperature change is the difference between the current temperature and the preset temperature value of the heat conduction gas sensor, and a and b are preset values.

[0104] For example, to convert temperature difference into CO2 concentration, a calibration curve needs to be established. This is typically achieved by measuring the sensor output signal (i.e., the temperature difference) at a known CO2 concentration. The calibration curve can be represented by a linear or nonlinear equation, such as: C = a × ΔT + b, where C is the CO2 concentration, ΔT is the temperature change of the heating element, and a and b are coefficients determined through calibration. The CO2 concentration is obtained by the temperature difference detected by the sensor through thermal conduction.

[0105] The following details how a and b were obtained through experiments:

[0106] For example, the sensor includes a reference channel and a measurement channel. Both channels are heated for a preset time. The reference channel is exposed to ambient air, while the measurement channel is exposed to the air sample being measured. By measuring the temperature difference between the two channels, the sensor can determine the concentration of CO2 in the air. The change in thermal conductivity is proportional to the CO2 concentration. The values ​​of a and b are calculated from a large amount of temperature difference and concentration data.

[0107] For example, the sensor can be pre-set with a baseline CO2 concentration. The change in CO2 concentration is obtained by detecting the temperature difference caused by the change in thermal conductivity due to the change in CO2 concentration. The final CO2 concentration is the sum of the baseline CO2 concentration and the change in CO2 concentration. a and b are ultimately calculated through numerous experiments.

[0108] As can be seen from the two methods above, the temperature of the heat conduction gas sensor has a significant impact on its thermal conductivity, which affects the subsequent calculation of CO2 concentration. In order to avoid this situation, corresponding measures should be taken to compensate for the temperature.

[0109] For example, this application embodiment also includes a temperature and humidity sensor. Since the performance of the thermally conductive gas sensor is significantly affected by temperature because the thermal conductivity of a gas is temperature-dependent, the sensor output may change even if the CO2 concentration in the air remains constant when the ambient temperature changes. Therefore, temperature compensation is necessary. Humidity also affects the thermally conductive gas sensor because the presence of water vapor alters the gas's thermal conductivity. The sensor output may also change even if the CO2 concentration in the air remains constant when the ambient humidity changes. The step of obtaining the target gas concentration in the air using the sensor is as follows: Figure 4 As shown, the steps include:

[0110] Step 401: Detect the temperature and humidity in the air using the temperature and humidity sensor;

[0111] For example, the raw temperature (T0) and relative humidity (RH) are obtained by detecting the temperature and humidity in the air using the temperature and humidity sensor.

[0112] Step 402: Based on the influence of air temperature and humidity on the temperature of the air-mixed gas, compensate the temperature using a pre-set compensation algorithm;

[0113] The following section discusses in detail how to compensate for the temperature.

[0114] For example, define reference conditions by selecting a fixed reference temperature (T_ref), typically 20 degrees Celsius, and setting a reference humidity (RH_ref), which can be 0% (dry air) or some fixed value.

[0115] The impact of humidity on temperature perception is calculated based on the difference between actual humidity and reference humidity. The formula for calculating the humidity correction factor (K_Humidity) is as follows:

[0116] K_Humidity=a×(RH-RH_ref);

[0117] Where 'a' is an empirical constant that depends on the type of sensor used and the gas composition, and is generally between 0.005 and 0.01.

[0118] Considering the nonlinear effects of temperature, polynomial fitting or other methods are used to estimate the temperature deviation. The temperature correction factor (K_Temperature) can be calculated using a linear approximation with the following formula:

[0119] K_Temperature=b×(T0-T_ref);

[0120] Here, b is another empirical constant, which also depends on the specific sensing technology and environmental characteristics.

[0121] The temperature after comprehensive correction (T_Compensated): Combining the above two correction terms, we obtain the final compensated temperature:

[0122] T_Compensated=T0+K_Humidity+K_Temperature;

[0123] Step 403: Obtain the thermal conductivity corresponding to the temperature of the mixed gas after compensation based on the thermal conductivity gas sensor;

[0124] Step 404: Obtain the target gas concentration by using the thermal conductivity corresponding to the temperature after the mixed gas is compensated.

[0125] The methods described above for obtaining the target gas concentration at the compensated temperature of the mixed gas have been described in detail above and will not be repeated here.

[0126] By following the four steps described above, we can effectively reduce the impact of temperature and humidity on gas thermal conductivity measurements, thereby more accurately determining the concentration of the target gas in the gas mixture. This method not only improves the reliability of the measurement but is also applicable to a variety of applications, including but not limited to indoor air quality monitoring and industrial process control.

[0127] In some possible embodiments, changes in gas pressure can affect the density and thermal conductivity of the gas, thereby affecting the measurement results of the thermal conductivity CO2 sensor. The sensor output for the same CO2 concentration may differ under different gas pressures.

[0128] Sensor outputs for the same CO2 concentration may differ under varying gas pressures. According to the ideal gas law PV = nRT, when temperature (T) remains constant, an increase in pressure (P) leads to an increase in the number of molecules per unit volume (n / V, or density). Therefore, higher gas pressure means more gas molecules exist within the same volume, directly affecting the gas's physical properties such as density and thermal conductivity. Thermal conductivity refers to a substance's ability to conduct heat. For gases, as density increases, the frequency of collisions between molecules also increases, thus altering their thermal conductivity. Under high pressure, the interaction between CO2 and other gaseous components is enhanced, potentially causing changes in thermal conductivity and resulting in sensor readings deviating from the actual value. For these reasons, even with the same CO2 concentration, thermal conductivity sensors may produce different output signals under different gas pressures. If this deviation is not corrected, it will reduce the accuracy and reliability of the measurement.

[0129] To ensure the accuracy of thermal conductivity CO2 sensors under various atmospheric pressure conditions, several methods can be employed for compensation and calibration. First, atmospheric pressure sensors can be integrated into wearable devices or other monitoring systems to monitor the current ambient atmospheric pressure level in real time. This pressure data can then be used as an additional input parameter to adjust the CO2 concentration calculation model, eliminating or reducing errors caused by pressure variations. Second, specialized software algorithms can be developed to handle the impact of atmospheric pressure changes. For example, a preset CO2 concentration-thermal conductivity relationship curve can be adjusted based on the measured atmospheric pressure to ensure accurate concentration readings under different pressures. This algorithm can be implemented through machine learning or empirical formulas, utilizing historical data to build a comprehensive model that incorporates atmospheric pressure factors.

[0130] Furthermore, by combining various environmental parameters such as temperature, humidity, and air pressure for comprehensive analysis, a multidimensional dataset can be constructed to train more complex models. This not only improves the accuracy of CO2 concentration measurement but also enhances the robustness of the system, making it more adaptable to complex and ever-changing real-world application scenarios.

[0131] These measures effectively mitigate the impact of air pressure variations on the measurement results of the thermally conductive CO2 sensor, ensuring reliable and consistent CO2 concentration data regardless of altitude. This approach not only improves measurement accuracy and reliability but also enhances system adaptability and user experience, providing users with more intelligent and precise services.

[0132] Step 202: Obtain scene information of the wearable device based on the target gas concentration;

[0133] For example, the scene information includes indoor scenes and outdoor scenes.

[0134] For example, indoor scenarios refer to relatively enclosed spaces, such as shopping malls, hospitals, schools, supermarkets, and even more places that users frequently visit. Outdoor scenarios, on the other hand, refer to open spaces where air circulates freely and CO2 concentrations are typically lower. Here are some typical outdoor scenarios: parks, squares, schools, open playgrounds, nature reserves, etc. The unique environmental characteristics of these outdoor scenarios collectively shape their respective air quality conditions.

[0135] Because of the difference in concentration between indoors and outdoors, it can be used to identify indoor and outdoor environments based on the concentration difference and the rate of concentration change, thus adapting to more scenarios.

[0136] Step 203: Select a preset positioning technology that corresponds to the scene information of the wearable device based on the scene information.

[0137] The scene information is used to indicate whether the wearable device is indoors or outdoors.

[0138] For example, the positioning technology includes: indoor positioning technology and outdoor positioning technology.

[0139] For example, indoor positioning technologies include: Wi-Fi positioning technology, Bluetooth Low Energy (BLE) positioning technology, ZigBee positioning technology, UWB positioning technology, RFID, Infrared positioning system (IR), Ultrasonic positioning system (USP), 5G positioning technology, and LiDAR (Light Detection and Ranging) positioning, each with its own advantages.

[0140] For example, outdoor positioning technology can be GPS.

[0141] In steps 202 and 203, the scene information of the wearable device is obtained based on the target gas concentration, and a preset positioning technology corresponding to the scene information of the wearable device is selected based on the scene information, such as... Figure 5 As shown, it includes the following steps:

[0142] Step 501: Compare the concentration of the target gas with the magnitude of a first preset concentration threshold and a second preset concentration threshold;

[0143] Wherein, the first preset concentration threshold is greater than the second preset concentration threshold;

[0144] For example, when outdoor air is freely circulating, CO2 concentration is usually between 350 and 500 ppm; while indoor CO2 concentration is generally higher than 600 ppm, especially in places with more people, where CO2 concentration will be even higher.

[0145] For example, the first preset concentration threshold can be set to 600 ppm, and the second preset concentration threshold can be 500 ppm.

[0146] Step 502: If the concentration of the target gas is greater than or equal to the first preset concentration threshold, select the indoor positioning technology;

[0147] Wherein, the target gas concentration being greater than the preset concentration threshold indicates that the wearable device is indoors.

[0148] In indoor spaces, especially in areas where people gather, CO2 concentrations can easily rise above 600 ppm due to limited air circulation. This is mainly because people release CO2 through respiration, and enclosed environments lack sufficient ventilation to disperse these gases.

[0149] For example, if the CO2 concentration is greater than or equal to 600 ppm, the user's scene information can be considered as an indoor scene, and indoor positioning technology can be selected.

[0150] While GPS is ideal for outdoor positioning, inside buildings, satellite signals can be blocked by walls and other structures, leading to inaccurate positioning or even complete failure.

[0151] Advantages of indoor positioning technology: Technologies such as Wi-Fi, BLE, UWB, RFID, infrared, ultrasound, 5G, and LiDAR can work in closed or semi-closed environments (such as shopping malls and cinemas), using local network infrastructure or sensor arrays to accurately locate the user's position and improve positioning performance.

[0152] Step 503: If the target gas concentration is less than or equal to the second preset concentration threshold, select the outdoor positioning technology.

[0153] Wherein, the target gas concentration being less than the preset concentration threshold indicates that the wearable device is outdoors.

[0154] In freely circulating air, CO2 concentrations typically remain at low levels, around 350-500 ppm. This is because natural winds and atmospheric circulation effectively dilute CO2 produced by human activities. Especially in open spaces, where air circulation is strong, CO2 is less likely to accumulate.

[0155] For example, if the CO2 concentration is less than or equal to 500 ppm, the user's scene can be considered an outdoor scene. In this case, outdoor positioning technology is more suitable because it is designed specifically for positioning needs in open environments, providing wider coverage and higher accuracy. Therefore, outdoor positioning technology should be selected.

[0156] For example, if the concentration of the target gas is less than a third preset concentration threshold, the outdoor positioning technology is selected, wherein the third preset concentration threshold is less than the second preset concentration threshold;

[0157] If the concentration of the target gas is greater than the third preset threshold, the location is re-established.

[0158] For example, if the target gas concentration is less than a third preset concentration threshold, the third preset concentration threshold may be 350 ppm.

[0159] It should be understood that all the thresholds in the embodiments of this application are obtained through a large amount of experimental data and can be dynamically adjusted according to the actual experimental results.

[0160] In some possible embodiments, when the target gas concentration is between the first preset concentration threshold and the second preset concentration threshold, for example, when the target gas concentration is between 500-600 ppm, relying solely on the concentration value cannot quickly determine whether the current user is indoors or outdoors. Therefore, in order to quickly determine the indoor / outdoor scenario and improve positioning performance, the following approach is proposed: initially selecting a positioning technology based on concentration changes, and then... Figure 5 The method shown ultimately selects the positioning technology.

[0161] like Figure 6 As shown, the steps of obtaining scene information of the wearable device based on the target gas concentration and selecting a preset positioning technology corresponding to the scene information of the wearable device based on the scene information also include:

[0162] Step 601: Calculate the rate of change of the target gas concentration within a preset time period;

[0163] The rate of change is the average change of the change difference over the preset time period, and the change difference is the difference between the target gas concentration at the start time and the target gas concentration at the end time within the preset time period.

[0164] By calculating the changes in CO2 concentration over a period of time, the changing trends of the user's environment can be determined more accurately, thereby improving the accuracy of scene recognition.

[0165] Exemplarily, according to the target gas concentration corresponding to the start time and the end time within a preset time period, the average change rate during this period is calculated. The change rate formula is:

[0166] Change rate = (C2 - C1) / (T2 - T1);

[0167] Where, C2 is the target gas concentration corresponding to the end time of the preset time period, C1 is the target gas concentration corresponding to the start time of the preset time period, and T2 - T1 is the preset time period.

[0168] Step 602: If the change rate of the target gas concentration indicates an increase in the target gas concentration and the change rate is greater than the preset concentration change rate threshold, select the indoor positioning technology;

[0169] Where, the increase in the target gas concentration and the change rate being greater than the preset concentration change rate threshold indicate that the wearable device is indoors.

[0170] Exemplarily, the increase in the target gas concentration is expressed as C2 > C1. If C2 > C1 and the change rate exceeds the preset concentration change rate threshold (for example, an increase of more than 5 ppm per minute). If it does exceed, select the indoor positioning technology.

[0171] Step 603: If the target gas concentration indicates a decrease in the target gas concentration and the change rate is greater than the preset concentration change rate threshold, select the outdoor positioning technology.

[0172] Where, the change rate of the target gas concentration being less than the preset concentration change rate threshold indicates that the wearable device is outdoors.

[0173] Where, the decrease in the target gas concentration and the change rate being greater than the preset concentration change rate threshold indicate that the wearable device is outdoors.

[0174] Exemplarily, the increase in the target gas concentration is expressed as C2 < C1. If C2 < C1 and the change rate exceeds the preset concentration change rate threshold (for example, an increase of more than 5 ppm per minute). If it does exceed, select the outdoor positioning technology.

[0175] In some possible embodiments, using the change rate can quickly determine whether the scene information where the user is located has changed, and which scene (indoors or outdoors) the user may go to. In the embodiments of the present application, it is proposed to use the change rate to select the positioning technology.

[0176] The process involves obtaining scene information for the wearable device based on the target gas concentration, and selecting a preset positioning technology corresponding to the scene information of the wearable device, such as... Figure 7 The steps shown include:

[0177] Step 701: Calculate the rate of change of the target gas concentration within a preset time period according to a preset cycle;

[0178] Calculate the rate of change of the target gas concentration within a preset time period. The rate of change is the average change of the change difference within the preset time period. The change difference is the difference between the target gas concentration at the start time and the target gas concentration at the end time within the preset time period.

[0179] Step 702: If the rate of change of the target gas concentration indicates that the target gas concentration is increasing, and the rate of change is greater than the preset concentration change rate threshold, select the indoor positioning technology.

[0180] Wherein, an increase in the concentration of the target gas and a rate of change greater than the preset concentration change rate threshold indicates that the wearable device is indoors;

[0181] Step 703: If the target gas concentration indicator decreases and the rate of change is greater than the preset concentration change rate threshold, select the outdoor positioning technology.

[0182] Wherein, the rate of change of the target gas concentration is less than the preset concentration change rate threshold, indicating that the wearable device is outdoors.

[0183] It should be understood that, although Figure 2-7 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 2-7 At least some of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0184] In some possible embodiments, such as Figure 8 As shown, a positioning technology selection circuit is provided for use in wearable devices, comprising:

[0185] Host computer 801;

[0186] Sensor 802, the sensor is connected to the host computer;

[0187] Power supply 803 is used to power the host computer and the sensor;

[0188] The host computer is used to receive data from the sensor, process and analyze the data, obtain scene information of the wearable device, and select a positioning technology corresponding to the scene information.

[0189] In some embodiments, such as Figure 9 As shown, a positioning technology selection device 900 is provided for use in wearable devices. The wearable device integrates sensors, including:

[0190] Acquisition module 901 is used to acquire the concentration of the target gas in the air through the sensor;

[0191] Selection module 902 is used to obtain scene information of the wearable device based on the target gas concentration, and select a preset positioning technology corresponding to the scene information of the wearable device based on the scene information. The scene information is used to indicate whether the wearable device is indoors or outdoors.

[0192] Further limitations regarding the positioning technology selection device can be found in the limitations of a positioning technology selection method described above, and will not be repeated here. Each module in the aforementioned device 900 can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware or independently of the processor in the terminal device, or stored in software in the memory of the terminal device, so that the processor can call and execute the operations corresponding to each module.

[0193] Another embodiment provides an electronic device including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement a corresponding method.

[0194] Another embodiment provides a storage medium for storing a computer program. This computer program contains instructions for implementing the methods described in the embodiments of this application. By installing this computer program on a computer, the computer can execute the corresponding methods.

[0195] Another embodiment provides a computer program product that includes computer program code. When this computer program code is run on a computer, it causes the computer to implement the methods proposed in the embodiments of this application. Thus, a user can implement the methods of the embodiments of this application by using this computer program product.

[0196] For example, Figure 10 This is a schematic block diagram of another positioning technology selection device provided in the embodiments of this application.

[0197] Figure 10 The other device 1000 shown, which selects the positioning technology, consists of four main parts: a processor 1001, a memory 1002, a communication interface 1003, and a bus 1004. Each part has its specific function and role, realizing intelligent and efficient indoor and outdoor positioning switching and providing users with accurate location services. These components and their functions in the embodiments of this application will be explained in detail below.

[0198] The processor 1001, as the core processing unit, is responsible for executing all computational tasks related to positioning technology and scene recognition, including calculating the rate of change of gas concentration, threshold comparison, and selecting appropriate positioning technology based on environmental conditions. It runs algorithms for determining indoor and outdoor environments, such as selection logic based on the rate of change of CO2 concentration (steps 601 to 603), as well as other potentially involved data analysis and pattern recognition algorithms. It also selects appropriate positioning technology based on sensor data and other information and coordinates the workflow of other modules.

[0199] The memory 1002 is used to store necessary data such as application code, configuration parameters, historical records, and sensor readings. This helps maintain the stability and continuity of the system, especially enabling rapid recovery of operation after a power outage. It also provides a caching mechanism to cache frequently accessed data, improve processor access speed, optimize system performance, and temporarily store intermediate results, such as the starting and ending concentration values ​​required when calculating the rate of change of gas concentration.

[0200] The communication interface 1003 provides physical connectivity with other devices (such as sensors and network infrastructure), supports wired or wireless communication protocols, and is responsible for receiving data from various sensors (such as temperature and humidity sensors and CO2 sensors) and sending the processed positioning information to the user interface or other system components. It is compatible with multiple communication standards, such as Wi-Fi, Bluetooth, ZigBee, UWB, and 5G, to flexibly adapt to different application scenarios and technical requirements.

[0201] Bus 1004 serves as an internal communication bridge, ensuring efficient data transfer between the processor, memory, and communication interface. It manages communication traffic between different components, guarantees the orderliness and timeliness of data transmission, and avoids conflicts and bottlenecks.

[0202] Based on the above analysis, the processor selects the most suitable positioning technology (such as GPS, Wi-Fi, BLE, etc.) and activates the corresponding positioning service through the communication interface. Finally, according to the user's activities and environmental changes, the system continuously updates the positioning mode and provides real-time feedback through the user interface or other output channels. In summary, the positioning technology selection device 1000, through the coordinated operation of its four carefully designed main components, achieves intelligent and efficient indoor and outdoor positioning switching, providing users with accurate location services.

[0203] It should be understood that, in the embodiments of this application, the processor may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0204] In implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software. The steps of the method disclosed in the embodiments of this application can be directly manifested as execution by a hardware processor, or as a combination of hardware and software modules within the processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory, and the processor executes the instructions in the memory, combining them with its hardware to complete the steps of the above method. To avoid repetition, detailed descriptions are omitted here.

[0205] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this application.

[0206] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0207] In the embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0208] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0209] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0210] If the aforementioned function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application embodiment, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0211] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the embodiments of this application should be included within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.

Claims

1. A positioning technology selection method, characterized by, Applied to wearable devices, the wearable devices integrate sensors, including: The concentration of the target gas in the air is obtained through the sensor; The scene information of the wearable device is obtained based on the target gas concentration; Based on the scene information, a preset positioning technology corresponding to the scene information of the wearable device is selected, wherein the scene information is used to indicate whether the wearable device is indoors or outdoors.

2. The method of claim 1, wherein, The positioning technology includes: indoor positioning technology and outdoor positioning technology. The step of obtaining scene information of the wearable device based on the target gas concentration, and selecting a preset positioning technology corresponding to the scene information of the wearable device based on the scene information, includes: The concentration of the target gas is compared with the magnitude of a first preset concentration threshold and a second preset concentration threshold, wherein the first preset concentration threshold is greater than the second preset concentration threshold; If the target gas concentration is greater than or equal to the first preset concentration threshold, the indoor positioning technology is selected, wherein the target gas concentration being greater than the preset concentration threshold indicates that the wearable device is indoors; If the target gas concentration is less than or equal to the second preset concentration threshold, the outdoor positioning technology is selected, wherein the target gas concentration being less than the preset concentration threshold indicates that the wearable device is outdoors.

3. The method according to claim 2, characterized in that, The positioning technology includes: indoor positioning technology, outdoor positioning technology, and the step of obtaining scene information of the wearable device based on the target gas concentration, and selecting a preset positioning technology corresponding to the scene information of the wearable device based on the scene information, further includes: When the target gas concentration is between the first preset concentration threshold and the second preset concentration threshold, the rate of change of the target gas concentration within a preset time period is calculated. The rate of change is the average change of the change difference within the preset time period. The change difference is the difference between the target gas concentration at the start time within the preset time period and the target gas concentration at the end time within the preset time period. If the rate of change of the target gas concentration indicates that the target gas concentration is increasing, and the rate of change is greater than a preset concentration change rate threshold, the indoor positioning technology is selected, wherein the increase in the target gas concentration and the rate of change being greater than the preset concentration change rate threshold indicates that the wearable device is indoors; If the rate of change of the target gas concentration indicates that the target gas concentration is decreasing, and the rate of change is greater than the preset concentration change rate threshold, the outdoor positioning technology is selected, wherein the rate of change of the target gas concentration being greater than the preset concentration change rate threshold indicates that the wearable device is outdoors.

4. The method according to claim 2, characterized in that, The positioning technology includes: indoor positioning technology, outdoor positioning technology, and the step of obtaining scene information of the wearable device based on the target gas concentration, and selecting a preset positioning technology corresponding to the scene information of the wearable device based on the scene information, further includes: If the concentration of the target gas is less than a third preset concentration threshold, the outdoor positioning technology is selected, wherein the third preset concentration threshold is less than the second preset concentration threshold; If the concentration of the target gas is greater than the third preset threshold, the location is re-established.

5. The method according to claim 1, characterized in that, The positioning technology includes: indoor positioning technology and outdoor positioning technology. The step of obtaining scene information of the wearable device based on the target gas concentration, and selecting a preset positioning technology corresponding to the scene information of the wearable device based on the scene information, includes: Calculate the rate of change of the target gas concentration within a preset time period according to a preset cycle; Calculate the rate of change of the target gas concentration within a preset time period. The rate of change is the average change of the change difference within the preset time period. The change difference is the difference between the target gas concentration at the start time and the target gas concentration at the end time within the preset time period. If the rate of change of the target gas concentration indicates that the target gas concentration is increasing, and the rate of change is greater than a preset concentration change rate threshold, the indoor positioning technology is selected, wherein the increase in the target gas concentration and the rate of change being greater than the preset concentration change rate threshold indicates that the wearable device is indoors; If the rate of change of the target gas concentration indicates that the target gas concentration is decreasing, and the rate of change is greater than the preset concentration change rate threshold, the outdoor positioning technology is selected, wherein the rate of change of the target gas concentration being greater than the preset concentration change rate threshold indicates that the wearable device is outdoors.

6. The method according to claim 1, characterized in that, The sensor further includes a temperature and humidity sensor, wherein obtaining the concentration of the target gas in the air through the sensor includes: The temperature and humidity in the air are detected by the temperature and humidity sensor. Based on the influence of air temperature and humidity on the temperature of the air mixture, the temperature is compensated using a pre-set compensation algorithm; The thermal conductivity of the mixed gas after compensation at the temperature is obtained from the thermal conductivity gas sensor; The target gas concentration is obtained by using the thermal conductivity corresponding to the temperature after the mixed gas is compensated.

7. The method according to claim 1 or 6, characterized in that, The volume of the gas test chamber of the sensor is preset, the sensor is a thermally conductive gas sensor, and the acquisition of the target gas concentration in the air through the sensor includes: The thermal conductivity of the mixed gas in the air is obtained based on the temperature detected by the thermal conductivity gas sensor. The mole fraction of the target gas is obtained by M = (λ1-λ3) / (λ2-λ3), where the mole fraction of the target gas is the volume percentage of the target gas, λ1 is the thermal conductivity of the mixed gas, λ2 is the pre-set thermal conductivity of the target gas, and λ3 is the pre-set thermal conductivity of the air. The volume of the target gas is obtained by multiplying the volume percentage of the target gas by the volume of the gas testing chamber. The mass of the target gas is obtained by multiplying the volume of the target gas by the pre-set density of the target gas. The amount of the target gas is obtained based on the mass of the target gas and the pre-set molar mass of the target gas; The concentration of the target gas is obtained by dividing the amount of the target gas substance by the volume of the target gas.

8. The method according to claim 1 or 6, characterized in that, The sensor is a thermally conductive gas sensor. A temperature value for the thermally conductive gas sensor is preset. The process of obtaining the concentration of the target gas in the air through the sensor includes: The concentration of the target gas is obtained by C = a × ΔT + b; Wherein, C is the concentration of the target gas, ΔT is the temperature change of the heat conduction gas sensor, the temperature change is the difference between the current temperature and the preset temperature value of the heat conduction gas sensor, and a and b are preset values.

9. A positioning technology selection circuit, characterized in that, Applications in wearable devices, including: Host computer; The sensor is connected to the host computer; A power supply is provided to power the host computer and the sensors. The host computer is used to receive data from the sensor, process and analyze the data, obtain scene information of the wearable device, and select a positioning technology corresponding to the scene information.

10. A positioning technology selection device, characterized in that, Applied to wearable devices, the wearable devices integrate sensors, including: The acquisition module is used to acquire the concentration of the target gas in the air through the sensor; The selection module is used to obtain scene information of the wearable device based on the target gas concentration, and select a preset positioning technology corresponding to the scene information of the wearable device based on the scene information. The scene information is used to indicate whether the wearable device is indoors or outdoors.

11. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement a positioning technology selection method as described in any one of claims 1-8.

12. A storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform a positioning technology selection method as described in any one of claims 1-8.