A Bluetooth interconnected multifunctional desktop charger and control method thereof
The Bluetooth interconnected multifunctional desktop charger addresses data security issues in public spaces by isolating devices and requiring user consent for data exchange, ensuring secure and user-friendly data transmission.
Patent Information
- Application Number
- CN202410593832.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-05-14
AI Technical Summary
Multifunctional desktop chargers in public spaces face data security issues due to simultaneous connections with multiple strangers, compromising data transmission security.
A Bluetooth interconnected multifunctional desktop charger with a main control MCU, transmission chip, and Bluetooth modules ensures secure data transmission by physically isolating devices and requiring user consent for data exchange, using a transmission switching circuit and motor-driven connectors for precise alignment.
Ensures secure data transmission between devices connected to the charger by physically isolating them and requiring user consent, enhancing data security and user experience in shared charging scenarios.
Smart Images

Figure CN118487346B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of charging devices, and in particular relates to a Bluetooth interconnected multifunctional desktop charger and a control method thereof. Background Art
[0002] Multifunctional desktop chargers are called "multifunctional" because they have a variety of different functions and features that make them more than just simple charging devices. Generally include multi-port charging: Multifunctional desktop chargers are usually equipped with multiple charging ports, including USB, USB-C (Type-C), and even traditional AC outlets, which can charge multiple devices at the same time, such as mobile phones, tablets, laptops, etc. Data transfer capabilities: Some advanced desktop chargers can also serve as data transfer centers, connecting all Type-C ports of the charger to the same hub, allowing data to be exchanged between devices connected to the Type-C ports of the charger or between computers. Smart charging technology: Many modern desktop chargers have built-in smart charging technologies, such as fast charging protocol support (such as Qualcomm Quick Charge) and automatic current adjustment. These technologies can adjust the output power according to the needs of the connected device, thereby optimizing charging efficiency and speed. Integrated display or control interface: Some desktop chargers are equipped with LED displays or other types of display interfaces to display the current charging status, such as charging voltage, charging current, charging power, etc. Wireless charging function: With the popularity of wireless charging technology, many multifunctional chargers also include wireless charging pads, enabling them to provide charging services for devices that support wireless charging.
[0003] The multifunctional desktop chargers in the prior art are generally used by individuals. With the popularity of laptops, more and more people are invited to use laptops in public places such as libraries and coffee shops for long-term team work or group study. Therefore, how to provide users with multifunctional services in these public places has become a new direction for the improvement of multifunctional desktop chargers. For example, a smart socket management method and system disclosed in patent document 1 (publication number CN104793572A) allows users to obtain usage rights through an App and determine whether to supply power based on the user's usage rights. If the user has the usage rights, the socket is powered. This solution can only supply power to users. If you want to provide other functions to users in public places, there are still the following areas that need to be improved: because the multiple Type-C ports of the same desktop charger in public places may be connected to other strangers at the same time in addition to being connected by users and their companions, there are data security issues in data transmission based on the charger. Summary of the invention
[0004] The purpose of the present application is to solve at least one of the above problems and to provide a Bluetooth interconnected multifunctional desktop charger and a control method thereof, which can ensure the security of data transmission through the desktop charger when using the desktop charger together with strangers for charging.
[0005] In order to achieve the above objectives, this application provides the following technical solutions:
[0006] In the first aspect, the present application provides a Bluetooth interconnected multifunctional desktop charger, including a main control MCU, a transmission chip, multiple Bluetooth modules and multiple fast charging modules; each of the fast charging modules includes:
[0007] An output port, the output port being used to be electrically connected to a Type-C interface of a device to be charged via a Type-C data cable;
[0008] A charging unit, the charging unit comprising a fast charging protocol chip, a MOS tube circuit, a relay and a power supply circuit, the first end of the fast charging protocol chip is electrically connected to the CC channel of the output port, the second end of the fast charging protocol chip is electrically connected to the first end of the MOS tube circuit, the second end of the MOS tube circuit is electrically connected to the output port, the third end of the MOS tube circuit is electrically connected to the first end of the power supply circuit, the second end of the power supply circuit is electrically connected to the first end of the relay, the second end of the relay is electrically connected to the AC port, and the third end of the relay is electrically connected to the main control MCU;
[0009] The main control MCU is used to control the relay to be turned on and off in response to the charging control signal received by the Bluetooth module;
[0010] The fast charging protocol chip is used to control the on and off of the MOS tube circuit in response to the fast charging control signal of the CC channel;
[0011] When the relay and the MOS tube circuit are both turned on, the power supply circuit is electrically connected to the AC port to obtain AC power, and outputs DC power from the first end after rectification, filtering, and voltage conversion. The DC power is supplied to the device to be charged that is electrically connected to the output port through the Type-C data cable through the MOS tube circuit in the turned-on state;
[0012] The first end and the second end of the transmission chip are controlled by the main control MCU, and can be electrically connected to the output ports of any two fast charging modules in response to the transmission signal output by the main control MCU. When the output ports of the two fast charging modules are electrically connected to the first end and the second end of the transmission chip respectively, the devices to be charged that are electrically connected to the output ports of the two fast charging modules through Type-C data cables can transmit data to each other through the transmission chip.
[0013] As a further improvement, it also includes a transmission switching circuit, which can respond to the transmission signal output by the main control MCU, so that the first end and the second end of the transmission chip are respectively electrically connected to the output ports of any two fast charging modules; the transmission switching circuit includes a first USB switch, a second USB switch and hubs with the same number as the fast charging modules, each hub is respectively electrically connected to a corresponding output port, the input end of the first USB switch is respectively electrically connected to each hub, and the input end of the second USB switch is respectively electrically connected to each hub; the first end of the transmission chip is electrically connected to the output end of the first USB switch, and the second end of the transmission chip is electrically connected to the output end of the second USB switch;
[0014] The first USB switch is used to control the first USB switch to connect the electrical connection between the first end of the transmission chip and the corresponding hub in response to the transmission signal output by the main control MCU, so that the first end of the transmission chip is electrically connected to the output port of the corresponding fast charging module;
[0015] The second USB switch is used to respond to the transmission signal output by the main control MCU, control the second USB switch to connect the electrical connection between the second end of the transmission chip and the corresponding hub, so that the second end of the transmission chip is electrically connected to the output port of the corresponding fast charging module.
[0016] As a further improvement, the first output port is electrically connected to a first pair of Type-C male connectors, the second output port is electrically connected to a second pair of Type-C male connectors, and each output port is electrically connected to a corresponding Type-C female connector;
[0017] The desktop charger also includes a transmission switching device, which can respond to the transmission signal output by the main control MCU, so that the first end and the second end of the transmission chip are respectively electrically connected to the output ports of any two fast charging modules; the transmission switching device includes a control part, an execution part and a mechanical part, and the control part includes a first motor, a second motor, and a third motor electrically connected to the main control MCU through a driving circuit respectively;
[0018] The execution part includes a first linear motion mechanism driven by a first motor, a second linear motion mechanism driven by a second motor, and a third linear motion mechanism driven by a third motor;
[0019] The mechanical part includes a first bracket, a second bracket, a first slider and a second slider, the number of the first sliders is two, the first bracket is provided with a first slide rail extending along a first direction, the second bracket is provided with a second slide rail extending along a second direction, the first direction and the second direction are perpendicular, the second bracket is fixedly connected to the charger housing, the first bracket is fixed to the second slider, the first bracket is slidably connected to the second slide rail through the second slider, and the movable end of the third linear motion mechanism is fixedly connected to the first bracket;
[0020] The first pair of Type-C male connectors are fixed on one of the first sliders, and the movable end of the first linear motion mechanism is fixedly connected to one of the first sliders; the second pair of Type-C male connectors are fixed on the other first slider, and the movable end of the second linear motion mechanism is fixedly connected to the other first slider; the first pair of Type-C male connectors and the second pair of Type-C male connectors are slidably connected to the first slide rail through the corresponding first sliders respectively; the Type-C female connectors are arranged in sequence along the direction in which the first slide rail extends;
[0021] The first motor is used to drive the movable end of the first linear motion mechanism to move along the first direction in response to the counter-transmission signal output by the main control MCU, so as to drive the first counter-transmission Type-C male connector to align with the corresponding Type-C female connector;
[0022] The second motor is used to drive the movable end of the second linear motion mechanism to move along the first direction in response to the transmission signal output by the main control MCU, so as to drive the second transmission Type-C male connector to align with the corresponding Type-C female connector;
[0023] The third motor is used to respond to the transmission signal output by the main control MCU to drive the active end of the third linear motion mechanism to move along the second direction, so as to drive the first transmission Type-C male connector and the second transmission Type-C male connector to be respectively inserted into the aligned Type-C female connector, so that the first end and the second end of the transmission chip are respectively electrically connected to the output ports of the corresponding two fast charging modules.
[0024] As a further improvement, each charging unit also includes an electric energy metering chip, and the second end of the MOS tube circuit is electrically connected to the output port through the electric energy metering chip; the electric energy metering chip is used to detect the electric energy parameters directly between the second end of the MOS tube circuit and the output port and transmit them to the main control MCU.
[0025] As a further improvement, each charging unit also includes an alarm device, and the main control MCU is also used to: in a locked state, when it is detected that the output port of the charging unit switches from a connected state to an idle state, drive the alarm device to send an alarm signal; wherein, the alarm device includes one or more of a buzzer, a speaker or an LED light, and the locked state is a state when no unlocking signal is received from the Bluetooth module of the charging unit.
[0026] In a second aspect, the present application provides a control method for a Bluetooth interconnected multifunctional desktop charger, which is applied to the above-mentioned desktop charger, wherein the first output port of the first fast charging module of the desktop charger is electrically connected to the first device, the second output port of the second fast charging module of the desktop charger is electrically connected to the second device, and the first end and the second end of the transmission chip of the first output port and the second output port are electrically connected to the first output port and the second output port respectively; the first device is installed with a first driver, and the second device is installed with a second driver, and data communication is performed between the first driver and the second driver through the transmission chip; the first device is electrically connected to a first mouse and a first screen, and the second device is electrically connected to a second screen;
[0027] When transferring a file from a first device to a second device, the method includes:
[0028] When the first driver detects that the first mouse drags a file within the range of the first screen, the first driver obtains the resolution of the second screen from the second driver through the transmission chip, and increases the activity range of the mouse pointer on the first screen based on the resolution of the second screen; the newly added activity range of the mouse pointer on the first screen is defined as a first virtual screen range, the size of the first virtual screen range is the same as the second screen range, and the first virtual screen range and the first screen range are in the same screen coordinate system and are connected;
[0029] The first driver detects the mouse event of the first mouse in real time and uses the mouse event of the first mouse as a mouse control signal, and sends the mouse control signal to the second driver in real time;
[0030] When the mouse pointer of the first screen is within the range of the first screen, the first driver controls the mouse pointer on the first screen to move to a position corresponding to the mouse event of the first mouse and performs an operation corresponding to the mouse event;
[0031] When the mouse pointer of the first screen is within the range of the first virtual screen, the first driver sends the file to the second driver through the transmission chip, and the second driver generates an icon of the file at the position corresponding to the mouse pointer on the second screen, and the second driver controls the movement of the mouse pointer on the second screen in response to the mouse control signal and performs the operation corresponding to the mouse event;
[0032] When the second driver detects a mouse release event, it obtains the current target coordinates of the mouse pointer on the second screen; the second driver saves the file received through the transmission chip at a position corresponding to the target coordinates on the second screen.
[0033] As a further improvement, the method further comprises:
[0034] When the second driver detects a mouse release event, it cancels the control permission of the mouse control signal on the mouse pointer on the second screen.
[0035] As a further improvement, the arrangement position relationship between the first virtual screen and the first screen is determined by the following process:
[0036] When it is detected that the first mouse drags the file to touch the left edge of the first screen, the first virtual screen is arranged on the left side of the first screen;
[0037] When it is detected that the first mouse drags the file to touch the right edge of the first screen, the first virtual screen is arranged on the right side of the first screen;
[0038] When it is detected that the first mouse drags the file to touch the upper edge of the first screen, the first virtual screen is arranged on the upper side of the first screen;
[0039] When it is detected that the first mouse drags the file to contact the lower edge of the first screen, the first virtual screen is arranged at the lower side of the first screen.
[0040] As a further improvement, the method further comprises:
[0041] Determining the edges of the first virtual screen and the first screen that are in contact with each other based on the arrangement position relationship between the first virtual screen and the first screen; wherein the edge of the first virtual screen in contact with the first screen is defined as the first virtual edge, and the edge of the first screen in contact with the first virtual screen is defined as the first screen edge;
[0042] determining a length relationship between the first virtual side and the first screen side based on the second screen resolution and the first screen resolution;
[0043] When it is detected that the length of the first virtual side is equal to the first screen side, aligning the midpoint of the first virtual side with the midpoint of the first screen side;
[0044] When detecting that the length of the first virtual side is greater than the first screen side, aligning the midpoint of the first virtual side with the midpoint of the first screen side;
[0045] When it is detected that the length of the first virtual edge is less than the first screen edge, the position where the first mouse last touched the first screen edge when dragging the file is used as a reference position; if the reference position is between the upper end point and the midpoint of the first screen edge or is located at the upper end point, the upper end point of the first virtual edge is aligned with the upper end point of the first screen edge; if the reference position includes between the lower end point and the midpoint of the first screen edge or is located at the lower end point, the lower end point of the first virtual edge is aligned with the lower end point of the first screen edge; if the reference position is located at the midpoint of the first screen edge, the midpoint of the first virtual edge is aligned with the midpoint of the first screen edge.
[0046] As a further improvement, the method further comprises:
[0047] Determining the edges of the first virtual screen and the first screen that are in contact with each other based on the arrangement position relationship between the first virtual screen and the first screen; wherein the edge of the first virtual screen in contact with the first screen is defined as the first virtual edge, and the edge of the first screen in contact with the first virtual screen is defined as the first screen edge;
[0048] determining a length relationship between the first virtual side and the first screen side based on the second screen resolution and the first screen resolution;
[0049] When it is detected that the length of the first virtual side is equal to the first screen side, aligning the midpoint of the first virtual side with the midpoint of the first screen side;
[0050] When detecting that the length of the first virtual side is greater than the first screen side, aligning the midpoint of the first virtual side with the midpoint of the first screen side;
[0051] When it is detected that the length of the first virtual edge is less than the first screen edge, when it is subsequently detected that the first mouse is dragging the file to move toward the first screen edge of the first screen, two reference points on the moving trajectory are obtained before the first mouse is dragging the file to contact the first screen edge, and a reference straight line is determined based on the two reference points. The position where the reference straight line contacts the first screen edge is used as the reference position. If the reference position is between the upper end point and the midpoint of the first screen edge or at the upper end point, the upper end point of the first virtual edge is aligned with the upper end point of the first screen edge; if the reference position includes between the lower end point and the midpoint of the first screen edge or is at the lower end point, the lower end point of the first virtual edge is aligned with the lower end point of the first screen edge; if the reference position is at the midpoint of the first screen edge, the midpoint of the first virtual edge is aligned with the midpoint of the first screen edge.
[0052] Beneficial effects:
[0053] 1. Compared with the prior art in which each Type-C port of the charger is connected to the same hub, data exchange between devices connected to each Type-C port of the charger or between the device and the computer is allowed, resulting in the problem that a stranger's device may also access the data of the user's device. The present application provides a Bluetooth interconnected multifunctional desktop charger, which ensures that the devices connected to the charger are physically isolated, and data transmission can only be performed with the consent of both users, thereby improving the security of data transmission through the charger in the scenario where strangers share the desktop charger.
[0054] 2. In a control method for a Bluetooth-interconnected multifunctional desktop charger provided in the present application, the mouse events generated when the user controls the first mouse to move in the first virtual screen are used by the second driver to control the synchronous movement of the device pointer on the second screen. Therefore, the user operating the first mouse will feel that his mouse pointer drags the file across the screen to the second device, so that the user of the first device can customize the placement of each file when the file is transferred to the second device, thereby improving the user experience of transmitting data.
[0055] 3. Since the mouse pointer on the first virtual screen cannot be seen by the user, the size of the first virtual screen is set to be the same as that of the second screen. Therefore, the user can know the real-time position of the mouse pointer on the first virtual screen by watching the position of the mouse pointer synchronized on the second screen of the second device without seeing the mouse pointer on the first virtual screen, thereby ensuring that the user can accurately know the real-time position of the mouse pointer on the first virtual screen and improving the feel and visual consistency of the user's operation of the first mouse. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to make the technical problems solved by the present invention, the technical means adopted and the technical effects achieved more clearly, the specific embodiments of the present invention will be described in detail with reference to the accompanying drawings. However, it should be noted that the drawings described below are only drawings of exemplary embodiments of the present invention, and those skilled in the art can obtain drawings of other embodiments based on these drawings without creative work.
[0057] Figure 1 A topological structure of a Bluetooth interconnected multifunctional desktop charger provided in one embodiment of the present invention;
[0058] Figure 2 A topological structure of a counter-transmission switching circuit provided in an embodiment of the present invention;
[0059] Figure 3 A schematic diagram of the principle of a transmission switching device provided by an embodiment of the present invention;
[0060] Figure 4A schematic diagram of an application environment of a control method for a desktop charger provided by an embodiment of the present invention;
[0061] Figure 5 A schematic diagram of the arrangement position relationship between the first virtual screen and the first screen when the length of the first virtual side is equal to the first screen side in one embodiment of the present invention;
[0062] Figure 6 A schematic diagram of the arrangement position relationship between the first virtual screen and the first screen when the length of the first virtual side is greater than the first screen side in one embodiment of the present invention;
[0063] Figure 7 A schematic diagram of the arrangement position relationship between the first virtual screen and the first screen when the length of the first virtual side is smaller than the first screen side in one embodiment of the present invention;
[0064] Figure 8 It is a schematic diagram of the principle of determining a reference position according to the movement trajectory of a file dragged by a first mouse in one embodiment of the present invention;
[0065] Fig. 9 A schematic flow chart of a control method for a desktop charger provided in one embodiment of the present invention;
[0066] Fig.10 A schematic flow chart of a control method for a desktop charger provided in one embodiment of the present invention;
[0067] Fig.11 The figure is a flow chart of a control method of a desktop charger provided in one embodiment of the present invention.
[0068] Figure numerals: 11, first bracket; 12, first slide rail; 13, first slider; 14, second bracket; 15, second slide rail; 16, second slider. DETAILED DESCRIPTION
[0069] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0070] Reference Figure 1 In some embodiments, a Bluetooth interconnected multifunctional desktop charger is provided, including a main control MCU, a transmission chip, multiple Bluetooth modules and multiple fast charging modules. Each fast charging module can supply power to a device to be charged via a Type-C data cable. A desktop charger can be equipped with multiple fast charging modules. Figure 1The desktop charger shown is equipped with 4 fast charging modules. Figure 1 As shown, the transmission chip can select the output ports of any two fast charging modules for connection. Specifically, the transmission chip is used to realize data transmission between two computer devices. When in use, the user scans the QR code provided by the corresponding fast charging module through the mobile phone App to log in to the corresponding account, and obtains the charging control signal corresponding to the fast charging module from the server. After the mobile phone establishes a Bluetooth connection with the fast charging module, the mobile phone sends the charging control signal to the main control MCU of the desktop charger via Bluetooth. The main control MCU controls the relay to turn on the circuit of the fast charging module, so that the corresponding device can be powered. And during use, the main control MCU will synchronize the charging data detected by the energy metering chip to the mobile phone App via Bluetooth in real time, so that users can understand the charging status of the device. Specifically, the model of the energy metering chip is HLW8112.
[0071] like Figure 1 As shown, the desktop charger in this embodiment includes 4 fast charging modules. The following takes the first fast charging module as an example to illustrate how the fast charging module charges the device connected to the first output port. The first fast charging module includes a first input port and a first charging unit; the first output port is used to be electrically connected to the Type-C interface of the device to be charged through a Type-C data cable; the first charging unit includes a first fast charging protocol chip, a first MOS tube circuit, a first relay and a first power supply circuit. The first end of the first fast charging protocol chip is electrically connected to the CC channel of the first output port, the second end of the first fast charging protocol chip is electrically connected to the first end of the first MOS tube circuit, the second end of the first MOS tube circuit is electrically connected to the first output port, the third end of the first MOS tube circuit is electrically connected to the first end of the first power supply circuit, the second end of the first power supply circuit is electrically connected to the first end of the first relay, the second end of the first relay is electrically connected to the AC port, and the third end of the first relay is electrically connected to the main control MCU. Specifically, the main control MCU is used to control the first relay to turn on and off in response to the charging control signal received by the first Bluetooth module; the first fast charging protocol chip is used to control the first MOS tube circuit to turn on and off in response to the fast charging control signal of the CC channel. When the first relay and the first MOS tube circuit are both turned on, the first power supply circuit is electrically connected to the AC port to obtain AC power, and outputs DC power from the first end after rectification, filtering, and voltage conversion. The DC power is supplied to the device to be charged that is electrically connected to the first output port via the Type-C data cable through the first MOS tube circuit in the on state.
[0072] In this example, the model of the first fast charging protocol chip is SW2505 chip. The specific first MOS tube circuit is composed of a single MOS tube, the gate of the MOS tube is connected to the first fast charging protocol chip, the source is connected to the first output port, and the drain is connected to the first power supply circuit. When the device to be charged is connected to the first output port through the Type-C data cable, the device to be charged will determine the required charging power through the CC channel and the first fast charging protocol chip. After the fast charging chip adjusts the corresponding output power, it controls the first MOS tube circuit to be turned on and provides a fast charging function to the device to be charged. It can be understood that an AC socket is also provided on the desktop charger, and the AC socket is also controlled by the corresponding relay. Taking into account the inconvenience of users carrying a charging head and a data cable when going out to work, the end of the Type-C data cable in this embodiment that is connected to the first output port is fixed on the desktop charger, and the user does not need to carry the data cable himself.
[0073] like Figure 1 As shown, the desktop charger in this embodiment includes a transmission chip, which enables safe data transmission between devices charged by the same charger. This function is mainly achieved by the first and second ends of the transmission chip being able to be controlled to switch between the first output port, the second output port, the third output port and the fourth output port. The transmission chip model is an OT7300 chip, which can realize data transmission between two computer devices. The technical contribution of this embodiment is to provide a transmission switching circuit and a transmission switching device that arbitrarily switches the connection relationship between the first and second ends of the transmission chip and each output port. In general, the first and second ends of the transmission chip are controlled by the main control MCU, and can be electrically connected to the output ports of any two fast charging modules in response to the transmission signal output by the main control MCU. When the output ports of the two fast charging modules are electrically connected to the first and second ends of the transmission chip, the devices to be charged that are electrically connected to the output ports of the two fast charging modules through the Type-C data cable can transmit data to each other through the transmission chip.
[0074] In some embodiments, a driver is pre-installed in the transmission chip, and the transmission switching circuit is controlled by the main control MCU so that the first end of the transmission chip is electrically connected to the first output port, and the second end is electrically connected to each second output port. After that, the transmission chip transmits the first driver to the first device via the first USB switch, the first hub, and the first output port, and the transmission chip transmits the second driver to the second device via the second USB switch, the second hub, and the second output port. When data needs to be transmitted between the first device and the second device in the future, the first driver running on the first device and the second driver running on the second device transmit the file data through the transmission chip in response to the user's operation on the two devices. For example, when file data is to be transmitted from the first device to the second device, the first driver obtains the corresponding file data, and passes through the first output port, the first hub, the first USB switch, the transmission chip, the second USB switch, the second hub, and the second output port in sequence, so that the corresponding file data is received by the second driver, and the second driver saves the corresponding file data in the target location in response to the user's operation.
[0075] like Figure 2As shown, in one embodiment, a transmission switching circuit is provided for arbitrarily switching the connection relationship between the first end and the second end of the transmission chip and each output port under the control of the main control MCU. The transmission switching circuit can respond to the transmission signal output by the main control MCU, so that the first end and the second end of the transmission chip are respectively electrically connected to the output ports of any two fast charging modules; the transmission switching circuit includes a first USB switch, a second USB switch and a hub with the same number as the fast charging modules. Specifically, in this embodiment, the number of fast charging modules is 4, and the number of hubs is also four, namely the first hub, the second hub, the third hub and the fourth hub. The first hub upstream port is connected to the first output port, the second hub upstream port is connected to the second output port, the third hub upstream port is connected to the third output port, and the fourth hub upstream port is connected to the fourth output port. The first USB switch and the second USB switch are both four-input and one-output switches, that is, they have 4 computer interfaces (i.e., the input ends of the first USB switch and the second USB switch), and 1 USB device interface (i.e., the output ends of the first USB switch and the second USB switch). The USB device interface of the first USB switch is electrically connected to the first end of the transmission chip, and the 4 computer interfaces of the first USB switch are electrically connected to the downstream ports of the first hub, the second hub, the third hub, and the fourth hub respectively; the USB device interface of the second USB switch is electrically connected to the second end of the transmission chip, and the 4 computer interfaces of the second USB switch are electrically connected to the downstream ports of the first hub, the second hub, the third hub, and the fourth hub respectively. The control ends of the first USB switch and the second USB switch are electrically connected to the main control MCU respectively, and the first USB switch can select to connect the corresponding input end and output end in response to the signal input from the control end, and the second USB switch can select to connect the corresponding input end and output end in response to the signal input from the control end.
[0076] The first USB switch is used to respond to the inter-transmission signal output by the main control MCU, and control the first USB switch to connect the electrical connection between the first end of the inter-transmission chip and the corresponding hub, so that the first end of the inter-transmission chip is electrically connected to the output port of the corresponding fast charging module; the second USB switch is used to respond to the inter-transmission signal output by the main control MCU, and control the second USB switch to connect the electrical connection between the second end of the inter-transmission chip and the corresponding hub, so that the second end of the inter-transmission chip is electrically connected to the output port of the corresponding fast charging module. The main control MCU generates the inter-transmission signal based on a set of mutually matching inter-transmission pairing signals received from Bluetooth. For example, the first output port to the fourth output port change to a1, a2, a3, a4 in sequence. The first device is connected to the first output port, numbered a1, and the second device is connected to the second output port, numbered a2. The first device needs to perform data transmission with the second device. At this time, the user of the first device selects the object to be data transmitted as the second output port, numbered a2, in the data transmission selection interface of the mobile phone App. Then the mobile phone App sends a mutual transmission pairing signal to the first Bluetooth module via Bluetooth. The mutual transmission pairing signal carries the output port number currently used by the user and the output port number of the object that the user wants to perform data transmission. The mutual transmission pairing signal is represented by a pairing array [a1, a2]. When the main control MCU detects a new mutual transmission pairing signal, it will check whether other mutual transmission pairing information received within the set time (such as 30 seconds) matches the new mutual transmission pairing signal. When a string formed by taking out each element of a pairing array in positive order is the same as the string formed by taking out each element of another pairing array in reverse order, the two mutual transmission pairing signals are said to match. That is, the other mutual transmission pairing signal that matches the mutual transmission pairing signal [a1, a2] should be [a2, a1]. Obviously, if the user of the second device selects the object to be transmitted as the first output port, numbered a1, in the data transmission selection interface of the mobile phone App, the mobile phone App sends the mutual transmission pairing signal to the second Bluetooth module via Bluetooth. The mutual transmission pairing signal carries the output port number currently used by the user and the output port number of the object to which the user wants to transmit data. The mutual transmission pairing signal is represented as a pairing array [a2, a1]. By verifying whether the mutual transmission pairing signal matches, it can be ensured that data transmission can only be performed when both users of the first output port and the second output port agree, which improves the security of data transmission through the charger in the scenario where strangers share the desktop charger.
[0077] Therefore, if the main control MCU is based on a set of mutually matching mutual transmission pairing signals received from Bluetooth, it can determine from the mutually matching mutual transmission pairing signals which two output ports of the first USB switch and the second USB switch need to be connected to the mutual transmission signal. As for whether the first USB switch connects the first end of the mutual transmission chip with the first output port or connects the first end of the mutual transmission chip with the second output port, the connection rules corresponding to different mutual transmission pairing signals can be pre-set. For example, when the mutually matching mutual transmission pairing signals are [a1, a2] and [a2, a1], the first USB switch connects the first end of the mutual transmission chip with the first output port, and the second USB switch connects the second end of the mutual transmission chip with the second output port.
[0078] In one embodiment, the first output port is electrically connected to a first pair of Type-C male connectors, the second output port is electrically connected to a second pair of Type-C male connectors, and each output port is electrically connected to a corresponding Type-C female connector. Figure 3 As shown, in this embodiment, a transmission switching device is provided for arbitrarily switching the connection relationship between the first end and the second end of the transmission chip and each output port under the control of the main control MCU. The transmission switching device can respond to the transmission signal output by the main control MCU so that the first end and the second end of the transmission chip are respectively electrically connected to the output ports of any two fast charging modules; the transmission switching device includes a control part, an execution part and a mechanical part. The control part includes a first motor, a second motor, and a third motor electrically connected to the main control MCU through a driving circuit respectively.
[0079] The execution part includes a first linear motion mechanism driven by a first motor, a second linear motion mechanism driven by a second motor, and a third linear motion mechanism driven by a third motor; specifically, the first linear motion mechanism, the second linear motion mechanism, and the third linear motion mechanism can be cylinders or screw pairs, respectively, for converting the rotation of the motor into linear motion. The movable ends of the first linear motion mechanism, the second linear motion mechanism, and the third linear motion structure can be piston rods of cylinders or nuts of screw pairs.
[0080] like Figure 3As shown, in one example, the first direction is the left-right direction, and the second direction is the up-down direction. The mechanical part includes a first bracket 11, a second bracket 14, a first slider 13, and a second slider 16. There are two first sliders 13. The first bracket 11 is provided with a first slide rail 12 extending along the first direction. The second bracket 14 is provided with a second slide rail 15 extending along the second direction. The first direction and the second direction are perpendicular. The second bracket 14 is fixedly connected to the charger housing. The first bracket 11 is fixed to the second slider 16. The first bracket 11 is slidably connected to the second slide rail 15 through the second slider 16. The movable end of the third linear motion mechanism is fixedly connected to the first bracket 11.
[0081] The first pair of Type-C male connectors is fixed on one of the first sliders 13, and the movable end of the first linear motion mechanism is fixedly connected to one of the first sliders 13; the second pair of Type-C male connectors is fixed on the other first slider 13, and the movable end of the second linear motion mechanism is fixedly connected to the other first slider 13; the first pair of Type-C male connectors and the second pair of Type-C male connectors are slidably connected to the first slide rail 12 through the corresponding first sliders 13 respectively; each Type-C female connector extends along the direction of the first slide rail 12 (i.e. Figure 3 The left and right directions in the figure are arranged in sequence.
[0082] The first motor is used to drive the active end of the first linear motion mechanism to move along the first direction in response to the transmission signal output by the main control MCU, so as to drive the first transmission Type-C male connector to align with the corresponding Type-C female connector; the second motor is used to drive the active end of the second linear motion mechanism to move along the first direction in response to the transmission signal output by the main control MCU, so as to drive the second transmission Type-C male connector to align with the corresponding Type-C female connector. The third motor is used to drive the active end of the third linear motion mechanism to move along the second direction in response to the transmission signal output by the main control MCU, so as to drive the first transmission Type-C male connector and the second transmission Type-C male connector to be inserted into the aligned Type-C female connector, respectively, so that the first end and the second end of the transmission chip are electrically connected to the output ports of the corresponding two fast charging modules, respectively.
[0083] Specifically, as in the aforementioned embodiment, the main control MCU generates a pairing signal based on a set of mutually matching inter-transmission pairing signals received from Bluetooth. The main control MCU can determine which two output ports the first end and the second end of the pairing chip need to be connected to through the pairing signal. In this example, the main control MCU can determine that the two output ports that the first end and the second end of the pairing chip need to be connected to are the first output port and the third output port. Figure 3As shown, a first direction step mapping table for controlling the first motor and the second motor to start forward rotation from the starting position of the first linear motion mechanism and the second linear motion mechanism, so that the first pair of Type-C male heads and the second pair of Type-C male heads move along the first direction to align the steps required for each female head, and a second direction step mapping table for the third motor to start forward rotation from the starting position of the third linear motion mechanism, so that the first pair of Type-C male heads and the second pair of Type-C male heads aligned with the corresponding female heads can be inserted into the female head. By looking up the table, it is determined that when the two output ports to be connected are the first output port and the third output port, the number of steps required for the male head to reach the corresponding female head from the starting position of the corresponding linear motion mechanism, so that the first end and the second end of the transmission chip are electrically connected to the first output port and the third output port respectively. When the ports need to be connected, the corresponding number of steps are rotated in the opposite direction to allow each linear motion mechanism to return to the starting position.
[0084] In the above-mentioned embodiments, a counter-transmission switching circuit or a counter-transmission switching device is used to ensure that each output port is physically isolated before being connected by the counter-transmission chip, thereby ensuring the data security performance of the devices electrically connected to each output port.
[0085] Specifically, in one embodiment, each charging unit further includes an energy metering chip, and the second end of the MOS tube circuit is electrically connected to the output port through the energy metering chip; the energy metering chip is used to detect the energy parameters between the second end of the MOS tube circuit and the output port and transmit them to the main control MCU. By using the energy metering chip, it is convenient for users to track the charging status of the device during the charging process.
[0086] In one embodiment, each charging unit also includes an alarm device, and the main control MCU is also used to: in a locked state, when it is detected that the output port of the charging unit is switched from a connected state to an idle state, drive the alarm device to send an alarm signal; wherein, the alarm device includes one or more of a buzzer, a speaker or an LED light, and the locked state is a state in which an unlocking signal has not been received from the Bluetooth module of the charging unit after a locking signal has been received from the Bluetooth module of the charging unit.
[0087] Specifically, in order to ensure the anti-theft safety of the device in public places, a locking function is provided in the mobile phone App. After the user enters the lock interface of the App and triggers the lock button, the mobile phone App will send a lock signal to the main control MCU via Bluetooth, so that the fast charging module enters a locked state. In the locked state, after the user's device is charged through the output port, the main control MCU will continue to monitor the connection status between the device and the output port. If it is detected that the output port of the charging unit switches from the connected state to the idle state, the alarm device is driven to send an alarm signal to remind the user. If the user needs to unplug the power himself, he can first enter the lock interface of the App to trigger the unlock button. The mobile phone App will send an unlock signal to the main control MCU via Bluetooth, so that the fast charging module exits the locked state, and the alarm will not be triggered when the power is unplugged.
[0088] On the other hand, in the following embodiment, a control method for a Bluetooth interconnected multifunctional desktop charger is also provided, which is applied to the desktop charger provided in the above embodiment. Figure 4 As shown, the first output port of the first fast charging module of the desktop charger is electrically connected to the first device, the second output port of the second fast charging module of the desktop charger is electrically connected to the second device, the first output port and the second output port, the first end and the second end of the transmission chip are electrically connected to the first output port and the second output port respectively; the first device is installed with a first driver, the second device is installed with a second driver, and data communication is performed between the first driver and the second driver through the transmission chip; the first device is electrically connected to a first mouse and a first screen, and the second device is electrically connected to a second screen.
[0089] like Fig. 9 As shown, when transferring a file from a first device to a second device, the method includes:
[0090] Step S202: When the first driver detects that the first mouse drags the file within the range of the first screen, the first driver obtains the resolution of the second screen from the second driver through the transmission chip, and increases the activity range of the mouse pointer on the first screen based on the resolution of the second screen. The newly added activity range of the mouse pointer on the first screen is defined as the first virtual screen range, the size of the first virtual screen range is the same as the second screen range, and the first virtual screen range and the first screen range are in the same screen coordinate system and are connected.
[0091] like Figure 5 As shown in FIG. 1 , in this example, the resolutions of the first screen and the second screen are the same, both 1920x1080, so the resolution of the first virtual screen is also 1920x1080. It can be seen that when the activity range of the mouse pointer on the first screen is not increased, the mouse pointer on the first screen can only be moved on the Figure 5In this case, no matter how the first mouse is moved, the mouse pointer will be displayed on the first screen, because the range of the mouse pointer on the first screen is only the range of the first screen. In this embodiment, the range of the mouse pointer on the first screen is increased, and the newly increased range is as follows: Figure 5 The dotted line frame range in FIG. 1 is referred to as the first virtual screen. If the first mouse is moved at this time, after the mouse pointer on the first screen moves to the first virtual screen range, the mouse pointer cannot be seen on the first screen.
[0092] Specifically, in order to make the first virtual screen range and the first screen range be in the same screen coordinate system and connected, as Figure 5 As shown, the coordinates of the first virtual screen and the first screen need to be unified to the same screen coordinate system. For example, taking the upper left corner of the first screen as the origin (0, 0), the coordinate range of the first screen is from (0, 0) to (1919, 1079), and the coordinate range of the first virtual screen is from (1920, 0) to (3839, 1079), that is, the range in which the mouse pointer of the first screen can move is from (0, 0) to (3839, 1079). At this time, the first virtual screen range and the first screen range are in the same screen coordinate system and are connected, which means that the mouse pointer can move from the first screen range to the first virtual screen range.
[0093] Specifically, the user controls the mouse pointer on the first screen to move to the file to be transferred through the first mouse and presses the left mouse button without releasing it. At this time, the user keeps the first mouse in a state where the pressing event continues to occur and moves the first mouse, so as to drag the file to move.
[0094] Step S204: the first driver program detects the mouse events of the first mouse in real time and uses the mouse events of the first mouse as mouse control signals, and sends the mouse control signals to the second driver program in real time.
[0095] The mouse event can be any mouse event such as mouse movement event, mouse press event, mouse release event, etc. By sending the mouse event of the first mouse as a mouse control signal to the second driver, the second driver can obtain the user's operation status of the first mouse in real time.
[0096] Step S206: when the mouse pointer of the first screen is within the range of the first screen, the first driver controls the mouse pointer on the first screen to move to a position corresponding to the mouse event of the first mouse and performs an operation corresponding to the mouse event.
[0097] Specifically, the first mouse is in a state of continuously generating a press event, and the user can drag the file to move by moving the mouse (i.e., a mouse move event occurs). When the mouse pointer of the first screen is within the range of the first screen, the user can see that the file is dragged to move on the first screen.
[0098] Step S208, when the mouse pointer of the first screen is within the range of the first virtual screen, the first driver sends the file to the second driver through the transmission chip, and the second driver generates an icon of the file at the position corresponding to the mouse pointer on the second screen, and the second driver controls the movement of the mouse pointer on the second screen in response to the mouse control signal and performs the operation corresponding to the mouse event;
[0099] Specifically, the first mouse is in a state where a press event continues to occur, and the user can drag the file by moving the mouse (i.e., a mouse move event occurs). When the mouse pointer of the first screen leaves the first screen range and enters the first virtual screen range, the user cannot see the mouse pointer and the file icon on the first screen.
[0100] And when the mouse pointer of the first screen is located within the range of the first virtual screen, the first driver sends the file to the second driver through the transmission chip.
[0101] It should be noted that in order for the second driver to control the movement of the mouse pointer on the second screen in response to the mouse control signal, it is generally necessary to establish a coordinate transformation relationship between the first virtual screen and the second screen. However, since the first virtual screen and the second screen are the same size, the second screen and the first virtual screen can have the same coordinate range. For example, generally, the coordinate range of the second screen is from (0,0) to (1919,1079), and when it is detected that the mouse pointer of the first screen is within the range of the first virtual screen, the coordinate range of the second screen is set to be the same as that of the first virtual screen, that is, the coordinate range of the second screen is from (1920,0) to (3839,1079). Therefore, through the above adjustment of the coordinate range of the second screen, there is no need to establish a coordinate transformation relationship between the first virtual screen and the second screen. The second driver can directly use the mouse control signal to control the movement of the mouse pointer on the second screen, so that the mouse pointer on the second screen responds faster.
[0102] Step S210, when the first driver detects a mouse release event of the first mouse, it obtains the current target coordinates of the mouse pointer on the second screen; the second driver saves the file received through the transmission chip at a position corresponding to the target coordinates on the second screen.
[0103] It can be understood that in step S202 to step S208, the first mouse is in a state where press events are continuously occurring, and the mouse events generated when the user controls the first mouse to move in the first virtual screen are used by the second driver to control the synchronous movement of the device pointer on the second screen. Therefore, the user operating the first mouse will feel that his mouse pointer is dragging the file across the screen to the second device, so that the user of the first device can customize the placement of each file when transferring files to the second device, thereby improving the user experience of transmitting data.
[0104] On the other hand, since the mouse pointer on the first virtual screen cannot be seen by the user, the size of the first virtual screen is set to be the same as that of the second screen. Therefore, the user can know the real-time position of the mouse pointer on the first virtual screen by watching the position of the mouse pointer synchronized on the second screen of the second device without being able to see the mouse pointer on the first virtual screen, thereby ensuring that the user can accurately know the real-time position of the mouse pointer on the first virtual screen, and improving the feel and visual consistency of the user's operation of the first mouse. That is, since the size of the first virtual screen is the same as that of the second screen, the user can determine the specific position of the mouse pointer in the first virtual screen by visually watching the second screen, such as whether it touches the boundary of the first virtual screen, etc., thereby improving the operation experience.
[0105] In addition, since the first virtual screen cannot be seen by the user, after the mouse pointer drags the file into the range of the first virtual screen and releases the mouse, the corresponding file is also transferred from the first screen to the first virtual screen, which is convenient for the user to count which files have been transferred to the second device. When there are many files to be transferred, the user does not need to repeatedly check and compare between the first screen and the second screen to determine which files have been transferred. It only needs to check which files are not visible on the first screen, which improves the efficiency of the user in checking the files to be transferred.
[0106] Furthermore, after the file transfer is completed, when the first driver detects a signal to exit the file transfer (the user can trigger the signal to exit the file transfer by clicking the exit button on the mobile phone App), the first driver transfers the files on the first virtual screen back to their original positions on the first screen by triggering an undo command. This method can improve the efficiency of users checking the files to be transferred without affecting the storage position of the file principle.
[0107] In one embodiment, in step S210, the method further includes:
[0108] When the second driver detects a mouse release event, it cancels the control permission of the mouse control signal on the mouse pointer on the second screen.
[0109] In this embodiment, since the first mouse is in a state of continuously generating a press event during the process of the mouse pointer on the first screen entering the first virtual screen from the first screen, when the second driver detects a mouse release event, the control permission of the mouse control signal on the mouse pointer on the second screen is cancelled. After the user stores the file on the second screen, the control permission of the mouse control signal on the mouse pointer on the second screen can be cancelled immediately to ensure the safety of the second device.
[0110] In one embodiment, the arrangement position relationship between the first virtual screen and the first screen is determined by the following process:
[0111] When it is detected that the first mouse drags the file to touch the left edge of the first screen, the first virtual screen is arranged on the left side of the first screen.
[0112] When it is detected that the first mouse drags the file to touch the right edge of the first screen, the first virtual screen is arranged on the right side of the first screen.
[0113] When it is detected that the first mouse drags the file to contact the upper edge of the first screen, the first virtual screen is arranged on the upper side of the first screen.
[0114] When it is detected that the first mouse drags the file to contact the lower edge of the first screen, the first virtual screen is arranged at the lower side of the first screen.
[0115] like Figure 5 As shown, the first screen is located on the left, and the second screen is located on the right. The user of the first device needs to send a file from the first device to the second device via the desktop charger. The user is generally accustomed to dragging the file to the right. Therefore, the first driver detects that the first mouse drags the file to the right edge of the first screen. Figure 5 As shown, the first virtual screen is automatically arranged on the right side of the first screen to implement the above steps S202 to S210, thereby obtaining a file transfer interaction logic that meets the user's usage habits.
[0116] like Fig.10 As shown, in one embodiment, the method further includes:
[0117] Step S302, determining the contacting edge between the first virtual screen and the first screen based on the arrangement position relationship between the two; wherein the contacting edge between the first virtual screen and the first screen is defined as the first virtual edge, and the contacting edge between the first screen and the first virtual screen is defined as the first screen edge.
[0118] Step S304: determining a length relationship between the first virtual side and the first screen side based on the second screen resolution and the first screen resolution.
[0119] Step S306: When it is detected that the length of the first virtual side is equal to the first screen side, align the midpoint of the first virtual side with the midpoint of the first screen side.
[0120] like Figure 5 As shown, the length of the first virtual side is equal to the first screen side. It can be understood that when the midpoint of the first virtual side is aligned with the midpoint of the first screen side, the two endpoints of the first screen side are aligned with the two endpoints of the first virtual side, and when the mouse pointer moves along the upper and lower edges of the first screen toward the first virtual screen, it will not be hindered, and the mouse experience is better.
[0121] Step S308: When it is detected that the length of the first virtual side is greater than the first screen side, align the midpoint of the first virtual side with the midpoint of the first screen side.
[0122] like Figure 6 As shown, the length of the first virtual side is greater than the first screen side. Similarly, when the midpoint of the first virtual side is aligned with the midpoint of the first screen side, the two endpoints of the first virtual side are outside the two endpoints of the first screen side, and when the mouse pointer moves along the upper and lower edges of the first screen toward the first virtual screen, it will not be hindered, and the mouse experience is better.
[0123] Step S310: When it is detected that the length of the first virtual side is smaller than the first screen side, the position where the first mouse last touched the first screen side of the first screen by dragging the file is used as a reference position.
[0124] like Figure 7 As shown, the length of the first virtual side is less than the first screen side, and the lower endpoint of the first virtual side is aligned with the lower endpoint of the first screen side. It is known that in the screen coordinate system, the upper left corner of the first screen is the origin (W, H) = (0, 0). If the first screen resolution is 1920x1080 and the first virtual screen resolution is 1920x960, the first screen range is from (W, H) = (0, 0) to (W, H) = (1919, 1079), and the first virtual screen range is from (W, H) = (1920, 120) to (W, H) = (3839, 1079). If the mouse pointer moves along the upper edge of the first screen toward the first virtual screen (i.e., moves to the right), for example, along H=0, but the upper edge of the first virtual screen area is H=120, the mouse pointer cannot move along the direction of H=0 toward the first virtual screen. After reaching (1919, 0), since the first virtual screen range does not include (1920, 0), the mouse pointer cannot continue to move to the right along the upper edge of the first screen, which will be hindered, resulting in a poor user experience. Therefore, the arrangement position needs to be adjusted according to the user's usage habits as follows:
[0125] Step S312: if the reference position is located between the upper endpoint and the midpoint of the first screen edge or at the upper endpoint, align the upper endpoint of the first virtual edge with the upper endpoint of the first screen edge.
[0126] For example, the reference position is (W, H) = (1919, 200), which is close to the upper edge of the first screen. It can be seen that due to usage habits or the positional relationship between the second screen and the first screen (for example, the second screen is at the upper right of the first screen), the user is accustomed to dragging the file from the right side close to the upper edge of the first screen to the first virtual screen to transfer the file to the second device. Therefore, the upper end point of the first virtual edge is aligned with the upper end point of the first screen edge to ensure that the user will not be obstructed when dragging the file based on this habit.
[0127] Step S314: if the reference position is between the lower endpoint and the midpoint of the first screen edge or is located at the lower endpoint, align the lower endpoint of the first virtual edge with the lower endpoint of the first screen edge.
[0128] For example, the reference position is (W, H) = (1919, 900), which is close to the lower edge of the first screen. It can be seen that due to usage habits or the positional relationship between the second screen and the first screen (for example, the second screen is at the bottom right of the first screen), the user is accustomed to dragging files from the right side close to the lower edge of the first screen to the first virtual screen to transfer the files to the second device. Therefore, the lower endpoint of the first virtual edge is aligned with the lower endpoint of the first screen edge to ensure that the user will not be obstructed when dragging files based on this habit.
[0129] Step S316: if the reference position is located at the midpoint of the first screen edge, align the midpoint of the first virtual edge with the midpoint of the first screen edge.
[0130] For example, the reference position is (W, H) = (1919, 539), and the reference position is defined as the midpoint of the first screen edge. It can be seen that due to usage habits or the positional relationship between the second screen and the first screen (for example, the second screen is directly to the right of the first screen), the user is accustomed to dragging the file from the middle position near the right side of the first screen to the first virtual screen to transfer the file to the second device. Therefore, the midpoint of the first virtual edge is aligned with the midpoint of the first screen edge to ensure that the user will not be obstructed when dragging the file based on this habit.
[0131] like Fig.11 As shown, in one embodiment, the method further includes:
[0132] Step S402, determining the contacting edge between the first virtual screen and the first screen based on the arrangement position relationship between the two; wherein the contacting edge between the first virtual screen and the first screen is defined as the first virtual edge, and the contacting edge between the first screen and the first virtual screen is defined as the first screen edge.
[0133] Step S404: determining a length relationship between the first virtual side and the first screen side based on the second screen resolution and the first screen resolution.
[0134] Step S406: When it is detected that the length of the first virtual side is equal to the first screen side, align the midpoint of the first virtual side with the midpoint of the first screen side.
[0135] like Figure 5 As shown, the length of the first virtual side is equal to the first screen side. It can be understood that when the midpoint of the first virtual side is aligned with the midpoint of the first screen side, the two endpoints of the first screen side are aligned with the two endpoints of the first virtual side, and when the mouse pointer moves along the upper and lower edges of the first screen toward the first virtual screen, it will not be hindered, and the mouse experience is better.
[0136] Step S408: When it is detected that the length of the first virtual side is greater than the first screen side, align the midpoint of the first virtual side with the midpoint of the first screen side.
[0137] like Figure 6 As shown, the length of the first virtual side is greater than the first screen side. Similarly, when the midpoint of the first virtual side is aligned with the midpoint of the first screen side, the two endpoints of the first virtual side are outside the two endpoints of the first screen side, and when the mouse pointer moves along the upper and lower edges of the first screen toward the first virtual screen, it will not be hindered, and the mouse experience is better.
[0138] like Figure 7 As shown, the length of the first virtual side is less than the first screen side, and the lower endpoint of the first virtual side is aligned with the lower endpoint of the first screen side. It is known that in the screen coordinate system, the upper left corner of the first screen is the origin (W, H) = (0, 0). If the first screen resolution is 1920x1080 and the first virtual screen resolution is 1920x960, the first screen range is from (W, H) = (0, 0) to (W, H) = (1919, 1079), and the first virtual screen range is from (W, H) = (1920, 120) to (W, H) = (3839, 1079). If the mouse pointer moves along the upper edge of the first screen toward the first virtual screen (i.e., moves to the right), for example, along H=0, but the upper edge of the first virtual screen area is H=120, the mouse pointer cannot move along the direction of H=0 toward the first virtual screen. After reaching (1919, 0), since the first virtual screen range does not include (1920, 0), the mouse pointer cannot continue to move to the right along the upper edge of the first screen, which will be hindered, resulting in a poor user experience. Therefore, it is necessary to predict the position where the user's dragged file contacts the edge of the first screen and adjust the arrangement position as follows:
[0139] Step S410, after the first device transfers the first file to the second device for the first time, when it is detected that the length of the first virtual edge is less than the first screen edge, and subsequently when it is detected that the first mouse drags the file to move toward the first screen edge of the first screen, two reference points on the moving trajectory are obtained before the first mouse drags the file to touch the first screen edge, and a reference straight line is determined based on the two reference points, and the position where the reference straight line touches the first screen edge is used as the reference position.
[0140] like Figure 8 As shown in the figure, Q is the midpoint of the first screen edge, A1 is the starting position of the file dragged by the user, and A2 is the position before it touches the first screen edge during the dragging process. Based on the two reference points A1 and A2, it can be determined Figure 8 The dotted line in , which is used as a reference straight line and compared with the first screen edge at position A3, A3 is used as a reference position.
[0141] Step S412: if the reference position is located between the upper endpoint and the midpoint of the first screen edge or at the upper endpoint, align the upper endpoint of the first virtual edge with the upper endpoint of the first screen edge.
[0142] For example, the reference position A3 is (W, H) = (1919, 200), which is close to the upper edge of the first screen. It can be seen that due to the positional relationship between the second screen and the first screen (for example, the second screen is at the upper right of the first screen), the user drags the file from the right side close to the upper edge of the first screen to the first virtual screen to transfer the file to the second device, and aligns the upper endpoint of the first virtual edge with the upper endpoint of the first screen edge to ensure that the user will not be obstructed when dragging the file.
[0143] This embodiment adjusts the arrangement relationship between the first virtual screen and the first screen by predicting the position where the file contacts the edge of the first screen. Even if the position where the user drags the file and contacts the edge of the first screen is irregular each time, the probability of the user being blocked when dragging the file can be reduced.
[0144] Step S414: if the reference position is between the lower endpoint and the midpoint of the first screen edge or is located at the lower endpoint, align the lower endpoint of the first virtual edge with the lower endpoint of the first screen edge.
[0145] For example, the reference position A3 is (W, H) = (1919, 200), which is close to the upper edge of the first screen. It can be seen that due to the positional relationship between the second screen and the first screen (for example, the second screen is at the bottom right of the first screen), the user drags the file from the right side close to the lower edge of the first screen to the first virtual screen to transfer the file to the second device, and aligns the lower endpoint of the first virtual edge with the lower endpoint of the first screen edge to ensure that the user will not be obstructed when dragging the file.
[0146] This embodiment adjusts the arrangement relationship between the first virtual screen and the first screen by predicting the position where the file contacts the edge of the first screen. Even if the position where the user drags the file and contacts the edge of the first screen is irregular each time, the probability of the user being blocked when dragging the file can be reduced.
[0147] Step S416: if the reference position is located at the midpoint of the first screen edge, align the midpoint of the first virtual edge with the midpoint of the first screen edge.
[0148] For example, the reference position A3 is (W, H) = (1919, 539), that is, the reference position is the midpoint Q of the edge of the first screen. It can be seen that due to the positional relationship between the second screen and the first screen (for example, the second screen is directly to the right of the first screen), the user drags the file from the middle position near the right side of the first screen to the first virtual screen to transfer the file to the second device. Therefore, the midpoint of the first virtual edge is aligned with the midpoint of the first screen edge to ensure that the user will not be obstructed when dragging the file.
[0149] This embodiment adjusts the arrangement relationship between the first virtual screen and the first screen by predicting the position where the file contacts the edge of the first screen. Even if the position where the user drags the file and contacts the edge of the first screen is irregular each time, the probability of the user being blocked when dragging the file can be reduced.
[0150] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A Bluetooth interconnected multifunctional desktop charger, It is characterized in that It includes a main control MCU, a transmission chip, multiple Bluetooth modules and multiple fast charging modules; each of the fast charging modules includes: An output port, the output port being used to be electrically connected to a Type-C interface of a device to be charged via a Type-C data cable; A charging unit, the charging unit comprising a fast charging protocol chip, a MOS tube circuit, a relay and a power supply circuit, the first end of the fast charging protocol chip is electrically connected to the CC channel of the output port, the second end of the fast charging protocol chip is electrically connected to the first end of the MOS tube circuit, the second end of the MOS tube circuit is electrically connected to the output port, the third end of the MOS tube circuit is electrically connected to the first end of the power supply circuit, the second end of the power supply circuit is electrically connected to the first end of the relay, the second end of the relay is electrically connected to the AC port, and the third end of the relay is electrically connected to the main control MCU; The main control MCU is used to control the relay to be turned on and off in response to the charging control signal received by the Bluetooth module; The fast charging protocol chip is used to control the on and off of the MOS tube circuit in response to the fast charging control signal of the CC channel; When the relay and the MOS tube circuit are both turned on, the power supply circuit is electrically connected to the AC port to obtain AC power, and outputs DC power from the first end after rectification, filtering, and voltage conversion. The DC power is supplied to the device to be charged that is electrically connected to the output port through the Type-C data cable through the MOS tube circuit in the turned-on state; The first end and the second end of the transmission chip are controlled by the main control MCU, and can be electrically connected to the output ports of any two fast charging modules in response to the transmission signal output by the main control MCU. When the output ports of the two fast charging modules are electrically connected to the first end and the second end of the transmission chip, the devices to be charged that are electrically connected to the output ports of the two fast charging modules through the Type-C data line can transmit data to each other through the transmission chip; The first output port is electrically connected to the first pair of Type-C male connectors, the second output port is electrically connected to the second pair of Type-C male connectors, and each output port is electrically connected to a corresponding Type-C female connector; The desktop charger also includes a transmission switching device, which can respond to the transmission signal output by the main control MCU, so that the first end and the second end of the transmission chip are respectively electrically connected to the output ports of any two fast charging modules; the transmission switching device includes a control part, an execution part and a mechanical part, and the control part includes a first motor, a second motor, and a third motor electrically connected to the main control MCU through a driving circuit respectively; The execution part includes a first linear motion mechanism driven by a first motor, a second linear motion mechanism driven by a second motor, and a third linear motion mechanism driven by a third motor; The mechanical part includes a first bracket, a second bracket, a first slider and a second slider, the number of the first sliders is two, the first bracket is provided with a first slide rail extending along a first direction, the second bracket is provided with a second slide rail extending along a second direction, the first direction and the second direction are perpendicular, the second bracket is fixedly connected to the charger housing, the first bracket is fixed to the second slider, the first bracket is slidably connected to the second slide rail through the second slider, and the movable end of the third linear motion mechanism is fixedly connected to the first bracket; The first pair of Type-C male connectors are fixed on one of the first sliders, and the movable end of the first linear motion mechanism is fixedly connected to one of the first sliders; the second pair of Type-C male connectors are fixed on the other first slider, and the movable end of the second linear motion mechanism is fixedly connected to the other first slider; the first pair of Type-C male connectors and the second pair of Type-C male connectors are slidably connected to the first slide rail through the corresponding first sliders respectively; the Type-C female connectors are arranged in sequence along the direction in which the first slide rail extends; The first motor is used to drive the movable end of the first linear motion mechanism to move along the first direction in response to the counter-transmission signal output by the main control MCU, so as to drive the first counter-transmission Type-C male connector to align with the corresponding Type-C female connector; The second motor is used to drive the movable end of the second linear motion mechanism to move along the first direction in response to the counter-transmission signal output by the main control MCU, so as to drive the second counter-transmission Type-C male connector to align with the corresponding Type-C female connector; The third motor is used to respond to the transmission signal output by the main control MCU to drive the active end of the third linear motion mechanism to move along the second direction, so as to drive the first transmission Type-C male connector and the second transmission Type-C male connector to be respectively inserted into the aligned Type-C female connector, so that the first end and the second end of the transmission chip are respectively electrically connected to the output ports of the corresponding two fast charging modules.
2. A Bluetooth interconnected multifunctional desktop charger according to claim 1, It is characterized in that It also includes a transmission switching circuit, which can respond to the transmission signal output by the main control MCU, so that the first end and the second end of the transmission chip are respectively electrically connected to the output ports of any two fast charging modules; the transmission switching circuit includes a first USB switch, a second USB switch and hubs with the same number as the fast charging modules, each hub is respectively electrically connected to a corresponding output port, the input end of the first USB switch is respectively electrically connected to each hub, and the input end of the second USB switch is respectively electrically connected to each hub; the first end of the transmission chip is electrically connected to the output end of the first USB switch, and the second end of the transmission chip is electrically connected to the output end of the second USB switch; The first USB switch is used to control the first USB switch to connect the electrical connection between the first end of the transmission chip and the corresponding hub in response to the transmission signal output by the main control MCU, so that the first end of the transmission chip is electrically connected to the output port of the corresponding fast charging module; The second USB switch is used to respond to the transmission signal output by the main control MCU, control the second USB switch to connect the electrical connection between the second end of the transmission chip and the corresponding hub, so that the second end of the transmission chip is electrically connected to the output port of the corresponding fast charging module.
3. A Bluetooth interconnected multifunctional desktop charger according to claim 1, It is characterized in that Each charging unit also includes an electric energy metering chip, and the second end of the MOS tube circuit is electrically connected to the output port through the electric energy metering chip; the electric energy metering chip is used to detect the electric energy parameters directly between the second end of the MOS tube circuit and the output port and transmit them to the main control MCU.
4. A Bluetooth interconnected multifunctional desktop charger according to claim 1, It is characterized in that Each charging unit also includes an alarm device, and the main control MCU is also used to: in a locked state, when it detects that the output port of the charging unit switches from a connected state to an idle state, drive the alarm device to send an alarm signal; wherein the alarm device includes one or more of a buzzer, a speaker or an LED light, and the locked state is a state when no unlocking signal is received from the Bluetooth module of the charging unit.
5. A control method for a Bluetooth-connected multifunctional desktop charger, It is characterized in that Applicable to the desktop charger according to any one of claims 1 to 4, wherein the first output port of the first fast charging module of the desktop charger is electrically connected to the first device, the second output port of the second fast charging module of the desktop charger is electrically connected to the second device, and the first end and the second end of the transmission chip of the first output port and the second output port are electrically connected to the first output port and the second output port respectively; The first device is installed with a first driver, the second device is installed with a second driver, and the first driver and the second driver perform data communication via the transmission chip; The first device is electrically connected to a first mouse and a first screen, and the second device is electrically connected to a second screen; When transferring a file from a first device to a second device, the method includes: When the first driver detects that the first mouse drags a file within the range of the first screen, the first driver obtains the resolution of the second screen from the second driver through the transmission chip, and increases the activity range of the mouse pointer on the first screen based on the resolution of the second screen; the newly added activity range of the mouse pointer on the first screen is defined as a first virtual screen range, the size of the first virtual screen range is the same as the second screen range, and the first virtual screen range and the first screen range are in the same screen coordinate system and are connected; The first driver detects the mouse event of the first mouse in real time and uses the mouse event of the first mouse as a mouse control signal, and sends the mouse control signal to the second driver in real time; When the mouse pointer of the first screen is within the range of the first screen, the first driver controls the mouse pointer on the first screen to move to a position corresponding to the mouse event of the first mouse and performs an operation corresponding to the mouse event; When the mouse pointer of the first screen is within the range of the first virtual screen, the first driver sends the file to the second driver through the transmission chip, and the second driver generates an icon of the file at the position corresponding to the mouse pointer on the second screen, and the second driver controls the movement of the mouse pointer on the second screen in response to the mouse control signal and performs the operation corresponding to the mouse event; When the second driver detects a mouse release event, it obtains the current target coordinates of the mouse pointer on the second screen; the second driver saves the file received through the transmission chip at a position corresponding to the target coordinates on the second screen.
6. The control method according to claim 5, It is characterized in that The method further comprises: When the second driver detects a mouse release event, it cancels the control permission of the mouse control signal on the mouse pointer on the second screen.
7. The control method according to claim 5, It is characterized in that The arrangement position relationship between the first virtual screen and the first screen is determined by the following process: When it is detected that the first mouse drags the file to touch the left edge of the first screen, the first virtual screen is arranged on the left side of the first screen; When it is detected that the first mouse drags the file to touch the right edge of the first screen, the first virtual screen is arranged on the right side of the first screen; When it is detected that the first mouse drags the file to touch the upper edge of the first screen, the first virtual screen is arranged on the upper side of the first screen; When it is detected that the first mouse drags the file to contact the lower edge of the first screen, the first virtual screen is arranged at the lower side of the first screen.
8. The control method according to claim 7, It is characterized in that The method further comprises: Determining the edges of the first virtual screen and the first screen that are in contact with each other based on the arrangement position relationship between the first virtual screen and the first screen; wherein the edge of the first virtual screen in contact with the first screen is defined as the first virtual edge, and the edge of the first screen in contact with the first virtual screen is defined as the first screen edge; determining a length relationship between the first virtual side and the first screen side based on the second screen resolution and the first screen resolution; When it is detected that the length of the first virtual side is equal to the first screen side, aligning the midpoint of the first virtual side with the midpoint of the first screen side; When detecting that the length of the first virtual side is greater than the first screen side, aligning the midpoint of the first virtual side with the midpoint of the first screen side; When it is detected that the length of the first virtual edge is less than the first screen edge, the position where the first mouse last touched the first screen edge when dragging the file is used as a reference position; if the reference position is between the upper end point and the midpoint of the first screen edge or is located at the upper end point, the upper end point of the first virtual edge is aligned with the upper end point of the first screen edge; if the reference position includes between the lower end point and the midpoint of the first screen edge or is located at the lower end point, the lower end point of the first virtual edge is aligned with the lower end point of the first screen edge; if the reference position is located at the midpoint of the first screen edge, the midpoint of the first virtual edge is aligned with the midpoint of the first screen edge.
9. The control method according to claim 7, It is characterized in that The method further comprises: Determining the edges of the first virtual screen and the first screen that are in contact with each other based on the arrangement position relationship between the first virtual screen and the first screen; wherein the edge of the first virtual screen in contact with the first screen is defined as the first virtual edge, and the edge of the first screen in contact with the first virtual screen is defined as the first screen edge; determining a length relationship between the first virtual side and the first screen side based on the second screen resolution and the first screen resolution; When it is detected that the length of the first virtual side is equal to the first screen side, aligning the midpoint of the first virtual side with the midpoint of the first screen side; When detecting that the length of the first virtual side is greater than the first screen side, aligning the midpoint of the first virtual side with the midpoint of the first screen side; When it is detected that the length of the first virtual edge is less than the first screen edge, when it is subsequently detected that the first mouse is dragging the file to move toward the first screen edge of the first screen, two reference points on the moving trajectory are obtained before the first mouse is dragging the file to contact the first screen edge, and a reference straight line is determined based on the two reference points. The position where the reference straight line contacts the first screen edge is used as the reference position. If the reference position is between the upper end point and the midpoint of the first screen edge or at the upper end point, the upper end point of the first virtual edge is aligned with the upper end point of the first screen edge; if the reference position includes between the lower end point and the midpoint of the first screen edge or is at the lower end point, the lower end point of the first virtual edge is aligned with the lower end point of the first screen edge; if the reference position is at the midpoint of the first screen edge, the midpoint of the first virtual edge is aligned with the midpoint of the first screen edge.
Citation Information
Patent Citations
Smart socket management method and system
CN104793572A
Portable Internet shared intelligent charger and charging method thereof
CN107425577A
