Mobile device charging control method, device, computer equipment and storage medium
By obtaining the connection status information of the mobile device and the Type-C port adapter and determining the insertion direction, and generating switching control information to adjust the current supply mode, the problem of unstable current transmission when switching the front and back of the Type-C port adapter is solved, and the stability of current transmission and charging efficiency are improved.
Patent Information
- Application Number
- CN202411971970.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-08
AI Technical Summary
When switching between the front and back of the Type-C port adapter, how to maintain the stability of current transmission, avoid affecting charging efficiency and prevent damage to mobile devices.
By obtaining the connection status information between the mobile device and the Type-C port adapter, the insertion direction of the adapter is judged, and switching control information is generated according to the insertion direction, and the current supply mode is adjusted to maintain the stability of current transmission.
When the direction of the Type-C port adapter changes, the current transmission path is adjusted in a timely manner, avoiding current fluctuations caused by direction mismatch, and improving the stability and charging efficiency of current transmission.
Smart Images

Figure CN119787556A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic device charging, and in particular to a mobile device charging control method, device, computer equipment and storage medium. Background Art
[0002] With the continuous development of technology, mobile devices such as smartphones and tablets have become an indispensable part of people's lives. These devices are usually charged using the Type-C port, which can be used in both directions, greatly facilitating users. However, when the Type-C port adapter is switched between the front and back sides, how to maintain the stability of current transmission is an urgent problem to be solved.
[0003] Most of the existing charging control methods for mobile devices focus on the control of parameters such as current intensity and voltage, but there is little research on the current stability control when the Type-C port switches between the front and back sides. In practical applications, if the current transmission of the Type-C port adapter is unstable when switching between the front and back sides, it will not only affect the charging efficiency, but may also cause damage to the mobile device.
[0004] Therefore, how to maintain the stability of current transmission when switching the front and back sides of the Type-C port adapter is a technical problem that needs to be solved at present. Summary of the invention
[0005] In order to maintain the stability of current transmission, the present application provides a mobile device charging control method, device, computer equipment and storage medium.
[0006] The above-mentioned invention objective of the present application is achieved through the following technical solutions: A mobile device charging control method, the mobile device charging control method comprising: Get the connection status information between the mobile device and the Type-C port adapter; Based on the connection status information, determine the insertion direction of the Type-C port adapter to obtain Type-C port insertion direction information; Generate switching control information according to the Type-C port insertion direction information, wherein the switching control information is used to maintain the stability of current transmission when the front and back sides of the Type-C port adapter are switched; According to the switching control information, the adjusted current supply mode information is generated, and based on the adjusted current supply mode information, the current supply mode of the mobile device is adjusted.
[0007] By adopting the above technical solution, by obtaining the connection status information between the mobile device and the Type-C port adapter, the actual connection status between the mobile device and the adapter can be accurately understood. This process ensures real-time monitoring of the connection status during the current transmission process, thereby providing an accurate data basis for the current supply adjustment in the subsequent steps, thereby improving the stability of the current transmission. By determining the insertion direction of the Type-C port adapter based on the connection status information, the Type-C port insertion direction information is obtained, and the insertion direction of the adapter can be accurately identified. This identification ensures that the optimization and stability adjustment of the current transmission path can be effectively implemented under different insertion directions, thereby improving the stability of the current transmission. By generating switching control information according to the Type-C port insertion direction information, the stability of the current transmission can be maintained when the front and back sides of the Type-C port adapter are switched. The switching control information ensures that the current transmission path can be adjusted in time when the direction of the adapter changes, avoiding current fluctuations caused by direction mismatch, thereby improving the stability of the current transmission. By generating the adjusted current supply mode information according to the switching control information, the current supply mode can be adjusted when the direction of the Type-C port adapter is switched. This adjustment ensures that the current supply pattern matches the actual insertion direction, thereby reducing current instability caused by changes in insertion direction and improving the stability of current transmission.
[0008] In a preferred example, the present application may be further configured as follows: the obtaining of the connection status information between the mobile device and the Type-C port adapter includes: The connection status information is generated by detecting the physical connection status and communication protocol information between the mobile device and the Type-C port adapter.
[0009] By adopting the above technical solution, by obtaining the connection status information between the mobile device and the Type-C port adapter, including by detecting the physical connection status and communication protocol information between the mobile device and the Type-C port adapter, the connection status information is generated, which can accurately reflect the connection status between the devices.
[0010] In a preferred example, the present application may be further configured as follows: the determining, based on the connection status information, the insertion direction of the Type-C port adapter to obtain the Type-C port insertion direction information includes: Analyze the contact point signal distribution of the Type-C port adapter inserted according to the physical connection state information to generate contact point information; The contact point information is identified through a preset direction matching model, the connection direction of the Type-C port adapter is identified, and the Type-C port insertion direction information is obtained.
[0011] By adopting the above technical solution, the insertion direction of the Type-C port adapter can be accurately determined by judging the insertion direction of the Type-C port adapter based on the connection status information, including analyzing the contact point signal distribution and identifying the connection direction using the direction matching model. This precise direction identification ensures that the current transmission path can be correctly adjusted under different insertion directions, thereby optimizing the current stability.
[0012] In a preferred example, the present application may be further configured as follows: the contact point information is identified by a preset direction matching model, the connection direction of the Type-C port adapter is identified, and the Type-C port insertion direction information is obtained, including: Inputting the contact point information into the preset direction matching model, calculating the direction matching degree, and obtaining the direction matching degree information; Based on the direction matching information, the connection direction of the Type-C port adapter is identified to obtain the Type-C port insertion direction information.
[0013] By adopting the above technical solution, by generating switching control information according to the Type-C port insertion direction information, including analyzing the current transmission path in the insertion direction, comparing the path information and generating switching control information, the stability of current transmission can be maintained when the front and back sides of the Type-C port adapter are switched. This switching control information ensures that the current path can be adjusted in time when the direction of the adapter changes, avoiding current fluctuations caused by the change in direction.
[0014] In a preferred example, the present application can be further configured as follows: generating switching control information according to the Type-C port insertion direction information, wherein the switching control information is used to maintain the stability of current transmission when the front and back sides of the Type-C port adapter are switched, including: Based on the Type-C port insertion direction information, analyzing the current transmission path of the current in the insertion direction, and generating preliminary current transmission path information; Obtaining path switching information by comparing the preliminary current transmission path information with a preset reverse insertion current transmission path; The switching control information is generated according to the path switching information, and the switching control information is used to maintain the stability of the current transmission when the front and back sides of the Type-C port adapter are switched.
[0015] By adopting the above technical solution, by comparing the preliminary current transmission path information with the preset reverse insertion current transmission path, generating path switching information, including comparing path differences, adjusting the current transmission path and generating path switching information, the change of the current transmission path can be accurately identified and adjusted. This comparison and adjustment process ensures that the current transmission can remain stable when the front and back sides of the Type-C port adapter are switched.
[0016] In a preferred example, the present application may be further configured as follows: obtaining the path switching information by comparing the preliminary current transmission path information with the preset reverse insertion current transmission path includes: Comparing the preliminary current transmission path information with the preset reverse insertion current transmission path to generate a path difference comparison result; According to the path difference comparison result, adjusting the current transmission path to generate adjusted path information; The adjusted path information is compared with the preset reverse insertion current transmission path to generate the path switching information.
[0017] By adopting the above technical solution, the changes in the current transmission path can be accurately identified and adjusted. Specifically, the path difference comparison and adjustment process can ensure that the current transmission path can be timely and effectively optimized when the front and back sides of the Type-C port adapter are switched, thereby maintaining the stability of current transmission and reducing the current instability that may be caused by changes in the direction of the adapter.
[0018] In a preferred example, the present application may be further configured as follows: generating adjusted current supply mode information according to the switching control information, and adjusting the current supply mode of the mobile device based on the adjusted current supply mode information, including: Analyzing the current intensity, supply time and voltage parameters in the current supply adjustment information to generate current supply parameter information; adjusting the current supply mode of the mobile device according to the current supply parameter information, and generating the adjusted current supply mode information; Based on the adjusted current supply mode information, the current supply mode of the mobile device is adjusted to ensure the stability of current transmission when the front and back sides of the Type-C port adapter are switched.
[0019] By adopting the above technical solution, the current supply mode can be accurately adjusted to maintain the current stability when the adapter direction changes. Specifically, by refining the analysis and adjustment of the current intensity, supply time and voltage parameters, the current fluctuation caused by the mismatch of the current supply mode can be effectively avoided, thereby improving the stability of the current transmission.
[0020] The second object of the invention is achieved by the following technical solutions: A mobile device charging control device, the mobile device charging control device comprising: An information acquisition module, used to obtain connection status information between the mobile device and the Type-C port adapter; A direction confirmation module, used to determine the insertion direction of the Type-C port adapter based on the connection status information, and obtain Type-C port insertion direction information; A switching control module, used to generate switching control information according to the Type-C port insertion direction information, wherein the switching control information is used to maintain the stability of current transmission when the front and back sides of the Type-C port adapter are switched; The current supply mode adjustment module is used to generate adjusted current supply mode information according to the switching control information, and adjust the current supply mode of the mobile device based on the adjusted current supply mode information.
[0021] By adopting the above technical solution, by obtaining the connection status information between the mobile device and the Type-C port adapter, the actual connection status between the mobile device and the adapter can be accurately understood. This process ensures real-time monitoring of the connection status during the current transmission process, thereby providing an accurate data basis for the current supply adjustment in the subsequent steps, thereby improving the stability of the current transmission. By determining the insertion direction of the Type-C port adapter based on the connection status information, the Type-C port insertion direction information is obtained, and the insertion direction of the adapter can be accurately identified. This identification ensures that the optimization and stability adjustment of the current transmission path can be effectively implemented under different insertion directions, thereby improving the stability of the current transmission. By generating switching control information according to the Type-C port insertion direction information, the stability of the current transmission can be maintained when the front and back sides of the Type-C port adapter are switched. The switching control information ensures that the current transmission path can be adjusted in time when the direction of the adapter changes, avoiding current fluctuations caused by direction mismatch, thereby improving the stability of the current transmission. By generating the adjusted current supply mode information according to the switching control information, the current supply mode can be adjusted when the direction of the Type-C port adapter is switched. This adjustment ensures that the current supply pattern matches the actual insertion direction, thereby reducing current instability caused by changes in insertion direction and improving the stability of current transmission.
[0022] The third objective of the present application is achieved through the following technical solutions: A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned mobile device charging control method when executing the computer program.
[0023] The fourth objective of the present application is achieved through the following technical solutions: A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the mobile device charging control method are implemented.
[0024] In summary, the present application includes at least one of the following beneficial technical effects: 1. By obtaining the connection status information between the mobile device and the Type-C port adapter, the actual connection status between the mobile device and the adapter can be accurately understood. This process ensures real-time monitoring of the connection status during the current transmission process, thereby providing an accurate data basis for the current supply adjustment in the subsequent steps, thereby improving the stability of the current transmission. By determining the insertion direction of the Type-C port adapter based on the connection status information, the Type-C port insertion direction information is obtained, and the insertion direction of the adapter can be accurately identified. This identification ensures that the optimization and stability adjustment of the current transmission path can be effectively implemented under different insertion directions, thereby improving the stability of the current transmission. By generating switching control information according to the Type-C port insertion direction information, the stability of the current transmission can be maintained when the front and back sides of the Type-C port adapter are switched. The switching control information ensures that the current transmission path can be adjusted in time when the direction of the adapter changes, avoiding current fluctuations caused by direction mismatch, thereby improving the stability of the current transmission. By generating the adjusted current supply mode information according to the switching control information, the current supply mode can be adjusted when the direction of the Type-C port adapter is switched. This adjustment ensures that the current supply pattern matches the actual insertion direction, thereby reducing the current instability caused by changes in the insertion direction and improving the stability of current transmission; 2. By comparing the preliminary current transmission path information with the preset reverse insertion current transmission path, generating path switching information, including comparing path differences, adjusting the current transmission path and generating path switching information, the change of the current transmission path can be accurately identified and adjusted. This comparison and adjustment process ensures that the current transmission can remain stable when the front and back sides of the Type-C port adapter are switched; 3. Ability to accurately identify and adjust changes in the current transmission path. Specifically, the path difference comparison and adjustment process can ensure that the current transmission path can be timely and effectively optimized when the front and back sides of the Type-C port adapter are switched, thereby maintaining the stability of current transmission and reducing the current instability that may be caused by changes in the adapter direction. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 is a flow chart of a method for controlling charging of a mobile device in one embodiment of the present application; Figure 2 This is a flowchart of the implementation of step S10 of the mobile device charging control method in one embodiment of the present application; Figure 3 This is a flowchart of the implementation of step S20 of the mobile device charging control method in one embodiment of the present application; Figure 4 This is a flowchart of the implementation of step S202 of the mobile device charging control method in one embodiment of the present application; Figure 5 This is a flowchart of the implementation of step S30 of the mobile device charging control method in one embodiment of the present application; Figure 6 This is a flowchart of the implementation of step S302 of the mobile device charging control method in one embodiment of the present application; Figure 7 This is a flowchart of the implementation of step S40 of the mobile device charging control method in one embodiment of the present application; Figure 8 This is a principle block diagram of a mobile device charging control device in one embodiment of the present application; Fig. 9 It is a schematic diagram of a device in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The present application is further described in detail below in conjunction with the accompanying drawings.
[0027] In one embodiment, if Figure 1 As shown, the present application discloses a charging control method for a mobile device, which specifically includes the following steps: S10: Acquire connection status information between the mobile device and the Type-C port adapter.
[0028] Specifically, the physical connection stability is detected through the hardware interface of the mobile device and the contact point of the adapter, such as whether there is full contact or poor contact. At the same time, the electrical characteristics and function support information of the adapter, including current and voltage requirements, are obtained by reading the data packets in the communication protocol.
[0029] S20: Based on the connection status information, determine the insertion direction of the Type-C port adapter and obtain the Type-C port insertion direction information.
[0030] In this embodiment, the Type-C port insertion direction information refers to determining a specific direction of the Type-C port adapter in the insertion port.
[0031] Specifically, by analyzing the physical connection status obtained from the connection status information, the contact point signal distribution of the adapter is detected, and the contact point signal indicates the contact status between the adapter and the port. Using a preset direction matching model, the contact point signal is compared with a known insertion direction standard to determine the actual insertion direction of the adapter.
[0032] S30: Generate switching control information according to the Type-C port insertion direction information, where the switching control information is used to maintain the stability of current transmission when the front and back sides of the Type-C port adapter are switched.
[0033] In this embodiment, the switching control information refers to the control information required to ensure the stability of current transmission when the front and back sides of the Type-C port adapter are switched.
[0034] Specifically, the switching control information is generated by comparing the Type-C port insertion direction information with the preset current transmission path model. The switching control information includes the parameters for adjusting the current, the voltage adjustment required during switching, and other configurations to maintain stability, ensuring that the current transmission is not disturbed when the adapter direction changes.
[0035] S40: Generate adjusted current supply mode information according to the switching control information, and adjust the current supply mode of the mobile device based on the adjusted current supply mode information.
[0036] In this embodiment, the adjusted current supply mode information refers to the current supply configuration and strategy after the switching control information is applied.
[0037] Specifically, the current supply mode information is generated by analyzing the current adjustment parameters, supply time and voltage settings in the switching control information. The current supply mode information describes how to adjust the current supply when the adapter switches between the front and back sides to maintain a stable charging state. The current supply mode includes the adjustment of the current intensity, the setting of the supply time and the optimization of the voltage level to ensure that the mobile device continues to be stably powered when the adapter changes direction.
[0038] In one embodiment, if Figure 2 As shown, in step S10, the connection status information between the mobile device and the Type-C port adapter is obtained, including: S101: Generate connection status information by detecting the physical connection status and communication protocol information between the mobile device and the Type-C port adapter.
[0039] Specifically, by detecting the physical connection status of the mobile device and the Type-C port adapter, the following steps are included: First, the hardware interface of the mobile device detects the physical contact of the adapter insertion through its built-in sensing circuit to determine whether there is a stable contact signal. The contact signal refers to whether a complete electrical circuit is formed between the various contacts connected to the adapter and the device during the insertion process. The detection circuit of the hardware interface monitors the voltage, current and other electrical parameters of these contacts in real time to identify whether the connection is firm. Then, the device parses the protocol handshake process of the adapter through its embedded communication protocol stack. The handshake process includes data packets transmitted between the adapter and the device, which contain information such as the current, voltage specifications, and data transmission rates supported by the device. By parsing this information, the device can generate comprehensive connection status information.
[0040] In one embodiment, if Figure 3 As shown, in step S20, based on the connection status information, the insertion direction of the Type-C port adapter is determined to obtain the Type-C port insertion direction information, including: S201: Analyze the contact point signal distribution of the Type-C port adapter inserted according to the physical connection status information, and generate contact point information.
[0041] In this embodiment, the contact point information refers to the contact status information about the Type-C port adapter and the mobile device port obtained by analyzing the contact point electrical signal detected in the physical connection status information.
[0042] Specifically, the electrical parameters of each contact point, such as voltage, current and its stability, are extracted from the physical connection status information. The contact point signal refers to the current and voltage signals transmitted by each contact during the connection process. The contact point signal can reflect the state of each contact in the physical connection, such as whether the contact is stable and whether the electrical connection is complete. The contact point signal is distributed and analyzed, that is, the relative differences and positional relationships of the signals between different contacts are determined. Distribution analysis can help identify which contact is the main current transmission path and which contacts may have signal weakening or interference. Contact point information is thus generated.
[0043] S202: Identify the contact point information through a preset direction matching model, identify the connection direction of the Type-C port adapter, and obtain the Type-C port insertion direction information.
[0044] In this embodiment, the preset direction matching model refers to a pre-designed algorithm model for identifying the insertion direction of the Type-C port adapter according to the contact point information.
[0045] Specifically, the generated contact point information is used as input, and the input process includes formatting and standardization of the data to meet the input requirements of the direction matching model. The model contains standard signal distributions for different insertion directions, which are pre-defined based on the expected contact point signal patterns when the adapter is inserted in different directions. Then, the preset direction matching model calculates the degree of matching in each direction by comparing the contact point information with these standard signal distributions. This comparison process usually uses an error minimization algorithm to obtain a matching score for each direction by comparing the difference between the actual signal and the standard signal. Finally, the insertion direction of the Type-C port adapter is identified based on the direction with the highest matching degree.
[0046] In one embodiment, if Figure 4As shown, in step S202, the contact point information is identified by a preset direction matching model, the connection direction of the Type-C port adapter is identified, and the Type-C port insertion direction information is obtained, including: S2021: Input the contact point information into a preset direction matching model, calculate the direction matching degree, and obtain the direction matching degree information.
[0047] In this embodiment, the direction matching information refers to the similarity or matching degree between the contact point signal calculated by the direction matching model and the preset standard direction.
[0048] Specifically, the contact point information is standardized through the data processing module. The purpose of standardization is to ensure the comparability between different contact point signals and format them into an input format that can be processed by the direction matching model. Then, these standardized contact point information are input into the direction matching model. The model contains a preset standard direction signal distribution, which represents the expected pattern of the contact point signal under different insertion directions. The model calculates the matching degree between the input contact point signal and each standard direction signal through a matching algorithm, such as Euclidean distance calculation or cosine similarity analysis. The matching degree indicates the similarity between the contact point signal and a certain standard direction signal. The higher the value, the closer the signal is to the expected distribution of the direction. The model generates the direction matching degree information based on the calculated matching degree score. The information contains the matching degree of each potential insertion direction, which is used to finally determine the insertion direction of the adapter.
[0049] S2022: Based on the direction matching information, identify the connection direction of the Type-C port adapter and obtain the Type-C port insertion direction information.
[0050] Specifically, the direction matching information is analyzed, and the analysis process includes sorting the matching scores of each direction to find the direction with the highest matching degree. Then, the direction with the highest matching degree is used as the actual insertion direction of the Type-C port adapter. The key to identifying the direction is to select the direction that best matches the current contact point signal through the matching information, thereby ensuring the accuracy of the judgment. Finally, the system uses this recognition result as the insertion direction of the Type-C port.
[0051] Furthermore, the system refers to a comprehensive platform for performing current supply regulation and analysis tasks.
[0052] In one embodiment, if Figure 5 As shown, in step S30, switching control information is generated according to the Type-C port insertion direction information, and the switching control information is used to maintain the stability of current transmission when the front and back sides of the Type-C port adapter are switched, including: S301: Based on the Type-C port insertion direction information, analyze the current transmission path of the current insertion direction and generate preliminary current transmission path information.
[0053] In this embodiment, the preliminary current transmission path information refers to the path of current transmission from the adapter to the mobile device in the current direction, which is identified and calculated based on the insertion direction of the Type-C port adapter.
[0054] Specifically, the connection relationship between the adapter and the device contact points is determined using the Type-C port insertion direction information. The location and signal strength of the contact points directly determine the current transmission path. The electrical characteristics of the contact points, such as resistance, voltage drop, and current carrying capacity in the path, are analyzed to determine how the current is transmitted through these points. This analysis process includes a path optimization algorithm that prioritizes the path with the most stable signal and the lowest resistance as the main transmission path. Through these analyses, the system generates preliminary current transmission path information.
[0055] S302: Obtaining path switching information by comparing the preliminary current transmission path information with the preset reverse insertion current transmission path.
[0056] In this embodiment, the path switching information refers to comparing the current preliminary current transmission path with the reverse insertion current transmission path preset by the system to identify the path adjustment and switching that needs to be performed.
[0057] Specifically, the preset reverse insertion current transmission path is retrieved from the Type-C port adapter current transmission database. The preset reverse insertion current transmission path is the standard current transmission path required when the adapter is reversely inserted, and is compared point by point with the currently generated preliminary current transmission path. The comparison process uses a signal matching algorithm to compare the electrical characteristics of each contact point one by one, such as current density, voltage stability, etc. The system identifies the difference between the preliminary path and the reverse path based on the comparison results and generates path switching information.
[0058] Furthermore, the Type-C port adapter current transmission database refers to a storage system for storing various preset data and models related to the current transmission of the Type-C port adapter. The signal matching algorithm refers to a method for comparing the difference between the preliminary current transmission path information and the reverse insertion current transmission path information. Specifically, the difference detection algorithm identifies the difference between them by analyzing the electrical parameters of each contact point in the two paths one by one, such as resistance, voltage drop, and current density. The algorithm first compares the electrical parameters of each contact point in the two paths and calculates the difference value between the parameters. Then, based on these difference values, the difference detection algorithm determines which contact points may have current instability or low transmission efficiency in the reverse path, and generates corresponding optimization suggestions. The implementation of the difference detection algorithm involves steps such as data analysis, feature comparison, and difference calculation, and finally generates a path difference comparison result as a basis for path optimization and switching.
[0059] S303: Generate switching control information according to the path switching information, where the switching control information is used to maintain the stability of current transmission when the front and back sides of the Type-C port adapter are switched.
[0060] Specifically, each path adjustment instruction in the path switching information is converted into specific hardware operation information, such as changing the activation state of certain contact points, adjusting the working parameters of the voltage regulator, or reallocating the current transmission path. The hardware operation information is sent through the control circuit to ensure that during the actual switching process, the mobile device can quickly adjust the current transmission path to adapt to the insertion of the new direction. Combined with real-time transmission current information, the current distribution and path selection are dynamically adjusted to ensure the continuous stability of the current during the switching of the adapter insertion direction.
[0061] In one embodiment, if Figure 6 As shown, in step S302, path switching information is obtained by comparing the preliminary current transmission path information with the preset reverse insertion current transmission path, including: S3021: Compare the preliminary current transmission path information with the preset reverse insertion current transmission path to generate a path difference comparison result.
[0062] In this embodiment, the path difference comparison result refers to the difference information between the two paths in terms of electrical parameters, transmission efficiency and stability, etc., obtained by comparing the preliminary current transmission path information and the reverse insertion current transmission path information in detail.
[0063] Specifically, each contact point in the preliminary current transmission path and the reverse insertion path is matched. The matching process involves comparing the electrical parameters of each contact point, such as voltage, current, and resistance. A difference detection algorithm is used to calculate the parameter changes of each contact point in different paths, with special attention paid to those points that may cause current instability in the reverse path. Based on these comparison results, the system generates path difference comparison results.
[0064] Furthermore, the difference detection algorithm refers to a method for comparing the difference between the preliminary current transmission path information and the reverse insertion current transmission path information. Specifically, the difference detection algorithm identifies the difference between them by analyzing the electrical parameters of each contact point in the two paths one by one, such as resistance, voltage drop, and current density. The algorithm first compares the electrical parameters of each contact point in the two paths and calculates the difference value between the parameters. Then, based on these difference values, the difference detection algorithm determines which contact points may have current instability or low transmission efficiency in the reverse path, and generates corresponding optimization suggestions. The implementation of the difference detection algorithm involves steps such as data analysis, feature comparison, and difference calculation, and finally generates a path difference comparison result as the basis for path optimization and switching.
[0065] S3022: Adjust the current transmission path according to the path difference comparison result, and generate adjusted path information.
[0066] Specifically, the process of adjusting the current transmission path first determines the contact points and transmission paths that need to be optimized based on the path difference comparison results. According to the contact points and transmission paths that need to be optimized, the current transmission path is replanned to ensure that the current can be transmitted with the lowest resistance and highest stability in the adjusted path. The adjustment process includes reallocating the main transmission channel of the current, enabling or disabling certain auxiliary transmission channels, and dynamically adjusting the distribution ratio of voltage and current. At the same time, the effects of these adjustments are monitored in real time, and the feedback mechanism is used to verify whether the adjusted path has achieved the expected transmission efficiency and stability, and finally the adjusted path information is generated.
[0067] S3023: Compare the adjusted path information with the preset reverse insertion current transmission path to generate path switching information.
[0068] Specifically, after the adjustment of the current transmission path is completed, the adjusted path information is finally compared with the preset reverse insertion current transmission path. By analyzing the electrical parameters of each contact point again, ensure that the adjusted path can match the electrical requirements of the reverse insertion path. Verify whether the adjusted path is consistent with the reverse path in terms of transmission efficiency, stability, and current density. If the comparison result shows that the adjusted path has a high degree of match with the reverse path, the comparison result is converted into path switching information to guide the path adjustment operation when the adapter direction is switched. The path switching information is ultimately used to ensure that when the Type-C port adapter is inserted in a different direction, the device can smoothly switch to the optimal current transmission path to maintain a stable and efficient current supply.
[0069] In one embodiment, if Figure 7 As shown, in step S40, that is, according to the switching control information, the adjusted current supply mode information is generated, and based on the adjusted current supply mode information, the current supply mode of the mobile device is adjusted, including: S401: Analyze the current intensity, supply time and voltage parameters in the current supply adjustment information to generate current supply parameter information.
[0070] In this embodiment, the current supply parameter information refers to electrical characteristic information generated after analyzing various parameters in the current supply adjustment information. The electrical characteristic information includes but is not limited to the instantaneous intensity and duration of the current, the stability and fluctuation range of the voltage, etc.
[0071] Specifically, the current supply adjustment information is obtained, including current intensity, supply time and voltage parameters. Current intensity refers to the size of the actual supplied current, supply time is the length of time the current is maintained at a specific intensity, and voltage parameters refer to the voltage level of the current supply. Statistical analysis is performed on the current intensity to determine its range of variation and fluctuations. The supply time is measured and its duration and any changes are recorded. The voltage parameters are evaluated to confirm their stability and consistency at different time points. The average, maximum and minimum values of the current intensity are extracted, and the current fluctuation range is calculated. The supply time is counted to obtain the average time and variation of the stable current supply. The voltage parameters are summarized to summarize their stable values and fluctuations. Based on the extracted data, current supply parameter information is generated. The current supply parameter information includes the standard value of the current intensity, the typical value of the supply time, and the stable range of the voltage. S402: adjusting the current supply mode of the mobile device according to the current supply parameter information, and generating adjusted current supply mode information.
[0072] Specifically, based on the previously generated current supply parameter information, potential problems in the current supply mode are calculated, such as excessive current fluctuations or voltage deviations beyond the safe range. The current supply mode is adjusted through the internal adjustment module, including modifying the upper limit of the current intensity, optimizing the voltage regulation response speed, and balancing the distribution of the current supply time. After completing these adjustments, the new current supply mode information is recalculated to ensure that it can continue to provide stable power supply when the Type-C port adapter is inserted in a different direction.
[0073] S403: Based on the adjusted current supply mode information, adjust the current supply mode of the mobile device to ensure the stability of current transmission when the front and back sides of the Type-C port adapter are switched.
[0074] Specifically, by using high-frequency sampling technology to obtain the current current supply status in real time, combined with the adjusted current supply mode information, the system can quickly identify any potential unstable factors. Then, the system adjusts the key parameters of the current supply mode through a feedback adjustment mechanism, such as increasing the stability of the current intensity, optimizing the response time of the voltage regulation, and balancing the distribution of the current supply time. This adjustment process is achieved through a closed-loop control system to ensure that the current supply is always kept within a stable range under different Type-C port insertion directions, avoiding current supply interruptions or instability caused by changes in the insertion direction.
[0075] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0076] In one embodiment, a mobile device charging control device is provided, and the mobile device charging control device corresponds to the mobile device charging control method in the above embodiment. Figure 8 As shown, the mobile device charging control device includes an information acquisition module, a direction confirmation module, a switching control module and a current supply mode adjustment module. The detailed description of each functional module is as follows: An information acquisition module, used to obtain connection status information between the mobile device and the Type-C port adapter; A direction confirmation module, used to determine the insertion direction of the Type-C port adapter based on the connection status information, and obtain the Type-C port insertion direction information; A switching control module, used to generate switching control information according to the Type-C port insertion direction information, and the switching control information is used to maintain the stability of current transmission when the front and back sides of the Type-C port adapter are switched; The current supply mode adjustment module is used to generate adjusted current supply mode information according to the switching control information, and adjust the current supply mode of the mobile device based on the adjusted current supply mode information.
[0077] Optionally, the information acquisition module includes: The connection status submodule is used to generate connection status information by detecting the physical connection status and communication protocol information between the mobile device and the Type-C port adapter.
[0078] Optionally, the direction confirmation module includes: The contact point submodule is used to analyze the contact point signal distribution of the Type-C port adapter inserted according to the physical connection status information and generate the contact point information; The insertion direction submodule is used to identify the contact point information through a preset direction matching model, identify the connection direction of the Type-C port adapter, and obtain the Type-C port insertion direction information.
[0079] Optionally, the insertion direction submodule includes: A direction matching unit, used to input the contact point information into a preset direction matching model, calculate the direction matching degree, and obtain the direction matching degree information; The connection direction unit is used to identify the connection direction of the Type-C port adapter based on the direction matching information and obtain the Type-C port insertion direction information.
[0080] Optionally, the switching control module includes: A preliminary current transmission path submodule is used to analyze the current transmission path in the current insertion direction based on the Type-C port insertion direction information and generate preliminary current transmission path information; A path switching submodule, used to obtain path switching information by comparing preliminary current transmission path information with a preset reverse insertion current transmission path; The stability control submodule is used to generate switching control information according to the path switching information. The switching control information is used to maintain the stability of current transmission when the front and back sides of the Type-C port adapter are switched.
[0081] Optionally, the path switching submodule includes; A path difference comparison result unit, used to compare the preliminary current transmission path information with the preset reverse insertion current transmission path to generate a path difference comparison result; An adjusted path unit, used to adjust the current transmission path according to the path difference comparison result and generate adjusted path information; The secondary comparison unit is used to compare the adjusted path information with the preset reverse insertion current transmission path to generate path switching information.
[0082] Optionally, the current supply mode adjustment module includes: A current supply parameter submodule, used for analyzing the current intensity, supply time and voltage parameters in the current supply adjustment information, and generating current supply parameter information; An adjusted current supply mode submodule, used to adjust the current supply mode of the mobile device according to the current supply parameter information, and generate adjusted current supply mode information; The adjustment submodule is used to adjust the current supply mode of the mobile device based on the adjusted current supply mode information to ensure the stability of current transmission when the front and back sides of the Type-C port adapter are switched.
[0083] For the specific definition of the mobile device charging control device, please refer to the definition of the mobile device charging control method above, which will not be repeated here. Each module in the above-mentioned mobile device charging control device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0084] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for the Type-C port adapter current transmission database. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a mobile device charging control method is implemented.
[0085] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: Get the connection status information between the mobile device and the Type-C port adapter; Based on the connection status information, determine the insertion direction of the Type-C port adapter and obtain the Type-C port insertion direction information; Generate switching control information according to the Type-C port insertion direction information, and the switching control information is used to maintain the stability of current transmission when the front and back sides of the Type-C port adapter are switched; According to the switching control information, the adjusted current supply mode information is generated, and based on the adjusted current supply mode information, the current supply mode of the mobile device is adjusted.
[0086] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: Get the connection status information between the mobile device and the Type-C port adapter; Based on the connection status information, determine the insertion direction of the Type-C port adapter and obtain the Type-C port insertion direction information; Generate switching control information according to the Type-C port insertion direction information, and the switching control information is used to maintain the stability of current transmission when the front and back sides of the Type-C port adapter are switched; According to the switching control information, the adjusted current supply mode information is generated, and based on the adjusted current supply mode information, the current supply mode of the mobile device is adjusted.
[0087] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0088] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0089] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for controlling charging of a mobile device, characterized in that: The mobile device charging control method comprises: Get the connection status information between the mobile device and the Type-C port adapter; Based on the connection status information, determine the insertion direction of the Type-C port adapter to obtain Type-C port insertion direction information; Generate switching control information according to the Type-C port insertion direction information, wherein the switching control information is used to maintain the stability of current transmission when the front and back sides of the Type-C port adapter are switched; According to the switching control information, the adjusted current supply mode information is generated, and based on the adjusted current supply mode information, the current supply mode of the mobile device is adjusted.
2. The mobile device charging control method according to claim 1, characterized in that: The obtaining of the connection status information between the mobile device and the Type-C port adapter includes: The connection status information is generated by detecting the physical connection status and communication protocol information between the mobile device and the Type-C port adapter.
3. The mobile device charging control method according to claim 1, characterized in that: The step of determining the insertion direction of the Type-C port adapter based on the connection status information to obtain the Type-C port insertion direction information includes: Analyze the contact point signal distribution of the Type-C port adapter inserted according to the physical connection state information to generate contact point information; The contact point information is identified through a preset direction matching model, the connection direction of the Type-C port adapter is identified, and the Type-C port insertion direction information is obtained.
4. The mobile device charging control method according to claim 3, characterized in that: The step of identifying the contact point information by a preset direction matching model, identifying the connection direction of the Type-C port adapter, and obtaining the Type-C port insertion direction information includes: Inputting the contact point information into the preset direction matching model, calculating the direction matching degree, and obtaining the direction matching degree information; Based on the direction matching information, the connection direction of the Type-C port adapter is identified to obtain the Type-C port insertion direction information.
5. The mobile device charging control method according to claim 1, characterized in that: The method of generating switching control information according to the Type-C port insertion direction information, wherein the switching control information is used to maintain the stability of current transmission when the front and back sides of the Type-C port adapter are switched, includes: Based on the Type-C port insertion direction information, analyzing the current transmission path of the current in the insertion direction, and generating preliminary current transmission path information; Obtaining path switching information by comparing the preliminary current transmission path information with a preset reverse insertion current transmission path; The switching control information is generated according to the path switching information, and the switching control information is used to maintain the stability of the current transmission when the front and back sides of the Type-C port adapter are switched.
6. The mobile device charging control method according to claim 5, characterized in that: The obtaining of the path switching information by comparing the preliminary current transmission path information with the preset reverse insertion current transmission path includes: Comparing the preliminary current transmission path information with the preset reverse insertion current transmission path to generate a path difference comparison result; According to the path difference comparison result, adjusting the current transmission path to generate adjusted path information; The adjusted path information is compared with the preset reverse insertion current transmission path to generate the path switching information.
7. The mobile device charging control method according to claim 1, characterized in that: The step of generating adjusted current supply mode information according to the switching control information, and adjusting the current supply mode of the mobile device based on the adjusted current supply mode information includes: Analyzing the current intensity, supply time and voltage parameters in the current supply adjustment information to generate current supply parameter information; adjusting the current supply mode of the mobile device according to the current supply parameter information, and generating the adjusted current supply mode information; Based on the adjusted current supply mode information, the current supply mode of the mobile device is adjusted to ensure the stability of current transmission when the front and back sides of the Type-C port adapter are switched.
8. A mobile device charging control device, characterized in that: The mobile device charging control device comprises: An information acquisition module, used to obtain connection status information between the mobile device and the Type-C port adapter; A direction confirmation module, used to determine the insertion direction of the Type-C port adapter based on the connection status information, and obtain Type-C port insertion direction information; A switching control module, used to generate switching control information according to the Type-C port insertion direction information, wherein the switching control information is used to maintain the stability of current transmission when the front and back sides of the Type-C port adapter are switched; The current supply mode adjustment module is used to generate adjusted current supply mode information according to the switching control information, and adjust the current supply mode of the mobile device based on the adjusted current supply mode information.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the mobile device charging control method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the mobile device charging control method according to any one of claims 1 to 7 are implemented.