CN106776764A - The storage method and terminal of song data - Google Patents

The storage method and terminal of song data Download PDF

Info

Publication number
CN106776764A
CN106776764A CN201611036576.9A CN201611036576A CN106776764A CN 106776764 A CN106776764 A CN 106776764A CN 201611036576 A CN201611036576 A CN 201611036576A CN 106776764 A CN106776764 A CN 106776764A
Authority
CN
China
Prior art keywords
terminal
song data
time
storage
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
Application number
CN201611036576.9A
Other languages
Chinese (zh)
Other versions
CN106776764B (en
Inventor
任超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611036576.9A priority Critical patent/CN106776764B/en
Publication of CN106776764A publication Critical patent/CN106776764A/en
Application granted granted Critical
Publication of CN106776764B publication Critical patent/CN106776764B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/686Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title or artist information, time, location or usage information, user ratings

Abstract

The present invention is applied to the communications field, there is provided the storage method and terminal of a kind of song data.Methods described includes:In first terminal and playback equipment first connection, first terminal obtains and stores the song data identical song data and time tag corresponding with the song data stored with the playback equipment;In the non-first connection of first terminal and playback equipment, first terminal obtains the corresponding very first time label of latest songs data for having stored;First terminal judges whether the song data for needing to update storage according to the corresponding very first time label of the latest songs data for having stored for obtaining;When needing to update, first terminal updates the song data and corresponding very first time label of storage.The efficiency of playback equipment system can be improved by the above method.

Description

The storage method and terminal of song data
Technical field
The embodiment of the present invention belongs to the communications field, more particularly to a kind of song data storage method and terminal.
Background technology
Wireless sound box is a kind of new intelligent appliance equipment, and it passes through WIFI network and intelligent terminal (such as mobile phone) APP is communicated, and such as receives the various instructions that APP is transmitted, and the desired various operations of user are performed according to the instruction for receiving.
At present, in the market has had some wireless sound box products, is all installed by mobile phone by taking SONOS as an example APP is checked and is controlled wireless sound box to play the music of the wireless sound box.I.e. in the prior art, wireless sound box is used to store and receives The song data of Tibetan, after APP is connected with wireless sound box, the data list that APP has been collected to wireless sound box request is displayed in APP ends, so that user browses and selects, wireless sound box plays corresponding number of songs further according to user's selection instruction that APP sends According to.But after starting every time due to APP, the song data for asking it to store to wireless sound box is required for, therefore cause identical to be sung The transmission repeatedly of number of tracks evidence, so as to occupy the resource of wireless sound box, reduces the efficiency of wireless sound box system.
The content of the invention
The embodiment of the invention provides the storage method and terminal of a kind of song data, it is intended to solve existing method and exist After APP starts every time, the song data for asking it to store to playback equipment is required for, therefore cause the anti-of identical song data Multiple transmission, so as to occupy the resource of playback equipment, reduces the problem of the efficiency of playback equipment system.
The first aspect of the embodiment of the present invention, there is provided a kind of storage method of song data, methods described includes:
First terminal obtains the corresponding very first time label of latest songs data for having stored;
First terminal judges whether needs according to the corresponding very first time label of the latest songs data for having stored for obtaining Update the song data of storage;
When needing to update, first terminal updates the song data and corresponding very first time label of storage.
The second aspect of the embodiment of the present invention, there is provided a kind of terminal, the terminal includes:
Very first time label acquiring unit, for obtaining the corresponding very first time label of latest songs data for having stored;
Whether judging unit is updated, for according to the corresponding very first time label of the latest songs data for having stored for obtaining Judge whether the song data for needing to update storage;
Song data updating block, for when needing to update, updating the song data of storage and when corresponding first Between label.
The third aspect of the embodiment of the present invention, there is provided a kind of mobile terminal, the mobile terminal includes:
Processor;
The processor, for obtaining the corresponding very first time label of latest songs data for having stored, according to what is obtained The corresponding very first time label of latest songs data for having stored judges whether the song data for needing to update storage, is needing more When new, the song data and corresponding very first time label of storage are updated.
In embodiments of the present invention, due to song data is stored in first terminal, therefore, it is whole when being again started up first During the APP at end, without obtaining the song data that the first terminal has been stored from playback equipment, so as to avoid identical number of songs Transmitted according between playback equipment and first terminal, improve the efficiency of playback equipment system.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the storage method of song data that first embodiment of the invention is provided;
Fig. 2 is a kind of structure chart of terminal that second embodiment of the invention is provided;
Fig. 3 is a kind of block diagram of the part-structure of the mobile phone of mobile terminal correlation that third embodiment of the invention is provided;
Fig. 4 is a kind of schematic block diagram of mobile terminal that fourth embodiment of the invention is provided.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
In the embodiment of the present invention, first terminal obtains the corresponding very first time label of latest songs data for having stored, the One terminal judges whether to need to update storage according to the corresponding very first time label of the latest songs data for having stored for obtaining Song data, when needing to update, first terminal updates the song data and corresponding very first time label of storage.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment one:
Fig. 1 shows a kind of flow chart of the storage method of song data that first embodiment of the invention is provided, this implementation In example, " first ", " second " in " first terminal ", " second terminal ", " third terminal ", " the 3rd " are only used for representing different Terminal, has no the implication of sequencing, and details are as follows:
Step S11, first terminal obtains the corresponding very first time label of latest songs data for having stored.
Wherein, the unit of very first time label includes:Year, month, day, when, further, minute, second can be accurate to.It is newest The corresponding very first time label of song data is maximum time tag, for example, it is assumed that the time tag of first terminal storage has 2 It is individual:2016.11.01.10 and 2016.11.01.20, then the corresponding very first time label of latest songs is 2016.11.01.20.
Alternatively, in order to save memory space, the song data and time tag of playback equipment (or first terminal) storage Corresponding relation be:Playback equipment is with the corresponding label at the same time of the song data for once updating.For example, it is assumed that playback equipment Number of songs data are have updated in once updating, then the corresponding label at the same time of the number of songs data.In order to keep one Cause, song data and time tag in the song data of first terminal storage and the corresponding relation and playback equipment of time tag Corresponding relation it is identical.
Wherein, the latest songs data that first terminal has been stored are the head or many in the song data of playback equipment storage The corresponding song data of song.It is pointed out that if the latest songs data that first terminal has been stored are 0, i.e., first eventually End may be configured as 0 without any song data of storage, the then very first time label that first terminal is obtained.
Due to the part or all of song data of first terminal storage playback devices storage, therefore, when being again started up the During the APP of one terminal, without obtaining the song data that the first terminal has been stored from playback equipment, so as to avoid identical from singing Number of tracks is transmitted according between playback equipment and first terminal.
Step S12, first terminal judges according to the corresponding very first time label of the latest songs data for having stored for obtaining Whether need to update the song data for storing.
Alternatively, first terminal obtains the second time tag from playback equipment, and by comparing very first time label and the The size of two time tags judges whether the song data for needing to update storage, and now, the step S12 includes:
A1, first terminal ask latest songs data corresponding second time of the playback equipment storage to playback equipment Label.First terminal is set up with playback equipment be connected first, then asks the second time tag, tool to the playback equipment for setting up connection Body ground, first terminal prestores the mark of playback equipment, as the APP communicated with playback equipment in opening first terminal, should First terminal searches for the playback equipment matched with the mark of the playback equipment automatically, if searching, sends connection request extremely The playback equipment, is connected with being set up with the playback equipment.Certainly, if first terminal does not prestore the mark of playback equipment Know, then as the APP communicated with playback equipment in opening first terminal, the first terminal broadcasts the mark of the first terminal, So that the playback equipment sends connection request according to the mark of the first terminal for receiving, and then company is set up with the playback equipment Connect.
A2, first terminal receive the second time tag that the playback equipment sends, and the second time tag that will be received Very first time label corresponding with the latest songs data for having stored for obtaining compares.
A3, the corresponding second time mark of the latest songs data for having stored for being less than acquisition in the very first time label for receiving During label, first terminal judges the song data for needing to update storage, and otherwise, first terminal judges that the song of storage need not be updated Data.
In above-mentioned A1~A3, by comparing the size of very first time label and the second time tag, rather than by comparing First terminal storage song data and playback equipment storage song data come judge whether need update storage number of songs According to, because the corresponding data volume of time tag is much smaller than the corresponding data volume of song data, therefore, drastically increase comparing fast Rate.
Step S13, when needing to update, first terminal updates the song data and mark of the corresponding very first time of storage Sign.
Specifically, first terminal obtains and stores the song data and the song data corresponding that it is not stored One time tag.
Alternatively, before the step S13, including:
First terminal receives the other-end information reached the standard grade that playback equipment sends.Specifically, when first terminal with broadcast When putting equipment foundation connection, the playback equipment actively sends other ends set up with the playback equipment and be connected to the first terminal The information at end.Certainly, after first terminal and playback equipment are set up and be connected, if there is other-end also being set up with playback equipment Connection, the then end message that the playback equipment can also be connected to first terminal transmission and playback equipment foundation.Wherein, The other-end information reached the standard grade that playback equipment sends can be the unique mark of terminal, or set up with playback equipment and connected The quantitative value of all terminals for connecing.
Now, the step S13 is specifically included:
B1, need update when, first terminal judges whether to receive the other-end information reached the standard grade, if receiving, The time tag corresponding song data bigger than the very first time label then is asked to second terminal, the second terminal is for Any terminal of the other-end reached the standard grade.
B2, first terminal receive the big corresponding song of time tag of very first time label described in the ratio that second terminal sends Data are simultaneously stored, to update the song data and corresponding very first time label of storage.
In above-mentioned B1 and B2, if the information that first terminal is received is the unique mark of the other-end reached the standard grade, and this is The unique mark only one of which of the other-end reached the standard grade, then directly to the unique mark corresponding end of the other-end reached the standard grade The end request time tag corresponding song data bigger than very first time label;If the unique mark of the other-end reached the standard grade Number be more than 1, then select a unique mark for terminal from the unique mark of the other-end reached the standard grade for receiving, then to The corresponding terminal request of unique mark the selected time tag corresponding song data bigger than very first time label.Due to first Terminal is to ask song data to other-end, asks song data rather than to playback equipment, therefore avoid playback equipment Take, so as to improve the efficiency of playback equipment system.
Alternatively, if the number of the unique mark of the other-end reached the standard grade is more than 2, after the B2, including:
Whether C1, first terminal judge the very first time label after updating less than second time tag, if being less than, First terminal asks the time tag corresponding song data bigger than very first time label, the third terminal to be to third terminal Any terminal of the other-end reached the standard grade, and the third terminal is different from the second terminal.
C2, first terminal receive the big corresponding song of time tag of very first time label described in the ratio that third terminal sends Data are simultaneously stored, to update the song data and corresponding very first time label of storage.
In above-mentioned C1 and C2, if first terminal not from second terminal get it is whole more than very first time label when Between the corresponding song data of label, then continue to other-end ask.Due to preferentially asking song to the other-end reached the standard grade Data, are rather than directly to playback equipment and ask, therefore avoid the occupancy of playback equipment, so as to improve playback equipment system Efficiency.
Further, after the B2, or, after the C2, including:
Whether D1, first terminal judge the very first time label after updating less than second time tag, if being less than, First terminal asks the time tag corresponding song data bigger than very first time label to playback equipment.
It is corresponding that D2, first terminal receive the big time tag of very first time label described in the ratio that the playback equipment sends Song data is simultaneously stored, to update the song data and corresponding very first time label of storage.
In above-mentioned D1 and D2, if first terminal does not obtain being marked more than the very first time for whole from the other-end reached the standard grade The corresponding song data of time tag of label, then mark to playback equipment request without the song data and corresponding time for obtaining Sign.Because elder generation requests part song data and corresponding time tag to the other-end reached the standard grade, therefore, reduce to broadcasting The corresponding data volume of song data of device request is put, so as to avoid the occupancy of playback equipment, so as to improve playback equipment system The efficiency of system.
In first embodiment of the invention, in first terminal and playback equipment first connection, first terminal is obtained and stored The song data identical song data and time tag corresponding with the song data stored with the playback equipment, During the non-first connection of first terminal and playback equipment, first terminal obtains the latest songs data corresponding very first time for having stored Label, first terminal judges whether to need to update according to the corresponding very first time label of the latest songs data for having stored for obtaining The song data of storage, when needing to update, first terminal updates the song data and corresponding very first time label of storage. Due to by song data storage in first terminal, therefore, when the APP of first terminal is again started up, without from playback equipment Obtain the song data that the first terminal has been stored, so as to avoid identical song data playback equipment and first terminal it Between transmit, so as to improve the efficiency of playback equipment system.
It should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process is not meant to the elder generation of execution sequence Afterwards, the execution sequence of each process should be with its function and internal logic determination, the implementation process structure without tackling the embodiment of the present invention Into any restriction.
Embodiment two:
Fig. 2 shows a kind of structure chart of terminal that second embodiment of the invention is provided, and the terminal can be included through wireless The user equipment that access network RAN is communicated with one or more core nets, the user equipment can be that mobile phone (or is " honeycomb " phone), the computer with mobile device etc., for example, user equipment can also be portable, pocket, hand-held, Built-in computer or vehicle-mounted mobile device, they exchange voice and/or data with wireless access network.Again for example, the shifting Dynamic equipment can be including smart mobile phone, panel computer, personal digital assistant PDA, point-of-sale terminal POS or vehicle-mounted computer etc..In order to It is easy to explanation, illustrate only the part related to the embodiment of the present invention.
The terminal 2 includes:Very first time label acquiring unit 21, whether update judging unit 22, song data and update single Unit 23.It is pointed out that terminal here is the first terminal in embodiment one.Wherein:
Very first time label acquiring unit 21, for obtaining the corresponding very first time mark of latest songs data for having stored Sign.
Wherein, the unit of very first time label includes:Year, month, day, when, further, minute, second can be accurate to.
Alternatively, in order to save memory space, the song data and time tag of playback equipment (or first terminal) storage Corresponding relation be:Playback equipment is with the corresponding label at the same time of the song data for once updating.
Whether judging unit 22 is updated, for according to the corresponding very first time mark of the latest songs data for having stored for obtaining Label judge whether the song data for needing to update storage.
Alternatively, whether the judging unit 22 that updates is specifically included:
Second time tag request module, the latest songs data for asking the playback equipment storage to playback equipment Corresponding second time tag.First terminal is set up with playback equipment be connected first, then is asked to the playback equipment for setting up connection Second time tag, specifically, first terminal prestores the mark of playback equipment, with playback equipment in first terminal is opened During the APP of communication, the first terminal searches for the playback equipment matched with the mark of the playback equipment automatically, if searching, Connection request to the playback equipment is sent, is connected with being set up with the playback equipment.Certainly, if first terminal is not deposited in advance The mark of playback equipment is stored up, then as APP communicate with playback equipment in opening first terminal, the first terminal broadcasts described the The mark of one terminal so that the playback equipment sends connection request according to the mark of the first terminal for receiving, and then with it is described Playback equipment sets up connection.
Second time tag receiver module, for receiving the second time tag that the playback equipment sends, and will receive The second time tag compare with the corresponding very first time label of the latest songs data for having stored for obtaining.
Time tag comparative result determining module, for having been stored most less than what is obtained in the very first time label for receiving During corresponding second time tag of new song data, the song data for needing to update storage is judged, otherwise, it is determined that need not update The song data of storage.
Song data updating block 23, for when needing to update, updating the song data and corresponding first of storage Time tag.
Alternatively, the terminal includes:
End message receiving unit, the other-end information reached the standard grade for receiving playback equipment transmission.Specifically, when First terminal is set up when being connected with playback equipment, and the playback equipment actively sends to the first terminal and set up with the playback equipment The information of the other-end of connection.Certainly, after first terminal and playback equipment are set up and be connected, if exist other-end also with Playback equipment sets up connection, then the playback equipment can also send the end set up with the playback equipment and be connected to the first terminal Client information.Wherein, playback equipment send the other-end information reached the standard grade can be terminal unique mark, or with broadcast Put the quantitative value that equipment sets up all terminals of connection.
Now, the song data updating block 23 is specifically included:
Whether other-end information receives judge module, for when needing to update, judging whether to receive and having reached the standard grade Other-end information, if receiving, ask bigger than very first time label time tag corresponding to second terminal Song data, the second terminal is any terminal of the other-end reached the standard grade.
The song data receiver module of second terminal is big for receiving very first time label described in the ratio that second terminal sends The corresponding song data of time tag and store, to update the song data and corresponding very first time label of storage.
Whether above-mentioned other-end information is received in the song data receiver module of judge module and second terminal, if the One terminal receive information be the other-end reached the standard grade unique mark, and the other-end reached the standard grade unique mark only Have one, then directly to the corresponding terminal request of unique mark of the other-end reached the standard grade it is bigger than very first time label when Between the corresponding song data of label;If the number of the unique mark of the other-end reached the standard grade is more than 1, gone up from what is received A unique mark for terminal is selected in the unique mark of the other-end of line, then please to the corresponding terminal of the unique mark selected Seek the time tag corresponding song data bigger than very first time label.Because first terminal is to ask number of songs to other-end According to, song data is asked rather than to playback equipment, therefore the occupancy of playback equipment is avoided, so as to improve playback equipment system Efficiency.
Alternatively, if the number of the unique mark of the other-end reached the standard grade is more than 2, the terminal includes:
Time tag comparing unit, for judging whether the very first time label after updating is marked less than second time Sign, if being less than, first terminal asks the time tag corresponding song data bigger than very first time label, institute to third terminal Any terminal that third terminal is the other-end reached the standard grade is stated, and the third terminal is different from the second terminal.
The song data receiving unit of third terminal is big for receiving very first time label described in the ratio that third terminal sends The corresponding song data of time tag and store, to update the song data and corresponding very first time label of storage.
In the song data receiving unit of above-mentioned time tag comparing unit and third terminal, if first terminal is not from Two terminals get whole corresponding song datas of the time tag more than very first time label, then continuing please to other-end Ask.Due to preferentially asking song data to the other-end reached the standard grade, playback equipment request is rather than directly to, therefore avoid broadcasting The occupancy of equipment is put, so as to improve the efficiency of playback equipment system.
Alternatively, the terminal includes:
The song-data request unit of playback equipment, for judging the very first time label after updating whether less than described the Two time tags, if being less than, first terminal asks the time tag corresponding song bigger than very first time label to playback equipment Number of tracks evidence.
The song data receiving unit of playback equipment, for receiving very first time mark described in the ratio that the playback equipment sends Sign the big corresponding song data of time tag and store, marked with the song data and the corresponding very first time that update storage Sign.
In second embodiment of the invention, due to by song data storage in first terminal, therefore, when being again started up first During the APP of terminal, without obtaining the song data that the first terminal has been stored from playback equipment, so as to avoid identical song Data are transmitted between playback equipment and first terminal, so as to improve the efficiency of playback equipment system.
Embodiment three:
Fig. 3 is illustrated that the frame of the part-structure of the mobile phone related to the mobile terminal of third embodiment of the invention offer Figure.With reference to Fig. 3, mobile phone includes:It is radio frequency (Radio Frequency, RF) circuit 310, memory 320, input block 330, aobvious Show the parts such as unit 340, sensor 350, voicefrequency circuit 360, wireless module 370, processor 380 and power supply 390.Ability Field technique personnel are appreciated that the handset structure shown in Fig. 3 does not constitute the restriction to mobile phone, can include more more than illustrating Or less part, or some parts are combined, or different part arrangements.
Each component parts of mobile phone is specifically introduced with reference to Fig. 3:
RF circuits 310 can be used to receiving and sending messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information is received, processed to processor 380;In addition, up data is activation will be designed to base station.Generally, RF circuits bag Include but be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..Additionally, RF circuits 310 can also be communicated by radio communication with network and other equipment. Above-mentioned radio communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE)), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 320 can be used to store software program and module, and processor 380 is by running storage in memory 320 Software program and module, so as to perform various function application and the data processing of mobile phone.Memory 320 can mainly include Storing program area and storage data field, wherein, the application journey that storing program area can be needed for storage program area, at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data field can be stored and use what is created according to mobile phone Data (such as voice data, phone directory etc.) etc..Additionally, memory 320 can include high-speed random access memory, can be with Including nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-states Part.
Input block 330 can be used to receive the numeral or character information of input, and generation is set with the user of mobile phone 300 And the relevant key signals input of function control.Specifically, input block 330 may include contact panel 331 and other inputs Equipment 332.Contact panel 331, also referred to as touch-screen, user can be collected thereon or neighbouring touch operation (such as user makes With the operation of any suitable object such as finger, stylus or annex on contact panel 331 or near contact panel 331), and Corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 331 may include touch detecting apparatus and touch Touch two parts of controller.Wherein, touch detecting apparatus detect the touch orientation of user, and detect the letter that touch operation brings Number, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into Contact coordinate, then give processor 380, and the order sent of receiving processor 380 and can be performed.Furthermore, it is possible to using The polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave realize contact panel 331.It is defeated except contact panel 331 Entering unit 330 can also include other input equipments 332.Specifically, other input equipments 332 can include but is not limited to physics One or more in keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Display unit 340 can be used for show by user input information or be supplied to user information and mobile phone it is various Menu.Display unit 340 may include display panel 341, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Show panel 341.Further, contact panel 331 can cover display panel 341, when contact panel 331 detect it is thereon or attached After near touch operation, processor 380 is sent to determine the type of touch event, with preprocessor 880 according to touch event Type corresponding visual output is provided on display panel 341.Although in figure 3, contact panel 331 and display panel 341 It is input and the input function that mobile phone is realized as two independent parts, but in some embodiments it is possible to by touch-control Panel 331 and display panel 341 be integrated and input that realize mobile phone and output function.
Mobile phone 300 may also include at least one sensor 350, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 341, and proximity transducer can close display panel when mobile phone is moved in one's ear 341 and/or backlight.Used as one kind of motion sensor, (generally three axles) add in the detectable all directions of accelerometer sensor The size of speed, can detect that size and the direction of gravity when static, can be used to recognize application (the such as horizontal/vertical screen of mobile phone attitude Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for mobile phone also The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Voicefrequency circuit 360, loudspeaker 361, microphone 362 can provide the COBBAIF between user and mobile phone.Audio-frequency electric Electric signal after the voice data conversion that road 360 will can receive, is transferred to loudspeaker 361, and sound is converted to by loudspeaker 361 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 362, is turned after being received by voicefrequency circuit 360 It is changed to voice data, then after voice data output processor 380 is processed, through RF circuits 310 to be sent to such as another mobile phone, Or export to memory 320 so as to further treatment voice data.
Wireless module is based on short range wireless transmission technology, and mobile phone can help user to receive and dispatch electricity by wireless module 370 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 3 shows Go out wireless module 370, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone 300, completely can be as needed Omitted in the essential scope for do not change invention.
Processor 380 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to Cross operation or perform software program of the storage in memory 320 and/or module, and call storage in memory 320 Data, perform the various functions and processing data of mobile phone, so as to carry out integral monitoring to mobile phone.Optionally, processor 380 can be wrapped Include one or more processing units;Preferably, processor 380 can integrated application processor and modem processor, wherein, should Operating system, user interface and application program etc. are mainly processed with processor, modem processor mainly processes radio communication. It is understood that above-mentioned modem processor can not also be integrated into processor 380.
Mobile phone 300 also includes the power supply 390 (such as battery) powered to all parts, it is preferred that power supply can be by electricity Management system is logically contiguous with processor 380, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.
Although not shown, mobile phone 300 can also will not be repeated here including camera, bluetooth module etc..
In embodiments of the present invention, the processor 380 included by the terminal also has following functions:A kind of song data Storage method, methods described includes:
First terminal obtains the corresponding very first time label of latest songs data for having stored;
First terminal judges whether needs according to the corresponding very first time label of the latest songs data for having stored for obtaining Update the song data of storage;
When needing to update, first terminal updates the song data and corresponding very first time label of storage.
Further, the first terminal is according to the corresponding very first time label of the latest songs data for having stored for obtaining Judge whether the song data for needing to update storage, specifically include:
First terminal asks the latest songs data that the playback equipment is stored corresponding second time to be marked to playback equipment Sign;
First terminal receives the second time tag that the playback equipment sends, and by the second time tag for receiving with obtain The corresponding very first time label of the latest songs data for having stored for taking compares;
In the very first time label for receiving less than corresponding second time tag of the latest songs data for having stored for obtaining When, first terminal judges the song data for needing to update storage, and otherwise, first terminal judges that the number of songs of storage need not be updated According to.
Further, described when needing to update, first terminal updates the song data and corresponding first of storage Before time tag, including:
First terminal receives the other-end information reached the standard grade that playback equipment sends;
Now, described when needing to update, first terminal updates the song data and mark of the corresponding very first time of storage Sign, specifically include:
When needing to update, first terminal judges whether to receive the other-end information reached the standard grade, if receiving, to Second terminal asks the time tag corresponding song data bigger than the very first time label, and the second terminal is to have reached the standard grade Other-end any terminal;
First terminal receives the big corresponding number of songs of time tag of very first time label described in the ratio that second terminal sends According to and store, to update the song data and corresponding very first time label of storage.
Further, the big time mark of very first time label described in the ratio that second terminal sends is received in the first terminal Sign corresponding song data and store, with after the song data and corresponding very first time label that update storage, including:
Whether first terminal judges the very first time label after updating less than second time tag, if being less than, the One terminal asks the time tag corresponding song data bigger than very first time label to third terminal, and the third terminal is for Any terminal of the other-end reached the standard grade, and the third terminal is different from the second terminal;
First terminal receives the big corresponding number of songs of time tag of very first time label described in the ratio that third terminal sends According to and store, to update the song data and corresponding very first time label of storage.
Further, the big time mark of very first time label described in the ratio that second terminal sends is received in the first terminal Sign corresponding song data and store, with after the song data and corresponding very first time label that update storage, or, The first terminal receives the big corresponding song data of time tag of very first time label described in the ratio that third terminal sends simultaneously Storage, with after the song data and corresponding very first time label that update storage, including:
Whether first terminal judges the very first time label after updating less than second time tag, if being less than, the One terminal asks the time tag corresponding song data bigger than very first time label to playback equipment;
First terminal receives the big corresponding song of time tag of very first time label described in the ratio that the playback equipment sends Number of tracks evidence is simultaneously stored, to update the song data and corresponding very first time label of storage.
Example IV:
Fig. 4 is a kind of schematic block diagram of mobile terminal that fourth embodiment of the invention is provided, the movement as depicted Terminal can include:One or more processors 401 (only show one) in figure;One or more input equipments 402 are (in figure only Show one), one or more output equipment 403 (one is only shown in figure), memory 404 and displays 405.Above-mentioned treatment Device 401, input equipment 402, output equipment 403, memory 404 and display 405 are connected by bus 406.Memory 402 is used In store instruction, processor 401 is used to perform the instruction of the storage of memory 402.Wherein:
The processor 401, for obtaining the corresponding very first time label of latest songs data for having stored, according to acquisition The corresponding very first time label of the latest songs data for having stored judge whether need update storage song data, need During renewal, the song data and corresponding very first time label of storage are updated.
It should be appreciated that in embodiments of the present invention, the processor 401 can be CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device can also be any conventional processor etc..
Input equipment 402 can include that Trackpad, fingerprint adopt sensor (finger print information and fingerprint for gathering user Directional information), microphone, data receiver interface etc..Output equipment 403 can be including display (LCD etc.), loudspeaker, data Transmission interface etc..
The memory 404 can include read-only storage and random access memory, and to processor 401 provide instruction and Data.The a part of of memory 404 can also include nonvolatile RAM.For example, memory 404 can also be deposited Store up the information of device type.
Display 405 can be used for display by the information of user input or be supplied to information of user etc..Display 405 can be wrapped Display panel is included, optionally, liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diodes can be used Forms such as (Organic Light-Emitting Diode, OLED) is managed to configure display panel.Further, the display 405 may also include contact panel, and the contact panel can cover display panel, when contact panel detect it is thereon or neighbouring After touch operation, processor 401 is sent to determine the type of touch event, with preprocessor 401 according to the class of touch event Type provides corresponding visual output on a display panel.
In implementing, processor 401, input equipment 402, output equipment 403 described in the embodiment of the present invention, deposit Reservoir 404 and display 405 can perform described in the embodiment of the Memory adjustments method of terminal provided in an embodiment of the present invention Implementation, also can perform the implementation described in embodiment two described in terminal, will not be repeated here.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Unit and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function, but this realization can be realized it is not considered that exceeding using distinct methods to each specific application The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, for example multiple units or component Can combine or be desirably integrated into another system, or some features can be ignored, or do not perform.It is another, it is shown or The coupling each other for discussing or direct-coupling or communication connection can be the indirect couplings of device or unit by some interfaces Close or communicate to connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme 's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (11)

1. a kind of storage method of song data, it is characterised in that methods described includes:
First terminal obtains the corresponding very first time label of latest songs data for having stored;
First terminal judges whether to need to update according to the corresponding very first time label of the latest songs data for having stored for obtaining The song data of storage;
When needing to update, first terminal updates the song data and corresponding very first time label of storage.
2. method according to claim 1, it is characterised in that the first terminal is according to the newest song for having stored for obtaining Number of tracks judges whether the song data for needing to update storage according to corresponding very first time label, specifically includes:
First terminal asks corresponding second time tag of latest songs data of the playback equipment storage to playback equipment;
First terminal receives the second time tag that the playback equipment sends, and the second time tag that will be received and acquisition The corresponding very first time label of latest songs data for having stored compares;
In the very first time label for receiving the second time tag corresponding less than the latest songs data for having stored of acquisition, the One terminal judges the song data for needing to update storage, and otherwise, first terminal judges that the song data of storage need not be updated.
3. method according to claim 1, it is characterised in that described when needing to update, first terminal updates storage Song data and corresponding very first time label before, including:
First terminal receives the other-end information reached the standard grade that playback equipment sends;
Now, described when needing to update, first terminal updates the song data and corresponding very first time label of storage, tool Body includes:
When needing to update, first terminal judges whether to receive the other-end information reached the standard grade, if receiving, to second The terminal request time tag corresponding song data bigger than the very first time label, the second terminal is its that reached the standard grade Any terminal of his terminal;
First terminal receives the big corresponding song data of time tag of very first time label described in the ratio that second terminal sends simultaneously Storage, to update the song data and corresponding very first time label of storage.
4. method according to claim 3, it is characterised in that receive the ratio institute that second terminal sends in the first terminal State the corresponding song data of the big time tag of very first time label and store, to update the song data of storage and corresponding After very first time label, including:
Whether first terminal judges the very first time label after updating less than second time tag, if being less than, first eventually Hold and ask the time tag corresponding song data bigger than very first time label to third terminal, the third terminal is to have reached the standard grade Other-end any terminal, and the third terminal be different from the second terminal;
First terminal receives the big corresponding song data of time tag of very first time label described in the ratio that third terminal sends simultaneously Storage, to update the song data and corresponding very first time label of storage.
5. the method according to claim 3 or 4, it is characterised in that receive what second terminal sent in the first terminal The time tag corresponding song data bigger than the very first time label is simultaneously stored, to update the song data of storage and right After the very first time label answered, or, receive very first time label described in the ratio that third terminal sends in the first terminal The corresponding song data of big time tag is simultaneously stored, with update storage song data and corresponding very first time label it Afterwards, including:
Whether first terminal judges the very first time label after updating less than second time tag, if being less than, first eventually Hold and ask the time tag corresponding song data bigger than very first time label to playback equipment;
First terminal receives the big corresponding number of songs of time tag of very first time label described in the ratio that the playback equipment sends According to and store, to update the song data and corresponding very first time label of storage.
6. a kind of terminal, it is characterised in that the terminal includes:
Very first time label acquiring unit, for obtaining the corresponding very first time label of latest songs data for having stored;
Whether judging unit is updated, for judging according to the corresponding very first time label of the latest songs data for having stored for obtaining Whether need to update the song data for storing;
Song data updating block, song data and mark of the corresponding very first time for when needing to update, updating storage Sign.
7. terminal according to claim 6, it is characterised in that whether the judging unit that updates is specifically included:
Second time tag request module, for asking the latest songs data that the playback equipment is stored corresponding to playback equipment The second time tag;
Second time tag receiver module, for receiving the second time tag that the playback equipment sends, and for receiving Two time tags very first time label corresponding with the latest songs data for having stored for obtaining compares;
Time tag comparative result determining module, in the newest song that has stored of the very first time label for receiving less than acquisition When number of tracks is according to corresponding second time tag, the song data for needing to update storage is judged, otherwise, it is determined that storage need not be updated Song data.
8. terminal according to claim 6, it is characterised in that the terminal includes:
End message receiving unit, the other-end information reached the standard grade for receiving playback equipment transmission;
Now, the song data updating block is specifically included:
Whether other-end information receives judge module, for when needing to update, judging whether to receive its that reached the standard grade His end message, if receiving, the time tag corresponding song bigger than the very first time label is asked to second terminal Data, the second terminal is any terminal of the other-end reached the standard grade;
The song data receiver module of second terminal, for receive second terminal transmission ratio described in very first time label it is big when Between the corresponding song data of label and store, to update the song data and corresponding very first time label of storage.
9. terminal according to claim 8, it is characterised in that the terminal includes:
Time tag comparing unit, for whether judging the very first time label after updating less than second time tag, if It is less than, then first terminal asks the time tag corresponding song data bigger than very first time label to third terminal, described the Three terminals are any terminal of the other-end reached the standard grade, and the third terminal is different from the second terminal;
The song data receiving unit of third terminal, for receive third terminal transmission ratio described in very first time label it is big when Between the corresponding song data of label and store, to update the song data and corresponding very first time label of storage.
10. terminal according to claim 8 or claim 9, it is characterised in that the terminal includes:
The song-data request unit of playback equipment, during for whether judging the very first time label after updating less than described second Between label, if being less than, first terminal asks the time tag corresponding number of songs bigger than very first time label to playback equipment According to;
The song data receiving unit of playback equipment is big for receiving very first time label described in the ratio that the playback equipment sends The corresponding song data of time tag and store, to update the song data and corresponding very first time label of storage.
11. a kind of mobile terminals, it is characterised in that the mobile terminal includes:
Processor;
The processor, for obtaining the corresponding very first time label of latest songs data for having stored, according to having deposited for obtaining The corresponding very first time label of latest songs data of storage judges whether the song data for needing to update storage, is needing to update When, update the song data and corresponding very first time label of storage.
CN201611036576.9A 2016-11-18 2016-11-18 The storage method and terminal of song data Active CN106776764B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611036576.9A CN106776764B (en) 2016-11-18 2016-11-18 The storage method and terminal of song data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611036576.9A CN106776764B (en) 2016-11-18 2016-11-18 The storage method and terminal of song data

Publications (2)

Publication Number Publication Date
CN106776764A true CN106776764A (en) 2017-05-31
CN106776764B CN106776764B (en) 2019-10-18

Family

ID=58971830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611036576.9A Active CN106776764B (en) 2016-11-18 2016-11-18 The storage method and terminal of song data

Country Status (1)

Country Link
CN (1) CN106776764B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113726893A (en) * 2021-08-31 2021-11-30 广州艾美网络科技有限公司 Method and device for updating song library, KTV box, song server and network KTV system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1914601A (en) * 2004-01-27 2007-02-14 皇家飞利浦电子股份有限公司 Audio/video content synchronization through playlists
US20090083281A1 (en) * 2007-08-22 2009-03-26 Amnon Sarig System and method for real time local music playback and remote server lyric timing synchronization utilizing social networks and wiki technology
CN103440317A (en) * 2013-08-28 2013-12-11 电子科技大学 Incremental data inquiry method based on database time labels
CN105447084A (en) * 2015-11-05 2016-03-30 广东欧珀移动通信有限公司 Method and apparatus for synchronizing playlist

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1914601A (en) * 2004-01-27 2007-02-14 皇家飞利浦电子股份有限公司 Audio/video content synchronization through playlists
US20090083281A1 (en) * 2007-08-22 2009-03-26 Amnon Sarig System and method for real time local music playback and remote server lyric timing synchronization utilizing social networks and wiki technology
CN103440317A (en) * 2013-08-28 2013-12-11 电子科技大学 Incremental data inquiry method based on database time labels
CN105447084A (en) * 2015-11-05 2016-03-30 广东欧珀移动通信有限公司 Method and apparatus for synchronizing playlist

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113726893A (en) * 2021-08-31 2021-11-30 广州艾美网络科技有限公司 Method and device for updating song library, KTV box, song server and network KTV system
CN113726893B (en) * 2021-08-31 2024-01-09 广州艾美网络科技有限公司 Method and device for updating music library, KTV box, song server and network KTV system

