WO2024001906A1 - Terminal scene identifying method and device, terminal, storage medium and program product - Google Patents

Terminal scene identifying method and device, terminal, storage medium and program product Download PDF

Info

Publication number
WO2024001906A1
WO2024001906A1 PCT/CN2023/101716 CN2023101716W WO2024001906A1 WO 2024001906 A1 WO2024001906 A1 WO 2024001906A1 CN 2023101716 W CN2023101716 W CN 2023101716W WO 2024001906 A1 WO2024001906 A1 WO 2024001906A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
speed rail
cell
information
fence information
Prior art date
Application number
PCT/CN2023/101716
Other languages
French (fr)
Chinese (zh)
Inventor
郭敏
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024001906A1 publication Critical patent/WO2024001906A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences

Definitions

  • the present application relates to the field of communication application technologies, and in particular to a terminal scene recognition method, device, terminal, storage medium and program product.
  • High-speed rail is a means of transportation that operates automatically in a fully enclosed environment.
  • the seats on high-speed trains are spacious and comfortable, the running performance is good, and the operation is very smooth. There is almost no inconvenience when riding on high-speed trains.
  • high-speed rail has become the preferred means of transportation for people to travel.
  • the number of passengers on high-speed rail has also continued to increase, and the terminal usage on high-speed rail has also continued to increase.
  • terminals There are higher requirements for terminal signals on high-speed rail and so on.
  • terminals need to perform cell switching at high frequency.
  • an embodiment of the present application provides a terminal scene identification method.
  • the method includes: determining that the terminal is at a high-speed rail station; the terminal obtains first cell fence information of the high-speed rail line; the first cell fence information includes Cell information covering the geographical area of the high-speed rail line; if the terminal leaves the high-speed rail station and the serving cell where the terminal currently resides matches the first cell fence information, the terminal enters the high-speed rail station line scene.
  • the terminal after the terminal is determined to be at a high-speed rail station, if the terminal leaves the high-speed rail station and the serving cell where the terminal currently resides matches the cell information covering the geographical area of the high-speed rail line, the terminal can enter the high-speed rail Line scene, so that even if there is no high-speed rail private network cell deployed by the operator, the terminal can still be identified as being in the high-speed rail line scene, so that the high-speed rail line scene of the terminal can be identified without relying on the high-speed rail private network cell deployed by the operator, improving the terminal scenario recognition rate.
  • determining that the terminal is at a high-speed rail station includes: the terminal obtains second cell fence information of the high-speed rail station; the second cell fence information includes cells covering the geographical area of the high-speed rail station. Cell information; if the serving cell where the terminal currently resides matches the second cell fence information, the terminal is determined to be at the high-speed rail station.
  • This application uses the service cell where the terminal currently resides and the geographical area covering the high-speed rail station. When the cell information matches, it is determined that the terminal is at the high-speed rail station, so that it can be identified that the terminal is at the high-speed rail station.
  • the terminal determines the serving cell where it is currently camping based on system information of the cell.
  • This application uses the system information of the cell to determine the serving cell where the terminal is currently camped. Therefore, even if the terminal is not currently accessing the network, the terminal can receive the system message broadcast by the base station corresponding to the cell. , and determine the serving cell where the terminal currently resides.
  • matching the serving cell cell where the terminal is currently camped with the first cell fence information includes: if within a preset time, the first cell fence information contains the same service cell that the terminal is currently camped on. A preset number of target cells are matched with the remaining serving cells, and the terminal determines that the serving cell where the terminal is currently camped matches the first cell fence information. This application determines that the terminal is currently camped by having a preset number of multiple target cells that match the serving cell where the terminal is currently camped in the first cell fence information within a preset time.
  • the serving cell and the fence information of the first cell match, thereby avoiding the misjudgment that the terminal is not on the high-speed rail line when the terminal does not reside on a cell covering a certain high-speed rail line area due to the high speed of the high-speed rail. In the scene, it can also avoid pedestrians walking along the high-speed rail line or vehicles driving along the high-speed rail line from being mistakenly judged to be in the high-speed rail line scene.
  • the method before the terminal obtains the first cell fence information of the high-speed rail line, the method further includes: the terminal enters the high-speed rail station scene; wherein, in the high-speed rail station scene, the terminal The application program running on the high-speed rail station performs a first caching operation; the cache amount of the application program cache when performing the first cache operation is greater than the cache amount of the application program cache before the application program enters the high-speed rail station scene.
  • this application can enable the user to use the target application of the terminal normally when entering the high-speed rail station, and when the signal on the high-speed rail line that the user may enter is poor, the target application can also be used normally. Target application for normal use of terminals on high-speed rail lines.
  • the application program running on the terminal performs a second caching operation; when performing the second caching operation, the cache amount of the application program is larger than that of the application program when executing the second caching operation.
  • the cache amount of the application program during the first cache operation can enable the user to normally use the target application of the terminal on the high-speed rail line when riding on the high-speed rail line.
  • the method further includes: if the terminal leaves the high-speed rail station and the serving cell where the terminal currently resides does not match the first cell fence information, then The terminal exits the high-speed rail station scene.
  • This application can exit the high-speed rail station scene when the terminal leaves the high-speed rail station and is not in the state of following the high-speed rail on the high-speed rail line, thereby identifying that the terminal is not in the high-speed rail station scene.
  • the step includes: if the terminal leaves the high-speed railway station, Station, the movement state of the terminal enters the high-speed rail riding state, and the serving cell cell where the terminal currently resides matches the first cell fence information.
  • This application can control the terminal to enter the high-speed rail line only when the terminal leaves the high-speed rail station, the terminal's motion state enters the high-speed rail riding state, and the serving cell cell where the terminal currently resides matches the fence information of the first cell. scene to avoid the probability of misidentification as a high-speed rail line scene.
  • the method further includes: if the movement state of the terminal exits the high-speed rail riding state, and the serving cell where the terminal currently resides is the same as the first cell If any cell information in the fence information does not match, the terminal exits the high-speed rail line scenario.
  • This application can exit the high-speed rail line scene when the terminal is no longer in the high-speed rail riding state and is no longer in the high-speed rail line following the high-speed rail riding state, thereby identifying that the terminal is not in the high-speed rail line scene.
  • the terminal obtaining the first cell fence information of the high-speed rail line includes: the terminal obtaining the first cell fence information from a cloud server; or the terminal obtaining the pre-stored cell fence information locally.
  • First community fence information This application can obtain the first cell fence information from a cloud server or locally.
  • the terminal obtaining the first cell fence information of the high-speed rail line includes: the terminal obtaining the first cell of all high-speed rail lines of the high-speed rail station where the terminal is currently located from the cloud server.
  • Fence information This application can perform terminal scene recognition by simply obtaining the community fence information of all high-speed rail lines in the high-speed rail station from the cloud server, which can save traffic during downloading.
  • the method before the terminal is determined to be at a high-speed rail station, the method further includes: the terminal obtains the geographical location of the terminal, and the geographical location of the terminal is the geographical location of the high-speed rail line; The terminal monitors the serving cell where the terminal currently resides; the terminal associates the geographical location of the terminal with the serving cell where the terminal currently resides; the terminal associates The geographical location of the terminal and the serving cell where the terminal currently resides are sent to the cloud server, so that the cloud server can generate the cell fence information of the high-speed rail line.
  • This application can send the associated geographical location of the terminal and the serving cell where the terminal currently resides to the cloud server through the terminal, so that the cloud server can generate cell fence information of the high-speed rail line.
  • the method before the terminal obtains the second cell fence information of the high-speed rail station, the method further includes: the terminal obtains the geographical area information where the terminal is currently located; the terminal obtains the The second cell fence information of the high-speed rail station includes: if the terminal's current geographical area information changes, the terminal obtains the second cell fence information of the terminal's current geographical area information.
  • This application can obtain geographical area information through the terminal, and obtain the community fence information of the high-speed rail station only when the terminal's current geographical area information changes. It only needs to download the second community fence information of the terminal's current geographical area information. Terminal scene recognition can be performed, which can save traffic.
  • the second cell fence information is only obtained when the terminal's current geographical area information changes, further saving traffic.
  • the method further includes: if the serving cell where the terminal is currently camped does not match the second cell fence information, continuing to monitor the cell where the terminal is currently camped. serving cell.
  • This application can continue to determine whether the terminal enters the next high-speed rail station scene when the terminal exits the high-speed rail line scene by monitoring the serving cellular cell where the terminal currently resides.
  • an embodiment of the present application provides a terminal scene recognition device.
  • the device includes a processing unit and an acquisition unit: the processing unit is used to determine that the terminal is at a high-speed rail station; the acquisition unit is used to obtain the high-speed rail station.
  • the processing unit is further configured to: obtain second cell fence information of the high-speed rail station; the second cell fence information includes cellular cell information covering the geographical area of the high-speed rail station; if If the serving cell where the terminal currently resides matches the fence information of the second cell, it is determined that the terminal is at the high-speed rail station.
  • the processing unit determines the serving cell where the terminal currently camps based on system information of the cell.
  • the processing unit is further configured to: if there is a preset number of cells matching the serving cell where the terminal currently resides in the first cell fence information within a preset time, multiple target cells, and determine that the serving cell where the terminal is currently camped matches the first cell fence information.
  • the processing unit before obtaining the first community fence information of the high-speed rail line, is also configured to: the terminal enters the high-speed rail station scene; wherein, in the high-speed rail station scene, the The application program running on the terminal performs a first caching operation; when the first caching operation is performed, the cache amount of the application program is greater than the cache amount of the application program cache before the application program enters the high-speed rail station scene.
  • the application program running on the terminal performs a second caching operation; when performing the second caching operation, the cache amount of the application program is larger than that of the application program when executing the second caching operation.
  • the cache amount of the application program during the first cache operation is larger than that of the application program when executing the second caching operation.
  • the processing unit is also configured to: if the terminal leaves the high-speed rail station and the serving cell where the terminal currently resides does not match the first cell fence information, Then the terminal exits the high-speed rail station scene.
  • the processing unit is also configured to: if the terminal leaves the high-speed rail station, the movement state of the terminal enters the high-speed rail riding state, and the serving cell where the terminal currently resides If the cell matches the fence information of the first cell, the terminal enters the high-speed rail line scenario.
  • the processing unit is further configured to: if the movement state of the terminal exits the high-speed rail riding state, and the serving cell where the terminal currently resides is the same as the third If any cell information in the cell fence information does not match, the terminal exits the high-speed rail line scenario.
  • the obtaining unit is further configured to: obtain the first cell fence information from a cloud server; or obtain the pre-stored first cell fence information locally.
  • the acquisition unit is further configured to: acquire the first cell fence information of all high-speed rail lines of the high-speed rail station where the terminal is currently located from the cloud server.
  • the device further includes a sending unit.
  • the obtaining unit is further configured to obtain the geographical location of the terminal, and the geographical location of the terminal is the The geographical location of the high-speed rail line;
  • the processing unit is also used to monitor the serving cell where the terminal currently resides;
  • the processing unit is also used to combine the geographical location of the terminal with the location where the terminal currently resides associated with the serving cell;
  • the sending unit is further configured to send the associated geographical location of the terminal and the serving cell where the terminal currently resides to the cloud server for use by the cloud
  • the server generates the community fence information of the high-speed rail line.
  • the obtaining unit before obtaining the second community fence information of the high-speed rail station, is also used to: obtain the geographical area information where the terminal is currently located; the obtaining unit is also used to: if If the information of the geographical area where the terminal is currently located changes, the second cell fence information of the geographical area where the terminal is currently located is obtained.
  • the processing unit is further configured to: if the serving cell where the terminal is currently camped does not match the fence information of the second cell, continue to monitor the cell where the terminal is currently camped. The serving cell.
  • an embodiment of the present application provides a terminal.
  • the terminal includes a processor and a memory.
  • the memory is used to store program instructions.
  • the processor calls the program instructions, any of the above-mentioned aspects of the first aspect can be implemented.
  • an embodiment of the present application provides a computer-readable storage medium that stores a program, and the program enables the computer device to implement any of the possible embodiments of the first aspect.
  • an embodiment of the present application provides a computer program product.
  • the computer program product includes computer-executable instructions, and the computer-executable instructions are stored in a computer-readable storage medium; at least one processor of the terminal can To read the computer-executable instructions from the computer-readable storage medium, the at least one processor executes the computer-executable instructions so that the terminal executes any of the possible embodiments of the first aspect above. Terminal scene recognition method.
  • Figure 1 is a schematic diagram of a scenario when a high-speed train is running on a high-speed rail line according to an embodiment of the present application.
  • Figure 2 is a schematic diagram of the hardware structure of a terminal provided by an embodiment of the present application.
  • Figure 3 is a software structure block diagram of a terminal provided by an embodiment of the present application.
  • Figure 4 is a flow chart of a terminal scene identification method provided by an embodiment of the present application.
  • Figure 5 is a flow chart of the process of adjusting the cache policy provided by the embodiment of the present application.
  • Figure 6 is a schematic diagram of a user interface in a high-speed rail scenario provided by an embodiment of the present application.
  • Figure 7 is a schematic diagram of the relationship between high-speed rail stations and lines provided by the embodiment of the present application.
  • Figure 8 is a schematic diagram of the user interface in the high-speed rail scenario provided by the embodiment of the present application.
  • Figure 9 is a flowchart of the process of exiting a high-speed rail line scenario provided by an embodiment of the present application.
  • Figure 10 is a flow chart of the process of generating high-speed rail station community fences and high-speed rail line community fences provided by the embodiment of the present application.
  • Figure 11 is a schematic diagram of a terminal and a cloud server provided by an embodiment of the present application.
  • Figure 12 is a schematic diagram of the terminal and server provided by the embodiment of the present application generating high-speed rail station community fences and high-speed rail line community fences.
  • Figure 13 is a partial schematic diagram on the electronic map.
  • Figure 14 is a schematic diagram of the logical structure of a terminal scene recognition device according to an embodiment of the present application.
  • words such as “such as” are used to represent examples, illustrations or illustrations. Any embodiment or design described as “such as” in the embodiments of the application is not to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as “such as” is intended to present the relevant concept in a concrete way.
  • the existing technology provides a user terminal mode control method that can use high-speed rail private network cells deployed by operators to identify terminal scenarios.
  • the high-speed flag (HighSpeedFlag is true) provided by the modem (Modem) is obtained, wherein the high-speed flag is LTE (Long Term Evolution, Long Term Evolution). Evolution) communication network format carries data. If the high-speed signs can be obtained continuously within the set time (such as within 30 seconds), the current status of the terminal is judged to be the riding status along the high-speed rail.
  • a high-speed rail runs on a high-speed rail line, and the high-speed rail line is covered by multiple cells for providing services to terminals moving on the high-speed rail line.
  • the plurality of cells may include cellular cells covered by public base station signals, or may also include cellular cells covered by dedicated base station signals, that is, high-speed rail line public network cells, or may also include high-speed rail private network cells.
  • Each cell is the area covered by a base station or a part of a base station (sector antenna).
  • the plurality of cells may include cells supporting fourth generation (4G) access technology, such as cells supporting long term evolution (LTE) access technology; or may include cells supporting fifth generation (fifth generation) , 5G) access technology cells, such as new radio (NR) access technology cells; or, it may also include cells supporting multiple wireless technologies, such as cells supporting LTE technology and NR technology. It is also understood that multiple of the cells may also be cells suitable for future-oriented communication technologies. Among them, each cell corresponds to a unique cell ID.
  • 4G fourth generation
  • LTE long term evolution
  • 5G fifth generation
  • NR new radio
  • High-speed rail lines can be divided into multiple high-speed rail line areas, and each high-speed rail line area can be covered by one or more cells.
  • the high-speed rail segment can be divided into six high-speed rail areas (high-speed rail area 1-high-speed rail area 6). Each of these six high-speed rail line areas can be covered by one or more cells.
  • high-speed rail line area 3 may be covered by cell 3 and cell 4.
  • the terminal When the terminal passes through a certain high-speed railway line area, it can camp in a certain cell among one or more cells covering the high-speed railway line area.
  • the terminal when passing through the high-speed rail area 3, the terminal can camp under the cell 3 covering the high-speed rail area 3. Therefore, the terminal can access the network.
  • the terminal when the terminal passes through a certain high-speed rail line area, due to the high speed of the high-speed rail, etc., it may not switch to the cell covering the high-speed rail line area, that is, directly skip the cell covering the high-speed rail line area and switch to A community covering the next high-speed rail line area.
  • the terminal 100 may include a mobile phone with communication functions, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone At least one of a phone, personal digital assistant (PDA), or wearable device.
  • the embodiment of the present application does not place any special restrictions on the specific type of terminal 100.
  • the terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) connector 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera module 193, display screen 194, And subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal 100.
  • the terminal 100 may include more or fewer components than shown in the figures, or some components may be combined, or some components may be separated, or may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor. (application processor, AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (digital signal processor (DSP), baseband processor, and/or neural network processing unit (NPU), etc.
  • application processor application processor
  • AP application processor
  • modem processor graphics processing unit
  • ISP image signal processor
  • controller video codec
  • DSP digital signal processor
  • DSP digital signal processor
  • NPU neural network processing unit
  • different processing units can be independent devices or integrated in one or more processors.
  • the processor can generate operation control signals based on the instruction opcode and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 may be a cache memory.
  • the memory may store instructions or data that have been used by the processor 110 or are used more frequently. If the processor 110 needs to use instructions or data, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces. Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous receiver and transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the interface connection relationships between the modules illustrated in the embodiments of the present application are only schematic illustrations and do not constitute a structural limitation on the terminal 100 .
  • the terminal 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the USB connector 130 is an interface that complies with USB standard specifications and can be used to connect the terminal 100 and peripheral devices. Specifically, it can be a Mini USB connector, a Micro USB connector, a USB Type C connector, etc.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the terminal 100 . While charging the battery 142, the charging management module 140 can also provide power to the terminal through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera module 193, the wireless communication module 160, and the like.
  • the power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the terminal 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in terminal 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as Diversity antennas for wireless LANs. In other embodiments, antennas may be used in conjunction with tuning switches.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied to the terminal 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be disposed 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 provided in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194.
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the terminal 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and Bluetooth low energy consumption. (bluetooth low energy, BLE), ultra wide band (UWB), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC) ), infrared technology (infrared, IR) and other wireless communication solutions.
  • 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 terminal 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal 100 can communicate with the network and other terminals through wireless communication technology.
  • Wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband code division Multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM , and/or IR technology, etc.
  • GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), 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
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the terminal 100 can implement display functions through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • the display panel can use liquid crystal display Liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light emitting diode or active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED) ), flexible light-emitting diodes (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc.
  • terminal 100 may include one or more display screens 194.
  • the terminal 100 can realize the camera function through the camera module 193, ISP, video codec, GPU, display screen 194, application processor AP, neural network processor NPU, etc.
  • the camera module 193 can be used to collect color image data and depth data of the photographed object.
  • the ISP can be used to process color image data collected by the camera module 193 .
  • the shutter is opened, the light is transmitted to the camera sensor through the lens, the light signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera module 193 .
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the internal memory 121 may include a program storage area and a data storage area.
  • the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.).
  • the storage data area may store data created during use of the terminal 100 (such as audio data, phone book, etc.).
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
  • the processor 110 executes various functional methods or data processing of the terminal 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the terminal 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the terminal 100 can listen to music through the speaker 170A, or output audio signals for hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the voice can be heard by bringing the receiver 170B close to the human ear.
  • Microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C.
  • the terminal 100 may be provided with at least one microphone 170C. In other embodiments, the terminal 100 may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the terminal 100 can also be equipped with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
  • the headphone interface 170D is used to connect wired headphones.
  • the headphone interface 170D can be the USB interface 130 or 3.5mm open mobile terminal platform (OMTP) standard interface, cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
  • pressure sensor 180A may be disposed on display screen 194 .
  • pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc.
  • a capacitive pressure sensor may include at least two parallel plates of conductive material.
  • the terminal 100 determines the intensity of the pressure based on changes in capacitance.
  • the terminal 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the terminal 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the terminal 100 .
  • the angular velocity of terminal 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 180B detects the angle at which the terminal 100 shakes, calculates the distance that the lens module needs to compensate based on the angle, and controls the reverse movement of the lens to offset the shake of the terminal 100 to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • Air pressure sensor 180C is used to measure air pressure.
  • the terminal 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • Magnetic sensor 180D includes a Hall sensor.
  • the terminal 100 may use the magnetic sensor 180D to detect the opening and closing of the flip cover.
  • the magnetic sensor 180D can be used to detect the folding or unfolding of the terminal, or the folding angle.
  • the terminal 100 when the terminal 100 is a flip machine, the terminal 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Then, based on the detected opening and closing status of the leather case or the opening and closing status of the flip cover, features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the acceleration of the terminal 100 in various directions (generally three axes). When the terminal 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify terminal gestures and be used in horizontal and vertical screen switching, pedometer and other applications.
  • the terminal 100 can measure distance by infrared or laser. In some embodiments, when shooting a scene, the terminal 100 can use the distance sensor 180F to measure distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the terminal 100 emits infrared light through a light emitting diode.
  • the terminal 100 uses photodiodes to detect infrared reflected light from nearby objects. When the intensity of the detected reflected light is greater than the threshold, it may be determined that there is an object near the terminal 100 . When the intensity of the detected reflected light is less than the threshold, the terminal 100 may determine that there is no object near the terminal 100 .
  • the terminal 100 can use the proximity light sensor 180G to detect when the user holds the terminal 100 close to the ear for talking, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in holster mode, and pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L can be used to sense ambient light brightness.
  • the terminal 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 terminal 100 is blocked, for example, the terminal is in a pocket. When it is detected that the terminal is covered or in a pocket, some functions (such as touch functions) can be disabled to prevent Prevent misuse.
  • Fingerprint sensor 180H is used to collect fingerprints.
  • the terminal 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application lock, fingerprint photography, fingerprint answering incoming calls, etc.
  • Temperature sensor 180J is used to detect temperature.
  • the terminal 100 uses the temperature detected by the temperature sensor 180J to execute the temperature processing policy. For example, when the temperature detected by the temperature sensor 180J exceeds a threshold, the terminal 100 performs reducing the performance of the processor in order to reduce the power consumption of the terminal to implement thermal protection.
  • the terminal 100 heats the battery 142 when the temperature detected by the temperature sensor 180J is below another threshold.
  • the terminal 100 may boost the output voltage of the battery 142 when the temperature is below yet another threshold.
  • Touch sensor 180K also known as "touch device”.
  • the touch sensor 180K can be disposed on the display screen 194.
  • the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K.
  • the touch sensor can pass the detected touch operation to the application processor to determine the touch event type.
  • Visual output related to the touch operation may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the terminal 100 in a position different from that of the display screen 194 .
  • Bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human body's vocal part.
  • the bone conduction sensor 180M can also contact the human body's pulse and receive blood pressure beating signals.
  • the bone conduction sensor 180M can also be provided in an earphone and combined into a bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibrating bone obtained by the bone conduction sensor 180M to implement the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to implement the heart rate detection function.
  • the location sensor 180N can detect the geographical location of the terminal.
  • the location sensor 180N may be GPS, Beidou, or other positioning systems.
  • the buttons 190 may include a power button, a volume button, etc.
  • Key 190 may be a mechanical key. It can also be a touch button.
  • the terminal 100 may receive key input and generate key signal input related to user settings and function control of the terminal 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations in different areas of the display screen 194 .
  • Different application scenarios such as time reminders, receiving information, alarm clocks, games, etc.
  • the touch vibration feedback effect can also be customized.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be connected to or separated from the terminal 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the terminal 100 can support one or more SIM card interfaces.
  • 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. Multiple cards can be of the same type or different types.
  • 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 terminal 100 interacts with the network through the SIM card to implement functions such as calls and data communications.
  • the terminal 100 adopts eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the terminal 100 and cannot be separated from the terminal 100.
  • the software system of the terminal 100 may adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture.
  • the embodiment of this application takes the Android system with a layered architecture as an example to illustrate the software structure of the terminal 100 .
  • Figure 3 is a software structure block diagram of the terminal 100 according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the Android system is divided into five layers, from top to bottom: application layer, application framework layer, Android runtime (Android runtime, ART) and native C/C++ library, hardware abstraction layer (Hardware Abstract Layer, HAL) and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, news and other applications.
  • the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window manager, content provider, view system, resource manager, notification manager, activity manager, input manager, etc.
  • the window manager provides window management service (Window Manager Service, WMS).
  • WMS can be used for window management, window animation management, surface management, and as a transfer station for the input system.
  • Content providers are used to store and retrieve data and make this data accessible to applications.
  • Data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, etc.
  • a view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a prompt sound is emitted, the terminal vibrates, and the indicator light flashes, etc.
  • the input manager can provide input management service (Input Manager Service, IMS).
  • IMS can be used to manage system input, such as touch screen input, key input, sensor input, etc.
  • IMS takes out events from the input device node and distributes the events to appropriate windows through interaction with WMS.
  • the Android runtime includes core libraries and Android runtime.
  • the Android runtime is responsible for converting source code into machine code.
  • the Android runtime mainly includes the use of ahead of time (ahead or time, AOT) compilation technology and just in time (just in time, JIT) compilation technology.
  • the core library is mainly used to provide basic Java class library functions, such as basic data structures, mathematics, IO, tools, databases, networks and other libraries.
  • the core library provides APIs for users to develop Android applications.
  • Native C/C++ libraries can include multiple function modules. For example: surface manager (surface manager), media framework (Media Framework), libc, OpenGL ES, SQLite, Webkit, etc.
  • the surface manager is used to manage the display subsystem and provides the integration of 2D and 3D layers for multiple applications.
  • the media framework supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • OpenGL ES provides the drawing and manipulation of 2D graphics and 3D graphics in applications. SQLite provides a lightweight relational database for terminal 100 applications.
  • the hardware abstraction layer runs in user space, encapsulates the kernel layer driver, and provides a calling interface to the upper layer.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the following is an example of the workflow of the terminal software and hardware based on capturing the photo scene.
  • the corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, and other information). Raw input events are stored at the kernel level.
  • the application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Take the touch operation as a touch-click operation, and the control corresponding to the click operation is a camera application icon control as an example.
  • the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer to capture the image through the camera. Still image or video.
  • the terminal scene recognition method is applied to the terminal shown in Figures 2 and 3, and the terminal includes a terminal scene recognition device.
  • the terminal scene recognition device may be divided into one or more units, and the one or more units are used to implement the steps in the terminal scene recognition method.
  • the terminal scene identification method is used to identify terminal scenes in a high-speed rail environment.
  • the terminal scene identification method includes:
  • the cell fence information of the high-speed rail station may be a virtual boundary surrounded by all cells covering the geographical area of the high-speed rail station.
  • the cell fence information of the high-speed rail station includes the information of the high-speed rail station and the identifiers (cell IDs) of all cells covering the geographical area of the high-speed rail station.
  • the community fence information of the high-speed rail station can also be a virtual boundary surrounded by most of the communities covering the geographical area of the high-speed rail station, and this application does not limit this.
  • the cell may be a cellular cell covered by a public base station signal, or may be a cellular cell covered by a dedicated base station signal, that is, a high-speed railway station public network cell, or a high-speed rail private network cell.
  • the cell may be a cell that supports fourth generation (4G) access technology, such as a cell that supports long term evolution (LTE) access technology; or it may be a cell that supports fifth generation (5G) ) access technology, such as a new radio (NR) access technology; or, it can also be a cell that supports multiple wireless technologies, such as a cell that supports LTE technology and NR technology. It is also understood that the cell may also be a cell suitable for future-oriented communication technology.
  • 4G fourth generation
  • LTE long term evolution
  • 5G fifth generation
  • NR new radio
  • the community fence information of the high-speed rail station may be the community fence information of high-speed rail stations across the country.
  • the cell fence information of the high-speed rail station may be the cell fence information of the high-speed rail station in the geographical area where the terminal is currently located.
  • the method further includes: obtaining the terminal's current geographic area information through a location sensor of the terminal.
  • the location sensor of the terminal does not need to be turned on all the time, but is only turned on when positioning is required.
  • information about the current geographical area of the terminal can be obtained through the location sensor of the terminal.
  • obtaining the community fence information of the high-speed rail station may include obtaining the obtained The community fence information of the high-speed rail station where the terminal is currently located is the geographical area information.
  • information about the geographical area where the terminal is currently located can be obtained by turning on the location sensor of the terminal at preset time intervals.
  • the acquisition according to the preset time interval may be always acquisition at a fixed preset time interval, or acquisition according to a preset time interval within a period of time, acquisition according to another preset time interval at other times, etc.
  • the location sensor of the terminal does not need to be turned on all the time, but only needs to be turned on at preset time intervals. Then the information of the current geographical area of the terminal can be obtained through the location sensor of the terminal at preset time intervals.
  • the community fence information of the high-speed rail station of the terminal's current geographical area information is obtained. If the obtaining of the geographical area information where the terminal is currently located is the first time that the geographical area information of the terminal is currently located is obtained, the community fence information of the high-speed rail station of the geographical area information where the terminal is currently located is directly obtained. It can be understood that if the terminal's current geographical area information is the same as the terminal's previous geographical area information, there is no need to repeatedly obtain the community fence information of the high-speed rail station of the terminal's current geographical area information. The high-speed rail station information of the terminal's previous geographical area information can be directly used. Station community fence information.
  • the geographical area information of the terminal's previous location is the geographical area information obtained once before the geographical area information of the terminal's current location is obtained.
  • the geographical area information where the terminal is currently located may be city information, province information, or region information, etc. This application does not limit this.
  • the city information may be, for example, Shanghai, Shenzhen, Beijing, etc.
  • the province information may be, for example, Guangdong province, Hubei province, etc.
  • the region information may be, for example, East China region, South China region, etc.
  • the geographical area information of the terminal's current location may be XX city.
  • the community fence information of the high-speed rail station can be shown in Table 1 below:
  • Table 1 is an example of the community fence information of the high-speed rail station.
  • the community fence information of the high-speed rail station can also omit the city column, or the high-speed rail station column can also be omitted. This application does not describe the community fence information of the high-speed rail station. Content and form are limited.
  • the cell fence information of the high-speed rail station may be preset in the terminal.
  • the cell fence information of the high-speed rail station can be obtained from the cloud server.
  • S402 Monitor the serving cell where the terminal currently resides.
  • the serving cell where the monitoring terminal is currently camped is the identity (cell ID) of the serving cell where the monitoring terminal is currently camped.
  • the serving cell where the terminal is currently camped can be monitored by monitoring the system information of the cell.
  • the base station corresponding to the cell will repeatedly broadcast system messages.
  • the terminal can receive broadcast system messages, perform cell selection and camping based on the system messages, and determine the serving cell where the terminal is currently camped. Then, as long as the terminal is turned on or enters the coverage area of the cell, it can monitor the serving cell where the terminal currently resides.
  • the terminal can only use network services after camping on a serving cell. Wherein, even if the terminal is not currently connected to the network, the terminal can receive the system message broadcast by the base station corresponding to the cell, and thus can monitor the system information of the cell. information to monitor the serving cell where the terminal currently resides.
  • step S403 Determine whether the service cell where the terminal currently resides matches the cell fence information of the high-speed rail station. If the serving cell where the terminal currently resides matches the cell fence information of the high-speed rail station, step S404 is executed. If the serving cell where the terminal currently resides does not match the cell fence information of the high-speed rail station, step S402 is executed.
  • the method before determining whether the serving cell where the terminal is currently camped matches the cell fence information of the high-speed rail station, the method further includes: determining whether the serving cell where the terminal is currently camped matches the service cell where the terminal was camped last time. same. In some embodiments, it is determined whether the identity of the serving cell where the terminal currently camps is the same as the identity of the serving cell where the terminal previously camped. If the service cell where the terminal is currently camped is different from the service cell where the terminal was camped last time, it can be determined whether the service cell where the terminal is currently camped matches the cell fence information of the high-speed rail station.
  • the service cell where the terminal is currently camped is the same as the service cell where the terminal was camped last time, there is no need to determine whether the service cell where the terminal is currently camped matches the cell fence information of the high-speed rail station, which can save the process of terminal scene identification. , and at the same time, when the terminal moves to any high-speed rail station, it can be determined that the service cell where the terminal currently resides matches the cell fence information of the high-speed rail station.
  • determining whether the serving cell where the terminal currently resides matches the cell fence information of the high-speed rail station may include: querying whether there is a first cell in the cell fence information of the high-speed rail station that matches the serving cell where the terminal currently resides. Target cell; if there is a first target cell that matches the serving cell where the terminal currently resides in the cell fence information of the high-speed rail station, it is determined that the serving cell where the terminal currently resides matches the cell fence information of the high-speed rail station; if the If the cell fence information of the high-speed rail station does not contain the first target cell that matches the service cell where the terminal currently resides, it is determined that the service cell where the terminal currently resides does not match the cell fence information of the high-speed rail station.
  • the serving cell where the terminal is currently camped is cell 11
  • the service cell where the terminal currently resides matches the cell fence information of the high-speed rail station.
  • S404 Control the terminal to enter the high-speed rail station scene.
  • the scene of the terminal entering a high-speed rail station represents that the carrier of the terminal enters the high-speed rail station, that is, it is determined that the terminal is at the high-speed rail station.
  • the carrier of the terminal may be a person taking the high-speed rail, or a person entering the high-speed rail station but not taking the high-speed rail.
  • People who enter the high-speed rail station but do not take the high-speed rail may include people who have bought high-speed rail tickets but do not take the high-speed rail, staff in the high-speed rail station, passers-by, people who come to the high-speed rail station to see someone off and then drive away, etc.
  • some applications will register high-speed railway station scene recognition through the application framework layer when they are installed or run, so that these applications can be identified through the application framework layer.
  • the program is determined to be the target application that registers the terminal entry into the high-speed rail station scenario event.
  • the instruction information for the terminal to enter the high-speed rail station scene will be sent to the target application through the application framework layer, and the target application can perform the first cache operation according to the instruction information, so that when the user enters the high-speed rail station scene
  • the target application of the terminal can also be used normally when the user is stationary, and when the signal on the high-speed rail line that the user may enter is poor, the target application of the terminal can also be used normally on the high-speed rail line.
  • performing the first caching operation may include caching using a first cache amount, caching and playing using a first code rate, etc.
  • the first cache amount is greater than the cache amount of the application cache in the normal state, and the first code rate is smaller than the code rate of the application cache and playback in the normal state. Understandably, performing the first cache operation The operation may also be to use a first resolution to perform caching and playback, and the first resolution is smaller than the resolution of application caching and playback in a normal state, and this application does not limit this. It can be understood that for different applications, the first cache operation performed according to the instruction information may also be different. For example, the first cache operation performed for audio and video applications may be to increase the cache amount to the first cache amount and reduce the code rate to The first code rate, etc., the first caching operation performed by the news application may be to increase the preload amount to the first preload amount, etc. This application does not limit this.
  • the terminal scene recognition device 502 can determine the application program 501 as a target application registered with the scene event of the terminal entering the high-speed rail station.
  • the terminal scene recognition device 502 will send the instruction information of the high-speed rail station scene caching strategy to the application program 501, and the application program 501 will determine the high-speed rail station scene according to the high-speed rail station scene.
  • the instruction information of the cache policy performs the first cache operation.
  • the application program 501 may also register scene recognition with the terminal scene recognition device 502 when it is installed, runs in the application background, or switches from the application foreground to the application background. This application does not limit this. It can be understood that the application program 501 can also cancel the registration of high-speed rail station scene recognition with the terminal scene recognition device 502, and this application does not limit this.
  • the first cache operation prompt (as shown in Figure 6) can also be performed, thereby allowing the user to be aware of the high-speed rail station. Scene optimization is more perceptive.
  • the video application is performing the first caching operation.
  • the first prompt box pops up on the video interface.
  • the first prompt box is used to prompt the user that the video application has enabled high-speed rail station scene optimization.
  • the first prompt box may be prompt 1, and the prompt 1 may be, for example, “High-speed rail station scene optimization has been started for you.” It can be understood that FIG.
  • the first prompt box 6 is an example of the first prompt box, and this application does not limit the content and form of the first prompt box. It can be understood that the first prompt box may be displayed all the time when the first caching operation is performed, or may only be displayed for a few seconds. This application does not limit the display time of the first prompt box.
  • the cell fence information of the high-speed rail line is cellular cell fence information of the high-speed rail line.
  • the cell fence information of the high-speed rail line may be a virtual boundary surrounded by all cells covering the geographical area of the high-speed rail line.
  • the cell fence information of the high-speed rail line includes the identification (cell ID) of all cells covering the geographical area of the high-speed rail line. It can be understood that the cell fence information of the high-speed rail line can also be a virtual boundary surrounded by most of the cells covering the geographical area of the high-speed rail line, and this application is not limited to this.
  • the community fence information of the high-speed rail line may also be the community fence information of the high-speed rail line in the geographical area where the terminal is currently located, such as the community fence information of the high-speed rail line in XX City.
  • the cell fence information of the high-speed rail line may also be the cell fence information of the high-speed rail line of the high-speed rail station where the terminal is currently located.
  • the method further includes: determining the high-speed rail station where the terminal is currently located.
  • the obtaining the cell fence information of the high-speed rail line may include obtaining the cell fence information of the high-speed rail line of the high-speed rail station where the terminal is currently located.
  • the cell fence information of the high-speed rail line may also include path information of the high-speed rail line of the high-speed rail station where the terminal is currently located.
  • high-speed rail line L1 from high-speed rail station A to high-speed rail station B
  • high-speed rail station A High-speed rail line L2 to high-speed rail station C
  • high-speed rail line L3 from high-speed rail station A to high-speed rail station D.
  • the path information of the high-speed rail line of the high-speed rail station where the terminal is currently located includes the path information of the high-speed rail line L1, the high-speed rail line L2, and the high-speed rail line L3, and the community fence information of the high-speed rail line of the high-speed rail station where the terminal is currently located includes the community fence information of the high-speed rail line L1.
  • high-speed rail station D is used as the starting point, including a total of 4 routes, including high-speed rail line L3 from high-speed rail station D to high-speed rail station A, and high-speed rail line L3 from high-speed rail station D to high-speed rail station E.
  • L4 high-speed rail line L5 from high-speed rail station D to high-speed rail station F, and high-speed rail line L6 from high-speed rail station D to high-speed rail station G.
  • the path information of the high-speed rail line of the high-speed rail station where the terminal is currently located includes the path information of high-speed rail line L3, high-speed rail line L4, high-speed rail line L5, and high-speed rail line L6, and the community fence information of the high-speed rail line of the high-speed rail station where the terminal is currently located includes the path information of high-speed rail line L3.
  • each high-speed rail line can be divided into multiple high-speed rail line areas, and each high-speed rail line area can be covered by one or more cells.
  • the high-speed rail line L1 can be divided into six high-speed rail line areas. These six high-speed rail line areas Each high-speed rail line area in can be covered by one or more cells.
  • the terminal When the terminal is running on the high-speed rail line, the terminal may not switch to the cell covering the high-speed rail line area at the location due to the high speed of the high-speed rail.
  • the service cell where it resides may be different.
  • the community fence information of the high-speed rail line can be shown in Table 2 below:
  • Table 2 is an example of the community fence information of the high-speed rail line of the high-speed rail station where the terminal is currently located.
  • the community fence information of the high-speed rail line can also omit the high-speed rail station fence, or can also omit the high-speed rail line column. This application does not The content and form of community fence information for high-speed rail lines are limited.
  • the cell fence information of the high-speed rail line may be preset in the terminal.
  • the cell fence information of the high-speed rail line can be obtained from a cloud server.
  • step S406 Determine whether the terminal leaves the high-speed rail station and enters the riding state. If the terminal leaves the high-speed rail station and the motion state enters the riding state, step S407 is executed. If the terminal leaves the high-speed rail station but the motion state of the terminal does not enter the riding state, step S409 is executed.
  • the high-speed rail station since some people enter the high-speed rail station but may not leave the high-speed rail station (such as staff at the high-speed rail station, etc.), or although they leave the high-speed rail station but will not leave by car, it is necessary to distinguish whether the terminal leaves the high-speed rail station. And whether the motion state has entered the riding state.
  • whether the terminal leaves the high-speed railway station is determined by determining whether the serving cell where the terminal currently resides continues to match the cell fence information of the high-speed railway station. If the service cell where the terminal currently resides continues to match the cell fence information of the high-speed rail station, it can be determined that the terminal has not left the high-speed rail station. If the service cell where the terminal currently resides does not continue to match the cell fence information of the high-speed rail station, it can be determined that the terminal has left the high-speed rail station.
  • whether the motion state of the terminal enters the riding state can be determined based on the acceleration data sensed by the acceleration sensor in the terminal.
  • the acceleration data sensed by the acceleration sensor in the terminal when a high-speed train runs on a high-speed rail line, its acceleration is relatively stable. If the terminal is located on a high-speed rail, the acceleration perceived by the terminal will also be stable and within the motion acceleration range of the high-speed rail. If the acceleration data sensed by the acceleration sensor in the terminal is within the operating acceleration range of the high-speed rail, it can be determined that the terminal's motion state has entered the ride state; If the acceleration data sensed by the acceleration sensor in the terminal is outside the high-speed rail operating acceleration range, it can be determined that the motion state of the terminal has not entered the riding state.
  • whether the motion state of the terminal enters the riding state can be determined based on the speed data sensed by the speed sensor in the terminal. Among them, the speed of the high-speed train after completing acceleration on the high-speed rail line will be within the operating speed range of the high-speed rail. Then if the speed data sensed by the speed sensor in the terminal is within the high-speed rail operating speed range, it can be determined that the terminal's motion state has entered the riding state; if the speed data sensed by the speed sensor in the terminal is outside the high-speed rail operating speed range, it can be determined The terminal's motion state has not entered the ride state.
  • whether the motion state of the terminal enters the riding state can be determined based on the acceleration data sensed by the acceleration sensor and the speed data sensed by the speed sensor in the terminal. This application does not limit this.
  • step S407 Determine whether the service cell where the terminal currently resides matches the cell fence information of the high-speed rail line. If the serving cell where the terminal currently resides matches the cell fence information of the high-speed rail line, step S408 is executed. If the serving cell where the terminal currently resides does not match the cell fence information of the high-speed rail line, step S409 is executed.
  • the operating status of ordinary vehicles is similar to that of high-speed rail
  • the terminal sets off from the high-speed rail station and the motion state enters the riding state, it is necessary to further distinguish whether the terminal is currently on the high-speed rail or on the high-speed rail. If the terminal is located on an ordinary vehicle, it is necessary to determine whether the service cell where the terminal currently resides matches the cell fence information of the high-speed rail line.
  • determining whether the serving cell where the terminal currently resides matches the cell fence information of the high-speed rail line may include: querying whether there is a second cell in the cell fence information of the high-speed rail line that matches the serving cell where the terminal currently resides. Target cell; if there is a second target cell matching the serving cell where the terminal currently resides in the cell fence information of the high-speed rail line, it is determined that the serving cell where the terminal currently resides matches the cell fence information of the high-speed rail line; if the If there is no second target cell that matches the service cell where the terminal currently resides in the cell fence information of the high-speed rail line, it is determined that the service cell where the terminal currently resides does not match the cell fence information of the high-speed rail line.
  • the serving cell where the terminal is currently camped is cell b7
  • the remaining service community does not match the community fence information of the high-speed rail line.
  • a high-speed train runs on a high-speed rail line
  • its acceleration is relatively stable and its speed is relatively fast, and it can run a longer distance in a shorter period of time.
  • the terminals on the high-speed rail will also quickly move to different high-speed rail line areas. Since each high-speed rail line area can be covered by one or more cells, the terminal will quickly switch to different cells in a short period of time, and the service cell where the terminal currently resides will also change rapidly.
  • determining whether the serving cell where the terminal currently resides matches the cell fence information of the high-speed rail line may include: querying whether there is a match between the cell fence information of the high-speed rail line and the serving cell where the terminal currently resides within a preset time.
  • a preset number of third target cells if there is a preset number of third target cells matching the serving cell where the terminal currently resides in the cell fence information of the high-speed rail line within the preset time, it is determined that the terminal is currently camped
  • the remaining service cell matches the cell fence information of the high-speed rail line; if within the preset time there is no preset number of third target cells matching the service cell where the terminal currently resides in the cell fence information of the high-speed rail line, then It is determined that the service cell where the terminal currently resides does not match the cell fence information of the high-speed rail line.
  • the serving cells where the terminal is currently camped are cell a1, cell a2, cell a4, cell a5, and cell a6, then it can be queried that there are 5 serving cells in Table 2 that match the serving cells where the terminal is currently camped. target community, at this time, you can It is determined that the service cell where the terminal currently resides matches the cell fence information of the high-speed rail line.
  • the method before querying the cell fence information of the high-speed rail line to see whether there is a second target cell matching the serving cell where the terminal currently resides, the method further includes: based on the electronic map and the geographical area where the terminal is currently located. The information determines the high-speed rail line where the terminal is currently located, and then the cell fence information of the high-speed rail line where the terminal is currently located can be queried to see if there is a second target cell that matches the serving cell where the terminal currently resides, and the current location of the terminal can be determined based on the query results. Whether the resident service cell matches the cell fence information of the high-speed rail line. Therefore, the matching speed can be improved and the power consumption of the terminal can be reduced.
  • the method before querying whether there is a preset number of third target cells matching the serving cell where the terminal currently resides in the cell fence information of the high-speed rail line within a preset time, the method further includes: Determine the high-speed rail line where the terminal is currently located based on the electronic map and the current geographical area information of the terminal. Then, you can subsequently query whether there is a service cell where the terminal currently resides in the cell fence information of the high-speed rail line where the terminal is currently located within the preset time. Match a preset number of third target cells, and determine whether the service cell where the terminal currently resides matches the cell fence information of the high-speed rail line based on the query results. Therefore, the matching speed can be improved and the power consumption of the terminal can be reduced.
  • the terminal leaves the high-speed rail station and enters the riding state, and the service cell where the terminal currently resides matches the cell fence information of the high-speed rail line, indicating that the carrier of the terminal is a person taking the high-speed rail. Then, the terminal can be controlled to enter the high-speed rail line scene.
  • some applications will register high-speed rail line scene recognition through the application framework layer when they are installed or run, so that these applications can be identified through the application framework layer.
  • the program is determined to be the target application that registers the terminal entry into the high-speed rail line scenario event.
  • the instruction information for the terminal to enter the high-speed rail scene will be sent to the target application through the application framework layer, and the target application can perform the second cache operation according to the instruction information, so that when the user enters the high-speed rail scene Target applications in Terminal can also be used normally while on the line.
  • performing the second caching operation may include caching using a second caching amount, caching and playing using a second code rate, etc.
  • the second cache amount is greater than the first cache amount, and the second code rate is less than the first code rate.
  • performing the second caching operation may also include caching and playing using a second resolution, which is smaller than the first resolution, and this application does not limit this.
  • the second cache operation performed according to the instruction information may also be different.
  • the second cache operation performed for audio and video applications may be to increase the cache amount to the second cache amount and reduce the code rate to The second code rate, etc.
  • the second caching operation performed by the news application may be to increase the preload amount to the second preload amount, etc. This application does not limit this.
  • the application 501 (such as audio and video applications, news applications, etc.) is running in the application foreground, or when switching from the application background running to the application foreground, it registers the high-speed rail station with the terminal scene recognition device 502.
  • the terminal scene recognition device 502 can determine the application program 501 as the target application registered with the terminal entering the high-speed rail line scene event.
  • the terminal scene identification device 502 will send the instruction information of the high-speed rail line scene caching strategy to the application program 501.
  • the application program 501 will perform a second caching operation according to the instruction information of the high-speed rail scene caching policy. It is understandable that the application 501 may also register the high-speed rail line scene recognition with the terminal scene recognition device 502 when it is installed, runs in the application background, or switches from the application foreground to the application background; or the registration of the high-speed rail station scene recognition and the high-speed rail The registration of line scene recognition can also be performed at different times, and this application does not limit this. It can be understood that the application program 501 can also cancel the registration of high-speed rail line scene recognition with the terminal scene recognition device 502, and this application does not limit this.
  • a second cache operation prompt can also be performed (as shown in Figure 8), thereby enabling the user to be aware of the high-speed rail line.
  • Scene optimization is more perceptive.
  • the video application is performing the second caching operation.
  • a second prompt box pops up on the video interface.
  • the second prompt box is used to prompt the user that the video application has enabled high-speed rail line scene optimization.
  • the second prompt box may be prompt 2, and the prompt 2 may be, for example, “High-speed rail line scene optimization has been started for you.” It can be understood that FIG.
  • the second prompt box 8 is an example of the second prompt box, and this application does not limit the content and form of the second prompt box. It can be understood that the second prompt box may be displayed all the time when the second cache operation is performed, or may only be displayed for a few seconds. This application does not limit the display time of the second prompt box.
  • S409 Control the terminal to exit the high-speed rail station scene.
  • the terminal leaves the high-speed rail station but the movement state of the terminal does not enter the riding state, or the service cell where the terminal currently resides does not match the cell fence information of the high-speed rail line, representing the carrier of the terminal. Not for people taking high-speed rail. Then, the terminal can be controlled to exit the high-speed rail station scene, so that the application program no longer needs to perform the first caching operation.
  • the community fence information of the high-speed rail lines can be the community fence information of the high-speed rail lines across the country, and this application does not limit this.
  • step S406 can be to determine that the terminal has left the high-speed rail station, and then perform step S407. Therefore, when the terminal does not support sensors to identify the riding status, the high-speed rail line scenario can be realized without resorting to the determination of the riding status. identification, this application does not limit this.
  • step S408 the method also performs a process of exiting the high-speed rail line scenario.
  • Figure 9 is a flow chart of the process of exiting a high-speed rail line scenario provided by an embodiment of the present application.
  • the process of exiting the high-speed rail line scenario includes:
  • step S902 Determine whether the movement state of the terminal exits the riding state. If the movement state of the terminal exits the riding state, step S903 is executed. If the movement state of the terminal does not exit the riding state, step S902 is executed.
  • the user may arrive at the next high-speed rail station or even get off the high-speed rail.
  • the terminal's motion state will exit the ride state.
  • the acceleration data sensed by the acceleration sensor in the terminal is outside the high-speed rail operating acceleration range
  • the motion state of the terminal can be determined to exit the riding state; if the acceleration data sensed by the acceleration sensor in the terminal is outside the high-speed rail operating acceleration range, When it is within the range, it can be determined that the terminal's motion state has not exited the ride state.
  • the motion state of the terminal can be determined to exit the riding state; if the speed data sensed by the speed sensor in the terminal is within the high-speed rail operating speed range Within, it can be determined that the terminal's motion status has not exited the ride status. In some embodiments, whether the motion state of the terminal enters the riding state can be determined based on the acceleration data sensed by the acceleration sensor and the speed data sensed by the speed sensor in the terminal. This application does not limit this.
  • step S903 Determine whether the serving cell where the terminal currently resides does not match any cell information in the cell fence information of the high-speed rail line. If the serving cell where the terminal currently resides does not match any cell information in the cell fence information of the high-speed rail line, step S904 is executed. If the serving cell where the terminal currently resides matches the cell information in the cell fence information of the high-speed rail line, step S902 is executed.
  • Any mismatch of cell information in the fence information may include: querying whether there is a second target cell matching the serving cell where the terminal currently resides in the cell fence information of the high-speed rail line; if there is no second target cell in the cell fence information of the high-speed rail line If there is a second target cell that matches the serving cell where the terminal is currently camped, it is determined that the serving cell where the terminal is currently camped does not match any cell information in the cell fence information of the high-speed rail line; if the cell fence information of the high-speed rail line If there is a second target cell that matches the serving cell where the terminal is currently camped, it is determined that the serving cell where the terminal is currently camped matches the cell information in the cell fence information of the high-speed rail line.
  • Determining whether the service cell where the terminal currently resides does not match any cell information in the cell fence information of the high-speed rail line may include: querying whether there is a service that the terminal currently resides in in the cell fence information of the high-speed rail line within a preset time The second target cell that the cell matches; if there is no second target cell that matches the serving cell where the terminal currently resides in the cell fence information of the high-speed rail line within the preset time, it is determined that the serving cell where the terminal currently resides is the same as the second target cell where the terminal currently resides.
  • any cell information in the cell fence information of the high-speed rail line does not match; if within the preset time, there is a second target cell in the cell fence information of the high-speed rail line that matches the serving cell where the terminal is currently camped, then it is determined that the terminal is currently camped.
  • the remaining service cell matches the cell information in the cell fence information of the high-speed rail line. Then, the service cell where the terminal currently resides and the cell fence information of the high-speed rail line can be determined only when there is no second target cell matching the serving cell where the terminal currently resides for a preset time in the cell fence information of the high-speed rail line. Mismatch.
  • S904 The control terminal exits the high-speed rail line scene.
  • the movement state of the terminal exits the ride state, and the service cell where the terminal currently resides does not match the cell fence information of the high-speed rail line, representing the carrier of the terminal Arrive at the next high-speed rail station and maybe even get off the high-speed rail. Then, the terminal can be controlled to exit the high-speed rail line scenario.
  • the service cell where the terminal is currently camped and the cell fence information of the high-speed rail station will always be matched according to the preset cycle, or the service cell where the terminal is currently camped will be matched with the cell fence information where the terminal was camped last time.
  • step S403 When the service cells are different, it is determined whether the service cell where the terminal currently resides matches the cell fence information of the high-speed rail station. After the control terminal exits the high-speed rail line scene, step S403 and subsequent steps will continue until the control terminal exits the high-speed rail station. Scenes. Or as described in step S401, since the current geographical area information of the terminal is obtained at a preset time interval, after the control terminal exits the high-speed rail line scene, step S401 and subsequent steps will continue until the control terminal exits the high-speed rail station scene.
  • the terminal can download the community fence information of the high-speed rail station or the community fence information of the high-speed rail line from the cloud server in advance, so that the community fence information of the high-speed rail station and the community fence information of the high-speed rail line
  • the fence information can be preset in the terminal, so that there is no need to download it from the cloud server when performing terminal scene recognition.
  • the terminal when performing terminal scene recognition, can download from the cloud server the cell fence information of the high-speed rail station or the cell fence information of the high-speed rail line that the terminal currently requires, such as downloading the cell of the high-speed rail station where the terminal is currently located geographically.
  • FIG 10 is a flow chart of the process of generating high-speed rail station community fences and high-speed rail line community fences provided by the embodiment of the present application.
  • the process of generating high-speed rail station community fences and high-speed rail line community fences can be applied to multiple terminals 1101 and cloud servers 1102 as shown in Figure 11. Only three terminals 1101 are shown in the figure, but it can be understood that the number of terminals 1101 can also be any other number, and this application does not limit this.
  • the terminal 1101 may include a mobile phone with communication functions, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook , cellular phone, personal digital assistant (personal digital assistant) digital assistant (PDA), or at least one of a wearable device.
  • the terminal 1101 may include a position sensor, a mobile communication module, and a wireless communication module.
  • the location sensor can detect the geographical location of the terminal 1101, such as longitude and latitude. In some embodiments, the location sensor may be GPS, Beidou or other positioning systems.
  • the mobile communication module can be used to receive system messages broadcast by the base station 1103, and the wireless communication module can be used for the terminal 1101 to communicate with the cloud server 1102.
  • the process of generating high-speed rail station community fences and high-speed rail line community fences includes:
  • Each terminal obtains the terminal's geographical location through a location sensor.
  • the terminal obtains the terminal's geographical location through the location sensor only when the location sensor is turned on.
  • the turning on may be only turning on when positioning is required, or turning on at preset time intervals.
  • the number of terminal geographical locations obtained by each terminal may be one or more.
  • the terminal's geographical location may be the terminal's geographical location obtained by the location sensor at 9 a.m. and 9:30 a.m. respectively.
  • the terminal geographical location may include a geographical location within a high-speed rail station, a geographical location on a high-speed rail line, or a geographical location that is not within a high-speed rail station but not on a high-speed rail line, etc.
  • Figure 12 shows five terminals (terminal 1, terminal 2, terminal 3, terminal 4 and terminal 5) acquiring the terminal geographical location.
  • the five terminal geographical locations are location 1, location 2, location 3, location 4 and location 5 respectively.
  • positions 1 and 2 are the geographical locations within high-speed rail station E
  • locations 3, 4, and 5 are the geographical locations on the high-speed rail line (high-speed rail station E to high-speed rail station D).
  • the number of terminals can be other numbers
  • the number of geographical locations within the high-speed rail station E can be other numbers
  • the number of geographical locations on the high-speed rail line (high-speed rail station E to high-speed rail station D) can be
  • the terminal geographical location may also include the geographical location in other high-speed rail stations and the geographical location on other high-speed rail lines, which is not limited by this application.
  • Each terminal monitors the serving cell where the terminal currently resides.
  • the terminal may receive system messages broadcast by the base station, and monitor the serving cell where the terminal is currently camped based on the received system messages.
  • the serving cells where the five terminals can monitor the terminals currently camp are respectively cell d1, cell d2, cell f1, cell f2, and cell f3.
  • Each terminal associates the terminal's geographical location with the serving cell where the terminal currently resides.
  • the terminal's geographical location is obtained, or when the terminal's geographical location is obtained, the serving cell where the terminal currently resides is monitored. Then, the serving cell where the terminal currently resides may be a cell covering the geographical location of the terminal, and there is a certain correlation between the serving cell where the terminal currently resides and the terminal's geographical location.
  • the terminal geographical locations associated with these five terminals and the serving cells where the terminals currently reside can be respectively (location 1, cell d1), (location 2, cell d2), (location 3, cell f1), (position 4, cell f2), and (position 5, cell f3).
  • Each terminal sends the associated terminal geographical location and the service cell where the terminal currently resides to the cloud server.
  • each terminal may send one or more associated terminal geographical locations and the serving cell where the terminal currently resides to the cloud server at a time. That is, each terminal can send the associated terminal geographical location and the serving cell where the terminal currently resides to the cloud server after associating the terminal's geographical location with the serving cell where the terminal currently resides; or when the current network quality is greater than the preset Threshold, or at a preset time, or when the associated terminal geographical location and the number of serving cells where the terminal currently resides are greater than the preset value, data is sent to the cloud server.
  • the cloud server obtains the polygon geography region of the high-speed rail station and the geographic region of the high-speed rail line through the electronic map.
  • the electronic map includes geographical outline points of multiple transportation networks and the geographical location of each outline point.
  • the transportation network includes high-speed rail stations and high-speed rail lines.
  • the outline point of the transportation network is a boundary surrounded by all geographical locations of the transportation network.
  • the outline point of high-speed rail station A is a boundary surrounded by all geographical locations within high-speed rail station A.
  • the outline point of high-speed rail line B is a boundary surrounded by all geographical locations within high-speed rail line B.
  • the polygonal geographic area of the high-speed rail station may include all geographic locations of the high-speed rail station
  • the geographic area of the high-speed rail line may include all geographic locations of the high-speed rail line.
  • All the geographical locations of the high-speed rail station may be the contour points of the high-speed rail station and the geographical location of each contour point.
  • All the geographical locations of the high-speed rail line may include the contour points of the high-speed rail line and the geographical location of each contour point.
  • the contour points of the high-speed rail station may be the contour points of the outer contour of the high-speed rail station, and the contour points of the high-speed rail line may be the contour points of the high-speed rail track. It can be understood that the contour points of the high-speed rail station can be contour points formed by the translational expansion of the outer contour of the high-speed rail station, and the contour points of the high-speed rail line can be contour points formed by the translational expansion of the contour of the high-speed rail track.
  • All the geographical locations of the high-speed rail stations may also be a set of all geographical locations of the high-speed rail stations, and all the geographical locations of the high-speed rail lines may also be a set of all geographical locations of the high-speed rail lines.
  • the cloud server determines the first target terminal geographical location among all received terminal geographical locations that matches the polygonal geographical area of the high-speed rail station.
  • the cloud server determines the first target terminal geographical location that matches the polygonal geographical area of the high-speed rail station among all received terminal geographical locations, including: the cloud server queries the target in the polygonal geographical area of the high-speed rail station that matches the terminal geographical location. Terminal geographical location; gather all target terminal geographical locations into the first target terminal geographical location.
  • the cloud server determines that among all received terminal geographical locations, the first target terminal geographical location that matches the polygonal geographical area of high-speed rail station E includes location 1 and location 2.
  • the cloud server collects all the service cells where the terminal currently resides corresponding to the geographical location of the first target terminal to form the cell fence information of the high-speed rail station.
  • the cloud server collects the cell d1 corresponding to position 1 and the cell d2 corresponding to position 2 to form the cell fence information of high-speed rail station E in XX City (cell d1, cell d2).
  • the community fence information may also include city information, high-speed rail station information, etc., and this application does not limit this.
  • the cloud server determines the second target terminal geographical location that matches the geographical area of the high-speed rail line among all received terminal geographical locations.
  • the cloud server determines the second target terminal geographical location that matches the geographical area of the high-speed rail line among all received terminal geographical locations, including: the cloud server queries the geographical location of the target terminal that matches the terminal geographical location in the geographical area of the high-speed rail line. Location; gather all target terminal geographical locations into the second target terminal geographical location.
  • the cloud server determines that among all received terminal geographical locations, the second target terminal geographical location that matches the geographical area of the high-speed rail line includes location 3, location 4, and location 5.
  • the cloud server collects all service cells where the terminal currently resides corresponding to the geographical location of the second target terminal to form cell fence information of the high-speed rail line.
  • the cloud server collects the cell f1 corresponding to position 3, the cell f2 corresponding to position 4, and the cell f3 corresponding to position 5 to form a cell fence for the high-speed rail line from high-speed rail station E to high-speed rail station D in XX City.
  • Information (cell f1, cell f2, cell f3).
  • the community fence information may also include high-speed rail station information, high-speed rail line information, etc., and this application does not limit this.
  • steps S1006-S1007 and steps S1008-S1009 can be interchanged; steps S1006 and step S1008 can be executed at the same time, and step S1007 and step S1009 can be executed at the same time. This is not limited by the application.
  • the cloud server can collect the service cells where the terminals currently reside corresponding to the geographical locations of all first target terminals within the preset time period (such as January, etc.) to form a high-speed rail station.
  • the cell fence information is collected, and the service cells where the terminals currently reside corresponding to the geographical location of all second target terminals within the preset time period are collected to form the cell fence information of the high-speed rail line, so that the cell fence information of the high-speed rail station can be updated.
  • community fence information for high-speed rail lines this application does not limit this.
  • terminal scene identification method can also be used to identify terminal scenes in environments such as highways and subways.
  • FIG. 14 is a schematic diagram of the logical structure of a terminal scene recognition device according to an embodiment of the present application.
  • the terminal scene recognition device 140 includes a processing unit 1401 and an acquisition unit 1402.
  • the processing unit 1401 is used to determine that the terminal is at a high-speed rail station.
  • the obtaining unit 1402 is configured to obtain the first cell fence information of the high-speed rail line; the first cell fence information includes cellular cell information covering the geographical area of the high-speed rail line.
  • the processing unit 1401 is also configured to enter the high-speed rail line scenario if the terminal leaves the high-speed rail station and the serving cell where the terminal currently resides matches the first cell fence information.
  • the processing unit 1401 is also configured to obtain second cell fence information of the high-speed rail station; the second cell fence information includes cellular cell information covering the geographical area of the high-speed rail station; if the If the serving cell where the terminal currently resides matches the fence information of the second cell, it is determined that the terminal is at the high-speed rail station.
  • the processing unit 1401 determines the serving cell where the terminal currently camps based on the system information of the cell.
  • the processing unit 1401 is further configured to: if within a preset time, the first cell fence information contains a preset number of cells that match the serving cell where the terminal is currently camped. a target cell, and determine that the serving cell where the terminal is currently camped matches the first cell fence information.
  • the processing unit 1401 before obtaining the first cell fence information of the high-speed rail line, is also configured to: the terminal enters the high-speed rail station scene; wherein, in the high-speed rail station scene, the terminal The application program running on the high-speed rail station performs a first caching operation; the cache amount of the application program cache when performing the first cache operation is greater than the cache amount of the application program cache before the application program enters the high-speed rail station scene.
  • the application program running on the terminal performs a second caching operation; the cache amount of the application program when performing the second caching operation is greater than when performing the second caching operation. The amount of cache cached by the application during the first cache operation.
  • the processing unit 1401 is also configured to: if the terminal leaves the high-speed rail station and the serving cell where the terminal currently resides does not match the first cell fence information, then the The terminal exits the high-speed rail station scene.
  • the processing unit 1401 is also configured to: if the terminal leaves the high-speed rail station, the movement state of the terminal enters the high-speed rail riding state, and the serving cell where the terminal currently resides is the same as If the first cell fence information matches, the terminal enters the high-speed rail line scenario.
  • the processing unit 1401 is also configured to: if the movement state of the terminal exits the high-speed rail riding state, and the serving cell where the terminal currently resides is the same as the first cell If any cell information in the fence information does not match, the terminal exits the high-speed rail line scenario.
  • the obtaining unit 1402 is further configured to: obtain the first cell fence information from a cloud server; or obtain the pre-stored first cell fence information locally.
  • the obtaining unit 1402 is also configured to obtain the location where the terminal is currently located from the cloud server.
  • the device further includes a sending unit 1403.
  • the obtaining unit 1402 is also configured to obtain the geographical location of the terminal, and the geographical location of the terminal is the The geographical location of the high-speed rail line;
  • the processing unit 1401 is also used to monitor the serving cell where the terminal currently resides;
  • the processing unit 1401 is also used to combine the geographical location of the terminal with the current location of the terminal.
  • the sending unit 1403 is also configured to send the associated geographical location of the terminal and the serving cell where the terminal currently resides to the cloud server for use.
  • the cloud server generates the community fence information of the high-speed rail line.
  • the obtaining unit 1402 before obtaining the second community fence information of the high-speed rail station, the obtaining unit 1402 is also used to obtain the geographical area information where the terminal is currently located; the obtaining unit 1402 is also used to obtain information about the current geographical area of the terminal if the terminal When the current geographical area information changes, the second cell fence information of the terminal's current geographical area information is obtained. In some embodiments, when the terminal's current geographical area information is different from the terminal's previous geographical area information, the terminal's current geographical area information changes. In some embodiments, when the terminal's current geographical area information is obtained for the first time, the terminal's current geographical area information changes.
  • the processing unit 1401 is also configured to continue to monitor the serving cell where the terminal currently camps if the serving cell where the terminal currently camps does not match the second cell fence information. serving cell.
  • the terminal scene recognition device described in the embodiment of this application can be used to implement the operations performed by the terminal in the above terminal scene recognition method.
  • This application obtains the cell fence information of the high-speed rail line when the terminal is in the high-speed rail station scenario. If the terminal leaves the high-speed rail station, it is judged whether the service cell where the terminal currently resides matches the cell fence information of the high-speed rail line. If it matches, control The terminal enters the high-speed rail line scene.
  • the cell fence information of the high-speed rail line includes the cellular cell information covering the geographical area of the high-speed rail line. This allows the terminal to accurately identify the high-speed rail line scene where the terminal is located, independent of the high-speed rail dedicated network community deployed by the operator.
  • the present application can be implemented by software plus necessary general hardware. Of course, it can also be implemented by dedicated hardware including dedicated integrated circuits, dedicated CPUs, dedicated memories, Special components, etc. to achieve. In general, all functions performed by computer programs can be easily implemented with corresponding hardware. Moreover, the specific hardware structures used to implement the same function can also be diverse, such as analog circuits, digital circuits or special-purpose circuits. circuit etc. However, for this application, software program implementation is a better implementation in most cases. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or that contributes to the existing technology.
  • the computer software product is stored in a readable storage medium, such as a computer floppy disk. , U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., including several instructions to cause a computer device (which can be a personal computer, server, or network device, etc.) to execute the method described in each embodiment of the application. .
  • a computer device which can be a personal computer, server, or network device, etc.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transferred from a website, computer, server, or data center Via wired (e.g. coaxial cable, Optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means to transmit to another website, computer, server or data center.
  • wired e.g. coaxial cable, Optical fiber, digital subscriber line (DSL)
  • wireless such as infrared, wireless, microwave, etc.
  • the computer-readable storage medium may be any available medium that a computer can store, or a data storage device such as a server or data center integrated with one or more available media.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (Solid State Disk, SSD)), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Instructional Devices (AREA)

