[go: up one dir, main page]

CN112286849A - Wireless charging base data switching method and system, storage medium and terminal equipment - Google Patents

Wireless charging base data switching method and system, storage medium and terminal equipment Download PDF

Info

Publication number
CN112286849A
CN112286849A CN202011181875.8A CN202011181875A CN112286849A CN 112286849 A CN112286849 A CN 112286849A CN 202011181875 A CN202011181875 A CN 202011181875A CN 112286849 A CN112286849 A CN 112286849A
Authority
CN
China
Prior art keywords
universal serial
serial bus
wireless charging
charging base
terminal equipment
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.)
Pending
Application number
CN202011181875.8A
Other languages
Chinese (zh)
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.)
JRD Communication Shenzhen Ltd
Jiekai Communications Shenzhen Co Ltd
Original Assignee
Jiekai Communications Shenzhen 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 Jiekai Communications Shenzhen Co Ltd filed Critical Jiekai Communications Shenzhen Co Ltd
Priority to CN202011181875.8A priority Critical patent/CN112286849A/en
Publication of CN112286849A publication Critical patent/CN112286849A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/387Information transfer, e.g. on bus using universal interface adapter for adaptation of different data processing systems to different peripheral devices, e.g. protocol converters for incompatible systems, open system
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4286Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a handshaking protocol, e.g. RS232C link

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application discloses a wireless charging base data switching method and system, a storage medium and a terminal device, wherein the method comprises the following steps: detecting a type of an input universal serial bus, the type of universal serial bus comprising: a first universal serial bus and a second universal serial bus; switching a corresponding mode according to the type of the universal serial bus; and sending corresponding instructions to the terminal equipment according to different modes. According to the method and the device, the type of the input universal serial bus is detected, the corresponding mode is switched according to the type of the universal serial bus, and finally the corresponding command is sent to the terminal equipment according to different modes. Through the operation, the wireless charging base can adapt to different types of universal serial buses, and the terminal equipment is informed to be switched to a mode matched with the wireless charging base.

Description

Wireless charging base data switching method and system, storage medium and terminal equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and a system for switching data of a wireless charging base, a storage medium, and a terminal device.
Background
With the development of technology, the functions of the terminal equipment are more and more. Meanwhile, the market competition of the terminal equipment is more intense at present, and all terminal equipment manufacturers extremely realize the technology to meet the requirements of users, so that the sales volume of the terminal equipment is increased. Nowadays, with the change of terminal device form, the non-porous terminal device will become one of the trends. The wireless Universal Serial Bus (USB) realizes a data transmission scheme for the non-porous terminal equipment, and the wireless charging provides a charging scheme for the terminal equipment. However, in the current wireless USB scheme, the identification of different USB plugged into the wireless charging base cannot be realized, and generally, a default mode is adopted for wireless charging. Therefore, the conventional wireless charging base cannot be correspondingly switched according to the type of USB inserted into the wireless charging base.
In view of the above, a new design scheme is needed to solve the problem of single charging circuit when the terminal device is wirelessly charged.
Disclosure of Invention
The embodiment of the application provides a wireless charging base data switching method and system, a storage medium and a terminal device, and can effectively solve the problem that a charging line is single when the terminal device is wirelessly charged.
According to an aspect of the present application, an embodiment of the present application provides a wireless charging base data switching method, including: detecting a type of an input universal serial bus, the type of universal serial bus comprising: a first universal serial bus and a second universal serial bus; switching a corresponding mode according to the type of the universal serial bus; and sending corresponding instructions to the terminal equipment according to different modes.
Further, after the step of switching the corresponding mode according to the type of the universal serial bus, the method further comprises the steps of: detecting whether terminal equipment exists on the wireless charging base or not; and starting a charging mode when the terminal equipment is detected to exist on the wireless charging base.
Further, after the step of starting the charging mode, the method further comprises the steps of: detecting whether a charging request sent by the terminal equipment is received; and when detecting that the charging request sent by the terminal equipment is received, adjusting the working current according to the charging request.
Further, before the step of detecting the type of the input universal serial bus, the method further comprises the steps of: detecting whether a universal serial bus is inserted into the wireless charging base or not; and detecting the type of the input universal serial bus when the universal serial bus is detected to be inserted into the wireless charging base.
According to another aspect of the present application, an embodiment of the present application provides a wireless charging base data switching system, including: an input type detection unit for detecting a type of an input universal serial bus, the type of the universal serial bus comprising: a first universal serial bus and a second universal serial bus; the mode switching unit is used for switching the corresponding mode according to the type of the universal serial bus; and the instruction sending unit is used for sending the corresponding instruction to the terminal equipment according to different modes.
Further, the system further comprises: the terminal equipment detection unit is used for detecting whether terminal equipment exists on the wireless charging base or not; and the charging mode starting unit is used for starting the charging mode when detecting that the terminal equipment exists on the wireless charging base.
Further, the system further comprises: and the second recovery state judgment unit is used for judging that the backlight is in a recovery state when the backlight source is detected to be lightened.
The system further comprises a charging request detection unit, a charging request processing unit and a charging request processing unit, wherein the charging request detection unit is used for detecting whether a charging request sent by the terminal equipment is received; and the working current adjusting unit is used for adjusting the working current according to the charging request when detecting that the charging request sent by the terminal equipment is received.
According to yet another aspect of the present application, a storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the wireless charging base data switching method is provided.
According to another aspect of the present application, an embodiment of the present application provides a terminal device, which includes a processor and a memory, where the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used to execute the steps in the wireless charging base data switching method.
Compared with the prior art, the method has the advantages that the type of the input universal serial bus is detected, the corresponding mode is switched according to the type of the universal serial bus, and finally the corresponding command is sent to the terminal equipment according to different modes. Through the operation, the wireless charging base can adapt to different types of universal serial buses, and the terminal equipment is informed to be switched to a mode matched with the wireless charging base.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating steps of a method for switching data of a wireless charging base according to an embodiment of the present disclosure.
Fig. 2 is a schematic structural diagram of a wireless charging base data switching system according to an embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Fig. 4 is another schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all 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 application.
In the description of the present application, it is to be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the present application and for simplicity in description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed in a particular orientation, and be operated in a particular manner, and are not to be construed as limiting the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate. In this embodiment, the analog display screen touch unit is connected to the head tracking unit, and is configured to acquire a moving path of a sensing cursor in the display device.
In this application, unless expressly stated or limited otherwise, the first feature "on" or "under" the second feature may comprise direct contact of the first and second features, or may comprise contact of the first and second features not directly but through another feature in between. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
The following disclosure provides many different embodiments or examples for implementing different features of the application. In order to simplify the disclosure of the present application, specific example components and arrangements are described below. Of course, they are merely examples and are not intended to limit the present application. Moreover, the present application may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, examples of various specific processes and materials are provided herein, but one of ordinary skill in the art may recognize applications of other processes and/or use of other materials.
As shown in fig. 1, a flowchart of steps of a wireless charging base data switching method provided in the embodiment of the present application includes the following steps:
step S110: whether the universal serial bus is inserted into the wireless charging base is detected.
In this embodiment, the detection mode adopted in step S110 is a real-time monitoring mode.
Step S120: the type of the input universal serial bus is detected.
In this embodiment, the types of the universal serial bus include: a first universal serial bus and a second universal serial bus. Wherein the first Universal Serial Bus (USB) has a master device (host) capability. In other words, the first universal serial bus may obtain data from the other universal serial buses. The second universal serial bus is a slave device and does not have host capability, in other words, the second universal serial bus cannot acquire data from other universal serial buses.
Step S130: and switching the corresponding mode according to the type of the universal serial bus.
In this embodiment, the types of the universal serial bus include two corresponding modes, where the first mode corresponds to the first universal serial bus, and the wireless charging base is switched to the master device mode. And the second mode is that the wireless charging base is switched to a slave device mode corresponding to the second universal serial bus.
Step S140: and detecting whether the terminal equipment exists on the wireless charging base or not.
In this embodiment, the detection mode adopted in step S140 is a real-time monitoring mode.
Step S150: a charging mode is initiated.
In this embodiment, when the presence of the terminal device on the wireless charging base is detected, the charging mode is started, and some required parameters, such as the model of the terminal device, are configured.
Step S160: and detecting whether a charging request sent by the terminal equipment is received.
In this embodiment, the charging request includes a handshake protocol and a power parameter request. The handshake protocol refers to a type of network protocol that is mainly used to let the client and the server confirm the identity of each other. The power supply parameter request mainly comprises the current which needs the wireless charging base to provide a specific value.
Step S170: and adjusting the working current according to the charging request.
In this embodiment, when detecting that a charging request sent by the terminal device is received, the operating current is adjusted according to the charging request.
Step S180: and sending corresponding instructions to the terminal equipment according to different modes.
In this embodiment, when the wireless charging base is switched to the first mode, the terminal device switches the USB to the second mode according to the instruction. When the wireless charging base is switched to the second mode, the terminal equipment switches the USB to the first mode according to the instruction.
Compared with the prior art, the method has the advantages that the type of the input universal serial bus is detected, the corresponding mode is switched according to the type of the universal serial bus, and finally the corresponding command is sent to the terminal equipment according to different modes. Through the operation, the wireless charging base can adapt to different types of universal serial buses, and the terminal equipment is informed to be switched to a mode matched with the wireless charging base.
As shown in fig. 2, a schematic structural diagram of a wireless charging base data switching system provided in the embodiment of the present application is shown, where the system includes: a universal serial bus detection unit 1, an input type detection unit 2, a mode switching unit 3, a terminal equipment detection unit 4, a charging mode starting unit 5, a charging request detection unit 6, a working current adjustment unit 7 and a command sending unit 8.
The universal serial bus detection unit 1 detects whether a universal serial bus is inserted into the wireless charging base. In this embodiment, the detection mode adopted by the usb detection unit 1 is a real-time monitoring mode.
The input type detection unit 2 is used for detecting the type of the input universal serial bus. In this embodiment, the types of the universal serial bus include: a first universal serial bus and a second universal serial bus. Wherein said first Universal Serial Bus (USB) has the capability of a master device (host), in other words the first universal serial bus can fetch data from other universal serial buses. The second universal serial bus is a slave device and does not have host capability, in other words, the second universal serial bus cannot acquire data from other universal serial buses.
The mode switching unit 3 is configured to switch a corresponding mode according to the type of the universal serial bus. In this embodiment, the types of the universal serial bus include two corresponding modes, where the first mode corresponds to the first universal serial bus, and the wireless charging base is switched to the master device mode. And the second mode is that the wireless charging base is switched to a slave device mode corresponding to the second universal serial bus.
The terminal device detecting unit 4 is configured to detect whether a terminal device is present on the wireless charging base. In this embodiment, the detection mode adopted by the terminal device detection unit 4 is a real-time monitoring mode.
The charging mode starting unit 5 is configured to start a charging mode when detecting that a terminal device is present on the wireless charging base. In this embodiment, when the presence of the terminal device on the wireless charging base is detected, the charging mode is started, and some required parameters, such as the model of the terminal device, are configured.
The charging request detection unit 6 is configured to detect whether a charging request sent by the terminal device is received. In this embodiment, the charging request includes a handshake protocol and a power parameter request. The handshake protocol refers to a type of network protocol that is mainly used to let the client and the server confirm the identity of each other. The power supply parameter request mainly comprises the current which needs the wireless charging base to provide a specific value.
The working current adjusting unit 7 is configured to adjust the working current according to the charging request when detecting that the charging request sent by the terminal device is received. In this embodiment, when detecting that a charging request sent by the terminal device is received, the operating current is adjusted according to the charging request.
The instruction sending unit 8 is configured to send corresponding instructions to the terminal device according to different modes. In this embodiment, when the wireless charging base is switched to the first mode, the terminal device switches the USB to the second mode according to the instruction. When the wireless charging base is switched to the second mode, the terminal equipment switches the USB to the first mode according to the instruction.
Compared with the prior art, the method has the advantages that the type of the input universal serial bus is detected, the corresponding mode is switched according to the type of the universal serial bus, and finally the corresponding command is sent to the terminal equipment according to different modes. Through the operation, the wireless charging base can adapt to different types of universal serial buses, and the terminal equipment is informed to be switched to a mode matched with the wireless charging base.
The embodiment of the application further provides a terminal device, and the terminal device can be a smart phone, a tablet computer and the like. Specifically, as shown in fig. 3, the terminal device 200 includes a processor 201 and a memory 202. The processor 201 is electrically connected to the memory 202.
The processor 201 is a control center of the terminal device 200, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or loading an application program stored in the memory 202 and calling data stored in the memory 202, thereby performing overall monitoring of the terminal device.
In this embodiment, the terminal device 200 is provided with a plurality of memory partitions, the plurality of memory partitions includes a system partition and a target partition, the processor 201 in the terminal device 200 loads instructions corresponding to processes of one or more application programs into the memory 202 according to the following steps, and the processor 201 runs the application programs stored in the memory 202, so as to implement various functions:
detecting a type of an input universal serial bus, the type of universal serial bus comprising: a first universal serial bus and a second universal serial bus;
switching a corresponding mode according to the type of the universal serial bus; and
and sending corresponding instructions to the terminal equipment according to different modes.
Fig. 4 shows a specific structural block diagram of a terminal device provided in an embodiment of the present application, where the terminal device may be used to implement the wireless charging base data switching method provided in the foregoing embodiment. The terminal device 300 may be a smart phone or a tablet computer. In addition, the terminal device may further include a RF circuit 310 for receiving and transmitting electromagnetic waves, so as to perform interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide mail Access (Microwave Access for micro), wimax-1, other suitable short message protocols, and any other suitable Protocol for instant messaging, and may even include those protocols that have not yet been developed.
The memory 320 may be configured to store software programs and modules, such as program instructions/modules corresponding to the wireless charging base data switching method in the foregoing embodiment, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, that is, functions of the wireless charging base data switching method are implemented. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 320 may further include memory located remotely from processor 380, which may be connected to terminal device 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphic user interfaces of the terminal apparatus 300, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 4, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The terminal device 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the terminal device 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal device 300, detailed descriptions thereof are omitted.
Audio circuitry 360, speaker 361, microphone 362 may provide an audio interface between a user and terminal device 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then transmitted to, for example, another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 300.
The terminal device 300 may assist the user in e-mail, web browsing, streaming media access, etc. through the transmission module 370 (e.g., a Wi-Fi module), which provides the user with wireless broadband internet access. Although fig. 4 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the terminal device 300 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 380 is a control center of the terminal device 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal device 300 and processes data by running or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby performing overall monitoring of the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
Terminal device 300 also includes a power supply 390 (e.g., a battery) for powering the various components, which may be logically coupled to processor 380 via a power management system in some embodiments to manage charging, discharging, and power consumption management functions via the power management system. The power supply 390 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
detecting a type of an input universal serial bus, the type of universal serial bus comprising: a first universal serial bus and a second universal serial bus;
switching a corresponding mode according to the type of the universal serial bus; and
and sending corresponding instructions to the terminal equipment according to different modes.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the wireless charging base data switching methods provided in the present application.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any wireless charging base data switching method provided in the embodiments of the present application, beneficial effects that can be achieved by any wireless charging base data switching method provided in the embodiments of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The principle and the implementation of the present application are explained by applying specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (10)

