Charging communication conversion method and device based on autonomous mobile robot

By identifying and adapting the charging communication methods and protocols of drones and automated guided vehicles, the compatibility and adaptability problems in existing technologies are solved, efficient battery charging management is achieved, and the widespread application of the equipment is promoted.

CN118573746BActive Publication Date: 2024-10-01SHENZHEN ZHIAN NEW ENERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411047894.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-10-01
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

There are problems with compatibility and adaptability of existing chargers and energy storage batteries, which makes battery charging management difficult and inconvenient for drones and automated guided vehicles, limiting the application and promotion of the equipment.

Method used

Provides a charging communication conversion method based on autonomous mobile robots. By identifying the communication method and protocol of the target battery, multiple preset known communication protocols are used for comparison and verification to ensure the matching communication link between the transfer controller and the battery. Realize automatic adaptation and conversion of different communication methods and protocols.

Benefits of technology

It improves the compatibility and usage efficiency of the equipment, lowers the technical threshold for users, and promotes the application and promotion of battery charging management for drones, AGVs and other equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573746B_ABST
    Figure CN118573746B_ABST
Patent Text Reader

Abstract

The present invention relates to a charging communication conversion method and device based on an autonomous mobile robot, aiming to solve the compatibility and adaptability problems in the prior art. First, the current communication mode of the robot's target battery is identified to ensure the pertinence of subsequent steps. Next, the communication mode of the target battery is detected by a switching controller to see if it includes an active sending protocol. If it does, the system monitors the data sent and received by the switching controller, and compares multiple preset known communication protocols based on these data to determine the communication protocol of the target battery. If it does not include an active sending protocol, multiple known communication protocols will be used to send inspection data to the target battery, and the communication protocol will be determined based on the response situation. Finally, based on the determined communication mode and protocol, the switching controller is controlled to establish a communication link with the target battery. Automatic adaptation and conversion of different communication modes and protocols are achieved to improve the use efficiency and compatibility of the equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a charging communication conversion method, device, computer equipment and storage medium based on an autonomous mobile robot. Background Art

[0002] In modern drones and automated guided vehicles (AGVs), battery charging and management is a critical task. However, current chargers, generators, and energy storage batteries on the market have significant technical issues in terms of compatibility and adaptability.

[0003] First, most existing converters only support a single communication type conversion. For example, from RS485 to CAN, or from serial port to I2C. This single conversion method limits the compatibility of devices, and users need to purchase multiple different types of converters for different application scenarios, which increases the cost and complexity of use.

[0004] Secondly, even if existing products can achieve the conversion of communication types, they usually do not have the function of converting communication protocols. For example, although CAN data can be converted into other communication forms, users still need to parse and convert the protocol content by themselves. This design without protocol conversion increases the difficulty and technical threshold for users, and affects the efficiency of equipment use.

[0005] These problems together lead to difficulties and inconveniences in battery charging management for equipment such as drones and AGVs, limiting the application and promotion of the equipment. These technical problems require a more universal and efficient solution to overcome them. Summary of the invention

[0006] The main purpose of the present invention is to provide a charging communication conversion method, device, computer equipment and storage medium based on an autonomous mobile robot to solve the technical problems existing in the compatibility and adaptability of chargers, generators and energy storage batteries of modern drones and automatic guided vehicles (AGVs).

[0007] To achieve the above-mentioned purpose, the present invention provides a charging communication conversion method based on an autonomous mobile robot, comprising the following steps: identifying the communication mode currently used by the target battery of the autonomous mobile robot, wherein the autonomous mobile robot at least includes: a drone and / or an automatic guided vehicle; detecting whether the communication mode currently used by the target battery includes an active sending protocol through a switching controller of the autonomous mobile robot; if the communication mode currently used by the target battery includes an active sending protocol, monitoring the first data sent by the switching controller and the second data received by the switching controller; comparing and processing a plurality of preset known communication protocols in sequence according to the first data and the second data to determine the communication protocol currently used by the target battery; if the communication mode currently used by the target battery does not include an active sending protocol, sequentially using the plurality of preset known communication protocols to send inspection data to the target battery; determining the communication protocol currently used by the target battery according to the response of the target battery based on the inspection data; and controlling the switching controller to communicate with the target battery according to the communication mode and communication protocol currently used by the determined target battery.

[0008] Furthermore, before identifying the communication mode currently used by the target battery of the autonomous mobile robot, the communication conversion method also includes: acquiring communication parameter data of the adapter controller and the communication parameter data of the target battery; judging whether the communication mode and communication protocol of the adapter controller match those of the target battery based on the communication parameter data of the adapter controller and the communication parameter data of the target battery; if the communication mode and communication protocol of the adapter controller match those of the target battery, using the matching communication mode and communication protocol between the adapter controller and the target battery for communication link; if the communication mode and communication protocol of the adapter controller do not match those of the target battery, executing the step of "identifying the communication mode currently used by the target battery".

[0009] Furthermore, identifying the communication mode currently used by the target battery of the autonomous mobile robot includes: when the switching controller is connected to the target battery, determining whether all preset communication modes have been tested for the target battery; if there is no untested preset communication mode, ending the communication mode identification process; if there is an untested preset communication mode, selecting a preset communication mode from the untested preset communication modes as the target communication mode to be tested, and detecting the level state of the signal line of the communication interface; determining whether the level state conforms to the preset level state of the signal line after the target communication mode is successfully connected to the device; if it conforms, determining that the target communication mode is the communication mode currently used by the target battery; if it does not conform, sending specific identification data according to the target communication mode to determine whether the switching controller has a device successfully connected; if the switching controller has a device successfully connected, determining that the target communication mode is the communication mode currently used by the target battery; if the switching controller has no device successfully connected, continuing to execute the step of "determining whether all communication modes have been tested for the target battery".

