CN107015874A - Data transfer control method, device and terminal - Google Patents
Data transfer control method, device and terminal Download PDFInfo
- Publication number
- CN107015874A CN107015874A CN201710209386.0A CN201710209386A CN107015874A CN 107015874 A CN107015874 A CN 107015874A CN 201710209386 A CN201710209386 A CN 201710209386A CN 107015874 A CN107015874 A CN 107015874A
- Authority
- CN
- China
- Prior art keywords
- data transfer
- audio
- terminal
- application
- player device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
Abstract
The embodiment of the invention discloses a kind of data transfer control method, device and terminal.The data transfer control method includes:When carrying out data transmission by terminal applies and audio-frequence player device, if receiving for indicating that the application carries out the instruction of version updating, the first process is created;It is determined that applying corresponding second process with this, and obtain the time of running data of second process;By interprocess communication, by the time of running data transfer of second process to first process;Based on the first process for getting the second process time of running data, the data transfer for setting up terminal and audio-frequence player device is connected, to respond the data transfer request of the audio-frequence player device.The embodiment of the present invention can improve the flexibility that terminal carries out data transmission with audio-frequence player device, lift result of broadcast.
Description
Technical field
The invention belongs to communication technical field, more particularly to a kind of data transfer control method, device and terminal.
Background technology
At present, intelligent radio audio-frequence player device (hereinafter referred to as audio-frequence player device) just becomes more popular.Audio
Playback equipment can constitute an intelligent playing system with mobile terminal (such as mobile phone), to meet consumer entertainment, living needs.
In mobile terminal by exclusive terminal applies, when carrying out data transmission with audio-frequence player device, if the exclusive application
Need to carry out version updating, then mobile terminal can temporarily interrupt the data transfer between audio-frequence player device, and this will cause audio
Playback equipment can not continue to obtain the data transfer between data, namely mobile terminal and audio-frequence player device at mobile terminal
Flexibility it is poor, influence result of broadcast.
The content of the invention
The embodiment of the present invention provides a kind of data transfer control method, device and terminal, can improve terminal and be broadcast with audio
The flexibility of the data transfer between equipment is put, result of broadcast is lifted.
The embodiment of the present invention provides a kind of data transfer control method, including:
When being carried out data transmission by terminal applies and audio-frequence player device, if receiving for indicating that the application is entered
The instruction of row version updating, then create the first process;
It is determined that the second process corresponding with the application, and obtain the time of running data of second process;
By interprocess communication, by the time of running data transfer of second process to first process;
Based on the first process for getting the second process time of running data, set up terminal and set with audio broadcasting
Standby data transfer connection, to respond the data transfer request of the audio-frequence player device.
The embodiment of the present invention provides a kind of data transfer controller, including:
Creation module, for when being carried out data transmission by terminal applies and audio-frequence player device, if receiving is used for
Indicate that the application carries out the instruction of version updating, then create the first process;
Acquisition module, for determining the second process corresponding with the application, and when obtaining the operation of second process
Carve data;
Transport module, for by interprocess communication, by the time of running data transfer of second process to described
One process;
Respond module, for based on the first process for getting the second process time of running data, set up terminal with
The data transfer connection of the audio-frequence player device, to respond the data transfer request of the audio-frequence player device.
The embodiment of the present invention also provides a kind of terminal, and the terminal includes memory, processor, and is stored in described deposit
In reservoir and the computer program that can be run in the processor, this is realized during computer program described in the computing device
Step in the data transfer control method that inventive embodiments are provided.
Data transfer control method provided in an embodiment of the present invention, device and terminal, are broadcast in terminal by application with audio
When putting equipment and carrying out data transmission, if received for indicating that the application carries out the instruction of version updating, then terminal can be with
First create the first process.Then, terminal can be determined applies corresponding second process with this, and obtains the fortune of second process
Row time data.Afterwards, the time of running data of the second process got can be transferred to by terminal by interprocess communication
First process.Hereafter, terminal can based on the first process for having got the second process time of running data, set up terminal with
Data transfer connection between audio-frequence player device, to respond the data transfer request of audio-frequence player device.The embodiment of the present invention
When can need to carry out version updating in the application for being used for carrying out data transmission between terminal and audio-frequence player device, by terminal
Create a new process to take over this using corresponding process, to respond the data transfer request of audio-frequence player device, so as to keep away
Exempt from when carrying out version updating because the terminal applies cannot respond to data caused by the data transfer request of audio-frequence player device
Transmission, the i.e. present invention can improve the flexibility of the data transfer between terminal and audio-frequence player device, and effect is played in lifting
Really.
Brief description of the drawings
Below in conjunction with the accompanying drawings, it is described in detail by the embodiment to the present invention, technical scheme will be made
And its advantage is apparent.
Fig. 1 is the schematic flow sheet of data transfer control method provided in an embodiment of the present invention.
Fig. 2 is another schematic flow sheet of data transfer control method provided in an embodiment of the present invention.
Fig. 3 A to Fig. 3 C are the schematic diagram of a scenario of data transfer control method provided in an embodiment of the present invention.
Fig. 4 is the structural representation of data transfer controller provided in an embodiment of the present invention.
Fig. 5 is another structural representation of data transfer controller provided in an embodiment of the present invention.
Fig. 6 is the structural representation of mobile terminal provided in an embodiment of the present invention.
Embodiment
It refer to schema, wherein identical element numbers represent identical component, principle of the invention is to implement one
Illustrated in appropriate computing environment.The following description is that, based on the illustrated specific embodiment of the invention, it should not be by
It is considered as the limitation present invention other specific embodiments not detailed herein.
It will be detailed below.
Referring to Fig. 1, Fig. 1 is the schematic flow sheet of data transfer control method provided in an embodiment of the present invention, flow can
With including:
In step S101, when being carried out data transmission by terminal applies and audio-frequence player device, if receiving is used for
Indicate that the application carries out the instruction of version updating, then create the first process.
It is understood that the executive agent of the embodiment of the present invention can be smart mobile phone and tablet personal computer etc.
Terminal device.
Such as, in mobile terminal by exclusive terminal applies, with such as WiFi (wireless fidelity, wireless guarantor
When very) audio-frequence player device such as audio amplifier carries out data transmission, if the exclusive application needs to carry out version updating, mobile terminal meeting
The data transfer between audio-frequence player device is temporarily interrupted, this will cause audio-frequence player device can not continue to obtain at mobile terminal
The flexibility of data transfer between the evidence, namely mobile terminal and audio-frequence player device of fetching is poor, influences result of broadcast.
In the step S101 of the embodiment of the present invention, carried out data transmission in terminal by application with audio-frequence player device
When, if mobile terminal is received for indicating that the application carries out the instruction of version updating, then can first trigger mobile terminal
Create a new process, i.e. the first process.
In step s 102, it is determined that applying corresponding second process with this, and the time of running number of second process is obtained
According to.
Such as, after the first process is newly created, terminal can be determined applies corresponding second process with this, and obtains
The time of running (runtime) data of second process are taken, namely obtain the service data of the second process.It is understood that
Second process be now correspond in terminal the application for the process that carries out data transmission with audio-frequence player device.
In step s 103, by interprocess communication, the time of running data transfer of second process first is entered to this
Journey.
Such as, after the time of running data of the second process are got, terminal can be by interprocess communication, by second
The time of running data transfer of process is to the first process.
It should be noted that interprocess communication (Inter-Process Communication) is can be in different processes
Between enter the technology of row data communication.If for example, terminal installation is Android (Android) operating system, then terminal can make
Come with AIDL (Android Interface Definition Language, Android IDL) process communication technology
Realize the communication between different processes.And for example, in Android operation system, it can also use based on Messenger's (courier)
Technology come realize striding course communication, etc..It is understood that illustrating does not constitute limitation of the invention herein.
In step S104, based on the first process for getting the second process time of running data, terminal is set up with being somebody's turn to do
The data transfer connection of audio-frequence player device, to respond the data transfer request of the audio-frequence player device.
Such as, after the first process gets the time of running data of the second process, terminal can be based on now
The data transfer that one process is set up between audio-frequence player device is connected, please with the data transfer for responding the audio-frequence player device
Ask.
It is understood that being contained in the time of running data of the second process between terminal and audio-frequence player device (logical
Cross application) related data of the data transfer set up connection, therefore the time of running data of the second process are being transferred to the
After one process, terminal can just be set up its data transfer between audio-frequence player device based on the first process and is connected.Also
It is to say, after the time of running data of the second process are got, the first process can just take over original by the second management of process
Terminal and audio-frequence player device between data transfer connect.
It is understood that the present embodiment can be used for what is carried out data transmission between terminal and audio-frequence player device
During using needing to carry out version updating, this is taken over using corresponding process by terminal one new process of establishment, and it is new based on this
Process, the data transfer connection set up between terminal and audio-frequence player device, to respond the data transfer of the audio-frequence player device
Request, so as to avoid when carrying out version updating because the application cannot respond to the data transfer request of audio-frequence player device and lead
Data-transmission interruptions between the terminal and audio-frequence player device of cause, the i.e. embodiment of the present invention can improve terminal and be set with audio broadcasting
The flexibility of data transfer between standby, lifts result of broadcast.
Referring to Fig. 2, Fig. 2 is another schematic flow sheet of data transfer control method provided in an embodiment of the present invention, stream
Journey can include:
In step s 201, when terminal is carried out data transmission by application with audio-frequence player device, if receiving is used for
Indicate that the application carries out the instruction of version updating, then terminal creates the first process.
Such as, data transfer is established by some default application and audio-frequence player device in terminal to be connected and by terminal
During local voice data is transferred to audio-frequence player device, if receiving for indicating that the application carries out version updating
Instruction, then terminal can first create a new process, i.e. the first process.
In step S202, terminal determines to apply corresponding second process with this, and when obtaining the operation of second process
Carve data.
Such as, after the first process is newly created, terminal can be determined applies corresponding second process with this, and obtains
Take the time of running (runtime) data of second process.It is understood that second process is now correspondence in terminal
In the application for the process that carries out data transmission with audio-frequence player device.
In step S203, by interprocess communication, terminal by the time of running data transfer of second process to this
One process.
Such as, after the time of running data of the second process are got, terminal can be by interprocess communication, by second
The time of running data transfer of process is to the first process.
It should be noted that interprocess communication is can to enter the technology of row data communication between different processes.If for example, eventually
What end was installed is Android operation system, then terminal can use AIDL (Android Interface Definition
Language, Android IDL) process communication technology realizes the communication between different processes.And for example, grasped in Android
Make in system, the technology based on Messenger (courier) can also be used to realize striding course communication, etc..It may be appreciated
It is that illustrating herein does not constitute limitation of the invention.
In step S204, based on the first process for getting the second process time of running data, terminal is set up and audio
The data transfer connection of playback equipment, to respond the data transfer request of the audio-frequence player device.
Such as, after the first process gets the time of running data of the second process, terminal can be based on now
One process is set up its data transfer between audio-frequence player device and is connected, please with the data transfer for responding the audio-frequence player device
Ask.For example, the local audio data transmission preserved in the terminal is played out into audio-frequence player device by the first process.
It is understood that being contained in the time of running data of the second process between terminal and audio-frequence player device (logical
Cross application) related data of the data transfer set up connection, therefore the time of running data of the second process are being transferred to the
After one process, terminal can just be set up its data transfer between audio-frequence player device based on the first process and is connected.Also
It is to say, after the time of running data of the second process are got, the first process can just take over original by the second management of process
Terminal and audio-frequence player device between data transfer connect.
In step S205, terminal-pair is used to indicate that the instruction of application progress version updating is responded, and should to this
With carrying out version updating.
Such as, in terminal based on the first process for having got the second process time of running data, set up and played with audio
After the data transfer connection of equipment, the instruction for indicating that the application carries out version updating that is used for that terminal can be to receiving before
Responded, and the version of the application is updated according to the instruction.
It is understood that during this applies progress version updating in terminal-pair, terminal is responded by the first process
Data transfer request between audio-frequence player device, and data transfer is completed, and the application will no longer respond audio broadcasting and set
Standby data transfer request.
In step S206, after the completion of the version updating of the application is detected, terminal creates complete corresponding to version updating
3rd process of the application after.
Such as, after the completion of the version updating of the application is detected, terminal can restart the application, and create correspondence
3rd process of the application after the completion of version updating.
In one embodiment, step S206 may include steps of:
After the completion of the version updating of application is detected, whether the first process of detection is terminated;
If detecting, the first process is not terminated, and terminal is created to be entered corresponding to the 3rd of the application after the completion of version updating
Journey.
Such as, after the completion of the version updating of the application is detected, whether terminal can detect it still through
One process keeps data transfer to be connected with audio-frequence player device, namely terminal detects whether the first process is terminated.
If terminal detects that the first process is not terminated, then terminal can restart the application, and create corresponding to version
3rd process of the application after the completion of renewal.
, should without restarting this if terminal detects that the first process is terminated, then terminal can perform other operations
With.For example, during the application carries out version updating, user has interrupted terminal and audio because no longer needing playing audio
Data transfer between playback equipment, i.e., for the first process for carrying out data transmission between terminal and audio-frequence player device by end
Only.So, in this case, terminal can perform other operations.
In step S207, terminal obtains the time of running data of the first process, and by interprocess communication, first is entered
The time of running data transfer of journey is to the 3rd process.
In step S208, based on the 3rd process for getting the first process time of running data, terminal is set up and audio
The data transfer connection of playback equipment, to respond the data transfer request of the audio-frequence player device.
Such as, step S207 and S208 can include:
After the 3rd process corresponding to the application after the completion of updating is created, terminal can obtain the operation of the first process
Time data, and by interprocess communication, the time of running data of the first process got are transferred to the 3rd process.
Then, terminal can set up terminal and sound based on the 3rd process for having got the first process time of running data
The data transfer connection of frequency playback equipment, to respond the data transfer request of the audio-frequence player device.
That is, after detecting using completion version updating, terminal can be created corresponding to the completion version more
3rd process of new application, and terminal and the audio-frequence player device set up by the 3rd process before taking over by the first process it
Between data transfer connection, to respond the data transfer request of audio-frequence player device.That is, hereafter will be completed by the 3rd process
Data transfer between terminal and audio-frequence player device.For example, the local audio data by the 3rd process by preservation in the terminal
It is transferred in audio-frequence player device and plays out.
In step S209, terminal terminates the first process.
Such as, the data transfer taken in the 3rd process between the terminal set up by the first process and audio-frequence player device connects
After connecing, terminal can terminate the first process, that is, terminate the first process.
It is understood that the present embodiment can be used for what is carried out data transmission between terminal and audio-frequence player device
During using needing to carry out version updating, this is taken over using corresponding process by terminal one new process of establishment, and it is new based on this
Process, the data transfer connection set up between terminal and audio-frequence player device, please with the data transfer for responding audio-frequence player device
Ask, so as to avoid when carrying out version updating because the application cannot respond to the data transfer request of audio-frequence player device and cause
Terminal and audio-frequence player device between data-transmission interruptions.That is, the embodiment of the present invention can carry out version more in the application
While new, the data transfer between terminal and audio-frequence player device is kept not interrupt.
In addition, the embodiment of the present invention can be broadcast after the completion of the application updates by the application again adapter terminal with audio
Put the data transfer connection between equipment.Therefore, the embodiment of the present invention can be improved and carried out between terminal and audio-frequence player device
The flexibility of data transfer.
Fig. 3 A to Fig. 3 C are referred to, Fig. 3 A to Fig. 3 C are the scene of data transfer control method provided in an embodiment of the present invention
Schematic diagram.
Such as, mobile terminal establishes data transfer with audio-frequence player device by some default application and is connected, and will
It is stored in the local voice data of mobile terminal and is transferred in audio-frequence player device and plays out.As shown in Figure 3A, mobile terminal
Need the audio A in local audio list being transferred in audio-frequence player device to audio E and play out.
During mobile terminal and the audio-frequence player device carry out data transmission, mobile terminal, which detects the application, to be had
New version, and whether version updating is carried out to the application to user's query, now the interface of mobile terminal can be such as Fig. 3 B institutes
Show.
For example, as shown in Figure 3 C, user clicks button "Yes", selection carries out version updating to the application.Now move
Terminal is received for indicating the instruction to application progress version updating, and in this case, mobile terminal can be created first
First process.
Then, mobile terminal can be determined applies corresponding second process with this, and obtains the operation of second process
Time data.Second process be now correspond in terminal the application be used for carry out data transmission with audio-frequence player device
Process.
After the time of running data of the second process are got, terminal can be by interprocess communication, by the second process
Time of running data transfer to the first process.Afterwards, mobile terminal can be based on first process, set up and set with audio broadcasting
Standby data transfer connection, and respond the data transfer request of the audio-frequence player device.That is, now being connect by the first process
The original data transfer connection between the mobile terminal and audio-frequence player device of the second management of process of pipe.
After the completion of the version updating of the application is detected, mobile terminal can restart the application, and detect the first process
Whether it is terminated.
It is not terminated for example, now detecting the first process, i.e., mobile terminal is played still through the first process and audio
Equipment keeps data transfer connection.In this case, mobile terminal can be created corresponding to the application after the completion of version updating
The 3rd process.Then, mobile terminal can obtain the time of running data of the first process now, and by the fortune of the first process
Row time data is transferred to the 3rd process by interprocess communication.
After the 3rd process gets the time of running data of the first process, mobile terminal can be built based on the 3rd process
It is vertical to be connected with the data transfer of audio-frequence player device.That is, now by the first management of process before the adapter of the 3rd process
Mobile terminal and audio-frequence player device between data transfer connect.
Hereafter, mobile terminal can terminate above-mentioned first process.
Referring to Fig. 4, Fig. 4 is the structural representation of data transfer controller provided in an embodiment of the present invention.Data are passed
Defeated control device 300 can include:Creation module 301, acquisition module 302, transport module 303, and respond module 304.
Creation module 301, for when being carried out data transmission by terminal applies and audio-frequence player device, if receiving use
In the instruction for indicating the application progress version updating, then the first process is created.
Such as, data transfer is established with audio-frequence player device by some default application in terminal and is connected line number of going forward side by side
During according to transmission, if receiving for indicating that the application carries out the instruction of version updating, then can be first by the wound of terminal
Model block 301 and create a new process, i.e. the first process.
Acquisition module 302, for determining the second process corresponding with the application, and obtains the operation of second process
Time data.
Such as, after creation module 301 newly creates the first process, acquisition module 302 can determine in terminal with
This applies corresponding second process, and obtains the time of running (runtime) data of second process.It is understood that should
Second process be now correspond in terminal the application for the process that carries out data transmission with audio-frequence player device.
Transport module 303, for by interprocess communication, by the time of running data transfer of second process to described
First process.
Such as, after acquisition module 302 gets the time of running data of the second process, transport module 303 can lead to
Interprocess communication is crossed, by the time of running data transfer of the second process to the first process.
It should be noted that interprocess communication is can to enter the technology of row data communication between different processes.If for example, eventually
What end was installed is Android operation system, then terminal can use AIDL (Android Interface Definition
Language, Android IDL) process communication technology realizes the communication between different processes.And for example, grasped in Android
Make in system, the technology based on Messenger (courier) can also be used to realize striding course communication, etc..It may be appreciated
It is that illustrating herein does not constitute limitation of the invention.
Respond module 304, for based on the first process for getting the second process time of running data, setting up terminal
It is connected with the data transfer of the audio-frequence player device, to respond the data transfer request of the audio-frequence player device.
Such as, after the first process gets the time of running data of the second process, respond module 304 can be based on this
When the first process set up between terminal and audio-frequence player device data transfer connection, to respond the number of the audio-frequence player device
According to transmission request.For example, the local audio data transmission preserved in the terminal is entered into audio-frequence player device by the first process
Row is played.
It is understood that being contained in the time of running data of the second process between terminal and audio-frequence player device (logical
Cross application) related data of the data transfer set up connection, therefore the time of running data of the second process are being transferred to the
After one process, terminal can just be set up its data transfer between audio-frequence player device based on the first process and is connected.Also
It is to say, after the time of running data of the second process are got, the first process can just take over original by the second management of process
Terminal and audio-frequence player device between data transfer connect.
Please refer to fig. 5, Fig. 5 is another structural representation of data transfer controller provided in an embodiment of the present invention
Figure.In one embodiment, data transfer controller 300 can also include:Update module 305, trigger module 306, and eventually
Only module 307.
Update module 305, for being responded to the instruction, and carries out version updating to the application.
Such as, terminal is set up based on the first process for having got the second process time of running data in respond module 304
After being connected with the data transfer of audio-frequence player device, update module 305 can be to receiving for indicating the application before
The instruction for carrying out version updating is responded, and the version of the application is updated according to the instruction.
It is understood that during this applies progress version updating in terminal-pair, terminal is responded by the first process
Data transfer request between audio-frequence player device, and data transfer is completed, and the application will no longer respond audio broadcasting and set
Standby data transfer request.
Trigger module 306, for after the completion of the version updating of the application is detected, triggering terminal to be created corresponding to version
3rd process of the application after the completion of this renewal;The time of running data of first process are obtained, and by interprocess communication,
By the time of running data transfer of first process to the 3rd process;Based on getting the first process time of running
3rd process of data, the data transfer for setting up terminal with the audio-frequence player device is connected, and is set with responding the audio broadcasting
Standby data transfer request.
Such as, after the completion of terminal detects the version updating of the application, trigger module 306 can be with triggering terminal weight
The application is opened, and creates the 3rd process corresponding to the application after the completion of version updating.
Then, trigger module 306 can obtain the time of running data of the first process, and by interprocess communication, will
The time of running data of the first process got are transferred to the 3rd process.
Hereafter, trigger module 306 can be set up eventually based on the 3rd process for having got the first process time of running data
End is connected with the data transfer of audio-frequence player device, to respond the data transfer request of the audio-frequence player device.
That is, after terminal is detected using completion version updating, trigger module 306 can be created to correspond to and is somebody's turn to do
Complete the 3rd process of the application of version updating, and the terminal and audio set up by the 3rd process before taking over by the first process
Data transfer connection between playback equipment, to respond the data transfer request of audio-frequence player device.That is, hereafter will be by the 3rd
Process completes the data transfer between terminal and audio-frequence player device.For example, the sheet by the 3rd process by preservation in the terminal
Ground voice data, which is transferred in audio-frequence player device, to be played out.
In one embodiment, trigger module 306 can be used for:
After the completion of the version updating of application is detected, whether the first process of detection is terminated;
If detecting, the first process is not terminated, and terminal is created to be entered corresponding to the 3rd of the application after the completion of version updating
Journey.
Such as, after the completion of terminal detects the version updating of the application, trigger module 306 can detect that terminal is
It is no to keep data transfer to be connected with audio-frequence player device by the first process, namely trigger module 306 can detect the first process
Whether it is terminated.
If detecting, the first process is not terminated, then trigger module 306 can restart the application, and create corresponding to version
3rd process of the application after the completion of this renewal.
If detecting, the first process has been terminated, then terminal can perform other operations, without restarting the application.
For example, during the application carries out version updating, user has been interrupted terminal because no longer needing broadcasting audio and broadcast with audio
Put the data transfer between equipment, i.e., for the first process for carrying out data transmission between terminal and audio-frequence player device by end
Only.So, in this case, terminal can perform other operations.
Module 307 is terminated, for terminating first process.
Such as, the data transfer taken in the 3rd process between the terminal set up by the first process and audio-frequence player device connects
After connecing, the first process can be terminated by terminating module 307, that is, terminate the first process.
The present invention also provides a kind of terminal, such as tablet personal computer, mobile phone mobile terminal, referring to Fig. 6, Fig. 6 is the present invention
The mobile terminal structure schematic diagram that embodiment is provided.The mobile terminal 500 can include one or more computers can
Read the memory 501 of storage medium, input block 502, display unit 503, voicefrequency circuit 504, Wireless Fidelity (WiFi,
Wireless Fidelity) module 505, include the part such as one or the processor 506 of more than one processing core.This
Art personnel are appreciated that the mobile terminal structure shown in Fig. 6 does not constitute the restriction to mobile terminal, can include
Than illustrating more or less parts, some parts or different parts arrangement are either combined.
Memory 501 can be used for storage application program and data.Include and can hold in the application program that memory 501 is stored
Line code.Application program can constitute various functions module.Processor 506 is stored in the application journey of memory 501 by operation
Sequence, so as to perform various function application and data processing.
Input block 502 can be used for numeral, character information or the user's characteristic information (such as fingerprint) for receiving input, and
Keyboard, mouse, action bars, optics or the trace ball signal relevant with user's setting and function control is produced to input.One
In embodiment, input block 502 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen
Or Trackpad.
Display unit 503 can be used for the information that is inputted by user of display or the information for being supplied to user and mobile terminal
Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.
Display unit 503 may include display panel.In one embodiment, liquid crystal display (LCD, Liquid can be used
Crystal Display), the form such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) matches somebody with somebody
Put display panel.
Voicefrequency circuit 504 can provide the COBBAIF between user and mobile terminal by loudspeaker, microphone.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and mobile terminal can be with by wireless fidelity module 505
Help user to send and receive e-mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet
Access.
Processor 506 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by operation or performs and is stored in application program in memory 501, and calls and be stored in memory 501
Data, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.In an embodiment
In, processor 508 may include one or more processing cores;
Although not shown in Fig. 6, mobile terminal can also include camera, bluetooth module etc., will not be repeated here.
Specifically in the present embodiment, processor 506 in mobile terminal can according to following instruction, by one or one with
On the corresponding executable code of process of application program be loaded into memory 501, and by processor 506 is stored in run
Application program in memory 501, so as to realize various functions:
When being carried out data transmission by terminal applies and audio-frequence player device, if receiving for indicating that the application is entered
The instruction of row version updating, then create the first process;It is determined that the second process corresponding with the application, and obtain described second and enter
The time of running data of journey;By interprocess communication, the time of running data transfer of second process to described first is entered
Journey;Based on the first process for getting the second process time of running data, terminal and the audio-frequence player device are set up
Data transfer is connected, to respond the data transfer request of the audio-frequence player device.
Processor 506 is connected with the data transfer of the audio-frequence player device having performed the terminal of setting up, to respond
After the step of data transfer request of the audio-frequence player device, following steps are can also carry out:The instruction is rung
Should, and version updating is carried out to the application.
Processor 506 can also carry out following steps:After the completion of the version updating of the application is detected, triggering terminal
Create the 3rd process corresponding to the application after the completion of version updating;The time of running data of first process are obtained, and are led to
Interprocess communication is crossed, by the time of running data transfer of first process to the 3rd process;Based on getting described
3rd process of one process time of running data, the data transfer for setting up terminal with the audio-frequence player device is connected, to respond
The data transfer request of the audio-frequence player device.
Processor 506 is performing described after the completion of the version updating of the application is detected, triggering terminal establishment correspondence
When the step of the 3rd process of the application after the completion of version updating, it can include:When the version updating for detecting the application
After the completion of, detect whether first process is terminated;If detecting, first process is not terminated, and triggering terminal is created
Corresponding to the 3rd process of the application after the completion of version updating.
Processor 506 is performing described based on the 3rd process for getting the first process time of running data, builds
Vertical terminal is connected with the data transfer of the audio-frequence player device, to respond the data transfer request of the audio-frequence player device
After step, it can also comprise the following steps:Terminate first process.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment
Point, the detailed description above with respect to data transfer control method is may refer to, here is omitted.
The data transfer controller provided in an embodiment of the present invention and the Data Transmission Controlling side in foregoing embodiments
It is owned by France in same design, can run in the data transfer control method embodiment and carry on the data transfer controller
The either method of confession, it implements process and refers to the data transfer control method embodiment, and here is omitted.
It should be noted that for data transfer control method described in the embodiment of the present invention, this area common test people
Member is appreciated that to realize all or part of flow of data transfer control method described in the embodiment of the present invention, can be by calculating
Machine program controls the hardware of correlation to complete, and the computer program can be stored in a computer read/write memory medium,
Such as storage in memory, and by least one computing device, Data Transmission Controlling as described is may include in the process of implementation
The flow of the embodiment of method.Wherein, described storage medium can be magnetic disc, CD, read-only storage (ROM, Read Only
Memory), random access memory (RAM, Random Access Memory) etc..
For the data transfer controller of the embodiment of the present invention, its each functional module can be integrated at one
Reason chip in or modules be individually physically present, can also two or more modules be integrated in a module
In.Above-mentioned integrated module can both be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.Institute
If stating integrated module to realize and as independent production marketing or in use, can also deposit using in the form of software function module
Storage is in a computer read/write memory medium, and the storage medium is for example read-only storage, disk or CD etc..
A kind of data transfer control method, device and the terminal provided above the embodiment of the present invention has been carried out in detail
Introduce, specific case used herein is set forth to the principle and embodiment of the present invention, the explanation of above example
It is only intended to the method and its core concept for helping to understand the present invention;Simultaneously for those skilled in the art, according to the present invention
Thought, will change in specific embodiments and applications, in summary, this specification content should not be understood
For limitation of the present invention.
Claims (11)
1. a kind of data transfer control method, it is characterised in that methods described includes:
When being carried out data transmission by terminal applies and audio-frequence player device, if receiving for indicating that the application carries out version
The instruction of this renewal, then create the first process;
It is determined that the second process corresponding with the application, and obtain the time of running data of second process;
By interprocess communication, by the time of running data transfer of second process to first process;
Based on the first process for getting the second process time of running data, terminal and the audio-frequence player device are set up
Data transfer is connected, to respond the data transfer request of the audio-frequence player device.
2. data transfer control method according to claim 1, it is characterised in that set up terminal and the audio described
After the step of data transfer connection of playback equipment, data transfer request to respond the audio-frequence player device, in addition to:
The instruction is responded, and version updating is carried out to the application.
3. data transfer control method according to claim 2, it is characterised in that methods described also includes:
After the completion of the version updating of the application is detected, triggering terminal is created corresponding to the application after the completion of version updating
3rd process;
The time of running data of first process are obtained, and by interprocess communication, by the time of running of first process
Data transfer is to the 3rd process;
Based on the 3rd process for getting the first process time of running data, terminal and the audio-frequence player device are set up
Data transfer is connected, to respond the data transfer request of the audio-frequence player device.
4. data transfer control method according to claim 3, it is characterised in that described when the version for detecting the application
After the completion of this renewal, triggering terminal creates the 3rd process corresponding to the application after the completion of version updating, including:
After the completion of the version updating of the application is detected, detect whether first process is terminated;
If detecting, first process is not terminated, and triggering terminal creates the of the application corresponded to after the completion of version updating
Three processes.
5. the data transfer control method according to claim 3 or 4, it is characterised in that described described based on getting
3rd process of the first process time of running data, the data transfer for setting up terminal with the audio-frequence player device is connected, with sound
After the step of answering the data transfer request of the audio-frequence player device, in addition to:
Terminate first process.
6. a kind of data transfer controller, it is characterised in that described device includes:
Creation module, for when being carried out data transmission by terminal applies and audio-frequence player device, if receiving for indicating
The application carries out the instruction of version updating, then creates the first process;
Acquisition module, for determining the second process corresponding with the application, and obtains the time of running number of second process
According to;
Transport module, for by interprocess communication, the time of running data transfer of second process to described first to be entered
Journey;
Respond module, for based on the first process for getting the second process time of running data, set up terminal with it is described
The data transfer connection of audio-frequence player device, to respond the data transfer request of the audio-frequence player device.
7. data transfer controller according to claim 6, it is characterised in that described device also includes:
Update module, for being responded to the instruction, and carries out version updating to the application.
8. data transfer controller according to claim 7, it is characterised in that described device also includes:Trigger module,
For
After the completion of the version updating of the application is detected, triggering terminal is created corresponding to the application after the completion of version updating
3rd process;
The time of running data of first process are obtained, and by interprocess communication, by the time of running of first process
Data transfer is to the 3rd process;
Based on the 3rd process for getting the first process time of running data, terminal and the audio-frequence player device are set up
Data transfer is connected, to respond the data transfer request of the audio-frequence player device.
9. data transfer controller according to claim 8, it is characterised in that the trigger module is used for:
After the completion of the version updating of the application is detected, detect whether first process is terminated;
If detecting, first process is not terminated, and triggering terminal creates the of the application corresponded to after the completion of version updating
Three processes.
10. data transfer controller according to claim 8 or claim 9, it is characterised in that described device also includes:
Module is terminated, for terminating first process.
11. a kind of terminal, including memory, processor, and be stored in the memory and can be transported in the processor
Capable computer program, it is characterised in that realize in claim 1 to 5 and appoint during computer program described in the computing device
The step in data transfer control method described in meaning one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710209386.0A CN107015874B (en) | 2017-03-31 | 2017-03-31 | Data transmission control method, device and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710209386.0A CN107015874B (en) | 2017-03-31 | 2017-03-31 | Data transmission control method, device and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107015874A true CN107015874A (en) | 2017-08-04 |
CN107015874B CN107015874B (en) | 2020-01-14 |
Family
ID=59446328
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710209386.0A Active CN107015874B (en) | 2017-03-31 | 2017-03-31 | Data transmission control method, device and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107015874B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112883220A (en) * | 2021-01-22 | 2021-06-01 | 北京雷石天地电子技术有限公司 | Audio processing method, audio processing apparatus, and readable storage medium |
CN113572797A (en) * | 2020-04-29 | 2021-10-29 | 阿里巴巴集团控股有限公司 | Data processing method, device and system and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102033758A (en) * | 2009-09-25 | 2011-04-27 | 深圳市福智软件技术有限公司 | Firmware updating method of audio playing device and system using same |
CN104965730A (en) * | 2015-06-02 | 2015-10-07 | 广东欧珀移动通信有限公司 | Version upgrading method and system |
-
2017
- 2017-03-31 CN CN201710209386.0A patent/CN107015874B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102033758A (en) * | 2009-09-25 | 2011-04-27 | 深圳市福智软件技术有限公司 | Firmware updating method of audio playing device and system using same |
CN104965730A (en) * | 2015-06-02 | 2015-10-07 | 广东欧珀移动通信有限公司 | Version upgrading method and system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113572797A (en) * | 2020-04-29 | 2021-10-29 | 阿里巴巴集团控股有限公司 | Data processing method, device and system and electronic equipment |
CN112883220A (en) * | 2021-01-22 | 2021-06-01 | 北京雷石天地电子技术有限公司 | Audio processing method, audio processing apparatus, and readable storage medium |
CN112883220B (en) * | 2021-01-22 | 2023-05-26 | 北京雷石天地电子技术有限公司 | Audio processing method, audio processing device and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107015874B (en) | 2020-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108062190B (en) | Application running state control method and mobile terminal | |
CN111046150A (en) | Human-computer interaction processing system and method, storage medium and electronic device | |
CN107734616B (en) | Application program closing method and device, storage medium and electronic equipment | |
KR20190077059A (en) | Virtual assistant identification near the computing device | |
EP3441874B1 (en) | Scene sound effect control method, and electronic device | |
CN107112015A (en) | It was found that third party enables the ability of the resource of voice | |
US10506292B2 (en) | Video player calling method, apparatus, and storage medium | |
CN108228222A (en) | A kind of upgrade method of firmware data, mobile terminal and computer storage media | |
WO2015062413A1 (en) | Terminal account managing method and device cross-reference to related applications | |
CN107038046B (en) | Method and device for upgrading audio playing system and terminal | |
CN106406924B (en) | Control method and device for starting and quitting picture of application program and mobile terminal | |
WO2017215635A1 (en) | Sound effect processing method and mobile terminal | |
TW201515682A (en) | Methods and terminal for data acquisition | |
US20200336875A1 (en) | Scenario-based sound effect control method and electronic device | |
US20150043312A1 (en) | Sound playing method and device thereof | |
US9965733B2 (en) | Method, apparatus, and communication system for updating user data based on a completion status of a combination of business task and conversation task | |
CN107015874A (en) | Data transfer control method, device and terminal | |
CN106919458B (en) | Method and device for Hook target kernel function | |
WO2019179068A1 (en) | Risk detection method and device, and mobile terminal and storage medium | |
CN111359210B (en) | Data processing method and device, electronic equipment and storage medium | |
US20150163612A1 (en) | Methods and apparatus for implementing sound events | |
CN109218313A (en) | A kind of method, equipment and the storage medium of supervision application | |
CN112199246A (en) | Terminal testing method and device, storage medium and mobile terminal | |
CN104391742B (en) | Optimizing application method and apparatus | |
WO2015184959A2 (en) | Method and apparatus for playing behavior event |
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 523860 usha Beach Road No. 18 Applicant before: Guangdong Opel Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |