CN116028534B - Method and device for processing traffic information - Google Patents

Method and device for processing traffic information Download PDF

Info

Publication number
CN116028534B
CN116028534B CN202210603487.7A CN202210603487A CN116028534B CN 116028534 B CN116028534 B CN 116028534B CN 202210603487 A CN202210603487 A CN 202210603487A CN 116028534 B CN116028534 B CN 116028534B
Authority
CN
China
Prior art keywords
traffic information
traffic
card
information
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210603487.7A
Other languages
Chinese (zh)
Other versions
CN116028534A (en
Inventor
杨帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210603487.7A priority Critical patent/CN116028534B/en
Publication of CN116028534A publication Critical patent/CN116028534A/en
Application granted granted Critical
Publication of CN116028534B publication Critical patent/CN116028534B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application relates to the field of artificial intelligence, and provides a method and a device for processing traffic information, wherein the method comprises the following steps: receiving first traffic information; displaying a first traffic card according to the first traffic information, wherein the first traffic card is a card containing part or all of the first traffic information; receiving a deletion operation; deleting the first traffic card in response to the deleting operation; receiving second traffic information; and responding to the deleting operation, and determining whether to display a second traffic card according to the matching condition of the second traffic information and a traffic information set, wherein the traffic information set comprises the first traffic information, and the second traffic card is a card containing part or all of the second traffic information. The method can reduce the interference of the traffic card to the user and simultaneously avoid the user from missing important traffic information.

Description

Method and device for processing traffic information
Technical Field
The application relates to the field of terminal artificial intelligence, in particular to a method and a device for processing traffic information.
Background
The traffic information is information generated by a user during the use of the vehicle, for example, when the user purchases a train ticket, the user may receive a ticket booking short message and a ticket issuing short message, and the information contained in the ticket booking short message and the ticket issuing short message is traffic information. Some terminal devices analyze the traffic information from the short message, and generate a card (i.e. a traffic card) containing the traffic information to be displayed on a screen, so that a user can intuitively read the traffic information, and the user experience is improved.
In some cases, the user may receive a plurality of short messages, the terminal device may parse each short message and display a plurality of traffic cards on the screen, which may cause the user to receive interference, however, directly closing the traffic card function may cause the user to miss some important information, so how to avoid the user missing important information while reducing the interference of the traffic card to the user is a problem that needs to be solved currently.
Disclosure of Invention
The embodiment of the application provides a method and a device for processing traffic information, which can reduce the interference of traffic cards to users and simultaneously avoid users from missing important traffic information.
In a first aspect, there is provided a method of processing traffic information, comprising: receiving first traffic information; displaying a first traffic card according to the first traffic information, wherein the first traffic card is a card containing part or all of the first traffic information; receiving a deletion operation; deleting the first traffic card in response to the deleting operation; receiving second traffic information; determining whether to display a second traffic card according to the matching condition of the second traffic information and a traffic information set, wherein the traffic information set comprises the first traffic information, the second traffic card is a card containing part or all of the second traffic information, and the second traffic card is displayed when the matching of the second traffic information and each traffic information in the traffic information set fails; or when the second traffic information is successfully matched with the third traffic information in the traffic information set, and when the second traffic information and the third traffic information do not belong to the same type of information, displaying the second traffic card; or when the second traffic information is successfully matched with the third traffic information in the traffic information set, and when the second traffic information and the third traffic information belong to the same type of information, determining that the second traffic card is not displayed.
The above method may be performed by the terminal device or a processor in the terminal device. When the user performs the deletion operation, it is indicated that the user wants to reduce the number of traffic cards displayed, and the terminal device may start the no-disturbance mode based on the deletion operation, that is, the terminal device matches the second traffic information, and determines whether to display the second traffic information based on the matching result. If the matching of the second traffic information and each traffic information in the traffic information set fails, indicating that the second traffic information and each traffic information in the traffic information set correspond to different vehicles, wherein the second traffic information possibly contains important traffic information and needs to be displayed to the user through a second traffic card; if the second traffic information and the third traffic information are successfully matched, the fact that the second traffic information and the third traffic information correspond to the same traffic means is indicated, at the moment, the terminal equipment can continuously judge whether the second traffic information and the third traffic information belong to the same type of information, if the second traffic information and the third traffic information do not belong to the same type of information, the second traffic information possibly contains important traffic information, and the terminal equipment can display the second traffic information to a user through a second traffic card so as to avoid the user missing the important traffic information; if the second traffic information and the third traffic information belong to the same type of information, which means that similar traffic information (third traffic information) is already displayed to the user before the second traffic information is received, the terminal device may not display the second traffic card, thereby reducing the interference of the traffic card to the user.
In one implementation, the failure of matching the second traffic information with each traffic information in the traffic information set includes: the second traffic information is identified differently from the identification of each traffic information in the traffic information set.
In one implementation, the successful matching of the second traffic information with the third traffic information in the traffic information set includes: the identification of the second traffic information is the same as the identification in the third traffic information.
In one implementation manner, the identifiers include a main identifier and an auxiliary identifier, the main identifier is an identifier which is matched preferentially when the second traffic information is matched, and the auxiliary identifier is an identifier which is matched continuously after the main identifier is matched successfully.
The contents contained in different traffic information are different, but some of the contents are common to all traffic information, such as the number of vehicles, departure date, departure time, departure place and destination, and the contents common to all traffic information can be preferentially matched as the main identifier. The auxiliary identifier can be content shared by part of traffic information, such as a seat number, and can be matched continuously after the main identifier is successfully matched, so that the matching accuracy of the second traffic information is improved.
In one implementation, before the receiving the second traffic information, the method further includes: receiving a restarting operation, wherein the restarting operation is used for restarting the short message analysis module; the receiving the second traffic information includes: and receiving the second traffic information from the short message analysis module, wherein the second traffic information is traffic information analyzed by the short message analysis module from the short message received before restarting.
The short message parsing module usually performs an initialization operation after restarting (such as restarting the terminal device), that is, parses all the short messages stored in the terminal device. In the prior art, after restarting, the traffic information analyzed by the short message analysis module is transmitted to the card processing module and the analyzed traffic information is transmitted to the card module, and the card module generates a traffic card based on the received traffic information. However, the traffic information analyzed by the short message analysis module after restarting may be old traffic information (such as traffic information already displayed in the traffic card before restarting the short message analysis module), and the card module generates a card containing the old traffic information and displays the card to the user, which may cause interference to the user. In this embodiment, the traffic information analyzed by the short message analysis module after restarting is not transmitted to the card module, but is transmitted to the matching module (module for matching the first traffic information and the second traffic information), the matching module determines whether the traffic information (such as the second traffic information) received from the short message analysis module is old traffic information, if the second traffic information is old traffic information, the second traffic information is necessarily successfully matched with one traffic information in the traffic information set, and the second traffic information is the same as the traffic information in type, and the matching module does not transmit the second traffic information to the card module, thereby avoiding interference caused by the terminal device displaying the card containing the old traffic information again after restarting the short message analysis module.
In one implementation, the same type of information includes: ticket purchase type information, change type information, refund type information, authentication type information or reminding type information.
In a second aspect, there is provided an apparatus for processing traffic information, comprising means for performing any one of the methods of the first aspect. The device can be a terminal device or a chip in the terminal device. The apparatus may include an input unit and a processing unit.
When the apparatus is a terminal device, the processing unit may be a processor, and the input unit may be a communication interface; the terminal device may further comprise a memory for storing computer program code which, when executed by the processor, causes the terminal device to perform any of the methods of the first aspect.
When the device is a chip in the terminal equipment, the processing unit may be a logic processing unit inside the chip, and the input unit may be an output interface, a pin, a circuit, or the like; the chip may also include memory, which may be memory within the chip (e.g., registers, caches, etc.), or memory external to the chip (e.g., read-only memory, random access memory, etc.); the memory is for storing computer program code which, when executed by the processor, causes the chip to perform any of the methods of the first aspect.
In a third aspect, there is provided a computer readable storage medium storing computer program code which, when run by an apparatus for processing traffic information, causes the apparatus to perform any one of the methods of the first aspect.
In a fourth aspect, there is provided a computer program product comprising: computer program code which, when run by an apparatus for processing traffic information, causes the apparatus to perform any one of the methods of the first aspect.
Drawings
FIG. 1 is a schematic diagram of a hardware configuration of an apparatus suitable for use with the present application;
FIG. 2 is a schematic diagram of a software architecture suitable for use with the apparatus of the present application;
FIG. 3 is a schematic illustration of a traffic card provided by the present application;
FIG. 4 is a schematic diagram of a delete operation provided by the present application;
FIG. 5 is a schematic illustration of an interface after closing a traffic card in accordance with the present application;
FIG. 6 is a schematic diagram of an application scenario suitable for use with the present application;
FIG. 7 is a schematic diagram of a method of processing traffic information provided by the present application;
FIG. 8 is a schematic diagram of a method of matching second traffic information provided by the present application;
FIG. 9 is a schematic diagram of another method of processing traffic information provided by the present application;
FIG. 10 is a schematic diagram of an interface after processing traffic information according to the present application;
fig. 11 is a schematic diagram of another interface after processing traffic information according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 shows a hardware configuration of an apparatus suitable for use in the present application. The apparatus 100 may be any of a cell phone, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (mobile personal computer, UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR) device, a Virtual Reality (VR) device, an artificial intelligence (artificial intelligence, AI) device, a wearable device, a vehicle-mounted device, a smart home device, or a smart city device. The embodiment of the present application is not limited in any way to the specific type of device 100.
The apparatus 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
The configuration shown in fig. 1 does not constitute a specific limitation on the apparatus 100. In other embodiments of the application, the apparatus 100 may include more or fewer components than those shown in FIG. 1, or the apparatus 100 may include a combination of some of the components shown in FIG. 1, or the apparatus 100 may include sub-components of some of the components shown in FIG. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units. For example, the processor 110 may include at least one of the following processing units: application processors (application processor, AP), modem processors, graphics processors (graphics processing unit, GPU), image signal processors (image signal processor, ISP), controllers, video codecs, digital signal processors (digital signal processor, DSP), baseband processors, neural-Network Processors (NPU). The different processing units may be separate devices or integrated devices.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. For example, the processor 110 may include at least one of the following interfaces: inter-integrated circuit, I2C) interfaces, inter-integrated circuit audio (inter-integrated circuit sound, I2S) interfaces, pulse code modulation (pulse code modulation, PCM) interfaces, universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interfaces, mobile industry processor interfaces (mobile industry processor interface, MIPI), general-purpose input/output (GPIO) interfaces, SIM interfaces, USB interfaces.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may couple the touch sensor 180K through an I2C interface, causing the processor 110 to communicate with the touch sensor 180K through an I2C bus interface, implementing the touch functionality of the device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 with peripheral devices such as the display 194 and camera 193. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing function of apparatus 100. Processor 110 and display 194 communicate via a DSI interface to implement the display functions of apparatus 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal interface as well as a data signal interface. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, and the sensor module 180. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, or a MIPI interface.
The USB interface 130 is an interface conforming to the USB standard specification, and may be, for example, a Mini (Mini) USB interface, a Micro (Micro) USB interface, or a C-type USB (USB Type C) interface. The USB interface 130 may be used to connect a charger to charge the device 100, to transfer data between the device 100 and a peripheral device, and to connect a headset to play audio through the headset. USB interface 130 may also be used to connect other devices 100, such as AR equipment.
The connection relationships between the modules shown in fig. 1 are merely illustrative, and do not constitute a limitation on the connection relationships between the modules of the apparatus 100. Alternatively, the modules of the apparatus 100 may be combined by using a plurality of connection manners in the foregoing embodiments.
The charge management module 140 is used to receive power from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive the current of the wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive electromagnetic waves (current path shown in dashed lines) through the wireless charging coil of the device 100. The charging management module 140 may also provide power to the device 100 through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle times, and battery state of health (e.g., leakage, impedance). Alternatively, the power management module 141 may be provided in the processor 110, or the power management module 141 and the charge management module 140 may be provided in the same device.
The wireless communication function of the apparatus 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the apparatus 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication applied on the device 100, such as at least one of the following: second generation (2) th generation, 2G) mobile communication solutions, third generation (3 th generation, 3G) mobile communication solution, fourth generation (4 th generation, 5G) mobile communication solution, fifth generation (5 th generation, 5G) mobile communication solution. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering and amplifying the received electromagnetic waves, and then transmit the electromagnetic waves to a modem processor for demodulation. The mobile communication module 150 may further amplify the signal modulated by the modem processor, and the amplified signal is converted into electromagnetic waves by the antenna 1 and radiated. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through audio devices (e.g., speaker 170A, receiver 170B) or displays images or video through display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
Similar to the mobile communication module 150, the wireless communication module 160 may also provide wireless communication solutions applied on the device 100, such as at least one of the following: wireless local area network (wireless local area networks, WLAN), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication (near field communication, NFC), infrared (IR). The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate and amplify it, and convert the signal into electromagnetic waves to radiate via the antenna 2.
In some embodiments, the antenna 1 of the apparatus 100 is coupled to the mobile communication module 150 and the antenna 2 of the apparatus 100 is coupled to the wireless communication module 160 so that the apparatus 100 can communicate with a network and other devices through wireless communication technology. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The device 100 may implement display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 may be used to display images or video. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini light-emitting diode (Mini LED), a Micro light-emitting diode (Micro LED), a Micro OLED (Micro OLED), or a quantum dot LED (quantum dot light emitting diodes, QLED). In some embodiments, the apparatus 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The apparatus 100 may implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. The ISP can carry out algorithm optimization on noise, brightness and color of the image, and can optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into a standard Red Green Blue (RGB), YUV, etc. format image signal. In some embodiments, the apparatus 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the apparatus 100 selects a frequency bin, a digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The apparatus 100 may support one or more video codecs. In this way, the apparatus 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, and MPEG4.
The NPU is a processor which refers to the biological neural network structure, for example, refers to the transmission mode among human brain neurons to rapidly process input information, and can also be continuously self-learned. Intelligent awareness and other functions of the device 100 may be implemented by the NPU, for example: image recognition, face recognition, speech recognition, and text understanding.
The external memory interface 120 may be used to connect an external memory card, such as a Secure Digital (SD) card, to implement the memory capability of the expansion device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. Wherein the storage program area may store application programs required for at least one function (e.g., a sound playing function and an image playing function) of the operating system. The storage data area may store data (e.g., audio data and phonebooks) created during use of the device 100. Further, the internal memory 121 may include a high-speed random access memory, and may also include a nonvolatile memory such as: at least one disk storage device, a flash memory device, and a universal flash memory (universal flash storage, UFS), etc. The processor 110 performs various processing methods of the apparatus 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The device 100 may implement audio functions, such as music playing and recording, through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like.
The audio module 170 is used to convert digital audio information into an analog audio signal output, and may also be used to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a horn, is used to convert audio electrical signals into sound signals. The device 100 may listen to music or hands-free conversation through the speaker 170A.
A receiver 170B, also referred to as an earpiece, converts the audio electrical signal into a sound signal. When a user uses the device 100 to answer a telephone call or voice message, the user can answer the voice by placing the receiver 170B close to the ear.
Microphone 170C, also known as a microphone or microphone, is used to convert sound signals into electrical signals. When a user makes a call or transmits voice information, a sound signal may be input to the microphone 170C by sounding near the microphone 170C. The apparatus 100 may be provided with at least one microphone 170C. In other embodiments, the apparatus 100 may be provided with two microphones 170C to achieve a noise reduction function. In other embodiments, the device 100 may also be provided with three, four or more microphones 170C to perform the functions of identifying the source of sound and directing the recording. The processor 110 may process the electrical signal output by the microphone 170C, for example, the audio module 170 and the wireless communication module 160 may be coupled through a PCM interface, and after the microphone 170C converts the environmental sound into an electrical signal (such as a PCM signal), the electrical signal is transmitted to the processor 110 through the PCM interface; the electrical signal is subjected to volume analysis and frequency analysis from the processor 110 to determine the volume and frequency of the ambient sound.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile device 100 platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A may be of various types, such as a resistive pressure sensor, an inductive pressure sensor, or a capacitive pressure sensor. The capacitive pressure sensor may be a device comprising at least two parallel plates with conductive material, and when a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes, and the device 100 determines the strength of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the apparatus 100 detects the touch operation according to the pressure sensor 180A. The device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon; and executing the instruction of newly creating the short message when the touch operation with the touch operation intensity being larger than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the apparatus 100. In some embodiments, the angular velocity of device 100 about three axes (i.e., the x-axis, the y-axis, and the z-axis) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the shake of the apparatus 100, calculates the distance to be compensated for by the lens module according to the angle, and allows the lens to counteract the shake of the apparatus 100 by the reverse motion, thereby realizing anti-shake. The gyro sensor 180B can also be used for scenes such as navigation and motion sensing games.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, the device 100 calculates altitude from barometric pressure values measured by the barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the device 100 is a flip-top machine, the device 100 may detect the opening and closing of the flip-top according to the magnetic sensor 180D. The device 100 can set the characteristics of automatic unlocking of the flip cover according to the detected opening and closing state of the leather sheath or the detected opening and closing state of the flip cover.
The acceleration sensor 180E can detect the magnitude of acceleration of the device 100 in various directions (typically the x-axis, y-axis, and z-axis). The magnitude and direction of gravity can be detected when the device 100 is stationary. The acceleration sensor 180E may also be used to recognize the gesture of the apparatus 100 as an input parameter for applications such as landscape switching and pedometer.
The distance sensor 180F is used to measure a distance. The device 100 may measure distance by infrared or laser. In some embodiments, for example, in a shooting scene, the apparatus 100 may range using the distance sensor 180F to achieve fast focusing.
The proximity light sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, for example, a photodiode. The LED may be an infrared LED. The device 100 emits infrared light outwards through the LED. The device 100 uses a photodiode to detect infrared reflected light from nearby objects. When reflected light is detected, the apparatus 100 may determine that an object is present nearby. When no reflected light is detected, the apparatus 100 may determine that there is no object nearby. The device 100 can use the proximity light sensor 180G to detect whether the user is holding the device 100 close to the ear for talking, so as to automatically extinguish the screen for power saving. The proximity light sensor 180G may also be used for automatic unlocking and automatic screen locking in holster mode or pocket mode.
The ambient light sensor 180L is used to sense ambient light level. The device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The device 100 can utilize the collected fingerprint characteristics to realize the functions of unlocking, accessing an application lock, photographing, answering an incoming call and the like.
The temperature sensor 180J is for detecting temperature. In some embodiments, the apparatus 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, apparatus 100 performs a reduction in performance of a processor located in the vicinity of temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the device 100 heats the battery 142 to avoid low temperatures causing the device 100 to shut down abnormally. In other embodiments, when the temperature is below a further threshold, the device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, also referred to as a touch device. The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a touch screen. The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor 180K may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the device 100 and at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 180M, so as to implement a heart rate detection function.
The keys 190 include a power-on key and an volume key. The keys 190 may be mechanical keys or touch keys. The device 100 may receive a key input signal and implement a function associated with the case input signal.
The motor 191 may generate vibration. The motor 191 may be used for incoming call alerting as well as for touch feedback. The motor 191 may generate different vibration feedback effects for touch operations acting on different applications. The motor 191 may also produce different vibration feedback effects for touch operations acting on different areas of the display screen 194. Different application scenarios (e.g., time alert, receipt message, alarm clock, and game) may correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, which may be used to indicate a change in state of charge and charge, or may be used to indicate a message, missed call, and notification.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195 to make contact with the apparatus 100, or may be removed from the SIM card interface 195 to make separation from the apparatus 100. The device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The same SIM card interface 195 may simultaneously insert multiple cards, which may be of the same type or of different types. The SIM card interface 195 may also be compatible with external memory cards. The device 100 interacts with the network through the SIM card to perform functions such as talking and data communication. In some embodiments, the device 100 employs an embedded SIM (eSIM) card, which may be embedded in the device 100 and not separable from the device 100.
The hardware system of the apparatus 100 is described in detail above, and the software system of the apparatus 100 is described below. The software system may employ a layered architecture, an event driven architecture, a microkernel architecture, a micro-service architecture, or a cloud architecture, and embodiments of the present application illustratively describe the software system of the apparatus 100.
As shown in fig. 2, the software system using the hierarchical architecture is divided into several layers, each of which has a clear role and division. The layers communicate with each other through a software interface. In some embodiments, the software system may be divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include applications such as short message Application (APP), short message parsing module, matching module, and card module.
The short message APP is used for processing the short message, for example, the short message APP can read, store, edit and delete the short message.
The short message analysis module is used for extracting key information in the short message for the matching module to use, for example, the short message stored in the short message APP is "order: EF05763485, you have purchased for 6 months and 23 days Hong Mei-Wang niu pier G6716 Alice02 vehicle has no seats, hong Mei, and opening No. 3512:03. The short message analysis module can extract traffic information of G6716, 23 days of 6 months, 12:03, hong Mei and cattle, or extract traffic information of G6716, 02 cars without seats, 23 days of 6 months, 12:03, hong Mei and cattle, alice. The specific content extracted by the short message analysis module can be determined by a preset extraction rule, and the extraction rule is not limited by the application.
The matching module is used for processing the traffic information to be displayed and determining whether the traffic information to be displayed needs to be displayed to a user through the traffic card. The workflow of the matching module will be described in detail below.
The card module is used for generating a traffic card according to the indication of the matching module, for example, when the matching module determines that traffic information is displayed, the card module can acquire the traffic information from the matching module and generate a card containing the traffic information.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer may include some predefined functions.
For example, the application framework layer includes a window manager, a content provider, a view system, a telephony manager, a resource manager, and a notification manager.
The window manager is used for managing window programs. The window manager may obtain the display screen size, determine if there are status bars, lock screens, and intercept screens.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, and phonebooks.
The view system includes visual controls, such as controls to display text and controls to display pictures. The view system may be used to build applications. The display interface may be composed of one or more views, for example, a display interface including a text notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide communication functions of the device 100, such as management of call status (on or off).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, and video files.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as a notification manager, is used for download completion notification and message alerting. The notification manager may also manage notifications that appear in the system top status bar in the form of charts or scroll bar text, such as notifications for applications running in the background. The notification manager may also manage notifications that appear on the screen in the form of dialog windows, such as prompting text messages in status bars, sounding prompts, vibrating electronic devices, and flashing lights.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing functions such as management of object life cycle, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules, such as: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES) and 2D graphics engines (e.g., SGL).
The surface manager is used to manage the display subsystem and provides a fusion of the 2D and 3D layers for the plurality of applications.
The media library supports playback and recording of multiple audio formats, playback and recording of multiple video formats, and still image files. The media library may support a variety of audio and video coding formats such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
Three-dimensional graphics processing libraries may be used to implement three-dimensional graphics drawing, image rendering, compositing, and layer processing.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The kernel layer at least comprises a display driver and a communication module driver.
It should be understood that the hardware structures and software architectures shown in fig. 1 and 2 are merely exemplary illustrations of the apparatus 100, and are not limiting on the hardware and software of the apparatus 100, and that the apparatus 100 may be implemented by other types of hardware structures and software architectures.
The workflow of the software system and hardware system of the apparatus 100 is illustrated below in connection with a card delete scenario.
After the device 100 receives the short message, the processor 110 operates the short message analysis module to analyze the short message, and obtains traffic information from the short message, and then the processor 110 operates the card module to display a traffic card containing the traffic information on the screen 194, where the traffic card contains some or all of the traffic information.
For example, the short message received by the device 100 is "[ successful booking short message 1 ] Hong Mei-expected cattle pier G6716 train tickets reserved by you, ticket number EF05763485 is taken, the bus taking time is estimated to be 12:03 on day 6 23, traffic information extracted from the short message by the short message analysis module is" EF05763485, G6716, day 6 23, 12:03, hong Mei, expected cattle pier ", and then the card module generates the traffic card shown in fig. 3 based on the traffic information.
After the user reads the traffic card, the traffic card may be deleted by a delete operation (a left swipe operation as shown in fig. 4).
During the deletion operation, when the user performs a touch operation on the touch sensor 180K, a corresponding hardware interrupt is sent to the operating system layer, and the operating system layer processes the touch operation into an interaction event, which includes, for example, information such as touch coordinates and a time stamp of the touch operation; subsequently, the operating system layer identifies the control corresponding to the interaction event and notifies an Application (APP) corresponding to the control. When the touch operation is a deletion operation and the control is a control of the card module, the control of the card module calls the display driver through the API according to the interaction event, and then the display screen 194 is controlled to close the traffic card. After the traffic card is closed, the interface of the device 100 is shown in FIG. 5.
In some cases, the user receives a plurality of similar messages, and if not processed, the device 100 ejects a plurality of traffic cards, which causes interference to the user.
For example, when a user subscribes to a ticket successfully (i.e., successfully locks the ticket but does not complete payment), the ticket vending system may send a ticket booking success message to the user; when the payment of the user is successful, the ticket vending system sends a ticket purchasing success short message to the user; when the ticket is issued, the ticket vending system sends a ticket issuing success message to the user.
Examples of the three messages are as follows:
[ booking success message 1 ] Hong Mei-book block G6716 train tickets reserved by you, ticket number EF05763485 is fetched, and the train is launched in 12:03 on 23 days of 6 months, so that the riding time is noted.
Order form [ successful ticket purchase message 1 ]: EF05763485, you have purchased for 6 months and 23 days Hong Mei-Wang niu pier G6716 Alice02 vehicle has no seats, hong Mei, and opening No. 3512:03.
[ successful ticketing SMS 1 ] your ]! Your reserved train ticket reserved cell phone number 189 has been successful in drawing the ticket: 12306 ticket number: EF05763485, number of passes: g6716, departure time: 2022-06-23 12:03:00, departure station: hong Mei, arrival station: cattle inspection pier, passengers: alice please take the passenger certificate for traveling.
Therefore, the three short messages are received at a short time interval and contain similar traffic information, and if the short messages are not processed, the device 100 ejects a plurality of traffic cards with similar contents in a short time, which causes interference to users.
As shown in fig. 6, after the user deletes the "ticket booking success sms 1", the device 100 receives the "ticket booking success sms 1" and the "ticket drawing success sms 1" successively, and the device 100 ejects two traffic cards with similar contents in a short time, which causes interference to the user.
The method for processing traffic information provided by the present application will be described in detail below by taking the device 100 as an example of a mobile phone. As shown in fig. 7, the method includes the following.
S710, receiving first traffic information.
The first traffic information may be traffic information analyzed from a short message or traffic information analyzed from an APP notification message, and the specific receiving manner of the first traffic information is not limited in the present application.
The first traffic information may be information related to a train, or information related to an airplane or an automobile, and the present application is not limited to a vehicle related to the first traffic information. The method for processing traffic information provided by the application is described below by taking the short message and the traffic information related to the train as examples, and the method is not to be interpreted as limiting the application scenario of the application.
For example, the short message APP receives the above-mentioned [ successful ticket booking short message 1 ], the short message analysis module obtains the [ successful ticket booking short message 1 ] from the short message APP, and analyzes the [ successful ticket booking short message 1 ], the purpose of analysis is to obtain key information, and analysis rules can be set by a mobile phone manufacturer, and the application does not limit specific analysis rules.
The short message analysis module can analyze ticket number, number of cars, departure date, departure time, departure place, destination, seat number, passengers and other key information (such as ticket buying, ticket drawing, ticket changing, ticket returning and the like) from the short message.
Taking the short message analysis module to analyze the short message 1 with successful ticket booking as an example, the short message analysis module can analyze EF05763485, G6716 and 23 days of 6 months and 12:03, hong Mei from the short message 1 with successful ticket booking, and the analyzed information can be called first traffic information.
Because the previous user does not execute the operation of deleting the traffic card, the mobile phone defaults that the user needs to display all traffic information, therefore, the short message analysis module can directly send the first traffic information to the card module, and the card module executes the step of displaying the traffic card.
S720, displaying a first traffic card according to the first traffic information, wherein the first traffic card is a card containing part or all of the first traffic information.
After the card module obtains the first traffic information, a first traffic card may be generated according to a preset rule, for example, the preset rule is to generate a first traffic card including a number of vehicles, a departure date, a departure time, a departure place, a destination and a seat number, and the first traffic card generated by the card generation module may be a card shown in fig. 3.
The first traffic card generated by the card module may also contain more information or less information than the card shown in fig. 3, and the specific content of the first traffic card is not limited in the present application. In addition, the display position of the traffic card is not limited in the present application, for example, the first traffic card may be displayed on the upper part of the mobile phone screen as shown in fig. 3, or may be displayed on the lower part or the middle part of the mobile phone screen. For brevity, the cell phone is not shown further below when other traffic cards are shown.
S730, receiving a deleting operation.
The deleting operation may be an up-stroke operation shown in fig. 5, a left-stroke or right-stroke operation, a long press operation, or other operations, and the present application is not limited to the operation of deleting the first traffic card.
And S740, deleting the first traffic card in response to the deleting operation.
And after receiving the deleting operation of the user, the mobile phone closes the first traffic card displayed on the screen, thereby completing the deleting of the first traffic card.
The deleting operation is equivalent to a triggering information, and triggers the mobile phone to start the no-disturbance mode of the traffic card, namely, the matching processing is carried out on the subsequently received traffic information, and whether the subsequently received traffic information is displayed or not is determined.
S750, receiving second traffic information.
After the first traffic card is deleted, the mobile phone may continuously receive the short message or the notification message sent by the ticket vending system, and then the mobile phone may analyze the newly received short message or notification message to extract the second traffic information.
S760, in response to the deleting operation, determining whether to display a second traffic card according to the matching condition of the second traffic information and the traffic information set, wherein the traffic information set comprises the first traffic information, the second traffic card is a card containing part or all of the information in the second traffic information,
when the second traffic information fails to be matched with each traffic information in the traffic information set, displaying a second traffic card; or alternatively, the process may be performed,
displaying a second traffic card when the second traffic information is successfully matched with the third traffic information in the traffic information set and when the second traffic information and the third traffic information do not belong to the same type of information; or alternatively, the process may be performed,
when the second traffic information is successfully matched with the third traffic information in the traffic information set, and when the second traffic information and the third traffic information belong to the same type of information, it is determined that the second traffic card is not displayed.
The second traffic information is analyzed from the newly received short message or notification message, and when the second traffic information is received, the mobile phone needs to determine whether the second traffic information is displayed through the second traffic card because the no-disturbance mode triggered by the deleting operation is started.
The mobile phone can determine whether to display the second traffic card according to the matching condition of the second traffic information and the traffic information set, wherein the traffic information set is a set of all or part of traffic information received before the deleting operation,
if the matching of the second traffic information and each traffic information in the traffic information set fails, it is indicated that the second traffic information and each traffic information in the traffic information set correspond to different train numbers, and the second traffic information may contain important traffic information and needs to be displayed to the user through a second traffic card.
If the second traffic information and the third traffic information are successfully matched, the fact that the second traffic information and the third traffic information correspond to the same train number is indicated, at the moment, the mobile phone can continuously judge whether the second traffic information and the third traffic information belong to the same type of information, if the second traffic information and the third traffic information do not belong to the same type of information, the second traffic information possibly contains important traffic information, and the mobile phone can display the second traffic information to a user through a second traffic card so as to prevent the user from missing the important traffic information; if the second traffic information and the third traffic information belong to the same type of information, which indicates that similar traffic information (third traffic information) is already displayed to the user before the second traffic information is received, the mobile phone can not display the second traffic card, so that the interference of the traffic card to the user is reduced.
S760 is explained below in conjunction with several examples.
The second traffic information is "EF05763485, G6716, 02 car no seat, 6 month 23 day, 12:03, hong Mei, hope pier, alice" which is parsed from the "ticket purchase success message 1", and the third traffic information is "EF05763485, G6716,6 month 23 day, 12:03, hong Mei, hope pier" which is parsed from the "ticket purchase success message 1". Whether the second traffic information matches the third traffic information may be determined by whether the identifications of the two traffic information are the same.
The matching module may determine an Identifier (ID) of the traffic information according to the rule of "number of vehicles, departure date, departure time, departure place and destination", and then the ID of the second traffic information is "G6716, day 23 of 6 months, 12:03, hong Mei, and the ID of the third traffic information is" G6716, day 23 of 6 months, 12:03, hong Mei, and the expected pier ", so it can be seen that the ID of the second traffic information is identical to the ID of the third traffic information, and the matching module may determine that the second traffic information is successfully matched with the third traffic information.
Then, for the second traffic information that is successfully matched, the matching module also needs to determine whether the second traffic information and the third traffic information belong to the same type of information. The second traffic information and the third traffic information both include order numbers, which indicate that the two traffic information belong to ticket purchasing information, and the matching module may determine not to display the second traffic information, i.e., not to display the second traffic card, in order to avoid the user being disturbed by the similar information because the mobile phone has displayed the third traffic information (i.e., the first traffic information).
The mobile phone receives the message 1, the content of which is as follows:
your good-! Your reservation of train ticket (Hong Mei on day 23 of 6 months-Wang niu pier G6716 Alice02 car has no seat, hong Mei 12:03 opening) changed successfully.
The traffic information 'EF 05763485, G6716, 02 vehicle is out of seat, 23 days of 6 months, 12:03, hong Mei, cattle pier looking, and sign changing success' analyzed by the short message analysis module from the 'sign changing success short message 1' can be called third traffic information, and the matching module determines according to the rule of 'the number, departure date, departure time, departure place and destination of the traffic means': the third traffic information has ID of "G6716, 23 days of 6 months, 12:03, hong Mei, wang niu dun". The ID of the second traffic information is 'G6716, 23 days of 6 months, 12:03, hong Mei, and the cattle pier', so that the ID of the second traffic information is identical to the ID of the third traffic information, and the matching module can determine that the second traffic information and the third traffic information are successfully matched.
Then, for the second traffic information that is successfully matched, the matching module also needs to determine whether the second traffic information and the third traffic information belong to the same type of information. The second traffic information and the third traffic information both include order numbers, but the third traffic information includes "sign-change success", which means that the third traffic information belongs to sign-change type information, and the matching module can determine to display the second traffic information, that is, display the second traffic card, with the second traffic information belonging to a different type of traffic information.
The mobile phone receives the message 2 of successful ticket purchase, the content of the message is as follows:
06 month 24 day 12:47 five mountain-Daying 8818 ticket purchasing success EK74781129, huang Bichun carriage 007.
The traffic information 'EK 74781129, 8818, 03 carriage 007 number, 24 days of 6 months, 12:47, five mountains, camping, ticket purchasing success' analyzed by the message analysis module from the [ ticket purchasing success message 2 ] can be called third traffic information, and the matching module determines according to the rule of 'the number of vehicles, departure date, departure time, departure place and destination': the third traffic information has an ID of "8818,6 month 24 days, 12:47, five mountains, camping". The ID of the second traffic information is "G6716, 23 months of 6, 12:03, hong Mei, and the ox pier", so that it can be seen that the ID of the second traffic information is different from the ID of the third traffic information, and the matching module can determine that the second traffic information fails to match with the third traffic information.
If the third traffic information is not the last traffic information matched with the second traffic information in the traffic information set, the matching module continuously matches the second traffic information with the traffic information which is not matched in the traffic information set; if the third traffic information is the last traffic information matched with the second traffic information in the traffic information set, the matching module can display the second traffic card when determining that the second traffic information fails to be matched with each traffic information in the traffic information set.
In the embodiments of the present application, the third traffic information refers to any one of the traffic information sets, and may be the first traffic information or one traffic information other than the first traffic information. The traffic information may be of a type preset by a user or a handset manufacturer, such as ticket purchase information, change information, ticket refund information, authentication information, or reminder information. The mobile phone can determine the type of the traffic information based on the key information in the traffic information, and the method for dividing the type of the traffic information and determining the type of the traffic information is not limited.
Further, "number of vehicles, departure date, departure time, departure place, and destination" are basic elements contained in each traffic information, and thus, the above three examples have these five basic elements as IDs of traffic information, some traffic information contains more elements, the above five basic elements may be taken as primary IDs, and some additional elements may be taken as secondary IDs in order to match the second traffic information more accurately.
As shown in FIG. 8, after receiving a new short message (e.g., [ ticket purchasing success short message 1 ]) the mobile phone operates a short message analysis module to analyze [ ticket purchasing success short message 1 ], so as to obtain second traffic information of EF05763485, G6716, 02 cars without seats, 6 months 23 days, 12:03, hong Mei, cattle inspection piers and Alice', and then the matching module constructs the main ID of the second traffic information of G6716,6 months 23 days, 12:03, hong Mei, cattle inspection piers and auxiliary ID of 02 cars without seats. The matching module firstly uses the main ID to match, if the main ID fails to match, the auxiliary ID is not matched any more, the matching module determines that the current matching of the second traffic information fails, and the matching module can continuously match the second traffic information with the rest traffic information in the traffic information set; if the main ID is successfully matched, continuing to match the auxiliary ID, if the auxiliary ID is successfully matched, determining that the current matching of the second traffic information is successful by the matching module, and if the auxiliary ID is failed to match, determining that the current matching of the second traffic information is failed by the matching module, and continuing to match the second traffic information and the rest traffic information in the traffic information set by the matching module.
The method shown in fig. 7 can also solve the problem of repeated display of the card caused by restarting the short message analysis module. The short message parsing module usually performs an initialization operation after restarting (such as restarting the terminal device), that is, parses all the short messages stored in the terminal device. In the prior art, after restarting, the traffic information analyzed by the short message analysis module is transmitted to the card processing module and the analyzed traffic information is transmitted to the card module, and the card module generates a traffic card based on the received traffic information.
However, the traffic information analyzed by the short message analysis module after restarting may be old traffic information (traffic information already displayed in the traffic card before restarting, such as the first traffic information), and the card module generates a card containing the old traffic information and displays the card to the user, which may cause interference to the user. In the method shown in fig. 7, the traffic information analyzed by the short message analysis module after restarting is not transmitted to the card module, but is transmitted to the matching module, the matching module matches the received traffic information (such as the second traffic information), if the second traffic information is old traffic information, the second traffic information is necessarily successfully matched with one traffic information in the traffic information set, the second traffic information is the same as the traffic information in type, and the matching module does not transmit the second traffic information to the card module, so that the interference of the card containing the old traffic information to the user caused by the fact that the mobile phone displays the card again after restarting the short message analysis module is avoided.
The method for processing traffic information provided by the present application is described below in connection with fig. 9 from the point of view of module interaction.
S901, the short message APP receives the old short message.
The old short message can be [ ticket booking success short message 1 ] or [ ticket purchasing success short message 1 ], or can be other short messages containing traffic information.
S902, the short message APP sends an old short message to a short message analysis module.
The short message analysis module can be an independent module or a sub-module of other modules (such as an intelligent capability module).
S903, the short message analysis module analyzes the old short message to obtain first traffic information.
For example, the old sms is [ booking success sms 1 ], and the first traffic information may be "EF05763485, G6716, day 23 of 6 months, 12:03, hong Mei, and the ox pier".
S904, the short message analysis module sends the first traffic information to the matching module.
S905, the matching module determines to display the first traffic information.
Because the current matching module does not receive the event corresponding to the operation of deleting the traffic card, the matching module determines not to start the no-disturbance mode, namely, determines to display each piece of received traffic information.
S906, the matching module sends first traffic information to the card module.
S907, the card module generates a first traffic card.
An example of a first traffic card is shown in fig. 3.
S908, the card module deletes the first traffic card in response to the deleting operation.
The delete operation is used to delete the first traffic card, and may be a sliding operation as shown in fig. 4, or may be another type of operation. And after the card module receives the event related to the deleting operation, deleting the first traffic card.
S909, the short message APP receives the new short message.
The new short message refers to the short message received after S901. When the old message is the message 1 with successful ticket booking, the new message can be the message 1 with successful ticket booking, the message 1 with successful ticket drawing or the message 2 with successful ticket booking, and other messages containing traffic information.
S910, the short message APP sends a new short message to the short message analysis module.
S911, the short message analysis module analyzes the new short message to obtain the second traffic information.
When the new message is [ successful ticket purchasing message 1 ], the second traffic information is EF05763485, G6716, 02 cars are unoccupied, 23 days of 6 months, 12:03, hong Mei, cattle inspection pier, alice.
When the new message is [ successful ticket purchase message 2 ], the second traffic information is 'EK 74781129, 8818, 03 carriage 007, 24 days 6 months, 12:47, five mountains, large camp, successful ticket purchase'.
S912, the short message analysis module sends second traffic information to the matching module.
And S913, the matching module responds to the deleting operation and determines whether the second traffic information is displayed according to the matching relation of the second traffic information.
For example, when the second traffic information is "EF05763485, G6716, 02 vehicle no seat, day 23 of 6 months, 12:03, hong Mei, hope pier, alice", the main ID of the second traffic information is "G6716, day 23 of 6 months, 12:03, hong Mei, hope pier", the main ID is the same as the main ID of the first traffic information, the matching module determines that the second traffic information successfully matches the first traffic information (the first traffic information does not have the auxiliary ID, and is regarded as the auxiliary ID successfully matches), the matching module determines that the second traffic information is not displayed, and the final result is shown in fig. 10.
For another example, when the second traffic information is "EK74781129, 8818, 03 car 007 No. 6 months 24 days, 12:47, five mountains, big camps, and successful ticket purchase", the main ID of the second traffic information is "8818,6 months 24 days, 12:47, five mountains, big camps", the main ID is different from the main ID of the first traffic information, the matching module determines that the second traffic information fails to match the first traffic information, and if the first traffic information is the last information in the traffic information set to match the second traffic information, the matching module determines to display the second traffic information.
S914, the matching module sends the second traffic information to the card module.
And when the matching module determines to display the second traffic information, the matching module sends the second traffic information to the card module.
The card module generates a second traffic card S915.
When the second traffic information is "EK74781129, 8818, 03 car 007 No. 6 month 24 day, 12:47, five mountain, camping, successful ticket purchase", the second traffic card is as shown in fig. 11.
The application also provides a computer program product which, when executed by a processor, implements the method of any of the method embodiments of the application.
The computer program product may be stored in a memory and eventually converted to an executable object file that can be executed by a processor through preprocessing, compiling, assembling, and linking.
The computer program product may also cure code in the chip. The application is not limited to the specific form of computer program product.
The application also provides a computer readable storage medium having stored thereon a computer program which when executed by a computer implements the method according to any of the method embodiments of the application. The computer program may be a high-level language program or an executable object program.
The computer readable storage medium may be volatile memory or nonvolatile memory, or may include both volatile memory and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), and direct memory bus RAM (DR RAM).
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working processes and technical effects of the apparatus and device described above may refer to corresponding processes and technical effects in the foregoing method embodiments, which are not described in detail herein.
In the several embodiments provided by the present application, the disclosed systems, devices, and methods may be implemented in other manners. For example, some features of the method embodiments described above may be omitted, or not performed. The above-described apparatus embodiments are merely illustrative, the division of units is merely a logical function division, and there may be additional divisions in actual implementation, and multiple units or components may be combined or integrated into another system. In addition, the coupling between the elements or the coupling between the elements may be direct or indirect, including electrical, mechanical, or other forms of connection.
It should be understood that, in various embodiments of the present application, the size of the sequence number of each process does not mean that the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
In addition, the terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is merely one association relationship describing the associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
In summary, the foregoing description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (9)