[0010] Furthermore, identifying the communication mode currently used by the target battery of the autonomous mobile robot includes: when the switching controller is connected to the target battery, determining whether it causes a level change in the signal line of the communication interface; if it causes a level change in the signal line of the communication interface, detecting whether the level change in the signal line meets a preset level change standard for the switching controller to access the target battery; if it meets the preset level change standard, determining that the communication mode of the target battery is a 485 communication mode; if it does not meet the preset level change standard, terminating the communication mode identification process; if it does not cause a level change in the signal line of the communication interface, determining whether it is possible to monitor the information sending of the switching controller to the target device; if it is possible to monitor the information sending of the switching controller to the target device, controlling the switching controller to send a set of monitoring data, and monitoring whether the monitoring data is sent successfully. If it is successful, it is determined that the communication mode of the target battery is the CAN communication mode, if not, the communication mode identification process is terminated; if it is not possible to monitor the information sending of the switching controller to the target device, it is determined whether the information response of the switching controller to the target device can be monitored, if the information response of the switching controller to the target device can be monitored, the switching controller is controlled to send a set of test data, and monitor whether the switching controller receives the response request sent by the target device, if so, it is determined that the communication mode of the target battery is the IIC communication mode; if it is not possible to monitor the information response of the switching controller to the target device, a communication mode confirmation request of the target battery is sent, and a communication mode specifying instruction based on the communication mode confirmation request is received, and the communication mode of the target battery is determined based on the communication mode specifying instruction.

[0011] Furthermore, the first data sent by the adapter controller and the second data received by the adapter controller are monitored; based on the first data and the second data, a plurality of preset known communication protocols are sequentially compared and processed to determine the communication protocol currently used by the target battery, including: monitoring the first data sent by the adapter controller and the second data received by the adapter controller for a first preset time period; performing data analysis on the monitored data for the first preset time period, and matching the plurality of preset known communication protocols in sequence according to the data analysis results; determining whether there is a successfully matched known communication protocol, and if there is no successfully matched known communication protocol, executing the step of "using the plurality of preset known communication protocols in sequence to send inspection data to the target battery"; if there is a successfully matched known communication protocol, determining the successfully matched known communication protocol as the communication protocol currently used by the target battery.

[0012] Further, the multiple preset known communication protocols are used in sequence to send inspection data to the target battery; the communication protocol currently used by the target battery is determined according to the response of the target battery based on the inspection data, including: judging whether to perform inspection processing on all known communication protocols; if all known communication protocols have been inspected, determining that the communication protocol currently used by the target battery is an unknown communication protocol, and terminating the communication protocol identification process; if not all known communication protocols have been inspected, selecting a known communication protocol from the known communication protocols that have not been inspected as the target communication protocol to be inspected, controlling the switching controller to send third data to the target battery based on the target communication protocol, and judging whether the switching controller receives fourth data sent by the target battery in response to the third data; if the switching controller has not When the fourth data sent by the target battery is received, it is determined whether the time length from the selection of the target communication protocol to the current moment exceeds the second preset time length; if it does not exceed the second preset time length, the step of "determining whether the switching controller has received the second data sent by the target battery" is continued; if it exceeds the second preset time length, the step of "determining whether all known communication protocols are checked and processed" is continued; if the switching controller receives the fourth data sent by the target battery, it is determined whether the third data and the fourth data meet the requirement standards of the target communication protocol; if they do not meet the requirement standards of the target communication protocol, the step of "determining whether all known communication protocols are checked and processed" is continued; if they meet the requirement standards of the target communication protocol, it is determined that the target communication protocol is the communication protocol currently used by the target battery.

[0013] The present invention also provides a charging communication conversion device based on an autonomous mobile robot, comprising: an identification unit, used to identify the communication mode currently used by the target battery of the autonomous mobile robot, wherein the autonomous mobile robot at least includes: an unmanned aerial vehicle and / or an automatic guided vehicle; a first sending unit, used to detect whether the communication mode currently used by the target battery includes an active sending protocol through the switching controller of the autonomous mobile robot; a second sending unit, used to monitor the first data sent by the switching controller and the second data received by the switching controller if the communication mode currently used by the target battery includes an active sending protocol; a comparison unit, used to compare and process multiple preset known communication protocols in sequence according to the first data and the second data to determine the communication protocol currently used by the target battery; a sending unit, used to send inspection data to the target battery using the multiple preset known communication protocols in sequence if the communication mode currently used by the target battery does not include an active sending protocol; a determination unit, used to determine the communication protocol currently used by the target battery according to the response of the target battery based on the inspection data; a control unit, used to control the switching controller to communicate with the target battery according to the communication mode and communication protocol currently used by the determined target battery.

[0014] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.

[0015] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.

[0016] The present invention provides a charging communication conversion method based on an autonomous mobile robot, which aims to solve the compatibility and adaptability problems in the prior art. The method includes multiple steps, each of which has a specific technical effect.

[0017] First, by identifying the communication method currently used by the target battery of the autonomous mobile robot, the specific communication type that needs to be converted can be accurately understood. This step ensures the pertinence and effectiveness of the subsequent steps. Next, the transfer controller detects whether the communication method currently used by the target battery contains an active sending protocol. This step enables the system to determine the initiative of the communication and thus determine different processing strategies.

[0018] If the communication method currently used by the target battery includes an active transmission protocol, the system will monitor the first data sent and the second data received by the transfer controller. This monitoring mechanism can capture key data in the communication and provide a basis for subsequent protocol identification. Then, based on the first data and the second data, the system compares and processes multiple preset known communication protocols in sequence to determine the communication protocol currently used by the target battery. This step can efficiently and accurately identify the communication protocol of the target battery through comparison and matching, ensuring the reliability and compatibility of the communication.

[0019] If the communication method currently used by the target battery does not include an active transmission protocol, the system will use multiple preset known communication protocols to send inspection data to the target battery in sequence. This method can actively detect the communication protocol of the target battery. Then, based on the response of the target battery based on the inspection data, the system can determine the communication protocol currently used by the target battery. This method further improves the accuracy of protocol identification through active inquiry and response analysis.

[0020] Finally, according to the communication mode and communication protocol currently used by the determined target battery, the transfer controller is controlled to establish a communication link with the target battery. This step ensures the correctness and stability of the communication link, and can achieve seamless docking and efficient communication.

[0021] The implementation of the entire technical solution, through the layer-by-layer identification and processing of the above steps, realizes the automatic adaptation and conversion of different communication methods and protocols. This method not only solves the limitations of the single conversion method in the existing technology, but also greatly reduces the user's technical threshold and usage difficulty through automatic identification and conversion of protocols, improves the efficiency and compatibility of equipment, and promotes the application and promotion of equipment such as drones and AGVs in battery charging management. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a schematic diagram of the steps of a charging communication conversion method based on an autonomous mobile robot in one embodiment of the present invention;

[0023] Figure 2 is a schematic diagram of a flow chart of determining a communication method in one embodiment of the present invention;

[0024] Figure 3 is a schematic diagram of a determination process of another communication method in an embodiment of the present invention;

[0025] Figure 4 is a schematic diagram of a communication protocol determination process in one embodiment of the present invention;

[0026] Figure 5 is a schematic diagram of a determination process of another communication protocol in one embodiment of the present invention;

[0027] Figure 6 It is a structural block diagram of a charging communication conversion device based on an autonomous mobile robot in one embodiment of the present invention.

[0028] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0030] Reference Figure 1 This embodiment provides a charging communication conversion method based on an autonomous mobile robot, comprising:

[0031] S1, identifying a communication mode currently used by a target battery of the autonomous mobile robot, wherein the autonomous mobile robot includes at least: a drone and / or an automatic guided vehicle.

[0032] S2, detecting, by means of the switching controller of the autonomous mobile robot, whether the communication mode currently used by the target battery includes an active sending protocol.

[0033] S3: If the communication mode currently used by the target battery includes an active transmission protocol, monitor the first data sent by the switching controller and the second data received by the switching controller.

[0034] S4, comparing a plurality of preset known communication protocols in sequence according to the first data and the second data to determine the communication protocol currently used by the target battery.

[0035] S5, if the communication method currently used by the target battery does not include an active transmission type protocol, then use the multiple preset known communication protocols in sequence to send inspection data to the target battery.

[0036] S6, determining the communication protocol currently used by the target battery according to the response of the target battery based on the inspection data.

[0037] S7, controlling the switching controller to establish a communication link with the target battery according to the communication mode and communication protocol currently used by the determined target battery.

[0038] This embodiment provides a charging communication conversion method based on an autonomous mobile robot, aiming to solve the compatibility and adaptability problems in the prior art. The method includes multiple steps, each of which has a specific technical effect.

[0039] First, by identifying the communication method currently used by the target battery of the autonomous mobile robot, the specific communication type that needs to be converted can be accurately understood. This step ensures the pertinence and effectiveness of the subsequent steps. Next, the transfer controller detects whether the communication method currently used by the target battery contains an active sending protocol. This step enables the system to determine the initiative of the communication and thus determine different processing strategies.

[0040] If the communication method currently used by the target battery includes an active transmission protocol, the system will monitor the first data sent and the second data received by the transfer controller. This monitoring mechanism can capture key data in the communication and provide a basis for subsequent protocol identification. Then, based on the first data and the second data, the system compares and processes multiple preset known communication protocols in sequence to determine the communication protocol currently used by the target battery. This step can efficiently and accurately identify the communication protocol of the target battery through comparison and matching, ensuring the reliability and compatibility of the communication.

[0041] If the communication method currently used by the target battery does not include an active transmission protocol, the system will use multiple preset known communication protocols to send inspection data to the target battery in sequence. This method can actively detect the communication protocol of the target battery. Then, based on the response of the target battery based on the inspection data, the system can determine the communication protocol currently used by the target battery. This method further improves the accuracy of protocol identification through active inquiry and response analysis.

[0042] Finally, according to the communication mode and communication protocol currently used by the determined target battery, the transfer controller is controlled to establish a communication link with the target battery. This step ensures the correctness and stability of the communication link, and can achieve seamless docking and efficient communication.

[0043] The implementation of the entire technical solution, through the layer-by-layer identification and processing of the above steps, realizes the automatic adaptation and conversion of different communication methods and protocols. This method not only solves the limitations of the single conversion method in the existing technology, but also greatly reduces the user's technical threshold and usage difficulty through automatic identification and conversion of protocols, improves the efficiency and compatibility of equipment, and promotes the application and promotion of equipment such as drones and AGVs in battery charging management.

[0044] In one example, before identifying the communication mode currently used by the target battery of the autonomous mobile robot, the communication conversion method also includes: acquiring communication parameter data of the adapter controller and the communication parameter data of the target battery; judging whether the communication mode and communication protocol of the adapter controller match those of the target battery based on the communication parameter data of the adapter controller and the communication parameter data of the target battery; if the communication mode and communication protocol of the adapter controller match those of the target battery, using the matching communication mode and communication protocol between the adapter controller and the target battery for communication link; if the communication mode and communication protocol of the adapter controller do not match those of the target battery, executing the step of "identifying the communication mode currently used by the target battery".