Abstract

The present application discloses a terminal scene identifying method and device, a terminal, a storage medium and a program product, capable of identifying a scene where a terminal is located without depending on a high-speed rail private network cell deployed by an operator, and improving the identification rate of terminal scenes. The terminal scene identifying method comprises: a terminal is determined to be at a high-speed rail station; the terminal acquires first cell fence information of a high-speed rail line, the first cell fence information comprising cell information covering a geographic area of the high-speed rail line; and if the terminal leaves the high-speed rail station and a serving cell on which the terminal currently camps matches the first cell fence information, the terminal enters a high-speed rail line scene.

Description

终端场景识别方法、装置、终端、存储介质及程序产品Terminal scene recognition method, device, terminal, storage medium and program product
本申请要求于2022年06月30日提交中国国家知识产权局、申请号为202210779011.9、发明名称为“终端场景识别方法、装置、终端、存储介质及程序产品”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application submitted to the State Intellectual Property Office of China on June 30, 2022, with the application number 202210779011.9 and the invention title "Terminal scene recognition method, device, terminal, storage medium and program product", which The entire contents are incorporated herein by reference.
技术领域Technical field
本申请涉及通信应用技术领域,尤其涉及一种终端场景识别方法、装置、终端、存储介质及程序产品。The present application relates to the field of communication application technologies, and in particular to a terminal scene recognition method, device, terminal, storage medium and program product.
背景技术Background technique
高铁等为一种在全封闭环境中自动化运行的交通工具。高铁等的坐席宽敞舒适,走行性能好,运行非常平稳,乘坐高铁等几乎无不便之感。目前随着高铁等线路的不断增多,以及高铁等速度的不断提升,高铁等成为人们出行的首选交通工具,导致高铁等乘客数也不断增多,高铁等上的终端使用量也不断增多,从而,对高铁等上的终端信号有了更高的要求。但是,目前由于高铁等移动速度比较快,终端需要高频率的进行小区切换,同时高铁等运行时经过的隧道较多,这些将会导致终端通信功能体验差。因此,需要准确识别出终端所处的场景,例如在高铁线路上同高铁一起移动,从而可后续根据识别的终端场景作出对应的优化措施,方便提高终端通信功能体验。High-speed rail is a means of transportation that operates automatically in a fully enclosed environment. The seats on high-speed trains are spacious and comfortable, the running performance is good, and the operation is very smooth. There is almost no inconvenience when riding on high-speed trains. At present, with the continuous increase of high-speed rail lines and the continuous improvement of the speed of high-speed rail, high-speed rail has become the preferred means of transportation for people to travel. As a result, the number of passengers on high-speed rail has also continued to increase, and the terminal usage on high-speed rail has also continued to increase. As a result, There are higher requirements for terminal signals on high-speed rail and so on. However, currently, due to the high speed of high-speed railways and other mobile terminals, terminals need to perform cell switching at high frequency. At the same time, high-speed railways and other railways pass through many tunnels when running, which will lead to poor communication function experience of terminals. Therefore, it is necessary to accurately identify the scene in which the terminal is located, such as moving with the high-speed rail on a high-speed rail line, so that corresponding optimization measures can be made based on the identified terminal scene to facilitate the improvement of the terminal communication function experience.
发明内容Contents of the invention
鉴于以上内容,有必要提供一种终端场景识别方法、装置、终端、存储介质及程序产品,可准确识别出终端所处的场景。In view of the above, it is necessary to provide a terminal scene recognition method, device, terminal, storage medium and program product that can accurately identify the scene in which the terminal is located.
第一方面,本申请的一实施例提供一种终端场景识别方法,所述方法包括:终端确定处于高铁站;所述终端获取高铁线路的第一小区围栏信息;所述第一小区围栏信息包括覆盖所述高铁线路的地理区域的蜂窝小区信息;若所述终端离开所述高铁站,且所述终端当前驻留的服务蜂窝小区与所述第一小区围栏信息匹配,则所述终端进入高铁线路场景。In a first aspect, an embodiment of the present application provides a terminal scene identification method. The method includes: determining that the terminal is at a high-speed rail station; the terminal obtains first cell fence information of the high-speed rail line; the first cell fence information includes Cell information covering the geographical area of the high-speed rail line; if the terminal leaves the high-speed rail station and the serving cell where the terminal currently resides matches the first cell fence information, the terminal enters the high-speed rail station line scene.
本申请的第一方面,终端通过确定在高铁站后,若终端离开高铁站,且终端当前驻留的服务蜂窝小区与覆盖所述高铁线路的地理区域的蜂窝小区信息匹配,则终端可进入高铁线路场景,从而,即使没有运营商部署的高铁专网小区,也可识别终端处于高铁线路场景,从而可不依赖于运营商部署的高铁专网小区识别终端所处的高铁线路场景,提高了终端场景的识别率。In the first aspect of this application, after the terminal is determined to be at a high-speed rail station, if the terminal leaves the high-speed rail station and the serving cell where the terminal currently resides matches the cell information covering the geographical area of the high-speed rail line, the terminal can enter the high-speed rail Line scene, so that even if there is no high-speed rail private network cell deployed by the operator, the terminal can still be identified as being in the high-speed rail line scene, so that the high-speed rail line scene of the terminal can be identified without relying on the high-speed rail private network cell deployed by the operator, improving the terminal scenario recognition rate.
根据本申请的一些实施例,所述终端确定处于高铁站包括:所述终端获取所述高铁站的第二小区围栏信息;所述第二小区围栏信息包括覆盖所述高铁站的地理区域的蜂窝小区信息;若所述终端当前驻留的服务蜂窝小区与所述第二小区围栏信息匹配,则所述终端确定处于所述高铁站。本申请通过在终端当前驻留的服务蜂窝小区与覆盖所述高铁站的地理区域的 蜂窝小区信息匹配时,确定所述终端处于所述高铁站,从而可识别终端处于高铁站。According to some embodiments of the present application, determining that the terminal is at a high-speed rail station includes: the terminal obtains second cell fence information of the high-speed rail station; the second cell fence information includes cells covering the geographical area of the high-speed rail station. Cell information; if the serving cell where the terminal currently resides matches the second cell fence information, the terminal is determined to be at the high-speed rail station. This application uses the service cell where the terminal currently resides and the geographical area covering the high-speed rail station. When the cell information matches, it is determined that the terminal is at the high-speed rail station, so that it can be identified that the terminal is at the high-speed rail station.
根据本申请的一些实施例,所述终端是根据蜂窝小区的系统信息确定当前驻留的所述服务蜂窝小区。本申请通过所述蜂窝小区的系统信息确定终端当前驻留的所述服务蜂窝小区,从而,即使所述终端当前没有接入网络,所述终端也可接收到小区所对应的基站广播的系统消息,并确定终端当前驻留的服务蜂窝小区。According to some embodiments of the present application, the terminal determines the serving cell where it is currently camping based on system information of the cell. This application uses the system information of the cell to determine the serving cell where the terminal is currently camped. Therefore, even if the terminal is not currently accessing the network, the terminal can receive the system message broadcast by the base station corresponding to the cell. , and determine the serving cell where the terminal currently resides.
根据本申请的一些实施例,所述终端当前驻留的服务蜂窝小区与所述第一小区围栏信息匹配包括:若在预设时间内所述第一小区围栏信息中存在与所述终端当前驻留的所述服务蜂窝小区匹配的预设数量的多个目标蜂窝小区,所述终端确定所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息匹配。本申请通过在预设时间内所述第一小区围栏信息中存在与所述终端当前驻留的所述服务蜂窝小区匹配的预设数量的多个目标蜂窝小区,才确定所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息匹配,从而可避免由于高铁速度较快等导致的终端没有驻留在覆盖某个高铁线路区域的蜂窝小区上时误判终端不处于高铁线路场景下,同时可避免行人沿高铁线路行走或车辆沿高铁线路行驶时误判为处于高铁线路场景下。According to some embodiments of the present application, matching the serving cell cell where the terminal is currently camped with the first cell fence information includes: if within a preset time, the first cell fence information contains the same service cell that the terminal is currently camped on. A preset number of target cells are matched with the remaining serving cells, and the terminal determines that the serving cell where the terminal is currently camped matches the first cell fence information. This application determines that the terminal is currently camped by having a preset number of multiple target cells that match the serving cell where the terminal is currently camped in the first cell fence information within a preset time. The serving cell and the fence information of the first cell match, thereby avoiding the misjudgment that the terminal is not on the high-speed rail line when the terminal does not reside on a cell covering a certain high-speed rail line area due to the high speed of the high-speed rail. In the scene, it can also avoid pedestrians walking along the high-speed rail line or vehicles driving along the high-speed rail line from being mistakenly judged to be in the high-speed rail line scene.
根据本申请的一些实施例,在所述终端获取高铁线路的第一小区围栏信息之前,所述方法还包括:所述终端进入高铁站场景;其中,在所述高铁站场景下,所述终端上运行的应用程序执行第一缓存操作;执行所述第一缓存操作时所述应用程序缓存的缓存量大于所述应用程序进入所述高铁站场景之前所述应用程序缓存的缓存量。本申请通过设置高铁站场景下的第一缓存操作,可使得在用户进入高铁站时也可以正常使用终端的目标应用程序,并当用户可能将进入的高铁线路上的信号较差时,也能在高铁线路上正常使用终端的目标应用程序。According to some embodiments of the present application, before the terminal obtains the first cell fence information of the high-speed rail line, the method further includes: the terminal enters the high-speed rail station scene; wherein, in the high-speed rail station scene, the terminal The application program running on the high-speed rail station performs a first caching operation; the cache amount of the application program cache when performing the first cache operation is greater than the cache amount of the application program cache before the application program enters the high-speed rail station scene. By setting the first cache operation in the high-speed rail station scenario, this application can enable the user to use the target application of the terminal normally when entering the high-speed rail station, and when the signal on the high-speed rail line that the user may enter is poor, the target application can also be used normally. Target application for normal use of terminals on high-speed rail lines.
根据本申请的一些实施例,在所述高铁线路场景下,所述终端上运行的所述应用程序执行第二缓存操作;执行所述第二缓存操作时所述应用程序缓存的缓存量大于执行所述第一缓存操作时所述应用程序缓存的缓存量。本申请通过设置高铁线路场景下的第二缓存操作,可使得当用户在高铁线路上乘车时也能在高铁线路上正常使用终端的目标应用程序。According to some embodiments of the present application, in the high-speed rail line scenario, the application program running on the terminal performs a second caching operation; when performing the second caching operation, the cache amount of the application program is larger than that of the application program when executing the second caching operation. The cache amount of the application program during the first cache operation. By setting the second cache operation in the high-speed rail line scenario, this application can enable the user to normally use the target application of the terminal on the high-speed rail line when riding on the high-speed rail line.
根据本申请的一些实施例,所述方法还包括:若所述终端离开所述高铁站,且所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息不匹配,则所述终端退出所述高铁站场景。本申请可在终端离开高铁站,且不处于高铁线路上跟随高铁乘车的状态时,退出高铁站场景,从而可识别出终端不处于高铁站场景下。According to some embodiments of the present application, the method further includes: if the terminal leaves the high-speed rail station and the serving cell where the terminal currently resides does not match the first cell fence information, then The terminal exits the high-speed rail station scene. This application can exit the high-speed rail station scene when the terminal leaves the high-speed rail station and is not in the state of following the high-speed rail on the high-speed rail line, thereby identifying that the terminal is not in the high-speed rail station scene.
根据本申请的一些实施例,所述若所述终端离开所述高铁站,且所述终端当前驻留的服务蜂窝小区与所述第一小区围栏信息匹配包括:若所述终端离开所述高铁站,所述终端的运动状态进入高铁乘车状态,且所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息匹配。本申请可通过当终端离开高铁站,终端的运动状态进入高铁乘车状态,且终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息匹配时,才控制所述终端进入高铁线路场景,可避免误识别为高铁线路场景的概率。According to some embodiments of the present application, if the terminal leaves the high-speed railway station, and the serving cell cell where the terminal currently resides matches the first cell fence information, the step includes: if the terminal leaves the high-speed railway station, Station, the movement state of the terminal enters the high-speed rail riding state, and the serving cell cell where the terminal currently resides matches the first cell fence information. This application can control the terminal to enter the high-speed rail line only when the terminal leaves the high-speed rail station, the terminal's motion state enters the high-speed rail riding state, and the serving cell cell where the terminal currently resides matches the fence information of the first cell. scene to avoid the probability of misidentification as a high-speed rail line scene.
根据本申请的一些实施例,所述方法还包括:若所述终端的所述运动状态退出所述高铁乘车状态,且所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息中的任意蜂窝小区信息不匹配,则所述终端退出所述高铁线路场景。本申请可在终端的状态为不再是高铁乘车状态,且不再处于高铁线路上跟随高铁乘车的状态时,退出高铁线路场景,从而可识别出终端不处于高铁线路场景下。 According to some embodiments of the present application, the method further includes: if the movement state of the terminal exits the high-speed rail riding state, and the serving cell where the terminal currently resides is the same as the first cell If any cell information in the fence information does not match, the terminal exits the high-speed rail line scenario. This application can exit the high-speed rail line scene when the terminal is no longer in the high-speed rail riding state and is no longer in the high-speed rail line following the high-speed rail riding state, thereby identifying that the terminal is not in the high-speed rail line scene.
根据本申请的一些实施例,所述终端获取高铁线路的第一小区围栏信息包括:所述终端从云端服务器获取所述第一小区围栏信息;或者,所述终端从本地获取预先存储的所述第一小区围栏信息。本申请可从云端服务器或本地获取所述第一小区围栏信息。According to some embodiments of the present application, the terminal obtaining the first cell fence information of the high-speed rail line includes: the terminal obtaining the first cell fence information from a cloud server; or the terminal obtaining the pre-stored cell fence information locally. First community fence information. This application can obtain the first cell fence information from a cloud server or locally.
根据本申请的一些实施例,所述终端获取高铁线路的第一小区围栏信息包括:所述终端从云端服务器获取所述终端当前所处的所述高铁站的所有高铁线路的所述第一小区围栏信息。本申请可仅需从云端服务器获取所述高铁站的所有高铁线路的小区围栏信息便可执行终端场景识别,可在下载时节省流量。According to some embodiments of the present application, the terminal obtaining the first cell fence information of the high-speed rail line includes: the terminal obtaining the first cell of all high-speed rail lines of the high-speed rail station where the terminal is currently located from the cloud server. Fence information. This application can perform terminal scene recognition by simply obtaining the community fence information of all high-speed rail lines in the high-speed rail station from the cloud server, which can save traffic during downloading.
根据本申请的一些实施例,在所述终端确定处于高铁站之前,所述方法还包括:所述终端获取所述终端的地理位置,所述终端的地理位置为所述高铁线路的地理位置;所述终端监听所述终端当前驻留的所述服务蜂窝小区;所述终端将所述终端的所述地理位置和所述终端当前驻留的所述服务蜂窝小区进行关联;所述终端将关联的所述终端的所述地理位置和所述终端当前驻留的所述服务蜂窝小区发送至云端服务器,以供所述云端服务器生成所述高铁线路的所述小区围栏信息。本申请可通过终端将关联的所述终端的所述地理位置和所述终端当前驻留的所述服务蜂窝小区发送至云端服务器,使得云端服务器可生成高铁线路的小区围栏信息。According to some embodiments of the present application, before the terminal is determined to be at a high-speed rail station, the method further includes: the terminal obtains the geographical location of the terminal, and the geographical location of the terminal is the geographical location of the high-speed rail line; The terminal monitors the serving cell where the terminal currently resides; the terminal associates the geographical location of the terminal with the serving cell where the terminal currently resides; the terminal associates The geographical location of the terminal and the serving cell where the terminal currently resides are sent to the cloud server, so that the cloud server can generate the cell fence information of the high-speed rail line. This application can send the associated geographical location of the terminal and the serving cell where the terminal currently resides to the cloud server through the terminal, so that the cloud server can generate cell fence information of the high-speed rail line.
根据本申请的一些实施例,在所述终端获取所述高铁站的第二小区围栏信息之前,所述方法还包括:所述终端获取所述终端当前所在地理区域信息;所述终端获取所述高铁站的第二小区围栏信息包括:若所述终端当前所在地理区域信息变化,则所述终端获取所述终端当前所在地理区域信息的所述第二小区围栏信息。本申请可通过终端获取地理区域信息,并在仅终端当前所在地理区域信息变化时,才获取高铁站的所述小区围栏信息,可仅需要下载终端当前所在地理区域信息的第二小区围栏信息,便可执行终端场景识别,可节省流量,同时,仅在终端当前所在地理区域信息变化时才获取第二小区围栏信息,进一步节省流量。According to some embodiments of the present application, before the terminal obtains the second cell fence information of the high-speed rail station, the method further includes: the terminal obtains the geographical area information where the terminal is currently located; the terminal obtains the The second cell fence information of the high-speed rail station includes: if the terminal's current geographical area information changes, the terminal obtains the second cell fence information of the terminal's current geographical area information. This application can obtain geographical area information through the terminal, and obtain the community fence information of the high-speed rail station only when the terminal's current geographical area information changes. It only needs to download the second community fence information of the terminal's current geographical area information. Terminal scene recognition can be performed, which can save traffic. At the same time, the second cell fence information is only obtained when the terminal's current geographical area information changes, further saving traffic.
根据本申请的一些实施例,所述方法还包括:若所述终端当前驻留的所述服务蜂窝小区与所述第二小区围栏信息不匹配,则继续监听所述终端当前驻留的所述服务蜂窝小区。本申请可通过监听终端当前驻留的服务蜂窝小区,在终端退出高铁线路场景时,可继续确定终端是否进入下一个高铁站场景。According to some embodiments of the present application, the method further includes: if the serving cell where the terminal is currently camped does not match the second cell fence information, continuing to monitor the cell where the terminal is currently camped. serving cell. This application can continue to determine whether the terminal enters the next high-speed rail station scene when the terminal exits the high-speed rail line scene by monitoring the serving cellular cell where the terminal currently resides.
第二方面,本申请的一实施例提供一种终端场景识别装置,所述装置包括处理单元和获取单元:所述处理单元用于确定所述终端处于高铁站;所述获取单元用于获取高铁线路的第一小区围栏信息;所述第一小区围栏信息包括覆盖所述高铁线路的地理区域的蜂窝小区信息;所述处理单元还用于若所述终端离开所述高铁站,且所述终端当前驻留的服务蜂窝小区与所述第一小区围栏信息匹配,则所述终端进入高铁线路场景。In the second aspect, an embodiment of the present application provides a terminal scene recognition device. The device includes a processing unit and an acquisition unit: the processing unit is used to determine that the terminal is at a high-speed rail station; the acquisition unit is used to obtain the high-speed rail station. The first cell fence information of the line; the first cell fence information includes cellular cell information covering the geographical area of the high-speed rail line; the processing unit is also used to: if the terminal leaves the high-speed rail station, and the terminal If the serving cell where the terminal currently resides matches the fence information of the first cell, the terminal enters the high-speed rail line scenario.
根据本申请的一些实施例,所述处理单元还用于:获取所述高铁站的第二小区围栏信息;所述第二小区围栏信息包括覆盖所述高铁站的地理区域的蜂窝小区信息;若所述终端当前驻留的服务蜂窝小区与所述第二小区围栏信息匹配,则确定所述终端处于所述高铁站。According to some embodiments of the present application, the processing unit is further configured to: obtain second cell fence information of the high-speed rail station; the second cell fence information includes cellular cell information covering the geographical area of the high-speed rail station; if If the serving cell where the terminal currently resides matches the fence information of the second cell, it is determined that the terminal is at the high-speed rail station.
根据本申请的一些实施例,所述处理单元是根据蜂窝小区的系统信息确定所述终端当前驻留的所述服务蜂窝小区。According to some embodiments of the present application, the processing unit determines the serving cell where the terminal currently camps based on system information of the cell.
根据本申请的一些实施例,所述处理单元还用于:若在预设时间内所述第一小区围栏信息中存在与所述终端当前驻留的所述服务蜂窝小区匹配的预设数量的多个目标蜂窝小区,确定所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息匹配。 According to some embodiments of the present application, the processing unit is further configured to: if there is a preset number of cells matching the serving cell where the terminal currently resides in the first cell fence information within a preset time, multiple target cells, and determine that the serving cell where the terminal is currently camped matches the first cell fence information.
根据本申请的一些实施例,在所述获取高铁线路的第一小区围栏信息之前,所述处理单元还用于:所述终端进入高铁站场景;其中,在所述高铁站场景下,所述终端上运行的应用程序执行第一缓存操作;执行所述第一缓存操作时所述应用程序缓存的缓存量大于所述应用程序进入所述高铁站场景之前所述应用程序缓存的缓存量。According to some embodiments of the present application, before obtaining the first community fence information of the high-speed rail line, the processing unit is also configured to: the terminal enters the high-speed rail station scene; wherein, in the high-speed rail station scene, the The application program running on the terminal performs a first caching operation; when the first caching operation is performed, the cache amount of the application program is greater than the cache amount of the application program cache before the application program enters the high-speed rail station scene.
根据本申请的一些实施例,在所述高铁线路场景下,所述终端上运行的所述应用程序执行第二缓存操作;执行所述第二缓存操作时所述应用程序缓存的缓存量大于执行所述第一缓存操作时所述应用程序缓存的缓存量。According to some embodiments of the present application, in the high-speed rail line scenario, the application program running on the terminal performs a second caching operation; when performing the second caching operation, the cache amount of the application program is larger than that of the application program when executing the second caching operation. The cache amount of the application program during the first cache operation.
根据本申请的一些实施例,所述处理单元还用于:若所述终端离开所述高铁站,且所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息不匹配,则所述终端退出所述高铁站场景。According to some embodiments of the present application, the processing unit is also configured to: if the terminal leaves the high-speed rail station and the serving cell where the terminal currently resides does not match the first cell fence information, Then the terminal exits the high-speed rail station scene.
根据本申请的一些实施例,所述处理单元还用于:若所述终端离开所述高铁站,所述终端的运动状态进入高铁乘车状态,且所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息匹配,则所述终端进入高铁线路场景。According to some embodiments of the present application, the processing unit is also configured to: if the terminal leaves the high-speed rail station, the movement state of the terminal enters the high-speed rail riding state, and the serving cell where the terminal currently resides If the cell matches the fence information of the first cell, the terminal enters the high-speed rail line scenario.
根据本申请的一些实施例,所述处理单元还用于:若所述终端的所述运动状态退出所述高铁乘车状态,且所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息中的任意蜂窝小区信息不匹配,则所述终端退出所述高铁线路场景。According to some embodiments of the present application, the processing unit is further configured to: if the movement state of the terminal exits the high-speed rail riding state, and the serving cell where the terminal currently resides is the same as the third If any cell information in the cell fence information does not match, the terminal exits the high-speed rail line scenario.
根据本申请的一些实施例,所述获取单元还用于:从云端服务器获取所述第一小区围栏信息;或者,从本地获取预先存储的所述第一小区围栏信息。According to some embodiments of the present application, the obtaining unit is further configured to: obtain the first cell fence information from a cloud server; or obtain the pre-stored first cell fence information locally.
根据本申请的一些实施例,所述获取单元还用于:从云端服务器获取所述终端当前所处的所述高铁站的所有高铁线路的所述第一小区围栏信息。According to some embodiments of the present application, the acquisition unit is further configured to: acquire the first cell fence information of all high-speed rail lines of the high-speed rail station where the terminal is currently located from the cloud server.
根据本申请的一些实施例,所述装置还包括发送单元,在确定所述终端处于高铁站之前:所述获取单元还用于获取所述终端的地理位置,所述终端的地理位置为所述高铁线路的地理位置;所述处理单元还用于监听所述终端当前驻留的所述服务蜂窝小区;所述处理单元还用于将所述终端的所述地理位置和所述终端当前驻留的所述服务蜂窝小区进行关联;所述发送单元还用于将关联的所述终端的所述地理位置和所述终端当前驻留的所述服务蜂窝小区发送至云端服务器,以供所述云端服务器生成所述高铁线路的所述小区围栏信息。According to some embodiments of the present application, the device further includes a sending unit. Before determining that the terminal is at a high-speed rail station: the obtaining unit is further configured to obtain the geographical location of the terminal, and the geographical location of the terminal is the The geographical location of the high-speed rail line; the processing unit is also used to monitor the serving cell where the terminal currently resides; the processing unit is also used to combine the geographical location of the terminal with the location where the terminal currently resides associated with the serving cell; the sending unit is further configured to send the associated geographical location of the terminal and the serving cell where the terminal currently resides to the cloud server for use by the cloud The server generates the community fence information of the high-speed rail line.
根据本申请的一些实施例,在获取所述高铁站的第二小区围栏信息之前,所述获取单元还用于:获取所述终端当前所在地理区域信息;所述获取单元还用于:若所述终端当前所在地理区域信息变化,则获取所述终端当前所在地理区域信息的所述第二小区围栏信息。According to some embodiments of the present application, before obtaining the second community fence information of the high-speed rail station, the obtaining unit is also used to: obtain the geographical area information where the terminal is currently located; the obtaining unit is also used to: if If the information of the geographical area where the terminal is currently located changes, the second cell fence information of the geographical area where the terminal is currently located is obtained.
根据本申请的一些实施例,所述处理单元还用于:若所述终端当前驻留的所述服务蜂窝小区与所述第二小区围栏信息不匹配,则继续监听所述终端当前驻留的所述服务蜂窝小区。According to some embodiments of the present application, the processing unit is further configured to: if the serving cell where the terminal is currently camped does not match the fence information of the second cell, continue to monitor the cell where the terminal is currently camped. The serving cell.
第三方面,本申请的一实施例提供一种终端,所述终端包括处理器和存储器,所述存储器用于存储程序指令,所述处理器调用所述程序指令时,实现如上第一方面任意一种可能的实施例的所述的终端场景识别方法。In a third aspect, an embodiment of the present application provides a terminal. The terminal includes a processor and a memory. The memory is used to store program instructions. When the processor calls the program instructions, any of the above-mentioned aspects of the first aspect can be implemented. The terminal scene identification method of a possible embodiment.
第四方面,本申请的一实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有程序,所述程序使得计算机设备实现如上第一方面任意一种可能的实施例的所述的终端场景识别方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium that stores a program, and the program enables the computer device to implement any of the possible embodiments of the first aspect. The terminal scene recognition method described above.
第五方面,本申请的一实施例提供一种计算机程序产品,所述计算机程序产品包括计算机执行指令,所述计算机执行指令存储在计算机可读存储介质中;终端的至少一个处理器可 以从所述计算机可读存储介质中读取所述计算机执行指令,所述至少一个处理器执行所述计算机执行指令使得所述终端执行如上第一方面任意一种可能的实施例的所述的终端场景识别方法。本申请中第二方面到第五方面及其各种实现方式的有益效果,可以参考第一方面及其各种实现方式,以及第一方面中的有益效果分析,此处不再赘述。In a fifth aspect, an embodiment of the present application provides a computer program product. The computer program product includes computer-executable instructions, and the computer-executable instructions are stored in a computer-readable storage medium; at least one processor of the terminal can To read the computer-executable instructions from the computer-readable storage medium, the at least one processor executes the computer-executable instructions so that the terminal executes any of the possible embodiments of the first aspect above. Terminal scene recognition method. For the beneficial effects of the second to fifth aspects and their various implementations in this application, reference can be made to the first aspect and its various implementations, as well as the analysis of the beneficial effects in the first aspect, which will not be described again here.
附图说明Description of drawings
图1为本申请实施例提供的高铁在高铁线路上运行时的场景的示意图。Figure 1 is a schematic diagram of a scenario when a high-speed train is running on a high-speed rail line according to an embodiment of the present application.
图2为本申请实施例提供的终端的硬件结构示意图。Figure 2 is a schematic diagram of the hardware structure of a terminal provided by an embodiment of the present application.
图3为本申请实施例提供的终端的软件结构框图。Figure 3 is a software structure block diagram of a terminal provided by an embodiment of the present application.
图4为本申请实施例提供的终端场景识别方法的流程图。Figure 4 is a flow chart of a terminal scene identification method provided by an embodiment of the present application.
图5为本申请实施例提供的调整缓存策略过程的流程图。Figure 5 is a flow chart of the process of adjusting the cache policy provided by the embodiment of the present application.
图6为本申请实施例提供的高铁场景下的用户界面的示意图。Figure 6 is a schematic diagram of a user interface in a high-speed rail scenario provided by an embodiment of the present application.
图7为本申请实施例提供的高铁站和线路关联关系的示意图。Figure 7 is a schematic diagram of the relationship between high-speed rail stations and lines provided by the embodiment of the present application.
图8为本申请实施例提供的高铁线路场景下的用户界面的示意图。Figure 8 is a schematic diagram of the user interface in the high-speed rail scenario provided by the embodiment of the present application.
图9为本申请实施例提供的退出高铁线路场景过程的流程图。Figure 9 is a flowchart of the process of exiting a high-speed rail line scenario provided by an embodiment of the present application.
图10为本申请实施例提供的生成高铁站小区围栏和高铁线路小区围栏过程的流程图。Figure 10 is a flow chart of the process of generating high-speed rail station community fences and high-speed rail line community fences provided by the embodiment of the present application.
图11为本申请实施例提供的终端和云端服务器的示意图。Figure 11 is a schematic diagram of a terminal and a cloud server provided by an embodiment of the present application.
图12为本申请实施例提供的终端和服务器生成高铁站小区围栏和高铁线路小区围栏的示意图。Figure 12 is a schematic diagram of the terminal and server provided by the embodiment of the present application generating high-speed rail station community fences and high-speed rail line community fences.
图13为电子地图上的局部示意图。Figure 13 is a partial schematic diagram on the electronic map.
图14为本申请实施例的终端场景识别装置的逻辑结构示意图。Figure 14 is a schematic diagram of the logical structure of a terminal scene recognition device according to an embodiment of the present application.
具体实施方式Detailed ways
在本申请实施例的描述中,“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“例如”等词旨在以具体方式呈现相关概念。In the description of the embodiments of this application, words such as "such as" are used to represent examples, illustrations or illustrations. Any embodiment or design described as "such as" in the embodiments of the application is not to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "such as" is intended to present the relevant concept in a concrete way.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请中的技术领域的技术人员通常理解的含义相同。本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。应理解,本申请中除非另有说明,“多个”是指两个或多于两个。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terms used in the description of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. It should be understood that in this application, "plurality" means two or more than two unless otherwise stated.
现有技术提供一种用户终端模式控制方法,可利用运营商部署的高铁专网小区来识别终端场景。现有的用户终端模式控制方法,在确定终端的运动状态为乘车状态时,获取调制解调器(Modem)提供的高速标识(HighSpeedFlag为true),其中,所述高速标识为LTE(Long Term Evolution,长期演进)通信网络制式携带数据。若在设定时间内(如30s内)能够连续获取到高速标识,则判断终端的当前状态为高铁沿线乘车状态。现有的用户终端模式控制方法,依赖于运营商部署的高铁专网小区,这将导致无法识别非高铁专网下的高铁场景。同时,目前仅大量部署了中国移动的高铁专网,中国电信和中国联通没有大量部署高铁专网,也没有HighSpeedFlag标识。这些将导致现有的用户终端模式控制方法的终端场景识别率较低。有鉴于此,本申请实施例提出一种终端场景识别方法,可不依赖于运营商部署的高铁专网小区,提高了终端场景的识别率。 The existing technology provides a user terminal mode control method that can use high-speed rail private network cells deployed by operators to identify terminal scenarios. In the existing user terminal mode control method, when it is determined that the motion state of the terminal is the riding state, the high-speed flag (HighSpeedFlag is true) provided by the modem (Modem) is obtained, wherein the high-speed flag is LTE (Long Term Evolution, Long Term Evolution). Evolution) communication network format carries data. If the high-speed signs can be obtained continuously within the set time (such as within 30 seconds), the current status of the terminal is judged to be the riding status along the high-speed rail. Existing user terminal mode control methods rely on high-speed rail private network cells deployed by operators, which will result in the inability to identify high-speed rail scenarios under non-high-speed rail private networks. At the same time, only China Mobile's high-speed rail private network has been deployed in large quantities. China Telecom and China Unicom have not deployed high-speed rail private networks in large quantities, and they do not have the HighSpeedFlag logo. These will result in a low terminal scene recognition rate of existing user terminal mode control methods. In view of this, embodiments of this application propose a terminal scene identification method that does not rely on high-speed rail private network cells deployed by operators, thereby improving the terminal scene identification rate.
首先以如图1所示的高铁在高铁线路上运行时的场景为例,对本申请应用的场景进行说明。First, take the scenario of high-speed rail running on a high-speed rail line as shown in Figure 1 as an example to describe the application scenario of this application.
如图1所示,一高铁在一高铁线路上运行,高铁线路上被多个小区覆盖,用于为在所述高铁线路上移动的终端提供服务。多个所述小区可包括公用基站信号覆盖的蜂窝小区,或者还可包括专用基站信号覆盖的蜂窝小区,即可包括高铁线路公网小区,或者还可包括高铁专网小区。每个小区为一个基站或者基站的一部分(扇形天线)所覆盖的范围。多个所述小区可包括支持第四代(fourth generation,4G)接入技术的小区,例如长期演进(long term evolution,LTE)接入技术的小区;或者,可以包括支持第五代(fifth generation,5G)接入技术的小区,例如新无线(new radio,NR)接入技术的小区;或者,还可以包括支持多种无线技术的小区,例如支持LTE技术和NR技术的小区。也理解,多个所述小区也可以是适用于面向未来的通信技术的小区。其中,每个小区对应一个唯一的小区的标识(cell ID)。As shown in Figure 1, a high-speed rail runs on a high-speed rail line, and the high-speed rail line is covered by multiple cells for providing services to terminals moving on the high-speed rail line. The plurality of cells may include cellular cells covered by public base station signals, or may also include cellular cells covered by dedicated base station signals, that is, high-speed rail line public network cells, or may also include high-speed rail private network cells. Each cell is the area covered by a base station or a part of a base station (sector antenna). The plurality of cells may include cells supporting fourth generation (4G) access technology, such as cells supporting long term evolution (LTE) access technology; or may include cells supporting fifth generation (fifth generation) , 5G) access technology cells, such as new radio (NR) access technology cells; or, it may also include cells supporting multiple wireless technologies, such as cells supporting LTE technology and NR technology. It is also understood that multiple of the cells may also be cells suitable for future-oriented communication technologies. Among them, each cell corresponds to a unique cell ID.
高铁线路可被划分为多个高铁线路区域,每个高铁线路区域可被一个或多个小区覆盖。在图1中,高铁线路片段可被分为六个高铁线路区域(高铁线路区域1-高铁线路区域6)。这六个高铁线路区域中的每个高铁线路区域可被一个或多个小区覆盖。例如,高铁线路区域3可被小区3和小区4覆盖。终端在经过某个高铁线路区域时,可在覆盖所述高铁线路区域的一个或多个小区中的某个小区下进行驻留。例如,在图1中,终端可在经过高铁线路区域3时,在覆盖所述高铁线路区域3的小区3下进行驻留。从而,终端可接入网络。可理解,终端在经过某个高铁线路区域时,由于高铁的速度较快等,还可不切换至覆盖所述高铁线路区域的小区,即直接跳过覆盖所述高铁线路区域的小区,而切换至覆盖下一个高铁线路区域的小区。High-speed rail lines can be divided into multiple high-speed rail line areas, and each high-speed rail line area can be covered by one or more cells. In Figure 1, the high-speed rail segment can be divided into six high-speed rail areas (high-speed rail area 1-high-speed rail area 6). Each of these six high-speed rail line areas can be covered by one or more cells. For example, high-speed rail line area 3 may be covered by cell 3 and cell 4. When the terminal passes through a certain high-speed railway line area, it can camp in a certain cell among one or more cells covering the high-speed railway line area. For example, in Figure 1, when passing through the high-speed rail area 3, the terminal can camp under the cell 3 covering the high-speed rail area 3. Therefore, the terminal can access the network. It can be understood that when the terminal passes through a certain high-speed rail line area, due to the high speed of the high-speed rail, etc., it may not switch to the cell covering the high-speed rail line area, that is, directly skip the cell covering the high-speed rail line area and switch to A community covering the next high-speed rail line area.
下面介绍本申请实施例提供的终端的硬件结构和软件结构。The hardware structure and software structure of the terminal provided by the embodiment of the present application are introduced below.
参考图2所示,为本申请实施例的终端的硬件结构示意图。终端100可以包括具有通信功能的手机、可折叠电子设备、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、蜂窝电话、个人数字助理(personal digital assistant,PDA)、或可穿戴式设备中的至少一种。本申请实施例对终端100的具体类型不作特殊限制。Refer to Figure 2, which is a schematic diagram of the hardware structure of a terminal according to an embodiment of the present application. The terminal 100 may include a mobile phone with communication functions, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone At least one of a phone, personal digital assistant (PDA), or wearable device. The embodiment of the present application does not place any special restrictions on the specific type of terminal 100.
终端100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接头130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像模组193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M,位置传感器180N等。The terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) connector 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera module 193, display screen 194, And subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, position sensor 180N, etc.
可以理解的是,本申请实施例示意的结构并不构成对终端100的具体限定。在本申请另一些实施例中,终端100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal 100. In other embodiments of the present application, the terminal 100 may include more or fewer components than shown in the figures, or some components may be combined, or some components may be separated, or may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器 (application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor. (application processor, AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (digital signal processor (DSP), baseband processor, and/or neural network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.
处理器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The processor can generate operation control signals based on the instruction opcode and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器可以为高速缓冲存储器。存储器可以保存处理器110用过或使用频率较高的指令或数据。如果处理器110需要使用指令或数据,可从存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 may be a cache memory. The memory may store instructions or data that have been used by the processor 110 or are used more frequently. If the processor 110 needs to use instructions or data, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。处理器110可以通过以上至少一种接口连接触摸传感器、音频模块、无线通信模块、显示器、摄像模组等模块。In some embodiments, processor 110 may include one or more interfaces. Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (USB) interface, etc. The processor 110 can connect touch sensors, audio modules, wireless communication modules, displays, camera modules and other modules through at least one of the above interfaces.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端100的结构限定。在本申请另一些实施例中,终端100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationships between the modules illustrated in the embodiments of the present application are only schematic illustrations and do not constitute a structural limitation on the terminal 100 . In other embodiments of the present application, the terminal 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
USB接头130是一种符合USB标准规范的接口,可以用于连接终端100和外围设备,具体可以是Mini USB接头,Micro USB接头,USB Type C接头等。The USB connector 130 is an interface that complies with USB standard specifications and can be used to connect the terminal 100 and peripheral devices. Specifically, it can be a Mini USB connector, a Micro USB connector, a USB Type C connector, etc.
充电管理模块140用于接收充电器的充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过终端100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为终端供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through the wireless charging coil of the terminal 100 . While charging the battery 142, the charging management module 140 can also provide power to the terminal through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像模组193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera module 193, the wireless communication module 160, and the like. The power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters. In some other embodiments, the power management module 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
终端100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。终端100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为 无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be multiplexed as Diversity antennas for wireless LANs. In other embodiments, antennas may be used in conjunction with tuning switches.
移动通信模块150可以提供应用在终端100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied to the terminal 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 . In some embodiments, 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 provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在终端100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),蓝牙低功耗(bluetooth low energy,BLE),超宽带(ultra wide band,UWB),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the terminal 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and Bluetooth low energy consumption. (bluetooth low energy, BLE), ultra wide band (UWB), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC) ), infrared technology (infrared, IR) and other wireless communication solutions. 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.
在一些实施例中,终端100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得终端100可以通过无线通信技术与网络和其他终端通信。无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the terminal 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal 100 can communicate with the network and other terminals through wireless communication technology. Wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband code division Multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM , and/or IR technology, etc. GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi-zenith) satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
终端100可以通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal 100 can implement display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显 示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端100可以包括1个或多个显示屏194。The display screen 194 is used to display images, videos, etc. Display 194 includes a display panel. The display panel can use liquid crystal display Liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light emitting diode or active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED) ), flexible light-emitting diodes (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc. In some embodiments, terminal 100 may include one or more display screens 194.
终端100可以通过摄像模组193,ISP,视频编解码器,GPU,显示屏194以及应用处理器AP、神经网络处理器NPU等实现摄像功能。The terminal 100 can realize the camera function through the camera module 193, ISP, video codec, GPU, display screen 194, application processor AP, neural network processor NPU, etc.
摄像模组193可用于采集拍摄对象的彩色图像数据以及深度数据。ISP可用于处理摄像模组193采集的彩色图像数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像模组193中。The camera module 193 can be used to collect color image data and depth data of the photographed object. The ISP can be used to process color image data collected by the camera module 193 . For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the light signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera module 193 .
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function.
内部存储器121可以用于存储计算机可执行程序代码,可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行终端100的各种功能方法或数据处理。Internal memory 121 may be used to store computer executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.). The storage data area may store data created during use of the terminal 100 (such as audio data, phone book, etc.). In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. The processor 110 executes various functional methods or data processing of the terminal 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
终端100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。终端100可以通过扬声器170A收听音乐,或输出免提通话的音频信号。Speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The terminal 100 can listen to music through the speaker 170A, or output audio signals for hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the terminal 100 answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。终端100可以设置至少一个麦克风170C。在另一些实施例中,终端100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C. The terminal 100 may be provided with at least one microphone 170C. In other embodiments, the terminal 100 may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the terminal 100 can also be equipped with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是 3.5mm的开放移动终端平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The headphone interface 170D is used to connect wired headphones. The headphone interface 170D can be the USB interface 130 or 3.5mm open mobile terminal platform (OMTP) standard interface, cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。终端100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,终端100根据压力传感器180A检测触摸操作强度。终端100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor may include at least two parallel plates of conductive material. When a force is applied to pressure sensor 180A, the capacitance between the electrodes changes. The terminal 100 determines the intensity of the pressure based on changes in capacitance. When a touch operation is performed on the display screen 194, the terminal 100 detects the intensity of the touch operation according to the pressure sensor 180A. The terminal 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定终端100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定终端100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测终端100抖动的角度,根据角度计算出镜头模组需要补偿的距离,控制镜头反向运动抵消终端100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the movement posture of the terminal 100 . In some embodiments, the angular velocity of terminal 100 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 180B detects the angle at which the terminal 100 shakes, calculates the distance that the lens module needs to compensate based on the angle, and controls the reverse movement of the lens to offset the shake of the terminal 100 to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,终端100根据气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。Air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。终端100可以利用磁传感器180D检测翻盖皮套的开合。当终端为可折叠终端,磁传感器180D可以用于检测终端的折叠或展开,或折叠角度。在一些实施例中,当终端100是翻盖机时,终端100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。Magnetic sensor 180D includes a Hall sensor. The terminal 100 may use the magnetic sensor 180D to detect the opening and closing of the flip cover. When the terminal is a foldable terminal, the magnetic sensor 180D can be used to detect the folding or unfolding of the terminal, or the folding angle. In some embodiments, when the terminal 100 is a flip machine, the terminal 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Then, based on the detected opening and closing status of the leather case or the opening and closing status of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测终端100在各个方向上(一般为三轴)加速度的大小。当终端100静止时可检测出重力的大小及方向。还可以用于识别终端姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the terminal 100 in various directions (generally three axes). When the terminal 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify terminal gestures and be used in horizontal and vertical screen switching, pedometer and other applications.
距离传感器180F,用于测量距离。终端100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,终端100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. The terminal 100 can measure distance by infrared or laser. In some embodiments, when shooting a scene, the terminal 100 can use the distance sensor 180F to measure distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。终端100通过发光二极管向外发射红外光。终端100使用光电二极管检测来自附近物体的红外反射光。当检测到的反射光的强度大于阈值时,可以确定终端100附近有物体。当检测到的反射光的强度小于阈值时,终端100可以确定终端100附近没有物体。终端100可以利用接近光传感器180G检测用户手持终端100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The terminal 100 emits infrared light through a light emitting diode. The terminal 100 uses photodiodes to detect infrared reflected light from nearby objects. When the intensity of the detected reflected light is greater than the threshold, it may be determined that there is an object near the terminal 100 . When the intensity of the detected reflected light is less than the threshold, the terminal 100 may determine that there is no object near the terminal 100 . The terminal 100 can use the proximity light sensor 180G to detect when the user holds the terminal 100 close to the ear for talking, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in holster mode, and pocket mode automatically unlocks and locks the screen.
环境光传感器180L可以用于感知环境光亮度。终端100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测终端100是否被遮挡,例如终端在口袋里。当检测到终端被遮挡或在口袋里,可以使部分功能(例如触控功能)处于禁用状态,以 防误操作。The ambient light sensor 180L can be used to sense ambient light brightness. The terminal 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 terminal 100 is blocked, for example, the terminal is in a pocket. When it is detected that the terminal is covered or in a pocket, some functions (such as touch functions) can be disabled to prevent Prevent misuse.
指纹传感器180H用于采集指纹。终端100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。Fingerprint sensor 180H is used to collect fingerprints. The terminal 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application lock, fingerprint photography, fingerprint answering incoming calls, etc.
温度传感器180J用于检测温度。在一些实施例中,终端100利用温度传感器180J检测的温度,执行温度处理策略。例如,当通过温度传感器180J检测的温度超过阈值,终端100执行降低处理器的性能,以便降低终端的功耗以实施热保护。在另一些实施例中,当通过温度传感器180J检测的温度低于另一阈值时,终端100对电池142加热。在其他一些实施例中,当温度低于又一阈值时,终端100可以对电池142的输出电压升压。Temperature sensor 180J is used to detect temperature. In some embodiments, the terminal 100 uses the temperature detected by the temperature sensor 180J to execute the temperature processing policy. For example, when the temperature detected by the temperature sensor 180J exceeds a threshold, the terminal 100 performs reducing the performance of the processor in order to reduce the power consumption of the terminal to implement thermal protection. In other embodiments, the terminal 100 heats the battery 142 when the temperature detected by the temperature sensor 180J is below another threshold. In some other embodiments, the terminal 100 may boost the output voltage of the battery 142 when the temperature is below yet another threshold.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于终端100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch device". The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the terminal 100 in a position different from that of the display screen 194 .
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。Bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human body's vocal part. The bone conduction sensor 180M can also contact the human body's pulse and receive blood pressure beating signals. In some embodiments, the bone conduction sensor 180M can also be provided in an earphone and combined into a bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibrating bone obtained by the bone conduction sensor 180M to implement the voice function. The application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to implement the heart rate detection function.
位置传感器180N可以检测终端的地理位置。在一些实施例中,位置传感器180N可以为GPS、北斗或者其他定位系统。The location sensor 180N can detect the geographical location of the terminal. In some embodiments, the location sensor 180N may be GPS, Beidou, or other positioning systems.
按键190可以包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端100可以接收按键输入,产生与终端100的用户设置以及功能控制有关的键信号输入。The buttons 190 may include a power button, a volume button, etc. Key 190 may be a mechanical key. It can also be a touch button. The terminal 100 may receive key input and generate key signal input related to user settings and function control of the terminal 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The motor 191 can also correspond to different vibration feedback effects for touch operations in different areas of the display screen 194 . Different application scenarios (such as time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和终端100的接触和分离。终端100可以支持1个或多个SIM卡接口。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。终端100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,终端100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端100中,不能和终端100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or separated from the terminal 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The terminal 100 can support one or more SIM card interfaces. 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. Multiple cards can be of the same type or different types. 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 terminal 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the terminal 100 adopts eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the terminal 100 and cannot be separated from the terminal 100.
终端100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云 架构。本申请实施例以分层架构的Android系统为例,示例性说明终端100的软件结构。The software system of the terminal 100 may adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. The embodiment of this application takes the Android system with a layered architecture as an example to illustrate the software structure of the terminal 100 .
图3是本申请实施例的终端100的软件结构框图。Figure 3 is a software structure block diagram of the terminal 100 according to the embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为五层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime,ART)和原生C/C++库,硬件抽象层(Hardware Abstract Layer,HAL)以及内核层。The layered architecture divides the software into several layers, and each layer has clear roles and division of labor. The layers communicate through software interfaces. In some embodiments, the Android system is divided into five layers, from top to bottom: application layer, application framework layer, Android runtime (Android runtime, ART) and native C/C++ library, hardware abstraction layer (Hardware Abstract Layer, HAL) and the kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图3所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息、新闻等应用程序。As shown in Figure 3, the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, news and other applications.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图3所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,资源管理器,通知管理器,活动管理器,输入管理器等。As shown in Figure 3, the application framework layer can include window manager, content provider, view system, resource manager, notification manager, activity manager, input manager, etc.
窗口管理器提供窗口管理服务(Window Manager Service,WMS),WMS可以用于窗口管理、窗口动画管理、surface管理以及作为输入系统的中转站。The window manager provides window management service (Window Manager Service, WMS). WMS can be used for window management, window animation management, surface management, and as a transfer station for the input system.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make this data accessible to applications. Data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text, controls that display pictures, etc. A view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如处于应用后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端振动,指示灯闪烁等。The notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a prompt sound is emitted, the terminal vibrates, and the indicator light flashes, etc.
活动管理器可以提供活动管理服务(Activity Manager Service,AMS),AMS可以用于系统组件(例如活动、服务、内容提供者、广播接收器)的启动、切换、调度以及应用进程的管理和调度工作。The Activity Manager can provide Activity Management Service (AMS), which can be used for the startup, switching, and scheduling of system components (such as activities, services, content providers, and broadcast receivers) as well as the management and scheduling of application processes. .
输入管理器可以提供输入管理服务(Input Manager Service,IMS),IMS可以用于管理系统的输入,例如触摸屏输入、按键输入、传感器输入等。IMS从输入设备节点取出事件,通过和WMS的交互,将事件分配至合适的窗口。The input manager can provide input management service (Input Manager Service, IMS). IMS can be used to manage system input, such as touch screen input, key input, sensor input, etc. IMS takes out events from the input device node and distributes the events to appropriate windows through interaction with WMS.
安卓运行时包括核心库和安卓运行时。安卓运行时负责将源代码转换为机器码。安卓运行时主要包括采用提前(ahead or time,AOT)编译技术和及时(just in time,JIT)编译技术。The Android runtime includes core libraries and Android runtime. The Android runtime is responsible for converting source code into machine code. The Android runtime mainly includes the use of ahead of time (ahead or time, AOT) compilation technology and just in time (just in time, JIT) compilation technology.
核心库主要用于提供基本的Java类库的功能,例如基础数据结构、数学、IO、工具、数据库、网络等库。核心库为用户进行安卓应用开发提供了API。 The core library is mainly used to provide basic Java class library functions, such as basic data structures, mathematics, IO, tools, databases, networks and other libraries. The core library provides APIs for users to develop Android applications.
原生C/C++库可以包括多个功能模块。例如:表面管理器(surface manager),媒体框架(Media Framework),libc,OpenGL ES、SQLite、Webkit等。Native C/C++ libraries can include multiple function modules. For example: surface manager (surface manager), media framework (Media Framework), libc, OpenGL ES, SQLite, Webkit, etc.
其中,表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体框架支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。OpenGL ES提供应用程序中2D图形和3D图形的绘制和操作。SQLite为终端100的应用程序提供轻量级关系型数据库。Among them, the surface manager is used to manage the display subsystem and provides the integration of 2D and 3D layers for multiple applications. The media framework supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. OpenGL ES provides the drawing and manipulation of 2D graphics and 3D graphics in applications. SQLite provides a lightweight relational database for terminal 100 applications.
硬件抽象层运行于用户空间(user space),对内核层驱动进行封装,向上层提供调用接口。The hardware abstraction layer runs in user space, encapsulates the kernel layer driver, and provides a calling interface to the upper layer.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
下面结合捕获拍照场景,示例性说明终端软件以及硬件的工作流程。The following is an example of the workflow of the terminal software and hardware based on capturing the photo scene.
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别输入事件所对应的控件。以触摸操作是触摸单击操作,单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头捕获静态图像或视频。When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, and other information). Raw input events are stored at the kernel level. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Take the touch operation as a touch-click operation, and the control corresponding to the click operation is a camera application icon control as an example. The camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer to capture the image through the camera. Still image or video.
参考图4,为本申请实施例提供的终端场景识别方法的流程图。所述终端场景识别方法应用于图2和图3所示的终端上,所述终端包括终端场景识别装置。所述终端场景识别装置可被划分为一个或多个单元,所述一个或多个单元用于实现所述终端场景识别方法中的步骤。所述终端场景识别方法用于对高铁环境下的终端场景进行识别。所述终端场景识别方法包括:Refer to Figure 4, which is a flow chart of a terminal scene identification method provided by an embodiment of the present application. The terminal scene recognition method is applied to the terminal shown in Figures 2 and 3, and the terminal includes a terminal scene recognition device. The terminal scene recognition device may be divided into one or more units, and the one or more units are used to implement the steps in the terminal scene recognition method. The terminal scene identification method is used to identify terminal scenes in a high-speed rail environment. The terminal scene identification method includes:
S401:获取高铁站的小区围栏信息。S401: Obtain community fence information of the high-speed rail station.
在一些实施例中,所述高铁站的小区围栏信息可为由覆盖高铁站的地理区域的所有小区所围出的一个虚拟的边界。所述高铁站的小区围栏信息包括高铁站的信息和覆盖所述高铁站的地理区域的所有小区的标识(cell ID)。可理解,所述高铁站的小区围栏信息也可为由覆盖高铁站的地理区域的大部分小区所围出的一个虚拟的边界,本申请对此不作限制。In some embodiments, the cell fence information of the high-speed rail station may be a virtual boundary surrounded by all cells covering the geographical area of the high-speed rail station. The cell fence information of the high-speed rail station includes the information of the high-speed rail station and the identifiers (cell IDs) of all cells covering the geographical area of the high-speed rail station. It can be understood that the community fence information of the high-speed rail station can also be a virtual boundary surrounded by most of the communities covering the geographical area of the high-speed rail station, and this application does not limit this.
在一些实施例中,所述小区可为公用基站信号覆盖的蜂窝小区,或者还可为专用基站信号覆盖的蜂窝小区,即可为高铁站公网小区,或者还可为高铁专网小区。所述小区可为支持第四代(fourth generation,4G)接入技术的小区,例如长期演进(long term evolution,LTE)接入技术的小区;或者,可以为支持第五代(fifth generation,5G)接入技术的小区,例如新无线(new radio,NR)接入技术的小区;或者,还可以为支持多种无线技术的小区,例如支持LTE技术和NR技术的小区。也理解,所述小区也可以是适用于面向未来的通信技术的小区。In some embodiments, the cell may be a cellular cell covered by a public base station signal, or may be a cellular cell covered by a dedicated base station signal, that is, a high-speed railway station public network cell, or a high-speed rail private network cell. The cell may be a cell that supports fourth generation (4G) access technology, such as a cell that supports long term evolution (LTE) access technology; or it may be a cell that supports fifth generation (5G) ) access technology, such as a new radio (NR) access technology; or, it can also be a cell that supports multiple wireless technologies, such as a cell that supports LTE technology and NR technology. It is also understood that the cell may also be a cell suitable for future-oriented communication technology.
在一些实施例中,所述高铁站的小区围栏信息可为全国的高铁站的小区围栏信息。In some embodiments, the community fence information of the high-speed rail station may be the community fence information of high-speed rail stations across the country.
在一些实施例中,所述高铁站的小区围栏信息可为终端当前所在地理区域信息的高铁站的小区围栏信息。具体地,在获取终端当前所在地理区域信息的高铁站的小区围栏信息之前,所述方法还包括:通过终端的位置感测器获取终端当前所在地理区域信息。在一些实施例中,所述终端的位置感测器无需一直开着,仅在需要定位时才开启,进而可通过终端的位置感测器获取终端当前所在地理区域信息。则,获取高铁站的小区围栏信息可包括获取所述获取的 终端当前所在地理区域信息的高铁站的小区围栏信息。In some embodiments, the cell fence information of the high-speed rail station may be the cell fence information of the high-speed rail station in the geographical area where the terminal is currently located. Specifically, before obtaining the cell fence information of the high-speed railway station where the terminal is currently located, the method further includes: obtaining the terminal's current geographic area information through a location sensor of the terminal. In some embodiments, the location sensor of the terminal does not need to be turned on all the time, but is only turned on when positioning is required. Then, information about the current geographical area of the terminal can be obtained through the location sensor of the terminal. Then, obtaining the community fence information of the high-speed rail station may include obtaining the obtained The community fence information of the high-speed rail station where the terminal is currently located is the geographical area information.
在一些实施例中,可通过按照预设时间间隔开启终端的位置感测器来获取终端当前所在地理区域信息。所述按照预设时间间隔获取可为一直按照固定的预设时间间隔获取,或者在一段时间内按照一预设时间间隔获取,在其他时间内按照另一预设时间间隔获取等。其中,所述终端的位置感测器无需一直开着,仅需按照预设时间间隔开启,则可通过终端的位置感测器按照预设时间间隔获取终端当前所在地理区域信息。若终端当前所在地理区域信息与终端前一次所在地理区域信息不相同,则获取终端当前所在地理区域信息的高铁站的小区围栏信息。若所述获取终端当前所在地理区域信息为首次获取终端当前所在地理区域信息,则直接获取终端当前所在地理区域信息的高铁站的小区围栏信息。可理解,若终端当前所在地理区域信息与终端前一次所在地理区域信息相同,则无需重复获取终端当前所在地理区域信息的高铁站的小区围栏信息,可直接利用终端前一次所在地理区域信息的高铁站的小区围栏信息。终端前一次所在地理区域信息为获取所述终端当前所在地理区域信息之前一次所获取的地理区域信息。所述终端当前所在地理区域信息可为城市信息、省份信息、或者地区信息等,本申请对此不作限制。所述城市信息可为例如上海、深圳、北京等。所述省份信息可为例如广东省、湖北省等。所述地区信息可为例如华东地区、华南地区等。为了便于描述,以下将以所述终端当前所在地理区域信息可为XX城市为例进行说明。所述高铁站的小区围栏信息可如下表1所示:In some embodiments, information about the geographical area where the terminal is currently located can be obtained by turning on the location sensor of the terminal at preset time intervals. The acquisition according to the preset time interval may be always acquisition at a fixed preset time interval, or acquisition according to a preset time interval within a period of time, acquisition according to another preset time interval at other times, etc. Wherein, the location sensor of the terminal does not need to be turned on all the time, but only needs to be turned on at preset time intervals. Then the information of the current geographical area of the terminal can be obtained through the location sensor of the terminal at preset time intervals. If the terminal's current geographical area information is different from the terminal's previous geographical area information, the community fence information of the high-speed rail station of the terminal's current geographical area information is obtained. If the obtaining of the geographical area information where the terminal is currently located is the first time that the geographical area information of the terminal is currently located is obtained, the community fence information of the high-speed rail station of the geographical area information where the terminal is currently located is directly obtained. It can be understood that if the terminal's current geographical area information is the same as the terminal's previous geographical area information, there is no need to repeatedly obtain the community fence information of the high-speed rail station of the terminal's current geographical area information. The high-speed rail station information of the terminal's previous geographical area information can be directly used. Station community fence information. The geographical area information of the terminal's previous location is the geographical area information obtained once before the geographical area information of the terminal's current location is obtained. The geographical area information where the terminal is currently located may be city information, province information, or region information, etc. This application does not limit this. The city information may be, for example, Shanghai, Shenzhen, Beijing, etc. The province information may be, for example, Guangdong Province, Hubei Province, etc. The region information may be, for example, East China region, South China region, etc. For the convenience of description, the following description will take the example that the geographical area information of the terminal's current location may be XX city. The community fence information of the high-speed rail station can be shown in Table 1 below:
表1
Table 1
可理解,表1是高铁站的小区围栏信息的一种示例,所述高铁站的小区围栏信息还可省略城市栏,或者还可省略高铁站栏,本申请并不对高铁站的小区围栏信息的内容和形式进行限定。It can be understood that Table 1 is an example of the community fence information of the high-speed rail station. The community fence information of the high-speed rail station can also omit the city column, or the high-speed rail station column can also be omitted. This application does not describe the community fence information of the high-speed rail station. Content and form are limited.
在一些实施例中,所述高铁站的小区围栏信息可预置在所述终端内。In some embodiments, the cell fence information of the high-speed rail station may be preset in the terminal.
在一些实施例中,所述高铁站的小区围栏信息可从云端服务器获得。In some embodiments, the cell fence information of the high-speed rail station can be obtained from the cloud server.
S402:监听终端当前驻留的服务小区。S402: Monitor the serving cell where the terminal currently resides.
在一些实施例中,所述监听终端当前驻留的服务小区为监听终端当前驻留的服务小区的标识(cell ID)。在一些实施例中,可通过监听小区的系统信息来监听终端当前驻留的服务小区。在终端开机或者进入一小区的覆盖区域时,小区所对应的基站会重复广播系统消息。终端可接收广播的系统消息,根据系统消息进行小区选择与驻留,并确定终端当前驻留的服务小区。则,只要终端开机或者进入小区的覆盖区域,则可监听到终端当前驻留的服务小区。终端只有在驻留到一服务小区后才能使用网络的服务。其中,即使所述终端当前没有接入网络,所述终端也可接收到小区所对应的基站广播的系统消息,从而可通过监听小区的系统信 息来监听终端当前驻留的服务小区。In some embodiments, the serving cell where the monitoring terminal is currently camped is the identity (cell ID) of the serving cell where the monitoring terminal is currently camped. In some embodiments, the serving cell where the terminal is currently camped can be monitored by monitoring the system information of the cell. When a terminal is turned on or enters the coverage area of a cell, the base station corresponding to the cell will repeatedly broadcast system messages. The terminal can receive broadcast system messages, perform cell selection and camping based on the system messages, and determine the serving cell where the terminal is currently camped. Then, as long as the terminal is turned on or enters the coverage area of the cell, it can monitor the serving cell where the terminal currently resides. The terminal can only use network services after camping on a serving cell. Wherein, even if the terminal is not currently connected to the network, the terminal can receive the system message broadcast by the base station corresponding to the cell, and thus can monitor the system information of the cell. information to monitor the serving cell where the terminal currently resides.
S403:判断终端当前驻留的服务小区是否与高铁站的小区围栏信息匹配。若终端当前驻留的服务小区与高铁站的小区围栏信息匹配,则执行步骤S404。若终端当前驻留的服务小区与高铁站的小区围栏信息不匹配,则执行步骤S402。S403: Determine whether the service cell where the terminal currently resides matches the cell fence information of the high-speed rail station. If the serving cell where the terminal currently resides matches the cell fence information of the high-speed rail station, step S404 is executed. If the serving cell where the terminal currently resides does not match the cell fence information of the high-speed rail station, step S402 is executed.
在一些实施例中,按照预设周期判断终端当前驻留的服务小区是否与高铁站的小区围栏信息匹配。则,在执行本方法时,会一直按照预设周期对终端当前驻留的服务小区和高铁站的小区围栏信息进行匹配。因此,当终端移动至任一高铁站时,则可确定终端当前驻留的服务小区与高铁站的小区围栏信息匹配。In some embodiments, it is determined according to a preset period whether the serving cell where the terminal currently resides matches the cell fence information of the high-speed rail station. Then, when this method is executed, the service cell where the terminal currently resides and the cell fence information of the high-speed rail station will always be matched according to the preset cycle. Therefore, when the terminal moves to any high-speed rail station, it can be determined that the serving cell where the terminal currently resides matches the cell fence information of the high-speed rail station.
在一些实施例中,在判断终端当前驻留的服务小区是否与高铁站的小区围栏信息匹配之前,所述方法还包括:判断终端当前驻留的服务小区与终端前一次驻留的服务小区是否相同。在一些实施例中,判断终端当前驻留的服务小区的标识与终端前一次驻留的服务小区的标识是否相同。若终端当前驻留的服务小区与终端前一次驻留的服务小区不相同,则可判断终端当前驻留的服务小区是否与高铁站的小区围栏信息匹配。可理解,若终端当前驻留的服务小区与终端前一次驻留的服务小区相同,则无需再判断终端当前驻留的服务小区是否与高铁站的小区围栏信息匹配,可节省终端场景识别的流程,同时当终端移动至任一高铁站时,可确定终端当前驻留的服务小区与高铁站的小区围栏信息匹配。In some embodiments, before determining whether the serving cell where the terminal is currently camped matches the cell fence information of the high-speed rail station, the method further includes: determining whether the serving cell where the terminal is currently camped matches the service cell where the terminal was camped last time. same. In some embodiments, it is determined whether the identity of the serving cell where the terminal currently camps is the same as the identity of the serving cell where the terminal previously camped. If the service cell where the terminal is currently camped is different from the service cell where the terminal was camped last time, it can be determined whether the service cell where the terminal is currently camped matches the cell fence information of the high-speed rail station. It can be understood that if the service cell where the terminal is currently camped is the same as the service cell where the terminal was camped last time, there is no need to determine whether the service cell where the terminal is currently camped matches the cell fence information of the high-speed rail station, which can save the process of terminal scene identification. , and at the same time, when the terminal moves to any high-speed rail station, it can be determined that the service cell where the terminal currently resides matches the cell fence information of the high-speed rail station.
在一些实施例中,判断终端当前驻留的服务小区是否与高铁站的小区围栏信息匹配可包括:查询所述高铁站的小区围栏信息中是否存在与终端当前驻留的服务小区匹配的第一目标小区;若所述高铁站的小区围栏信息中存在与终端当前驻留的服务小区匹配的第一目标小区,则判断终端当前驻留的服务小区与高铁站的小区围栏信息匹配;若所述高铁站的小区围栏信息中不存在与终端当前驻留的服务小区匹配的第一目标小区,则判断终端当前驻留的服务小区与高铁站的小区围栏信息不匹配。In some embodiments, determining whether the serving cell where the terminal currently resides matches the cell fence information of the high-speed rail station may include: querying whether there is a first cell in the cell fence information of the high-speed rail station that matches the serving cell where the terminal currently resides. Target cell; if there is a first target cell that matches the serving cell where the terminal currently resides in the cell fence information of the high-speed rail station, it is determined that the serving cell where the terminal currently resides matches the cell fence information of the high-speed rail station; if the If the cell fence information of the high-speed rail station does not contain the first target cell that matches the service cell where the terminal currently resides, it is determined that the service cell where the terminal currently resides does not match the cell fence information of the high-speed rail station.
例如,若终端当前驻留的服务小区为小区11,则可查询到表1中存在与终端当前驻留的服务小区(小区11)匹配的第一目标小区(小区11),此时,可确定终端当前驻留的服务小区与高铁站的小区围栏信息匹配。For example, if the serving cell where the terminal is currently camped is cell 11, it can be found in Table 1 that there is a first target cell (cell 11) matching the serving cell (cell 11) where the terminal is currently camped. At this time, it can be determined The service cell where the terminal currently resides matches the cell fence information of the high-speed rail station.
S404:控制所述终端进入高铁站场景。S404: Control the terminal to enter the high-speed rail station scene.
在一些实施例中,所述终端进入高铁站场景代表所述终端的携带者进入了高铁站内,即确定终端处于高铁站。此时,所述终端的携带者可能为乘坐高铁的人员、或者为进入高铁站但不乘坐高铁的人员。进入高铁站但不乘坐高铁的人员可能为买了高铁票但不乘坐高铁的人员、高铁站内的工作人员、路过的路人、来高铁站送人后开车离开的人员等。In some embodiments, the scene of the terminal entering a high-speed rail station represents that the carrier of the terminal enters the high-speed rail station, that is, it is determined that the terminal is at the high-speed rail station. At this time, the carrier of the terminal may be a person taking the high-speed rail, or a person entering the high-speed rail station but not taking the high-speed rail. People who enter the high-speed rail station but do not take the high-speed rail may include people who have bought high-speed rail tickets but do not take the high-speed rail, staff in the high-speed rail station, passers-by, people who come to the high-speed rail station to see someone off and then drive away, etc.
在一些实施例中,一些应用程序(例如音视频类应用程序、新闻类应用程序等)在安装或运行时刻会通过应用程序框架层注册高铁站场景识别,使得可通过应用程序框架层将这些应用程序确定为注册有终端进入高铁站场景事件的目标应用。则,在控制所述终端进入高铁站场景时,会通过应用程序框架层将终端进入高铁站场景的指示信息发送给目标应用,目标应用可以根据指示信息执行第一缓存操作,从而在用户进入高铁站时也可以正常使用终端的目标应用程序,并当用户可能将进入的高铁线路上的信号较差时,也能在高铁线路上正常使用终端的目标应用程序。在一些实施例中,所述执行第一缓存操作可为采用第一缓存量执行缓存、采用第一码率执行缓存和播放等。所述第一缓存量大于普通状态下应用程序缓存的缓存量,所述第一码率小于普通状态下应用程序缓存和播放的码率。可理解,执行第一缓存操 作还可为采用第一分辨率执行缓存和播放等,所述第一分辨率小于普通状态下应用程序缓存和播放的分辨率,本申请对此不作限制。可理解,对于不同应用程序,根据指示信息执行的第一缓存操作也可不同,例如,对于音视频类应用程序执行的第一缓存操作可为增加缓存量至第一缓存量及降低码率至第一码率等,对于新闻类应用程序执行的第一缓存操作可为增加预加载量至第一预加载量等,本申请对此不作限制。In some embodiments, some applications (such as audio and video applications, news applications, etc.) will register high-speed railway station scene recognition through the application framework layer when they are installed or run, so that these applications can be identified through the application framework layer. The program is determined to be the target application that registers the terminal entry into the high-speed rail station scenario event. Then, when controlling the terminal to enter the high-speed rail station scene, the instruction information for the terminal to enter the high-speed rail station scene will be sent to the target application through the application framework layer, and the target application can perform the first cache operation according to the instruction information, so that when the user enters the high-speed rail station scene The target application of the terminal can also be used normally when the user is stationary, and when the signal on the high-speed rail line that the user may enter is poor, the target application of the terminal can also be used normally on the high-speed rail line. In some embodiments, performing the first caching operation may include caching using a first cache amount, caching and playing using a first code rate, etc. The first cache amount is greater than the cache amount of the application cache in the normal state, and the first code rate is smaller than the code rate of the application cache and playback in the normal state. Understandably, performing the first cache operation The operation may also be to use a first resolution to perform caching and playback, and the first resolution is smaller than the resolution of application caching and playback in a normal state, and this application does not limit this. It can be understood that for different applications, the first cache operation performed according to the instruction information may also be different. For example, the first cache operation performed for audio and video applications may be to increase the cache amount to the first cache amount and reduce the code rate to The first code rate, etc., the first caching operation performed by the news application may be to increase the preload amount to the first preload amount, etc. This application does not limit this.
如图5所示,应用程序(例如音视频类应用程序、新闻类应用程序等)501处于应用前台运行时,或者从应用后台运行切换至应用前台时,会向终端场景识别装置502注册高铁站场景识别。从而,终端场景识别装置502可将所述应用程序501确定为注册有终端进入高铁站场景事件的目标应用。在图5中,当控制所述终端进入高铁站场景时,终端场景识别装置502会发送高铁站场景缓存策略的指示信息至所述应用程序501,所述应用程序501会根据所述高铁站场景缓存策略的指示信息执行第一缓存操作。可理解,应用程序501也可在安装、处于应用后台运行时,或者从应用前台运行切换至应用后台时,会向终端场景识别装置502注册场景识别,本申请对此不作限制。可理解,应用程序501还可向终端场景识别装置502取消注册高铁站场景识别,本申请对此不作限制。As shown in Figure 5, when the application (such as audio and video application, news application, etc.) 501 is running in the application foreground, or when switching from the application background running to the application foreground, it will register the high-speed rail station with the terminal scene recognition device 502 Scene recognition. Therefore, the terminal scene recognition device 502 can determine the application program 501 as a target application registered with the scene event of the terminal entering the high-speed rail station. In Figure 5, when the terminal is controlled to enter the high-speed rail station scene, the terminal scene recognition device 502 will send the instruction information of the high-speed rail station scene caching strategy to the application program 501, and the application program 501 will determine the high-speed rail station scene according to the high-speed rail station scene. The instruction information of the cache policy performs the first cache operation. It is understandable that the application program 501 may also register scene recognition with the terminal scene recognition device 502 when it is installed, runs in the application background, or switches from the application foreground to the application background. This application does not limit this. It can be understood that the application program 501 can also cancel the registration of high-speed rail station scene recognition with the terminal scene recognition device 502, and this application does not limit this.
在一些实施例中,在应用程序根据控制所述终端进入高铁站场景通知执行第一缓存操作时,还可进行第一缓存操作提示(如图6所示),从而,可使得用户对于高铁站场景优化的感知度更强。在图6中,视频应用程序正在执行第一缓存操作,此时,终端在播放视频的同时,还在视频界面上弹出第一提示框。所述第一提示框用于提示用户视频应用程序已开启高铁站场景优化。在图6中,所述第一提示框可为提示1,所述提示1可为例如“已为您启动高铁站场景优化”。可理解,图6是第一提示框的一种示例,本申请并不对第一提示框的内容和形式进行限定。可理解,所述第一提示框可在执行第一缓存操作时一直显示,或者还可仅显示几秒钟,本申请对第一提示框显示的时间不进行限定。In some embodiments, when the application performs the first cache operation according to the scene notification of controlling the terminal to enter the high-speed rail station, the first cache operation prompt (as shown in Figure 6) can also be performed, thereby allowing the user to be aware of the high-speed rail station. Scene optimization is more perceptive. In Figure 6, the video application is performing the first caching operation. At this time, while the terminal is playing the video, the first prompt box pops up on the video interface. The first prompt box is used to prompt the user that the video application has enabled high-speed rail station scene optimization. In FIG. 6 , the first prompt box may be prompt 1, and the prompt 1 may be, for example, “High-speed rail station scene optimization has been started for you.” It can be understood that FIG. 6 is an example of the first prompt box, and this application does not limit the content and form of the first prompt box. It can be understood that the first prompt box may be displayed all the time when the first caching operation is performed, or may only be displayed for a few seconds. This application does not limit the display time of the first prompt box.
S405:获取高铁线路的小区围栏信息。S405: Obtain the community fence information of the high-speed rail line.
在一些实施例中,所述高铁线路的小区围栏信息为高铁线路的蜂窝小区围栏信息。所述高铁线路的小区围栏信息可为由覆盖高铁线路的地理区域的所有小区所围出的一个虚拟的边界。所述高铁线路的小区围栏信息包括覆盖高铁线路的地理区域的所有小区的标识(cell ID)。可理解,所述高铁线路的小区围栏信息也可为由覆盖高铁线路的地理区域的大部分小区所围出的一个虚拟的边界,本申请对此不作限制。In some embodiments, the cell fence information of the high-speed rail line is cellular cell fence information of the high-speed rail line. The cell fence information of the high-speed rail line may be a virtual boundary surrounded by all cells covering the geographical area of the high-speed rail line. The cell fence information of the high-speed rail line includes the identification (cell ID) of all cells covering the geographical area of the high-speed rail line. It can be understood that the cell fence information of the high-speed rail line can also be a virtual boundary surrounded by most of the cells covering the geographical area of the high-speed rail line, and this application is not limited to this.
在一些实施例中,所述高铁线路的小区围栏信息还可为终端当前所在地理区域信息的高铁线路的小区围栏信息,例如XX市的高铁线路的小区围栏信息。In some embodiments, the community fence information of the high-speed rail line may also be the community fence information of the high-speed rail line in the geographical area where the terminal is currently located, such as the community fence information of the high-speed rail line in XX City.
在一些实施例中,所述高铁线路的小区围栏信息还可为终端当前所在高铁站的高铁线路的小区围栏信息。具体地,在步骤S403之后和步骤S404之前,所述方法还包括:确定所述终端当前所在高铁站。所述获取高铁线路的小区围栏信息可包括获取确定的终端当前所在高铁站的高铁线路的小区围栏信息。在一些实施例中,所述高铁线路的小区围栏信息还可包括终端当前所在高铁站的高铁线路的路径信息。例如,如图7所示,若终端当前所在高铁站为高铁站A,则以高铁站A为起点,共包括三条路线,分别为从高铁站A到高铁站B的高铁线路L1、高铁站A到高铁站C的高铁线路L2,以及高铁站A到高铁站D的高铁线路L3。则,终端当前所在高铁站的高铁线路的路径信息包括高铁线路L1、高铁线路L2及高铁线路L3的路径信息,终端当前所在高铁站的高铁线路的小区围栏信息包括高铁线路L1的小区围栏信 息、高铁线路L2的小区围栏信息及高铁线路L3的小区围栏信息。若终端当前所在高铁站为高铁站D,则以高铁站D为起点,共包括4条路线,分别为从高铁站D到高铁站A的高铁线路L3、高铁站D到高铁站E的高铁线路L4,高铁站D到高铁站F的高铁线路L5,以及高铁站D到高铁站G的高铁线路L6。则,终端当前所在高铁站的高铁线路的路径信息包括高铁线路L3、高铁线路L4、高铁线路L5及高铁线路L6的路径信息,终端当前所在高铁站的高铁线路的小区围栏信息包括高铁线路L3的小区围栏信息、高铁线路L4的小区围栏信息、高铁线路L5的小区围栏信息、及高铁线路L6的小区围栏信息。In some embodiments, the cell fence information of the high-speed rail line may also be the cell fence information of the high-speed rail line of the high-speed rail station where the terminal is currently located. Specifically, after step S403 and before step S404, the method further includes: determining the high-speed rail station where the terminal is currently located. The obtaining the cell fence information of the high-speed rail line may include obtaining the cell fence information of the high-speed rail line of the high-speed rail station where the terminal is currently located. In some embodiments, the cell fence information of the high-speed rail line may also include path information of the high-speed rail line of the high-speed rail station where the terminal is currently located. For example, as shown in Figure 7, if the current high-speed rail station where the terminal is located is high-speed rail station A, then starting from high-speed rail station A, there are three routes, namely high-speed rail line L1 from high-speed rail station A to high-speed rail station B, high-speed rail station A High-speed rail line L2 to high-speed rail station C, and high-speed rail line L3 from high-speed rail station A to high-speed rail station D. Then, the path information of the high-speed rail line of the high-speed rail station where the terminal is currently located includes the path information of the high-speed rail line L1, the high-speed rail line L2, and the high-speed rail line L3, and the community fence information of the high-speed rail line of the high-speed rail station where the terminal is currently located includes the community fence information of the high-speed rail line L1. Information, community fence information of high-speed rail line L2 and community fence information of high-speed rail line L3. If the current high-speed rail station where the terminal is located is high-speed rail station D, then high-speed rail station D is used as the starting point, including a total of 4 routes, including high-speed rail line L3 from high-speed rail station D to high-speed rail station A, and high-speed rail line L3 from high-speed rail station D to high-speed rail station E. L4, high-speed rail line L5 from high-speed rail station D to high-speed rail station F, and high-speed rail line L6 from high-speed rail station D to high-speed rail station G. Then, the path information of the high-speed rail line of the high-speed rail station where the terminal is currently located includes the path information of high-speed rail line L3, high-speed rail line L4, high-speed rail line L5, and high-speed rail line L6, and the community fence information of the high-speed rail line of the high-speed rail station where the terminal is currently located includes the path information of high-speed rail line L3. Community fence information, community fence information for high-speed rail line L4, community fence information for high-speed rail line L5, and community fence information for high-speed rail line L6.
其中,每个高铁线路可被划分为多个高铁线路区域,每个高铁线路区域可被一个或多个小区覆盖,例如高铁线路L1可被划分为六个高铁线路区域,这六个高铁线路区域中的每个高铁线路区域可被一个或多个小区覆盖,则终端在高铁线路上运行时,同时由于高铁速度较快等导致的终端可能不切换至覆盖所述位置的高铁线路区域的小区,在高铁线路上的同一位置,终端不同次经过时,所驻留的服务小区可能不同。Among them, each high-speed rail line can be divided into multiple high-speed rail line areas, and each high-speed rail line area can be covered by one or more cells. For example, the high-speed rail line L1 can be divided into six high-speed rail line areas. These six high-speed rail line areas Each high-speed rail line area in can be covered by one or more cells. When the terminal is running on the high-speed rail line, the terminal may not switch to the cell covering the high-speed rail line area at the location due to the high speed of the high-speed rail. At the same location on the high-speed rail line, when the terminal passes by it for different times, the service cell where it resides may be different.
为了便于描述,以下将以终端当前所在高铁站的高铁线路的小区围栏信息为例进行说明。For ease of description, the following description will take the community fence information of the high-speed rail line of the high-speed rail station where the terminal is currently located as an example.
所述高铁线路的小区围栏信息可如下表2所示:The community fence information of the high-speed rail line can be shown in Table 2 below:
表2
Table 2
可理解,表2是终端当前所在高铁站的高铁线路的小区围栏信息的一种示例,所述高铁线路的小区围栏信息还可省略高铁站栏,或者还可省略高铁线路栏,本申请并不对高铁线路的小区围栏信息的内容和形式进行限定。It can be understood that Table 2 is an example of the community fence information of the high-speed rail line of the high-speed rail station where the terminal is currently located. The community fence information of the high-speed rail line can also omit the high-speed rail station fence, or can also omit the high-speed rail line column. This application does not The content and form of community fence information for high-speed rail lines are limited.
在一些实施例中,所述高铁线路的小区围栏信息可预置在所述终端内。In some embodiments, the cell fence information of the high-speed rail line may be preset in the terminal.
在一些实施例中,所述高铁线路的小区围栏信息可从云端服务器获得。In some embodiments, the cell fence information of the high-speed rail line can be obtained from a cloud server.
S406:判断所述终端是否离开高铁站且运动状态进入乘车状态。若所述终端离开高铁站且运动状态进入乘车状态,则执行步骤S407。若所述终端离开高铁站但所述终端的运动状态没有进入乘车状态,则执行步骤S409。S406: Determine whether the terminal leaves the high-speed rail station and enters the riding state. If the terminal leaves the high-speed rail station and the motion state enters the riding state, step S407 is executed. If the terminal leaves the high-speed rail station but the motion state of the terminal does not enter the riding state, step S409 is executed.
在一些实施例中,由于有些人员虽然进入高铁站,可能不会离开高铁站(例如高铁站的工作人员等),或者虽然离开高铁站但不会乘车离开,则需要区分终端是否离开高铁站及运动状态是否进入乘车状态。In some embodiments, since some people enter the high-speed rail station but may not leave the high-speed rail station (such as staff at the high-speed rail station, etc.), or although they leave the high-speed rail station but will not leave by car, it is necessary to distinguish whether the terminal leaves the high-speed rail station. And whether the motion state has entered the riding state.
在一些实施例中,通过判断终端当前驻留的服务小区是否继续与高铁站的小区围栏信息匹配来判断所述终端是否离开高铁站。若终端当前驻留的服务小区继续与高铁站的小区围栏信息匹配,则可确定终端没有离开高铁站。若终端当前驻留的服务小区不继续与高铁站的小区围栏信息匹配,则可确定终端离开高铁站。In some embodiments, whether the terminal leaves the high-speed railway station is determined by determining whether the serving cell where the terminal currently resides continues to match the cell fence information of the high-speed railway station. If the service cell where the terminal currently resides continues to match the cell fence information of the high-speed rail station, it can be determined that the terminal has not left the high-speed rail station. If the service cell where the terminal currently resides does not continue to match the cell fence information of the high-speed rail station, it can be determined that the terminal has left the high-speed rail station.
在一些实施例中,可通过终端中加速度传感器感测的加速度数据判断终端的运动状态是否进入乘车状态。其中,高铁在高铁线路上运行时,其加速度较稳定,若终端位于高铁上,则终端所感知的加速度也会稳定,且位于高铁的运动加速度范围内。则若终端中加速度传感器感测的加速度数据位于高铁运行加速度范围内,则可确定终端的运动状态进入乘车状态; 若终端中加速度传感器感测的加速度数据位于高铁运行加速度范围外,则可确定终端的运动状态没有进入乘车状态。In some embodiments, whether the motion state of the terminal enters the riding state can be determined based on the acceleration data sensed by the acceleration sensor in the terminal. Among them, when a high-speed train runs on a high-speed rail line, its acceleration is relatively stable. If the terminal is located on a high-speed rail, the acceleration perceived by the terminal will also be stable and within the motion acceleration range of the high-speed rail. If the acceleration data sensed by the acceleration sensor in the terminal is within the operating acceleration range of the high-speed rail, it can be determined that the terminal's motion state has entered the ride state; If the acceleration data sensed by the acceleration sensor in the terminal is outside the high-speed rail operating acceleration range, it can be determined that the motion state of the terminal has not entered the riding state.
在一些实施例中,可通过终端中速度传感器感测的速度数据判断终端的运动状态是否进入乘车状态。其中,高铁在高铁线路上完成加速后的速度会位于高铁的运行速度范围内。则若终端中速度传感器感测的速度数据位于高铁运行速度范围内,则可确定终端的运动状态进入乘车状态;若终端中速度传感器感测的速度数据位于高铁运行速度范围外,则可确定终端的运动状态没有进入乘车状态。In some embodiments, whether the motion state of the terminal enters the riding state can be determined based on the speed data sensed by the speed sensor in the terminal. Among them, the speed of the high-speed train after completing acceleration on the high-speed rail line will be within the operating speed range of the high-speed rail. Then if the speed data sensed by the speed sensor in the terminal is within the high-speed rail operating speed range, it can be determined that the terminal's motion state has entered the riding state; if the speed data sensed by the speed sensor in the terminal is outside the high-speed rail operating speed range, it can be determined The terminal's motion state has not entered the ride state.
在一些实施例中,可通过终端中加速度传感器感测的加速度数据和速度传感器感测的速度数据判断终端的运动状态是否进入乘车状态,本申请对此不作限制。In some embodiments, whether the motion state of the terminal enters the riding state can be determined based on the acceleration data sensed by the acceleration sensor and the speed data sensed by the speed sensor in the terminal. This application does not limit this.
S407:判断终端当前驻留的服务小区是否与高铁线路的小区围栏信息匹配。若终端当前驻留的服务小区与高铁线路的小区围栏信息匹配,则执行步骤S408。若终端当前驻留的服务小区与高铁线路的小区围栏信息不匹配,则执行步骤S409。S407: Determine whether the service cell where the terminal currently resides matches the cell fence information of the high-speed rail line. If the serving cell where the terminal currently resides matches the cell fence information of the high-speed rail line, step S408 is executed. If the serving cell where the terminal currently resides does not match the cell fence information of the high-speed rail line, step S409 is executed.
在一些实施例中,由于普通车辆(小汽车等)的运行状态与高铁相似,则在终端从高铁站出发,且运动状态进入乘车状态之后,还需要进一步区分终端当前是位于高铁上,还是位于普通车辆上,则需要判断终端当前驻留的服务小区是否与高铁线路的小区围栏信息匹配。In some embodiments, since the operating status of ordinary vehicles (cars, etc.) is similar to that of high-speed rail, after the terminal sets off from the high-speed rail station and the motion state enters the riding state, it is necessary to further distinguish whether the terminal is currently on the high-speed rail or on the high-speed rail. If the terminal is located on an ordinary vehicle, it is necessary to determine whether the service cell where the terminal currently resides matches the cell fence information of the high-speed rail line.
在一些实施例中,判断终端当前驻留的服务小区是否与高铁线路的小区围栏信息匹配可包括:查询所述高铁线路的小区围栏信息中是否存在与终端当前驻留的服务小区匹配的第二目标小区;若所述高铁线路的小区围栏信息中存在与终端当前驻留的服务小区匹配的第二目标小区,则判断终端当前驻留的服务小区与高铁线路的小区围栏信息匹配;若所述高铁线路的小区围栏信息中不存在与终端当前驻留的服务小区匹配的第二目标小区,则判断终端当前驻留的服务小区与高铁线路的小区围栏信息不匹配。In some embodiments, determining whether the serving cell where the terminal currently resides matches the cell fence information of the high-speed rail line may include: querying whether there is a second cell in the cell fence information of the high-speed rail line that matches the serving cell where the terminal currently resides. Target cell; if there is a second target cell matching the serving cell where the terminal currently resides in the cell fence information of the high-speed rail line, it is determined that the serving cell where the terminal currently resides matches the cell fence information of the high-speed rail line; if the If there is no second target cell that matches the service cell where the terminal currently resides in the cell fence information of the high-speed rail line, it is determined that the service cell where the terminal currently resides does not match the cell fence information of the high-speed rail line.
例如,若终端当前驻留的服务小区为小区b7,则可查询到表1中不存在与终端当前驻留的服务小区(小区b7)匹配的第二目标小区,此时,可确定终端当前驻留的服务小区未匹配到高铁线路的小区围栏信息。For example, if the serving cell where the terminal is currently camped is cell b7, it can be found in Table 1 that there is no second target cell matching the serving cell (cell b7) where the terminal is currently camped. At this time, it can be determined that the terminal is currently camped on. The remaining service community does not match the community fence information of the high-speed rail line.
在一些实施例中,高铁在高铁线路上运行时,其加速度较稳定且速度较快,较短的时间内可运行较长的距离。则在较短的时间内,高铁上的终端也会迅速移动至不同高铁线路区域。由于每个高铁线路区域可被一个或多个小区覆盖,则在较短的时间内,终端会迅速切换至不同小区,终端当前驻留的服务小区也在迅速变化。有些时候,由于高铁速度较快等,在高铁经过某个高铁线路区域,高铁上的终端甚至还没切换至覆盖这个高铁线路区域的小区,高铁就已经快速地移动至下一个高铁线路区域,则在高铁线路上,会存在终端没有驻留在覆盖某个高铁线路区域的小区上。则,所述判断终端当前驻留的服务小区是否与高铁线路的小区围栏信息匹配可包括:查询在预设时间内所述高铁线路的小区围栏信息中是否存在与终端当前驻留的服务小区匹配的预设数量的第三目标小区;若在预设时间内所述高铁线路的小区围栏信息中存在与终端当前驻留的服务小区匹配的预设数量的第三目标小区,则判断终端当前驻留的服务小区与高铁线路的小区围栏信息匹配;若在预设时间内所述高铁线路的小区围栏信息中不存在与终端当前驻留的服务小区匹配的预设数量的第三目标小区,则判断终端当前驻留的服务小区与高铁线路的小区围栏信息不匹配。In some embodiments, when a high-speed train runs on a high-speed rail line, its acceleration is relatively stable and its speed is relatively fast, and it can run a longer distance in a shorter period of time. In a short period of time, the terminals on the high-speed rail will also quickly move to different high-speed rail line areas. Since each high-speed rail line area can be covered by one or more cells, the terminal will quickly switch to different cells in a short period of time, and the service cell where the terminal currently resides will also change rapidly. Sometimes, due to the high speed of the high-speed rail, when the high-speed train passes through a certain high-speed rail line area, the terminal on the high-speed rail has not even switched to the community covering the high-speed rail line area, and the high-speed train has quickly moved to the next high-speed rail line area. On high-speed rail lines, there may be terminals that do not reside in a cell covering a certain high-speed rail line area. Then, determining whether the serving cell where the terminal currently resides matches the cell fence information of the high-speed rail line may include: querying whether there is a match between the cell fence information of the high-speed rail line and the serving cell where the terminal currently resides within a preset time. A preset number of third target cells; if there is a preset number of third target cells matching the serving cell where the terminal currently resides in the cell fence information of the high-speed rail line within the preset time, it is determined that the terminal is currently camped The remaining service cell matches the cell fence information of the high-speed rail line; if within the preset time there is no preset number of third target cells matching the service cell where the terminal currently resides in the cell fence information of the high-speed rail line, then It is determined that the service cell where the terminal currently resides does not match the cell fence information of the high-speed rail line.
例如,若在2分钟内,终端当前驻留的服务小区为小区a1、小区a2、小区a4、小区a5、小区a6,则可查询到表2中存在与终端当前驻留的服务小区匹配的5个目标小区,此时,可 确定终端当前驻留的服务小区与高铁线路的小区围栏信息匹配。For example, if within 2 minutes, the serving cells where the terminal is currently camped are cell a1, cell a2, cell a4, cell a5, and cell a6, then it can be queried that there are 5 serving cells in Table 2 that match the serving cells where the terminal is currently camped. target community, at this time, you can It is determined that the service cell where the terminal currently resides matches the cell fence information of the high-speed rail line.
在一些实施例中,在查询所述高铁线路的小区围栏信息中是否存在与终端当前驻留的服务小区匹配的第二目标小区之前,所述方法还包括:根据电子地图与终端当前所在地理区域信息确定终端当前所处的高铁线路,则后续可查询终端当前所处的高铁线路的小区围栏信息中是否存在与终端当前驻留的服务小区匹配的第二目标小区,并根据查询结果确定终端当前驻留的服务小区是否与高铁线路的小区围栏信息匹配。从而,可提升匹配的速度,降低终端的功耗。In some embodiments, before querying the cell fence information of the high-speed rail line to see whether there is a second target cell matching the serving cell where the terminal currently resides, the method further includes: based on the electronic map and the geographical area where the terminal is currently located. The information determines the high-speed rail line where the terminal is currently located, and then the cell fence information of the high-speed rail line where the terminal is currently located can be queried to see if there is a second target cell that matches the serving cell where the terminal currently resides, and the current location of the terminal can be determined based on the query results. Whether the resident service cell matches the cell fence information of the high-speed rail line. Therefore, the matching speed can be improved and the power consumption of the terminal can be reduced.
在一些实施例中,在查询在预设时间内所述高铁线路的小区围栏信息中是否存在与终端当前驻留的服务小区匹配的预设数量的第三目标小区之前,所述方法还包括:根据电子地图与终端当前所在地理区域信息确定终端当前所处的高铁线路,则后续可查询在预设时间内终端当前所处的高铁线路的小区围栏信息中是否存在与终端当前驻留的服务小区匹配的预设数量的第三目标小区,并根据查询结果确定终端当前驻留的服务小区是否与高铁线路的小区围栏信息匹配。从而,可提升匹配的速度,降低终端的功耗。In some embodiments, before querying whether there is a preset number of third target cells matching the serving cell where the terminal currently resides in the cell fence information of the high-speed rail line within a preset time, the method further includes: Determine the high-speed rail line where the terminal is currently located based on the electronic map and the current geographical area information of the terminal. Then, you can subsequently query whether there is a service cell where the terminal currently resides in the cell fence information of the high-speed rail line where the terminal is currently located within the preset time. Match a preset number of third target cells, and determine whether the service cell where the terminal currently resides matches the cell fence information of the high-speed rail line based on the query results. Therefore, the matching speed can be improved and the power consumption of the terminal can be reduced.
S408:控制所述终端进入高铁线路场景。S408: Control the terminal to enter the high-speed rail line scene.
在一些实施例中,所述终端离开高铁站且运动状态进入乘车状态,且终端当前驻留的服务小区与高铁线路的小区围栏信息匹配,代表所述终端的携带者为乘坐高铁的人员。则,可控制所述终端进入高铁线路场景。In some embodiments, the terminal leaves the high-speed rail station and enters the riding state, and the service cell where the terminal currently resides matches the cell fence information of the high-speed rail line, indicating that the carrier of the terminal is a person taking the high-speed rail. Then, the terminal can be controlled to enter the high-speed rail line scene.
在一些实施例中,一些应用程序(例如音视频类应用程序、新闻类应用程序等)在安装或运行时刻会通过应用程序框架层注册高铁线路场景识别,使得可通过应用程序框架层将这些应用程序确定为注册有终端进入高铁线路场景事件的目标应用。则,在控制所述终端进入高铁线路场景时,会通过应用程序框架层将终端进入高铁线路场景的指示信息发送给目标应用,目标应用可以根据指示信息执行第二缓存操作,从而在用户进入高铁线路时也可以正常使用终端的目标应用程序。在一些实施例中,所述执行第二缓存操作可为采用第二缓存量执行缓存、采用第二码率执行缓存和播放等。所述第二缓存量大于第一缓存量,所述第二码率小于第一码率。可理解,执行第二缓存操作还可为采用第二分辨率执行缓存和播放等,所述第二分辨率小于第一分辨率,本申请对此不作限制。可理解,对于不同应用程序,根据指示信息执行的第二缓存操作也可不同,例如,对于音视频类应用程序执行的第二缓存操作可为增加缓存量至第二缓存量及降低码率至第二码率等,对于新闻类应用程序执行的第二缓存操作可为增加预加载量至第二预加载量等,本申请对此不作限制。In some embodiments, some applications (such as audio and video applications, news applications, etc.) will register high-speed rail line scene recognition through the application framework layer when they are installed or run, so that these applications can be identified through the application framework layer. The program is determined to be the target application that registers the terminal entry into the high-speed rail line scenario event. Then, when controlling the terminal to enter the high-speed rail scene, the instruction information for the terminal to enter the high-speed rail scene will be sent to the target application through the application framework layer, and the target application can perform the second cache operation according to the instruction information, so that when the user enters the high-speed rail scene Target applications in Terminal can also be used normally while on the line. In some embodiments, performing the second caching operation may include caching using a second caching amount, caching and playing using a second code rate, etc. The second cache amount is greater than the first cache amount, and the second code rate is less than the first code rate. It can be understood that performing the second caching operation may also include caching and playing using a second resolution, which is smaller than the first resolution, and this application does not limit this. It can be understood that for different applications, the second cache operation performed according to the instruction information may also be different. For example, the second cache operation performed for audio and video applications may be to increase the cache amount to the second cache amount and reduce the code rate to The second code rate, etc., the second caching operation performed by the news application may be to increase the preload amount to the second preload amount, etc. This application does not limit this.
如图5所示,应用程序501(例如音视频类应用程序、新闻类应用程序等)处于应用前台运行时,或者从应用后台运行切换至应用前台时,在向终端场景识别装置502注册高铁站场景识别时,还会向终端场景识别装置502注册高铁线路场景识别。从而,终端场景识别装置502可将所述应用程序501确定为注册有终端进入高铁线路场景事件的目标应用。当控制所述终端进入高铁线路场景时,终端场景识别装置502会发送高铁线路场景缓存策略的指示信息至所述应用程序501。所述应用程序501会根据所述高铁线路场景缓存策略的指示信息执行第二缓存操作。可理解,应用程序501也可在安装、处于应用后台运行时,或者从应用前台运行切换至应用后台时,会向终端场景识别装置502注册高铁线路场景识别;或者高铁站场景识别的注册和高铁线路场景识别的注册也可不同时,本申请对此不作限制。可理解,应用程序501还可向终端场景识别装置502取消注册高铁线路场景识别,本申请对此不作限制。 As shown in Figure 5, when the application 501 (such as audio and video applications, news applications, etc.) is running in the application foreground, or when switching from the application background running to the application foreground, it registers the high-speed rail station with the terminal scene recognition device 502. During scene recognition, high-speed rail line scene recognition will also be registered with the terminal scene recognition device 502. Therefore, the terminal scene recognition device 502 can determine the application program 501 as the target application registered with the terminal entering the high-speed rail line scene event. When controlling the terminal to enter the high-speed rail line scene, the terminal scene identification device 502 will send the instruction information of the high-speed rail line scene caching strategy to the application program 501. The application program 501 will perform a second caching operation according to the instruction information of the high-speed rail scene caching policy. It is understandable that the application 501 may also register the high-speed rail line scene recognition with the terminal scene recognition device 502 when it is installed, runs in the application background, or switches from the application foreground to the application background; or the registration of the high-speed rail station scene recognition and the high-speed rail The registration of line scene recognition can also be performed at different times, and this application does not limit this. It can be understood that the application program 501 can also cancel the registration of high-speed rail line scene recognition with the terminal scene recognition device 502, and this application does not limit this.
在一些实施例中,在应用程序根据控制所述终端进入高铁线路场景通知执行第二缓存操作时,还可进行第二缓存操作提示(如图8所示),从而,可使得用户对于高铁线路场景优化的感知度更强。在图8中,视频应用程序正在执行第二缓存操作,此时,终端在播放视频的同时,还在视频界面上弹出第二提示框。所述第二提示框用于提示用户视频应用程序已开启高铁线路场景优化。在图8中,所述第二提示框可为提示2,所述提示2可为例如“已为您启动高铁线路场景优化”。可理解,图8是第二提示框的一种示例,本申请并不对第二提示框的内容和形式进行限定。可理解,所述第二提示框可在执行第二缓存操作时一直显示,或者还可仅显示几秒钟,本申请对第二提示框显示的时间不进行限定。In some embodiments, when the application performs the second cache operation according to the notification of controlling the terminal to enter the high-speed rail line scene, a second cache operation prompt can also be performed (as shown in Figure 8), thereby enabling the user to be aware of the high-speed rail line. Scene optimization is more perceptive. In Figure 8, the video application is performing the second caching operation. At this time, while the terminal is playing the video, a second prompt box pops up on the video interface. The second prompt box is used to prompt the user that the video application has enabled high-speed rail line scene optimization. In FIG. 8 , the second prompt box may be prompt 2, and the prompt 2 may be, for example, “High-speed rail line scene optimization has been started for you.” It can be understood that FIG. 8 is an example of the second prompt box, and this application does not limit the content and form of the second prompt box. It can be understood that the second prompt box may be displayed all the time when the second cache operation is performed, or may only be displayed for a few seconds. This application does not limit the display time of the second prompt box.
S409:控制所述终端退出高铁站场景。S409: Control the terminal to exit the high-speed rail station scene.
在一些实施例中,所述终端离开高铁站但所述终端的运动状态没有进入乘车状态,或者终端当前驻留的服务小区与高铁线路的小区围栏信息不匹配,代表所述终端的携带者不为乘坐高铁的人员。则,可控制所述终端退出高铁站场景,从而所述应用程序无需再执行第一缓存操作。In some embodiments, the terminal leaves the high-speed rail station but the movement state of the terminal does not enter the riding state, or the service cell where the terminal currently resides does not match the cell fence information of the high-speed rail line, representing the carrier of the terminal. Not for people taking high-speed rail. Then, the terminal can be controlled to exit the high-speed rail station scene, so that the application program no longer needs to perform the first caching operation.
可理解,所述高铁线路的小区围栏信息可为全国的高铁线路的小区围栏信息,本申请对此不作限制。It can be understood that the community fence information of the high-speed rail lines can be the community fence information of the high-speed rail lines across the country, and this application does not limit this.
可理解,步骤S406可为确定所述终端离开高铁站,然后执行步骤S407,从而,可在终端不支持传感器识别乘车状态时,即无需借助于乘车状态的确定,也可实现高铁线路场景的识别,本申请对此不作限制。It can be understood that step S406 can be to determine that the terminal has left the high-speed rail station, and then perform step S407. Therefore, when the terminal does not support sensors to identify the riding status, the high-speed rail line scenario can be realized without resorting to the determination of the riding status. identification, this application does not limit this.
可理解,在步骤S408之后,所述方法还执行退出高铁线路场景过程。请参考图9,为本申请实施例提供的退出高铁线路场景过程的流程图。所述退出高铁线路场景过程包括:It can be understood that after step S408, the method also performs a process of exiting the high-speed rail line scenario. Please refer to Figure 9 , which is a flow chart of the process of exiting a high-speed rail line scenario provided by an embodiment of the present application. The process of exiting the high-speed rail line scenario includes:
S902:判断所述终端的运动状态是否退出乘车状态。若所述终端的运动状态退出乘车状态,则执行步骤S903。若所述终端的运动状态没有退出乘车状态,则执行步骤S902。S902: Determine whether the movement state of the terminal exits the riding state. If the movement state of the terminal exits the riding state, step S903 is executed. If the movement state of the terminal does not exit the riding state, step S902 is executed.
在一些实施例中,用户在随高铁在高铁线路上运行一段时间后,可能会到达下一个高铁站,甚至可能会下高铁。此时,终端的运动状态将会退出乘车状态。在一些实施例中,若终端中加速度传感器感测的加速度数据位于高铁运行加速度范围外时,则可确定终端的运动状态退出乘车状态;若终端中加速度传感器感测的加速度数据位于高铁运行加速度范围内时,则可确定终端的运动状态没有退出乘车状态。在一些实施例中,若终端中速度传感器感测的速度数据位于高铁运行速度范围外,则可确定终端的运动状态退出乘车状态;若终端中速度传感器感测的速度数据位于高铁运行速度范围内,则可确定终端的运动状态没有退出乘车状态。在一些实施例中,可通过终端中加速度传感器感测的加速度数据和速度传感器感测的速度数据判断终端的运动状态是否进入乘车状态,本申请对此不作限制。In some embodiments, after running on the high-speed rail line for a period of time, the user may arrive at the next high-speed rail station or even get off the high-speed rail. At this time, the terminal's motion state will exit the ride state. In some embodiments, if the acceleration data sensed by the acceleration sensor in the terminal is outside the high-speed rail operating acceleration range, the motion state of the terminal can be determined to exit the riding state; if the acceleration data sensed by the acceleration sensor in the terminal is outside the high-speed rail operating acceleration range, When it is within the range, it can be determined that the terminal's motion state has not exited the ride state. In some embodiments, if the speed data sensed by the speed sensor in the terminal is outside the high-speed rail operating speed range, the motion state of the terminal can be determined to exit the riding state; if the speed data sensed by the speed sensor in the terminal is within the high-speed rail operating speed range Within, it can be determined that the terminal's motion status has not exited the ride status. In some embodiments, whether the motion state of the terminal enters the riding state can be determined based on the acceleration data sensed by the acceleration sensor and the speed data sensed by the speed sensor in the terminal. This application does not limit this.
S903:判断终端当前驻留的服务小区是否与高铁线路的小区围栏信息中的任意小区信息不匹配。若终端当前驻留的服务小区与高铁线路的小区围栏信息中的任意小区信息不匹配,则执行步骤S904。若终端当前驻留的服务小区与高铁线路的小区围栏信息中的小区信息匹配,则执行步骤S902。S903: Determine whether the serving cell where the terminal currently resides does not match any cell information in the cell fence information of the high-speed rail line. If the serving cell where the terminal currently resides does not match any cell information in the cell fence information of the high-speed rail line, step S904 is executed. If the serving cell where the terminal currently resides matches the cell information in the cell fence information of the high-speed rail line, step S902 is executed.
在一些实施例中,可通过确定终端当前驻留的服务小区是否与高铁线路的小区围栏信息中的任意小区信息不匹配,来进一步确定用户是否到达下一个高铁站,甚至可能下高铁。若用户已经到达下一个高铁站,甚至可能下高铁,则终端当前驻留的服务小区与高铁线路的小区围栏信息中的任意小区信息不匹配。判断终端当前驻留的服务小区是否与高铁线路的小区 围栏信息中的任意小区信息不匹配可包括:查询所述高铁线路的小区围栏信息中是否存在与终端当前驻留的服务小区匹配的第二目标小区;若所述高铁线路的小区围栏信息中不存在与终端当前驻留的服务小区匹配的第二目标小区,则判断终端当前驻留的服务小区与高铁线路的小区围栏信息中的任意小区信息不匹配;若所述高铁线路的小区围栏信息中存在与终端当前驻留的服务小区匹配的第二目标小区,则判断终端当前驻留的服务小区与高铁线路的小区围栏信息中的小区信息匹配。In some embodiments, it can be further determined whether the user has arrived at the next high-speed rail station, and may even get off the high-speed rail, by determining whether the serving cell where the terminal currently resides does not match any cell information in the cell fence information of the high-speed rail line. If the user has arrived at the next high-speed rail station, or may even get off the high-speed rail, the service cell where the terminal currently resides does not match any cell information in the cell fence information of the high-speed rail line. Determine whether the service cell where the terminal currently resides is the same as the cell of the high-speed rail line Any mismatch of cell information in the fence information may include: querying whether there is a second target cell matching the serving cell where the terminal currently resides in the cell fence information of the high-speed rail line; if there is no second target cell in the cell fence information of the high-speed rail line If there is a second target cell that matches the serving cell where the terminal is currently camped, it is determined that the serving cell where the terminal is currently camped does not match any cell information in the cell fence information of the high-speed rail line; if the cell fence information of the high-speed rail line If there is a second target cell that matches the serving cell where the terminal is currently camped, it is determined that the serving cell where the terminal is currently camped matches the cell information in the cell fence information of the high-speed rail line.
在一些实施例中,高铁在高铁线路上运行时,可能会暂停一段时间,但是此时高铁仍在高铁线路上。判断终端当前驻留的服务小区是否与高铁线路的小区围栏信息中的任意小区信息不匹配可包括:查询在预设时间内所述高铁线路的小区围栏信息中是否存在与终端当前驻留的服务小区匹配的第二目标小区;若在预设时间内所述高铁线路的小区围栏信息中不存在与终端当前驻留的服务小区匹配的第二目标小区,则判断终端当前驻留的服务小区与高铁线路的小区围栏信息中的任意小区信息不匹配;若在预设时间内所述高铁线路的小区围栏信息中存在与终端当前驻留的服务小区匹配的第二目标小区,则判断终端当前驻留的服务小区与高铁线路的小区围栏信息中的小区信息匹配。则,可仅在高铁线路的小区围栏信息中不存在与终端当前驻留的服务小区匹配的第二目标小区持续预设时间时,才判断终端当前驻留的服务小区与高铁线路的小区围栏信息不匹配。In some embodiments, when the high-speed rail is running on the high-speed rail line, it may be suspended for a period of time, but at this time the high-speed rail is still on the high-speed rail line. Determining whether the service cell where the terminal currently resides does not match any cell information in the cell fence information of the high-speed rail line may include: querying whether there is a service that the terminal currently resides in in the cell fence information of the high-speed rail line within a preset time The second target cell that the cell matches; if there is no second target cell that matches the serving cell where the terminal currently resides in the cell fence information of the high-speed rail line within the preset time, it is determined that the serving cell where the terminal currently resides is the same as the second target cell where the terminal currently resides. Any cell information in the cell fence information of the high-speed rail line does not match; if within the preset time, there is a second target cell in the cell fence information of the high-speed rail line that matches the serving cell where the terminal is currently camped, then it is determined that the terminal is currently camped. The remaining service cell matches the cell information in the cell fence information of the high-speed rail line. Then, the service cell where the terminal currently resides and the cell fence information of the high-speed rail line can be determined only when there is no second target cell matching the serving cell where the terminal currently resides for a preset time in the cell fence information of the high-speed rail line. Mismatch.
S904:控制终端退出高铁线路场景。S904: The control terminal exits the high-speed rail line scene.
在一些实施例中,在终端进入高铁线路场景之后,所述终端的运动状态退出乘车状态,且终端当前驻留的服务小区与高铁线路的小区围栏信息不匹配,代表所述终端的携带者到达下一个高铁站,甚至可能下高铁。则,可控制所述终端退出高铁线路场景。此时,如步骤S403所述,由于会一直按照预设周期对终端当前驻留的服务小区和高铁站的小区围栏信息进行匹配,或者会在终端当前驻留的服务小区与终端前一次驻留的服务小区不相同时,判断终端当前驻留的服务小区是否与高铁站的小区围栏信息匹配,则控制终端退出高铁线路场景之后,将会继续执行步骤S403及后续的步骤直至控制终端退出高铁站场景。或者如步骤S401所述,由于按照预设时间间隔获取终端当前所在地理区域信息,则控制终端退出高铁线路场景之后,将会继续执行步骤S401及后续的步骤直至控制终端退出高铁站场景。In some embodiments, after the terminal enters the high-speed rail line scene, the movement state of the terminal exits the ride state, and the service cell where the terminal currently resides does not match the cell fence information of the high-speed rail line, representing the carrier of the terminal Arrive at the next high-speed rail station and maybe even get off the high-speed rail. Then, the terminal can be controlled to exit the high-speed rail line scenario. At this time, as described in step S403, since the service cell where the terminal is currently camped and the cell fence information of the high-speed rail station will always be matched according to the preset cycle, or the service cell where the terminal is currently camped will be matched with the cell fence information where the terminal was camped last time. When the service cells are different, it is determined whether the service cell where the terminal currently resides matches the cell fence information of the high-speed rail station. After the control terminal exits the high-speed rail line scene, step S403 and subsequent steps will continue until the control terminal exits the high-speed rail station. Scenes. Or as described in step S401, since the current geographical area information of the terminal is obtained at a preset time interval, after the control terminal exits the high-speed rail line scene, step S401 and subsequent steps will continue until the control terminal exits the high-speed rail station scene.
可理解,如上所述,在一些实施例中,终端可预先从云端服务器下载高铁站的小区围栏信息或者高铁线路的小区围栏信息,使得所述高铁站的小区围栏信息和所述高铁线路的小区围栏信息可预置在所述终端内,从而在执行终端场景识别时无需再从云端服务器下载。在一些实施例中,终端可在执行终端场景识别时从云端服务器下载终端当前所需的高铁站的小区围栏信息或者高铁线路的小区围栏信息,例如下载终端当前所在地理区域信息的高铁站的小区围栏信息,及当前高铁站的高铁线路的小区围栏信息等,从而可在下载时节省流量。所述高铁站的小区围栏信息和所述高铁线路的小区围栏信息还可由终端和云端服务器生成。请参考图10,为本申请实施例提供的生成高铁站小区围栏和高铁线路小区围栏过程的流程图。生成高铁站小区围栏和高铁线路小区围栏过程可应用于如图11所示的多个终端1101和云端服务器1102上。图中仅示出了三个终端1101,但是可理解,所述终端1101的数量也为其他任意的数量,本申请对此不作限制。所述终端1101可以包括具有通信功能的手机、可折叠电子设备、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、蜂窝电话、个人数字助理(personal  digital assistant,PDA)、或可穿戴式设备中的至少一种。所述终端1101可包括位置感测器、移动通信模块和无线通信模块。所述位置感测器可以检测终端1101的地理位置,例如经纬度等。在一些实施例中,位置传感器可以为GPS、北斗或者其他定位系统。所述移动通信模块可用于接收基站1103广播的系统消息,无线通信模块可用于供终端1101与云端服务器1102通信。所述生成高铁站小区围栏和高铁线路小区围栏过程包括:It can be understood that, as mentioned above, in some embodiments, the terminal can download the community fence information of the high-speed rail station or the community fence information of the high-speed rail line from the cloud server in advance, so that the community fence information of the high-speed rail station and the community fence information of the high-speed rail line The fence information can be preset in the terminal, so that there is no need to download it from the cloud server when performing terminal scene recognition. In some embodiments, when performing terminal scene recognition, the terminal can download from the cloud server the cell fence information of the high-speed rail station or the cell fence information of the high-speed rail line that the terminal currently requires, such as downloading the cell of the high-speed rail station where the terminal is currently located geographically. Fence information, and community fence information of high-speed rail lines at the current high-speed rail station, etc., thus saving traffic during downloading. The community fence information of the high-speed rail station and the community fence information of the high-speed rail line can also be generated by the terminal and the cloud server. Please refer to Figure 10 , which is a flow chart of the process of generating high-speed rail station community fences and high-speed rail line community fences provided by the embodiment of the present application. The process of generating high-speed rail station community fences and high-speed rail line community fences can be applied to multiple terminals 1101 and cloud servers 1102 as shown in Figure 11. Only three terminals 1101 are shown in the figure, but it can be understood that the number of terminals 1101 can also be any other number, and this application does not limit this. The terminal 1101 may include a mobile phone with communication functions, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook , cellular phone, personal digital assistant (personal digital assistant) digital assistant (PDA), or at least one of a wearable device. The terminal 1101 may include a position sensor, a mobile communication module, and a wireless communication module. The location sensor can detect the geographical location of the terminal 1101, such as longitude and latitude. In some embodiments, the location sensor may be GPS, Beidou or other positioning systems. The mobile communication module can be used to receive system messages broadcast by the base station 1103, and the wireless communication module can be used for the terminal 1101 to communicate with the cloud server 1102. The process of generating high-speed rail station community fences and high-speed rail line community fences includes:
S1001:每个终端通过位置感测器获取终端地理位置。S1001: Each terminal obtains the terminal's geographical location through a location sensor.
在一些实施例中,仅在位置感测器开启时,终端才通过位置感测器获取终端地理位置。所述开启可为仅在需要定位时才开启,或者为按照预设时间间隔开启。每个终端获取的终端地理位置的数量可为一个或多个。例如,所述终端地理位置可为位置感测器在上午9点和上午9:30分别获取的终端地理位置。所述终端地理位置可包括高铁站内的地理位置、高铁线路上的地理位置、或者非高铁站内且非高铁线路上的地理位置等。In some embodiments, the terminal obtains the terminal's geographical location through the location sensor only when the location sensor is turned on. The turning on may be only turning on when positioning is required, or turning on at preset time intervals. The number of terminal geographical locations obtained by each terminal may be one or more. For example, the terminal's geographical location may be the terminal's geographical location obtained by the location sensor at 9 a.m. and 9:30 a.m. respectively. The terminal geographical location may include a geographical location within a high-speed rail station, a geographical location on a high-speed rail line, or a geographical location that is not within a high-speed rail station but not on a high-speed rail line, etc.
图12中示出了五个终端(终端1、终端2、终端3、终端4及终端5)获取终端地理位置。这五个终端地理位置分别为位置1、位置2、位置3、位置4及位置5。其中位置1和位置2为高铁站E内的地理位置,位置3、位置4及位置5为高铁线路(高铁站E到高铁站D)上的地理位置。可理解,所述终端的数量可为其他的数量,所述高铁站E内的地理位置的数量可为其他数量,所述高铁线路(高铁站E到高铁站D)上的地理位置的数量可为其他数量,所述终端地理位置还可包括其他高铁站内的地理位置和其他高铁线路上的地理位置,本申请对此不作限制。Figure 12 shows five terminals (terminal 1, terminal 2, terminal 3, terminal 4 and terminal 5) acquiring the terminal geographical location. The five terminal geographical locations are location 1, location 2, location 3, location 4 and location 5 respectively. Among them, positions 1 and 2 are the geographical locations within high-speed rail station E, and locations 3, 4, and 5 are the geographical locations on the high-speed rail line (high-speed rail station E to high-speed rail station D). It can be understood that the number of terminals can be other numbers, the number of geographical locations within the high-speed rail station E can be other numbers, and the number of geographical locations on the high-speed rail line (high-speed rail station E to high-speed rail station D) can be For other quantities, the terminal geographical location may also include the geographical location in other high-speed rail stations and the geographical location on other high-speed rail lines, which is not limited by this application.
S1002:每个终端监听终端当前驻留的服务小区。S1002: Each terminal monitors the serving cell where the terminal currently resides.
在一些实施例中,终端可接收基站广播的系统消息,并根据接收的系统消息监听终端当前驻留的服务小区。In some embodiments, the terminal may receive system messages broadcast by the base station, and monitor the serving cell where the terminal is currently camped based on the received system messages.
继续以上述的图12为例,这五个终端可监听终端当前驻留的服务小区分别为小区d1,小区d2,小区f1,小区f2,及小区f3。Continuing to take the above-mentioned Figure 12 as an example, the serving cells where the five terminals can monitor the terminals currently camp are respectively cell d1, cell d2, cell f1, cell f2, and cell f3.
S1003:每个终端将终端地理位置和终端当前驻留的服务小区进行关联。S1003: Each terminal associates the terminal's geographical location with the serving cell where the terminal currently resides.
在一些实施例中,在终端处于终端当前驻留的服务小区期间时,获取到终端地理位置,或者在获取到终端地理位置时,监控到终端当前驻留的服务小区。则,终端当前驻留的服务小区可为覆盖终端地理位置的小区,终端当前驻留的服务小区和终端地理位置具有一定的关联性。In some embodiments, when the terminal is in the serving cell where the terminal currently resides, the terminal's geographical location is obtained, or when the terminal's geographical location is obtained, the serving cell where the terminal currently resides is monitored. Then, the serving cell where the terminal currently resides may be a cell covering the geographical location of the terminal, and there is a certain correlation between the serving cell where the terminal currently resides and the terminal's geographical location.
继续以上述的图12为例,这五个终端所关联的终端地理位置和终端当前驻留的服务小区可分别为(位置1,小区d1)、(位置2,小区d2)、(位置3,小区f1)、(位置4,小区f2)、及(位置5,小区f3)。Continuing to take the above-mentioned Figure 12 as an example, the terminal geographical locations associated with these five terminals and the serving cells where the terminals currently reside can be respectively (location 1, cell d1), (location 2, cell d2), (location 3, cell f1), (position 4, cell f2), and (position 5, cell f3).
S1004:每个终端将关联的终端地理位置和终端当前驻留的服务小区发送至云端服务器。S1004: Each terminal sends the associated terminal geographical location and the service cell where the terminal currently resides to the cloud server.
在一些实施例中,每个终端可一次发送一个或多个关联的终端地理位置和终端当前驻留的服务小区至云端服务器。即,每个终端可在将终端地理位置和终端当前驻留的服务小区进行关联后,就发送关联的终端地理位置和终端当前驻留的服务小区至云端服务器;或者在当前网络质量大于预设阈值,或者在预设时间,或者在关联的终端地理位置和终端当前驻留的服务小区的数量大于预设值时,发送数据至云端服务器。In some embodiments, each terminal may send one or more associated terminal geographical locations and the serving cell where the terminal currently resides to the cloud server at a time. That is, each terminal can send the associated terminal geographical location and the serving cell where the terminal currently resides to the cloud server after associating the terminal's geographical location with the serving cell where the terminal currently resides; or when the current network quality is greater than the preset Threshold, or at a preset time, or when the associated terminal geographical location and the number of serving cells where the terminal currently resides are greater than the preset value, data is sent to the cloud server.
S1005:云端服务器通过电子地图获取高铁站的多边形地理区域(polygon geography region)和高铁线路的地理区域。 S1005: The cloud server obtains the polygon geography region of the high-speed rail station and the geographic region of the high-speed rail line through the electronic map.
在一些实施例中,电子地图上包括多个交通网的地理轮廓点和每个轮廓点所在的地理位置。所述交通网包括高铁站及高铁线路等。所述交通网的轮廓点为所述交通网的所有地理位置所围出的一个边界,例如如图13所示,高铁站A的轮廓点为高铁站A内的所有地理位置所围出的一个边界,高铁线路B的轮廓点为高铁线路B内的所有地理位置所围出的一个边界。在一些实施例中,所述高铁站的多边形地理区域可包括高铁站的所有地理位置,所述高铁线路的地理区域可包括高铁线路的所有地理位置。所述高铁站的所有地理位置可为高铁站的轮廓点和每个轮廓点所在的地理位置,所述高铁线路的所有地理位置可包括高铁线路的轮廓点和每个轮廓点所在的地理位置。所述高铁站的轮廓点可为高铁站的外轮廓的轮廓点,所述高铁线路的轮廓点可为高铁轨道的轮廓点。可理解,所述高铁站的轮廓点可为高铁站的外轮廓平移外扩所形成的轮廓点,所述高铁线路的轮廓点可为高铁轨道的轮廓平移外扩所形成的轮廓点,本申请对此不作限制。所述高铁站的所有地理位置也可为高铁站的所有地理位置的集合,所述高铁线路的所有地理位置也可为高铁线路的所有地理位置的集合。In some embodiments, the electronic map includes geographical outline points of multiple transportation networks and the geographical location of each outline point. The transportation network includes high-speed rail stations and high-speed rail lines. The outline point of the transportation network is a boundary surrounded by all geographical locations of the transportation network. For example, as shown in Figure 13, the outline point of high-speed rail station A is a boundary surrounded by all geographical locations within high-speed rail station A. Boundary, the outline point of high-speed rail line B is a boundary surrounded by all geographical locations within high-speed rail line B. In some embodiments, the polygonal geographic area of the high-speed rail station may include all geographic locations of the high-speed rail station, and the geographic area of the high-speed rail line may include all geographic locations of the high-speed rail line. All the geographical locations of the high-speed rail station may be the contour points of the high-speed rail station and the geographical location of each contour point. All the geographical locations of the high-speed rail line may include the contour points of the high-speed rail line and the geographical location of each contour point. The contour points of the high-speed rail station may be the contour points of the outer contour of the high-speed rail station, and the contour points of the high-speed rail line may be the contour points of the high-speed rail track. It can be understood that the contour points of the high-speed rail station can be contour points formed by the translational expansion of the outer contour of the high-speed rail station, and the contour points of the high-speed rail line can be contour points formed by the translational expansion of the contour of the high-speed rail track. This application There are no restrictions on this. All the geographical locations of the high-speed rail stations may also be a set of all geographical locations of the high-speed rail stations, and all the geographical locations of the high-speed rail lines may also be a set of all geographical locations of the high-speed rail lines.
S1006:云端服务器确定所有接收的终端地理位置中与高铁站的多边形地理区域匹配的第一目标终端地理位置。S1006: The cloud server determines the first target terminal geographical location among all received terminal geographical locations that matches the polygonal geographical area of the high-speed rail station.
在一些实施例中,云端服务器确定所有接收的终端地理位置中与高铁站的多边形地理区域匹配的第一目标终端地理位置包括:云端服务器查询高铁站的多边形地理区域中与终端地理位置匹配的目标终端地理位置;将所有目标终端地理位置集合为第一目标终端地理位置。In some embodiments, the cloud server determines the first target terminal geographical location that matches the polygonal geographical area of the high-speed rail station among all received terminal geographical locations, including: the cloud server queries the target in the polygonal geographical area of the high-speed rail station that matches the terminal geographical location. Terminal geographical location; gather all target terminal geographical locations into the first target terminal geographical location.
继续以上述的图12为例,云端服务器确定所有接收的终端地理位置中与高铁站E的多边形地理区域匹配的第一目标终端地理位置包括位置1和位置2。Continuing to take the above-mentioned Figure 12 as an example, the cloud server determines that among all received terminal geographical locations, the first target terminal geographical location that matches the polygonal geographical area of high-speed rail station E includes location 1 and location 2.
S1007:云端服务器将所有第一目标终端地理位置对应的终端当前驻留的服务小区集合形成高铁站的小区围栏信息。S1007: The cloud server collects all the service cells where the terminal currently resides corresponding to the geographical location of the first target terminal to form the cell fence information of the high-speed rail station.
继续以上述的图12为例,云端服务器将位置1对应的小区d1和位置2对应的小区d2集合形成XX市高铁站E的小区围栏信息(小区d1,小区d2)。可理解,所述小区围栏信息还可包括城市信息和高铁站信息等,本申请对此不作限制。Continuing to take the above-mentioned Figure 12 as an example, the cloud server collects the cell d1 corresponding to position 1 and the cell d2 corresponding to position 2 to form the cell fence information of high-speed rail station E in XX City (cell d1, cell d2). It can be understood that the community fence information may also include city information, high-speed rail station information, etc., and this application does not limit this.
S1008:云端服务器确定所有接收的终端地理位置中与高铁线路的地理区域匹配的第二目标终端地理位置。S1008: The cloud server determines the second target terminal geographical location that matches the geographical area of the high-speed rail line among all received terminal geographical locations.
在一些实施例中,云端服务器确定所有接收的终端地理位置中与高铁线路的地理区域匹配的第二目标终端地理位置包括:云端服务器查询高铁线路的地理区域中与终端地理位置匹配的目标终端地理位置;将所有目标终端地理位置集合为第二目标终端地理位置。In some embodiments, the cloud server determines the second target terminal geographical location that matches the geographical area of the high-speed rail line among all received terminal geographical locations, including: the cloud server queries the geographical location of the target terminal that matches the terminal geographical location in the geographical area of the high-speed rail line. Location; gather all target terminal geographical locations into the second target terminal geographical location.
继续以上述的图12为例,云端服务器确定所有接收的终端地理位置中与高铁线路的地理区域匹配的第二目标终端地理位置包括位置3、位置4和位置5。Continuing to take the above-mentioned Figure 12 as an example, the cloud server determines that among all received terminal geographical locations, the second target terminal geographical location that matches the geographical area of the high-speed rail line includes location 3, location 4, and location 5.
S1009:云端服务器将所有第二目标终端地理位置对应的终端当前驻留的服务小区集合形成高铁线路的小区围栏信息。S1009: The cloud server collects all service cells where the terminal currently resides corresponding to the geographical location of the second target terminal to form cell fence information of the high-speed rail line.
继续以上述的图12为例,云端服务器将位置3对应的小区f1、位置4对应的小区f2、和位置5对应的小区f3集合形成XX市高铁站E到高铁站D的高铁线路的小区围栏信息(小区f1,小区f2,小区f3)。可理解,所述小区围栏信息还可包括高铁站信息和高铁线路信息等,本申请对此不作限制。Continuing to take the above-mentioned Figure 12 as an example, the cloud server collects the cell f1 corresponding to position 3, the cell f2 corresponding to position 4, and the cell f3 corresponding to position 5 to form a cell fence for the high-speed rail line from high-speed rail station E to high-speed rail station D in XX City. Information (cell f1, cell f2, cell f3). It can be understood that the community fence information may also include high-speed rail station information, high-speed rail line information, etc., and this application does not limit this.
可理解,步骤S1006~S1007和步骤S1008~S1009可以互换;步骤S1006和步骤S1008可同时执行,步骤S1007和步骤S1009可同时执行,不申请对此不作限制。 It can be understood that steps S1006-S1007 and steps S1008-S1009 can be interchanged; steps S1006 and step S1008 can be executed at the same time, and step S1007 and step S1009 can be executed at the same time. This is not limited by the application.
可理解,所述云端服务器可每隔预设时间段(例如1月等)将所述预设时间段内的所有第一目标终端地理位置对应的终端当前驻留的服务小区集合形成高铁站的小区围栏信息,并将所述预设时间段内的所有第二目标终端地理位置对应的终端当前驻留的服务小区集合形成高铁线路的小区围栏信息,从而可更新所述高铁站的小区围栏信息和高铁线路的小区围栏信息,本申请对此不作限制。It can be understood that the cloud server can collect the service cells where the terminals currently reside corresponding to the geographical locations of all first target terminals within the preset time period (such as January, etc.) to form a high-speed rail station. The cell fence information is collected, and the service cells where the terminals currently reside corresponding to the geographical location of all second target terminals within the preset time period are collected to form the cell fence information of the high-speed rail line, so that the cell fence information of the high-speed rail station can be updated. and community fence information for high-speed rail lines, this application does not limit this.
可理解,所述终端场景识别方法还可用于对高速、地铁等环境下的终端场景进行识别。It can be understood that the terminal scene identification method can also be used to identify terminal scenes in environments such as highways and subways.
请参考图14,为本申请实施例的终端场景识别装置的逻辑结构示意图。所述终端场景识别装置140包括处理单元1401和获取单元1402。所述处理单元1401用于确定所述终端处于高铁站。所述获取单元1402用于获取高铁线路的第一小区围栏信息;所述第一小区围栏信息包括覆盖所述高铁线路的地理区域的蜂窝小区信息。所述处理单元1401还用于若所述终端离开所述高铁站,且所述终端当前驻留的服务蜂窝小区与所述第一小区围栏信息匹配,则所述终端进入高铁线路场景。Please refer to FIG. 14 , which is a schematic diagram of the logical structure of a terminal scene recognition device according to an embodiment of the present application. The terminal scene recognition device 140 includes a processing unit 1401 and an acquisition unit 1402. The processing unit 1401 is used to determine that the terminal is at a high-speed rail station. The obtaining unit 1402 is configured to obtain the first cell fence information of the high-speed rail line; the first cell fence information includes cellular cell information covering the geographical area of the high-speed rail line. The processing unit 1401 is also configured to enter the high-speed rail line scenario if the terminal leaves the high-speed rail station and the serving cell where the terminal currently resides matches the first cell fence information.
在一些实施例中,所述处理单元1401还用于获取所述高铁站的第二小区围栏信息;所述第二小区围栏信息包括覆盖所述高铁站的地理区域的蜂窝小区信息;若所述终端当前驻留的服务蜂窝小区与所述第二小区围栏信息匹配,则确定所述终端处于所述高铁站。In some embodiments, the processing unit 1401 is also configured to obtain second cell fence information of the high-speed rail station; the second cell fence information includes cellular cell information covering the geographical area of the high-speed rail station; if the If the serving cell where the terminal currently resides matches the fence information of the second cell, it is determined that the terminal is at the high-speed rail station.
在一些实施例中,所述处理单元1401是根据蜂窝小区的系统信息确定所述终端当前驻留的所述服务蜂窝小区。In some embodiments, the processing unit 1401 determines the serving cell where the terminal currently camps based on the system information of the cell.
在一些实施例中,所述处理单元1401还用于:若在预设时间内所述第一小区围栏信息中存在与所述终端当前驻留的所述服务蜂窝小区匹配的预设数量的多个目标蜂窝小区,确定所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息匹配。In some embodiments, the processing unit 1401 is further configured to: if within a preset time, the first cell fence information contains a preset number of cells that match the serving cell where the terminal is currently camped. a target cell, and determine that the serving cell where the terminal is currently camped matches the first cell fence information.
在一些实施例中,在所述获取高铁线路的第一小区围栏信息之前,所述处理单元1401还用于:所述终端进入高铁站场景;其中,在所述高铁站场景下,所述终端上运行的应用程序执行第一缓存操作;执行所述第一缓存操作时所述应用程序缓存的缓存量大于所述应用程序进入所述高铁站场景之前所述应用程序缓存的缓存量。In some embodiments, before obtaining the first cell fence information of the high-speed rail line, the processing unit 1401 is also configured to: the terminal enters the high-speed rail station scene; wherein, in the high-speed rail station scene, the terminal The application program running on the high-speed rail station performs a first caching operation; the cache amount of the application program cache when performing the first cache operation is greater than the cache amount of the application program cache before the application program enters the high-speed rail station scene.
在一些实施例中,在所述高铁线路场景下,所述终端上运行的所述应用程序执行第二缓存操作;执行所述第二缓存操作时所述应用程序缓存的缓存量大于执行所述第一缓存操作时所述应用程序缓存的缓存量。In some embodiments, in the high-speed rail scenario, the application program running on the terminal performs a second caching operation; the cache amount of the application program when performing the second caching operation is greater than when performing the second caching operation. The amount of cache cached by the application during the first cache operation.
在一些实施例中,所述处理单元1401还用于若所述终端离开所述高铁站,且所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息不匹配,则所述终端退出所述高铁站场景。In some embodiments, the processing unit 1401 is also configured to: if the terminal leaves the high-speed rail station and the serving cell where the terminal currently resides does not match the first cell fence information, then the The terminal exits the high-speed rail station scene.
在一些实施例中,所述处理单元1401还用于若所述终端离开所述高铁站,所述终端的运动状态进入高铁乘车状态,且所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息匹配,则所述终端进入高铁线路场景。In some embodiments, the processing unit 1401 is also configured to: if the terminal leaves the high-speed rail station, the movement state of the terminal enters the high-speed rail riding state, and the serving cell where the terminal currently resides is the same as If the first cell fence information matches, the terminal enters the high-speed rail line scenario.
在一些实施例中,所述处理单元1401还用于若所述终端的所述运动状态退出所述高铁乘车状态,且所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息中的任意蜂窝小区信息不匹配,则所述终端退出所述高铁线路场景。In some embodiments, the processing unit 1401 is also configured to: if the movement state of the terminal exits the high-speed rail riding state, and the serving cell where the terminal currently resides is the same as the first cell If any cell information in the fence information does not match, the terminal exits the high-speed rail line scenario.
在一些实施例中,所述获取单元1402还用于:从云端服务器获取所述第一小区围栏信息;或者,从本地获取预先存储的所述第一小区围栏信息。In some embodiments, the obtaining unit 1402 is further configured to: obtain the first cell fence information from a cloud server; or obtain the pre-stored first cell fence information locally.
在一些实施例中,所述获取单元1402还用于从云端服务器获取所述终端当前所处的所述 高铁站的所有高铁线路的所述第一小区围栏信息。In some embodiments, the obtaining unit 1402 is also configured to obtain the location where the terminal is currently located from the cloud server. The first cell fence information of all high-speed rail lines of the high-speed rail station.
在一些实施例中,所述装置还包括发送单元1403,在确定所述终端处于高铁站之前:所述获取单元1402还用于获取所述终端的地理位置,所述终端的地理位置为所述高铁线路的地理位置;所述处理单元1401还用于监听所述终端当前驻留的所述服务蜂窝小区;所述处理单元1401还用于将所述终端的所述地理位置和所述终端当前驻留的所述服务蜂窝小区进行关联;所述发送单元1403还用于将关联的所述终端的所述地理位置和所述终端当前驻留的所述服务蜂窝小区发送至云端服务器,以供所述云端服务器生成所述高铁线路的所述小区围栏信息。In some embodiments, the device further includes a sending unit 1403. Before determining that the terminal is at a high-speed rail station: the obtaining unit 1402 is also configured to obtain the geographical location of the terminal, and the geographical location of the terminal is the The geographical location of the high-speed rail line; the processing unit 1401 is also used to monitor the serving cell where the terminal currently resides; the processing unit 1401 is also used to combine the geographical location of the terminal with the current location of the terminal. The sending unit 1403 is also configured to send the associated geographical location of the terminal and the serving cell where the terminal currently resides to the cloud server for use. The cloud server generates the community fence information of the high-speed rail line.
在一些实施例中,在获取所述高铁站的第二小区围栏信息之前,所述获取单元1402还用于获取所述终端当前所在地理区域信息;所述获取单元1402还用于若所述终端当前所在地理区域信息变化,获取所述终端当前所在地理区域信息的所述第二小区围栏信息。在一些实施例中,当终端当前所在地理区域信息与终端前一次所在地理区域信息不相同时,则所述终端当前所在地理区域信息变化。在一些实施例中,当为首次获取终端当前所在地理区域信息时,则所述终端当前所在地理区域信息变化。In some embodiments, before obtaining the second community fence information of the high-speed rail station, the obtaining unit 1402 is also used to obtain the geographical area information where the terminal is currently located; the obtaining unit 1402 is also used to obtain information about the current geographical area of the terminal if the terminal When the current geographical area information changes, the second cell fence information of the terminal's current geographical area information is obtained. In some embodiments, when the terminal's current geographical area information is different from the terminal's previous geographical area information, the terminal's current geographical area information changes. In some embodiments, when the terminal's current geographical area information is obtained for the first time, the terminal's current geographical area information changes.
在一些实施例中,所述处理单元1401还用于若所述终端当前驻留的所述服务蜂窝小区与所述第二小区围栏信息不匹配,则继续监听所述终端当前驻留的所述服务蜂窝小区。In some embodiments, the processing unit 1401 is also configured to continue to monitor the serving cell where the terminal currently camps if the serving cell where the terminal currently camps does not match the second cell fence information. serving cell.
本申请实施例中描述的终端场景识别装置可以用来实施上述终端场景识别方法中所述终端执行的操作。The terminal scene recognition device described in the embodiment of this application can be used to implement the operations performed by the terminal in the above terminal scene recognition method.
本申请通过在终端处于高铁站场景下时,获取高铁线路的小区围栏信息,若终端离开高铁站,则判断终端当前驻留的服务小区是否与高铁线路的小区围栏信息匹配,若匹配,则控制终端进入高铁线路场景,其中,高铁线路的小区围栏信息包括覆盖高铁线路的地理区域的蜂窝小区信息,从而可不依赖于运营商部署的高铁专网小区,准确识别出终端所处的高铁线路场景。This application obtains the cell fence information of the high-speed rail line when the terminal is in the high-speed rail station scenario. If the terminal leaves the high-speed rail station, it is judged whether the service cell where the terminal currently resides matches the cell fence information of the high-speed rail line. If it matches, control The terminal enters the high-speed rail line scene. The cell fence information of the high-speed rail line includes the cellular cell information covering the geographical area of the high-speed rail line. This allows the terminal to accurately identify the high-speed rail line scene where the terminal is located, independent of the high-speed rail dedicated network community deployed by the operator.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件的方式来实现,当然也可以通过专用硬件包括专用集成电路、专用CPU、专用存储器、专用元器件等来实现。一般情况下,凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现,而且,用来实现同一功能的具体硬件结构也可以是多种多样的,例如模拟电路、数字电路或专用电路等。但是,对本申请而言更多情况下软件程序实现是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘、U盘、移动硬盘、ROM、RAM、磁碟或者光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the present application can be implemented by software plus necessary general hardware. Of course, it can also be implemented by dedicated hardware including dedicated integrated circuits, dedicated CPUs, dedicated memories, Special components, etc. to achieve. In general, all functions performed by computer programs can be easily implemented with corresponding hardware. Moreover, the specific hardware structures used to implement the same function can also be diverse, such as analog circuits, digital circuits or special-purpose circuits. circuit etc. However, for this application, software program implementation is a better implementation in most cases. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or that contributes to the existing technology. The computer software product is stored in a readable storage medium, such as a computer floppy disk. , U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., including several instructions to cause a computer device (which can be a personal computer, server, or network device, etc.) to execute the method described in each embodiment of the application. .
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、 光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transferred from a website, computer, server, or data center Via wired (e.g. coaxial cable, Optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means to transmit to another website, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can store, or a data storage device such as a server or data center integrated with one or more available media. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (Solid State Disk, SSD)), etc.
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not limiting. Although the present application has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present application can be modified. Modifications or equivalent substitutions may be made without departing from the spirit and scope of the technical solution of the present application.

Claims (31)

  1. 一种终端场景识别方法,其特征在于,所述方法包括:A terminal scene recognition method, characterized in that the method includes:
    终端确定处于高铁站;The terminal is determined to be at a high-speed rail station;
    所述终端获取高铁线路的第一小区围栏信息;所述第一小区围栏信息包括覆盖所述高铁线路的地理区域的蜂窝小区信息;The terminal obtains first cell fence information of the high-speed rail line; the first cell fence information includes cellular cell information covering the geographical area of the high-speed rail line;
    若所述终端离开所述高铁站,且所述终端当前驻留的服务蜂窝小区与所述第一小区围栏信息匹配,则所述终端进入高铁线路场景。If the terminal leaves the high-speed rail station and the serving cell where the terminal currently resides matches the first cell fence information, the terminal enters the high-speed rail line scenario.
  2. 如权利要求1所述的方法,其特征在于,所述终端确定处于高铁站包括:The method of claim 1, wherein determining that the terminal is at a high-speed rail station includes:
    所述终端获取所述高铁站的第二小区围栏信息;所述第二小区围栏信息包括覆盖所述高铁站的地理区域的蜂窝小区信息;The terminal acquires second cell fence information of the high-speed rail station; the second cell fence information includes cellular cell information covering the geographical area of the high-speed rail station;
    若所述终端当前驻留的服务蜂窝小区与所述第二小区围栏信息匹配,则所述终端确定处于所述高铁站。If the serving cell where the terminal currently resides matches the second cell fence information, the terminal is determined to be at the high-speed rail station.
  3. 如权利要求1至2任一项所述的方法,其特征在于:所述终端是根据蜂窝小区的系统信息确定当前驻留的所述服务蜂窝小区。The method according to any one of claims 1 to 2, characterized in that the terminal determines the serving cell where it is currently camped based on the system information of the cell.
  4. 如权利要求1至3任一项所述的方法,其特征在于,所述终端当前驻留的服务蜂窝小区与所述第一小区围栏信息匹配包括:The method according to any one of claims 1 to 3, wherein matching the serving cell where the terminal is currently camped with the first cell fence information includes:
    若在预设时间内所述第一小区围栏信息中存在与所述终端当前驻留的所述服务蜂窝小区匹配的预设数量的多个目标蜂窝小区,所述终端确定所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息匹配。If there are a preset number of target cells matching the serving cell where the terminal is currently camped in the first cell fence information within the preset time, the terminal determines that the terminal is currently camped on The serving cell matches the first cell fence information.
  5. 如权利要求1至4任一项所述的方法,其特征在于,在所述终端获取高铁线路的第一小区围栏信息之前,所述方法还包括:The method according to any one of claims 1 to 4, characterized in that, before the terminal obtains the first cell fence information of the high-speed rail line, the method further includes:
    所述终端进入高铁站场景;其中,在所述高铁站场景下,所述终端上运行的应用程序执行第一缓存操作;执行所述第一缓存操作时所述应用程序缓存的缓存量大于所述应用程序进入所述高铁站场景之前所述应用程序缓存的缓存量。The terminal enters the high-speed rail station scene; wherein, in the high-speed rail station scene, the application program running on the terminal performs a first caching operation; when performing the first caching operation, the cache amount of the application program is greater than the The amount of cache cached by the application program before the application program enters the high-speed rail station scene.
  6. 如权利要求5所述的方法,其特征在于:The method of claim 5, characterized in that:
    在所述高铁线路场景下,所述终端上运行的所述应用程序执行第二缓存操作;执行所述第二缓存操作时所述应用程序缓存的缓存量大于执行所述第一缓存操作时所述应用程序缓存的缓存量。In the high-speed rail scenario, the application program running on the terminal performs a second caching operation; when performing the second caching operation, the cache amount of the application program is greater than when performing the first caching operation. The amount of cache for the application cache.
  7. 如权利要求5所述的方法,其特征在于,所述方法还包括:The method of claim 5, further comprising:
    若所述终端离开所述高铁站,且所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息不匹配,则所述终端退出所述高铁站场景。If the terminal leaves the high-speed rail station and the serving cell where the terminal currently resides does not match the first cell fence information, the terminal exits the high-speed rail station scenario.
  8. 如权利要求1至7任一项所述的方法,其特征在于,所述若所述终端离开所述高铁站,且所述终端当前驻留的服务蜂窝小区与所述第一小区围栏信息匹配包括:The method according to any one of claims 1 to 7, characterized in that if the terminal leaves the high-speed railway station and the serving cell where the terminal currently resides matches the first cell fence information include:
    若所述终端离开所述高铁站,所述终端的运动状态进入高铁乘车状态,且所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息匹配。If the terminal leaves the high-speed rail station, the movement state of the terminal enters the high-speed rail riding state, and the serving cell where the terminal currently resides matches the first cell fence information.
  9. 如权利要求8所述的方法,其特征在于,所述方法还包括:The method of claim 8, further comprising:
    若所述终端的所述运动状态退出所述高铁乘车状态,且所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息中的任意蜂窝小区信息不匹配,则所述终端退出所述高铁线 路场景。If the movement state of the terminal exits the high-speed rail riding state, and the serving cell where the terminal currently resides does not match any cell information in the first cell fence information, then the Terminal exits the high-speed rail line road scene.
  10. 如权利要求1至9任一项所述的方法,其特征在于,所述终端获取高铁线路的第一小区围栏信息包括:The method according to any one of claims 1 to 9, wherein the terminal obtains the first cell fence information of the high-speed rail line including:
    所述终端从云端服务器获取所述第一小区围栏信息;The terminal obtains the first cell fence information from the cloud server;
    或者,所述终端从本地获取预先存储的所述第一小区围栏信息。Alternatively, the terminal obtains the pre-stored first cell fence information locally.
  11. 如权利要求1至9任一项所述的方法,其特征在于,所述终端获取高铁线路的第一小区围栏信息包括:The method according to any one of claims 1 to 9, wherein the terminal obtains the first cell fence information of the high-speed rail line including:
    所述终端从云端服务器获取所述终端当前所处的所述高铁站的所有高铁线路的所述第一小区围栏信息。The terminal obtains the first cell fence information of all high-speed rail lines of the high-speed rail station where the terminal is currently located from the cloud server.
  12. 如权利要求1至11任一项所述的方法,其特征在于,在所述终端确定处于高铁站之前,所述方法还包括:The method according to any one of claims 1 to 11, characterized in that, before the terminal is determined to be at a high-speed railway station, the method further includes:
    所述终端获取所述终端的地理位置,所述终端的地理位置为所述高铁线路的地理位置;The terminal obtains the geographical location of the terminal, and the geographical location of the terminal is the geographical location of the high-speed rail line;
    所述终端监听所述终端当前驻留的所述服务蜂窝小区;The terminal monitors the serving cell where the terminal is currently camped;
    所述终端将所述终端的所述地理位置和所述终端当前驻留的所述服务蜂窝小区进行关联;The terminal associates the geographical location of the terminal with the serving cell where the terminal currently resides;
    所述终端将关联的所述终端的所述地理位置和所述终端当前驻留的所述服务蜂窝小区发送至云端服务器,以供所述云端服务器生成所述高铁线路的所述小区围栏信息。The terminal sends the associated geographical location of the terminal and the serving cell where the terminal currently resides to the cloud server, so that the cloud server can generate the cell fence information of the high-speed rail line.
  13. 如权利要求2至12任一项所述的方法,其特征在于,在所述终端获取所述高铁站的第二小区围栏信息之前,所述方法还包括:The method according to any one of claims 2 to 12, characterized in that, before the terminal acquires the second community fence information of the high-speed rail station, the method further includes:
    所述终端获取所述终端当前所在地理区域信息;The terminal obtains information about the geographical area where the terminal is currently located;
    所述终端获取所述高铁站的第二小区围栏信息包括:The terminal obtaining the second community fence information of the high-speed rail station includes:
    若所述终端当前所在地理区域信息变化,则所述终端获取所述终端当前所在地理区域信息的所述第二小区围栏信息。If the geographical area information where the terminal is currently located changes, the terminal obtains the second cell fence information of the geographical area information where the terminal is currently located.
  14. 如权利要求2至13任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 2 to 13, characterized in that the method further includes:
    若所述终端当前驻留的所述服务蜂窝小区与所述第二小区围栏信息不匹配,则继续监听所述终端当前驻留的所述服务蜂窝小区。If the serving cell where the terminal is currently camped does not match the fence information of the second cell, continue to monitor the serving cell where the terminal is currently camped.
  15. 一种终端场景识别装置,其特征在于,所述装置包括处理单元和获取单元:A terminal scene recognition device, characterized in that the device includes a processing unit and an acquisition unit:
    所述处理单元用于确定所述终端处于高铁站;The processing unit is used to determine that the terminal is at a high-speed rail station;
    所述获取单元用于获取高铁线路的第一小区围栏信息;所述第一小区围栏信息包括覆盖所述高铁线路的地理区域的蜂窝小区信息;The acquisition unit is used to obtain the first cell fence information of the high-speed rail line; the first cell fence information includes cellular cell information covering the geographical area of the high-speed rail line;
    所述处理单元还用于若所述终端离开所述高铁站,且所述终端当前驻留的服务蜂窝小区与所述第一小区围栏信息匹配,则所述终端进入高铁线路场景。The processing unit is also configured to enter the high-speed rail scene if the terminal leaves the high-speed rail station and the serving cell cell where the terminal currently resides matches the first cell fence information.
  16. 如权利要求15所述的装置,其特征在于,所述处理单元还用于:The device according to claim 15, characterized in that the processing unit is also used for:
    获取所述高铁站的第二小区围栏信息;所述第二小区围栏信息包括覆盖所述高铁站的地理区域的蜂窝小区信息;Obtain second cell fence information of the high-speed rail station; the second cell fence information includes cellular cell information covering the geographical area of the high-speed rail station;
    若所述终端当前驻留的服务蜂窝小区与所述第二小区围栏信息匹配,则确定所述终端处于所述高铁站。If the serving cell where the terminal currently resides matches the second cell fence information, it is determined that the terminal is at the high-speed rail station.
  17. 如权利要求15至16任一项所述的装置,其特征在于:所述处理单元是根据蜂窝小区的系统信息确定所述终端当前驻留的所述服务蜂窝小区。 The device according to any one of claims 15 to 16, characterized in that the processing unit determines the serving cell where the terminal currently camps based on system information of the cell.
  18. 如权利要求15至17任一项所述的装置,其特征在于,所述处理单元还用于:The device according to any one of claims 15 to 17, characterized in that the processing unit is also used for:
    若在预设时间内所述第一小区围栏信息中存在与所述终端当前驻留的所述服务蜂窝小区匹配的预设数量的多个目标蜂窝小区,确定所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息匹配。If there are a preset number of target cells matching the serving cell where the terminal is currently camped in the first cell fence information within the preset time, determine the cell where the terminal is currently camped. The serving cell matches the first cell fence information.
  19. 如权利要求15至18任一项所述的装置,其特征在于,在所述获取高铁线路的第一小区围栏信息之前,所述处理单元还用于:The device according to any one of claims 15 to 18, characterized in that before obtaining the first community fence information of the high-speed rail line, the processing unit is also used to:
    所述终端进入高铁站场景;其中,在所述高铁站场景下,所述终端上运行的应用程序执行第一缓存操作;执行所述第一缓存操作时所述应用程序缓存的缓存量大于所述应用程序进入所述高铁站场景之前所述应用程序缓存的缓存量。The terminal enters the high-speed rail station scene; wherein, in the high-speed rail station scene, the application program running on the terminal performs a first caching operation; when performing the first caching operation, the cache amount of the application program is greater than the The amount of cache cached by the application program before the application program enters the high-speed rail station scene.
  20. 如权利要求19所述的装置,其特征在于:The device according to claim 19, characterized in that:
    在所述高铁线路场景下,所述终端上运行的所述应用程序执行第二缓存操作;执行所述第二缓存操作时所述应用程序缓存的缓存量大于执行所述第一缓存操作时所述应用程序缓存的缓存量。In the high-speed rail scenario, the application program running on the terminal performs a second caching operation; when performing the second caching operation, the cache amount of the application program is greater than when performing the first caching operation. The amount of cache for the application cache.
  21. 如权利要求19所述的装置,其特征在于,所述处理单元还用于:The device according to claim 19, characterized in that the processing unit is also used for:
    若所述终端离开所述高铁站,且所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息不匹配,则所述终端退出所述高铁站场景。If the terminal leaves the high-speed rail station and the serving cell where the terminal currently resides does not match the first cell fence information, the terminal exits the high-speed rail station scenario.
  22. 如权利要求15至21任一项所述的装置,其特征在于,所述处理单元还用于:The device according to any one of claims 15 to 21, characterized in that the processing unit is also used for:
    若所述终端离开所述高铁站,所述终端的运动状态进入高铁乘车状态,且所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息匹配,则所述终端进入高铁线路场景。If the terminal leaves the high-speed rail station, the movement state of the terminal enters the high-speed rail riding state, and the serving cell cell where the terminal currently resides matches the first cell fence information, then the terminal enters High-speed rail line scene.
  23. 如权利要求22所述的装置,其特征在于,所述处理单元还用于:The device according to claim 22, characterized in that the processing unit is also used for:
    若所述终端的所述运动状态退出所述高铁乘车状态,且所述终端当前驻留的所述服务蜂窝小区与所述第一小区围栏信息中的任意蜂窝小区信息不匹配,则所述终端退出所述高铁线路场景。If the movement state of the terminal exits the high-speed rail riding state, and the serving cell where the terminal currently resides does not match any cell information in the first cell fence information, then the The terminal exits the high-speed rail line scenario.
  24. 如权利要求15至23任一项所述的装置,其特征在于,所述获取单元还用于:The device according to any one of claims 15 to 23, characterized in that the acquisition unit is also used to:
    从云端服务器获取所述第一小区围栏信息;Obtain the first cell fence information from the cloud server;
    或者,从本地获取预先存储的所述第一小区围栏信息。Alternatively, the pre-stored first cell fence information is obtained locally.
  25. 如权利要求15至23任一项所述的装置,其特征在于,所述获取单元还用于:The device according to any one of claims 15 to 23, characterized in that the acquisition unit is also used to:
    从云端服务器获取所述终端当前所处的所述高铁站的所有高铁线路的所述第一小区围栏信息。Obtain the first cell fence information of all high-speed rail lines of the high-speed rail station where the terminal is currently located from the cloud server.
  26. 如权利要求15至25任一项所述的装置,其特征在于,所述装置还包括发送单元,在确定所述终端处于高铁站之前:The device according to any one of claims 15 to 25, characterized in that the device further includes a sending unit, before determining that the terminal is at a high-speed rail station:
    所述获取单元还用于获取所述终端的地理位置,所述终端的地理位置为所述高铁线路的地理位置;The obtaining unit is also used to obtain the geographical location of the terminal, where the geographical location of the terminal is the geographical location of the high-speed rail line;
    所述处理单元还用于监听所述终端当前驻留的所述服务蜂窝小区;The processing unit is also configured to monitor the serving cell where the terminal is currently camped;
    所述处理单元还用于将所述终端的所述地理位置和所述终端当前驻留的所述服务蜂窝小区进行关联;The processing unit is further configured to associate the geographical location of the terminal with the serving cell where the terminal currently resides;
    所述发送单元还用于将关联的所述终端的所述地理位置和所述终端当前驻留的所述服务蜂窝小区发送至云端服务器,以供所述云端服务器生成所述高铁线路的所述小区围栏信息。The sending unit is also configured to send the associated geographical location of the terminal and the serving cell where the terminal currently resides to the cloud server, so that the cloud server can generate the high-speed rail link. Community fence information.
  27. 如权利要求16至26任一项所述的装置,其特征在于, The device according to any one of claims 16 to 26, characterized in that,
    在获取所述高铁站的第二小区围栏信息之前,所述获取单元还用于:Before obtaining the second community fence information of the high-speed rail station, the obtaining unit is also used to:
    获取所述终端当前所在地理区域信息;Obtain information on the geographical area where the terminal is currently located;
    所述获取单元还用于:The acquisition unit is also used for:
    若所述终端当前所在地理区域信息变化,则获取所述终端当前所在地理区域信息的所述第二小区围栏信息。If the geographical area information where the terminal is currently located changes, the second cell fence information of the geographical area where the terminal is currently located is obtained.
  28. 如权利要求16至27任一项所述的装置,其特征在于,所述处理单元还用于:The device according to any one of claims 16 to 27, characterized in that the processing unit is also used for:
    若所述终端当前驻留的所述服务蜂窝小区与所述第二小区围栏信息不匹配,则继续监听所述终端当前驻留的所述服务蜂窝小区。If the serving cell where the terminal is currently camped does not match the fence information of the second cell, continue to monitor the serving cell where the terminal is currently camped.
  29. 一种终端,其特征在于,所述终端包括处理器和存储器,所述存储器用于存储程序指令,所述处理器调用所述程序指令时,实现如权利要求1至14任一项所述的终端场景识别方法。A terminal, characterized in that the terminal includes a processor and a memory, the memory is used to store program instructions, and when the processor calls the program instructions, it implements the method described in any one of claims 1 to 14. Terminal scene recognition method.
  30. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有程序,所述程序使得计算机设备实现如权利要求1至14任一项所述的终端场景识别方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores a program, and the program enables the computer device to implement the terminal scene recognition method according to any one of claims 1 to 14.
  31. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机执行指令,所述计算机执行指令存储在计算机可读存储介质中;终端的至少一个处理器可以从所述计算机可读存储介质中读取所述计算机执行指令,所述至少一个处理器执行所述计算机执行指令使得所述终端执行如权利要求1至14任一项所述的终端场景识别方法。 A computer program product, characterized in that the computer program product includes computer-executable instructions, and the computer-executable instructions are stored in a computer-readable storage medium; at least one processor of the terminal can obtain the information from the computer-readable storage medium. The computer-executed instructions are read, and the at least one processor executes the computer-executed instructions to cause the terminal to execute the terminal scene recognition method according to any one of claims 1 to 14.