1. A wireless charging base data switching method is characterized by comprising the following steps:
detecting a type of an input universal serial bus, the type of universal serial bus comprising: a first universal serial bus and a second universal serial bus;
switching a corresponding mode according to the type of the universal serial bus; and
and sending corresponding instructions to the terminal equipment according to different modes.
2. The wireless charging base data switching method according to claim 1, further comprising, after the step of switching the corresponding mode according to the type of the universal serial bus, the steps of:
detecting whether terminal equipment exists on the wireless charging base or not; and
and starting a charging mode when the terminal equipment is detected to exist on the wireless charging base.
3. The wireless charging base data switching method according to claim 2, further comprising, after the step of initiating the charging mode, the steps of:
detecting whether a charging request sent by the terminal equipment is received; and
and when detecting that the charging request sent by the terminal equipment is received, adjusting the working current according to the charging request.
4. The wireless charging base data switching method according to claim 1, further comprising, before the step of detecting the type of the input universal serial bus, the steps of:
detecting whether a universal serial bus is inserted into the wireless charging base or not; and
when the universal serial bus is detected to be inserted into the wireless charging base, the type of the input universal serial bus is detected.
5. A wireless charging base data switching system, the system comprising:
an input type detection unit for detecting a type of an input universal serial bus, the type of the universal serial bus comprising: a first universal serial bus and a second universal serial bus;
the mode switching unit is used for switching the corresponding mode according to the type of the universal serial bus; and
and the instruction sending unit is used for sending the corresponding instruction to the terminal equipment according to different modes.
6. The wireless charging base data switching system of claim 5, further comprising:
the terminal equipment detection unit is used for detecting whether terminal equipment exists on the wireless charging base or not; and
and the charging mode starting unit is used for starting the charging mode when detecting that the terminal equipment exists on the wireless charging base.
7. The wireless charging base data switching system of claim 6, further comprising:
the charging request detection unit is used for detecting whether a charging request sent by the terminal equipment is received; and
and the working current adjusting unit is used for adjusting the working current according to the charging request when detecting that the charging request sent by the terminal equipment is received.
8. The wireless charging base data switching system of claim 5, further comprising:
and the universal serial bus detection unit is used for detecting whether the universal serial bus is inserted into the wireless charging base or not.
9. A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the wireless charging base data switching method of any one of claims 1 to 4.
10. A terminal device, comprising a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the wireless charging base data switching method according to any one of claims 1 to 4.
CN202011181875.8A 2020-10-29 2020-10-29 Wireless charging base data switching method and system, storage medium and terminal equipment Pending CN112286849A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011181875.8A CN112286849A (en) 2020-10-29 2020-10-29 Wireless charging base data switching method and system, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011181875.8A CN112286849A (en) 2020-10-29 2020-10-29 Wireless charging base data switching method and system, storage medium and terminal equipment