[0045] In this example, by obtaining the communication parameter data of the transfer controller and the communication parameter data of the target battery, the communication capabilities and characteristics of both parties can be fully understood. This step ensures the accuracy and pertinence of subsequent judgments. Based on these communication parameter data, it is determined whether the communication method and communication protocol of the transfer controller and the target battery match. Through this judgment step, it is possible to quickly determine whether there is a directly matching communication method and protocol. If it matches, this method is directly used for communication linking. This method can simplify the process, reduce unnecessary identification and conversion operations, and improve communication efficiency.

[0046] If the communication mode and communication protocol of the transfer controller do not match those of the target battery, proceed to the next step: identifying the communication mode currently used by the target battery. By identifying the communication mode currently used by the target battery of the autonomous mobile robot, it is possible to accurately understand the specific communication type that needs to be converted, ensuring the pertinence and effectiveness of the subsequent steps.

[0047] In one example, if Figure 2As shown, identifying the communication mode currently used by the target battery of the autonomous mobile robot includes: when the switching controller is connected to the target battery, judging whether all preset communication modes have been tested for the target battery; if there is no untested preset communication mode, ending the communication mode identification process; if there is an untested preset communication mode, selecting a preset communication mode from the untested preset communication modes as the target communication mode to be tested, and detecting the level state of the signal line of the communication interface; judging whether the level state conforms to the preset level state of the signal line after the target communication mode is successfully connected to the device; if it conforms, determining that the target communication mode is the communication mode currently used by the target battery, if it does not conform, sending specific identification data according to the target communication mode to judge whether the switching controller has a device successfully connected; if the switching controller has a device successfully connected, determining that the target communication mode is the communication mode currently used by the target battery, if the switching controller has no device successfully connected, continuing to execute the step of "judging whether all communication modes have been tested for the target battery".

[0048] In this example, when the transfer controller is connected to the target battery, it is determined whether all preset communication methods have been checked. This step ensures that the system does not repeatedly check known mismatched communication methods, saving detection time and improving identification efficiency. If all preset communication methods have been checked, the communication method identification process ends, avoiding invalid operations and simplifying the process.

[0049] If there are preset communication methods that have not been tested, select one from these untested methods as the target communication method to be tested, and detect the level status of the signal line of the communication interface. By detecting the level status, the system can preliminarily determine whether the target communication method matches. This is a quick screening step that can effectively exclude unqualified communication methods and reduce subsequent unnecessary attempts.

[0050] Next, it is determined whether the level state meets the preset level state of the target communication mode after the device is successfully linked. If it meets, the target communication mode is determined to be the communication mode currently used by the target battery, so as to achieve fast and accurate identification and ensure the reliability and stability of communication. If it does not meet, specific identification data is sent according to the target communication mode to further determine whether the transfer controller has a successful device link.

[0051] If the transfer controller has a device successfully linked, the target communication mode is determined to be the communication mode currently used by the target battery. This step further verifies the correctness of the communication mode through actual communication attempts, ensuring the accuracy of the final identification result. If no device is successfully linked, continue to execute the step of determining whether all communication modes have been verified to ensure that all possible communication modes have been tried to avoid omissions.

[0052] The entire technical solution achieves automatic adaptation and conversion of different communication methods and protocols through a process of gradual screening and verification.

[0053] In addition, in one example, if there is no unverified communication mode, the communication conversion method may also include: sending a communication mode confirmation request for the target battery, and receiving a communication mode specifying instruction based on the feedback of the communication mode confirmation request, and determining the communication mode of the target battery based on the communication mode specifying instruction.

[0054] In other words, when all preset communication modes have been checked but the communication mode of the target battery cannot be determined, the intervention of the staff can be requested to clarify the communication mode of the target battery by sending a communication mode confirmation request.

[0055] Specifically, when the system determines that all preset communication methods have been checked and no matching communication method is found, the communication method identification process is usually terminated. However, in this scheme, a new step can be introduced, that is, requesting the staff to operate the system and send a communication method confirmation request to the target battery. This request is a command specifically used to inquire about the communication method currently used by the target battery. After receiving this confirmation request, the target battery will feedback a communication method specification instruction according to its internal settings. This instruction clearly points out the communication method currently used by the target battery. After the system receives and parses the instruction, it can determine the communication method of the target battery. The advantage of this parallel scheme is that when all preset communication methods cannot be matched, the communication method information of the target battery can be obtained by directly asking the staff to intervene, ensuring the accuracy and completeness of the communication conversion, avoiding stagnation of the identification process, and improving the compatibility of the system and user experience.

[0056] In summary, this parallel scheme provides an additional confirmation mechanism so that when the standard identification method fails, the communication method of the target battery can still be accurately identified with the help of staff, ensuring the smooth progress of the entire communication conversion process.

[0057] In one example, if Figure 3As shown, identifying the communication mode currently used by the target battery of the autonomous mobile robot includes: when the switching controller is connected to the target battery, judging whether it causes a level change in the signal line of the communication interface; if it causes a level change in the signal line of the communication interface, detecting whether the level change in the signal line meets the preset level change standard for the switching controller to access the target battery; if it meets the preset level change standard, determining that the communication mode of the target battery is the 485 communication mode; if it does not meet the preset level change standard, terminating the communication mode identification process; if it does not cause a level change in the signal line of the communication interface, judging whether it is possible to monitor the information sending of the switching controller to the target device; if it is possible to monitor the information sending of the switching controller to the target device, controlling the switching controller to send a set of monitoring data, and monitoring whether the monitoring data is sent successfully. If yes, it is determined that the communication mode of the target battery is the CAN communication mode, if not, the communication mode identification process is terminated; if it is not possible to monitor the information sending of the switching controller to the target device, it is determined whether the information response of the switching controller to the target device can be monitored, if the information response of the switching controller to the target device can be monitored, the switching controller is controlled to send a set of test data, and monitor whether the switching controller receives the response request sent by the target device, if yes, it is determined that the communication mode of the target battery is the IIC communication mode; if it is not possible to monitor the information response of the switching controller to the target device, a communication mode confirmation request of the target battery is sent, and a communication mode specifying instruction based on the communication mode confirmation request is received, and the communication mode of the target battery is determined based on the communication mode specifying instruction.