Also Published As

Publication number Publication date
CN106776764B (en) 2019-10-18

Similar Documents

Publication Publication Date Title
CN106843730A (en) A kind of mobile terminal double screen changing method and mobile terminal
CN106598529A (en) Method and device for sub-screen display of mobile terminal, and mobile terminal
CN106778707A (en) Fingerprint identification method, display screen and mobile terminal
CN104598262A (en) Method and device for updating mobile application
CN106453511A (en) Data backup method and data backup device
CN107329985A (en) A kind of collecting method of the page, device and mobile terminal
CN106445336A (en) Fast acquisition method for electronic resource and mobile terminal
CN106412818A (en) Method and apparatus for locating device
CN106911848A (en) Export the method and terminal device of prompting message
CN106658354A (en) Data transmission method and equipment
CN107291326A (en) Icon processing method and terminal
CN106569815A (en) Message display method and terminal
CN106506815A (en) A kind of application enables method and relevant device
CN106293393A (en) Synthesis display packing based on electronics paster, device and terminal unit
CN106055237A (en) Swiping acceleration response method and equipment
CN106126726A (en) The exhibiting method of a kind of file scene and relevant device
CN106705988A (en) Traffic display method, device and computer equipment
CN106791074B (en) Song information display methods, device and mobile terminal
CN106502827A (en) A kind of data back up method and equipment
CN105976849A (en) Method and apparatus for playing audio data
CN107220073A (en) A kind of information updating method and user equipment
CN107678822A (en) A kind of information processing method and device, terminal and readable storage medium storing program for executing
CN106527856A (en) Application icon display method and terminal
CN106339864A (en) Electronic resource acquisition method and mobile terminal
CN106055615A (en) Method, device and system for obtaining music information

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant