CN107015874B - Data transmission control method, device and terminal - Google Patents

Data transmission control method, device and terminal Download PDF

Info

Publication number
CN107015874B
CN107015874B CN201710209386.0A CN201710209386A CN107015874B CN 107015874 B CN107015874 B CN 107015874B CN 201710209386 A CN201710209386 A CN 201710209386A CN 107015874 B CN107015874 B CN 107015874B
Authority
CN
China
Prior art keywords
data transmission
terminal
application
audio playing
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.)
Active
Application number
CN201710209386.0A
Other languages
Chinese (zh)
Other versions
CN107015874A (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 CN201710209386.0A priority Critical patent/CN107015874B/en
Publication of CN107015874A publication Critical patent/CN107015874A/en
Application granted granted Critical
Publication of CN107015874B publication Critical patent/CN107015874B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Abstract

The embodiment of the invention discloses a data transmission control method, a data transmission control device and a terminal. The data transmission control method comprises the following steps: when data transmission is carried out between a terminal application and an audio playing device, if an instruction for indicating the application to carry out version updating is received, a first process is established; determining a second process corresponding to the application, and acquiring running time data of the second process; transmitting the running time data of the second process to the first process through interprocess communication; and establishing data transmission connection between the terminal and the audio playing equipment based on the first process for acquiring the data of the running time of the second process so as to respond to the data transmission request of the audio playing equipment. The embodiment of the invention can improve the flexibility of data transmission between the terminal and the audio playing equipment and improve the playing effect.

Description

Data transmission control method, device and terminal
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a data transmission control method, a data transmission control device and a terminal.
Background
Currently, intelligent wireless audio playing devices (hereinafter referred to as audio playing devices) are becoming more and more popular. The audio playing device can form an intelligent playing system with a mobile terminal (such as a mobile phone) so as to meet the requirements of users on entertainment and life.
When the mobile terminal performs data transmission with the audio playing device through the dedicated terminal application, if the dedicated application needs to perform version update, the mobile terminal may temporarily interrupt data transmission with the audio playing device, which may cause the audio playing device to be unable to continuously obtain data from the mobile terminal, that is, the flexibility of data transmission between the mobile terminal and the audio playing device is poor, and the playing effect is affected.
Disclosure of Invention
Embodiments of the present invention provide a data transmission control method, an apparatus, and a terminal, which can improve flexibility of data transmission between the terminal and an audio playing device and improve a playing effect.
The embodiment of the invention provides a data transmission control method, which comprises the following steps:
when data transmission is carried out between a terminal application and an audio playing device, if an instruction for indicating the application to carry out version updating is received, a first process is established;
determining a second process corresponding to the application, and acquiring running time data of the second process;
transmitting the running time data of the second process to the first process through inter-process communication;
and establishing data transmission connection between the terminal and the audio playing equipment based on the first process for acquiring the data of the running time of the second process so as to respond to a data transmission request of the audio playing equipment.
An embodiment of the present invention provides a data transmission control apparatus, including:
the system comprises a creating module, a first processing module and a second processing module, wherein the creating module is used for creating a first process if an instruction for indicating the application to update the version is received when data transmission is carried out between the terminal application and the audio playing equipment;
the acquisition module is used for determining a second process corresponding to the application and acquiring the running time data of the second process;
the transmission module is used for transmitting the running time data of the second process to the first process through interprocess communication;
and the response module is used for establishing data transmission connection between the terminal and the audio playing equipment based on the first process for acquiring the data of the running time of the second process so as to respond to the data transmission request of the audio playing equipment.
The embodiment of the present invention further provides a terminal, where the terminal includes a memory, a processor, and a computer program that is stored in the memory and can be run in the processor, and when the processor executes the computer program, the steps in the data transmission control method provided in the embodiment of the present invention are implemented.
According to the data transmission control method, the data transmission control device and the terminal provided by the embodiment of the invention, when the terminal performs data transmission with the audio playing equipment through the application, if an instruction for instructing the application to perform version updating is received, the terminal can firstly establish a first process. Then, the terminal may determine a second process corresponding to the application, and obtain runtime data of the second process. And then, the terminal can transmit the acquired running time data of the second process to the first process through inter-process communication. After that, the terminal may establish a data transmission connection between the terminal and the audio playing device based on the first process that has acquired the data of the running time of the second process, so as to respond to the data transmission request of the audio playing device. According to the embodiment of the invention, when the version of the application which is used for data transmission between the terminal and the audio playing equipment needs to be updated, the terminal establishes a new process to take over the process corresponding to the application so as to respond to the data transmission request of the audio playing equipment, so that the data transmission interruption caused by the fact that the terminal application cannot respond to the data transmission request of the audio playing equipment during version updating is avoided.
Drawings
The technical solution and the advantages of the present invention will be apparent from the following detailed description of the embodiments of the present invention with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a data transmission control method according to an embodiment of the present invention.
Fig. 2 is another flow chart of a data transmission control method according to an embodiment of the present invention.
Fig. 3A to fig. 3C are schematic views of a scenario of a data transmission control method according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a data transmission control apparatus according to an embodiment of the present invention.
Fig. 5 is another schematic structural diagram of a data transmission control apparatus according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present invention are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be taken as limiting the invention with regard to other embodiments that are not detailed herein.
As will be described in detail below.
Referring to fig. 1, fig. 1 is a schematic flow chart of a data transmission control method according to an embodiment of the present invention, where the flow chart may include:
in step S101, when data transmission is performed between the terminal application and the audio playback device, if an instruction for instructing the application to perform version update is received, a first process is created.
It is understood that the execution subject of the embodiment of the present invention may be a terminal device such as a smart phone, a tablet computer, and the like.
For example, when the mobile terminal performs data transmission with an audio playing device such as a WiFi (wireless fidelity) sound box through a dedicated terminal application, if the dedicated application needs to perform version update, the mobile terminal may temporarily interrupt data transmission with the audio playing device, which may cause the audio playing device to be unable to continuously obtain data from the mobile terminal, that is, the flexibility of data transmission between the mobile terminal and the audio playing device is poor, and the playing effect is affected.
In step S101 of the embodiment of the present invention, when the terminal performs data transmission with the audio playing device through the application, if the mobile terminal receives an instruction for instructing the application to perform version update, the mobile terminal may be triggered to create a new process, that is, a first process.
In step S102, a second process corresponding to the application is determined, and runtime data of the second process is acquired.
For example, after the first process is newly created, the terminal may determine a second process corresponding to the application, and obtain running time (runtime) data of the second process, that is, obtain running data of the second process. It is understood that the second process is a process corresponding to the application in the terminal for data transmission with the audio playing device at this time.
In step S103, the runtime data of the second process is transmitted to the first process through inter-process communication.
For example, after acquiring the running time data of the second process, the terminal may transmit the running time data of the second process to the first process through inter-process communication.
Inter-Process Communication (Inter-Process Communication) is a technology that enables data Communication between different processes. For example, if the terminal is installed with an Android operating system (Android operating system), the terminal may use an Aid Interface Definition Language (AIDL) process communication technology to implement communication between different processes. As another example, in an android operating system, Messenger-based technologies may also be used to implement cross-process communications, and so on. It is to be understood that the present invention is not limited thereto.
In step S104, based on the first process that acquires the data at the running time of the second process, a data transmission connection between the terminal and the audio playback device is established, so as to respond to a data transmission request of the audio playback device.
For example, after the first process acquires the runtime data of the second process, the terminal may establish a data transmission connection with the audio playing device based on the current first process, so as to respond to a data transmission request of the audio playing device.
It can be understood that the runtime data of the second process includes data related to the data transmission connection established between the terminal and the audio playback device (through the application), so that after the runtime data of the second process is transmitted to the first process, the terminal can establish the data transmission connection with the audio playback device based on the first process. That is to say, after acquiring the running time data of the second process, the first process may take over the data transmission connection between the terminal originally managed by the second process and the audio playing device.
It can be understood that, in this embodiment, when an application being used for data transmission between a terminal and an audio playing device needs to perform version update, the terminal creates a new process to take over a process corresponding to the application, and establishes a data transmission connection between the terminal and the audio playing device based on the new process to respond to a data transmission request of the audio playing device, so as to avoid data transmission interruption between the terminal and the audio playing device due to the fact that the application cannot respond to the data transmission request of the audio playing device when performing version update, that is, the embodiment of the present invention can improve flexibility of data transmission between the terminal and the audio playing device, and improve a playing effect.
Referring to fig. 2, fig. 2 is another schematic flow chart of a data transmission control method according to an embodiment of the present invention, where the flow chart may include:
in step S201, when the terminal performs data transmission with the audio playback device through the application, if an instruction for instructing the application to perform version update is received, the terminal creates a first process.
For example, in the process that the terminal establishes a data transmission connection with the audio playing device through a certain preset application and transmits the local audio data of the terminal to the audio playing device, if an instruction for instructing the application to perform version update is received, the terminal may first create a new process, that is, a first process.
In step S202, the terminal determines a second process corresponding to the application, and acquires runtime data of the second process.
For example, after the first process is newly created, the terminal may determine a second process corresponding to the application, and obtain runtime (runtime) data of the second process. It is understood that the second process is a process corresponding to the application in the terminal for data transmission with the audio playing device at this time.
In step S203, the terminal transmits the runtime data of the second process to the first process through inter-process communication.
For example, after acquiring the running time data of the second process, the terminal may transmit the running time data of the second process to the first process through inter-process communication.
Inter-process communication is a technique by which data can be communicated between different processes. For example, if the terminal is installed with an Android operating system, the terminal may use an AIDL (Android Interface definition language) process communication technology to implement communication between different processes. As another example, in an android operating system, Messenger-based technologies may also be used to implement cross-process communications, and so on. It is to be understood that the present invention is not limited thereto.
In step S204, based on the first process that acquires the data at the running time of the second process, the terminal establishes a data transmission connection with the audio playback device to respond to the data transmission request of the audio playback device.
For example, after the first process acquires the runtime data of the second process, the terminal may establish a data transmission connection with the audio playing device based on the current first process, so as to respond to a data transmission request of the audio playing device. For example, the local audio data stored in the terminal is transmitted to the audio playing device by the first process for playing.
It can be understood that the runtime data of the second process includes data related to the data transmission connection established between the terminal and the audio playback device (through the application), so that after the runtime data of the second process is transmitted to the first process, the terminal can establish the data transmission connection with the audio playback device based on the first process. That is to say, after acquiring the running time data of the second process, the first process may take over the data transmission connection between the terminal originally managed by the second process and the audio playing device.
In step S205, the terminal responds to the instruction for instructing the application to perform version update, and performs version update on the application.
For example, after the terminal establishes a data transmission connection with the audio playback device based on the first process that has acquired the data at the running time of the second process, the terminal may respond to a previously received instruction for instructing the application to perform version update, and update the version of the application according to the instruction.
It is understood that, during the course of updating the version of the application by the terminal, the first process responds to the data transmission request between the terminal and the audio playing device and completes the data transmission, and the application will no longer respond to the data transmission request of the audio playing device.
In step S206, upon detecting that the version update of the application is completed, the terminal creates a third process corresponding to the application after the version update is completed.
For example, when it is detected that the version update of the application has been completed, the terminal may restart the application and create a third process corresponding to the application after the version update is completed.
In one embodiment, step S206 may include the following steps:
detecting whether the first process is terminated or not after detecting that the version of the application is updated;
and if the first process is not detected to be terminated, the terminal creates a third process corresponding to the application after the version updating is completed.
For example, after detecting that the version update of the application is completed, the terminal may detect whether it still maintains a data transmission connection with the audio playing device through the first process, that is, the terminal detects whether the first process is terminated.
If the terminal detects that the first process is not terminated, the terminal may restart the application and create a third process corresponding to the application after the version update is completed.
If the terminal detects that the first process is terminated, the terminal may perform other operations without restarting the application. For example, during the version update of the application, the user interrupts the data transmission between the terminal and the audio playback device because the audio playback is no longer needed, that is, the first process for data transmission between the terminal and the audio playback device is terminated. Then, in this case, the terminal may perform other operations.
In step S207, the terminal acquires the runtime data of the first process, and transmits the runtime data of the first process to the third process through inter-process communication.
In step S208, based on the third process that acquires the running time data of the first process, the terminal establishes a data transmission connection with the audio playing device to respond to the data transmission request of the audio playing device.
For example, steps S207 and S208 may include:
after creating the third process corresponding to the updated application, the terminal may acquire the runtime data of the first process, and transmit the acquired runtime data of the first process to the third process through inter-process communication.
Then, the terminal may establish a data transmission connection between the terminal and the audio playing device based on the third process that has acquired the data at the running time of the first process, so as to respond to the data transmission request of the audio playing device.
That is, after detecting that the application completes the version-up, the terminal may create a third process of the application corresponding to the completed version-up, and take over the data transmission connection between the terminal and the audio playback device previously established by the first process by the third process in response to the data transmission request of the audio playback device. That is, the third process will complete the data transmission between the terminal and the audio playing device. For example, the third process transmits the local audio data stored in the terminal to the audio playing device for playing.
In step S209, the terminal terminates the first process.
For example, after the third process takes over the data transmission connection between the terminal and the audio playing device established by the first process, the terminal may end the first process, i.e., terminate the first process.
It can be understood that, in this embodiment, when an application being used for data transmission between a terminal and an audio playing device needs to perform version update, the terminal creates a new process to take over a process corresponding to the application, and establishes a data transmission connection between the terminal and the audio playing device based on the new process to respond to a data transmission request of the audio playing device, so as to avoid interruption of data transmission between the terminal and the audio playing device due to the fact that the application cannot respond to the data transmission request of the audio playing device when performing version update. That is, the embodiment of the present invention can keep the data transmission between the terminal and the audio playing device uninterrupted while the version of the application is updated.
In addition, the embodiment of the invention can take over the data transmission connection between the terminal and the audio playing device again by the application after the application is updated. Therefore, the embodiment of the invention can improve the flexibility of data transmission between the terminal and the audio playing equipment.
Referring to fig. 3A to 3C, fig. 3A to 3C are schematic views of a scenario of a data transmission control method according to an embodiment of the present invention.
For example, the mobile terminal establishes a data transmission connection with an audio playing device through a certain preset application, and transmits the audio data stored locally in the mobile terminal to the audio playing device for playing. As shown in fig. 3A, the mobile terminal needs to transmit the audio a to the audio E in the local audio list to the audio playing device for playing.
In the process of data transmission between the mobile terminal and the audio playing device, the mobile terminal detects that the application has a new version, and inquires the user whether to update the version of the application, where an interface of the mobile terminal may be as shown in fig. 3B.
For example, as shown in FIG. 3C, the user has clicked the button "YES," and has selected to make a version update to the application. At this time, the mobile terminal receives an instruction for instructing a version update of the application, in which case the mobile terminal may first create the first process.
Then, the mobile terminal may determine a second process corresponding to the application, and obtain runtime data of the second process. The second process is a process corresponding to the application in the terminal for data transmission with the audio playing device at this time.
After the running time data of the second process is acquired, the terminal can transmit the running time data of the second process to the first process through inter-process communication. Then, the mobile terminal may establish a data transmission connection with the audio playing device based on the first process, and respond to a data transmission request of the audio playing device. That is, the first process takes over the data transmission connection between the mobile terminal and the audio playing device, which was managed by the second process.
When detecting that the version update of the application is completed, the mobile terminal may restart the application and detect whether the first process is terminated.
For example, it is detected at this time that the first process is not terminated, that is, the mobile terminal still maintains the data transmission connection with the audio playing device through the first process. In this case, the mobile terminal may create a third process corresponding to the application after the version update is completed. Then, the mobile terminal may obtain the running time data of the first process at this time, and transmit the running time data of the first process to the third process through inter-process communication.
After the third process acquires the running time data of the first process, the mobile terminal may establish a data transmission connection with the audio playing device based on the third process. That is, the data transmission connection between the mobile terminal and the audio playback device, which was previously managed by the first process, is taken over by the third process at this time.
Thereafter, the mobile terminal may terminate the first process described above.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a data transmission control device according to an embodiment of the present invention. The data transmission control device 300 may include: a creation module 301, an acquisition module 302, a transmission module 303, and a response module 304.
The creating module 301 is configured to, when data transmission is performed between a terminal application and an audio playing device, create a first process if an instruction for instructing the application to perform version update is received.
For example, in the process that the terminal establishes a data transmission connection with an audio playing device through a certain preset application and performs data transmission, if an instruction for instructing the application to perform version update is received, a new process, that is, a first process, may be created by the creation module 301 of the terminal first.
An obtaining module 302, configured to determine a second process corresponding to the application, and obtain runtime data of the second process.
For example, after the creating module 301 newly creates the first process, the obtaining module 302 may determine a second process corresponding to the application in the terminal, and obtain running time (runtime) data of the second process. It is understood that the second process is a process corresponding to the application in the terminal for data transmission with the audio playing device at this time.
A transmission module 303, configured to transmit the runtime data of the second process to the first process through inter-process communication.
For example, after the obtaining module 302 obtains the runtime data of the second process, the transmitting module 303 may transmit the runtime data of the second process to the first process through inter-process communication.
Inter-process communication is a technique by which data can be communicated between different processes. For example, if the terminal is installed with an Android operating system, the terminal may use an AIDL (Android Interface definition language) process communication technology to implement communication between different processes. As another example, in an android operating system, Messenger-based technologies may also be used to implement cross-process communications, and so on. It is to be understood that the present invention is not limited thereto.
A response module 304, configured to establish a data transmission connection between the terminal and the audio playing device based on the first process that acquires the data of the running time of the second process, so as to respond to a data transmission request of the audio playing device.
For example, after the first process acquires the runtime data of the second process, the response module 304 may establish a data transmission connection between the terminal and the audio playing device based on the first process at that time, so as to respond to the data transmission request of the audio playing device. For example, the local audio data stored in the terminal is transmitted to the audio playing device by the first process for playing.
It can be understood that the runtime data of the second process includes data related to the data transmission connection established between the terminal and the audio playback device (through the application), so that after the runtime data of the second process is transmitted to the first process, the terminal can establish the data transmission connection with the audio playback device based on the first process. That is to say, after acquiring the running time data of the second process, the first process may take over the data transmission connection between the terminal originally managed by the second process and the audio playing device.
Referring to fig. 5, fig. 5 is another schematic structural diagram of a data transmission control device according to an embodiment of the present invention. In an embodiment, the data transmission control device 300 may further include: an update module 305, a trigger module 306, and a termination module 307.
An update module 305, configured to respond to the instruction and perform a version update on the application.
For example, after the response module 304 establishes a data transmission connection between the terminal and the audio playback device based on the first process that has acquired the running time data of the second process, the update module 305 may respond to a previously received instruction for instructing the application to perform version update, and update the version of the application according to the instruction.
It is understood that, during the course of updating the version of the application by the terminal, the first process responds to the data transmission request between the terminal and the audio playing device and completes the data transmission, and the application will no longer respond to the data transmission request of the audio playing device.
The triggering module 306 is configured to, when it is detected that the version update of the application is completed, trigger the terminal to create a third process corresponding to the application after the version update is completed; acquiring the running time data of the first process, and transmitting the running time data of the first process to the third process through inter-process communication; and establishing data transmission connection between the terminal and the audio playing equipment based on a third process for acquiring the data of the running time of the first process so as to respond to a data transmission request of the audio playing equipment.
For example, when the terminal detects that the version update of the application is completed, the triggering module 306 may trigger the terminal to restart the application and create a third process corresponding to the application after the version update is completed.
Then, the triggering module 306 may obtain the runtime data of the first process, and transmit the obtained runtime data of the first process to the third process through inter-process communication.
Thereafter, the triggering module 306 may establish a data transmission connection between the terminal and the audio playing device based on the third process that has acquired the data at the running time of the first process, so as to respond to the data transmission request of the audio playing device.
That is, after the terminal detects that the application completes the version update, the triggering module 306 may create a third process corresponding to the application that completes the version update, and take over the data transmission connection between the terminal and the audio playback device previously established by the first process by the third process in response to the data transmission request of the audio playback device. That is, the third process will complete the data transmission between the terminal and the audio playing device. For example, the third process transmits the local audio data stored in the terminal to the audio playing device for playing.
In one embodiment, the triggering module 306 may be configured to:
detecting whether the first process is terminated or not after detecting that the version of the application is updated;
and if the first process is not detected to be terminated, the terminal creates a third process corresponding to the application after the version updating is completed.
For example, after the terminal detects that the version update of the application is completed, the triggering module 306 may detect whether the terminal maintains a data transmission connection with the audio playing device through the first process, that is, the triggering module 306 may detect whether the first process is terminated.
If it is detected that the first process is not terminated, the triggering module 306 may restart the application and create a third process corresponding to the application after the version update is completed.
If it is detected that the first process has been terminated, the terminal may perform other operations without restarting the application. For example, during the version update of the application, the user interrupts the data transmission between the terminal and the audio playback device because the audio playback is no longer needed, that is, the first process for data transmission between the terminal and the audio playback device is terminated. Then, in this case, the terminal may perform other operations.
A terminating module 307 configured to terminate the first process.
For example, after the third process takes over the data transmission connection between the terminal and the audio playing device established by the first process, the terminating module 307 may terminate the first process, that is, terminate the first process.
The present invention further provides a terminal, such as a mobile terminal, e.g., a tablet computer, a mobile phone, etc., please refer to fig. 6, and fig. 6 is a schematic structural diagram of the mobile terminal according to an embodiment of the present invention. The mobile terminal 500 may include components such as a memory 501 including one or more computer-readable storage media, an input unit 502, a display unit 503, an audio circuit 504, a Wireless Fidelity (WiFi) module 505, a processor 506 including one or more processing cores, and the like. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The memory 501 may be used to store applications and data. The memory 501 stores applications containing executable code. The application programs may constitute various functional modules. The processor 506 executes various functional applications and data processing by running the application program stored in the memory 501.
The input unit 502 may be used to receive input numbers, character information, or user characteristic information, such as a fingerprint, and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. In an embodiment, the input unit 502 may include a touch-sensitive surface as well as other input devices. Touch sensitive surfaces, also known as touch display screens or touch pads.
The display unit 503 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal, which may be configured by graphics, text, icons, video, and any combination thereof. The display unit 503 may include a display panel. In one embodiment, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The audio circuitry 504 may provide an audio interface between the user and the mobile terminal through a speaker, microphone.
Wireless fidelity (WiFi) belongs to short-range wireless transmission technology, and the mobile terminal can help the user to send and receive e-mail, browse web pages, access streaming media and the like through the wireless fidelity module 505, and provides wireless broadband internet access for the user.
The processor 506 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing an application program stored in the memory 501 and calling data stored in the memory 501, thereby integrally monitoring the mobile terminal. In an embodiment, processor 508 may include one or more processing cores;
although not shown in fig. 6, the mobile terminal may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
Specifically, in this embodiment, the processor 506 in the mobile terminal loads the executable code corresponding to the process of one or more application programs into the memory 501 according to the following instructions, and the processor 506 runs the application program stored in the memory 501, thereby implementing various functions:
when data transmission is carried out between a terminal application and an audio playing device, if an instruction for indicating the application to carry out version updating is received, a first process is established; determining a second process corresponding to the application, and acquiring running time data of the second process; transmitting the running time data of the second process to the first process through inter-process communication; and establishing data transmission connection between the terminal and the audio playing equipment based on the first process for acquiring the data of the running time of the second process so as to respond to a data transmission request of the audio playing equipment.
After the processor 506 completes the step of establishing the data transmission connection between the terminal and the audio playing device to respond to the data transmission request of the audio playing device, the following steps may also be executed: and responding to the instruction, and updating the version of the application.
Processor 506 may also perform the following steps: when detecting that the version of the application is updated, triggering the terminal to establish a third process corresponding to the application after the version is updated; acquiring the running time data of the first process, and transmitting the running time data of the first process to the third process through inter-process communication; and establishing data transmission connection between the terminal and the audio playing equipment based on a third process for acquiring the data of the running time of the first process so as to respond to a data transmission request of the audio playing equipment.
The processor 506, when performing the step of triggering the terminal to create the third process corresponding to the application after the version update of the application is completed, may include: detecting whether the first process is terminated or not after detecting that the version updating of the application is completed; and if the first process is not detected to be terminated, triggering the terminal to create a third process corresponding to the application after the version updating is completed.
After the step of establishing a data transmission connection between the terminal and the audio playing device based on the third process that acquires the running time data of the first process and responding to the data transmission request of the audio playing device is completed, the processor 506 may further include the following steps: terminating the first process.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the data transmission control method, and are not described herein again.
The data transmission control device provided in the embodiment of the present invention and the data transmission control method in the above embodiments belong to the same concept, and any one of the methods provided in the embodiments of the data transmission control method may be operated on the data transmission control device, and the specific implementation process thereof is described in detail in the embodiments of the data transmission control method, and is not described herein again.
It should be noted that, for the data transmission control method according to the embodiment of the present invention, it can be understood by a person skilled in the art that all or part of the process of implementing the data transmission control method according to the embodiment of the present invention can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and during the execution process, the process of the embodiment of the data transmission control method can be included. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the data transmission control apparatus according to the embodiment of the present invention, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The data transmission control method, the data transmission control device and the terminal provided by the embodiment of the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. A data transmission control method, characterized in that the method comprises:
when data transmission is carried out between a terminal application and an audio playing device, if an instruction for indicating the application to carry out version updating is received, a first process is established;
determining a second process corresponding to the application, and acquiring running time data of the second process, wherein the second process is a process which corresponds to the application in the current terminal and is used for carrying out data transmission with audio playing equipment;
transmitting the running time data of the second process to the first process through inter-process communication so that the first process takes over the data transmission connection between the terminal managed by the second process and the audio playing equipment;
establishing data transmission connection between a terminal and the audio playing equipment based on the first process for acquiring the data of the running time of the second process so as to respond to a data transmission request of the audio playing equipment;
and when detecting that the version of the application is updated, triggering the terminal to create a third process corresponding to the application after the version is updated, wherein the third process is used for taking over the data transmission connection between the terminal and the audio playing equipment, which is established by the first process.
2. The data transmission control method according to claim 1, further comprising, after the step of establishing a data transmission connection between the terminal and the audio playback device in response to a data transmission request from the audio playback device:
and responding to the instruction, and updating the version of the application.
3. The data transmission control method according to claim 2, wherein after the triggering the terminal to create the third process corresponding to the application after the version update of the application is completed is detected, the method further comprises:
acquiring the running time data of the first process, and transmitting the running time data of the first process to the third process through inter-process communication;
and establishing data transmission connection between the terminal and the audio playing equipment based on a third process for acquiring the data of the running time of the first process so as to respond to a data transmission request of the audio playing equipment.
4. The data transmission control method according to claim 3, wherein the triggering the terminal to create a third process corresponding to the application after the version update of the application is completed after detecting that the version update of the application is completed comprises:
detecting whether the first process is terminated or not after detecting that the version updating of the application is completed;
and if the first process is not detected to be terminated, triggering the terminal to create a third process corresponding to the application after the version updating is completed.
5. The data transmission control method according to claim 3 or 4, wherein after the step of establishing a data transmission connection between the terminal and the audio playback device based on the third process that acquires the data at the running time of the first process, so as to respond to the data transmission request of the audio playback device, the method further includes:
terminating the first process.
6. A data transmission control apparatus, characterized in that the apparatus comprises:
the system comprises a creating module, a first processing module and a second processing module, wherein the creating module is used for creating a first process if an instruction for indicating the application to update the version is received when data transmission is carried out between the terminal application and the audio playing equipment;
the acquisition module is used for determining a second process corresponding to the application and acquiring running time data of the second process, wherein the second process is a process which corresponds to the application in the current terminal and is used for carrying out data transmission with audio playing equipment;
the transmission module is used for transmitting the running time data of the second process to the first process through inter-process communication so as to enable the first process to take over the data transmission connection between the terminal originally managed by the second process and the audio playing equipment;
the response module is used for establishing data transmission connection between the terminal and the audio playing equipment based on the first process for acquiring the data of the running time of the second process so as to respond to a data transmission request of the audio playing equipment;
and the triggering module is used for triggering the terminal to establish a third process corresponding to the application after the version updating of the application is finished when the completion of the version updating of the application is detected, wherein the third process is used for taking over the data transmission connection between the terminal and the audio playing equipment established by the first process.
7. The data transmission control device according to claim 6, characterized in that the device further comprises:
and the updating module is used for responding to the instruction and updating the version of the application.
8. The data transmission control device of claim 7, wherein the triggering module is further configured to:
acquiring the running time data of the first process, and transmitting the running time data of the first process to the third process through inter-process communication;
and establishing data transmission connection between the terminal and the audio playing equipment based on a third process for acquiring the data of the running time of the first process so as to respond to a data transmission request of the audio playing equipment.
9. The data transmission control device of claim 8, wherein the triggering module is configured to:
detecting whether the first process is terminated or not after detecting that the version updating of the application is completed;
and if the first process is not detected to be terminated, triggering the terminal to create a third process corresponding to the application after the version updating is completed.
10. The data transmission control device according to claim 8 or 9, characterized in that the device further comprises:
a termination module to terminate the first process.
11. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable in the processor, wherein the processor implements the steps in the data transmission control method according to any one of claims 1 to 5 when executing the computer program.
12. A computer-readable storage medium storing a computer program, wherein the computer program is executable by a processor to implement the method of any one of claims 1 to 5.
CN201710209386.0A 2017-03-31 2017-03-31 Data transmission control method, device and terminal Active CN107015874B (en)

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 CN107015874A (en) 2017-08-04
CN107015874B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
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
CN112883220B (en) * 2021-01-22 2023-05-26 北京雷石天地电子技术有限公司 Audio processing method, audio processing device and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN107015874A (en) 2017-08-04

Similar Documents

Publication Publication Date Title
CN108062190B (en) Application running state control method and mobile terminal
KR102148948B1 (en) Multi tasking method of electronic apparatus and electronic apparatus thereof
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
CN108196947B (en) Application running state control method and mobile terminal
CN109857403B (en) Page updating method and device, page processing method and device
CN106502703B (en) Function calling method and device
WO2018077041A1 (en) Method and apparatus for running application
CN108170361B (en) Application running state control method and mobile terminal
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
CN108681427B (en) Access right control method and terminal equipment
CN106713608B (en) Application function state modification method and device and terminal
WO2014206138A1 (en) Webpage data update method, apparatus and terminal device
CN108090345B (en) Linux system external command execution method and device
US10262648B2 (en) Method for controlling interference in audio service and terminal
CN108874554B (en) Information communication method and device
WO2014166307A1 (en) Method for determining performance of process of application and computer system
US20200004578A1 (en) Method for fingerprint recognition and related products
CN107015874B (en) Data transmission control method, device and terminal
CN114327087A (en) Input event processing method and device, electronic equipment and storage medium
KR101876394B1 (en) Method and device for playing media data on a terminal
CN106919458B (en) Method and device for Hook target kernel function
CN112199246A (en) Terminal testing method and device, storage medium and mobile terminal
CN109658926B (en) Voice instruction updating method and mobile terminal
CN110955436A (en) Application program installation method and electronic equipment

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