[0058] In this example, when the transfer controller is connected to the target battery, it is determined whether the level of the signal line of the communication interface changes. This step quickly screens out possible communication methods by detecting signal changes at the physical level. If the level changes, it is detected whether the level change of the signal line meets the preset level change standard for the transfer controller to access the target battery. If the preset standard is met, it is determined that the communication method of the target battery is the 485 communication method. This method can quickly identify the 485 communication method through simple level detection, saving time and resources.

[0059] If the level change does not meet the preset standard, the communication mode identification process is terminated, avoiding unnecessary further detection and simplifying the process. If no level change is caused, it is determined whether the information sent by the transfer controller to the target device can be monitored. If the information sending can be monitored, the transfer controller is controlled to send a set of monitoring data and monitor whether the data is sent successfully. If the sending is successful, it is determined that the communication mode of the target battery is CAN communication mode. This step verifies the feasibility of the CAN communication mode through actual communication attempts to ensure the accuracy of the identification results.

[0060] If the information transmission cannot be monitored, it is determined whether the information response of the transfer controller to the target device can be monitored. If the response can be monitored, the transfer controller is controlled to send a set of test data and monitor whether the response request sent by the target device is received. If the response request is received, it is determined that the communication mode of the target battery is the IIC communication mode. This method ensures the correct identification of the IIC communication mode through the verification of two-way communication and increases the reliability of identification.

[0061] If the response cannot be monitored, a communication mode confirmation request of the target battery is sent, and a communication mode designation instruction based on the request is received. Based on the communication mode designation instruction, the communication mode of the target battery is determined. This step ensures the final communication mode identification by requesting confirmation, avoiding omissions and misjudgments.

[0062] The entire technical solution achieves automatic adaptation and conversion of different communication methods and protocols through a process of gradual screening and verification.

[0063] In other words: when no battery is connected, the voltage of all signal lines of the communication interface is equal, which is V1, and V1 is any voltage that does not exceed the VCC of the transfer controller. When a battery is connected, the voltage may change on the communication line. Some communication methods can be identified by the voltage change on the signal line. For example, when a voltage difference of 0.2V or more appears and is always maintained between two signal lines, it can be confirmed that it is 485 communication. When there is a voltage change, but the communication method cannot be directly determined, it is necessary to combine the sending of specific data to determine the communication method. When there is no voltage difference between the two signal lines, but the voltage is not equal to V1 and the voltage does not reach the current transfer controller VCC voltage, the transfer controller sends any CAN data to the outside (for example, a remote frame with a CAN ID of 0x00000010). If the transfer controller receives the remote frame sent by itself, it can be confirmed that it is CAN communication. If the signal line level changes from V1 to VCC voltage, first traverse all device addresses (for example, from 0 to 255) according to the IIC communication format and send them. If an ACK signal is received during the process, it can be confirmed as IIC communication. If no ACK signal is received, it can be considered as serial port (UART) communication. When the communication method cannot be automatically identified, you can also manually specify the communication method in advance.

[0064] Through this method, the system can automatically identify most common communication methods on the market and automatically switch to the corresponding data path.

[0065] Similarly, the "end communication mode identification process" here can also be replaced by: sending a communication mode confirmation request for the target battery, receiving a communication mode designation instruction based on the communication mode confirmation request, and determining the communication mode of the target battery based on the communication mode designation instruction.

[0066] In one example, if Figure 4 As shown, the first data sent by the switching controller and the second data received by the switching controller are monitored; according to the first data and the second data, a plurality of preset known communication protocols are sequentially compared and processed to determine the communication protocol currently used by the target battery, including: monitoring the first data sent by the switching controller and the second data received by the switching controller for a first preset time; performing data analysis on the monitored data for the first preset time, and matching the plurality of preset known communication protocols in sequence according to the data analysis results; judging whether there is a successfully matched known communication protocol, and if there is no successfully matched known communication protocol, executing the step of "sequentially using the plurality of preset known communication protocols to send inspection data to the target battery"; if there is a successfully matched known communication protocol, determining the successfully matched known communication protocol as the communication protocol currently used by the target battery.

[0067] In this example, the first data sent by the switching controller and the second data received are monitored. In this step, by monitoring the communication data, key data in the communication process can be captured, providing a basis for subsequent protocol matching. Next, the first data and the second data are monitored for a first preset time. This step ensures that enough communication data is captured by setting a reasonable monitoring time, thereby improving the accuracy of data analysis, and at the same time ensuring that the entire monitoring time will not be extended indefinitely, avoiding process jams, and ensuring that the system can respond in a timely manner.

[0068] After the monitoring is completed, the monitoring data is analyzed, and multiple preset known communication protocols are matched in sequence according to the data analysis results. This step can quickly and accurately identify the communication protocol currently used by the target battery by comparing and matching the communication protocols in the preset protocol library.

[0069] If no known communication protocol is successfully matched during the matching process, the system will use multiple preset known communication protocols to send inspection data to the target battery in turn. Since the previously used communication protocol failed to match successfully, it is necessary to replace the new preset communication protocol for inspection until all known communication protocols are traversed. This step ensures that all possible communication protocols are fully covered by actively sending inspection data, so as to find the most suitable communication protocol and ensure that no possible communication method is missed. If there is a known communication protocol that is successfully matched, the successfully matched protocol is determined to be the communication protocol currently used by the target battery. This method ensures the accuracy and reliability of the identification process through multi-level monitoring and matching, and avoids misjudgment and omissions.