1. A method of processing traffic information, comprising:
receiving first traffic information;
displaying a first traffic card according to the first traffic information, wherein the first traffic card is a card containing part or all of the first traffic information;
receiving a deletion operation;
deleting the first traffic card in response to the deleting operation;
receiving second traffic information;
Determining whether to display a second traffic card according to the matching condition of the second traffic information and a traffic information set, wherein the traffic information set comprises the first traffic information, the second traffic card is a card containing part or all of the second traffic information,
displaying the second traffic card when the second traffic information fails to be matched with each traffic information in the traffic information set; or alternatively, the process may be performed,
displaying the second traffic card when the second traffic information is successfully matched with third traffic information in the traffic information set and when the second traffic information and the third traffic information do not belong to the same type of information; or alternatively, the process may be performed,
and when the second traffic information is successfully matched with third traffic information in the traffic information set, and when the second traffic information and the third traffic information belong to the same type of information, determining that the second traffic card is not displayed.
2. The method of claim 1, wherein the failure of the second traffic information to match each of the traffic information in the set of traffic information comprises:
The second traffic information is identified differently from the identification of each traffic information in the traffic information set.
3. The method of claim 1, wherein the second traffic information successfully matches a third traffic information in the set of traffic information, comprising:
the identification of the second traffic information is the same as the identification of the third traffic information.
4. A method according to claim 2 or 3, wherein the identifiers comprise a main identifier and an auxiliary identifier, the main identifier is an identifier which is matched preferentially when the second traffic information is matched, and the auxiliary identifier is an identifier which is matched continuously after the main identifier is matched successfully.
5. The method of claim 4, wherein the primary identification comprises a number of a vehicle, a departure date, a departure time, a departure place, and a destination, and the secondary identification comprises a seat number of the vehicle.
6. A method according to any one of claim 1 to 3, wherein,
before the receiving the second traffic information, the method further includes:
receiving a restarting operation, wherein the restarting operation is used for restarting the short message analysis module;
the receiving the second traffic information includes:
And receiving the second traffic information from the short message analysis module, wherein the second traffic information is traffic information analyzed by the short message analysis module from the short message received before restarting.
7. A method according to any one of claims 1 to 3, wherein the same type of information comprises:
ticket purchase type information, change type information, refund type information, authentication type information or reminding type information.
8. An apparatus for processing traffic information, comprising a processor and a memory, the processor and the memory being coupled, the memory being for storing a computer program which, when executed by the processor, causes the apparatus to perform the method of any one of claims 1 to 7.
9. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which when executed by a processor causes an apparatus comprising the processor to perform the method of any one of claims 1 to 7.
CN202210603487.7A 2022-05-30 2022-05-30 Method and device for processing traffic information Active CN116028534B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210603487.7A CN116028534B (en) 2022-05-30 2022-05-30 Method and device for processing traffic information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210603487.7A CN116028534B (en) 2022-05-30 2022-05-30 Method and device for processing traffic information

Publications (2)

Publication Number Publication Date
CN116028534A CN116028534A (en) 2023-04-28
CN116028534B true CN116028534B (en) 2023-10-13

Family

ID=86074903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210603487.7A Active CN116028534B (en) 2022-05-30 2022-05-30 Method and device for processing traffic information

Country Status (1)

Country Link
CN (1) CN116028534B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1983413A1 (en) * 2006-02-10 2008-10-22 Fujitsu Limited Information display device, information display method, and program
CN102314770A (en) * 2010-11-30 2012-01-11 上海博路信息技术有限公司 RFID (Radio Frequency Identification)-based traffic information management system
KR20130118837A (en) * 2013-05-08 2013-10-30 주식회사 엠디 Traffic card terminal with advertising display and advertising method by using traffic card terminal
CN104571813A (en) * 2014-12-12 2015-04-29 百度在线网络技术(北京)有限公司 Information displaying method and device
CN110852717A (en) * 2019-11-11 2020-02-28 青岛海信移动通信技术股份有限公司 Travel updating method and intelligent communication terminal
KR20200023142A (en) * 2018-08-28 2020-03-04 권순태 Information exchange system between a plurality of terminals.
WO2020261000A1 (en) * 2019-06-25 2020-12-30 International Business Machines Corporation Intelligent vehicle pass-by information sharing
CN112270243A (en) * 2020-04-15 2021-01-26 陈建 Intercepted image synthesis method and system based on intelligent traffic and cloud server
CN112861027A (en) * 2021-02-09 2021-05-28 青岛海信移动通信技术股份有限公司 Electronic device and information display method
CN113805988A (en) * 2021-08-12 2021-12-17 荣耀终端有限公司 Method and device for processing card
CN113810865A (en) * 2021-08-12 2021-12-17 荣耀终端有限公司 Method and device for carrying out flight reminding based on short message
CN113824842A (en) * 2021-08-12 2021-12-21 荣耀终端有限公司 Notification message display method and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1983413A1 (en) * 2006-02-10 2008-10-22 Fujitsu Limited Information display device, information display method, and program
CN102314770A (en) * 2010-11-30 2012-01-11 上海博路信息技术有限公司 RFID (Radio Frequency Identification)-based traffic information management system
KR20130118837A (en) * 2013-05-08 2013-10-30 주식회사 엠디 Traffic card terminal with advertising display and advertising method by using traffic card terminal
CN104571813A (en) * 2014-12-12 2015-04-29 百度在线网络技术(北京)有限公司 Information displaying method and device
KR20200023142A (en) * 2018-08-28 2020-03-04 권순태 Information exchange system between a plurality of terminals.
WO2020261000A1 (en) * 2019-06-25 2020-12-30 International Business Machines Corporation Intelligent vehicle pass-by information sharing
CN110852717A (en) * 2019-11-11 2020-02-28 青岛海信移动通信技术股份有限公司 Travel updating method and intelligent communication terminal
CN112270243A (en) * 2020-04-15 2021-01-26 陈建 Intercepted image synthesis method and system based on intelligent traffic and cloud server
CN112861027A (en) * 2021-02-09 2021-05-28 青岛海信移动通信技术股份有限公司 Electronic device and information display method
CN113805988A (en) * 2021-08-12 2021-12-17 荣耀终端有限公司 Method and device for processing card
CN113810865A (en) * 2021-08-12 2021-12-17 荣耀终端有限公司 Method and device for carrying out flight reminding based on short message
CN113824842A (en) * 2021-08-12 2021-12-21 荣耀终端有限公司 Notification message display method and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Android移动终端短信监控系统的设计与实现;樊大磊 等;《电信科学》;第30卷(第12期);88-96 *
Applications of voice processing to telecommunications;L. R. Rabiner;《in Proceedings of the IEEE》;第82卷(第2期);199-228 *
基于iOS的智能交通系统的设计与实现;潘东飞;《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》(第(2013)3期);C034-656 *

Also Published As

Publication number Publication date
CN116028534A (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN114467297B (en) Video call display method and related device applied to electronic equipment
CN110058777B (en) Method for starting shortcut function and electronic equipment
CN110138959B (en) Method for displaying prompt of human-computer interaction instruction and electronic equipment
CN110543287B (en) Screen display method and electronic equipment
CN110111101B (en) Electronic payment method and electronic device
CN114553814B (en) Method and device for processing push message
CN113641271B (en) Application window management method, terminal device and computer readable storage medium
CN113703894A (en) Display method and display device of notification message
CN116028534B (en) Method and device for processing traffic information
CN115134453A (en) Riding information display method and electronic equipment
CN116032942A (en) Method, device, equipment and storage medium for synchronizing cross-equipment navigation tasks
CN116305093A (en) Method for operating applet and electronic device
CN113869911A (en) Vehicle borrowing method, vehicle returning method, vehicle-mounted terminal and vehicle borrowing and returning system
CN113867851A (en) Electronic equipment operation guide information recording method, electronic equipment operation guide information acquisition method and terminal equipment
CN116027933B (en) Method and device for processing service information
CN116033341B (en) Method and device for triggering fence event
CN115686182B (en) Processing method of augmented reality video and electronic equipment
CN116048831B (en) Target signal processing method and electronic equipment
CN116991274B (en) Upper sliding effect exception handling method and electronic equipment
CN115495716B (en) Local authentication method and electronic equipment
CN113507406B (en) Message management method and related equipment
CN116095224B (en) Notification display method and terminal device
CN115016666B (en) Touch processing method, terminal equipment and storage medium
CN116028966A (en) Application display method, electronic equipment and storage medium
CN115883710A (en) Identification method and device for incoming call number

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant