CN114510444A - Control method and control device of OTG interface and terminal equipment - Google Patents

Control method and control device of OTG interface and terminal equipment Download PDF

Info

Publication number
CN114510444A
CN114510444A CN202210030313.6A CN202210030313A CN114510444A CN 114510444 A CN114510444 A CN 114510444A CN 202210030313 A CN202210030313 A CN 202210030313A CN 114510444 A CN114510444 A CN 114510444A
Authority
CN
China
Prior art keywords
otg
terminal device
layer
otg interface
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210030313.6A
Other languages
Chinese (zh)
Other versions
CN114510444B (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202410281789.6A priority Critical patent/CN118113649A/en
Priority to CN202210030313.6A priority patent/CN114510444B/en
Priority claimed from CN202210030313.6A external-priority patent/CN114510444B/en
Publication of CN114510444A publication Critical patent/CN114510444A/en
Application granted granted Critical
Publication of CN114510444B publication Critical patent/CN114510444B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a control method, a control device and a terminal device for an OTG interface of a connecting wire, which are applied to the terminal device, wherein the terminal device comprises the OTG interface, and the method comprises the following steps: and if the terminal equipment is determined to be in a screen-off state, the terminal equipment detects that the OTG equipment is not connected with the terminal equipment and determines that the terminal equipment is not occupied by the voice resource, and then the OTG interface is powered off. Under the prerequisite that does not influence the user and use terminal equipment, through with the power failure of OTG interface, realize reducing the time of OTG interface work to reduce the OTG interface because of the time that electrochemical reaction is corroded, reduce the injury that the OTG interface is corroded and bring.

Description

Control method and control device of OTG interface and terminal equipment
Technical Field
The invention relates to the technical field of computers, in particular to a control method and a control device of an OTG interface and terminal equipment.
Background
With The continuous development of technology, an On-The-Go (OTG) technology is applied to more and more terminal devices. After the OTG function of the terminal equipment is started, the terminal equipment can be directly connected with a flash disk (USB), a keyboard, a printer and other equipment through an OTG data line to carry out data transmission.
However, when the OTG interface is in a severe environment such as a humid environment, an electrochemical reaction may occur between the pins of the OTG interface, which may cause the pins to be corroded, which may affect the service life of the OTG interface, and even may cause the OTG interface to be damaged if the corrosion is severe, which may not be used normally. However, the electrochemical reaction generated by the OTG interface is considered to exist objectively at present.
In summary, how to reduce the damage of the OTG interface caused by the pin corrosion due to the electrochemical reaction in the harsh environment such as humidity is a technical problem that needs to be solved at present.
Disclosure of Invention
The embodiment of the invention provides a control method, a control device and terminal equipment of an OTG interface, which are used for solving the problem that pins are corroded due to electrochemical reaction of the OTG interface in severe environments such as humidity in the prior art.
In a first aspect, a method for controlling an OTG interface provided in an embodiment of the present invention is applied to a terminal device, where the terminal device includes the OTG interface, and the method includes: if the terminal equipment is determined to be in the screen-off state, the terminal equipment is determined to be in the screen-off state; and the terminal equipment detects that the OTG equipment is not connected with the terminal equipment and determines that the terminal equipment is not occupied by the voice resource, and then the OTG interface is powered off.
In the embodiment of the invention, on the premise of not influencing the use of terminal equipment by a user, the OTG interface is powered off, so that the working time of the OTG interface is reduced, the corrosion time of the OTG interface due to electrochemical reaction is reduced, and the damage caused by corrosion of the OTG interface is reduced.
In some embodiments of the present application, the terminal device includes an application layer, a framework layer, and a kernel layer; the terminal equipment detects that OTG equipment is not connected the terminal equipment includes: the application layer or the framework layer sends a first signal to the kernel layer, wherein the first signal is used for indicating the kernel layer to read the value of a first File; and if the value of the first File is read as a first value by the kernel layer according to the received first signal, determining that the terminal equipment is not connected with the OTG equipment.
In the embodiment of the invention, whether the terminal equipment is connected with the OTG equipment or not can be determined according to the value of the first File. If the terminal equipment is not connected with the OTG equipment, so that whether the terminal equipment is occupied by voice resources or not is judged conveniently subsequently, and whether the OTG interface needs to be powered off or not is determined.
In some embodiments of the present application, the voice resource comprises an audio resource; and determining that the terminal equipment is not occupied by the voice resource, determining that the result of calling an audio focus by the application layer or the framework layer is false, and determining that the result of occupying the audio resource is not occupied.
In the embodiment of the invention, if the audio resource is not occupied and the subsequent call resource is not occupied, the OTG interface can be powered off without using the OTG interface under the conditions that a user is in a screen-off state and is connected with the OTG equipment, so that the working time of the OTG interface can be reduced, the time of pin corrosion of the OTG interface caused by electrochemical reaction can be reduced, and the damage of the pin corrosion to the OTG interface can be reduced.
In some embodiments of the present application, the voice resource comprises a call resource; the determining that the terminal device is not occupied by the voice resource includes: and the monitor in the application layer or the framework layer monitors that the call state is idle, and determines that the call resources do not occupy the terminal equipment.
In the embodiment of the invention, the communication state is idle, and the audio resource is not occupied, so that the terminal equipment can be determined to be in the screen-off state and be connected with the OTG equipment without using the OTG interface, and the OTG interface can be powered off, so that the time for the OTG interface to corrode pins due to electrochemical reaction is reduced, and the damage of the OTG interface caused by the pin corrosion can be reduced.
In some embodiments of this application, said powering down the OTG interface includes: the application layer or the framework layer sends a second signal to the kernel layer, the second signal is used for indicating the kernel layer to modify the value of a second File into a third value, and the second File modified into the third value is used for executing the power-off operation of the OTG interface; the kernel layer modifies the second File according to the second signal and sends the modified second File to the application layer; and the application layer or the framework layer powers off the OTG interface according to the modified second File File.
In the embodiment of the invention, the OTG interface is powered off, so that the working time of the OTG interface can be reduced on the premise of not influencing the use of a user, namely the corrosion time of the OTG interface is shortened, and the damage of the OTG interface caused by corrosion is reduced.
In some embodiments of the present application, the method further comprises: and if the terminal equipment is determined to be in the screen-off state and the terminal equipment is determined to be occupied by the voice resource, maintaining the power-on state of the OTG interface.
In the embodiment of the invention, the possibility that the user uses the OTG interface is determined according to the fact that the terminal equipment is occupied by the voice resource, and further, in order to realize that the user can switch to use the OTG interface at any time, the OTG interface maintains the power-on state.
In some embodiments of the present application, the method further comprises: and if the terminal equipment is determined to be in the screen-off state and the OTG equipment is detected to be connected with the terminal equipment, maintaining the power-on state of the OTG interface.
In the embodiment of the invention, the possibility that the user uses the OTG interface is determined according to the fact that the terminal equipment is in the screen-off state and the OTG equipment is connected with the terminal equipment, so that the user can switch the OTG interface to use at any time conveniently, and the OTG interface maintains the power-on state.
In some embodiments of the present application, the method further comprises: if the terminal device is determined to be in a bright screen state, the application layer or the framework layer sends a third signal to the kernel layer, the third signal is used for indicating the kernel layer to modify a second File into a fourth value, and the second File modified into the fourth value is used for executing the power-on operation of the OTG interface; the kernel layer modifies the second File according to the third signal and sends the modified second File to the application layer; and the application layer or the framework layer powers on the OTG interface according to the modified second File File.
In the embodiment of the invention, because the use of the user is not affected on the premise of power failure on the OTG, when the terminal equipment is switched from the screen-off state to the screen-on state, the OTG interface needs to be powered on, so that the user can conveniently switch to use the OTG interface at any time, and the use feeling of the user is improved.
In a second aspect, an embodiment of the present invention further provides a control device for an OTG interface, which is applied to a terminal device, where the terminal device includes the OTG interface, and includes: the determining unit is used for determining that the terminal equipment is in a screen-off state; and the terminal equipment detects that the OTG equipment is not connected with the terminal equipment and determines that the terminal equipment is not occupied by the voice resource, and then the OTG interface is powered off.
In some embodiments of the present application, the terminal device includes an application layer, a framework layer, and a kernel layer; the processing unit is specifically configured to send a first signal to the kernel layer by the application layer or the framework layer, where the first signal is used to instruct the kernel layer to read a value of a first File; and if the inner core layer reads the value of the first File as a first value according to the received first signal, determining that the terminal equipment is not connected with the OTG equipment.
In some embodiments of the present application, the voice resource includes an audio resource, and the processing unit is specifically configured to determine that a result of the application layer or the framework layer calling the audio focus is false and that a result of the audio resource occupation is unoccupied.
In some embodiments of the application, the voice resource includes a call resource, and the processing unit is specifically configured to monitor that a call state is idle by a listener in the application layer or the framework layer, and determine that the call resource does not occupy the terminal device.
In some embodiments of the present application, the processing unit is specifically configured to send a second signal to the kernel layer by the application layer or the framework layer, where the second signal is used to instruct the kernel layer to modify a value of a second File into a third value, and the second File modified into the third value is used to execute a power-off operation of the OTG interface; the kernel layer modifies the second File according to the second signal and sends the modified second File to the application layer; and the application layer or the framework layer powers off the OTG interface according to the modified second File File.
In some embodiments of the present application, the processing unit is specifically configured to maintain the power-on state of the OTG interface if the terminal device is determined to be in the screen-off state and the terminal device is determined to be occupied by the voice resource.
In some embodiments of the present application, the processing unit is specifically configured to maintain the power-on state of the OTG interface if the terminal device is determined to be in the screen-off state and it is detected that the OTG device is connected to the terminal device.
In some embodiments of the application, the processing unit is specifically configured to send, if the terminal device is determined to be in a bright screen state, a third signal to the kernel layer by the application layer or the framework layer, where the third signal is used to instruct the kernel layer to modify a second File into a fourth value, and the second File modified into the fourth value is used to execute a power-on operation of the OTG interface; the kernel layer modifies the second File according to the third signal and sends the modified second File to the application layer; and the application layer or the framework layer powers on the OTG interface according to the modified second File.
In a third aspect, an embodiment of the present invention further provides a terminal device, including at least one processor and at least one memory, where the memory stores a computer program, and when the program is executed by the processor, the processor is enabled to execute the control method of the OTG interface according to the first aspect.
In a fourth aspect, a computer-readable storage medium stores a program, and when the program runs on a computer, the program causes the computer to implement the control method for executing the OTG interface according to the first aspect.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram of a possible application scenario provided in an embodiment of the present invention;
fig. 2 is a schematic diagram of a mobile phone interface according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a control method of an OTG interface according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a terminal device interface according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a terminal device interface according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a control device of an OTG interface according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of a possible application scenario provided in the embodiment of the present invention. The application scenario includes, for example, a terminal device 100, an OTG data line 101, and an OTG device 102. In general, when the terminal device 100 needs to perform data exchange with the OTG device 102, since the interface of the terminal device 100 is not adapted to the interface of the OTG device 102, it is necessary that one end of the OTG data line 101 is connected to the OTG interface of the terminal device 100, and the other end of the OTG data line 101 is connected to the interface of the OTG device 102. Data exchange between the terminal device 100 and the OTG device 102 can be realized through the OTG data line 101. The terminal device 100 may be a mobile phone, a computer, or other terminal devices, and is not limited herein. For example, taking the terminal device 100 as a mobile phone as an example, taking the OTG device 102 as a flash disk as an example, the mobile phone starts an OTG function and connects the mobile phone with the flash disk through the OTG data line 101, and after the connection is completed, it may be displayed on an interface of the mobile phone that the flash disk is connected, as shown in fig. 2, which is a schematic view of an interface of the mobile phone provided in the embodiment of the present invention. At this time, the files in the flash disk can be copied and pasted in the mobile phone, or the files in the mobile phone can be copied and pasted in the flash disk, so that data exchange is realized.
Under a possible condition, the mobile phone needs to exchange data with the flash disk in severe environments such as humidity, and due to the fact that the pins of the OTG interface of the mobile phone can generate electrochemical reaction in severe environments such as humidity, the OTG interface of the mobile phone is damaged due to the fact that the pins are corroded, and therefore the mobile phone cannot be used. When some merchants produce the OTG interfaces of mobile phones, a layer of anticorrosive paint, such as zinc alloy, rhodium-ruthenium-plated and the like, is coated on the surface of the OTG interface, but the anticorrosive paint is expensive, so that the production cost is high, and the mass production is not facilitated.
In view of this, embodiments of the present invention provide a method for controlling an OTG interface, which can prevent the OTG interface from being damaged due to an electrochemical reaction in a harsh environment such as a humid environment without increasing production cost.
Fig. 3 is a schematic flowchart of a control method of an OTG interface according to an embodiment of the present invention. The method comprises the following steps:
step 301, judging whether the terminal equipment is in a screen-off state, if so, executing step 302, and if not, executing step 303.
In the embodiment of the present invention, if the terminal device is in the screen-off state, it indicates that the terminal device may not need to use the OTG interface, and then according to the following steps 302 to 304, it can be determined whether the terminal device needs to use the OTG interface, and if the OTG interface does not need to be used, the OTG interface can be powered off, thereby reducing the probability of pin corrosion of the OTG interface caused by the electrochemical reaction without increasing the cost. If the terminal equipment is in a bright screen state, the fact that the user is using the terminal equipment is indicated, in order to not influence the use of the user, the OTG interface of the terminal equipment is powered all the time, and the user can use the OTG interface at any time conveniently in the process of using the terminal equipment.
Step 302, whether the OTG device is connected to the terminal device is determined, if not, step 304 is executed, and if yes, step 303 is executed.
In the embodiment of the present invention, since there is still a possibility that the user uses the OTG interface when the terminal device is in the screen-off state, it is necessary to determine whether the user needs to use the OTG interface in the screen-off state. In a possible implementation manner, although the terminal device is in the screen-off state, if the terminal device is being connected to the OTG device through the OTG data line for data exchange, the OTG interface of the terminal device cannot be powered off. Therefore, it is necessary to determine whether the terminal device is connected to the OTG device.
Specifically, the terminal device comprises an application layer, a framework layer and a kernel layer, wherein when the screen state of the terminal device changes from a bright screen to a blank screen, the application layer or the framework layer sends a first signal to the kernel layer by using the screen state of the terminal device, which changes correspondingly, as a trigger condition, wherein the first signal is used for instructing the kernel layer to read the value of sys/debug _ control/host _ mode in the first File. If the value of sys/debug _ control/host _ mode in the first File read by the kernel layer is a first value, the first value may be 0, or may be another value, which is not limited herein. For example, the first value is 0, the kernel layer sends the value of the first File as 0 to the application layer or the frame layer, and the application layer or the frame layer determines that the terminal device is not connected with the OTG device according to the value of the first File as 0, that is, when the terminal device is in a screen-off state, the terminal device is not connected with the OTG device through the OTG interface, and the possibility that a user needs to use the OTG interface to connect with the OTG device does not exist. If the value of sys/debug _ control/host _ mode in the first File read by the kernel layer is a second value, the second value may be 1, or may be another value, which is not limited herein. For example, the second value is 1, the kernel layer sends the value of the first File of 1 to the application layer or the framework layer, and the application layer or the framework layer determines that the terminal device is connected to the OTG device according to the value of the first File of 1, that is, although the terminal device is in a screen-off state, there is a possibility that the user needs to use the OTG interface, and at this time, the OTG interface cannot be powered off.
In the embodiment of the present invention, when the terminal device is in the screen-off state, if the terminal device is connected to the OTG device, it can be understood that the terminal device has a possibility of performing data exchange with the OTG device, and therefore the OTG interface cannot be powered off. For example, the terminal device is a mobile phone, the OTG device is a flash disk, and when the mobile phone is connected to the flash disk through an OTG data line and performs data exchange, since the user does not touch the mobile phone for a long time during the data exchange, the screen of the mobile phone may enter a sleep state, that is, a screen-off state. If the OTG interface is directly powered off when the mobile phone is in the screen-off state, the connection between the mobile phone and the flash disk is interrupted after the mobile phone is in the screen-off state, and data exchange cannot be continued. If a user wants to continue to exchange data between the mobile phone and the flash disk, the OTG function is started manually in the setting by the user or the OTG function is awakened by manually lighting the screen of the mobile phone by the user. If a user wants to keep the mobile phone and the flash disk uninterrupted during data exchange until the data exchange is finished, the user needs to keep the mobile phone screen always in a bright screen state, so that the electric quantity of the mobile phone is wasted, and the user needs to pay attention to the screen state of the mobile phone in real time, so that the user feels poor in use. Therefore, when the terminal device is in the screen-off state and the OTG device is connected to the terminal device, the OTG interface of the terminal device is not powered off in order to ensure that the OTG device and the terminal device are not interrupted when the OTG device and the terminal device are connected due to the screen-off state of the terminal device during data exchange.
Step 303, the OTG interface is not powered off.
In the embodiment of the invention, in order that the function of using the OTG interface by the user can not be influenced in the terminal equipment, the OTG interface of the terminal equipment is not powered off.
Step 304, whether the terminal device is occupied by voice resources or not is executed, if yes, the step 303 is executed, and if not, the step 305 is executed.
In the embodiment of the invention, the terminal equipment is in the screen-off state at present, the terminal equipment is not connected with the OTG equipment, whether the terminal equipment needs to use the OTG interface or not needs to be judged accurately, whether the terminal equipment is occupied by the voice resource or not needs to be judged, if the terminal equipment is occupied by the voice resource, the OTG function can be used at any time for a user conveniently, and the OTG interface cannot be powered off. If the terminal device is not occupied by the voice resource, it indicates that the OTG interface is not used or is likely to be used when the terminal device is in the screen-off state, and then the OTG interface can be powered off, so that the time for opening the OTG interface is reduced, and the probability that the OTG interface is corroded due to electrochemical reaction is reduced.
Since the voice resource includes an audio resource and a call resource, it is necessary to determine whether the terminal device is occupied by the audio resource or not and whether the terminal device is occupied by the call resource or not. The determining part may be to determine simultaneously, or to determine whether the terminal device is occupied by the audio resource first and then determine whether the terminal device is occupied by the call resource, or to determine whether the terminal device is occupied by the call resource first and then determine whether the terminal device is occupied by the audio resource, which is not limited herein.
Specifically, the application layer or the framework layer in the terminal device calls the audio focus to determine whether the terminal device is occupied by the audio resource because the terminal device needs to send a request to the application layer or the framework layer and can play the audio after acquiring the audio focus. The audio focus may take an isMusicActive (i.e., whether music is activated) method in an AudioManager (i.e., audio manager) service in the framework layer as an example, and if the isMusicActive method is true, it indicates that the terminal device is occupied by the audio resource, and there is a possibility that the user uses the OTG interface, so the OTG interface is not powered off.
For example, the terminal device is a mobile phone, the OTG device is an earphone, and when a user uses the mobile phone to play music, the mobile phone is in a screen-off state, and after a few minutes, the user inserts the earphone into the mobile phone and uses the earphone to listen to the music. If the OTG interface is powered off when the mobile phone is in a screen-off state, the subsequent user inserts the earphone into the mobile phone without reaction, and the music is played in an external mode. Therefore, although the mobile phone is in the screen-off state, if the mobile phone is playing music, the OTG interface cannot be powered off, so that the user can select and switch whether to use the mobile phone to play the music or use the earphone to play the music at any time in the process of playing the music.
If the result is false according to the isMusicActive method, it indicates that the terminal device is not occupied by the audio resource, that is, the user does not use the audio resource in the screen-off state.
Judging whether the terminal device is occupied by the call resource, specifically, an application layer or a framework layer in the terminal device calls a listener to listen whether the call state exists, where the listener may be, for example, a phonenetatelistener registered by a TelphoneyManager (i.e., call management service) in the framework layer. The CALL STATE includes ring-up (CALL _ STATE _ RINGING), CALL-in (CALL _ STATE _ OFFHOOK), or IDLE (CALL _ STATE _ IDLE). If the call state monitored by the listener is ring, it indicates that the user is going to use the terminal device to make a call, that is, the terminal device is occupied by call resources. If the call state monitored by the listener is in the call, it indicates that the user is using the terminal device to make a call, that is, the terminal device is occupied by call resources. For example, the terminal device is a mobile phone, the OTG device is an earphone, if the mobile phone is in a screen-off state at this time, the terminal device is not occupied by audio resources, when a ring of the mobile phone rings, a user picks up a call or the user is using the mobile phone to talk with a person, if the mobile phone is in the screen-off state and the terminal device is not occupied by the audio resources, the OTG interface is powered off, when the user is inconvenient to hold the mobile phone for talking and needs to insert the earphone for talking, because the OTG interface is powered off, the earphone is not sound when being inserted into the mobile phone, and if the user wants to use the earphone for talking, the user needs to manually turn on the OTG function in the setting or manually turn on the mobile phone screen to wake up the OTG function. Therefore, although the mobile phone is in a screen-off state and the terminal device is not occupied by audio resources, if the ring tone of the mobile phone rings or the user is using the mobile phone to make a call, the OTG interface cannot be powered off, so that the user can select and switch to carry out a handheld call or an earphone call at any time in the call process.
If the call state monitored by the listener is idle, it indicates that the user does not use the terminal device to make a call in the screen-off state, that is, the terminal device is not occupied by call resources.
In a possible implementation manner, if the terminal device is in the screen-off state and is not connected to the OTG device, the terminal device is occupied by any one of the audio resource or the call resource, which indicates that the OTG interface needs to be used in the screen-off state, and therefore the OTG interface cannot be powered off. If the terminal device is in the screen-off state and is not connected to the OTG device, the terminal device is occupied by both the audio resource and the call resource, which indicates that the terminal device needs to use the OTG interface in the screen-off state, and therefore the OTG interface cannot be powered off. If the terminal device is in the screen-off state and is not connected with the OTG device, the terminal device is not occupied by audio resources, and is not occupied by communication resources, which indicates that the terminal device does not need to use the OTG interface in the screen-off state, so that the OTG interface can be powered off, and the probability that the OTG interface is corroded due to electrochemical reaction is reduced.
For example, the terminal device is a mobile phone, the OTG device is an earphone, and if the mobile phone is in a screen-off state at this time, the OTG interface is not connected to the OTG device, and at this time, the mobile phone is not playing audio resources such as music or voice, and is not in a state of making a call or ringing a telephone ring, that is, the OTG interface of the mobile phone is not needed to be used in the screen-off state of the mobile phone, so that the OTG interface of the mobile phone can be powered off, and the working time of the OTG interface can be reduced.
In the embodiment of the invention, when the OTG device is in the screen-off state and the OTG device is connected with the terminal device, the terminal device is occupied by the voice resource, that is, the terminal device has the possibility of using the OTG interface, so that a user can use the OTG interface at any time under the condition that the terminal device is occupied by the voice resource, and the OTG interface is not powered off.
Step 305, the OTG interface is powered off.
In the embodiment of the invention, when the OTG device is in the screen-off state, the OTG interface is not connected to the OTG device, and the terminal device is not occupied by the voice resource, it can be understood that the terminal device does not need to use the OTG interface in the screen-off state, and then the OTG interface is powered off under the condition that the terminal device does not need to use the OTG interface, and by reducing the working time of the OTG interface, the probability of pin corrosion of the OTG interface caused by electrochemical reaction is reduced.
In a possible implementation manner, the step of powering off the OTG interface is that the terminal device is in a screen-off state, the OTG interface is not connected to the OTG device, and when the terminal device is not occupied by the voice resource, the application layer or the framework layer sends a second signal to the kernel layer by using a screen state corresponding to the terminal device, an unconnected state of the OTG device, and an unoccupied state of the voice resource as a second trigger condition, where the second signal is used to instruct the kernel layer to rewrite sys/debug _ control/type _ c _ disable _ OTG files in the second File. If the kernel layer modifies the value of the sys/debug _ control/type _ c _ disable _ otg File in the second File to a third value, the third value may be 1 or another value, which is not limited herein. For example, when the third value is 1, the kernel layer sends the modified second File to the application layer or the framework layer, and the application layer or the framework layer executes the operation of powering off the OTG interface according to the modified second File. That is to say, when the terminal device is in the screen-off state, the terminal device is not connected with the OTG device through the OTG interface, the terminal device is not occupied by the voice resource, and at this time, the OTG interface is powered off. Fig. 4 is a schematic diagram of a terminal device interface according to an embodiment of the present invention. Wherein the OTG function is displayed on the terminal equipment to be closed.
Step 306, the terminal device determines whether the terminal device is in a bright screen state, if so, step 307 is executed, and if not, step 308 is executed.
In the embodiment of the invention, if the terminal equipment is changed from the screen-off state to the screen-on state, it indicates that the terminal equipment has the possibility of using the OTG interface, and in order to facilitate a user to use the OTG interface at any time when the terminal equipment is in the screen-on state, the OTG interface needs to be powered on. If the terminal device is still in the screen-off state, according to step 305, it can be known that the terminal device does not need to use the OTG interface in the screen-off state, and then the OTG interface is kept powered off under the condition that the terminal device does not need to use the OTG interface.
Step 307, the OTG interface is powered on.
In the embodiment of the invention, according to the condition that the terminal equipment is changed from the screen-off state to the screen-on state, the OTG interface needs to be powered on in order not to influence the use of the OTG interface by a user. For example, the terminal device is a mobile phone, the OTG device is a flash disk, when the mobile phone is in a screen-off state, a user needs to connect the mobile phone to the flash disk through an OTG data line, select a picture to be transmitted from the mobile phone, and transmit the selected picture to the flash disk, it can be understood that the selection of the transmitted picture can be realized only when the mobile phone is in a screen-on state. If the mobile phone is changed from the screen-off state to the screen-on state, and the OTG interface is still in the power-off state, the user cannot transmit the selected picture in the mobile phone to the flash memory disk, and if the user wants to continue to transmit the picture between the mobile phone and the flash memory disk, the user needs to manually start the OTG function in the setting or manually turn on the mobile phone screen to wake up the OTG function. Therefore, in order to ensure that the user can normally use the OTG function, when the terminal device is changed from the off-screen state to the on-screen state, the OTG interface of the terminal device is powered on.
Specifically, the terminal device comprises an application layer, a framework layer and a kernel layer, wherein when the screen state of the terminal device is changed from off-screen to on-screen, the application layer or the framework layer sends a third signal to the kernel layer by using the screen state of the terminal device, which is changed correspondingly, as a third trigger condition, wherein the third signal is used for instructing the kernel layer to rewrite sys/debug _ control/type _ c _ disable _ otg files in the second File. If the kernel layer modifies the value of the sys/debug _ control/type _ c _ disable _ otg File in the second File to a fourth value, the fourth value may be 0 or another value, which is not limited herein. For example, when the fourth value is 0, the kernel layer sends the modified second File to the application layer or the framework layer, and the application layer or the framework layer executes the operation of powering on the OTG interface according to the modified second File, that is, when the terminal device is changed from the screen-off state to the screen-on state, the OTG interface is powered on. Fig. 5 is a schematic diagram of a terminal device interface according to an embodiment of the present invention. Wherein the OTG function is displayed on the terminal equipment to be opened.
Step 308, the OTG interface remains powered off.
In the embodiment of the present invention, when the terminal device determines according to the step 305 that the OTG interface is not needed to be used in the screen-off state of the terminal device, if the terminal device is always in the screen-off state after the step 305, it can be understood that the user does not use the OTG interface, and the possibility of using the OTG interface is not available, then the OTG interface is kept powered off, the time for opening the OTG interface can be reduced without affecting the use of the user, and the probability that the OTG interface is corroded due to the electrochemical reaction is reduced.
It should be noted that the order of the above steps 302 and 304 is not limited. Step 302 may be performed first and then step 304 may be performed, step 304 may be performed first and then step 302 may be performed, or step 302 and step 304 may be performed together, which is just one of the embodiments.
It can be seen from the above steps 301 to 308 that, on the premise of not increasing the production cost and not affecting the use of the user, the time for opening the OTG interface is reduced, the probability of the electrochemical reaction corrosion between the pins can be effectively reduced, and the influence caused by the corrosion of the OTG interface is minimized.
Based on the same technical concept, an embodiment of the present invention further provides a control device of an OTG interface, where the control device may execute the method in the embodiment of the method of the present invention. Referring to fig. 6, a structure of a control device of an OTG interface provided in an embodiment of the present invention may be seen, where the device 600 includes: the determining unit 601 is used for determining that the terminal device is in a screen-off state; the processing unit 602 is configured to power off the OTG interface if the terminal device detects that the OTG device is not connected to the terminal device and determines that the terminal device is not occupied by the voice resource.
In some embodiments of the present application, the terminal device includes an application layer, a framework layer, and a kernel layer; the processing unit 602 is specifically configured to send a first signal to the kernel layer by the application layer or the framework layer, where the first signal is used to instruct the kernel layer to read a value of a first File; and if the value of the first File is read as a first value by the kernel layer according to the received first signal, determining that the terminal equipment is not connected with the OTG equipment.
In some embodiments of the present application, the voice resource includes an audio resource, and the processing unit 602 is specifically configured to determine that a result of the application layer or the framework layer calling the audio focus is false, and that a result of the audio resource occupation is unoccupied.
In some embodiments of the present application, the voice resource includes a call resource, and the processing unit 602 is specifically configured to monitor that a call state is idle by a listener in the application layer or the framework layer, and determine that the call resource does not occupy the terminal device.
In some embodiments of the present application, the processing unit 602 is specifically configured to send a second signal to the kernel layer by the application layer or the framework layer, where the second signal is used to instruct the kernel layer to modify a value of a second File into a third value, and the second File modified into the third value is used to execute a power-off operation of the OTG interface; the kernel layer modifies the second File according to the second signal and sends the modified second File to the application layer; and the application layer or the framework layer powers off the OTG interface according to the modified second File File.
In some embodiments of the present application, the processing unit 602 is specifically configured to maintain the power-on state of the OTG interface if the terminal device is determined to be in the screen-off state and the terminal device is determined to be occupied by the voice resource.
In some embodiments of the present application, the processing unit 602 is specifically configured to maintain the power-on state of the OTG interface if the terminal device is determined to be in the screen-off state and it is detected that the OTG device is connected to the terminal device.
In some embodiments of the present application, the processing unit 602 is configured to send, if the terminal device is determined to be in a bright screen state, a third signal to the kernel layer by the application layer or the framework layer, where the third signal is used to instruct the kernel layer to modify a second File into a fourth value, and the second File modified into the fourth value is used to execute a power-on operation of the OTG interface; the kernel layer modifies the second File according to the third signal and sends the modified second File to the application layer; and the application layer or the framework layer powers on the OTG interface according to the modified second File File.
Based on the same technical concept, the embodiment of the present application also provides a terminal device, which may be implemented in various forms as shown in fig. 7. It should be understood that the terminal device 700 shown in fig. 7 is only an example, and the terminal device 700 may have more or fewer components than those shown in fig. 7, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
A block diagram of a hardware configuration of a terminal device 700 according to an exemplary embodiment is exemplarily shown in fig. 7. The terminal device 700 includes: radio Frequency (RF) circuit 710, memory 720, display unit 730, camera 740, sensor 750, audio circuit 760, Wireless Fidelity (Wi-Fi) module 770, processor 780, bluetooth module 781, and power supply 790.
The RF circuit 710 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink data of a base station and then send the downlink data to the processor 780 for processing; the uplink data may be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
Memory 720 may be used to store software programs and data. The processor 780 performs various functions of the terminal device 700 and data processing by executing software programs or data stored in the memory 720. The memory 720 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. The memory 720 stores an operating system that enables the terminal device 700 to operate. The memory 720 may store an operating system and various application programs, and may also store program codes for performing the methods described in the embodiments of the present application.
The display unit 730 may be used to receive input numeric or character information and generate signal input related to user settings and function control of the terminal apparatus 700, and particularly, the display unit 730 may include a touch screen 731 disposed on the front surface of the terminal apparatus 700 and may collect touch operations of a user thereon or nearby, such as clicking a button, dragging a scroll box, and the like.
The display unit 730 may also be used to display information input by the user or information provided to the user and a Graphical User Interface (GUI) of various menus of the terminal apparatus 700. Specifically, the display unit 730 may include a display screen 732 disposed on the front surface of the terminal device 700. The display screen 732 may be configured in the form of a liquid crystal display, a light emitting diode, or the like. The display unit 730 may be configured to display a contact conversation interface or a short message list interface as described in the present application.
The touch screen 731 may be covered on the display screen 732, or the touch screen 731 and the display screen 732 may be integrated to implement the input and output functions of the terminal device 700, and after the integration, the touch screen may be referred to as a touch display screen for short. The display unit 730 can display the application programs and the corresponding operation steps.
The camera 740 may be used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing elements convert the light signals into electrical signals which are then passed to a processor 780 for conversion into digital image signals.
The terminal device 700 may further comprise at least one sensor 750, such as an acceleration sensor 751, a distance sensor 752, a fingerprint sensor 753, a temperature sensor 754. The terminal device 700 may also be configured with other sensors such as a gyroscope, barometer, hygrometer, thermometer, infrared sensor, light sensor, motion sensor, and the like.
The audio circuit 760, speaker 761, and microphone 762 may provide an audio interface between a user and the terminal device 700. The audio circuit 760 may transmit the electrical signal converted from the received audio data to the speaker 761, and convert the electrical signal into an audio signal for output by the speaker 761. The terminal device 700 may be further provided with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 762 converts collected sound signals into electrical signals, converts the electrical signals into audio data after being received by the audio circuit 760, and outputs the audio data to the RF circuit 710 to be transmitted to, for example, another terminal or outputs the audio data to the memory 720 for further processing. In the present application, the microphone 762 can acquire the voice of the user.
Wi-Fi belongs to short-distance wireless transmission technology, and the terminal device 700 can help a user to send and receive e-mails, browse webpages, access streaming media and the like through a Wi-Fi module 770, and provides wireless broadband Internet access for the user.
The processor 780 is a control center of the terminal device 700, connects various parts of the entire terminal device with various interfaces and lines, and performs various functions of the terminal device 700 and processes data by running or executing software programs stored in the memory 720 and calling data stored in the memory 720. In some embodiments, processor 780 may include one or more processing units; the processor 780 may also integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a baseband processor, which primarily handles wireless communications. It will be appreciated that the baseband processor described above may not be integrated into the processor 780. In the present application, the processor 780 may run an operating system, an application program, a user interface display and a touch response, and a control method of the OTG interface according to the embodiment of the present application. Further, processor 780 is coupled to a display unit 730.
And the bluetooth module 781 is used for performing information interaction with other bluetooth devices with the bluetooth module through a bluetooth protocol. For example, the terminal device 700 may establish a bluetooth connection with a wearable electronic device (e.g., a smart watch) that is also equipped with a bluetooth module through the bluetooth module 781, so as to perform data interaction.
The terminal device 700 also includes a power source 790 (such as a battery) for powering the various components. The power supply may be logically coupled to processor 780 through a power management system to manage charging, discharging, and power consumption functions through the power management system. The terminal device 700 may also be configured with a power button for powering on and off the terminal, and locking the screen.
Based on the same technical concept, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program executable by a terminal device, and when the program runs on the terminal device, the terminal device is caused to execute the steps of the control method of the OTG interface.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A control method for a connecting wire OTG interface is characterized in that the control method is applied to terminal equipment, the terminal equipment comprises the OTG interface, and the method comprises the following steps:
the terminal equipment is determined to be in a screen-off state;
and the terminal equipment detects that the OTG equipment is not connected with the terminal equipment and determines that the terminal equipment is not occupied by the voice resource, and then the OTG interface is powered off.
2. The method of claim 1, wherein the terminal device comprises an application layer, a framework layer, and a kernel layer;
the terminal equipment detects that OTG equipment is not connected the terminal equipment includes:
the application layer or the framework layer sends a first signal to the kernel layer, wherein the first signal is used for indicating the kernel layer to read the value of a first File;
and if the value of the first File is read as a first value by the kernel layer according to the received first signal, determining that the terminal equipment is not connected with the OTG equipment.
3. The method of claim 2, wherein the voice resource comprises an audio resource;
the determining that the terminal device is not occupied by the voice resource includes:
and determining that the result of the audio resource occupation is unoccupied if the result of the application layer or the framework layer calling the audio focus is false.
4. The method of claim 2, wherein the voice resources comprise telephony resources;
the determining that the terminal device is not occupied by the voice resource includes:
and the monitor in the application layer or the framework layer monitors that the call state is idle, and determines that the call resources do not occupy the terminal equipment.
5. The method of claim 2, wherein said powering down the OTG interface comprises:
the application layer or the framework layer sends a second signal to the kernel layer, the second signal is used for indicating the kernel layer to modify the value of a second File into a third value, and the second File modified into the third value is used for executing the power-off operation of the OTG interface;
the kernel layer modifies the second File according to the second signal and sends the modified second File to the application layer;
and the application layer or the framework layer powers off the OTG interface according to the modified second File File.
6. The method of claim 1, wherein the method further comprises:
and if the terminal equipment is determined to be in the screen-off state and the terminal equipment is determined to be occupied by the voice resource, maintaining the power-on state of the OTG interface.
7. The method of claim 1, wherein the method further comprises:
and if the terminal equipment is determined to be in the screen-off state and the OTG equipment is detected to be connected with the terminal equipment, maintaining the power-on state of the OTG interface.
8. The method of claim 2, wherein after powering down the OTG interface, further comprising:
if the terminal device is determined to be in a bright screen state, the application layer or the framework layer sends a third signal to the kernel layer, the third signal is used for indicating the kernel layer to modify a second File into a fourth value, and the second File modified into the fourth value is used for executing the power-on operation of the OTG interface;
the kernel layer modifies the second File according to the third signal and sends the modified second File to the application layer;
and the application layer or the framework layer powers on the OTG interface according to the modified second File File.
9. A terminal device, characterized in that it comprises at least one processor and at least one memory, wherein said memory stores a computer program which, when executed by said processor, causes said processor to carry out the method of any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the storage medium stores a program which, when run on a computer, causes the computer to carry out the method of any one of claims 1 to 8.
CN202210030313.6A 2022-01-12 2022-01-12 OTG interface control method, control device and terminal equipment Active CN114510444B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202410281789.6A CN118113649A (en) 2022-01-12 2022-01-12 OTG interface control method, control device and terminal equipment
CN202210030313.6A CN114510444B (en) 2022-01-12 OTG interface control method, control device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210030313.6A CN114510444B (en) 2022-01-12 OTG interface control method, control device and terminal equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202410281789.6A Division CN118113649A (en) 2022-01-12 2022-01-12 OTG interface control method, control device and terminal equipment

Publications (2)

Publication Number Publication Date
CN114510444A true CN114510444A (en) 2022-05-17
CN114510444B CN114510444B (en) 2024-07-09

Family

ID=

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040267390A1 (en) * 2003-01-02 2004-12-30 Yaacov Ben-Yaacov Portable music player and transmitter
US20100298029A1 (en) * 2009-05-22 2010-11-25 Jang Jun-Hyung Mobile terminal
CN101901201A (en) * 2010-08-06 2010-12-01 中兴通讯股份有限公司 Method and device for realizing USB OTG function on electronic equipment
CN103744821A (en) * 2014-01-10 2014-04-23 广东欧珀移动通信有限公司 Method and device for realizing USB OTG (Universal Serial Bus On-The-Go) function of mobile terminal
US20150338881A1 (en) * 2014-05-22 2015-11-26 Via Technologies, Inc. Mechanism for charging portable device with usb dock
US20170116146A1 (en) * 2015-10-26 2017-04-27 Le Holdings (Beijing) Co., Ltd. Control method and control device for a mobile terminal
CN107421530A (en) * 2017-09-04 2017-12-01 南京轩世琪源软件科技有限公司 A kind of indoor resistant to elevated temperatures positioner
CN111752362A (en) * 2019-03-29 2020-10-09 北京小米移动软件有限公司 Method, device and storage medium for preventing interface from being corroded

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040267390A1 (en) * 2003-01-02 2004-12-30 Yaacov Ben-Yaacov Portable music player and transmitter
US20100298029A1 (en) * 2009-05-22 2010-11-25 Jang Jun-Hyung Mobile terminal
CN101901201A (en) * 2010-08-06 2010-12-01 中兴通讯股份有限公司 Method and device for realizing USB OTG function on electronic equipment
CN103744821A (en) * 2014-01-10 2014-04-23 广东欧珀移动通信有限公司 Method and device for realizing USB OTG (Universal Serial Bus On-The-Go) function of mobile terminal
US20150338881A1 (en) * 2014-05-22 2015-11-26 Via Technologies, Inc. Mechanism for charging portable device with usb dock
US20170116146A1 (en) * 2015-10-26 2017-04-27 Le Holdings (Beijing) Co., Ltd. Control method and control device for a mobile terminal
CN107421530A (en) * 2017-09-04 2017-12-01 南京轩世琪源软件科技有限公司 A kind of indoor resistant to elevated temperatures positioner
CN111752362A (en) * 2019-03-29 2020-10-09 北京小米移动软件有限公司 Method, device and storage medium for preventing interface from being corroded

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
关涛: "《大老黑的故事 微星MS-5565体验》", 《 数字通信 》, no. 24, pages 82 - 83 *

Also Published As

Publication number Publication date
CN118113649A (en) 2024-05-31

Similar Documents

Publication Publication Date Title
US20230094272A1 (en) Notification Processing System, Method, and Electronic Device
WO2021013156A1 (en) Bluetooth switching method and bluetooth device
CN111078448B (en) Method for processing audio abnormity and electronic equipment
WO2020119492A1 (en) Message processing method and related apparatus
CN109104203B (en) Communication method, electronic device, and computer-readable storage medium
WO2020078330A1 (en) Voice call-based translation method and electronic device
WO2020118498A1 (en) Service control method and electronic device
WO2021031865A1 (en) Call method and apparatus
CN111273955B (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN114996168A (en) Multi-device cooperative test method, test device and readable storage medium
CN112235856A (en) Method and device for adjusting transmission power of Bluetooth signal, storage medium and mobile terminal
US8301185B2 (en) Coordination method and communication terminal
CN110543333B (en) Sleep processing method and device for processor, mobile terminal and storage medium
CN110708747A (en) Data transmission rate adjusting method, system, storage medium and mobile terminal
CN110113669B (en) Method and device for acquiring video data, electronic equipment and storage medium
CN111372003A (en) Camera switching method and device and terminal
CN111862972A (en) Voice interaction service method, device, equipment and storage medium
CN114510444B (en) OTG interface control method, control device and terminal equipment
CN114510444A (en) Control method and control device of OTG interface and terminal equipment
CN116033057B (en) Method for synchronizing sound recordings based on distributed conversation, electronic equipment and readable storage medium
CN104007969A (en) Booting sound playing method and device
CN111294470B (en) Call processing method, device, equipment and storage medium
CN113170014B (en) Alarm clock playing method and device and electronic equipment
CN110471622B (en) SD card data writing method and device, storage medium and terminal
WO2020097787A1 (en) Method, apparatus, and electronic device for audio resource release

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

Country or region after: China

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Applicant after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Applicant before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

Country or region before: China

GR01 Patent grant