[0070] In one example, if Figure 5As shown, the plurality of preset known communication protocols are sequentially used to send inspection data to the target battery; the communication protocol currently used by the target battery is determined according to the response of the target battery based on the inspection data, including: judging whether to perform inspection processing on all known communication protocols; if all known communication protocols have been inspected, determining that the communication protocol currently used by the target battery is an unknown communication protocol, and ending the communication protocol identification process; if not all known communication protocols have been inspected, selecting a known communication protocol from the known communication protocols that have not been inspected as the target communication protocol to be inspected, controlling the switching controller to send third data to the target battery based on the target communication protocol, and judging whether the switching controller receives fourth data sent by the target battery in response to the third data; if the switching controller does not receive fourth data, When receiving the fourth data sent by the target battery, it is determined whether the time length from the selection of the target communication protocol to the current moment exceeds the second preset time length; if it does not exceed the second preset time length, the step of "determining whether the switching controller has received the second data sent by the target battery" is continued; if it exceeds the second preset time length, the step of "determining whether all known communication protocols are checked and processed" is continued; if the switching controller receives the fourth data sent by the target battery, it is determined whether the third data and the fourth data meet the requirements of the target communication protocol; if they do not meet the requirements of the target communication protocol, the step of "determining whether all known communication protocols are checked and processed" is continued; if they meet the requirements of the target communication protocol, it is determined that the target communication protocol is the communication protocol currently used by the target battery.

[0071] In this example, multiple preset known communication protocols are used in sequence to send inspection data to the target battery, and the communication protocol currently used by the target battery is determined according to the response of the target battery based on the inspection data. In the specific operation, it is first determined whether all known communication protocols are to be inspected. This step ensures that all possible communication protocols are fully covered to avoid missing any potential matching methods.

[0072] If all known communication protocols have been tested, the communication protocol currently used by the target battery is determined to be an unknown communication protocol, and the communication protocol identification process ends. This step effectively avoids invalid repeated operations and ensures the simplicity and efficiency of the process. If all known communication protocols have not been tested, one of the known communication protocols that have not been tested is selected as the target communication protocol to be tested, and the switching controller is controlled to send the third data to the target battery based on the target communication protocol. This step ensures that all known possibilities are fully covered by trying different communication protocols one by one.

[0073] Next, determine whether the switching controller receives the fourth data sent by the target battery in response to the third data. If the fourth data is not received, determine whether the time length from the selection of the target communication protocol to the current moment exceeds the second preset time length. This step prevents the detection process from being extended indefinitely through time control, thereby improving efficiency. If it does not exceed the second preset time length, continue to monitor whether the switching controller receives the response data of the target battery to ensure that each communication protocol has sufficient opportunity to try. If it exceeds the second preset time length, return to the step of determining whether to perform inspection processing on all known communication protocols to ensure the continuity of the process.

[0074] If the transfer controller receives the fourth data sent by the target battery, it determines whether the third data and the fourth data meet the requirements of the target communication protocol. This step ensures the correctness and reliability of the communication protocol by verifying the matching of the data. If it does not meet the requirements of the target communication protocol, the step of checking and processing all known communication protocols is continued to exclude unmatched protocols. If it meets the requirements of the target communication protocol, it is determined that the target communication protocol is the communication protocol currently used by the target battery, thereby completing the identification process.

[0075] The entire technical solution achieves automatic adaptation and conversion of different communication methods and protocols through a process of gradual detection, verification and matching.

[0076] In summary, this embodiment can automatically identify most common communication methods on the market and automatically switch to the corresponding data path through the combination of physical levels and program logic. In addition, with the help of preset protocol parsing schemes and recognition logic, the system can automatically parse the data of most batteries on the market, reducing the cost and complexity of users' self-conversion. Through these technical means, the compatibility and efficiency of equipment are greatly improved, the technical threshold of users is lowered, and the widespread application and promotion of equipment such as drones and AGVs in battery charging management are promoted.

[0077] In other words, communication protocols can be divided into two categories: active transmission and question-and-answer. Active transmission protocols will autonomously send data at a fixed time, while question-and-answer protocols will respond with corresponding data after receiving specific data. When the communication method is determined, the switching controller first determines whether there is an active transmission protocol in the communication method according to the preset program. If there is an active transmission protocol, the switching controller enters the monitoring mode, at which time it only passively receives data for a duration of T1. T1 is set to no less than the common multiple of the active transmission interval of all known protocols. For example, the transmission frequency of most protocols is between 0.5Hz and 2Hz, so T1 can be set to any value greater than 2 seconds. By monitoring the received data and parsing the active transmission data according to the known protocol, the specific type of protocol can be determined.

[0078] For example, the CAN communication mode has the characteristic of actively sending data. The preset protocol library of the transfer controller contains active data information of each protocol, such as baud rate, CAN ID, data and sending interval. When the communication mode is determined to be CAN, the transfer controller starts to switch its own communication rate and receive CAN data at a fixed time interval T2. If the data is successfully received at a rate of 500KHz, the transfer controller first checks whether the CAN ID of the preset protocol matches. Assuming that it matches "0x1E044414", the data is verified. If it passes, the communication protocol is determined. If the data is successfully received at a rate of 1MHz and the CAN ID matches "0x00000050", it is checked whether the received data matches the fixed value "A1 00 00 00 00 00 0000". If it matches, the communication protocol is determined.

[0079] If the communication protocol cannot be determined after the passive reception time exceeds T1, and the communication method includes a question-and-answer type protocol, the transfer controller will start to actively send data according to the preset program and check whether there is a corresponding response. For example, for a battery that uses 485 or UART communication, the baud rate is 9600, and the transfer controller sends a "monitor 3" command on the 485 bus. If the battery uses this protocol, the response data is "7F 10 02 3B 12 01 00 00 00 10 00 10 A6 0DEB 0D C3 0D B9 0D C2 0D F6 0D EA 0D E5 0D 05 0E E7 0D E5 0D EC 0D 05 0E F4 0DE2 0D E4 0D 00 00 02 11 12 01 11 03 00 78 00 C8 00 C0 E5". After verifying that the data is correct as required by the protocol, the specific protocol can be determined.

[0080] For batteries using IIC communication, the communication rate is 100KHz, and all IIC communications have two attributes: device address and data address. The device address has been successfully identified in the communication method identification. The adapter controller checks whether the device address matches a unique communication protocol through preset data. If the device address corresponds to multiple protocols, the data of the specific data address in each protocol is read in turn. For example, a protocol uses data address 0 to store version number information, while other protocols do not use data address 0. When reading data address 0, only the corresponding battery will respond to the ACK signal according to the IIC standard, and other protocol batteries will respond NACK to determine the specific protocol. For the same data address, the judgment is made based on the data content. For example, some IIC protocols use data addresses 0x4041~0x4046 to represent manufacturer information, and the specific protocol can be determined by reading the data of these data addresses.

[0081] This method combines physical levels and program logic to automatically identify the vast majority of common communication methods and protocols on the market, and automatically switches to the corresponding data path, greatly improving the compatibility and efficiency of equipment, lowering the technical threshold for users, and promoting the widespread application and promotion of battery charging management for equipment such as drones and AGVs.

[0082] Reference Figure 6 This embodiment provides a charging communication conversion device based on an autonomous mobile robot, comprising:

[0083] An identification unit 1 is used to identify the communication mode currently used by the target battery of the autonomous mobile robot, wherein the autonomous mobile robot at least includes: a drone and / or an automatic guided vehicle;

[0084] A first sending unit 2, used for detecting, through the switching controller of the autonomous mobile robot, whether the communication mode currently used by the target battery includes an active sending protocol;

[0085] A second sending unit 3 is used for monitoring the first data sent by the switching controller and the second data received by the switching controller if the communication mode currently used by the target battery includes an active transmission type protocol;

[0086] A comparison unit 4 is used to compare a plurality of preset known communication protocols in sequence according to the first data and the second data to determine the communication protocol currently used by the target battery;

[0087] A sending unit 5, configured to use the plurality of preset known communication protocols in sequence to send inspection data to the target battery if the communication mode currently used by the target battery does not include an active sending protocol;

[0088] A determination unit 6, configured to determine a communication protocol currently used by the target battery according to a response of the target battery based on the inspection data;

[0089] The control unit 7 is used to control the switching controller to establish a communication link with the target battery according to the communication mode and communication protocol currently used by the determined target battery.

[0090] In this embodiment, for the specific implementation of each unit in the above device embodiment, please refer to the above method embodiment, which will not be repeated here.

[0091] A computer device is also provided in an embodiment of the present invention. The computer device may be a server, and the computer device includes a processor, a memory, a display screen, an input device, a network interface, and a database connected via a system bus. The processor of the computer design 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 to store the corresponding data in this embodiment. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the above method is implemented.

[0092] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.

[0093] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed 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 provided by the present invention and used in the embodiments 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. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), 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.

[0094] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0095] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A charging communication conversion method based on an autonomous mobile robot, characterized in that: The following steps are involved: Identify the communication mode currently used by the target battery of the autonomous mobile robot, wherein the autonomous mobile robot at least includes: a drone and / or an automatic guided vehicle; identify the communication mode currently used by the target battery of the autonomous mobile robot, including: when the switching controller is connected to the target battery, determine whether all preset communication modes have been tested for the target battery; if there is no untested preset communication mode, end the communication mode identification process; if there is an untested preset communication mode, select a preset communication mode from the untested preset communication modes as the target communication mode to be tested, and detect the level state of the signal line of the communication interface; determine whether the level state conforms to the preset level state of the signal line after the target communication mode is successfully connected to the device; if it conforms, determine that the target communication mode is the communication mode currently used by the target battery, if it does not conform, send specific identification data according to the target communication mode to determine whether the switching controller has a device successfully connected; if the switching controller has a device successfully connected, determine that the target communication mode is the communication mode currently used by the target battery, if the switching controller has no device successfully connected, continue to execute the step of "determining whether all communication modes have been tested for the target battery"; Detecting, by means of the transfer controller of the autonomous mobile robot, whether the communication mode currently used by the target battery includes an active sending protocol; If the communication mode currently used by the target battery includes an active transmission type protocol, monitoring the first data sent by the switching controller and the second data received by the switching controller; According to the first data and the second data, a plurality of preset known communication protocols are sequentially compared to determine the communication protocol currently used by the target battery; If the communication mode currently used by the target battery does not include an active transmission type protocol, then using the plurality of preset known communication protocols in sequence to send inspection data to the target battery; Determining a communication protocol currently used by the target battery according to a response of the target battery based on the inspection data; According to the communication mode and communication protocol currently used by the determined target battery, the switching controller is controlled to establish a communication link with the target battery.

2. The communication conversion method according to claim 1, characterized in that: Before identifying the communication mode currently used by the target battery of the autonomous mobile robot, the communication conversion method further includes: Acquiring communication parameter data of the switching controller and communication parameter data of the target battery; Based on the communication parameter data of the adapter controller and the communication parameter data of the target battery, determining whether the communication mode and communication protocol of the adapter controller and the target battery match; If the communication mode and communication protocol of the transfer controller match those of the target battery, the communication link is performed using the communication mode and communication protocol that match between the transfer controller and the target battery; If the communication mode and communication protocol of the transfer controller do not match those of the target battery, the step of "identifying the communication mode currently used by the target battery" is executed.

3. The communication conversion method according to claim 1, characterized in that: Alternatively, identifying the communication mode currently used by the target battery of the autonomous mobile robot comprises: When the transfer controller is connected to the target battery, determining whether a level change of a signal line of a communication interface is caused; If the level of the signal line of the communication interface is changed, it is detected whether the level change of the signal line meets the preset level change standard for the adapter controller to access the target battery. If the preset level change standard is met, it is determined that the communication mode of the target battery is 485 communication mode. If the preset level change standard is not met, the communication mode identification process is terminated; If the level of the signal line of the communication interface is not changed, it is determined whether the information transmission of the transfer controller to the target device can be monitored. If the information transmission of the transfer controller to the target device can be monitored, the transfer controller is controlled to send a set of monitoring data, and the monitoring data is monitored whether it is successfully sent. If so, it is determined that the communication mode of the target battery is the CAN communication mode. If not, the communication mode identification process is terminated. If it is not possible to monitor the information transmission of the transfer controller to the target device, determine whether it is possible to monitor the information response of the transfer controller to the target device; if it is possible to monitor the information response of the transfer controller to the target device, control the transfer controller to send a set of test data, and monitor whether the transfer controller receives the response request sent by the target device; if so, determine that the communication mode of the target battery is the IIC communication mode; If the information response of the switching controller to the target device cannot be monitored, a communication mode confirmation request of the target battery is sent, and a communication mode specifying instruction based on the feedback of the communication mode confirmation request is received, and the communication mode of the target battery is determined based on the communication mode specifying instruction.

4. The communication conversion method according to claim 1, characterized in that: monitoring first data sent by the switching controller and second data received by the switching controller; According to the first data and the second data, a plurality of preset known communication protocols are sequentially compared to determine the communication protocol currently used by the target battery, including: Monitoring the first data sent by the switching controller and the second data received by the switching controller for a first preset time period; Performing data analysis on the monitoring data of the first preset duration, and matching the plurality of preset known communication protocols in sequence according to the data analysis result; Determine whether there is a successfully matched known communication protocol, and if there is no successfully matched known communication protocol, execute the step of "sequentially using the plurality of preset known communication protocols to send inspection data to the target battery"; If there is a known communication protocol that is successfully matched, the known communication protocol that is successfully matched is determined to be the communication protocol currently used by the target battery.

5. The communication conversion method according to claim 1, characterized in that: sequentially using the plurality of preset known communication protocols to send inspection data to the target battery; Determining the communication protocol currently used by the target battery according to the response of the target battery based on the inspection data includes: Determine whether to perform inspection processing on all known communication protocols; If all known communication protocols have been verified, it is determined that the communication protocol currently used by the target battery is an unknown communication protocol, and the communication protocol identification process ends; If all known communication protocols have not been tested, then a known communication protocol is selected from the known communication protocols that have not been tested as a target communication protocol to be tested, the switching controller is controlled to send third data to the target battery based on the target communication protocol, and it is determined whether the switching controller receives fourth data sent by the target battery in response to the third data; If the transfer controller does not receive the fourth data sent by the target battery, it is determined whether the time length from the selection of the target communication protocol to the current moment exceeds the second preset time length, if it does not exceed the second preset time length, the step of "determining whether the transfer controller receives the second data sent by the target battery" is continued, if it exceeds the second preset time length, the step of "determining whether to perform inspection processing on all known communication protocols" is continued; If the conversion controller receives the fourth data sent by the target battery, it determines whether the third data and the fourth data meet the requirements of the target communication protocol; if they do not meet the requirements of the target communication protocol, it continues to execute the step of "determining whether to verify all known communication protocols"; if they meet the requirements of the target communication protocol, it is determined that the target communication protocol is the communication protocol currently used by the target battery.

6. A charging communication conversion device based on an autonomous mobile robot, characterized in that: include: an identification unit, configured to identify a communication mode currently used by a target battery of the autonomous mobile robot, wherein the autonomous mobile robot comprises at least: a drone and / or an automatic guided vehicle; a first sending unit, configured to detect, through the switching controller of the autonomous mobile robot, whether the communication mode currently used by the target battery includes an active sending protocol; identifying the communication mode currently used by the target battery of the autonomous mobile robot, including: when the switching controller is connected to the target battery, determining whether all preset communication modes have been tested for the target battery; if there is no untested preset communication mode, ending the communication mode identification process; if there is an untested preset communication mode, selecting a preset communication mode from the untested preset communication modes as the target communication mode to be tested, and detecting the level state of the signal line of the communication interface; determining whether the level state conforms to the preset level state of the signal line after the target communication mode is successfully connected to the device; if it conforms, determining that the target communication mode is the communication mode currently used by the target battery; if it does not conform, sending specific identification data according to the target communication mode to determine whether the switching controller has a device successfully connected; if the switching controller has a device successfully connected, determining that the target communication mode is the communication mode currently used by the target battery; if the switching controller has no device successfully connected, continuing to execute the step of "determining whether all communication modes have been tested for the target battery"; A second sending unit, configured to monitor the first data sent by the switching controller and the second data received by the switching controller if the communication mode currently used by the target battery includes an active sending protocol; a comparing unit, configured to compare a plurality of preset known communication protocols in sequence according to the first data and the second data, so as to determine the communication protocol currently used by the target battery; A sending unit, configured to use the plurality of preset known communication protocols in sequence to send inspection data to the target battery if the communication mode currently used by the target battery does not include an active sending protocol; a determining unit, configured to determine a communication protocol currently used by the target battery according to a response of the target battery based on the inspection data; The control unit is used to control the switching controller to establish a communication link with the target battery according to the communication mode and communication protocol currently used by the determined target battery.

7. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.