PCT/CN2023/101716 2022-06-30 2023-06-21 Terminal scene identifying method and device, terminal, storage medium and program product WO2024001906A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210779011.9A CN117376825A (en) 2022-06-30 2022-06-30 Terminal scene recognition method, device, terminal, storage medium and program product
CN202210779011.9 2022-06-30

Publications (1)

Publication Number Publication Date
WO2024001906A1 true WO2024001906A1 (en) 2024-01-04

Family

ID=89383246

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/101716 WO2024001906A1 (en) 2022-06-30 2023-06-21 Terminal scene identifying method and device, terminal, storage medium and program product

Country Status (2)

Country Link
CN (1) CN117376825A (en)
WO (1) WO2024001906A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106817678A (en) * 2015-12-01 2017-06-09 中国移动通信集团上海有限公司 A kind of method and apparatus of the treatment of the terminal of resident high ferro private network
CN107567046A (en) * 2017-08-25 2018-01-09 维沃移动通信有限公司 A kind of cell accessing method and mobile terminal
WO2020077517A1 (en) * 2018-10-16 2020-04-23 华为技术有限公司 Cell switching method and device under high-speed mobile context
CN112888045A (en) * 2019-11-30 2021-06-01 华为技术有限公司 Cell measurement method, cell measurement device, terminal device, chip and storage medium
CN112995409A (en) * 2019-12-02 2021-06-18 荣耀终端有限公司 Display method of intelligent communication strategy effective scene and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106817678A (en) * 2015-12-01 2017-06-09 中国移动通信集团上海有限公司 A kind of method and apparatus of the treatment of the terminal of resident high ferro private network
CN107567046A (en) * 2017-08-25 2018-01-09 维沃移动通信有限公司 A kind of cell accessing method and mobile terminal
WO2020077517A1 (en) * 2018-10-16 2020-04-23 华为技术有限公司 Cell switching method and device under high-speed mobile context
CN112888045A (en) * 2019-11-30 2021-06-01 华为技术有限公司 Cell measurement method, cell measurement device, terminal device, chip and storage medium
CN112995409A (en) * 2019-12-02 2021-06-18 荣耀终端有限公司 Display method of intelligent communication strategy effective scene and mobile terminal

Also Published As

Publication number Publication date
CN117376825A (en) 2024-01-09

Similar Documents

Publication Publication Date Title
EP3923634B1 (en) Method for identifying specific position on specific route and electronic device
WO2021129688A1 (en) Display method and related product
CN113794801B (en) Method and device for processing geo-fence
CN111316199A (en) Information processing method and electronic equipment
CN111222836B (en) Arrival reminding method and related device
CN111368765A (en) Vehicle position determining method and device, electronic equipment and vehicle-mounted equipment
CN112335294A (en) Emergency call method and user terminal
WO2024001940A1 (en) Vehicle searching method and apparatus, and electronic device
CN114003827A (en) Weather information display method and device and electronic equipment
CN114064160A (en) Application icon layout method and related device
WO2023071940A1 (en) Cross-device method and apparatus for synchronizing navigation task, and device and storage medium
WO2024001906A1 (en) Terminal scene identifying method and device, terminal, storage medium and program product
CN116561085A (en) Picture sharing method and electronic equipment
CN115706916A (en) Wi-Fi connection method and device based on position information
CN114765768A (en) Network selection method and equipment
CN113671534A (en) Positioning compensation method, vehicle-mounted unit, medium and system
WO2020062308A1 (en) Location information processing method and related device
CN113950045A (en) Subscription data downloading method and electronic equipment
WO2023109636A1 (en) Application card display method and apparatus, terminal device, and readable storage medium
WO2024093857A1 (en) Positioning method and related apparatus
WO2023116669A1 (en) Video generation system and method, and related apparatus
CN115225298B (en) Prompting method, related device and system
CN116700556B (en) Card generation method and related device
WO2023104075A1 (en) Navigation information sharing method, electronic device, and system
WO2023197999A1 (en) Display method and electronic device

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: 23830085

Country of ref document: EP

Kind code of ref document: A1