Publications (1)

Publication Number Publication Date
CN112286849A true CN112286849A (en) 2021-01-29

Family

ID=74352469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011181875.8A Pending CN112286849A (en) 2020-10-29 2020-10-29 Wireless charging base data switching method and system, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN112286849A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115292231A (en) * 2022-10-09 2022-11-04 荣耀终端有限公司 Equipment port switching method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104408003A (en) * 2006-12-22 2015-03-11 高通股份有限公司 Enhanced wireless usb protocol and hub
CN106066842A (en) * 2016-05-30 2016-11-02 上海华为技术有限公司 A kind of method of switch mode, SOC(system on a chip) and base station
CN109787325A (en) * 2017-04-07 2019-05-21 Oppo广东移动通信有限公司 Wireless charging system, device, method and device to be charged
CN111372324A (en) * 2018-12-26 2020-07-03 珠海市魅族科技有限公司 Wireless data transmission control method and system and wireless charging equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104408003A (en) * 2006-12-22 2015-03-11 高通股份有限公司 Enhanced wireless usb protocol and hub
CN106066842A (en) * 2016-05-30 2016-11-02 上海华为技术有限公司 A kind of method of switch mode, SOC(system on a chip) and base station
CN109787325A (en) * 2017-04-07 2019-05-21 Oppo广东移动通信有限公司 Wireless charging system, device, method and device to be charged
CN111372324A (en) * 2018-12-26 2020-07-03 珠海市魅族科技有限公司 Wireless data transmission control method and system and wireless charging equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115292231A (en) * 2022-10-09 2022-11-04 荣耀终端有限公司 Equipment port switching method and device
CN115292231B (en) * 2022-10-09 2023-03-28 荣耀终端有限公司 Device port switching method and device

Similar Documents

Publication Publication Date Title
CN106101776B (en) Volume adjusting method, intelligent device and sound box
CN110688051B (en) Screen recording operation method and device, computer readable storage medium and terminal
CN106254673A (en) Terminal fall detection method and device
CN111104012B (en) Distance measuring method and device, storage medium and terminal equipment
CN105100361A (en) Mobile terminal recording method and device
CN112437421A (en) Bluetooth control method, device, storage medium and mobile terminal
CN111885591A (en) Network connection method, device, storage medium and terminal
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN112202464B (en) Identification card detection method and device, storage medium and mobile terminal
CN112367425B (en) Volume adjusting method and device and terminal
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN113873685A (en) WiFi direct connection establishment method, device and equipment
CN111654849A (en) Quick starting method and system for near field communication, storage medium and terminal equipment
CN111273774A (en) Terminal device display screen control method and system, storage medium and terminal device
CN106896896B (en) Power saving method, device and electronic device
CN111966206A (en) Power-saving control method and device for fingerprint sensor and mobile terminal
CN109995441B (en) Communication information processing method, device and storage medium
CN111048056A (en) Terminal equipment brightness adjusting method and system, storage medium and terminal equipment
CN111026486B (en) Application sorting method, application sorting device and computer readable storage medium
CN111654578B (en) Mobile terminal sensor restoration method
CN111245911B (en) Network transmission method and system, storage medium and terminal equipment
CN112491562B (en) Communication control method and device and mobile terminal
CN112256610B (en) Connection control method, system, storage medium and mobile terminal
CN112235806A (en) Bluetooth parameter configuration method, device, storage medium and mobile terminal
CN114222340A (en) Network switching method and device and mobile terminal

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210129

RJ01 Rejection of invention patent application after publication