CN105513619B - The processing method of wrong song in a kind of vehicle entertainment system - Google Patents
The processing method of wrong song in a kind of vehicle entertainment system Download PDFInfo
- Publication number
- CN105513619B CN105513619B CN201410500889.XA CN201410500889A CN105513619B CN 105513619 B CN105513619 B CN 105513619B CN 201410500889 A CN201410500889 A CN 201410500889A CN 105513619 B CN105513619 B CN 105513619B
- Authority
- CN
- China
- Prior art keywords
- song
- controller
- files
- processing method
- decoder
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)
- Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)
Abstract
The present invention discloses a kind of processing method of wrong song in vehicle entertainment system, it include: the vehicle entertainment system include controller and coupled storage facilities and decoder, the storage facilities is for storing song files, the controller is read out and parses to the song files in the storage facilities according to user's input, the decoder is for being decoded corresponding song according to the instruction of controller, according to the song files quantity creation song bitmap and song serial number in the storage facilities, and by the information of label bit of song bitmap come marked erroneous song.The processing method of wrong song proposes a kind of scheme for handling wrong song in vehicle entertainment system of the invention, and the wrong song being recorded can be skipped directly when encountering again, i.e., no longer be played.Solve the problems, such as that low efficiency, consumption system resource in additional error song treatment mechanism are poor with user experience effect greatly.
Description
Technical field
The present invention relates to a kind of player error handling methods, in particular to the processing of wrong song in vehicle entertainment system
Method.
Background technique
Vehicle entertainment system has become the important component in automotive electronics, and wrong song in vehicle entertainment system
Software treatment mechanism is the key point of Fault Tolerance.The process of traditional wrong song processing is: playing every time new bent
All it is directly to be played out to song when mesh, when detecting that song is wrong song during broadcasting, then plays next song.
The advantages of this method is that algorithm is simple, is very easy to realize.
But when using traditional method, same first wrong song can be played every time, and the first mistake of every broadcasting one
It all can be just like lower process when song: (1) song being searched in the position of storage medium according to song serial number;(2) from storage medium
Read song files;(3) song files are parsed;(4) it is decoded on audio decoder;(5) decoder returns to error message;(6) it broadcasts
Put next song.Above each step can all bring a degree of expense to system: searching, read and parsing song waste
Cpu resource, read file speed by storage medium limitation, decoder be also in vain be that wrong song carries out useless decoding
Work, whole process also waste electric energy in certain degree.Destroy user experience effect.Obviously traditional processing method
There is a fatefulue weakness, the efficiency for handling mistake is too low.
Summary of the invention
The purpose of the invention is to overcome the defect of above-mentioned background technique, it is bent to provide mistake in a kind of vehicle entertainment system
Purpose processing method.
The processing method of wrong song in a kind of vehicle entertainment system, the vehicle entertainment system include controller and and its
Connected storage equipment and decoder, the storage equipment is for storing song files, and the controller is according to user's input pair
Song files in the storage equipment are read out and parse, and the decoder is used for the instruction according to controller to corresponding
Song is decoded, and the treating method comprises:
A1. controller be arranged in its memory one piece of region reflecting for storage it is described storage equipment song just
Often and error message, the region are divided into multiple storage units identical with song quantity in storage equipment, and all storages are single
The initial value of member is a, and wherein a is binary number;
A2. when controller receives the instruction for needing to play a song files, check in the region of memory with the song
Whether the corresponding storage unit of mesh file is a, if then cooperateing with the decoder to parse the song files and playing, is otherwise judged
The song mistake, does not execute play instruction.
It further comprise step A3, it is described when decoder feedback information shows that currently playing song is wrong song
Storage unit values corresponding with the mistake song are revised as b by controller, and wherein b is a binary number different from a value.
Specifically, it in step A2, when judging storage unit values corresponding with song to be played as b, is played according to song
Cyclic policy executes the step of checking corresponding storage unit values to next song to be played.
Further, each storage unit occupies one bit.
Further, the song in the storage equipment is corresponded by song serial number and storage unit.
Further, the step of controller cooperates with decoder parsing song in the step A2 include:
B1. controller searches song files corresponding with the song serial number;
B2. controller parses song files, and controls the audio decoder and be decoded to song files.
Preferably, all storage units form a song bitmap, the song bitmap be one with byte ordinal number be it is capable,
Bit ordinal number with each byte is the two-dimensional matrix of column.
Further, the bit ordinal number is 8.
The processing method of wrong song proposes a kind of scheme for handling wrong song in vehicle entertainment system of the invention,
The wrong song being recorded can be skipped directly when encountering again, i.e., no longer be played.Solves the processing of additional error song
The problem of low efficiency, consumption system resource greatly with user experience effect difference in mechanism.
Detailed description of the invention
Fig. 1 is the method flow diagram in one embodiment of the invention.
Fig. 2 is the schematic diagram of the song bitmap of one embodiment of the invention.
Specific embodiment
It is further retouched below in conjunction with processing method work of the attached drawing to song wrong in vehicle entertainment system of the invention
It states.
The processing method of wrong song in a kind of vehicle entertainment system, comprising: vehicle entertainment system include controller and with
Its connected storage equipment and decoder, for storing song files, the controller inputs the storage equipment according to user
Song files in the storage equipment are read out and are parsed, the decoder is used for the instruction according to controller to corresponding
Song be decoded, the process method step is as follows, as shown in Figure 1:
A1. controller be arranged in its memory one piece of region reflect for storage it is described storage equipment song it is normal
And error message, the region are divided into multiple storage units identical with song quantity in storage equipment, all storage units
Initial value be a, wherein a be binary number;
Controller is according to the song files quantity creation song bitmap and song serial number in the storage equipment, song serial number
It is corresponding with song quantity with the quantity of song bitmap, and each bit to bitmap are initialized as 1 or 0;
Song serial number be according to the sequential organization of song files come out, and in order to more efficiently handle mistake song text
Part is used to handle wrong song this embodiment introduces the concept of song bitmap, and song bitmap is by being divided depositing of coming out
Storage unit composition is with byte ordinal number for row, take bit ordinal number as the two-dimensional matrix of column, a bit corresponding one of the present embodiment
A storage unit, each bit correspond to a song files and song serial number.Each song files is binary with one
Whether mistake of one bit to record the song files, in the present embodiment, choosing 1, to represent song normal, and 0 represents song mistake
Accidentally, therefore, when song bitmap initializes, all bit values on bitmap are 1.From the minimum bit of the lowest byte of song bitmap
Position starts continuous record, and the lesser song of song serial number is recorded in lower byte, the biggish song of song serial number be recorded in compared with
High byte, the lesser song of song serial number is recorded in bit lower in same byte, and the biggish song of song serial number is corresponding
It is bit higher.As shown in Figure 2 (a), be length be a byte song bitmap schematic diagram.Song serial number is compiled from right to left
Row, for the convenience of description, first bit are bit0, second bit are bit1, are so analogized.Similarly, when multiple bytes
After initialization, then a song bitmap is formed, as shown in Fig. 2 (b), a line represents a byte, the multiple bytes of multirow, for side
Just it describes, the first row byte is BM [0], and the second row byte is BM [1], is so analogized.
A2. when controller receives the instruction for needing to play a song files, check in the region of memory with the song
Whether the corresponding storage unit of mesh file is 1, if then cooperateing with the decoder to parse the song files and playing, is otherwise judged
The song mistake, does not execute play instruction.
Before playing a song files, controller all can first read the corresponding song serial number of the song files.At this time
It is positioned in song bitmap according to song serial number, localization method is divided into row positioning and column positioning, and row positioning is to use song
Serial number asks whole to the bit wide of each byte, and arranging positioning is then the bit wide complementation to each byte.General common memory block word
Section width is 8bit, therefore, can ask whole in the present embodiment to 8 and carry out song files in the positioning of song bitmap to 8 complementations.
It further illustrates as an example, it is assumed that the 17th song files are positioned, then its song serial number is then 17,
It when song bitmap carries out row positioning, asks whole for 17 pair 8, obtains 2, when song bitmap carries out column positioning, 17 pair of 8 complementation obtains
To 1, then the 2nd row (i.e. BM [1]) in song bitmap can be obtained, the 1st column (i.e. bit0) are the corresponding bit of the song files
Position.
In other embodiments, storage unit can be character or character string, and as needed, a storage unit can also
With the multiple characters of correspondence or character string, all storage units form an array or database, pass through specific binary system
The state of numerical value expression song.In addition, multiple storage units can also be discontinuously arranged.
After successfully positioning, controller will receive a value of song bitmap return, and will be at the beginning of the value and song bitmap
The value of beginningization is compared, and if they are the same, then determines that the song files are normal song, control audio decoder is decoded and broadcasts
It puts;If not identical, determine that the song files for wrong song, do not execute play instruction, cyclic policy pair is played according to song
Next song files to be played execute the step of checking corresponding storage unit values.
When due to initialization, default determines that all song files are normal song, when encountering wrong song for the first time,
Following specific steps will occur in it
A3. the parsing of controller collaboration decoder and play list file, if decoder feedback information shows currently to broadcast later
When the song put is wrong song, controller will be revised as 0 in the corresponding storage unit values of song bitmap with the mistake song, general
The song files are labeled as wrong song.
Mistake song after playing for the first time, since controller carries out on the corresponding position of song bitmap
Label can then be identified by song bitmap, be leapt to down when reading the song serial number of the song files again next time
One song, and require no reading, parsing after be just the discovery that wrong song, be omitted significantly very long and useless lookup,
The processes such as reading, parsing, decoding.
Specifically, the step of controller cooperates with the decoder parsing song files in step A2 includes:
B1. controller is searched in storage module and reads song files corresponding with song serial number;
B2. controller control parsing song files, and control the decoder and song files are decoded;
Embodiments of the present invention are explained in detail above in conjunction with attached drawing, but the present invention is not limited to above-mentioned implementations
Mode within the knowledge of a person skilled in the art can also be without departing from the purpose of the present invention
Various changes can be made.
Claims (7)
1. the processing method of wrong song in a kind of vehicle entertainment system, the vehicle entertainment system include controller and with its phase
Storage equipment even and decoder, the storage equipment are inputted according to user to institute for storing song files, the controller
The song files stated in storage equipment are read out and parse, and the decoder is used for the instruction according to controller to corresponding song
Mesh is decoded, which is characterized in that the treating method comprises:
A1. controller be arranged in its memory one piece of region reflect for storage the storage equipment song normal and
Error message, the region are divided into multiple storage units identical with song quantity in storage equipment, all storage units
Initial value is a, and wherein a is binary number;
A2. it when controller receives the instruction for needing to play a song files, checks literary with the song in the region of memory
Whether the corresponding storage unit of part is a, if then cooperateing with the decoder to parse the song files and playing, otherwise judges the song
Mesh mistake, does not execute play instruction;
A3. when decoder feedback information shows that currently playing song files are wrong song, the controller will be with the mistake
Accidentally the corresponding storage unit values of song are revised as b, and wherein b is a binary number different from a value.
2. processing method as described in claim 1, which is characterized in that in step A2, when judgement and song files pair to be played
When the storage unit values answered are b, cyclic policy are played according to song, correspondence, which is deposited, to be checked to next song files execution to be played
The step of storage unit value.
3. processing method as described in claim 1, which is characterized in that each storage unit occupies one bit.
4. the processing method as described in any one of claims 1 to 3 item, which is characterized in that the song in the storage equipment
It is corresponded by song serial number and storage unit.
5. processing method as claimed in claim 4, which is characterized in that controller cooperates with the decoder solution in the step A2
Analyse song files the step of include:
B1. controller searches song files corresponding with the song serial number;
B2. controller parses song files, and controls the decoder and be decoded to song files.
6. processing method as described in claim 1, which is characterized in that all storage units form a song bitmap, described
Song bitmap be one with byte ordinal number be it is capable, the bit ordinal number with each byte is the two-dimensional matrix of column.
7. processing method as claimed in claim 6, which is characterized in that the bit ordinal number is 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410500889.XA CN105513619B (en) | 2014-09-26 | 2014-09-26 | The processing method of wrong song in a kind of vehicle entertainment system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410500889.XA CN105513619B (en) | 2014-09-26 | 2014-09-26 | The processing method of wrong song in a kind of vehicle entertainment system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105513619A CN105513619A (en) | 2016-04-20 |
CN105513619B true CN105513619B (en) | 2019-02-01 |
Family
ID=55721543
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410500889.XA Active CN105513619B (en) | 2014-09-26 | 2014-09-26 | The processing method of wrong song in a kind of vehicle entertainment system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105513619B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6205568B1 (en) * | 1997-02-15 | 2001-03-20 | Kabushiki Kaisha Toshiba | Data transmission system and error correcting method applicable to the same |
CN101098486A (en) * | 2006-06-28 | 2008-01-02 | 联发科技股份有限公司 | Receiver system and related method for processing error packets utilizing packet replacement |
CN101437160A (en) * | 2007-11-13 | 2009-05-20 | 矽统科技股份有限公司 | Method and relevant apparatus for decoding video signal |
CN101578861A (en) * | 2005-05-13 | 2009-11-11 | 高通股份有限公司 | Error recovery using in band error patterns |
CN101960853A (en) * | 2008-02-26 | 2011-01-26 | 高通股份有限公司 | The Video Decoder mistake is disposed |
CN102110458A (en) * | 2009-12-24 | 2011-06-29 | Tcl集团股份有限公司 | Playing terminal as well as method and device for playing an audio/video file |
-
2014
- 2014-09-26 CN CN201410500889.XA patent/CN105513619B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6205568B1 (en) * | 1997-02-15 | 2001-03-20 | Kabushiki Kaisha Toshiba | Data transmission system and error correcting method applicable to the same |
CN101578861A (en) * | 2005-05-13 | 2009-11-11 | 高通股份有限公司 | Error recovery using in band error patterns |
CN101098486A (en) * | 2006-06-28 | 2008-01-02 | 联发科技股份有限公司 | Receiver system and related method for processing error packets utilizing packet replacement |
CN101437160A (en) * | 2007-11-13 | 2009-05-20 | 矽统科技股份有限公司 | Method and relevant apparatus for decoding video signal |
CN101960853A (en) * | 2008-02-26 | 2011-01-26 | 高通股份有限公司 | The Video Decoder mistake is disposed |
CN102110458A (en) * | 2009-12-24 | 2011-06-29 | Tcl集团股份有限公司 | Playing terminal as well as method and device for playing an audio/video file |
Also Published As
Publication number | Publication date |
---|---|
CN105513619A (en) | 2016-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI465945B (en) | Methods and devices for reducing power consumption in a pattern recognition processor | |
JP6126127B2 (en) | Method and system for routing in a state machine | |
CN101667958B (en) | Method for selecting hash function, and method and device for storing and searching routing table | |
KR101921373B1 (en) | Results generation for state machine engines | |
KR20150052108A (en) | Methods and systems for power management in a pattern recognition processing system | |
CN102422262B (en) | Processor | |
US7895417B2 (en) | Select-and-insert instruction within data processing systems | |
US10949290B2 (en) | Validation of a symbol response memory | |
CN102053818A (en) | Branch prediction method and device as well as processor | |
CN102053816A (en) | Data shuffling unit with switch matrix memory and shuffling method thereof | |
CN102938653A (en) | Parallel RS decoding method achieved through graphics processing unit (GPU) | |
WO2010011513A2 (en) | Enhancing performance of a constraint solver across individual processes | |
CN101194228A (en) | Efficient subprogram return in microprocessors | |
CN112148844B (en) | Robot information reply method and device | |
CN105513619B (en) | The processing method of wrong song in a kind of vehicle entertainment system | |
CN107729375A (en) | A kind of method and device of daily record data sequence | |
CN105336379B (en) | A kind of information processing method and solid-state memory | |
CN105892995B (en) | Search the method, apparatus and processor of negative | |
CN110008236B (en) | Data distributed type self-increment coding method, system, equipment and medium | |
US10453534B2 (en) | Patching of programmable memory | |
CN113495901B (en) | Quick retrieval method for variable-length data blocks | |
CN106886444A (en) | A kind of online programming method and device | |
CN111400269B (en) | IPFS file processing method, node, medium and equipment | |
CN105653950A (en) | Malicious code matching method and apparatus based on multi-mode | |
CN102541675B (en) | Method for improving error correction capacity, memorization device and controller for memorization device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |