WO2023098365A1 - Procédé de détection pour véhicule entrant dans un environnement intérieur, dispositif électronique et support de stockage - Google Patents
Procédé de détection pour véhicule entrant dans un environnement intérieur, dispositif électronique et support de stockage Download PDFInfo
- Publication number
- WO2023098365A1 WO2023098365A1 PCT/CN2022/128305 CN2022128305W WO2023098365A1 WO 2023098365 A1 WO2023098365 A1 WO 2023098365A1 CN 2022128305 W CN2022128305 W CN 2022128305W WO 2023098365 A1 WO2023098365 A1 WO 2023098365A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- vehicle
- indoor environment
- electronic device
- detection
- time period
- Prior art date
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 358
- 230000004888 barrier function Effects 0.000 claims abstract description 63
- 230000001413 cellular effect Effects 0.000 claims abstract description 38
- 238000000034 method Methods 0.000 claims description 60
- 230000003247 decreasing effect Effects 0.000 claims description 18
- 230000008569 process Effects 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 13
- 238000004891 communication Methods 0.000 abstract description 34
- 238000010586 diagram Methods 0.000 description 20
- 230000008859 change Effects 0.000 description 17
- 230000001174 ascending effect Effects 0.000 description 16
- 230000007423 decrease Effects 0.000 description 15
- 230000006870 function Effects 0.000 description 14
- 238000005516 engineering process Methods 0.000 description 12
- 238000010295 mobile communication Methods 0.000 description 10
- 230000006399 behavior Effects 0.000 description 7
- 230000001133 acceleration Effects 0.000 description 6
- 238000004590 computer program Methods 0.000 description 6
- 229910000831 Steel Inorganic materials 0.000 description 4
- 239000004568 cement Substances 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 239000010959 steel Substances 0.000 description 4
- 238000013528 artificial neural network Methods 0.000 description 2
- 230000010267 cellular communication Effects 0.000 description 2
- 238000009499 grossing Methods 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000005389 magnetism Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000003416 augmentation Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- CWHBCTLVWOCMPQ-UHFFFAOYSA-L disodium;2-[(3,5-diiodo-4-oxidophenyl)-(3,5-diiodo-4-oxocyclohexa-2,5-dien-1-ylidene)methyl]benzoate Chemical compound [Na+].[Na+].[O-]C(=O)C1=CC=CC=C1C(C=1C=C(I)C([O-])=C(I)C=1)=C1C=C(I)C(=O)C(I)=C1 CWHBCTLVWOCMPQ-UHFFFAOYSA-L 0.000 description 1
- 230000005358 geomagnetic field Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W40/00—Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
- B60W40/10—Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models related to vehicle motion
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/04—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by terrestrial means
- G01C21/08—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by terrestrial means involving use of the magnetic field of the earth
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/20—Instruments for performing navigational calculations
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/20—Instruments for performing navigational calculations
- G01C21/206—Instruments for performing navigational calculations specially adapted for indoor navigation
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S13/00—Systems using the reflection or reradiation of radio waves, e.g. radar systems; Analogous systems using reflection or reradiation of waves whose nature or wavelength is irrelevant or unspecified
- G01S13/88—Radar or analogous systems specially adapted for specific applications
- G01S13/91—Radar or analogous systems specially adapted for specific applications for traffic control
Definitions
- the embodiments of the present application relate to the technical field of terminals, and in particular, to a method for detecting a vehicle entering an indoor environment, an electronic device, and a storage medium.
- IOD indoor and outdoor detection
- the vehicle determines whether the vehicle enters the indoor environment by installing a light sensor on the vehicle to detect the real-time light intensity of the environment through the light sensor.
- the light intensity detection will misjudge the outdoor environment as the indoor environment, and the accuracy of identifying whether the vehicle enters the indoor environment is low.
- Embodiments of the present application provide a detection method for a vehicle entering an indoor environment, an electronic device, and a storage medium, which improve the accuracy of identifying whether a vehicle enters an indoor environment.
- the embodiment of the present application provides a detection method for a vehicle entering an indoor environment, which is applied to electronic equipment, and the electronic equipment is placed in the vehicle.
- the method includes: acquiring multiple detection results according to the detection cycle, and the multiple detection results include the first At least two of the first detection result, the second detection result, the third detection result and the fourth detection result; the first detection result is determined by the electronic device through the data of the accelerometer to indicate whether the vehicle has entered the entrance of the indoor environment ramp, the second detection result is determined by the electronic device through the data of the accelerometer to indicate whether the vehicle passes through the barrier at the entrance of the indoor environment, and the third detection result is determined by the electronic device through the data of the magnetometer to indicate whether the vehicle is Entering the indoor environment, the fourth detection result is determined by the electronic device according to the strength data of the cellular signal to indicate whether the vehicle enters the indoor environment; it is determined whether the vehicle enters the indoor environment according to multiple detection results.
- the method for detecting that a vehicle enters an indoor environment provided in the first aspect, electronic equipment placed in the vehicle is used to detect whether the vehicle enters an indoor environment.
- ramp detection and/or barriers are implemented using accelerometers based on the vehicle’s driving behavior on the ramp and through the barrier Inbound inspection.
- the geomagnetic signal detection is realized by using the magnetometer, and the cellular signal detection is realized by using the communication card.
- the light intensity detection that relies too much on the light sensor is avoided, it is detected by the accelerometer, magnetometer or communication card based on the actual driving scene of the vehicle entering the indoor environment, which improves the accuracy of determining whether the vehicle enters the indoor environment. Moreover, since the use of GPS is avoided, the detection power consumption is reduced and the system load is reduced.
- determining whether the vehicle enters the indoor environment according to multiple detection results includes: if at least N detection results in the multiple detection results indicate that the vehicle enters the indoor environment, then determine that the vehicle enters the indoor environment; N is greater than Equal to 2 and less than or equal to 4.
- the accuracy of whether to enter the indoor environment reduces the system load.
- the multiple detection results further include a fifth detection result, which is determined by the electronic device through the data of the light sensor and is used to indicate whether the vehicle has entered the indoor environment.
- the method for detecting that the vehicle enters the indoor environment further includes: if it is determined that the vehicle enters the indoor environment according to multiple detection results, sending notification information to the vehicle; the notification information is used to indicate that the vehicle enters the indoor environment.
- the electronic device in the vehicle when the electronic device in the vehicle determines that the vehicle has entered the indoor environment, it can notify the vehicle so that the vehicle can start a behavior mode suitable for the room, for example, turn on the indoor navigation system, etc., which can provide users with more convenience and more Smart, environment-friendly services and experiences enhance user experience.
- obtaining the first detection result includes: obtaining the three-axis reading value of the accelerometer according to the first cycle; converting the three-axis reading value of the accelerometer into the target three-axis value in the vehicle coordinate system of the vehicle reading value; determine the vehicle tilt angle of the vehicle according to the target three-axis reading value; if the vehicle tilt angle is greater than a preset angle, the first detection result indicates that the vehicle is driving into the ramp at the entrance of the indoor environment.
- the accelerometer is used to detect the ramp and determine whether the vehicle is driving into the entrance of the indoor environment.
- ramp i.e., to determine whether the vehicle enters the indoor environment. Compared with light intensity detection, the accuracy of determining whether the vehicle enters the indoor environment is improved.
- the first detection result indicates that the vehicle has entered the ramp at the entrance of the indoor environment, including: if it is determined that multiple three-axis readings within the first time period If the vehicle inclination angles corresponding to the values are greater than the preset angle, the first detection result indicates that the vehicle has driven into the ramp at the entrance of the indoor environment; wherein, the first time period includes a plurality of first periods.
- the tilt angles of multiple vehicles corresponding to the first time period are greater than the preset angle, it means that the vehicles are all on the ascending slope or descending slope during the first time period, and it can be determined that the vehicle has entered the indoor environment, and further Improved the accuracy of determining if a vehicle is driving onto a ramp at the entrance to an indoor environment.
- acquiring the second detection result includes: acquiring a plurality of reading values on the first target axis of the accelerometer within a second time period according to a second period; wherein, the second time period includes a plurality of first Two periods; if the numerical variation trend of the multiple reading values is firstly decreasing, then keeping the same level and then increasing, the second detection result indicates that the vehicle passes through the barrier gate at the entrance of the indoor environment.
- the accelerometer is used to realize the detection of the barrier gate and determine whether the vehicle passes through the entrance of the indoor environment.
- the barrier gate that is, to determine whether the vehicle enters the indoor environment. Compared with light intensity detection, the accuracy of determining whether the vehicle enters the indoor environment is improved.
- the first target axis is parallel to the driving direction of the vehicle.
- multiple readings of the accelerometer on the axis parallel to the driving direction of the vehicle are used to detect the entrance of the barrier gate, which further improves the accuracy of determining whether the vehicle passes through the barrier gate at the entrance of the indoor environment.
- obtaining the third detection result includes: obtaining a plurality of three-axis reading values of the magnetometer in a third time period according to a third period; wherein, the third time period includes a plurality of third periods, and the magnetic force
- the three-axis reading of the meter includes the readings on the three axes of the magnetometer; multiple target readings among the multiple three-axis readings are obtained, and the standard fraction value of each target reading is determined; if multiple target readings If the number of target reading values whose standard score value is greater than the preset value among the values is greater than the preset number, the third detection result indicates that the vehicle has entered the indoor environment.
- the indoor environment usually has a peripheral structure formed of cement and steel bars. Since structures such as cement and steel bars will distort the magnetic performance of the earth's magnetism, the data of the magnetometer can be used to Geomagnetic signal detection is performed to determine whether the vehicle has entered the indoor environment. Compared with light intensity detection, the accuracy of determining whether the vehicle enters the indoor environment is improved.
- the target reading value is any one of the following: the reading value of the second target axis on the magnetometer; the second target axis is an axis in the magnetometer; the reading value of at least two axes on the magnetometer Reading; normalized value determined from the three-axis reading of the magnetometer.
- the second target axis is an axis in the horizontal direction.
- obtaining the fourth detection result includes: obtaining signal strength values of multiple cells within a fourth time period according to a fourth period; wherein, the fourth time period includes multiple fourth periods, multiple The cell includes the serving cell of the electronic device and the neighboring cells of the serving cell; the signal strength value in the fourth time period is processed by a clustering algorithm, and two clustering results are obtained; if the first clustering result includes the fourth time period The signal strength value corresponding to the last X fourth periods within the last X, the fourth detection result indicates that the vehicle enters the indoor environment; wherein, the two clustering results include the first clustering result and the second clustering result, and X is 1 or 2.
- the indoor environment usually has surrounding building structures, and the shading of the building structures will cause a sudden change in the strength of the cellular signal detected by the electronic device. Therefore, the cellular signal detection can be used to determine Whether the vehicle enters the indoor environment. Compared with light intensity detection, the accuracy of determining whether the vehicle enters the indoor environment is improved.
- the clustering algorithm before using the clustering algorithm to process the signal strength values in the fourth time period, it also includes: determining that no cell reselection occurs in the electronic device within the fourth time period; and determining that each cell The plurality of signal strength values of the cells within the fourth time period show a decreasing trend; The number of cells in the period is the same.
- obtaining the fifth detection result includes: obtaining a plurality of light intensity values detected by the light sensor within a fifth time period according to a fifth period; wherein, the fifth time period includes a plurality of fifth periods; determining The light intensity mean and light intensity variance of multiple light intensity values; if the light intensity variance is greater than or equal to the preset light intensity variance threshold, and the light intensity value corresponding to the last fifth cycle in the fifth time period is less than the light intensity mean value , the fifth detection result indicates that the vehicle has entered the indoor environment.
- the method before acquiring the multiple light intensity values detected by the light sensor within the fifth time period, the method further includes: determining that the current moment is in the daytime period; and determining that the current weather is not cloudy or rainy.
- the embodiment of the present application provides a detection device for a vehicle entering an indoor environment, which is applied to electronic equipment, and the electronic equipment is placed in the vehicle.
- the first detection result includes at least two of the first detection result, the second detection result, the third detection result and the fourth detection result; the first detection result is determined by the electronic device through the accelerometer data to indicate whether the vehicle has entered For the ramp at the entrance of the indoor environment, the second detection result is determined by the electronic device through the data of the accelerometer to indicate whether the vehicle has passed the barrier at the entrance of the indoor environment, and the third detection result is determined by the electronic device through the data of the magnetometer It is used to indicate whether the vehicle enters the indoor environment, and the fourth detection result is determined by the electronic device according to the strength data of the cellular signal to indicate whether the vehicle enters the indoor environment; the processing module is used to determine whether the vehicle enters the indoor environment according to multiple detection results .
- the processing module is configured to: determine that the vehicle enters the indoor environment if at least N of the multiple detection results indicate that the vehicle enters the indoor environment; N is greater than or equal to 2 and less than or equal to 4.
- the multiple detection results further include a fifth detection result, which is determined by the electronic device through the data of the light sensor and is used to indicate whether the vehicle has entered the indoor environment.
- a sending module is further included, and the sending module is configured to: send notification information to the vehicle if it is determined according to multiple detection results that the vehicle enters the indoor environment; the notification information is used to indicate that the vehicle enters the indoor environment.
- the acquisition module includes a first acquisition unit, and the first acquisition unit is configured to: acquire the three-axis reading value of the accelerometer according to the first period; convert the three-axis reading value of the accelerometer into The target three-axis reading value in the coordinate system; determine the vehicle tilt angle of the vehicle according to the target three-axis reading value; if the vehicle tilt angle is greater than a preset angle, the first detection result indicates that the vehicle is driving into the ramp at the entrance of the indoor environment.
- the first acquisition unit is configured to: if it is determined that the vehicle inclination angles corresponding to the multiple three-axis readings within the first time period are all greater than a preset angle, the first detection result indicates that the vehicle is driving into A ramp at the entrance of the indoor environment; wherein the first time period includes a plurality of first periods.
- the acquisition module includes a second acquisition unit, and the second acquisition unit is configured to: acquire multiple reading values on the first target axis of the accelerometer within a second time period according to a second cycle; wherein, the second The second time period includes a plurality of second periods; if the numerical variation trends of the plurality of reading values first decrease, then remain the same and then increase, the second detection result indicates that the vehicle passes through the barrier gate at the entrance of the indoor environment.
- the first target axis is parallel to the driving direction of the vehicle.
- the acquisition module includes a third acquisition unit, and the third acquisition unit is configured to: acquire a plurality of three-axis reading values of the magnetometer within a third time period according to a third cycle; wherein, the third time period includes A plurality of third cycles, the three-axis reading of the magnetometer includes readings on three axes of the magnetometer; obtaining a plurality of target readings in the plurality of three-axis readings, determining a standard fractional value for each target reading ; If the number of target readings whose standard score value is greater than the preset value among the multiple target readings is greater than the preset number, the third detection result indicates that the vehicle has entered the indoor environment.
- the target reading value is any one of the following: the reading value of the second target axis on the magnetometer; the second target axis is an axis in the magnetometer; the reading value of at least two axes on the magnetometer Reading; normalized value determined from the three-axis reading of the magnetometer.
- the second target axis is an axis in the horizontal direction.
- the acquisition module includes a fourth acquisition unit, and the fourth acquisition unit is configured to: acquire signal strength values of multiple cells within a fourth time period according to a fourth cycle; wherein, the fourth time period includes multiple In the fourth period, multiple cells include the serving cell of the electronic device and the neighboring cells of the serving cell; the signal strength values in the fourth time period are processed by a clustering algorithm, and two clustering results are obtained; if the first clustering The class results include the signal strength values corresponding to the last X fourth periods in the fourth time period, and the fourth detection result indicates that the vehicle enters the indoor environment; wherein, the two cluster results include the first cluster result and the second cluster result , X is 1 or 2.
- the first acquiring unit is further configured to: before using a clustering algorithm to process the signal strength values within the fourth time period, determine that the electronic device does not undergo cell reselection within the fourth time period; And, it is determined that a plurality of signal strength values of each cell in the fourth time period presents a decreasing trend; The number of cells in the other fourth periods is the same.
- the acquisition module includes a fifth acquisition unit, and the fifth acquisition unit is configured to: acquire a plurality of light intensity values detected by the light sensor within a fifth time period according to a fifth cycle; wherein, the fifth time period includes Multiple fifth periods; determine the light intensity mean and light intensity variance of multiple light intensity values; if the light intensity variance is greater than or equal to the preset light intensity variance threshold, and the last fifth period in the fifth time period corresponds to If the light intensity value is less than the average light intensity value, the fifth detection result indicates that the vehicle has entered the indoor environment.
- the fifth acquisition unit is further configured to determine that the current moment is in the daytime period before acquiring the multiple light intensity values detected by the light sensor within the fifth time period; and determine that the current weather is not cloudy or rainy .
- an electronic device including a processor, and the processor is configured to be coupled with a memory, read instructions in the memory, and make the electronic device execute the method provided in the first aspect according to the instructions.
- a computer-readable storage medium is provided. Instructions are stored in the computer-readable storage medium. When the instructions are run on a computer or a processor, the method provided in the first aspect is implemented.
- a program product in a fifth aspect, includes a computer program, the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium program, the at least one processor executes the computer program so that the electronic device implements the method provided in the first aspect.
- FIGS. 1A to 1G are schematic diagrams of a set of application scenarios applicable to the embodiments of the present application.
- Figures 2A to 2B are a set of schematic diagrams of the placement of electronic equipment in the vehicle provided by the embodiment of the present application;
- FIG. 3 is a schematic diagram of an interface for setting IOD detection of an electronic device provided in an embodiment of the present application
- 4A to 4B are schematic diagrams of a set of interfaces of the electronic device provided by the embodiment of the present application.
- FIG. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
- FIG. 6 is a flow chart of slope detection performed by an electronic device provided in an embodiment of the present application.
- 7A to 7B are a set of schematic diagrams of the mobile phone coordinate system provided by the embodiment of the present application.
- Fig. 8 is a schematic diagram of the vehicle coordinate system provided by the embodiment of the present application.
- FIG. 9 is a flow chart of the electronic equipment provided in the embodiment of the present application for detecting the entry into the barricade
- 10A to 10B are a set of trend diagrams of multiple reading values of the accelerometer on the target axis provided by the embodiment of the present application;
- FIG. 11 is a flow chart of the electronic device detecting the geomagnetic signal through the magnetometer provided by the embodiment of the present application.
- Fig. 12 is a schematic diagram of changes in the reading value of the magnetometer provided by the embodiment of the present application.
- FIG. 13 is a flow chart of cellular signal detection performed by an electronic device provided in an embodiment of the present application.
- FIG. 14 is a schematic diagram of signal strengths of multiple cells detected by an electronic device according to an embodiment of the present application.
- Figures 15A to 15B are a set of schematic diagrams of clustering the signal strengths of multiple cells by an electronic device provided by an embodiment of the present application;
- FIG. 16 is a flow chart of light intensity detection performed by an electronic device provided in an embodiment of the present application.
- FIG. 17 is a flow chart of a method for detecting a vehicle entering an indoor environment provided by an embodiment of the present application.
- FIG. 18 is a schematic diagram of a detection result of a vehicle entering an indoor environment provided by an embodiment of the present application.
- FIG. 19 is a schematic structural diagram of a detection device for a vehicle entering an indoor environment provided by an embodiment of the present application.
- the method for detecting a vehicle entering an indoor environment is used to determine whether a vehicle enters an indoor environment.
- the embodiment of the present application does not limit the indoor environment.
- the indoor environment is taken as an example of an indoor parking lot.
- a gate is provided at the entrance of the indoor parking lot to manage vehicles entering the indoor parking lot.
- the embodiment of the present application does not limit the name of the barrier gate, for example, the barrier gate may also be called a gate, a gate, a car stopper, and the like.
- the indoor parking lot has an ascending ramp or a descending ramp, and the ascending ramp or descending ramp may not have a turn, or may have at least one turn.
- the embodiment of the present application does not limit the angle of the ascending ramp or the descending ramp, and reference may be made to relevant specifications on the inclination angle of building ramps.
- a gate 102 is set at the entrance of the indoor parking lot 101 .
- the parking position of the indoor parking lot 101 is located below the entrance of the parking lot, and the indoor parking lot 101 has a descending ramp 103 .
- the process of the vehicle 100 entering the indoor parking lot 101 is as follows: the vehicle 100 decelerates and stops at the barrier gate 102 , passes through the barrier gate 102 after a short stay, speeds up and enters the descending ramp 103 , and then drives on the level ground of the indoor parking lot 101 .
- FIG. 1B shows the difference between FIG. 1B and FIG. 1A .
- the distance between the barrier gate 102 and the starting point of the descending ramp 103 of the indoor parking lot 101 is longer.
- FIG. 1C shows a barrier 102 at the entrance of the indoor parking lot 101 ; in FIG. 1C , the barrier 102 is located behind the descending ramp 103 of the indoor parking lot 101 .
- the process of the vehicle 100 entering the indoor parking lot 101 is as follows: the vehicle 100 drives into the level ground of the indoor parking lot 101 after passing the descending ramp 103, slows down and stops at the barrier gate 102, passes through the barrier gate 102 after a short stop, and continues to park indoors at a higher speed Field 101 for driving on level ground.
- FIG. 1D shows the difference between FIG. 1D and FIGS. 1A-1C .
- the indoor parking lot 101 has a descending ramp 103 ; in FIG. 1D , the indoor parking lot 101 has an ascending ramp 104 .
- FIG. 1E shows the indoor parking lot 101 has an ascending ramp 104 and a barrier 102 .
- FIG. 1E a barrier gate 102 is provided at the entrance of the indoor parking lot 101 ; and in FIG. 1E , the barrier gate 102 is located behind the ascending ramp 104 of the indoor parking lot 101 .
- Fig. 1F As shown in Fig. 1F.
- the same point between Fig. 1F and Fig. 1D ⁇ Fig. 1E is: In Fig. 1D ⁇ Fig. 1E, indoor parking lot 101 has ascending ramp 104 and barrier gate 102; In Fig. 1F, indoor parking lot 101 has ascending ramp 104, There is no barrier gate 102 .
- the process of the vehicle 100 entering the indoor parking lot 101 is as follows: the vehicle 100 drives into the level ground of the indoor parking lot 101 after passing the ascending ramp 104 and continues to drive.
- FIG. 1G the difference between FIG. 1G and FIGS. 1A to 1F is that in FIG. 1G , the indoor parking lot 101 does not have a ramp.
- a gate 102 is provided at the entrance of the indoor parking lot 101 .
- the process of the vehicle 100 entering the indoor parking lot 101 is as follows: the vehicle 100 decelerates and stops at the barrier gate 102 , passes through the barrier gate 102 after a short stay, speeds up and drives into the indoor parking lot 101 and continues to drive.
- one implementation method is to detect the real-time light intensity of the environment through a light sensor on the vehicle to determine whether the vehicle enters the indoor environment.
- the light sensor on the vehicle may be a light sensor disposed in the vehicle body, or an electronic device with a light sensor placed in the vehicle.
- the light intensity detection may misjudge the outdoor environment as an indoor environment, resulting in a low accuracy rate for identifying whether the vehicle enters the indoor environment. For example, on a cloudy or rainy day, the outdoor light is poor, and the vehicle may be misjudged as being indoors when the vehicle is located outside. For another example, for an evening time period of a day, a vehicle located outdoors may also be misjudged as located in an indoor environment.
- the strength of the GPS signal is obtained through a global positioning system (GPS) module on the vehicle, and whether the vehicle enters the indoor environment is determined through the strength of the GPS signal.
- GPS global positioning system
- the GPS module on the vehicle may be a GPS module installed in the vehicle body, or a GPS device placed in the vehicle, or an electronic device with GPS function placed in the vehicle.
- the power consumption of GPS detection is large, which increases the system load.
- An embodiment of the present application provides a method for detecting that a vehicle enters an indoor environment, using electronic equipment placed in the vehicle to detect whether the vehicle enters the indoor environment.
- the electronic equipment includes an accelerometer, a magnetometer and a communication card for cellular communication.
- the communication card includes but is not limited to at least one of the following: a customer identity module (subscriber identity module, SIM) card, a small SIM card (Micro SIM), an ultra-small SIM card (Nano SIM) and the like.
- the detection method for a vehicle entering an indoor environment is based on the scene that a vehicle usually needs to pass through a ramp and/or through a barrier when entering an indoor environment, and according to the driving behavior of the vehicle on the ramp and the driving behavior of the vehicle through the barrier , the use of accelerometers to achieve ramp detection and / or barrier gate storage detection.
- the geomagnetic signal detection is realized by using the magnetometer
- the cellular signal detection is realized by using the communication card.
- the light intensity detection that relies too much on the light sensor is avoided, it is detected by the accelerometer, magnetometer or communication card based on the actual driving scene of the vehicle entering the indoor environment, which improves the accuracy of determining whether the vehicle enters the indoor environment. Moreover, since the use of GPS is avoided, the detection power consumption is reduced and the system load is reduced.
- the electronic device may further include a light sensor for realizing light intensity detection.
- the method for detecting a vehicle entering an indoor environment provided in the embodiment of the present application may also refer to light intensity detection on the basis of at least one of the detection results of comprehensive ramp detection, gate entry detection, geomagnetic signal detection, or cellular signal detection. Based on the detection results, it can be judged whether the vehicle has entered the indoor environment, which further improves the accuracy of determining whether the vehicle has entered the indoor environment.
- an electronic device is also called a terminal, a terminal device, a user device, or a mobile terminal.
- a terminal a terminal device
- a user device a mobile terminal.
- examples of some electronic devices are: mobile phones, tablet computers, handheld computers, wearable devices, and the like.
- the embodiment of the present application takes the electronic device as a mobile phone as an example.
- the embodiment of the present application does not limit the placement position and posture of the electronic device in the vehicle.
- a bracket 201 is provided in a vehicle for fixing an electronic device 200 .
- the electronic device 200 is placed in the bracket 201 .
- the IOD detection can be automatically triggered to determine whether the vehicle enters the indoor environment.
- the electronic device 200 may be placed on a storage platform on the right side of the driver's seat.
- FIG. 2A and FIG. 2B are only examples, and do not limit the placement position and posture of the electronic device in the vehicle.
- the embodiment of the present application does not limit the manner in which the electronic device starts the IOD detection to determine whether the vehicle enters the indoor environment.
- IOD detection may be automatically triggered to determine whether the vehicle enters the indoor environment.
- the user may manually start the IOD detection of the electronic device.
- the embodiment of the present application does not limit the way the user starts the electronic device to perform IOD detection. Gesture operations by the user, operations performed by the user on physical buttons on the electronic device, voice control commands input by the user through the microphone of the electronic device, or image control commands input by the user through the camera of the electronic device.
- FIG. 3 is a schematic diagram of an interface for setting IOD detection of an electronic device provided in an embodiment of the present application.
- the electronic device currently displays an interface 30 for setting, and the interface 30 includes a switch control 31 for IOD detection.
- the interface 30 may also include prompt information for instructing the user whether to enable IOD detection.
- the prompt information includes "after it is turned on, it can be determined whether to enter the indoor environment".
- the user can operate the switch control 31 to determine whether the electronic device enables IOD detection through the display state of the switch control 31 .
- the current display state of the switch control 31 indicates that the electronic device has enabled IOD detection.
- the electronic device when the electronic device determines that the vehicle enters an indoor environment, the electronic device may automatically trigger execution of related operations. For example, start the indoor navigation system.
- the electronic device when the electronic device determines that the vehicle enters the indoor environment, it may output prompt information to the user to notify the user, so that the user can perform subsequent operations and improve user experience.
- the user can start related application programs in the electronic device, including but not limited to: indoor navigation system, shopping APP and so on.
- the embodiment of the present application does not limit the manner in which the electronic device outputs the prompt information.
- the prompt information may be voice information or information displayed on a related interface.
- the information displayed on the relevant interface may include but not limited to at least one of the following: text, picture, video or animation.
- the electronic device currently displays an interface 40 of a navigation application program.
- the interface 40 includes a map 41 and navigation information.
- the navigation information includes "current geographic location: XX mall. Destination: XX mall”.
- a bullet box 42 pops up on the interface 40, and the bullet box 42 includes an icon of the vehicle and prompt information, for example, the prompt information includes "enter the basement”.
- prompt information may be displayed in a notification bar of the system.
- the electronic device currently displays an interface 45 that slides down the notification bar.
- the interface 45 displays a WLAN control, a Bluetooth control, a mobile data control, a mute control and an audio switching control.
- the interface 45 also includes a message box 46, and the message in the message box 46 is "the vehicle enters the basement", indicating that the vehicle has entered the indoor environment at the current moment.
- the electronic device when the electronic device determines that the vehicle enters the indoor environment, it may send notification information to the vehicle, indicating that the vehicle enters the indoor environment.
- the vehicle receives the notification information sent by the electronic device.
- the vehicle can output prompt information to the user according to the notification information to notify the user so that the user can perform follow-up operations and improve user experience.
- the embodiment of the present application does not limit the manner in which the vehicle outputs the prompt information.
- the prompt information may be voice information or information displayed on a display screen of the vehicle.
- the displayed information may include but not limited to at least one of the following: text, picture, video or animation.
- FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a sensor module 180, a camera 193, a display screen 194, and a SIM card interface 195 wait.
- the sensor module 180 may include a gyroscope sensor 180B, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, an ambient light sensor 180L and the like.
- the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 .
- the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
- the illustrated components can be realized in hardware, software or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- application processor application processor, AP
- modem processor graphics processing unit
- GPU graphics processing unit
- image signal processor image signal processor
- ISP image signal processor
- controller memory
- video codec digital signal processor
- DSP digital signal processor
- baseband processor baseband processor
- neural network processor neural-network processing unit, NPU
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in 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 use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
- processor 110 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, SIM card interface, and/or universal serial bus (universal serial bus, USB) interface, etc.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input and output
- SIM card interface SIM card interface
- USB universal serial bus
- the wireless communication function of the electronic device 100 can be realized 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.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
- Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on 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) and the like.
- the mobile communication module 150 can receive electromagnetic waves through the antenna 1, and filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
- the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 .
- at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
- at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
- the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
- System global navigation satellite system, GNSS
- frequency modulation frequency modulation, FM
- near field communication technology near field communication, NFC
- infrared technology infrared, IR
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
- the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
- the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband 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), new wireless access technology (new radio access technology, NR), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc.
- GSM global system for mobile communications
- general packet radio service general packet radio service
- CDMA code division multiple access
- WCDMA broadband Code division multiple access
- time division code division multiple access time-division code division multiple access
- LTE long term evolution
- new wireless access technology new radio access technology
- the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- Beidou navigation satellite system beidou navigation satellite system
- BDS Beidou navigation satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite based augmentation systems
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
- the internal memory 121 may be used to store computer-executable program codes including instructions.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 .
- the internal memory 121 may include an area for storing programs and an area for storing data.
- the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
- the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
- the gyro sensor 180B can be used to determine the motion posture of the electronic device 100 .
- the angular velocity of the electronic device 100 around three axes may be determined by the gyro sensor 180B.
- the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
- the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
- Magnetic sensor 180D may include a magnetometer.
- Magnetometers also known as magnetic sensors, are used to measure the strength and direction of the Earth's magnetic field.
- the geomagnetic field refers to the natural magnetic phenomenon existing in the earth's interior.
- the Earth can be thought of as a magnetic dipole, with one pole located near the geographic North Pole and the other near the geographic South Pole.
- An imaginary line through these two poles (the magnetic axis) is at an inclination of about 11.3 degrees from the Earth's axis of rotation.
- the magnetometer has three axes corresponding to the three axes (ie, x, y and z axes) of the electronic device, and the posture of the electronic device on the vehicle is related to the reading value of the magnetometer.
- the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes).
- the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
- the distance sensor 180F is used to measure the distance.
- the electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
- Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
- the light emitting diodes may be infrared light emitting diodes.
- the electronic device 100 emits infrared light through the light emitting diode.
- Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
- the electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to make a call, so as to automatically turn off the screen to save power.
- the ambient light sensor 180L is used for sensing ambient light brightness.
- the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
- the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
- the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket, so as to prevent accidental touch.
- the SIM card interface 195 is used for connecting a SIM card.
- the SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
- the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
- SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different.
- the SIM card interface 195 is also compatible with different types of SIM cards.
- the SIM card interface 195 is also compatible with external memory cards.
- the electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
- the electronic device 100 adopts an eSIM, that is, 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 accelerometer in the electronic device can detect the acceleration of the electronic device in various directions (generally three axes). Through acceleration detection, the running speed, direction, and attitude of the electronic device can be identified.
- the indoor parking lot usually has an ascending slope or a descending slope, and the electronic device can process the reading value of the accelerometer to determine whether the vehicle is driving on the slope.
- FIG. 6 is a flow chart of slope detection performed by an electronic device according to an embodiment of the present application. As shown in Figure 6, the electronic device detects the slope through the accelerometer, which may include:
- the electronic device acquires the three-axis reading values of the accelerometer according to the first cycle.
- the directions of the three axes of the accelerometer are the same as the directions of the three axes of the device coordinate system where the electronic device is located.
- the mobile phone coordinate system is a special dynamic coordinate system used to describe the movement of the mobile phone.
- the phone screen is placed vertically.
- the origin of the mobile phone coordinate system coincides with the center of the mobile phone screen.
- the width direction of the mobile phone screen is defined as the X-axis direction
- the length direction of the mobile phone screen is defined as the Y-axis direction
- the positive direction of the Z-axis (+Z) is perpendicular to the X-axis and the Y-axis and points to the outside of the mobile phone screen.
- the positive direction of the X-axis (+X) may be the rightward direction of the mobile phone screen, and the negative direction of the X-axis (-X) may be the leftward direction of the mobile phone screen.
- the positive direction of the Y axis (+Y) may be the upward direction of the mobile phone screen, and the negative direction of the Y axis (-Y) may be the downward direction of the mobile phone screen.
- the screen of the mobile phone is placed horizontally, as shown in FIG. 7B .
- the mobile phone coordinate system shown in FIG. 7B is equivalent to rotating the mobile phone coordinate system shown in FIG. 7A by 90 degrees to the left.
- the embodiment of the present application does not limit the value of the first cycle.
- the value is 10 milliseconds. It can be understood that the larger the value of the first cycle, the lower the frequency of slope detection, and the lower the power consumption of the electronic device; the smaller the value of the first cycle, the higher the frequency of slope detection, and the electronic device determines whether to enter Indoor environments are more accurate.
- the electronic device converts the three-axis reading values of the accelerometer into target three-axis reading values in the vehicle coordinate system.
- FIG. 8 is a schematic diagram of a vehicle coordinate system provided in an embodiment of the present application.
- the origin of the vehicle coordinate system coincides with the center of mass of the vehicle.
- the X-axis of the vehicle coordinate system is parallel to the ground, and the positive direction of the X-axis (+X) points to the front of the vehicle.
- the positive direction of the Y axis (+Y) points to the left of the driver, and the positive direction of the Z axis (+Z) is perpendicular to the X and Y axes and points upward of the vehicle.
- the device coordinate system where the electronic device is located and the vehicle coordinate system have a conversion relationship, and the conversion relationship is related to the posture of the electronic device in the vehicle.
- the electronic device can obtain the conversion relationship, and convert the three-axis reading value of the accelerometer into the target three-axis reading value in the vehicle coordinate system according to the conversion relationship.
- the electronic device is placed in the vehicle in a relatively stable posture, and the device coordinate system where the electronic device is located and the vehicle coordinate system have a stable transformation relationship.
- the device coordinate system where the electronic device is located and the vehicle coordinate system have a stable transformation relationship.
- FIG. 2A an electronic device 200 is placed in a rack 201 .
- the electronic device 200 is placed horizontally, and the coordinate system of the mobile phone can refer to FIG. 7B .
- the electronic device determines the vehicle tilt angle according to the target three-axis read value.
- the vehicle inclination angle may indicate the inclination angle of the road the vehicle is currently traveling on. It can be understood that if the vehicle is currently driving on a horizontal road section, the vehicle tilt angle is approximately 0 degrees. If the vehicle is currently driving on the ascending ramp or descending ramp of the indoor parking lot, the vehicle inclination angle is the inclination angle of the ascending ramp or descending ramp.
- the electronic device judges whether the tilt angle of the vehicle is greater than a preset angle.
- the tilt angle of the vehicle is greater than the preset angle, it means that the vehicle is driving on an inclined road section, which may be an ascending or descending slope of the indoor parking lot, and it is determined that the vehicle has entered the indoor environment.
- the embodiment of the present application does not limit the value of the preset angle.
- it can be set according to relevant specifications of the inclination angle of the building ramp, such as 5 degrees.
- the angle of the ramp in the indoor parking lot can be obtained through machine learning algorithms, so as to distinguish it from mountain ramps, etc., and improve the accuracy of determining whether the vehicle enters the indoor environment.
- multiple vehicle tilt angles obtained according to the first cycle within the first time period may be obtained, and whether the vehicle is on an ascending slope or descending is determined according to the multiple vehicle tilt angles. ramp.
- the inclination angles of multiple vehicles within the first time period are all greater than the preset angle, it means that the vehicles are all on the ascending slope or descending slope during the first time period, and it can be determined that the vehicle has entered the indoor environment.
- the embodiment of the present application does not limit the value of the first time period.
- the electronic device converts the three-axis reading value of the accelerometer into the target three-axis reading value in the vehicle coordinate system in S602, it may further include:
- the electronic device performs smoothing processing on the three-axis reading values of the accelerometer to obtain smoothed three-axis reading values.
- the electronic device converts the smoothed three-axis reading values into target three-axis reading values in the vehicle coordinate system.
- FIG. 9 is a flow chart of the electronic equipment provided in the embodiment of the present application for detecting the entrance of the barrier gate. As shown in Figure 9, the electronic equipment uses the accelerometer to detect the entrance of the barrier gate, which may include:
- the electronic device acquires the three-axis reading values of the accelerometer according to the second cycle.
- the embodiment of the present application does not limit the value of the second period.
- the value is 10 milliseconds.
- the electronic device judges whether the numerical variation trend of the multiple reading values is first decreasing, then remaining flat, and then increasing.
- the second time period is a time period before the current time and with the current time as the latest time.
- the target axis is an axis parallel to the vehicle body.
- the target axis may be the Z axis of the device coordinate system.
- Numerical trends of multiple readings include, but are not limited to, any of the following: increasing numerical value, decreasing numerical value, first increasing and then decreasing, first decreasing and then increasing, first increasing and then remaining flat, and then increasing Decrease, or, the value first decreases and then stays the same and then increases.
- the numerical increasing trend includes any one of the following: the numerical value increases sequentially or the numerical value fluctuates. The value increases sequentially means that the value at the next moment is greater than the value at the previous moment. Increased value fluctuation means that the value of a small number of adjacent moments is allowed to fluctuate, that is, the value at the next moment is less than or equal to the value at the previous moment, but the overall trend of multiple values is gradually increasing.
- the decreasing trend of numerical value includes any one of the following: sequentially decreasing numerical values or decreasing numerical fluctuations.
- the value first increases and then decreases can be divided into two parts: value increase and value decrease, and the overall change trend presents an inverted V-shaped curve.
- the overall change trend in which the value decreases first and then increases presents a V-shaped curve.
- There is an intermediate flat process and the overall change trend presents an inverted U-shaped curve.
- the embodiment of the present application does not limit the number of reading values of the accelerometer included in each change stage.
- the embodiment of the present application does not limit the value of the second time period
- the duration of the second time period may be N times the second period, and N is an integer greater than 1.
- the second time period may include the reading values of the accelerometer in N second periods.
- the value of the second period may be smaller, and the value of the second time period may be larger, so as to ensure that the number of multiple numerical values is large.
- the vehicle 100 first passes through the barrier gate 102 , and then enters the indoor parking lot 101 through the descending ramp 103 .
- the horizontal axis represents time in milliseconds (ms)
- the second period is 10 ms
- the second time period is 50 ms.
- the first dotted line indicates that the vehicle 100 travels to the position of the barrier gate 102
- the second dotted line indicates that the vehicle 100 enters the descending ramp 103 through the barrier gate 102 .
- the multiple readings of the accelerometer on the target axis show a trend of first decreasing, then remaining flat and then increasing, presenting a U-shaped curve, forming a typical vehicle passing through the barrier Characteristics.
- the electronic device can acquire multiple reading values within multiple second time periods, and determine a change trend of the multiple reading values within each second time period, thereby determining whether the vehicle passes through the barrier gate.
- the current time is 160ms
- the electronic device obtains 5 reading values between 110 and 160ms, and it is determined that the value is not decreased first, then equalized, and then increased.
- the current time is updated to 170ms, and the electronic device then obtains 5 readings between 120 and 170ms, and it is determined not to decrease first, then remain flat, and then increase. and so on.
- the current moment is updated to 190ms, and the electronic device obtains 5 readings between 140 and 190ms. It is determined that the change trend is firstly decreased, then flattened, and then increased. It can be determined that the vehicle passes through the barrier gate.
- the vehicle 100 passes through the descending ramp 103 first, and then enters the indoor parking lot 101 through the barrier gate 102 .
- the second period is 1s.
- the first dashed line indicates the position where the vehicle travels to the barrier gate 102 via the descending ramp 103 .
- the second dashed line represents the passage of the vehicle 100 through the barrier 102 . It can be seen that between the first dotted line and the second dotted line, the multiple reading values of the accelerometer on the target axis show a trend of first decreasing, then remaining flat, and then increasing, presenting a U-shaped curve.
- Magnetometers in electronic devices detect the strength and direction of Earth's magnetic signals.
- the magnetometer has three axes, corresponding to the three axes of the device coordinate system of the electronic device.
- the three-axis reading of the magnetometer is related to the orientation of the electronics in the vehicle. Let's illustrate with an example.
- the electronic device 200 is horizontally placed in the bracket 201 , and the coordinate system of the mobile phone can be referred to in FIG. 7B .
- the X-axis direction is a vertical direction
- the Y-axis direction and Z-axis direction are horizontal directions.
- the architectural structure of the indoor environment changes less in the vertical direction
- the architectural structure of the indoor environment changes more in the horizontal direction. Therefore, the magnetic force change in the X-axis direction is usually smaller than the magnetic force changes in the Y-axis and Z-axis directions.
- the electronic device is vertically placed in a bracket in the vehicle, and the coordinate system of the mobile phone can be referred to in FIG. 7A .
- the Y-axis direction is a vertical direction
- the X-axis direction and Z-axis direction are horizontal directions.
- the magnetic force variation in the Y-axis direction is generally smaller than the magnetic force variation in the X-axis and Z-axis directions.
- the indoor environment usually has a peripheral structure formed of cement and steel bars. Structures such as concrete and rebar distort the magnetic manifestation of Earth's magnetism.
- the electronics can process the magnetometer readings to determine whether the vehicle has entered the indoor environment.
- FIG. 11 is a flow chart of an electronic device performing geomagnetic signal detection through a magnetometer according to an embodiment of the present application. As shown in Figure 11, the electronic device detects the geomagnetic signal through the magnetometer, which may include:
- the electronic device acquires three-axis reading values of the magnetometer according to a third cycle.
- the embodiment of the present application does not limit the value of the third period.
- the value is 10 milliseconds.
- the electronic device For multiple reading values of the magnetometer within the third time period, acquires a standard score value of each reading value of the magnetometer.
- the third time period is a time period before the current time and with the current time as the latest time.
- the duration of the third time period may be N times the third period, and N is an integer greater than 1.
- the third time period may include reading values of the magnetometer in N third periods. for example. Assume that the third period is 10ms, and the third time period is 2s. For each axis of the magnetometer, the third time period includes a total of 200 magnetometer readings for 2s/10ms.
- the standard score value (z-score or zscore) is illustrated below by an example.
- the standard score value of the magnetometer reading value zscore (magnetometer reading value ⁇ mean value)/standard deviation.
- the average value is the average value of multiple reading values in the third time period
- the standard deviation is the standard deviation corresponding to the multiple reading values in the third time period.
- the third time period includes 7 reading values, specifically ⁇ 25, 28, 31, 34, 37, 40, 43 ⁇ .
- the variance corresponding to the third time period is:
- the standard deviation corresponding to the third time period is:
- the electronic device determines that the vehicle enters the indoor environment.
- the embodiment of the present application does not limit the values of the preset value and the preset number.
- the preset value may be 2.2.
- the default value can be 20.
- the preset number may be related to the direction of the magnetometer reading. Assume that, for the device coordinate system shown in FIG. 7A , the direction of the Y-axis is perpendicular to the ground, and the directions of the X-axis and Z-axis are parallel to the ground. Generally, less steel or cement structure changes occur in the direction perpendicular to the ground, and more changes occur in the direction parallel to the ground. Therefore, the preset number corresponding to the Y-axis direction may be 20, and the preset number corresponding to the X-axis and Z-axis directions may be 40.
- the multiple reading values of the magnetometer within the third time period may be counted separately for each axis of the magnetometer. That is, for each axis of the magnetometer, multiple readings on the axis within the third time period are acquired, and the standard score value of each magnetometer reading is calculated according to the multiple readings of the magnetometer on the axis.
- the number of magnetometer readings whose standard score value is greater than the preset value within the third time period is greater than the preset number.
- the preset numbers corresponding to the three axes of the magnetometer may be the same or different.
- the target axis of the magnetometer for the target axis of the magnetometer, multiple reading values of the magnetometer on the target axis within the third time period may be obtained, according to the multiple reading values of the magnetometer on the target axis The readings calculate the normalized fractional value of each magnetometer reading.
- the electronic device determines that the vehicle enters the indoor environment.
- the target axis may be an axis in the horizontal direction.
- the target axis may be the X axis and/or the Z axis.
- each reading value in the third time period it may be a normalized value of the three-axis reading values of the magnetometer in the third period.
- the three-axis readings of the magnetometer are expressed as mx, my and mz respectively, and the normalized values of the three-axis readings of the magnetometer are expressed as This implementation may be applicable to scenarios where the attitude of the electronic device in the vehicle is unknown.
- the following describes the change of the reading value of the magnetometer when the vehicle enters the indoor environment with an example.
- FIG. 12 is a schematic diagram of changes in reading values of the magnetometer provided in the embodiment of the present application.
- the horizontal axis represents time, and the unit is milliseconds (ms).
- the first dashed line represents the time when the vehicle enters the indoor environment. It can be seen that after the vehicle enters the indoor environment, the reading value of the magnetometer increases significantly.
- Cellular networks are also known as mobile networks.
- the cellular network has developed from 2G to 5G, and the embodiment of the present application does not limit the communication technology adopted by the cellular network.
- it includes but is not limited to at least one of the following: GSM, GPRS, CDMA, WCDMA, TD-SCDMA, LTE, NR, and the like.
- the indoor environment usually has a surrounding building structure. Shading by building structures can cause sudden changes, often worse, in the strength of cellular signals detected by electronic devices. Therefore, the electronic device can determine whether the vehicle has entered the indoor environment based on the change in the strength of the cellular signal.
- FIG. 13 is a flow chart of cellular signal detection performed by an electronic device according to an embodiment of the present application. As shown in Figure 13, the electronic device performs cellular signal detection, which may include:
- the electronic device acquires signal strength values of multiple cells according to a fourth period.
- the multiple cells include a serving cell (serving cell) of the electronic device and neighboring cells of the serving cell.
- the adjacent cells of the serving cell may include at least one of the following: intra-system same-frequency adjacent cells, intra-system inter-frequency adjacent cells, or inter-system adjacent cells.
- the embodiment of the present application does not limit the value of the fourth period.
- the value is 2 seconds.
- the electronic device uses a clustering (clustering) algorithm to obtain two clustering results.
- the fourth time period is a time period before the current time and with the current time as the latest time.
- the embodiment of the present application does not limit the value of the fourth time period.
- the value is 14 seconds.
- the duration of the fourth time period may be N times the fourth period, where N is an integer greater than 1.
- the fourth time period may include signal strength values of multiple cells in N fourth periods. Assuming that there are K cells, the fourth time period includes N*K signal strength values in total.
- FIG. 14 is a schematic diagram of signal strengths of multiple cells detected by an electronic device according to an embodiment of the present application.
- the fourth period of time is 14 seconds in total from 1 minute to 1 minute and 14 seconds, the fourth period is 2 seconds, and the current time is 1 minute and 14 seconds.
- each cell includes 7 signal strength values.
- the seven signal strength values of cell C1 in the fourth time period are: -55dBm, -58dBm, -60dBm, -77dBm, -87dBm, -93dBm, -99dBm.
- the signal strength value of the cell detected by the electronic device usually decreases gradually until the signal strength is so low that it cannot be measured.
- the signal strength value of the previous fourth period may be used for filling.
- the signal strength value of the previous fourth cycle that is, the third fourth cycle
- the signal strength of a certain fourth period in the fourth time period may be filled with a preset minimum signal strength, for example, -140dBm. for example.
- a preset minimum signal strength for example, -140dBm.
- a clustering algorithm is used to divide the signal strength values of the plurality of cells within the fourth time period into two types of results. Assume that each cell in the fourth time period includes N signal strength values in the fourth period. One of the clustering results includes the signal strength values of multiple cells in the M fourth periods in the N fourth periods, and the other clustering result includes signal strength values in the N fourth periods except for the M fourth periods. Signal strength values of the plurality of cells over other fourth periods.
- the embodiment of the present application does not describe the principle of the clustering algorithm in detail, and an existing algorithm may be used.
- the clustering algorithm may be a Kmeans clustering algorithm.
- Another clustering result includes the signal strength values of cells C1 to C7 in the last fourth period (ie, the last 2 seconds), a total of 7 signal strength values.
- the electronic device determines that the vehicle enters the indoor environment.
- X is 1 or 2.
- all signal strength values in the fourth period are divided into two categories through a clustering algorithm. If one of the clustering results includes the last 1 or last 2 signal strength values in the fourth period, it means that the strength value of the cellular signal has changed suddenly, indicating that the wireless signal environment where the vehicle is located has changed, for example, from The outdoor environment enters the indoor environment.
- S1302 if the electronic device determines that at least one of the following situations occurs, S1302 is not executed.
- the first situation cell reselection occurs in the electronic device within the fourth time period.
- the second case the signal strength of at least one cell increases gradually during the fourth time period.
- the third case the number of cells in the last X fourth periods in the fourth time period is different from the number of cells in the rest of the fourth periods.
- cell reselection refers to the phenomenon that the electronic device reselects the serving cell by using the cell reselection mechanism, and the serving cell is changed. If the electronic device undergoes cell reselection within the fourth time period, the multiple cells in S1301 will be changed as a whole due to the change of the serving cell.
- the cell reselection may be divided into the cell before reselection and the cell after reselection. for the two clustering results.
- the last X fourth periods of the fourth time period are divided into a clustering result, but this clustering result is caused by cell reselection, not Caused by a sudden change in the cell signal. Therefore, S1302 will not be executed when cell reselection occurs, which improves the accuracy of the electronic device determining whether the vehicle enters the indoor environment through the cell signal.
- the signal strength of at least one cell increases gradually, indicating that the vehicle may have entered a strong signal area, which is not a characteristic of the vehicle entering an indoor environment.
- the signal strength of the cell is gradually reduced, especially when entering the entrance of the indoor environment, the signal strength of the cell usually decreases suddenly.
- a femtocell or the like is configured in an indoor environment, it is usually configured at a place far from an entrance of the indoor environment to enhance signal coverage in a deep area of the indoor environment. Therefore, when the signal of the cell gradually increases, S1302 will not be executed, which improves the accuracy of the electronic device determining whether the vehicle enters the indoor environment through the signal of the cell.
- the embodiment of the present application does not limit the number of cells whose signal gradually increases.
- the last X cells may be clustered when using the clustering algorithm
- the fourth period is divided into a clustering result.
- this clustering result is not caused by a sudden change in cell signals, but by a sudden change in the number of cells. Therefore, S1302 will not be executed, and the accuracy of determining whether the vehicle enters the indoor environment by the electronic device through the cell signal is improved.
- the number of cells may be an average value.
- the fourth period is 2 seconds
- the fourth time period is 14 seconds
- the indoor environment usually has a surrounding building structure.
- the shading of the building structure will result in different light intensities outside and inside. Therefore, the electronic device can determine whether the vehicle enters the indoor environment according to the change of the light intensity inside the vehicle.
- FIG. 16 is a flowchart of light intensity detection performed by an electronic device provided in an embodiment of the present application. As shown in Figure 16, the electronic device detects the light intensity through the light sensor, which may include:
- the electronic device acquires the light intensity value detected by the light sensor according to the fifth cycle.
- the embodiment of the present application does not limit the value of the fifth period.
- the value is 1 second.
- the electronic device acquires the light intensity mean value and the light intensity variance of the multiple light intensity values in the fifth time period.
- the fifth time period is a time period before the current time and with the current time as the latest time.
- the embodiment of the present application does not limit the value of the fifth time period, and the duration of the fifth time period may be N times the fifth period, where N is an integer greater than 1.
- the fifth time period includes N light intensity values detected by the light sensor in the fifth period. for example. Assume that the fifth period is 1s, and the fifth time period is 20s.
- the fifth time period includes a total of 20 light intensity values of 20s/1s.
- the fifth time period includes multiple light intensity values.
- the average value of light intensity in the fifth time period reflects the average value of light intensity in the fifth time period.
- Variance indicates the average deviation of individual data in a series from the mean.
- the light intensity variance in the fifth time period indicates the average degree of deviation of the multiple light intensity values from the light intensity mean value in the fifth time period. It can be understood that the greater the variance of the light intensity in the fifth time period, the greater the fluctuation of the light intensity value.
- the light intensity mean value and light intensity variance are described below by way of examples.
- the fifth period is 1s
- the fifth time period is 7s
- the fifth time period includes 7 light intensity values.
- the seven light intensity values are, for example, ⁇ 25, 28, 31, 34, 37, 40, 43 ⁇ .
- the light intensity variance corresponding to the fifth time period is:
- the electronic device determines that the vehicle enters the indoor environment.
- the embodiment of the present application does not limit the value of the preset light intensity variance threshold, for example, 800 Lux.
- the light intensity variance in the fifth time period is greater than or equal to the preset light intensity variance threshold, it indicates that the light intensity value fluctuates greatly in the fifth time period, and the light intensity fluctuation of the environment where the electronic device is located is relatively large. For example, it might be from indoors to outdoors, or from outdoors to indoors. If the last light intensity value in the fifth time period is smaller than the average light intensity value in the fifth time period, it means that the light intensity becomes lower, and it can be determined that the vehicle enters the indoor environment.
- the electronic device determines that the vehicle enters indoor environment.
- the embodiment of the present application does not limit the number of multiple consecutive fifth time periods and the value of the preset difference.
- the variance of the last second continues to be close to the threshold of light intensity variance for several consecutive seconds, and the light intensity of the last second is less than the average value of light intensity, it can be determined that the vehicle enters the indoor environment .
- S1602 if the electronic device determines that at least one of the following situations occurs, S1602 is not executed.
- the first case determine that the current time is at night.
- the second case obtain weather information, and determine that it is cloudy or rainy according to the weather information.
- the third situation it is determined that the electronic equipment is already in an indoor environment.
- the nighttime period corresponds to the daytime period, and the embodiment of the present application does not limit the duration of the nighttime period and the daytime period, for example, the nighttime period includes 8:00 pm to 5:00 am, and the daytime period includes 8:00 am to 6:00 pm .
- the electronic device may be placed near the window in the vehicle.
- a detection of vehicles entering an indoor environment is provided. method.
- FIG. 17 is a flowchart of a method for detecting a vehicle entering an indoor environment provided by an embodiment of the present application.
- the method for detecting a vehicle entering an indoor environment provided in this embodiment is executed by an electronic device.
- Electronic equipment is placed inside the vehicle.
- the detection method for a vehicle entering an indoor environment provided in this embodiment may include:
- the electronic device acquires multiple detection results at the current moment according to the detection cycle.
- the multiple detection results include at least two of the first detection result, the second detection result, the third detection result and the fourth detection result.
- the first detection result is determined by the electronic device through the data of the accelerometer to indicate whether the vehicle has driven into the ramp at the entrance of the indoor environment;
- the second detection result is determined by the electronic device through the data of the accelerometer to indicate whether the vehicle has passed the indoor environment.
- the third detection result is determined by the electronic device through the data of the magnetometer to indicate whether the vehicle has entered the indoor environment;
- the fourth detection result is determined by the electronic device based on the strength data of the cellular signal to indicate whether the vehicle is Drive into the indoor environment.
- the implementation method of the above-mentioned ramp detection by the electronic device through the accelerometer please refer to the implementation method of the above-mentioned ramp detection by the electronic device through the accelerometer; for obtaining the second detection result, please refer to the above-mentioned implementation method for the electronic device to detect the entrance of the barrier gate through the accelerometer; for obtaining the third detection
- the implementation method of the above-mentioned electronic device for detecting the geomagnetic signal through the magnetometer and for obtaining the fourth detection result, please refer to the above-mentioned implementation method for the above-mentioned electronic device to perform the detection of the cellular signal through the communication card, which will not be repeated here.
- the electronic device may perform at least two of ramp detection, barrier gate entry detection, geomagnetic signal detection, and cellular signal detection, and obtain corresponding detection results.
- the multiple detection results include The at least two detection results.
- the electronic device may perform ramp detection and gate entry detection, and acquire a first detection result and a second detection result, and the multiple detection results include the first detection result and the second detection result.
- the electronic device can perform ramp detection, barrier gate entry detection, and geomagnetic signal detection, and obtain the first detection result, the second detection result, and the third detection result, and the multiple detection results include the first detection result result, second test result and third test result.
- the electronic device may perform at least M types of ramp detection, barrier gate warehousing detection, geomagnetic signal detection, and cellular signal detection, and obtain N types of detection results among the M types of detections , the multiple detection results include N types of detection results.
- M and N are positive integers greater than 1, and N is less than or equal to M.
- the electronic device can perform ramp detection, barrier gate entry detection, geomagnetic signal detection and cellular signal detection, and obtain the first detection result, the second detection result, the second detection result, and the second detection result.
- Three detection results and a fourth detection result, the multiple detection results include the first detection result, the second detection result and the third detection result, or include the first detection result, the second detection result and the fourth detection result.
- this embodiment does not limit the value of the detection period, for example, the value is 1 second.
- the values of the detection period may refer to the values of the first period to the fifth period and/or the values of the first time period to the fifth time period.
- the current moment is the detection moment determined according to the detection period, also referred to as the current detection moment.
- the detection period is 1 second, and the detection time may be 2 minutes and 20 seconds, 2 minutes and 21 seconds, 2 minutes and 22 seconds and so on.
- a detection time period may be preset.
- the first to fourth detection results at the current moment may include the first to fourth detection results within a detection time period.
- the detection period is 20 seconds
- the current time is 2 minutes and 20 seconds.
- the first to fourth detection results at the current moment may include the first to fourth detection results within 20 seconds of 2 minutes 0 seconds to 2 minutes and 20 seconds.
- S1702. Determine whether the vehicle enters the indoor environment according to multiple detection results.
- the method for detecting that a vehicle enters an indoor environment utilizes an electronic device placed in the vehicle to detect whether the vehicle enters an indoor environment.
- the electronic equipment includes an accelerometer, a magnetometer and a communication card for cellular communication.
- the electronic device can perform ramp detection and/or barrier gate entry detection to determine whether the vehicle has driven into the ramp and/or passed the barrier gate at the entrance of the indoor environment .
- the electronic device can detect the geomagnetic signal to determine whether the geomagnetic signal has changed significantly.
- the electronic device can perform cellular signal detection to determine whether the signal strength detected by the electronic device suddenly drops suddenly.
- the detection method for a vehicle entering an indoor environment provided in this embodiment combines at least two detection results of ramp detection, gate entry detection, geomagnetic signal detection, and cellular signal detection to determine that a vehicle enters an indoor environment, which improves the accuracy of determining whether a vehicle enters an indoor environment. The accuracy of entering the indoor environment.
- the light intensity detection that relies too much on the light sensor is avoided, it is detected by the accelerometer, magnetometer or communication card based on the actual driving scene of the vehicle entering the indoor environment, which further improves the accuracy of determining whether the vehicle enters the indoor environment.
- the detection power consumption is reduced and the system load is reduced.
- determining whether the vehicle enters the indoor environment according to multiple detection results may include:
- N is greater than or equal to 2 and less than or equal to 4.
- the accuracy of whether to enter the indoor environment reduces the system load.
- this embodiment does not limit at least N detection results.
- the at least N detection results may include at least two of the first detection result, the second detection result and the third detection result.
- S1702 it may also include:
- the electronic device acquires the fifth detection result of the light intensity detection performed by the electronic device at the current moment according to the detection period.
- S1702 determine whether the vehicle enters the indoor environment according to multiple detection results, including:
- the fifth detection result indicates that the vehicle has entered the indoor environment
- the detection results of light intensity detection are also referred to, which further improves the ability to determine whether the vehicle has entered the indoor environment. accuracy.
- FIG. 18 is a schematic diagram of a detection result of a vehicle entering an indoor environment provided by an embodiment of the present application.
- the horizontal axis represents time from 13:26 to 13:28.
- the electronic device acquires the first to fifth detection results in the previous 20 seconds every second, and makes a comprehensive judgment based on the first to fifth detection results to determine whether the vehicle has entered the indoor environment.
- the first period is 1 second
- the first time period is 5 seconds
- the preset angle is 5 degrees.
- the electronic device can judge whether in the past 20 seconds, there is a state where the vehicle tilt angle is greater than 5 degrees for 5 consecutive seconds.
- the slope detection result can be seen as the horizontal solid line in FIG. 18 , which indicates the duration for which the vehicle tilt angle is greater than 5 degrees.
- the electronic device can judge whether the reading value of the accelerometer presents a U-shaped state in which the reading value of the accelerometer first decreases, then stays the same and then increases within the past 20 seconds for 10 consecutive seconds, that is, to determine whether the vehicle passes the barrier.
- the third period is 10 milliseconds, and the third time period is 2 seconds.
- the electronic device can determine whether the reading value of the magnetometer fluctuates greatly within 2 consecutive seconds in the past 20 seconds.
- the results of the geomagnetic signal detection can be seen in the gray column in Figure 18, indicating that the fluctuation of the geomagnetic signal within 2 consecutive seconds is large.
- the electronic device can determine whether there has been a sudden dip in the cellular signal in the last 2 seconds of 14 consecutive seconds in the past 20 seconds.
- the cellular signal detection results can be seen as the vertical line in Fig. 18, indicating the last 2 seconds of the cellular signal burst dip for 14 consecutive seconds.
- the electronic device can determine whether the light intensity variance exceeds the light intensity variance threshold in the past 20 seconds.
- the light intensity detection results can be seen in the horizontal dotted line in FIG. 18 , which indicates the duration for which the light intensity variance exceeds the light intensity variance threshold.
- the electronic device can determine that the vehicle entered the indoor environment at 13:27:21.
- the electronic device includes hardware and/or software modules corresponding to each function.
- the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions in combination with the embodiments for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
- the embodiment of the present application may divide the electronic device into functional modules according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one module. It should be noted that the division of modules in the embodiment of the present application is schematic, and is only a logical function division, and there may be other division methods in actual implementation. It should be noted that the names of the modules in the embodiments of the present application are illustrative, and the names of the modules are not limited during actual implementation.
- FIG. 19 is a schematic structural diagram of a detection device for a vehicle entering an indoor environment provided by an embodiment of the present application.
- the device for detecting a vehicle entering an indoor environment provided in this embodiment is used to implement the method for detecting a vehicle entering an indoor environment provided in the method embodiment of the present application, and the technical principle and technical effect are similar.
- the detection device for a vehicle entering an indoor environment can be applied to electronic equipment, the electronic equipment is placed in the vehicle, and the device includes:
- An acquisition module 1901 configured to acquire a plurality of detection results according to a detection period, the plurality of detection results including at least two of the first detection result, the second detection result, the third detection result and the fourth detection result; the first detection result
- the first detection result is determined by the electronic device through the data of the accelerometer to indicate whether the vehicle has driven into the ramp at the entrance of the indoor environment
- the second detection result is the data of the electronic device through the accelerometer Determined to indicate whether the vehicle passes through the gate at the entrance of the indoor environment
- the third detection result is determined by the electronic device through the data of the magnetometer to indicate whether the vehicle enters the indoor environment, the first 4.
- the detection result is determined by the electronic device according to the strength data of the cellular signal to indicate whether the vehicle has entered the indoor environment;
- the processing module 1902 is configured to determine whether the vehicle enters the indoor environment according to the multiple detection results.
- processing module 1902 is used for:
- N is greater than or equal to 2 and less than or equal to 4.
- the plurality of detection results further include a fifth detection result
- the fifth detection result is determined by the electronic device through the data of the light sensor and is used to indicate whether the vehicle enters the indoor environment.
- a sending module is also included, and the sending module is used for:
- the notification information is used to indicate that the vehicle enters the indoor environment.
- the obtaining module 1901 includes a first obtaining unit, and the first obtaining unit is used for:
- the first detection result indicates that the vehicle has driven into a ramp at the entrance of the indoor environment.
- the first acquisition unit is used for:
- the first detection result indicates that the vehicle drives into the ramp at the entrance of the indoor environment; wherein , the first time period includes a plurality of the first periods.
- the obtaining module 1901 includes a second obtaining unit, and the second obtaining unit is used for:
- the second detection result indicates that the vehicle passes through the barrier gate at the entrance of the indoor environment.
- the first target axis is parallel to the driving direction of the vehicle.
- the obtaining module 1901 includes a third obtaining unit, and the third obtaining unit is used for:
- the third time period includes a plurality of third cycles
- the three-axis readings of the magnetometer include the three-axis readings of the magnetometer. readings on the three axes of the magnetometer;
- the third detection result indicates that the vehicle has entered an indoor environment.
- the target reading value is any one of the following:
- the second target axis is an axis in the magnetometer
- the second target axis is an axis in the horizontal direction.
- the obtaining module 1901 includes a fourth obtaining unit, and the fourth obtaining unit is used for:
- the fourth time period includes multiple fourth cycles, and the multiple cells include a serving cell of the electronic device and neighboring cells of the serving cell;
- the fourth detection result indicates that the vehicle enters the indoor environment; wherein, the two clustering results Including the first clustering result and the second clustering result, X is 1 or 2.
- the first acquisition unit is also used for:
- the electronic device Before using a clustering algorithm to process the signal strength values within the fourth time period, determine that the electronic device has not undergone cell reselection within the fourth time period; and determine that each of the cells is within the fourth time period A plurality of signal strength values in the fourth time period show a decreasing trend; and, determine the number of cells in the X fourth periods and divide the X fourth periods in the fourth time period The number of cells in the other fourth periods is the same.
- the obtaining module 1901 includes a fifth obtaining unit, and the fifth obtaining unit is used for:
- the fifth time period includes a plurality of the fifth periods
- the fifth detection result indicates the The vehicle described above enters the indoor environment.
- the fifth acquiring unit is further configured to determine that the current moment is in the daytime period before acquiring the multiple light intensity values detected by the light sensor within the fifth time period; and determine that the current weather is not cloudy or rainy .
- An embodiment of the present application provides an electronic device, referring to the structure shown in FIG. 5 .
- the electronic device may include a processor, and the processor is used to be coupled with the memory, and read the instructions in the memory and make the electronic device execute the technical solutions in the above method embodiments according to the instructions, and its realization principle and technical effect are similar to those of the above related embodiments, I won't repeat them here.
- An embodiment of the present application provides a computer program product.
- the computer program product When the computer program product is running on an electronic device, it enables the electronic device to execute the technical solution in the above-mentioned method embodiment, and its realization principle and technical effect are similar to those of the above-mentioned related embodiments. , which will not be repeated here.
- An embodiment of the present application provides a computer-readable storage medium, on which program instructions are stored, and when the program instructions are executed by an electronic device, the electronic device executes the technical solutions of the foregoing embodiments. Its implementation principle and technical effect are similar to those of the above-mentioned related embodiments, and will not be repeated here.
Landscapes
- Engineering & Computer Science (AREA)
- Remote Sensing (AREA)
- Radar, Positioning & Navigation (AREA)
- Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- General Physics & Mathematics (AREA)
- General Life Sciences & Earth Sciences (AREA)
- Environmental & Geological Engineering (AREA)
- Life Sciences & Earth Sciences (AREA)
- Geology (AREA)
- Mechanical Engineering (AREA)
- Transportation (AREA)
- Mathematical Physics (AREA)
- Electromagnetism (AREA)
- Computer Networks & Wireless Communication (AREA)
- Traffic Control Systems (AREA)
Abstract
L'invention concerne un procédé de détection pour un véhicule entrant dans un environnement intérieur, un dispositif électronique et un support de stockage. Un dispositif électronique est placé dans un véhicule. Le dispositif électronique comprend un accéléromètre, un magnétomètre et une carte de communication. Le dispositif électronique effectue une détection de rampe et une détection d'entrée de grille de barrière en utilisant l'accéléromètre pour obtenir un premier résultat de détection et un deuxième résultat de détection, respectivement ; effectue une détection de signal géomagnétique en utilisant le magnétomètre pour obtenir un troisième résultat de détection ; et réalise une détection de signal cellulaire en utilisant la carte de communication pour obtenir un quatrième résultat de détection. Le procédé de détection pour un véhicule entrant dans un environnement intérieur comprend les étapes consistant à : obtenir une pluralité de résultats de détection selon un cycle de détection et déterminer si le véhicule entre dans l'environnement intérieur selon au moins deux des résultats de détection. En détectant séparément au moyen de l'accéléromètre, du magnétomètre et de la carte de communication et en effectuant une détermination complète sur la base d'au moins deux résultats de détection, la précision d'identification du fait que le véhicule entre ou non dans l'environnement intérieur est améliorée.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111447613.6A CN116202514A (zh) | 2021-11-30 | 2021-11-30 | 车辆进入室内环境的检测方法、电子设备和存储介质 |
CN202111447613.6 | 2021-11-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023098365A1 true WO2023098365A1 (fr) | 2023-06-08 |
Family
ID=86506489
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/128305 WO2023098365A1 (fr) | 2021-11-30 | 2022-10-28 | Procédé de détection pour véhicule entrant dans un environnement intérieur, dispositif électronique et support de stockage |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116202514A (fr) |
WO (1) | WO2023098365A1 (fr) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2138987A1 (fr) * | 2008-06-25 | 2009-12-30 | Ford Global Technologies, LLC | Procédé pour déterminer une propriété d'un état de conducteur/véhicule/environnement |
US20130197770A1 (en) * | 2012-01-30 | 2013-08-01 | Advics Co., Ltd. | Brake control device for vehicle |
CN104680828A (zh) * | 2013-11-28 | 2015-06-03 | 现代摩比斯株式会社 | 车辆停车位置跟踪装置及方法 |
US20160378075A1 (en) * | 2015-06-24 | 2016-12-29 | Stmicroelectronics S.R.L. | Ultraviolet sensor for detecting indoor/outdoor condition |
CN107925981A (zh) * | 2015-09-14 | 2018-04-17 | 高通股份有限公司 | 使用辅助信息扩充室内室外检测 |
CN108064024A (zh) * | 2017-12-13 | 2018-05-22 | 广东欧珀移动通信有限公司 | 基于定位模块的控制方法、装置、存储介质及移动终端 |
CN110220550A (zh) * | 2018-03-02 | 2019-09-10 | 罗伯特·博世有限公司 | 用于室内/室外检测的方法和装置、控制单元和便携设备 |
-
2021
- 2021-11-30 CN CN202111447613.6A patent/CN116202514A/zh active Pending
-
2022
- 2022-10-28 WO PCT/CN2022/128305 patent/WO2023098365A1/fr unknown
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2138987A1 (fr) * | 2008-06-25 | 2009-12-30 | Ford Global Technologies, LLC | Procédé pour déterminer une propriété d'un état de conducteur/véhicule/environnement |
US20130197770A1 (en) * | 2012-01-30 | 2013-08-01 | Advics Co., Ltd. | Brake control device for vehicle |
CN104680828A (zh) * | 2013-11-28 | 2015-06-03 | 现代摩比斯株式会社 | 车辆停车位置跟踪装置及方法 |
US20160378075A1 (en) * | 2015-06-24 | 2016-12-29 | Stmicroelectronics S.R.L. | Ultraviolet sensor for detecting indoor/outdoor condition |
CN107925981A (zh) * | 2015-09-14 | 2018-04-17 | 高通股份有限公司 | 使用辅助信息扩充室内室外检测 |
CN108064024A (zh) * | 2017-12-13 | 2018-05-22 | 广东欧珀移动通信有限公司 | 基于定位模块的控制方法、装置、存储介质及移动终端 |
CN110220550A (zh) * | 2018-03-02 | 2019-09-10 | 罗伯特·博世有限公司 | 用于室内/室外检测的方法和装置、控制单元和便携设备 |
Also Published As
Publication number | Publication date |
---|---|
CN116202514A (zh) | 2023-06-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11892299B2 (en) | Information prompt method and electronic device | |
JP6227107B2 (ja) | 常時オンカメラサンプリング法 | |
JP5871952B2 (ja) | ナビゲーションのためのカメラ対応ヘッドセット | |
US9794736B2 (en) | Low power always-on determination of indoor versus outdoor state | |
WO2018057100A1 (fr) | Sélection commandée de dispositifs de capture de lumière | |
CN112995409A (zh) | 智能通信策略生效场景的显示方法及移动终端 | |
US20230379408A1 (en) | Positioning Method and Electronic Device | |
RU2668609C1 (ru) | Способ фотографирования для интеллектуального летательного устройства и интеллектуальное летательное устройство | |
CN113790732A (zh) | 位置信息的生成方法及装置 | |
WO2023098365A1 (fr) | Procédé de détection pour véhicule entrant dans un environnement intérieur, dispositif électronique et support de stockage | |
WO2023169448A1 (fr) | Procédé et appareil de détection de cible | |
CN113243126B (zh) | 一种用于终端的网络管理方法和终端 | |
WO2023169487A1 (fr) | Procédé et système de positionnement, et appareil associé | |
WO2023185687A1 (fr) | Procédé d'acquisition d'emplacement de véhicule et dispositif électronique | |
US10803738B2 (en) | Electronic device | |
WO2023116669A1 (fr) | Système et procédé de génération de vidéo, et appareil associé | |
CN118276126A (zh) | 一种室内外场景的识别方法、电子设备及芯片系统 | |
CN115226184A (zh) | 一种设备功能的控制方法以及电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22900170 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |