CN106915314A - A kind of method and apparatus for switching broadcasting between multi-medium data and traffic information - Google Patents
A kind of method and apparatus for switching broadcasting between multi-medium data and traffic information Download PDFInfo
- Publication number
- CN106915314A CN106915314A CN201510993234.5A CN201510993234A CN106915314A CN 106915314 A CN106915314 A CN 106915314A CN 201510993234 A CN201510993234 A CN 201510993234A CN 106915314 A CN106915314 A CN 106915314A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- road speed
- setting
- traffic information
- medium data
- 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.)
- Granted
Links
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R16/00—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
- B60R16/02—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
- B60R16/023—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
- B60R16/0231—Circuits relating to the driving or the functioning of the vehicle
- B60R16/0232—Circuits relating to the driving or the functioning of the vehicle for measuring vehicle parameters and indicating critical, abnormal or dangerous conditions
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Mechanical Engineering (AREA)
- Navigation (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
A kind of method and apparatus the invention discloses broadcasting is switched between multi-medium data and traffic information, including:Vehicle-mounted multimedia equipment obtains the first current road speed of vehicle;When it is determined that first road speed is more than the first numerical value of setting, multi-medium data is played;It is determined that first road speed less than setting second value and according to first road speed running time be more than setting time length when, the multi-medium data that will playing switches to traffic information.Vehicle-mounted multimedia equipment can be that multi-medium data or traffic information are played in user's selection according to the road speed of vehicle, so that user obtains traffic information in time when congestion is compared in traffic, content various multi-medium data is listened to when traffic is more smooth, the flexible switching between multi-medium data and traffic information is have effectively achieved, and then lifts Consumer's Experience.
Description
Technical field
The present invention relates between technical field of data processing, more particularly to a kind of multi-medium data and traffic information
Switch the method and apparatus played.
Background technology
With the continuous improvement of people's living standard, automobile turns into the necessity in general public life.Often
The user of driving has so one custom:Music is listened in driving, or station broadcast is listened in driving, especially
It compares concern traffic information.
In actual life, the vehicle-mounted multimedia equipment that automobile passes through to configure is realized listening station broadcast or music
Purpose.But, in actual applications, otherwise music is listened in the user's typically selection for driving vehicle, otherwise choosing
Select and listen traffic information to broadcast, cannot flexibly switch therebetween.
As can be seen here, the mode for switching broadcasting between a kind of multi-medium data and traffic information is needed badly, for solving
Certainly vehicle-mounted multimedia equipment cannot realize that the two flexibly switches the problem played in the prior art.
The content of the invention
In view of this, the embodiment of the invention provides to switch between a kind of multi-medium data and traffic information and play
Method and apparatus, for solve in the prior art vehicle-mounted multimedia equipment cannot realize the two flexibly switching broadcast
The problem put.
A kind of method for switching broadcasting between multi-medium data and traffic information, including:
Vehicle-mounted multimedia equipment obtains the first current road speed of vehicle;
The vehicle-mounted multimedia equipment is played when it is determined that first road speed is more than the first numerical value of setting
Multi-medium data;
The vehicle-mounted multimedia equipment it is determined that first road speed less than setting second value and according to
When the running time of first road speed is more than setting time length, the multimedia that will playing
Data exchange is traffic information.
Alternatively, methods described also includes:
The vehicle-mounted multimedia equipment obtains the second current road speed of the vehicle again;
The vehicle-mounted multimedia equipment it is determined that second road speed more than it is described setting the first numerical value and
When running time according to second road speed is more than the setting time length, the road that will broadcasting
Condition information switches to broadcasting multi-medium data/other guide.
Alternatively, vehicle-mounted multimedia equipment obtains the first current road speed of vehicle, including:
Vehicle-mounted multimedia equipment obtains the velocity of rotation of the current engine of vehicle;
The vehicle-mounted multimedia equipment determines the current the first row speed of the vehicle according to the velocity of rotation
Degree.
Alternatively, the vehicle-mounted multimedia equipment is it is determined that first road speed is less than setting second value
And according to first road speed running time be more than setting time length when, described in playing
Multi-medium data switches to traffic information, including:
The vehicle-mounted multimedia equipment it is determined that first road speed less than setting second value and according to
When the running time of first road speed is more than setting time length, search in current driving location overlying
At least one radio signals of lid, wherein, the corresponding signal frequency of the different radio signals is different;
The vehicle-mounted multimedia equipment is according to the mapping relations between radio signals and program of radio station list, it is determined that handing over
The corresponding radio signals of energization platform;
The vehicle-mounted multimedia equipment is according to the radio signals for determining, the multimedia that will playing
Data exchange is the traffic information in broadcast traffic radio station.
Alternatively, methods described also includes:
The vehicle-mounted multimedia equipment receives the vehicle line repositioning instruction that user sends, wherein, it is described
It is what the user sent according to the traffic information of uppick that vehicle line repositions instruction;
The vehicle-mounted multimedia equipment repositions the current location included in instruction according to the travel route
With target location and the traffic information for getting, reposition from the current location and reach the target position
The navigation circuit put, and according to the navigation circuit for user is navigated.
A kind of equipment for switching broadcasting between multi-medium data and traffic information, including:
Acquiring unit, first road speed current for obtaining vehicle;
Broadcast unit, for when it is determined that first road speed is more than the first numerical value of setting, playing many matchmakers
Volume data;
Switch unit, for it is determined that first road speed is less than setting second value and according to described the
When the running time of one road speed is more than setting time length, the multi-medium data that will playing is cut
It is changed to traffic information.
Alternatively, the acquiring unit, is additionally operable to obtain the second current road speed of the vehicle again;
The switch unit, be additionally operable to it is determined that second road speed more than it is described setting the first numerical value and
When running time according to second road speed is more than the setting time length, the road that will broadcasting
Condition information switches to broadcasting multi-medium data/other guide.
Alternatively, the acquiring unit obtains the first current road speed of vehicle, including:
Obtain the velocity of rotation of the current engine of vehicle;
According to the velocity of rotation, the first current road speed of the vehicle is determined.
Alternatively, the switch unit it is determined that first road speed less than setting second value and according to
When the running time of first road speed is more than setting time length, the multimedia that will playing
Data exchange is traffic information, including:
It is determined that first road speed is less than setting second value and according to first road speed
When running time is more than setting time length, at least one radio station letter covered on current driving location is searched for
Number, wherein, the corresponding signal frequency of the different radio signals is different;
According to the mapping relations between radio signals and program of radio station list, the corresponding radio station letter of traffic radio is determined
Number;
According to the radio signals for determining, the multi-medium data that will playing switches to broadcast traffic
The traffic information in radio station.
Alternatively, the equipment also includes:Bit location is reset, wherein:
Described to reset bit location, the vehicle line for receiving user's transmission repositions instruction, wherein, institute
It is what the user sent according to the traffic information of uppick to state vehicle line and reposition instruction;
The current location and target location and acquisition included in instruction are repositioned according to the travel route
The traffic information for arriving, repositions the navigation circuit that the target location is reached from the current location, and press
According to the navigation circuit for user is navigated.
The present invention has the beneficial effect that:
Embodiment of the present invention vehicle-mounted multimedia equipment obtains the first current road speed of vehicle;It is determined that described
When first road speed is more than the first numerical value of setting, multi-medium data is played;It is determined that the first row speed
Degree is more than setting time length less than setting second value and according to the running time of first road speed
When, the multi-medium data that will playing switches to traffic information.Vehicle-mounted multimedia equipment can basis
The road speed of vehicle is that multi-medium data or traffic information are played in user's selection so that user is in traffic ratio
Traffic information is obtained in time when compared with congestion, content various many matchmakers are listened to when traffic is more smooth
Volume data, have effectively achieved the flexible switching between multi-medium data and traffic information, and then lift user
Experience.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, institute in being described to embodiment below
The accompanying drawing for needing to use is briefly introduced, it should be apparent that, drawings in the following description are only of the invention
Some embodiments, for one of ordinary skill in the art, are not paying the premise of creative labor
Under, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the side for switching broadcasting between a kind of multi-medium data provided in an embodiment of the present invention and traffic information
The schematic flow sheet of method;
Fig. 2 is to switch setting for broadcasting between a kind of multi-medium data provided in an embodiment of the present invention and traffic information
Standby structural representation;
Fig. 3 is to switch setting for broadcasting between a kind of multi-medium data provided in an embodiment of the present invention and traffic information
Standby structural representation.
Specific embodiment
In order to realize the purpose of the present invention, a kind of multi-medium data and traffic information are the embodiment of the invention provides
Between switch the method and apparatus of broadcasting, vehicle-mounted multimedia equipment obtains the first current road speed of vehicle;
When it is determined that first road speed is more than the first numerical value of setting, multi-medium data is played;It is determined that described
First road speed less than setting second value and according to first road speed running time more than setting
During length of fixing time, the multi-medium data that will playing switches to traffic information.Vehicle mounted multimedia sets
Standby can be that multi-medium data or traffic information are played in user's selection according to the road speed of vehicle so that use
Family obtains traffic information in time when congestion is compared in traffic, and content is listened to when traffic is more smooth
Various multi-medium data, have effectively achieved the flexible switching between multi-medium data and traffic information, enter
And lift Consumer's Experience.
It should be noted that traffic information described in the embodiment of the present invention can be the road conditions of station broadcast
The traffic information that information, or navigation equipment are provided, does not limit here.Assuming that being that navigation equipment is carried
The traffic information of confession, then navigation equipment can be vehicle-mounted multimedia equipment itself, or mobile terminal
Equipment, if mobile terminal device, vehicle-mounted multimedia equipment is set up with mobile terminal device communicate to connect in advance,
Here communication connection can be wired connection, or wireless connection, be not specifically limited here.
Each embodiment of the invention is described in further detail with reference to Figure of description.Obviously, institute
The embodiment of description is only a part of embodiment of the invention, rather than whole embodiments.Based on the present invention
In embodiment, it is all that those of ordinary skill in the art are obtained under the premise of creative work is not made
Other embodiments, belong to the scope of protection of the invention.
Fig. 1 is the side for switching broadcasting between a kind of multi-medium data provided in an embodiment of the present invention and traffic information
The schematic flow sheet of method.Methods described can be with as follows.
Step 101:Vehicle-mounted multimedia equipment obtains the first current road speed of vehicle.
In a step 101, vehicle-mounted multimedia equipment needs to obtain the current road speed of vehicle in real time.
Specifically, vehicle-mounted multimedia equipment obtains the velocity of rotation of the current engine of vehicle;It is described vehicle-mounted many
Media device determines the first current road speed of the vehicle according to the velocity of rotation.
In actual applications, vehicle-mounted multimedia equipment can obtain the current driving of vehicle by vehicle speed sensor
Speed, can also be by obtaining the current road speed of vehicle, here for obtaining from automobile speed instrument
Mode is not specifically limited.
Step 102:Whether vehicle-mounted multimedia equipment judges first travel speed more than the first numerical value of setting,
If being more than, step 103 is performed;If being not more than, step 104 is performed.
In a step 102, setting the first numerical value can determine according to traffic rules, Ordinary Rd speed limit 60
Kilometer/when, it is also possible to determine according to actual needs, do not limit here.
Step 103:The vehicle-mounted multimedia equipment is it is determined that first road speed is counted more than setting first
During value, multi-medium data is played.
In step 103, the vehicle-mounted multimedia equipment determines first road speed more than setting first
Numerical value, illustrates the road ratio of vehicle current driving smoothly, can select as user plays often or is accustomed to
The multi-medium data listened.
Step 104:The vehicle-mounted multimedia equipment is it is determined that first road speed is not more than setting first
During numerical value, determine whether that whether first road speed, less than setting second value, if being less than, is jumped
Turn to perform step 105;If being not less than, remind the content of user's selection broadcasting or continue to play and broadcast
The content put.
Step 105:The vehicle-mounted multimedia equipment is it is determined that first road speed is counted less than setting second
Value and according to first road speed running time be more than setting time length when, the institute that will playing
State multi-medium data and switch to traffic information.
In step 105, the vehicle-mounted multimedia equipment is it is determined that first road speed is less than setting the
Two numerical value and according to first road speed running time be more than setting time length when, illustrate vehicle ought
The road of preceding traveling compares congestion, and prioritizing selection provides the user important traffic information, then will broadcast
The multi-medium data put switches to traffic information.
Specifically, the vehicle-mounted multimedia equipment is it is determined that first road speed is less than setting second value
When, triggering timing device starts timing, it is assumed that when counted time span is more than setting time length, it is determined that pressing
Running time according to first road speed is more than setting time length.It should be noted that in timing
Need the road speed of acquisition vehicle in real time, it is assumed that the road speed of vehicle is with the benchmark of the first road speed
Setting range in float when, it can be assumed that road speed stabilization in the first road speed.Assuming that in timing
During, the road speed of vehicle is varied widely, i.e., beyond with the setting of the benchmark of the first road speed
Scope needs to re-execute the content of step 102~step 105, and now, timer is also zeroed.
Additionally, the vehicle-mounted multimedia equipment it is determined that first road speed less than setting second value but
When running time according to first road speed is less than setting time length, otherwise illustrate that vehicle is to encounter
Red light or other situations, but the normally travel of vehicle is not influenceed, can not know to be congestion.
Specifically, the vehicle-mounted multimedia equipment is it is determined that first road speed is less than setting second value
And according to first road speed running time be more than setting time length when, described in playing
Multi-medium data switches to traffic information, including:
The vehicle-mounted multimedia equipment it is determined that first road speed less than setting second value and according to
When the running time of first road speed is more than setting time length, search in current driving location overlying
At least one radio signals of lid, wherein, the corresponding signal frequency of the different radio signals is different;
The vehicle-mounted multimedia equipment is according to the mapping relations between radio signals and program of radio station list, it is determined that handing over
The corresponding radio signals of energization platform;
The vehicle-mounted multimedia equipment is according to the radio signals for determining, the multimedia that will playing
Data exchange is the traffic information in broadcast traffic radio station.
Wherein, the mapping relations set up in the following manner between radio signals and program of radio station list:
Determine each radio station in the program of radio station list of different time and each radio station in diverse location
Radio signals;
Positional information, radio signals and the radio signals are set up between the program of radio station list of different time
Mapping relations.
Specifically, the vehicle-mounted multimedia equipment is according to the mapping relations, current time and searches
Radio signals, it is determined that playing the radio signals of traffic information as the corresponding radio station of traffic radio for determining
Signal.
By listening to traffic information, user when it is determined that needing to reposition travel route, to vehicle mounted multimedia
Equipment sends vehicle line and repositions instruction.
Alternatively, methods described also includes:
The vehicle-mounted multimedia equipment receives the vehicle line repositioning instruction that user sends, wherein, it is described
It is what the user sent according to the traffic information of uppick that vehicle line repositions instruction;
The vehicle-mounted multimedia equipment repositions the current location included in instruction according to the travel route
With target location and the traffic information for getting, reposition from the current location and reach the target position
The navigation circuit put, and according to the navigation circuit for user is navigated.
Step 106:The vehicle-mounted multimedia equipment obtains the second current road speed of the vehicle again.
It should be noted that " the first road speed " described in the embodiment of the present application and " the second driving
" first " and " second " in speed " is different for distinguishing the road speed that collects twice, is not had
Other particular meanings.
Step 107:Whether vehicle-mounted multimedia equipment judges second travel speed more than the first numerical value of setting,
If being more than, step 108 is performed;If being not more than, continue to play the content being currently played.
Step 108:The vehicle-mounted multimedia equipment is it is determined that second road speed is more than the setting the
One numerical value and according to second road speed running time be more than the setting time length when, will
The traffic information of broadcast switches to broadcasting multi-medium data/other guide.
It should be noted that vehicle-mounted multimedia equipment described in the embodiment of the present invention is not integrated in vapour
Equipment on car, but the independent equipment with automobile, the vehicle-mounted multimedia equipment can be by automobile cigarette lighter
Set up and the control device of automobile between and be connected, and by automobile cigarette lighter for it provides electric energy;Can also pass through
Wireless connection is set up between wireless mode and the control device of automobile, so, can both have been applied in storage automobile
On, it is also possible to apply on the intelligent automobile of new research and development.The vehicle-mounted multimedia equipment possesses navigation, electricity
Various functions such as platform broadcast, audio and video playing.Additionally, vehicle mounted multimedia described in the embodiment of the present invention
The operating system of equipment can be android system.Android system be a kind of freedom based on Linux and
The operating system of open source code, the operating system of described vehicle-mounted multimedia equipment in the embodiment of the present invention
Support the versions of Android 5.0, it is possible to which the interface provided using the versions of Android 5.0 is set with mobile terminal
Communication connection is set up between the other equipment that standby, automobile is carried.
By technical scheme provided in an embodiment of the present invention, vehicle-mounted multimedia equipment obtains current first of vehicle
Road speed;When it is determined that first road speed is more than the first numerical value of setting, multi-medium data is played;
It is determined that first road speed is less than setting second value and according to the traveling of first road speed
When time is more than setting time length, the multi-medium data that will playing switches to traffic information.Car
It can be that multi-medium data or road conditions are played in user's selection according to the road speed of vehicle to carry multimedia equipment
Information so that user obtains traffic information in time when congestion is compared in traffic, compares smoothly in traffic
When listen to the various multi-medium data of content, have effectively achieved between multi-medium data and traffic information
Flexibly switching, and then lift Consumer's Experience.
Fig. 2 is to switch setting for broadcasting between a kind of multi-medium data provided in an embodiment of the present invention and traffic information
Standby structural representation.The equipment includes:Acquiring unit 21, broadcast unit 22 and switch unit 23,
Wherein:
Acquiring unit 21, first road speed current for obtaining vehicle;
Broadcast unit 22, for when it is determined that first road speed is more than the first numerical value of setting, playing many
Media data;
Switch unit 23, for it is determined that first road speed is less than setting second value and according to described
When the running time of the first road speed is more than setting time length, the multi-medium data that will playing
Switch to traffic information.
In another embodiment of the invention, the acquiring unit 21, is additionally operable to obtain again the vehicle and works as
The second preceding road speed;
The switch unit 23, is additionally operable to it is determined that second road speed is more than the first numerical value of the setting
And according to second road speed running time be more than the setting time length when, by what is broadcasted
Traffic information switches to broadcasting multi-medium data/other guide.
In another embodiment of the invention, the acquiring unit obtains the first current road speed of vehicle,
Including:
Obtain the velocity of rotation of the current engine of vehicle;
According to the velocity of rotation, the first current road speed of the vehicle is determined.
In another embodiment of the invention, the switch unit 23 is it is determined that first road speed is small
In set second value and according to first road speed running time be more than setting time length when, will
The multi-medium data played switches to traffic information, including:
It is determined that first road speed is less than setting second value and according to first road speed
When running time is more than setting time length, at least one radio station letter covered on current driving location is searched for
Number, wherein, the corresponding signal frequency of the different radio signals is different;
According to the mapping relations between radio signals and program of radio station list, the corresponding radio station letter of traffic radio is determined
Number;
According to the radio signals for determining, the multi-medium data that will playing switches to broadcast traffic
The traffic information in radio station.
In another embodiment of the invention, the equipment also includes:Bit location 24 is reset, as shown in figure 3,
To switch the knot of the equipment of broadcasting between a kind of multi-medium data provided in an embodiment of the present invention and traffic information
Structure schematic diagram, wherein:
Described to reset bit location 24, the vehicle line for receiving user's transmission repositions instruction, wherein,
It is what the user sent according to the traffic information of uppick that the vehicle line repositions instruction;
The current location and target location and acquisition included in instruction are repositioned according to the travel route
The traffic information for arriving, repositions the navigation circuit that the target location is reached from the current location, and press
According to the navigation circuit for user is navigated.
It should be noted that the equipment described in the embodiment of the present invention can be realized by software mode, also may be used
Realized with by hardware mode, the equipment can integrate with vehicle-mounted multimedia equipment, it is assumed that the equipment is
Vehicle-mounted multimedia equipment, then vehicle-mounted multimedia equipment can be that user's selection is broadcast according to the road speed of vehicle
Put multi-medium data or traffic information so that user obtains road conditions letter in time when congestion is compared in traffic
Breath, listens to content various multi-medium data when traffic is more smooth, have effectively achieved multimedia
Flexible switching between data and traffic information, and then lift Consumer's Experience.
Another embodiment of the present invention provides a kind of method for obtaining vehicle-mounted multimedia equipment process list, described
Equipment has Android operation system in installing, and the Android operation system can be Android 5.0 editions
The version of this or Android below 5.0 is (for example:Android 4.2 or Android 4.4 etc.).
A kind of method of acquisition process list that the present embodiment is provided, including:
Step S101:Executive process viewing command, and obtain the output result of process viewing command.
In specific implementation process, the process viewing command is the PS orders under Linux, it is described enter
The output result of journey viewing command is the output result of PS orders, wherein the whole comprising current operation is entered
The progress information of journey.
In linux system, process is monitored and controlled it may first have to it is to be understood that current process
Situation, that is, need to check current process, and PS orders are exactly most basic while being also very powerful
Process viewing command.State which process is currently running and runs is may determine that using PS orders, enter
Whether journey terminates, process occupies excessive resource etc. either with or without ossified, which process.It is most of in a word
Information all can be by performing what PS orders were obtained.
And Andorid is developed based on Linux, PS orders are also supported, so in the present embodiment,
By performing PS orders, and obtain the standard output result of PS orders, you can obtain the situation of current process.
Comprising large number of rows and many column informations in the standard output result of PS, each of which row one process of correspondence,
Be classified as a field per each in a line, for correspondence process is described a feature (for example:Process name
Title, process user, process ID, etc.), but substantial amounts of reality is included in the standard output result of PS
The unwanted information in border is (for example:The progress information of some invalid system process), and the core of the application
Part is to construct in the version with Andoid below 5.0 as object RunningApprocessInfo
Process list, so needing further to perform step S102-S105.
Step S102:Based on a filtering rule, to output result in whole progress informations filter.
In specific implementation process, the principle of filtering is the progress information for leaving consumer process, rejects some nothings
The progress information of the system process of effect, while need to retain some system process (for example again:System is pre-installed
App progress information).Specific filtering rule is as follows:
(1) if the process user in the first progress information (i.e.:User) opened with the first preset characters string
The user of head, then retain first progress information;Wherein, the first progress information is complete in output result
Any progress information in portion's progress information, the first preset characters string is " u0_ " or " u1_ " or " app_ ".
If that is, the title of the user of a certain progress information be " u0_ ", " u1_ ", " app_ " beginning,
Then corresponding process is the process of user App processes or most of built-in App certainly, so needing to retain
The progress information.
(2) if the process user in the first progress information (i.e.:User) it is system, and first enters
It is comprising the first preset characters but also pre- not comprising second not comprising the second preset characters in the process title of journey breath
If character string, then retain first progress information;Wherein, the first progress information is complete in output result
Any progress information in portion's progress information, the first preset characters are " ", and the second preset characters are "/", second
Preset characters string is " system_ ".That is, the progress information for being system for user, then exclude
Fall into journey title containing "/" (for example:/ system/) and " system_ " is (for example:system_server)
With there is no the progress information of " " in process title.For example:The entitled com.android.systemui of process
Progress information meet the requirements, retain;Process is entitled/the process letter of system/bin/su or zygote
Breath is not inconsistent requirement, excludes.
(3) if the process user of the first progress information (i.e.:User it is not) system nor with
The user of one preset characters string beginning, and in the process title of the first progress information comprising the first preset characters but
Not comprising the second preset characters, then retain first progress information;Wherein, the first progress information is output
Any progress information in whole progress informations in result, the first preset characters string be " u0_ " or " u1_ ",
Or " app_ ", the first preset characters are " ", and the second preset characters are "/".If that is, process is believed
User in breath be other situations (for example:Root, nfc etc.), then exclude in process name containing "/" but
There is no the progress information of " ".For example:The progress information of the entitled com.android.phone of process meets
It is required that, retain;The progress information of the entitled radio of process is not inconsistent requirement, excludes.
Step S103:Every progress information after filtering is parsed, the every process letter after being filtered
Whole fields that breath is included.
As a kind of optional embodiment, when step S103 is performed, String.split can be directly used
Method, parses to every progress information after filtering.But, String.split inside has used canonical
Expression formula is realized, less efficient.After tested, using String.split parsing needs for up to more than 200
Millisecond.
As a kind of preferred embodiment, when step S103 is performed, because the output result of PS orders is
One field for arranging, it is possible to every progress information after scanning filtering, writes down every after filtering and enters
Each in journey information becomes the position for turning to nonblank character from NUL (i.e.:Opening for field is determined
Beginning position), and each is become from NUL turn to position of nonblank character and save as array array;Using number
The index of group, intercepts each and becomes the character string turned to after the position of nonblank character from NUL, so as to obtain
The whole fields included in every progress information after must filtering.After tested, parse what is needed using this method
Time only needs more than 70 milliseconds, and efficiency is higher, can meet actual demand.
Step S104:Predetermined word is extracted in the whole fields included from every progress information after the filtering
Section.
, it is necessary to construct the object in Andorid below 5.0 in version in specific implementation process
RunningApprocessInfo, so the preset field extracted as object herein
The field included in RunningApprocessInfo, including:Process title is (i.e.:processName)、
Process user is (i.e.:User), process ID is (i.e.:Pid), ID is (i.e.:Uid), process is used
Bag list of file names (i.e.:PkgList), process material information is (i.e.:importance).
In specific implementation process, process can be extracted from the first row in every progress information after filtering
User is (i.e.:User) field;Process can be extracted from the secondary series in every progress information after filtering
ID is (i.e.:Pid) field;Can from the last first row in every progress information after filtering, extract into
Journey title is (i.e.:ProcessName) field.
In specific implementation process, android.os.Process.getUidForName functions can be called, obtained
The ID in every progress information after must filtering is (i.e.:Uid) field.
In specific implementation process, the bag where every progress information after filtering being based on, it is determined that filtering
The bag list of file names that the process in every progress information afterwards is used is (i.e.:PkgList) field.That is,
PkgList acquiescences are exactly the bag where this process.
Step S105:Based on the preset field in every progress information after filtering, a process list is constructed.
In specific implementation process, as shown in Table 1, the process list and object RunningApprocessInfo
The process list of offer is identical, including following field:Process title is (i.e.:ProcessName) field,
Process user is (i.e.:User) field, process ID be (i.e.:Pid) field, ID be (i.e.:uid)
The bag list of file names that field, process are used is (i.e.:PkgList) field, process material information be (i.e.:
Importance) field.
processName | user | Pid | uid | pkgList | importance |
Table one
In the present embodiment, by step S101~step S105, realize in the versions of Android 5.0
In system, obtain as the RunningApprocessInfo objects in Android below 5.0 in version
The technique effect of process list.Security classes App can obtain information and compare with the technical scheme in basic embodiment
Comprehensive process list, so as to ensure that the effect of process cleaning and checking and killing virus.And overall process is not utilized
The AppStaksManager interfaces that the versions of Android 5.0 are provided, without the manually opened authority of user, also not
With worry, other App close authority, and the probability of process list is successfully obtained so as to substantially increase.Meanwhile,
Technical scheme compatibility Android versions below 5.0 in the present embodiment.
As a kind of optional embodiment, after step S105, also include:Carried out based on process list
Process is cleared up.
In specific implementation process, after process list is obtained, can be based on entering for being recorded in the process list
Journey information, it is determined that needing the process of cleaning, go forward side by side traveling Cheng Qingli, so as to improve android system
The speed of service.In due to the present embodiment, can in the system of the versions of Android 5.0, obtain and
The same process list of RunningApprocessInfo objects of the Android below 5.0 in version, the process
Included than more comprehensive progress information in list, so carrying out process cleaning, Ke Yibao based on the process list
The effect of card process cleaning, and improve the efficiency of process cleaning.
As a kind of optional embodiment, after step S105, also include:It is right based on process list
Application permission is managed, or carries out checking and killing virus, or the prison of some programs is performed using Initiative Defense module
Pipe function.
In specific implementation process, after process list is obtained, can continue to obtain a blacklist, and judge
Whether each process in process list is documented in blacklist, if a certain process is documented in the blacklist
In, it is determined that the corresponding application program of the process is Virus, and the Virus is purged, from
And ensure system safety.Due to including the relevant information than more comprehensive process in the process list, so base
Technical scheme in the present embodiment obtains information and carries out checking and killing virus than more comprehensive process list, it is ensured that
The effect of checking and killing virus, improves checking and killing virus efficiency.
In specific implementation process, it is possible to use based on process list, monitoring application obtain operator's informaiton,
APN operations, informing advertisement operation, the operation of acquisition handset identity code, establishment shortcut, phone are dialed
Operation, short message insert or delete operation, contact person's insert or delete operation, URL access operation, subprocess
Invade operation, operated using loading operation, command operation, derivative operation, activation equipment manager.
In specific implementation process, when an application program is installed, can determine to pacify based on process list
The application program of dress, and judge whether the application program installed is safe, so as to the application to installing
Program is further processed.
For example, cloud server can be level of security black, grey, the white three kinds of levels of setting of application program
Not, different degrees of danger are represented respectively, and set corresponding treatment rule.For example, black application is forbidden installing,
Ash application is voluntarily selected by user, and white application then can footpath row installation.Of course, it is possible to be further simplified as ash,
White two kinds, or it is reduced to black, white two kinds.This high in the clouds control of server familiar to the person skilled in the art
Technology, will disclose in follow-up further summary.Anyway, the present invention will be from the machine remote layout bank interface
The middle feedback for obtaining cloud server about these treatment rules applied, is made accordingly using feedback result
Subsequent treatment.Specifically, when black application identities are returned for current goal application, can stop immediately
The installation of the intended application;When white application is designated or ash is applied, then can let pass installation.For interactivity
Consideration, when complete it is long-range judge after, the present invention will to the relevant judged result of user interface pop-up prompting user,
And corresponding treatment advice is shown, ask the user whether to determine to current new clothes application construction Initiative Defense ring
Border, after user therefrom determines to carry out the mark of Initiative Defense to current new clothes intended application, that is, determines the mesh
Mark application.
Similarly, after user determines the intended application, the present invention can by the installation kit of the intended application deposit to
In described assigned catalogue.In addition, subsequently will be for the fixed intended application construction actively for the present invention
The consideration of environment is defendd, the present invention can immediately stop the installation of the intended application, and the operation for stopping installing both may be used
Can also occur after before user determines the intended application with invention.
If additionally, current application belongs to black application, and user remains desirable to install the application, then can still permit
Family allowable retains this on the premise of Initiative Defense environment is set up and has installed application program, or allows corresponding
New clothes application continues to install.
According to it is described it is a kind of obtain process list method and device, executive process viewing command, and obtain into
The output result of journey viewing command;Based on a filtering rule, to output result in whole progress informations carry out
Filtering;Every progress information after filtering is parsed, what every progress information after being filtered was included
Whole fields;Preset field is extracted in the whole fields included from every progress information after filtering;It was based on
The preset field in every progress information after filter, constructs a process list.Wherein, the U predetermined word
Section is the progress information that object RunningApprocessInfo is provided in version in Andoid below 5.0
In field.The present invention obtains the progress information of whole processes of current operation based on PS orders, and passes through
Filtering, finally constructs in the version with Andoid below 5.0 as object RunningApprocessInfo
Process list, so as to obtain more comprehensive progress information, and without the manually opened authority of user, enter
And solve in the prior art in the versions of Android 5.0, it is necessary to the manually opened authority ability of user with imitating
Obtain the incomplete technical problem of information in process list, and the process list for getting.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, device (equipment),
Or computer program product.Therefore, the present invention can using complete hardware embodiment, complete software embodiment,
Or the form of the embodiment in terms of combination software and hardware.And, the present invention can use at one or more it
In include computer-usable storage medium (the including but not limited to disk storage of computer usable program code
Device, CD-ROM, optical memory etc.) on implement computer program product form.
The present invention is with reference to method according to embodiments of the present invention, device (equipment) and computer program product
Flow chart and/or block diagram describe.It should be understood that can by computer program instructions realize flow chart and/or
Flow in each flow and/or square frame and flow chart and/or block diagram and/or square frame in block diagram
With reference to.These computer program instructions to all-purpose computer, special-purpose computer, Embedded Processor can be provided
Or the processor of other programmable data processing devices is producing a machine so that by computer or other
The instruction of the computing device of programmable data processing device produce for realizing in one flow of flow chart or
The device of the function of being specified in one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or the treatment of other programmable datas to set
In the standby computer-readable memory for working in a specific way so that storage is in the computer-readable memory
Instruction produce include the manufacture of command device, the command device realization in one flow of flow chart or multiple
The function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made
Obtain and series of operation steps is performed on computer or other programmable devices to produce computer implemented place
Reason, so as to the instruction performed on computer or other programmable devices is provided for realizing in flow chart one
The step of function of being specified in flow or multiple one square frame of flow and/or block diagram or multiple square frames.
, but those skilled in the art once know base although preferred embodiments of the present invention have been described
This creative concept, then can make other change and modification to these embodiments.So, appended right will
Ask and be intended to be construed to include preferred embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without deviating from this hair to the present invention
Bright spirit and scope.So, if it is of the invention these modification and modification belong to the claims in the present invention and
Within the scope of its equivalent technologies, then the present invention is also intended to comprising these changes and modification.
Claims (10)
1. a kind of method for switching broadcasting between multi-medium data and traffic information, it is characterised in that including:
Vehicle-mounted multimedia equipment obtains the first current road speed of vehicle;
The vehicle-mounted multimedia equipment is played when it is determined that first road speed is more than the first numerical value of setting
Multi-medium data;
The vehicle-mounted multimedia equipment it is determined that first road speed less than setting second value and according to
When the running time of first road speed is more than setting time length, the multimedia that will playing
Data exchange is traffic information.
2. the method for claim 1, it is characterised in that methods described also includes:
The vehicle-mounted multimedia equipment obtains the second current road speed of the vehicle again;
The vehicle-mounted multimedia equipment it is determined that second road speed more than it is described setting the first numerical value and
When running time according to second road speed is more than the setting time length, the road that will broadcasting
Condition information switches to broadcasting multi-medium data/other guide.
3. the method for claim 1, it is characterised in that vehicle-mounted multimedia equipment obtains vehicle and works as
The first preceding road speed, including:
Vehicle-mounted multimedia equipment obtains the velocity of rotation of the current engine of vehicle;
The vehicle-mounted multimedia equipment determines the current the first row speed of the vehicle according to the velocity of rotation
Degree.
4. the method for claim 1, it is characterised in that the vehicle-mounted multimedia equipment it is determined that
First road speed is less than setting second value and big according to the running time of first road speed
When setting time length, the multi-medium data that will playing switches to traffic information, including:
The vehicle-mounted multimedia equipment it is determined that first road speed less than setting second value and according to
When the running time of first road speed is more than setting time length, search in current driving location overlying
At least one radio signals of lid, wherein, the corresponding signal frequency of the different radio signals is different;
The vehicle-mounted multimedia equipment is according to the mapping relations between radio signals and program of radio station list, it is determined that handing over
The corresponding radio signals of energization platform;
The vehicle-mounted multimedia equipment is according to the radio signals for determining, the multimedia that will playing
Data exchange is the traffic information in broadcast traffic radio station.
5. the method for claim 1, it is characterised in that methods described also includes:
The vehicle-mounted multimedia equipment receives the vehicle line repositioning instruction that user sends, wherein, it is described
It is what the user sent according to the traffic information of uppick that vehicle line repositions instruction;
The vehicle-mounted multimedia equipment repositions the current location included in instruction according to the travel route
With target location and the traffic information for getting, reposition from the current location and reach the target position
The navigation circuit put, and according to the navigation circuit for user is navigated.
6. the equipment for switching broadcasting between a kind of multi-medium data and traffic information, it is characterised in that including:
Acquiring unit, first road speed current for obtaining vehicle;
Broadcast unit, for when it is determined that first road speed is more than the first numerical value of setting, playing many matchmakers
Volume data;
Switch unit, for it is determined that first road speed is less than setting second value and according to described the
When the running time of one road speed is more than setting time length, the multi-medium data that will playing is cut
It is changed to traffic information.
7. equipment as claimed in claim 6, it is characterised in that
The acquiring unit, is additionally operable to obtain the second current road speed of the vehicle again;
The switch unit, be additionally operable to it is determined that second road speed more than it is described setting the first numerical value and
When running time according to second road speed is more than the setting time length, the road that will broadcasting
Condition information switches to broadcasting multi-medium data/other guide.
8. equipment as claimed in claim 6, it is characterised in that it is current that the acquiring unit obtains vehicle
The first road speed, including:
Obtain the velocity of rotation of the current engine of vehicle;
According to the velocity of rotation, the first current road speed of the vehicle is determined.
9. equipment as claimed in claim 6, it is characterised in that the switch unit is it is determined that described
One road speed is more than setting less than setting second value and according to the running time of first road speed
During time span, the multi-medium data that will playing switches to traffic information, including:
It is determined that first road speed is less than setting second value and according to first road speed
When running time is more than setting time length, at least one radio station letter covered on current driving location is searched for
Number, wherein, the corresponding signal frequency of the different radio signals is different;
According to the mapping relations between radio signals and program of radio station list, the corresponding radio station letter of traffic radio is determined
Number;
According to the radio signals for determining, the multi-medium data that will playing switches to broadcast traffic
The traffic information in radio station.
10. equipment as claimed in claim 6, it is characterised in that the equipment also includes:Reorientation is single
Unit, wherein:
Described to reset bit location, the vehicle line for receiving user's transmission repositions instruction, wherein, institute
It is what the user sent according to the traffic information of uppick to state vehicle line and reposition instruction;
The current location and target location and acquisition included in instruction are repositioned according to the travel route
The traffic information for arriving, repositions the navigation circuit that the target location is reached from the current location, and press
According to the navigation circuit for user is navigated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510993234.5A CN106915314B (en) | 2015-12-24 | 2015-12-24 | Switch the method and apparatus of broadcasting between a kind of multi-medium data and traffic information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510993234.5A CN106915314B (en) | 2015-12-24 | 2015-12-24 | Switch the method and apparatus of broadcasting between a kind of multi-medium data and traffic information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106915314A true CN106915314A (en) | 2017-07-04 |
CN106915314B CN106915314B (en) | 2019-06-07 |
Family
ID=59459641
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510993234.5A Expired - Fee Related CN106915314B (en) | 2015-12-24 | 2015-12-24 | Switch the method and apparatus of broadcasting between a kind of multi-medium data and traffic information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106915314B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107392672A (en) * | 2017-07-28 | 2017-11-24 | 广东兴达顺科技有限公司 | A kind of advertisement broadcast method and vehicle arrangement |
CN112339560A (en) * | 2019-08-06 | 2021-02-09 | 上海博泰悦臻网络技术服务有限公司 | Interaction method and vehicle-mounted navigation terminal |
CN112804163A (en) * | 2021-03-19 | 2021-05-14 | 智道网联科技(北京)有限公司 | Flow data processing method, device and equipment |
CN114257851A (en) * | 2020-09-21 | 2022-03-29 | 逸驾智能科技有限公司 | Method, apparatus, device and medium for controlling content presentation |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202043238U (en) * | 2010-11-30 | 2011-11-16 | 本田汽车用品(广东)有限公司 | Vehicle-mounted navigation audio system |
CN103456337A (en) * | 2012-05-28 | 2013-12-18 | 联发科技(新加坡)私人有限公司 | Control method of media player of vehicle and navigation multimedia system |
WO2014122917A1 (en) * | 2013-02-08 | 2014-08-14 | 株式会社デンソー | Vehicle navigation apparatus |
-
2015
- 2015-12-24 CN CN201510993234.5A patent/CN106915314B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202043238U (en) * | 2010-11-30 | 2011-11-16 | 本田汽车用品(广东)有限公司 | Vehicle-mounted navigation audio system |
CN103456337A (en) * | 2012-05-28 | 2013-12-18 | 联发科技(新加坡)私人有限公司 | Control method of media player of vehicle and navigation multimedia system |
WO2014122917A1 (en) * | 2013-02-08 | 2014-08-14 | 株式会社デンソー | Vehicle navigation apparatus |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107392672A (en) * | 2017-07-28 | 2017-11-24 | 广东兴达顺科技有限公司 | A kind of advertisement broadcast method and vehicle arrangement |
CN112339560A (en) * | 2019-08-06 | 2021-02-09 | 上海博泰悦臻网络技术服务有限公司 | Interaction method and vehicle-mounted navigation terminal |
CN114257851A (en) * | 2020-09-21 | 2022-03-29 | 逸驾智能科技有限公司 | Method, apparatus, device and medium for controlling content presentation |
CN112804163A (en) * | 2021-03-19 | 2021-05-14 | 智道网联科技(北京)有限公司 | Flow data processing method, device and equipment |
CN112804163B (en) * | 2021-03-19 | 2021-07-27 | 智道网联科技(北京)有限公司 | Flow data processing method, device and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106915314B (en) | 2019-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106915314A (en) | A kind of method and apparatus for switching broadcasting between multi-medium data and traffic information | |
CN102006373B (en) | Vehicle-mounted service system and method based on voice command control | |
CN110275748A (en) | Pop-up display methods, device and the intelligent automobile of vehicular applications | |
CN102033776B (en) | A kind of audio frequency playing method and a kind of calculating equipment | |
CN105760060B (en) | Fast Page localization method | |
CN103921727A (en) | Information Processing Apparatus, Sound Operating System And Sound Operating Method | |
CN103051781A (en) | Method for controlling backstage through voice and mobile terminal | |
CN106155869A (en) | The running background control method of terminal applies and device thereof | |
CN103428355A (en) | Mobile terminal-based voice control apparatus and mobile terminal-based voice control method | |
CN102202082A (en) | Vehicle-mounted communication system and method | |
CN105763277A (en) | Radio play channel updating method and device | |
CN105871492A (en) | Information pushing method, terminal and server | |
CN107545887A (en) | Phonetic order processing method and processing device | |
CN106921452A (en) | A kind of station broadcast method and apparatus | |
CN108834122A (en) | A kind of bluetooth recognition method, apparatus, equipment and storage medium | |
CN110891292A (en) | Method and device for automatically switching network for terminal | |
CN106921693A (en) | The acquisition methods and vehicle-mounted multimedia equipment of a kind of multi-medium data | |
CN105873057A (en) | Pseudo base station protection method and system | |
CN102541415A (en) | Mode switching method for vehicle-mounted electronic system | |
CN109150675A (en) | Interaction method and device for household appliances | |
CN112185059B (en) | Method and device for reminding user | |
CN106921453A (en) | A kind of station broadcast method and apparatus | |
CN104125339B (en) | Mobile terminal radio channel switching method and system | |
CN106469509A (en) | A kind of traffic householder methods and system | |
CN108650622B (en) | Interaction method, system, equipment and storage medium with broadcast in driving state |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190607 Termination date: 20211224 |
|
CF01 | Termination of patent right due to non-payment of annual fee |