A tablet computer expansion dock intelligent control method, system and storage medium
By detecting the device type and using data signal isolation and anti-resinking technology, the problem that existing docks cannot achieve peripheral connection and charging at the same time is solved, and the versatility and security of one interface is realized, improving the user experience.
Patent Information
- Application Number
- CN202411725430.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2044-11-28
AI Technical Summary
The existing 5Pin Docking dock cannot achieve peripheral connection functions and charging requirements at the same time, and there is a risk of accidentally plugging and burning the interface, which affects the user experience.
By detecting the type of accessed equipment, using data signal isolation technology to improve data communication stability in peripheral mode, and using anti-rejection technology to improve charging safety in charger mode, thereby achieving a docking interface that can be connected both peripherally and charged.
It realizes a docking dock interface that can not only realize peripheral connection functions but also meet charging needs, improves user experience and reduces the risk of incorrect insertion and burnout.
Smart Images

Figure CN119201789B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of expansion docks, and more specifically, to an intelligent control method, system and storage medium for an expansion dock of a tablet computer. Background Art
[0002] Docking, also known as port replicator, is an external device designed for laptops and tablets. It replicates or even expands the computer's ports, allowing the computer to conveniently connect to multiple accessories or external devices (such as power adapters, network cables, mice, external keyboards, printers, and external monitors) in one stop.
[0003] Most of the common tablets on the market are equipped with a 5-pin contact pin-type Docking docking station, also known as a 5Pin Docking docking station, which is used to connect external devices such as keyboards to improve user convenience. However, after the 5Pin Docking docking station is set for peripheral connection, the 5Pin Docking docking station can only be used for peripheral connection and cannot be used as a charging port. If the peripheral connection function and charging requirements need to be met at the same time, the traditional approach is to add a set of 5Pin Docking docking stations to meet the charging requirements alone; however, when the charging device is mistakenly inserted into the 5Pin Docking docking station for peripheral connection, there is a risk of burning the docking station interface, or even damaging the tablet.
[0004] Therefore, there is an urgent need for a 5Pin Docking expansion dock that can realize the peripheral connection function and meet the charging requirements of a tablet computer expansion dock intelligent control technology. Summary of the invention
[0005] In view of the above problems, the purpose of the present invention is to provide an intelligent control method, system and storage medium for a tablet computer expansion dock, which can detect whether the connected device is a peripheral or a charging device. When it is a peripheral, the stability of data communication is improved by isolating data signals; when it is a charging device, the safety of the charging process is improved by anti-backflow technology; thereby realizing an expansion dock interface that can not only realize the peripheral connection function but also meet the charging requirements, thereby improving the user experience.
[0006] A first aspect of the present invention provides a method for intelligently controlling a docking station of a tablet computer, the method comprising:
[0007] Acquire first connection state information;
[0008] Determining whether the first connection state information is in an on state;
[0009] If yes, send the first handshake instruction message;
[0010] Obtain first handshake feedback instruction information;
[0011] Obtaining working mode information of the expansion dock according to the first handshake feedback instruction information;
[0012] The working state is set according to the working mode information.
[0013] In this solution, the operation mode information of the expansion dock is obtained according to the first handshake feedback instruction information, specifically:
[0014] Determining that the working mode information is a peripheral mode;
[0015] The driving data signal interface is in an on state and the driving power supply interface is in an off state;
[0016] Acquiring first communication authority information;
[0017] The peripheral device communication data is collected according to the first communication authority information.
[0018] In this solution, the operation mode information of the expansion dock is obtained according to the first handshake feedback instruction information, specifically:
[0019] Determining that the working mode information is a charger mode;
[0020] The driving data signal interface is in a cut-off state and the driving power supply interface is in a conducting state;
[0021] Acquiring first voltage information and first power information;
[0022] Determine first current information according to the first voltage information and the first power information;
[0023] The charging current is set according to the first current information.
[0024] In this solution, the first current information is determined according to the first voltage information and the first power information, specifically:
[0025] Collecting and recording first voltage information according to a preset time period;
[0026] Obtaining a first voltage maximum value, a first voltage minimum value, and a first voltage average value according to the recorded first voltage information;
[0027] Calculating a difference between the first voltage maximum value and the first voltage minimum value, and determining whether the difference is less than a preset difference threshold;
[0028] If yes, determining whether the first voltage average is greater than a first voltage threshold;
[0029] If yes, determining the first power information according to the first power information;
[0030] First current information is obtained according to the first power information and the first voltage average value.
[0031] This plan also includes:
[0032] Data signal isolation circuit;
[0033] Obtain data signal information;
[0034] According to the data signal information, the peripheral communication data is obtained.
[0035] This plan also includes:
[0036] Anti-backflow circuit;
[0037] Acquiring second voltage information;
[0038] determining whether the first voltage information exceeds the second voltage information;
[0039] If so, the anti-backflow circuit is driven to cut off the input of the charging voltage.
[0040] A second aspect of the present invention provides an expansion dock intelligent control system for a tablet computer, including an expansion dock intelligent control method program for a tablet computer, wherein the expansion dock intelligent control method program for the tablet computer implements the following steps when executed by the processor:
[0041] Acquire first connection state information;
[0042] Determining whether the first connection state information is in an on state;
[0043] If yes, send the first handshake instruction message;
[0044] Obtain first handshake feedback instruction information;
[0045] Obtaining working mode information of the expansion dock according to the first handshake feedback instruction information;
[0046] The working state is set according to the working mode information.
[0047] In this solution, the operation mode information of the expansion dock is obtained according to the first handshake feedback instruction information, specifically:
[0048] Determining that the working mode information is a peripheral mode;
[0049] The driving data signal interface is in an on state and the driving power supply interface is in an off state;
[0050] Acquiring first communication authority information;
[0051] The peripheral device communication data is collected according to the first communication authority information.
[0052] In this solution, the operation mode information of the expansion dock is obtained according to the first handshake feedback instruction information, specifically:
[0053] Determining that the working mode information is a charger mode;
[0054] The driving data signal interface is in a cut-off state and the driving power supply interface is in a conducting state;
[0055] Acquiring first voltage information and first power information;
[0056] Determine first current information according to the first voltage information and the first power information;
[0057] The charging current is set according to the first current information.
[0058] A third aspect of the present invention provides a computer-readable storage medium, which includes a program for an intelligent control method for an expansion dock of a tablet computer. When the program for the intelligent control method for the expansion dock of a tablet computer is executed by a processor, the steps of the intelligent control method for the expansion dock of a tablet computer as described in any one of the above items are implemented.
[0059] The present invention provides an intelligent control method, system and storage medium for an expansion dock of a tablet computer. When it is determined that first connection state information is in an on state, first handshake feedback instruction information obtained after sending first handshake instruction information is used to obtain working mode information of the expansion dock, and the working state of the expansion dock is set according to the working mode information; when it is determined that the working mode information is a peripheral mode, the stability of data communication is improved by isolating data signals; when it is determined that the working mode information is a charger mode, the safety of the charging process is improved by anti-backflow technology; thereby, an expansion dock interface is realized that can realize both a peripheral connection function and meet charging requirements, thereby improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and should not be regarded as limiting the scope.
[0061] Figure 1 A flow chart showing a method for intelligently controlling a docking station of a tablet computer according to the present invention is shown;
[0062] Figure 2 A schematic structural diagram of a docking station for a tablet computer according to the present invention is shown;
[0063] Figure 3The figure shows a setting flow chart of the peripheral mode provided by the present invention;
[0064] Figure 4 The setting flow chart of the charger mode provided by the present invention is shown;
[0065] Figure 5 A block diagram of an intelligent control system for a docking station of a tablet computer according to the present invention is shown. DETAILED DESCRIPTION
[0066] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0067] Unless otherwise defined, all terms (including technical and scientific terms) used in the embodiments of the present invention have the same meanings as commonly understood by those skilled in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having meanings consistent with their meanings in the context of the relevant technology, and should not be interpreted in an idealized or extremely formal sense, unless the embodiments of the present invention are explicitly defined in this way.
[0068] The words "first", "second" and similar words used in the embodiments of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Words such as "one", "an" or "the" and similar words do not indicate a quantity limitation, but indicate the existence of at least one. Similarly, words such as "include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Words such as "connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The steps before or after the method of the embodiment of the present invention are not necessarily carried out in order. On the contrary, various steps can be processed in reverse order or simultaneously. At the same time, other operations can also be added to these processes, or a step or several steps can be removed from these processes.
[0069] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0070] Figure 1 A flow chart of an intelligent control method for an expansion dock of a tablet computer according to the present invention is shown.
[0071] like Figure 1 As shown, the first aspect of the present invention discloses a method for intelligently controlling a docking station of a tablet computer, the method comprising:
[0072] S102, obtaining first connection status information;
[0073] S104, determining whether the first connection status information is in an on state;
[0074] S106, if yes, send a first handshake instruction message;
[0075] S108, obtaining first handshake feedback instruction information;
[0076] S110, obtaining working mode information of the expansion dock according to the first handshake feedback instruction information;
[0077] S112: Setting a working state according to the working mode information.
[0078] It should be noted that the first connection status information is the plug-in status of the USB interface. When the USB interface is connected to an external device or a charger, the first connection status is in the on state; the first handshake instruction information is a communication instruction preset by the processor, which is used to determine what kind of device is connected to the USB interface; the first handshake feedback instruction information is the instruction fed back to the processor after the device connected to the USB obtains the correct handshake instruction; the working mode information is the working mode of the current expansion dock, including peripheral mode and charger mode. Figure 2 The structure diagram of a docking station of a tablet computer according to the present invention is shown as follows: Figure 2 As shown, when an external device or charger is connected to the 5Pin Docking interface of the docking station, the first connection status information is in the connected state. Then, according to the preset order, the handshake instructions of each device are sent in sequence, for example, in the order of the charger handshake instruction, the keyboard handshake instruction, and the mouse handshake instruction; if the handshake feedback instruction is obtained within the preset waiting time, it means that the handshake is successful; you can know whether the connected device is a charger according to the handshake feedback instruction. If the connected device is a charger, the current working mode of the docking station is the charger mode, and the tablet computer is charged by driving the anti-backflow circuit and the charging module. If the connected device is a peripheral device, the current working mode of the docking station is the peripheral mode, and the communication between the peripheral and the tablet computer is realized by driving the digital signal isolation circuit and the peripheral and USB signal processing module.
[0079] Figure 3 The figure shows a setting flow chart of the peripheral mode provided by the present invention.
[0080] According to an embodiment of the present invention, Figure 3 As shown, the operation mode information of the expansion dock is obtained according to the first handshake feedback instruction information, specifically:
[0081] S302, determining that the working mode information is a peripheral mode;
[0082] S304, driving the data signal interface to be in an on state and driving the power supply interface to be in an off state;
[0083] S306, obtaining first communication authority information;
[0084] S308: Collect peripheral device communication data according to the first communication authority information.
[0085] It should be noted that the first communication permission information is the communication permission of the current docking station interface. When it is in the communication permission state, the peripherals connected to the current docking station interface are allowed to communicate data with the tablet computer. The tablet computer can usually be set with two or more docking stations. Under normal circumstances, the communication permission is switched according to time, such as docking station interface 1 and docking station interface 2. From the 1st second to the 2nd second, docking station interface 1 allows communication and docking station interface 2 prohibits communication; from the 2nd second to the 4th second, docking station interface 1 prohibits communication and docking station interface 2 allows communication; this cycle is repeated to realize the communication of multiple devices in turn; in addition, the tablet computer allocates different lengths of allowed communication time according to the connected peripherals. When the working mode information is the peripheral mode, first, the driving data signal interface is in the on state and the driving power supply interface is in the off state, that is, the data signal interface is connected to the 5Pin Docking interface and the power supply interface is disconnected from the 5PinDocking interface. In practical applications, the connection and disconnection of the interface connection state are usually realized in the form of a switch circuit. Then, when it is determined that the first communication authority information is in a communication-permitted state, the communication electrical signal between the peripheral device and the tablet computer is converted into a level signal receivable by the other party through a data signal isolation circuit to achieve isolated data communication.
[0086] Figure 4 The flowchart of the charger mode provided by the present invention is shown.
[0087] According to an embodiment of the present invention, Figure 4 As shown, the operation mode information of the expansion dock is obtained according to the first handshake feedback instruction information, specifically:
[0088] S402, determining that the working mode information is a charger mode;
[0089] S404, driving the data signal interface to be in a cut-off state and driving the power supply interface to be in a conducting state;
[0090] S406, obtaining first voltage information and first power information;
[0091] S408, determining first current information according to the first voltage information and the first power information;
[0092] S410: Set a charging current according to the first current information.
[0093] It should be noted that the first voltage information is the charging voltage value provided by the 5Pin Docking interface or the USB port after conversion by the charging module; the first power information is the remaining power of the battery of the tablet computer; the first current information is the charging current provided by the charging module to the tablet computer. When the working mode information is the charger mode, the data signal interface is driven to be in the cut-off state and the power supply interface is driven to be in the on state, that is, the data signal interface is disconnected from the 5Pin Docking interface and the power supply interface is connected to the 5Pin Docking interface. In practical applications, the connection and disconnection of the interface connection state are usually achieved in the form of a switch circuit. Then, the size of the charging voltage provided by the charger to the tablet computer through the 5Pin Docking interface or the USB port, and the remaining power of the battery of the tablet computer are obtained; according to the remaining power of the tablet computer, according to the preset power power correspondence table, the target charging power is obtained; according to the target charging power and the first voltage information, the first current information is calculated to set the charging module to charge the tablet computer.
[0094] According to an embodiment of the present invention, determining the first current information according to the first voltage information and the first power information is specifically:
[0095] Collecting and recording first voltage information according to a preset time period;
[0096] Obtaining a first voltage maximum value, a first voltage minimum value, and a first voltage average value according to the recorded first voltage information;
[0097] Calculating a difference between the first voltage maximum value and the first voltage minimum value, and determining whether the difference is less than a preset difference threshold;
[0098] If yes, determining whether the first voltage average is greater than a first voltage threshold;
[0099] If yes, determining the first power information according to the first power information;
[0100] First current information is obtained according to the first power information and the first voltage average value.
[0101] It should be noted that when the working mode information is the charger mode, before allowing the charger to charge the tablet computer, the voltage amplitude and voltage stability of the charging voltage value converted by the charging module provided by the 5Pin Docking interface or the USB port are first checked. Only when the charging conditions are met, the charger is allowed to charge the tablet computer, thereby ensuring the safety of charging and avoiding damage to the tablet computer due to charger abnormality. First, according to a preset time period, the charging voltage converted by the charging module provided by the 5Pin Docking interface or the USB port is continuously collected and recorded. When the number of recorded first voltage information exceeds the preset inspection number, the maximum value, minimum value and average value are obtained from the recorded first voltage information, which are recorded as the first voltage maximum value, the first voltage minimum value and the first voltage average value, respectively. Secondly, the difference between the first voltage maximum value and the first voltage minimum value is calculated to represent the vibration amplitude of the charging voltage amplitude. When the vibration amplitude is higher, the charging voltage stability is worse; when the difference is less than the preset difference threshold, it means that the stability of the charging voltage meets the charging requirements; wherein the preset difference threshold is usually 5% or 10% of the target charging voltage. Then, it is determined whether the first voltage average is greater than the first voltage threshold. If so, it means that the charging voltage meets the voltage amplitude requirement of the charging module for charging the tablet computer. Finally, according to the remaining power of the tablet computer, the target charging power is obtained according to the preset power-power correspondence table; and the first current information is calculated based on the target charging power and the first voltage information.
[0102] According to an embodiment of the present invention, it also includes:
[0103] Data signal isolation circuit;
[0104] Obtain data signal information;
[0105] According to the data signal information, the peripheral communication data is obtained.
[0106] It should be noted that the data signal isolation circuit is used to isolate the communication electrical signals between the peripheral device and the tablet computer, so that the communication electrical signals of the peripheral device cannot be directly connected to the tablet computer, avoiding the situation where the working voltage of the tablet computer fluctuates or even burns out the peripheral device and the USB signal processing module due to the instability or abnormal voltage of the peripheral device. As an implementation method, the data signal isolation circuit can be implemented by a photoelectric coupler, thereby achieving physical isolation of the electrical signal.
[0107] According to an embodiment of the present invention, it also includes:
[0108] Anti-backflow circuit;
[0109] Acquiring second voltage information;
[0110] determining whether the first voltage information exceeds the second voltage information;
[0111] If so, the anti-backflow circuit is driven to cut off the input of the charging voltage.
[0112] It should be noted that the second voltage information is the voltage value provided by the 5Pin Docking interface in the charger mode. When the voltage value of the charging module is higher than the voltage value provided by the 5Pin Docking interface, in order to avoid current backflow and thus cause charger abnormality, the anti-backflow circuit is driven to cut off the input of the charging voltage provided by the 5Pin Docking interface.
[0113] It is worth mentioning that it also includes:
[0114] Acquiring second voltage information and third voltage information;
[0115] Determining whether the third voltage information exceeds a preset first voltage threshold;
[0116] If yes, the anti-backflow circuit chooses to cut off the second voltage information;
[0117] If not, determining whether the second voltage information exceeds a preset first voltage threshold;
[0118] If so, the anti-backflow circuit selects to conduct the second voltage information.
[0119] It should be noted that the second voltage information is the voltage value provided by the 5Pin Docking interface in the charger mode; the third voltage information is the voltage value provided by the USB port in the charger mode. When the 5Pin Docking interface and the USB port are connected to the charger at the same time, first, determine whether the voltage provided by the charger of the USB port meets the charging voltage requirement; if so, the charging voltage provided by the 5Pin Docking interface is cut off through the anti-backfeed circuit, and the charging module obtains charging power from the charger of the USB port; if not, determine whether the voltage provided by the 5Pin Docking interface meets the charging voltage requirement, and if so, the charging voltage provided by the 5Pin Docking interface is connected through the anti-backfeed circuit to provide charging power for the charging module.
[0120] It is worth mentioning that it also includes:
[0121] Determining that the working mode information is a peripheral mode;
[0122] Acquiring third voltage information;
[0123] Determining whether the third voltage information exceeds a preset first voltage threshold;
[0124] If yes, get the first time information;
[0125] Determining whether the first time information exceeds a preset time threshold;
[0126] If yes, the working mode is switched to the charger mode.
[0127] It should be noted that when the 5Pin Docking interface is connected to a peripheral device in peripheral mode, if the USB port is connected to a charger and the charging voltage provided meets the charging requirements, the following strategy is adopted to realize the function of stopping charging when the peripheral device is in use and starting charging when the peripheral device is in standby. The first time information is the time when the peripheral device is in a state of not sending communication data, that is, the length of time in the standby state. When the charging voltage provided by the USB port meets the charging requirements, it is determined whether the time the peripheral device is in the standby state exceeds the preset time threshold. If so, it means that the peripheral device has not been working for a long time, and the current user is less likely to use the peripheral device. At this time, the working mode is switched to the charger mode to charge the tablet computer.
[0128] It is worth mentioning that it also includes:
[0129] Determining that the working mode information is a peripheral mode;
[0130] Acquiring third voltage information;
[0131] Determining whether the third voltage information exceeds a preset first voltage threshold;
[0132] If yes, obtaining first power information;
[0133] Determining whether the first power information is lower than a preset power threshold;
[0134] If yes, the working mode is switched to the charger mode.
[0135] It should be noted that when the 5Pin Docking interface is connected to a peripheral device in peripheral mode, if the USB port is connected to a charger and the charging voltage provided meets the charging requirements, the following strategy is adopted to implement the emergency charging function. When the charging voltage provided by the USB port meets the charging requirements, if the first power information of the tablet computer is lower than the preset power threshold, it means that the tablet computer is in urgent need of energy replenishment, so the working mode is switched to the charger mode to charge the tablet computer.
[0136] Figure 5 A block diagram of an intelligent control system for a docking station of a tablet computer according to the present invention is shown.
[0137] like Figure 5As shown, the second aspect of the present invention discloses a tablet computer docking station intelligent control system 5, including a memory 51 and a processor 52, wherein the memory includes a tablet computer docking station intelligent control method program, and the tablet computer docking station intelligent control method program is executed by the processor to implement the following steps:
[0138] Acquire first connection state information;
[0139] Determining whether the first connection state information is in an on state;
[0140] If yes, send the first handshake instruction message;
[0141] Obtain first handshake feedback instruction information;
[0142] Obtaining working mode information of the expansion dock according to the first handshake feedback instruction information;
[0143] The working state is set according to the working mode information.
[0144] It should be noted that the first connection status information is the plug-in status of the USB interface. When the USB interface is connected to an external device or a charger, the first connection status is in the on state; the first handshake instruction information is a communication instruction preset by the processor, which is used to determine what kind of device is connected to the USB interface; the first handshake feedback instruction information is the instruction fed back to the processor after the device connected to the USB obtains the correct handshake instruction; the working mode information is the working mode of the current expansion dock, including peripheral mode and charger mode. Figure 2 The structure diagram of a docking station of a tablet computer according to the present invention is shown as follows: Figure 2 As shown, when an external device or charger is connected to the 5Pin Docking interface of the docking station, the first connection status information is in the connected state. Then, according to the preset order, the handshake instructions of each device are sent in sequence, for example, in the order of the charger handshake instruction, the keyboard handshake instruction, and the mouse handshake instruction; if the handshake feedback instruction is obtained within the preset waiting time, it means that the handshake is successful; you can know whether the connected device is a charger according to the handshake feedback instruction. If the connected device is a charger, the current working mode of the docking station is the charger mode, and the tablet computer is charged by driving the anti-backflow circuit and the charging module. If the connected device is a peripheral device, the current working mode of the docking station is the peripheral mode, and the communication between the peripheral and the tablet computer is realized by driving the digital signal isolation circuit and the peripheral and USB signal processing module.
[0145] According to an embodiment of the present invention, obtaining the working mode information of the expansion dock according to the first handshake feedback instruction information is specifically:
[0146] Determining that the working mode information is a peripheral mode;
[0147] The driving data signal interface is in an on state and the driving power supply interface is in an off state;
[0148] Acquiring first communication authority information;
[0149] The peripheral device communication data is collected according to the first communication authority information.
[0150] It should be noted that the first communication permission information is the communication permission of the current docking station interface. When it is in the communication permission state, the peripherals connected to the current docking station interface are allowed to communicate data with the tablet computer. The tablet computer can usually be set with two or more docking stations. Under normal circumstances, the communication permission is switched according to time, such as docking station interface 1 and docking station interface 2. From the 1st second to the 2nd second, docking station interface 1 allows communication and docking station interface 2 prohibits communication; from the 2nd second to the 4th second, docking station interface 1 prohibits communication and docking station interface 2 allows communication; this cycle is repeated to realize the communication of multiple devices in turn; in addition, the tablet computer allocates different lengths of allowed communication time according to the connected peripherals. When the working mode information is the peripheral mode, first, the driving data signal interface is in the on state and the driving power supply interface is in the off state, that is, the data signal interface is connected to the 5Pin Docking interface and the power supply interface is disconnected from the 5PinDocking interface. In practical applications, the connection and disconnection of the interface connection state are usually realized in the form of a switch circuit. Then, when it is determined that the first communication authority information is in a communication-permitted state, the communication electrical signal between the peripheral device and the tablet computer is converted into a level signal receivable by the other party through a data signal isolation circuit to achieve isolated data communication.
[0151] According to an embodiment of the present invention, obtaining the working mode information of the expansion dock according to the first handshake feedback instruction information is specifically:
[0152] Determining that the working mode information is a charger mode;
[0153] The driving data signal interface is in a cut-off state and the driving power supply interface is in a conducting state;
[0154] Acquiring first voltage information and first power information;
[0155] Determine first current information according to the first voltage information and the first power information;
[0156] The charging current is set according to the first current information.
[0157] It should be noted that the first voltage information is the charging voltage value provided by the 5Pin Docking interface or the USB port after conversion by the charging module; the first power information is the remaining power of the battery of the tablet computer; the first current information is the charging current provided by the charging module to the tablet computer. When the working mode information is the charger mode, the data signal interface is driven to be in the cut-off state and the power supply interface is driven to be in the on state, that is, the data signal interface is disconnected from the 5Pin Docking interface and the power supply interface is connected to the 5Pin Docking interface. In practical applications, the connection and disconnection of the interface connection state are usually achieved in the form of a switch circuit. Then, the size of the charging voltage provided by the charger to the tablet computer through the 5Pin Docking interface or the USB port, and the remaining power of the battery of the tablet computer are obtained; according to the remaining power of the tablet computer, according to the preset power power correspondence table, the target charging power is obtained; according to the target charging power and the first voltage information, the first current information is calculated to set the charging module to charge the tablet computer.
[0158] According to an embodiment of the present invention, determining the first current information according to the first voltage information and the first power information is specifically:
[0159] Collecting and recording first voltage information according to a preset time period;
[0160] Obtaining a first voltage maximum value, a first voltage minimum value, and a first voltage average value according to the recorded first voltage information;
[0161] Calculating a difference between the first voltage maximum value and the first voltage minimum value, and determining whether the difference is less than a preset difference threshold;
[0162] If yes, determining whether the first voltage average is greater than a first voltage threshold;
[0163] If yes, determining the first power information according to the first power information;
[0164] First current information is obtained according to the first power information and the first voltage average value.
[0165] It should be noted that when the working mode information is the charger mode, before allowing the charger to charge the tablet computer, the voltage amplitude and voltage stability of the charging voltage value converted by the charging module provided by the 5Pin Docking interface or the USB port are first checked. Only when the charging conditions are met, the charger is allowed to charge the tablet computer, thereby ensuring the safety of charging and avoiding damage to the tablet computer due to charger abnormality. First, according to a preset time period, the charging voltage converted by the charging module provided by the 5Pin Docking interface or the USB port is continuously collected and recorded. When the number of recorded first voltage information exceeds the preset inspection number, the maximum value, minimum value and average value are obtained from the recorded first voltage information, which are recorded as the first voltage maximum value, the first voltage minimum value and the first voltage average value, respectively. Secondly, the difference between the first voltage maximum value and the first voltage minimum value is calculated to represent the vibration amplitude of the charging voltage amplitude. When the vibration amplitude is higher, the charging voltage stability is worse; when the difference is less than the preset difference threshold, it means that the stability of the charging voltage meets the charging requirements; wherein the preset difference threshold is usually 5% or 10% of the target charging voltage. Then, it is determined whether the first voltage average is greater than the first voltage threshold. If so, it means that the charging voltage meets the voltage amplitude requirement of the charging module for charging the tablet computer. Finally, according to the remaining power of the tablet computer, the target charging power is obtained according to the preset power-power correspondence table; and the first current information is calculated based on the target charging power and the first voltage information.
[0166] According to an embodiment of the present invention, it also includes:
[0167] Data signal isolation circuit;
[0168] Obtain data signal information;
[0169] According to the data signal information, the peripheral communication data is obtained.
[0170] It should be noted that the data signal isolation circuit is used to isolate the communication electrical signals between the peripheral device and the tablet computer, so that the communication electrical signals of the peripheral device cannot be directly connected to the tablet computer, avoiding the situation where the working voltage of the tablet computer fluctuates or even burns out the peripheral device and the USB signal processing module due to the instability or abnormal voltage of the peripheral device. As an implementation method, the data signal isolation circuit can be implemented by a photoelectric coupler, thereby achieving physical isolation of the electrical signal.
[0171] According to an embodiment of the present invention, it also includes:
[0172] Anti-backflow circuit;
[0173] Acquiring second voltage information;
[0174] determining whether the first voltage information exceeds the second voltage information;
[0175] If so, the anti-backflow circuit is driven to cut off the input of the charging voltage.
[0176] It should be noted that the second voltage information is the voltage value provided by the 5Pin Docking interface in the charger mode. When the voltage value of the charging module is higher than the voltage value provided by the 5Pin Docking interface, in order to avoid current backflow and thus cause charger abnormality, the anti-backflow circuit is driven to cut off the input of the charging voltage provided by the 5Pin Docking interface.
[0177] It is worth mentioning that it also includes:
[0178] Acquiring second voltage information and third voltage information;
[0179] Determining whether the third voltage information exceeds a preset first voltage threshold;
[0180] If yes, the anti-backflow circuit chooses to cut off the second voltage information;
[0181] If not, determining whether the second voltage information exceeds a preset first voltage threshold;
[0182] If so, the anti-backflow circuit selects to conduct the second voltage information.
[0183] It should be noted that the second voltage information is the voltage value provided by the 5Pin Docking interface in the charger mode; the third voltage information is the voltage value provided by the USB port in the charger mode. When the 5Pin Docking interface and the USB port are connected to the charger at the same time, first, determine whether the voltage provided by the charger of the USB port meets the charging voltage requirement; if so, the charging voltage provided by the 5Pin Docking interface is cut off through the anti-backfeed circuit, and the charging module obtains charging power from the charger of the USB port; if not, determine whether the voltage provided by the 5Pin Docking interface meets the charging voltage requirement, and if so, the charging voltage provided by the 5Pin Docking interface is connected through the anti-backfeed circuit to provide charging power for the charging module.
[0184] It is worth mentioning that it also includes:
[0185] Determining that the working mode information is a peripheral mode;
[0186] Acquiring third voltage information;
[0187] Determining whether the third voltage information exceeds a preset first voltage threshold;
[0188] If yes, get the first time information;
[0189] Determining whether the first time information exceeds a preset time threshold;
[0190] If yes, the working mode is switched to the charger mode.
[0191] It should be noted that when the 5Pin Docking interface is connected to a peripheral device in peripheral mode, if the USB port is connected to a charger and the charging voltage provided meets the charging requirements, the following strategy is adopted to realize the function of stopping charging when the peripheral device is in use and starting charging when the peripheral device is in standby. The first time information is the time when the peripheral device is in a state of not sending communication data, that is, the length of time in the standby state. When the charging voltage provided by the USB port meets the charging requirements, it is determined whether the time the peripheral device is in the standby state exceeds the preset time threshold. If so, it means that the peripheral device has not been working for a long time, and the current user is less likely to use the peripheral device. At this time, the working mode is switched to the charger mode to charge the tablet computer.
[0192] It is worth mentioning that it also includes:
[0193] Determining that the working mode information is a peripheral mode;
[0194] Acquiring third voltage information;
[0195] Determining whether the third voltage information exceeds a preset first voltage threshold;
[0196] If yes, obtaining first power information;
[0197] Determining whether the first power information is lower than a preset power threshold;
[0198] If yes, the working mode is switched to the charger mode.
[0199] It should be noted that when the 5Pin Docking interface is connected to a peripheral device in peripheral mode, if the USB port is connected to a charger and the charging voltage provided meets the charging requirements, the following strategy is adopted to implement the emergency charging function. When the charging voltage provided by the USB port meets the charging requirements, if the first power information of the tablet computer is lower than the preset power threshold, it means that the tablet computer is in urgent need of energy replenishment, so the working mode is switched to the charger mode to charge the tablet computer.
[0200] A third aspect of the present invention provides a computer-readable storage medium, which includes a program for an intelligent control method for an expansion dock of a tablet computer. When the program for the intelligent control method for the expansion dock of a tablet computer is executed by a processor, the steps of the intelligent control method for the expansion dock of a tablet computer as described in any one of the above items are implemented.
[0201] The present invention provides an intelligent control method, system and storage medium for an expansion dock of a tablet computer. When it is determined that first connection state information is in an on state, first handshake feedback instruction information obtained after sending first handshake instruction information is used to obtain working mode information of the expansion dock, and the working state of the expansion dock is set according to the working mode information; when it is determined that the working mode information is a peripheral mode, the stability of data communication is improved by isolating data signals; when it is determined that the working mode information is a charger mode, the safety of the charging process is improved by anti-backflow technology; thereby, an expansion dock interface is realized that can realize both a peripheral connection function and meet charging requirements, thereby improving user experience.
[0202] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
[0203] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for intelligently controlling a docking station of a tablet computer, characterized in that: The method comprises: Acquire first connection state information; Determining whether the first connection state information is in an on state; If yes, send the first handshake instruction information; Obtain first handshake feedback instruction information; Obtaining working mode information of the expansion dock according to the first handshake feedback instruction information; Setting a working state according to the working mode information; Determining that the working mode information is a peripheral mode; The driving data signal interface is in an on state and the driving power supply interface is in an off state; Acquiring first communication authority information; Collecting peripheral device communication data according to the first communication authority information; Acquiring third voltage information; Determining whether the third voltage information exceeds a preset first voltage threshold; If yes, get the first time information; Determining whether the first time information exceeds a preset time threshold; If yes, switching the working mode to charger mode; Determining that the working mode information is a charger mode; Acquiring second voltage information and third voltage information; Determining whether the third voltage information exceeds a preset first voltage threshold; If yes, the anti-backflow circuit chooses to cut off the second voltage information; If not, determining whether the second voltage information exceeds a preset first voltage threshold; If so, the anti-backflow circuit selects to conduct the second voltage information.
2. The method for intelligently controlling a docking station of a tablet computer according to claim 1, characterized in that: The obtaining the working mode information of the expansion dock according to the first handshake feedback instruction information is specifically: Determining that the working mode information is a charger mode; The driving data signal interface is in a cut-off state and the driving power supply interface is in a conducting state; Acquiring first voltage information and first power information; Determine first current information according to the first voltage information and the first power information; The charging current is set according to the first current information.
3. The method for intelligently controlling a docking station of a tablet computer according to claim 2, characterized in that: The determining the first current information according to the first voltage information and the first power information is specifically: Collecting and recording first voltage information according to a preset time period; Obtaining a first voltage maximum value, a first voltage minimum value, and a first voltage average value according to the recorded first voltage information; Calculating a difference between the first voltage maximum value and the first voltage minimum value, and determining whether the difference is less than a preset difference threshold; If yes, determining whether the first voltage average is greater than a first voltage threshold; If yes, determining the first power information according to the first power information; First current information is obtained according to the first power information and the first voltage average value.
4. The method for intelligently controlling a docking station of a tablet computer according to claim 1, characterized in that: Also includes: Data signal isolation circuit; Obtain data signal information; According to the data signal information, the peripheral communication data is obtained.
5. The method for intelligently controlling a docking station of a tablet computer according to claim 2, characterized in that: Also includes: Anti-backflow circuit; Acquiring second voltage information; determining whether the first voltage information exceeds the second voltage information; If so, the anti-backflow circuit is driven to cut off the input of the charging voltage.
6. An intelligent control system for a tablet computer expansion dock, characterized in that: The system includes a memory and a processor, wherein the memory includes a program for intelligently controlling a docking station of a tablet computer, and when the program for intelligently controlling a docking station of a tablet computer is executed by the processor, the following steps are implemented: Acquire first connection state information; Determining whether the first connection state information is in an on state; If yes, send the first handshake instruction information; Obtain first handshake feedback instruction information; Obtaining working mode information of the expansion dock according to the first handshake feedback instruction information; Setting a working state according to the working mode information; Determining that the working mode information is a peripheral mode; The driving data signal interface is in an on state and the driving power supply interface is in an off state; Acquiring first communication authority information; Collecting peripheral device communication data according to the first communication authority information; Acquiring third voltage information; Determining whether the third voltage information exceeds a preset first voltage threshold; If yes, get the first time information; Determining whether the first time information exceeds a preset time threshold; If yes, switching the working mode to charger mode; Determining that the working mode information is a charger mode; Acquiring second voltage information and third voltage information; Determining whether the third voltage information exceeds a preset first voltage threshold; If yes, the anti-backflow circuit chooses to cut off the second voltage information; If not, determining whether the second voltage information exceeds a preset first voltage threshold; If so, the anti-backflow circuit selects to conduct the second voltage information.
7. The tablet computer docking station intelligent control system according to claim 6, characterized in that: The obtaining the working mode information of the expansion dock according to the first handshake feedback instruction information is specifically: Determining that the working mode information is a charger mode; The driving data signal interface is in a cut-off state and the driving power supply interface is in a conducting state; Acquiring first voltage information and first power information; Determine first current information according to the first voltage information and the first power information; The charging current is set according to the first current information.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer-readable storage medium includes a program for intelligently controlling a docking station of a tablet computer. When the program for intelligently controlling a docking station of a tablet computer is executed by a processor, the steps of the method for intelligently controlling a docking station of a tablet computer as described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
A method for multiplexing USB interface and a USB OTG device
CN109032984A
Interface multiplexing circuit
CN222073142U