Summary of the invention
In view of this, can intelligently be beaten the present invention provides a kind of USB interface-based media starting method and vehicle device
The media content of external equipment is opened, user's operation is not necessarily to, improves the experience of user.
The present invention provides a kind of USB interface-based media starting method, and the USB interface-based media start method
Applied to vehicle device, the USB interface-based media starting method includes: the external equipment insertion letter for receiving USB interface and sending
Breath;Whether judgement external equipment corresponding with external equipment insertion information records in the database;In the external equipment
When recording in the database, then institute is started according to the history information of the external equipment in the database automatically
State corresponding media content in external equipment;When the external equipment is not recorded in the database, then in the data
User information corresponding with the external equipment and facility information are established in library.
Specifically, described when the external equipment records in the database, then according to the external equipment in institute
Stating the step of history information in database starts corresponding media content in the external equipment automatically includes: described
When external equipment is recorded in the database, then historical record corresponding with the external equipment is obtained from the database
Information;It is counted to obtain broadcasting system according to broadcasting time of the history information to the medium type of the external equipment
Count information;Start the external equipment first most media of broadcasting time in vehicle device automatically according to the broadcasting statistical information
The corresponding media content of type.
Specifically, described the external equipment to be started in vehicle device according to the broadcasting statistical information automatically broadcasting time is most
The step of the first more medium types corresponding media content includes: to obtain the external equipment according to the broadcasting statistical information
The first most medium type of broadcasting time in vehicle device;When first medium type is multiple medium types, then basis
Preset rules are ranked up multiple medium types in first medium type to obtain the second media class of highest priority
Type;Automatically start media content corresponding with second medium type in the external equipment.
Specifically, described when the external equipment is not recorded in the database, then it establishes in the database
The step of user information corresponding with the external equipment and facility information includes: to be not recorded in the number in the external equipment
When according in library, then the user information of vehicle device currently logged in and the facility information of the external equipment are obtained;According to the user
Information and the facility information establish history information corresponding with the external equipment in the database, wherein institute
Stating history information includes user information, facility information, music type broadcasting time, picture type broadcasting time and video class
Type broadcasting time.
Specifically, whether judgement external equipment corresponding with external equipment insertion information records in the database
The step of after further include: when the external equipment is inserted in the USB interface, record vehicle device play the outside every time
Medium type in equipment;It is corresponding with the history information of the external equipment according to the medium type pair played every time
The broadcasting time of medium type carries out accumulative more new record.
The present invention also provides a kind of vehicle device, the vehicle device includes: memory, for storing executable program code;And
Processor, for calling the executable program code in the memory, to realize USB interface-based media starting side
The step of method executes includes: the external equipment insertion information for receiving USB interface and sending;Judgement is inserted into information with the external equipment
Whether corresponding external equipment records in the database;When the external equipment records in the database, then according to institute
It states the history information of external equipment in the database and starts corresponding media content in the external equipment automatically;?
When the external equipment is not recorded in the database, then use corresponding with the external equipment is established in the database
Family information and facility information.
Specifically, the processor, execution is described when the external equipment records in the database, then according to institute
It states the history information of external equipment in the database and starts corresponding media content in the external equipment automatically
The step of step specifically executes includes: then to obtain from the database when the external equipment records in the database
Take history information corresponding with the external equipment;According to the history information to the media class of the external equipment
The broadcasting time of type, which is counted to obtain, plays statistical information;Start the external equipment automatically according to the broadcasting statistical information
The most corresponding media content of the first medium type of broadcasting time in vehicle device.
Specifically, the processor executes and described start the external equipment automatically according to the broadcasting statistical information and exist
The step of the step of the first most medium type of broadcasting time corresponding media content specifically executes in vehicle device includes: according to institute
It states broadcasting statistical information and obtains the external equipment first most medium type of broadcasting time in vehicle device;In first matchmaker
When body type is multiple medium types, then multiple medium types in first medium type are arranged according to preset rules
Sequence obtains the second medium type of highest priority;Automatically start corresponding with second medium type in the external equipment
Media content.
Specifically, the processor, execution is described when the external equipment is not recorded in the database, then in institute
Stating the step of the step of user information corresponding with the external equipment and facility information are established in database specifically executes includes:
When the external equipment is not recorded in the database, then obtain vehicle device the user information currently logged in and the outside
The facility information of equipment;It is established in the database and the external equipment according to the user information and the facility information
Corresponding history information, wherein the history information includes user information, facility information, music type broadcasting time
Number, picture type broadcasting time and video type broadcasting time.
Specifically, the processor, executing judgement external equipment corresponding with external equipment insertion information is
The step of also executing after no the step of recording in the database includes: to be inserted in the USB interface in the external equipment
When, record vehicle device plays the medium type in the external equipment every time;According to the medium type pair that plays every time and described outer
The broadcasting time of corresponding medium type carries out accumulative more new record in the history information of portion's equipment.
Specifically, USB interface-based media starting method and vehicle device provided in this embodiment, by receiving USB interface
The external equipment of transmission is inserted into information, and judges whether external equipment corresponding with external equipment insertion information is recorded in database
In, when external equipment records in the database, then to be opened automatically according to the history information of external equipment in the database
Corresponding media content in dynamic external equipment, and when external equipment is not recorded in database, then establish in the database with
The corresponding user information of external equipment and facility information, so as to intelligently open the media content of external equipment, without using
Family operation, improves the experience of user.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects, features and advantages of the invention can
It is clearer and more comprehensible, it is special below to lift preferred embodiment, and cooperate attached drawing, detailed description are as follows.
Specific embodiment
It is of the invention to reach the technical means and efficacy that predetermined goal of the invention is taken further to illustrate, below in conjunction with
Attached drawing and preferred embodiment, the present invention is described in detail as follows.
Fig. 1 is that the USB interface-based media of first embodiment of the invention start the flow diagram of method.The present embodiment
Start method for the USB interface-based media that vehicle device executes.As shown in Figure 1, the USB interface-based media of the present embodiment open
Dynamic method can comprise the following steps that
Step S11: it receives the external equipment that USB interface is sent and is inserted into information.
Specifically, in one embodiment, external equipment can be, but not limited to as USB flash disk, mobile terminal and wearable device etc.
Deng.Specifically, when external equipment is inserted on the USB interface of vehicle device by user, USB interface detects the insertion of external equipment,
External equipment, which is sent, to vehicle device is inserted into information.
Step S12: whether judgement external equipment corresponding with external equipment insertion information records in the database.
Specifically, in one embodiment, vehicle device obtains corresponding with external equipment after receiving external equipment insertion information
Facility information, to inquire from database according to facility information, and then judge whether the external equipment records in the database.
Specifically, when external equipment records in the database, S13 is thened follow the steps.Number is not recorded in external equipment
When according in library, S14 is thened follow the steps.
Step S13: started automatically according to the history information of external equipment in the database corresponding in external equipment
Media content.
Specifically, in one embodiment, external equipment record in the database when, such as the external equipment is before
History information is created through being inserted into the USB interface of vehicle device, and in the database of vehicle device, vehicle device is according to external equipment
Facility information history information corresponding with the external equipment is searched from database, with automatic according to history information
Start corresponding media content in external equipment, such as user is in the number for the picture for opening the external equipment by vehicle device before
More, at this moment when the external equipment is re-inserted on the USB interface of vehicle device, vehicle device automatically opens the figure in external equipment
Piece is not necessarily to user's operation, improves the experience of user so as to intelligently open the media content of external equipment.
Step S14: user information corresponding with external equipment and facility information are established in the database.
Specifically, in one embodiment, when external equipment is not recorded in database, such as the external equipment is before
Never it is out-of-date to use in vehicle device, and vehicle device will obtain the current user information for logging in vehicle device, and obtain setting for the external equipment
Standby information by user information and facility information associated storage into database, and then creates go through corresponding with the external equipment
The Records of the Historian records information.
Specifically, in one embodiment, history information includes user information, facility information, music type broadcasting
Number, picture type broadcasting time and video type broadcasting time.It specifically, is to be inserted in vehicle device for the first time in the external equipment
When on USB interface, music type broadcasting time, picture type broadcasting time and video type in history information play secondary
The equal default settings of number are 0, and the media content of music type in the external equipment, picture type or video type is opened
When, music type broadcasting time, picture type broadcasting time or video type broadcasting time will be bulk registration 1 times.
Referring to FIG. 2, the USB interface-based media that Fig. 2 is second embodiment of the invention start the process signal of method
Figure.As shown in Figure 1 to Figure 2, USB interface-based media provided in this embodiment start method, are recorded in number in external equipment
When according in library, then started in external equipment automatically in corresponding media according to the history information of external equipment in the database
The step of appearance specifically includes the following steps:
Step S21: when external equipment records in the database, then goes through corresponding with external equipment is obtained from database
The Records of the Historian records information.
Specifically, in one embodiment, external equipment record in the database when, such as the external equipment is before
History information is created through being inserted into the USB interface of vehicle device, and in the database of vehicle device, vehicle device is according to external equipment
Facility information searched from database and obtain history information corresponding with the external equipment.
Step S22: it is counted and is broadcast according to broadcasting time of the history information to the medium type of external equipment
Put statistical information.
Specifically, in one embodiment, vehicle device broadcasts the music type in the corresponding history information of the external equipment
It is for statistical analysis to put number, picture type broadcasting time and video type broadcasting time difference, to obtain in the external equipment
Each medium type in broadcasting total degree before, and then obtain each medium type play total degree sequence broadcasting system
Count information.
Step S23: start external equipment first most matchmaker of broadcasting time in vehicle device automatically according to statistical information is played
The corresponding media content of body type.
Specifically, in one embodiment, vehicle device is according to the broadcasting total degree for playing each medium type in statistical information
Sequence obtain the external equipment and open the first most medium type of number, specifically, the first medium type in the vehicle device
It can be music type, picture type or video type.Specifically, vehicle device when the external equipment is inserted on USB interface from
It is dynamic to open the corresponding media content of the first medium type, such as the media content quilt of music type of the external equipment in vehicle device
When the number of opening is most, when the external equipment is inserted into the USB interface of vehicle device by user, vehicle device plays outside this automatically
The corresponding media content of music type in equipment, such as the song of the external equipment is played, it is outer so as to intelligently open
The media content of portion's equipment is not necessarily to user's operation, improves the experience of user.
Referring to FIG. 3, the USB interface-based media that Fig. 3 is third embodiment of the invention start the process signal of method
Figure.As shown in Figure 1 to Figure 3, USB interface-based media provided in this embodiment start method, certainly according to broadcasting statistical information
Dynamic starting external equipment is specifically included in the step of the first most medium type of broadcasting time in vehicle device corresponding media content
Following steps:
Step S31: external equipment first most media class of broadcasting time in vehicle device is obtained according to statistical information is played
Type.
Specifically, in one embodiment, vehicle device is according to the broadcasting total degree for playing each medium type in statistical information
Sequence obtain the external equipment and open the first most medium type of number, specifically, the first medium type in the vehicle device
It can be music type, picture type or video type.
Step S32: when the first medium type is multiple medium types, then according to preset rules in the first medium type
Multiple medium types be ranked up to obtain the second medium type of highest priority.
Specifically, in one embodiment, when the first medium type is multiple medium types, such as in the external equipment
As many, and music type and the broadcasting time of picture type are big for the music type of medium type and the broadcasting time of picture type
In the broadcasting time of video type, at this moment the first medium type is music type and picture type.
Specifically, in one embodiment, preset rules can be, but not limited to the priority that external equipment is opened for vehicle device
It is higher than the priority of picture type for the priority of music type, the priority of picture type is higher than the priority of video type,
Such as in other embodiments, user can also be according to the priority for liking customized setting vehicle device opening medium type.
Specifically, in one embodiment, vehicle device according to preset rules to multiple medium types in the first medium type into
The sequence of row major grade, to obtain the second medium type of highest priority in the first medium type, such as the first medium type is
When music type and picture type, then obtaining the second medium type according to preset rules is music type.
Step S33: media content corresponding with the second medium type in automatic starting external equipment.
Specifically, in one embodiment, vehicle device automatically opens the second media when the external equipment is inserted on USB interface
The corresponding media content of type, such as the media content of music type and picture type of the external equipment in vehicle device are opened
Number it is most when, when the external equipment is inserted into the USB interface of vehicle device by user, vehicle device is broadcast automatically according to preset rules
The corresponding media content of music type in the external equipment is put, such as plays the song of the external equipment, so as to intelligence
The media content of external equipment is opened on ground, is not necessarily to user's operation, is improved the experience of user.
Referring to FIG. 4, the USB interface-based media that Fig. 4 is fourth embodiment of the invention start the process signal of method
Figure.As shown in Figures 1 to 4, USB interface-based media provided in this embodiment start method, are not recorded in external equipment
When in database, then the step of establishing corresponding with external equipment user information and facility information in the database specifically include with
Lower step:
Step S41: when external equipment is not recorded in database, then obtain vehicle device the user information currently logged in and
The facility information of external equipment.
Specifically, in one embodiment, when external equipment is not recorded in database, such as the external equipment is before
Never it is out-of-date to use in vehicle device, and vehicle device will obtain the current user information for logging in vehicle device, and obtain setting for the external equipment
Standby information, by user information and facility information associated storage into database.
Step S42: historical record corresponding with external equipment is established in the database according to user information and facility information
Information.
Specifically, in one embodiment, vehicle device is established automatically in the database according to user information and facility information and should
The corresponding history information of external equipment.
Specifically, in one embodiment, history information includes user information, facility information, music type broadcasting
Number, picture type broadcasting time and video type broadcasting time.It specifically, is to be inserted in vehicle device for the first time in the external equipment
When on USB interface, music type broadcasting time, picture type broadcasting time and video type in history information play secondary
The equal default settings of number are 0, and the media content of music type in the external equipment, picture type or video type is opened
When, music type broadcasting time, picture type broadcasting time or video type broadcasting time will be bulk registration 1 times.
Referring to FIG. 5, the USB interface-based media that Fig. 5 is fifth embodiment of the invention start the process signal of method
Figure.As shown in Figures 1 to 5, USB interface-based media provided in this embodiment start method, and judgement is inserted into external equipment
It is further comprising the steps of after the step of whether corresponding external equipment of information records in the database:
Step S51: when external equipment is inserted in USB interface, record vehicle device plays the media in external equipment every time
Type.
Specifically, in one embodiment, during the external equipment is inserted in USB interface, vehicle device records in the database
User opens the number that music type, picture type and video type are respectively opened in the external equipment in the meantime.
Step S52: according to the medium type pair played every time and corresponding media in the history information of external equipment
The broadcasting time of type carries out accumulative more new record.
Specifically, in one embodiment, vehicle device is according to the medium type pair played every time and the historical record of external equipment
The broadcasting time of corresponding medium type carries out accumulative more new record in information.Such as music type in the external equipment,
When the media content of picture type or video type is opened, music type broadcasting time, picture type broadcasting time or video
Type broadcasting time will be bulk registration 1 time.For example, matchmaker of the user by the every picture type for opening an external equipment of vehicle device
When holding in vivo, vehicle device is by the broadcasting time of the picture type in the history information corresponding with the external equipment in database
Total degree it is accumulative plus 1, and record is updated to the history information, so as to be inserted into external equipment in user
When USB interface, according to the use habit for the user for logging in vehicle device, the media content of external equipment is intelligently opened, is not necessarily to user
Operation, improves the experience of user.
Fig. 6 is the structural block diagram of the vehicle device 100 of sixth embodiment of the invention.As shown in fig. 6, vehicle device provided in this embodiment
100 include memory 110 and processor 120.
Specifically, in one embodiment, memory 110, for storing executable program code.Processor 120, for adjusting
With the executable program code in memory 110, to realize step packet performed by USB interface-based media starting method
It includes: receiving the external equipment insertion information that USB interface is sent;Whether judgement external equipment corresponding with external equipment insertion information
Record is in the database;External equipment record in the database when, then the historical record according to external equipment in the database
Information starts corresponding media content in external equipment automatically;When external equipment is not recorded in database, then in database
It is middle to establish user information corresponding with external equipment and facility information.
Specifically, in one embodiment, processor 120 are executed when external equipment records in the database, then according to outer
The step of history information of portion's equipment in the database starts corresponding media content in external equipment automatically specifically executes
The step of include: external equipment record in the database when, then obtain corresponding with external equipment history from database and remember
Record information;It is counted to obtain broadcasting statistics letter according to broadcasting time of the history information to the medium type of external equipment
Breath;Start external equipment most corresponding matchmaker of the first medium type of broadcasting time in vehicle device automatically according to statistical information is played
Hold in vivo.
Specifically, in one embodiment, processor 120, execution start external equipment according to broadcasting statistical information automatically and exist
The step of the step of the first most medium type of broadcasting time corresponding media content specifically executes in vehicle device includes: according to broadcasting
It puts statistical information and obtains external equipment first most medium type of broadcasting time in vehicle device;It is multiple in the first medium type
When medium type, then multiple medium types in the first medium type are ranked up to obtain highest priority according to preset rules
The second medium type;Media content corresponding with the second medium type in automatic starting external equipment.
Specifically, in one embodiment, processor 120 are executed when external equipment is not recorded in database, then in number
The step of specifically executing according to the step of establishing user information corresponding with external equipment and facility information in library includes: to set in outside
For when being not recorded in database, then the user information of vehicle device currently logged in and the facility information of external equipment are obtained;According to
User information and facility information establish history information corresponding with external equipment in the database.
Specifically, in an embodiment, history information includes user information, facility information, music type broadcasting time
Number, picture type broadcasting time and video type broadcasting time.
Specifically, in one embodiment, processor 120 execute judgement outside corresponding with external equipment insertion information and set
The step of also executing after standby the step of whether recording in the database includes: the note when external equipment is inserted in USB interface
Record vehicle device plays the medium type in external equipment every time;Remembered according to the history of the medium type pair played every time and external equipment
The broadcasting time of corresponding medium type carries out accumulative more new record in record information.
The present embodiment realizes the detailed process of respective function to each functional unit of vehicle device 100, refers to above-mentioned Fig. 1 to figure
Particular content described in 5 illustrated embodiments, details are not described herein.
Specifically, USB interface-based media starting method and vehicle device provided in this embodiment, by receiving USB interface
The external equipment of transmission is inserted into information, and judges whether external equipment corresponding with external equipment insertion information is recorded in database
In, when external equipment records in the database, then to be opened automatically according to the history information of external equipment in the database
Corresponding media content in dynamic external equipment, and when external equipment is not recorded in database, then establish in the database with
The corresponding user information of external equipment and facility information, so as to intelligently open the media content of external equipment, without using
Family operation, improves the experience of user.
In addition, the embodiment of the present invention also provides a kind of computer readable storage medium, it is executable to be stored with computer
Instruction, above-mentioned computer readable storage medium is, for example, nonvolatile memory such as CD, hard disk or flash memory.It is above-mentioned
Computer executable instructions open for allowing computer or similar arithmetic unit to complete above-mentioned USB interface-based media
Various operations in dynamic method.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight
Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
For vehicle device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng
See the part explanation of embodiment of the method.