Handle calibration method, electronic equipment and computer readable storage medium

By identifying and modifying the identity identification of the mechanical equipment handle, and using the data packet transmission and calibration setting interface, the existing handle calibration methods are solved, and an efficient and low-cost calibration process is realized, which facilitates the flexible replacement of the handle identity identification.

CN120277350APending Publication Date: 2025-07-08HUNAN ZOOMLINE CRAWLER CRANE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510215877.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-26
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

The existing handle calibration methods are low in efficiency and reliability, high in cost, and it is difficult to achieve convenient and accurate calibration.

Method used

By obtaining the processing data packets of the handle in the mechanical device, identifying the identity identity of the target handle, and sending calibration instructions based on the identity identity, modifying its identity identity, using the CAN bus and wireless local area network for data transmission, combining the calibration setting interface and preset correspondence relationship, ensuring the accuracy and flexibility of the calibration process.

Benefits of technology

It realizes the convenience and accuracy of handle calibration, improves calibration efficiency and reliability, reduces calibration costs, and supports flexible replacement of handle identity marks, which facilitates emergency use and diagnostic maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120277350A_ABST
    Figure CN120277350A_ABST
Patent Text Reader

Abstract

The invention discloses a handle calibration method, electronic equipment and a computer readable storage medium. The method comprises the steps that a to-be-calibrated target handle in mechanical equipment is determined; acquiring a processing data packet periodically reported by at least one handle in the mechanical equipment, wherein the processing data packet comprises an identity label and state data of the handle; according to the state data in the processing data packet reported by the at least one handle, determining an identity label of the target handle from the target processing data packet reported by the target handle; and sending a calibration instruction to the target handle based on the identity label of the target handle so as to indicate the target handle to modify the identity label into a target identity label carried in the calibration instruction. Therefore, the handle can be calibrated conveniently and accurately, the calibration efficiency and reliability are improved, and the calibration cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of construction machinery, and particularly to a calibration method for a handle, an electronic device, and a computer-readable storage medium. Background Art

[0002] A mechanical device such as a crane may be equipped with multiple handles of the same model. Different handles are used to achieve different control functions. For example, Figure 1 As shown, the left handle, the first right handle, and the second right handle achieve different control functions. In addition, usually different handles need to be connected to the same network, so different handles need to be calibrated with different identity identifiers. However, the existing calibration methods for handles have problems such as low calibration efficiency and reliability, and high calibration costs. Summary of the Invention

[0003] The purpose of the present application is to provide a calibration method for a handle, an electronic device, and a computer-readable storage medium, which can conveniently and accurately calibrate the handle, improve the calibration efficiency and reliability, and reduce the calibration cost.

[0004] To achieve the above object:

[0005] In a first aspect, an embodiment of the present application provides a calibration method for a handle, including:

[0006] Determine a target handle to be calibrated in the mechanical device;

[0007] Obtain processing data packets periodically reported by at least one handle in the mechanical device, where the processing data packets include the identity identifier and status data of the handle;

[0008] Determine the identity identifier of the target handle from the target processing data packet reported by the target handle according to the status data in the processing data packets reported by the at least one handle;

[0009] Send a calibration instruction to the target handle based on the identity identifier of the target handle to instruct the target handle to modify the identity identifier to the target identity identifier carried in the calibration instruction.

[0010] Optionally, the determining a target handle to be calibrated in the mechanical device includes:

[0011] Display a calibration setting interface;

[0012] Determine a target handle to be calibrated in the mechanical device according to the calibration information input or selected in the calibration setting interface.

[0013] Optionally, the calibration information includes the target identity identifier.

[0014] Optionally, determining the identity identifier of the target handle from the target processing data packet reported by the target handle according to the status data in the processing data packets reported by the at least one handle respectively includes:

[0015] Comparing the status data in the processing data packets reported by the at least one handle respectively, and determining the processing data packet with different status data as the target processing data packet reported by the target handle;

[0016] Determining the identity identifier in the target processing data packet as the identity identifier of the target handle.

[0017] Optionally, before obtaining the processing data packets periodically reported by all the handles in the mechanical equipment respectively, it includes:

[0018] Determining and outputting a calibration prompt message for the target handle, where the calibration prompt message is used to prompt the trigger operation to be performed on the target handle;

[0019] Determining the identity identifier of the target handle from the target processing data packet reported by the target handle according to the status data in the processing data packets reported by the at least one handle respectively includes:

[0020] Determining the expected value corresponding to the status data of the target handle according to the calibration prompt message for the target handle;

[0021] Determining the identity identifier in the target processing data packet corresponding to the status data that matches the expected value as the identity identifier of the target handle according to the status data in the processing data packets reported by the at least one handle respectively and the expected value.

[0022] Optionally, before sending a calibration instruction to the target handle based on the identity identifier of the target handle to instruct the target handle to modify the identity identifier to the target identity identifier carried in the calibration instruction, it includes:

[0023] Determining the target identity identifier corresponding to the target handle according to the preset correspondence between different handles and the identity identifiers to be calibrated.

[0024] Optionally, obtaining the processing data packets periodically reported by at least one handle in the mechanical equipment respectively includes:

[0025] Timing reading the processing data packets periodically reported by at least one handle in the mechanical equipment from the CAN bus.

[0026] Optionally, before sending a calibration instruction to the target handle based on the identity identifier of the target handle to instruct the target handle to modify the identity identifier to the target identity identifier carried in the calibration instruction, it includes:

[0027] When it is determined, according to the identity identifier in the processing data packet respectively reported by the at least one handle, that there is at least one other handle with the same identity identifier as that of the target handle, an alert message is output to prompt to disconnect the communication connection between the other handle and the CAN bus until no other processing data packet with the identity identifier of the target handle is detected.

[0028] In a second aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory storing a computer program. When the computer program runs on the processor, the calibration method of the above-mentioned handle is implemented.

[0029] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the calibration method of the above-mentioned handle is implemented.

[0030] The calibration method, electronic device and computer-readable storage medium of the handle provided by the embodiments of the present application, the method includes: determining a target handle to be calibrated in a mechanical device; obtaining processing data packets respectively and periodically reported by at least one handle in the mechanical device, the processing data packet includes the identity identifier and status data of the handle; determining the identity identifier of the target handle from the target processing data packet reported by the target handle according to the status data in the processing data packets respectively reported by the at least one handle; sending a calibration instruction to the target handle based on the identity identifier of the target handle to instruct the target handle to modify the identity identifier to the target identity identifier carried in the calibration instruction. In this way, after determining the target handle to be calibrated, the identity identifier of the target handle is determined according to the processing data packets reported by at least one handle, and then the target handle is calibrated based on the identity identifier of the target handle, which can realize convenient and accurate calibration of the handle, improve the calibration efficiency and reliability, and reduce the calibration cost. In addition, the identity identifier of the handle at different positions can be conveniently replaced for emergency use or diagnostic maintenance, improving the use flexibility. Description of the Drawings

[0031] Figure 1 It is a schematic diagram of the distribution of the handles;

[0032] Figure 2 It is a schematic flowchart of the calibration method of the handle provided by the embodiment of the present invention;

[0033] Figure 3 It is a schematic architecture diagram of the calibration system of the handle provided by the embodiment of the present invention Figure 1 ;

[0034] Figure 4 It is a schematic architecture diagram of the calibration system of the handle provided by the embodiment of the present invention Figure 2 ;

[0035] Figure 5 This is a schematic structural diagram of the electronic device provided by the embodiment of the present invention. Detailed implementation manners

[0036] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all the implementation manners consistent with the present application. On the contrary, they are merely examples of the devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0037] It should be noted that in this article, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of another identical element in the process, method, article or device including that element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined based on their explanations in the specific embodiment or further in combination with the context of the specific embodiment.

[0038] It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this document, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to determining". Furthermore, as used herein, the singular forms "a", "an", and "the" are also intended to include the plural forms unless the context indicates otherwise. It should be further understood that the terms "comprising", "including" indicate the presence of the stated features, steps, operations, elements, components, items, kinds, and / or groups, but do not preclude the presence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, kinds, and / or groups. The terms "or" and "and / or" as used herein are interpreted inclusively, or mean any one or any combination. Thus, "A, B, or C" or "A, B, and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B, and C". An exception to this definition occurs only when the combination of elements, functions, steps, or operations is inherently mutually exclusive in some way.

[0039] It should be understood that although the steps in the flowcharts in the embodiments of this application are shown sequentially in the direction of the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear indication in this document, the execution of these steps is not strictly limited in order and may be executed in other orders. Moreover, at least some of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and their execution order is not necessarily sequential, but may be executed alternately or in turn with at least some of the sub-steps or stages of other steps.

[0040] It should be noted that in this document, step codes such as S101, S102, etc. are used. The purpose is to more clearly and briefly express the corresponding content and do not constitute a substantial limitation in order. Those skilled in the art may execute S102 first and then S101, etc. during specific implementation, but these should all be within the protection scope of this application.

[0041] It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit this application.

[0042] In the following description, suffixes such as "module", "component", or "unit" used to denote components are only for the convenience of explaining the present application, and have no specific meaning in themselves. Therefore, "module", "component", or "unit" can be used interchangeably.

[0043] Refer to Figure 2 , which is a calibration method for a handle provided by an embodiment of the present application. The calibration method of the handle can be executed by a calibration device for a handle provided by an embodiment of the present application. The calibration device for the handle can be implemented in a software and / or hardware manner, such as an electronic device like a computer or a processor. In this embodiment, taking the execution entity of the calibration method of the handle as an electronic device as an example, the calibration method for the handle provided by this embodiment includes:

[0044] Step S101: Determine the target handle to be calibrated in the mechanical equipment.

[0045] Among them, the mechanical equipment can be set according to actual needs, and can specifically be engineering vehicles such as cranes and mine cars, which are not specifically limited here. The target handle is the handle for which the identity identification needs to be calibrated. In one embodiment, when each handle in the mechanical equipment needs to be calibrated one by one, the electronic device determines the target handle to be calibrated in the mechanical equipment by selecting the corresponding handle as the target handle to be calibrated according to a preset order. For example, if the mechanical equipment includes a left handle, a first right handle, and a second right handle from left to right in sequence, then according to the order from left to right, the left handle can be selected as the target handle first, and after calibrating the left handle, the first right handle can be selected as the target handle, and then after calibrating the first right handle, the second right handle can be selected as the target handle, and so on.

[0046] In one embodiment, determining the target handle to be calibrated in the mechanical equipment includes:

[0047] Display the calibration setting interface;

[0048] Determine the target handle to be calibrated in the mechanical equipment according to the calibration information input or selected in the calibration setting interface.

[0049] Among them, the calibration setting interface is an interface for performing operations such as setting the target handle to be calibrated, and the calibration information is used to indicate the calibration-related information input or selected through the calibration setting interface. The user can input calibration information such as the handle to be calibrated on the calibration setting interface, and the electronic device correspondingly determines the target handle to be calibrated in the mechanical equipment according to the calibration information input on the calibration setting interface. When the calibration setting interface provides selection options for handles at different positions of the mechanical equipment, such as when the calibration setting interface displays selection boxes for all handles of the mechanical equipment, the user can select the handle to be calibrated on the calibration setting interface, etc., and the electronic device correspondingly determines the target handle to be calibrated in the mechanical equipment according to the calibration information selected on the calibration setting interface. For example, assuming that the calibration setting interface displays selection options for the left handle, the first right handle, and the second right handle of the mechanical equipment, if the user clicks on the selection option of the left handle, the electronic device determines the left handle as the target handle to be calibrated. In this way, it is convenient for the user to confirm the handle to be calibrated based on the needs, improving the flexibility and accuracy of handle calibration.

[0050] Step S102: Obtain the processing data packets periodically reported by at least one handle in the mechanical equipment, where the processing data packets include the identity identifier and status data of the handle.

[0051] Among them, at least one handle in the mechanical equipment can be a handle that can communicate with the CAN bus. When all the handles in the mechanical equipment can communicate with the CAN bus, each handle will periodically upload its respective processing data packet to the CAN bus. Correspondingly, the electronic device can obtain the processing data packets periodically reported by at least one handle in the mechanical equipment from the CAN bus, and the processing data packet includes the identity identifier and status data of the handle. In addition, when the handle in the mechanical equipment has a wireless communication function, the handle in the mechanical equipment can also access the same wireless local area network and periodically report the processing data packet to the gateway device corresponding to the accessed wireless local area network. Correspondingly, the electronic device can obtain the processing data packets periodically reported by each handle from the gateway device. Among them, the handle is used to operate and control the functions of the mechanical equipment. For different mechanical equipment, the number of handles it contains and the functions of each handle can be different. Taking the mechanical equipment as a crane as an example, the handles of the crane can include a slewing handle, a luffing handle, a telescoping handle, etc., which are not specifically limited here. The identity identifier of the handle is used to uniquely identify the identity of the handle, and specifically can be a network identifier, etc. The status data of the handle is used to characterize whether the handle has received a trigger operation, etc., such as whether the key switch is turned on, whether an operation in the first position direction is received, etc. It should be noted that the length of the status data can include multiple bytes, and each byte can represent different trigger states or functions of the handle. Among them, after the electronic device determines the target handle to be calibrated, the operator will perform a trigger operation on the target handle to change the status data of the target handle, that is, to make the status data of the target handle different from the status data of other handles.

[0052] In one embodiment, obtaining the processing data packets periodically reported by at least one handle in the mechanical equipment includes:

[0053] Timely reading from the CAN bus the processing data packets periodically reported by at least one handle in the mechanical equipment.

[0054] Among them, when both the electronic device and the handle in the mechanical equipment are connected to the CAN bus network, if the handles in the mechanical equipment periodically report their respective processing data packets to the CAN bus, the electronic device can timely read from the CAN bus the processing data packets periodically reported by at least one handle in the mechanical equipment. In this way, it is possible to accurately and timely obtain the processing data packets reported by the handle, improving the calibration efficiency and reliability.

[0055] Step S103: Determine the identity identifier of the target handle from the target processing data packet reported by the target handle according to the status data in the processing data packets reported by at least one handle.

[0056] It can be understood that after determining the target handle to be calibrated in the mechanical equipment, the user will perform a triggering operation on the target handle and will not perform a triggering operation on other handles except the target handle, so that the status data reported by the target handle will be different from the status data reported by other handles. Therefore, the target processing packet reported by the target handle can be determined according to the status data in the processing packets reported by at least one handle, and then the identity identifier of the target handle can be determined according to the target processing packet reported by the target handle.

[0057] In one embodiment, determining the identity identifier of the target handle from the target processing packet reported by the target handle according to the status data in the processing packets reported by at least one handle includes:

[0058] Comparing the status data in the processing packets reported by at least one handle, and determining the processing packet with different status data as the target processing packet reported by the target handle;

[0059] Determining the identity identifier in the target processing packet as the identity identifier of the target handle.

[0060] Among them, when the user knows or defaults to the triggering operation to be performed on the target handle, and the status data of each handle is the same when the corresponding handle is not triggered, if other handles are not accidentally triggered when performing the triggering operation on the target handle, after obtaining the processing packets reported by at least one handle, the status data in the processing packets reported by at least one handle can be directly compared, and the processing packet with different status data can be determined as the target processing packet reported by the target handle, and then the identity identifier in the target processing packet can be determined as the identity identifier of the target handle. In this way, the identity identifier of the target handle can be determined quickly and accurately, which is convenient for subsequent calibration of the handle, and at the same time, the calibration efficiency and reliability are further improved.

[0061] In one embodiment, before obtaining the processing packets reported periodically by all handles in the mechanical equipment, it includes:

[0062] Determining and outputting a calibration prompt message for the target handle, where the calibration prompt message is used to prompt the triggering operation to be performed on the target handle;

[0063] Determining the identity identifier of the target handle from the target processing packet reported by the target handle according to the status data in the processing packets reported by at least one handle includes:

[0064] Determining the expected value corresponding to the status data of the target handle according to the calibration prompt message for the target handle;

[0065] Based on the status data and expected values in the processed data packets reported by at least one handle respectively, determine the identity identifier in the target processed data packet corresponding to the status data that matches the expected value as the identity identifier of the target handle.

[0066] Among them, when it is necessary to indicate the trigger operation that the operator needs to perform on the target handle, the electronic device can determine and output a calibration prompt message for the target handle. The calibration prompt message is used to prompt the trigger operation that needs to be performed on the target handle, and can specifically be prompted in the form of text and / or pictures. For example, the electronic device can use the pressing operation on the default button or switch of the target handle as the trigger operation that needs to be performed on the target handle, and output a calibration prompt message for pressing the default button or switch of the target handle. The trigger operation performed on the target handle can be a pressing operation on the switch of the target handle, or a moving operation of the target handle in a specific direction, etc., which is not specifically limited here.

[0067] It can be understood that when the trigger operation performed on the target handle is known, the expected value corresponding to the status data of the target handle can be determined. The expected value corresponding to the status data of the target handle can refer to the specific value corresponding to each byte in the status data of the target handle, or the specific value corresponding to a certain byte in the status data of the target handle. Exemplarily, when the status data of the target handle includes 3 bytes, and the value of the 3rd byte corresponds to the switch of the target handle, that is, when the switch of the target handle is in the on state, the value of the 3rd byte is 11, and when the switch of the target handle is in the off state, the value of the 3rd byte is 00. If the calibration prompt message indicates that a trigger operation needs to be performed on the switch of the target handle to turn on the switch of the target handle, it can be determined that the value of the 3rd byte in the status data of the target handle should be 11. When the status data of each handle is the same when the corresponding handle is not performing the trigger operation, by comparing the status data in the processed data packets reported by at least one handle with the expected values, the target processed data packet corresponding to the status data that matches the expected value can be determined, and then the identity identifier in the target processed data packet can be determined as the identity identifier of the target handle. For example, continuing the above example, by comparing the value of the 3rd byte in the status data of each processed data packet with the expected value, the target processed data packet corresponding to the value of the 3rd byte in the status data being the expected value can be determined, and then the identity identifier in the target processed data packet can be determined as the identity identifier of the target handle. In this way, the identity identifier of the target handle can be determined quickly and accurately, which is convenient for subsequent calibration of the handle, and at the same time further improves the calibration efficiency and reliability.

[0068] Step S104: Send a calibration instruction to the target handle based on the identity identifier of the target handle to instruct the target handle to modify the identity identifier to the target identity identifier carried in the calibration instruction.

[0069] Among them, when the identity identifier of the target handle is known, the electronic device can send a calibration instruction to the target handle based on the identity identifier of the target handle to instruct the target handle to modify its own identity identifier to the target identity identifier carried in the calibration instruction. It should be noted that the calibration instruction may include the identity identifier of the target handle for indicating the receiving object and the calibration content for indicating the calibration operation, and the calibration content includes the target identity identifier. Among them, the electronic device can report the calibration instruction to the CAN bus so that the target handle can obtain the calibration instruction from the CAN bus. After receiving the calibration instruction, the target handle will modify its own identity identifier to the target identity identifier in the calibration content.

[0070] Among them, the target identity identifier can be input by the user through the calibration setting interface. In one embodiment, the calibration information may include the target identity identifier, that is, when the user determines the target handle to be calibrated, the target identity identifier can be set. In this way, the identity identifier of the handle can be flexibly set based on requirements.

[0071] In one embodiment, before sending a calibration instruction to the target handle based on the identity identifier of the target handle to instruct the target handle to modify its identity identifier to the target identity identifier carried in the calibration instruction, it includes: determining the target identity identifier corresponding to the target handle according to the preset correspondence between different handles and the identity identifiers to be calibrated.

[0072] Among them, the electronic device can store the preset correspondence between different handles and the identity identifiers to be calibrated locally or in the cloud. After determining the target handle, the target identity identifier corresponding to the target handle can be determined by looking up the preset correspondence between different handles and the identity identifiers to be calibrated. The identity identifier to be calibrated corresponding to the handle refers to the identity identifier that the handle needs to be calibrated. For example, assuming that the mechanical equipment includes a left handle, a right handle one, and a right handle two from left to right in sequence, the identity identifier to be calibrated corresponding to the left handle can be preset as 0A, the identity identifier to be calibrated corresponding to the right handle one can be preset as 0B, and the identity identifier to be calibrated corresponding to the right handle two can be preset as 0C, etc. In this way, by querying the correspondence between different handles and the identity identifiers to be calibrated, the target identity identifier corresponding to the target handle is determined, and the identity identifier that the handle needs to be calibrated is accurately obtained.

[0073] In one embodiment, before sending a calibration instruction to the target handle based on the identity identifier of the target handle to instruct the target handle to modify its identity identifier to the target identity identifier carried in the calibration instruction, it includes:

[0074] When it is determined that there is at least one other handle with the same identity identifier as the target handle according to the identity identifiers in the processing data packets reported by at least one handle respectively, a reminder message is output to prompt to disconnect the communication connection between the other handle and the CAN bus until no other processing data packets with the identity identifier of the target handle are detected.

[0075] Among them, according to the identity identifiers in the processing data packets reported by at least one handle respectively, it can be judged whether the identity identifiers in each processing data packet are the same. If it is detected that the identity identifier in other processing data packets is the same as the identity identifier of the target handle, that is, it is determined that there is at least one other handle with the same identity identifier as the target handle, then a reminder message is output to prompt to disconnect the communication connection between the other handle and the CAN bus, and continue to periodically read the processing data packets reported by at least one handle in the mechanical equipment from the CAN bus until no other processing data packets with the identity identifier of the target handle are detected.

[0076] It can be understood that in the case where some or all of the handles of the mechanical equipment are produced by the same manufacturer, the identity identifiers of some or all of the handles corresponding to the mechanical equipment may be the same. Therefore, when initially calibrating the handles of the mechanical equipment, there may be processing data packets containing the same identity identifier in the processing data packets reported by at least one handle respectively. At this time, the operator needs to be prompted to disconnect the communication connection between the other handles except the target handle and the CAN bus, so that the other handles do not report processing data packets to the electronic device through the CAN bus until no other processing data packets with the identity identifier of the target handle are detected, that is, until the identity identifier of the target handle is unique among all the obtained processing data packets. Among them, the reminder message can be output in the form of text and / or pictures on the screen, or in the form of sound or light. It should be noted that only by ensuring that the identity identifier of the target handle is unique among all the obtained processing data packets can it be ensured that the calibration instruction sent by the electronic device to the target handle can be obtained by the target handle, otherwise the calibration instruction may be obtained by other handles. In this way, through the detection and processing of the handles with the same identity identifier, it is ensured that the identity identifier of the handle to be calibrated is unique, so as to ensure the correct calibration of the handle, and further improve the calibration efficiency and accuracy.

[0077] In summary, in the handle calibration method provided by the above embodiment, after determining the target handle to be calibrated, the identity identifier of the target handle is determined according to the processing data packets reported by at least one handle, and then the target handle is calibrated based on the identity identifier of the target handle, which can realize convenient and accurate calibration of the handle, improve the calibration efficiency and reliability at the same time, and reduce the calibration cost. In addition, the identity identifiers of the handles in different positions can be conveniently replaced for emergency use or diagnostic maintenance, improving the use flexibility.

[0078] Based on the same inventive concept as the foregoing embodiments, the method provided by the foregoing embodiments will be illustrated by a specific example below. In this example, the identity identifier is the network ID, the electronic device is the control computer, and the calibration instruction is the modify ID instruction.

[0079] Referring to Figure 3 , the calibration system of the handle provided in this embodiment includes a handle and a control computer communicatively connected to each handle via a CAN bus. CAN communication modules are respectively provided in the handle and the control computer. The CAN bus connects multiple handles of the same model to the control computer. The CAN communication module in the handle collects the operation instructions of the handle, such as the handle switch state, the front-back, left-right operation positions, etc.

[0080] Based on the above handle calibration system, the working process of the handle calibration method provided in this embodiment is as follows:

[0081] 1) The control computer provides a calibration setting interface, and the user selects the handle to be calibrated on the calibration setting interface;

[0082] 2) Each handle periodically sends a process data packet (PDO) to the CAN bus. The process data packet is generally used to send data objects during communication. The process data packet includes the network ID (which can also be simply referred to as ID) and status data of the handle. Among them, the PDO content can be seen in Table 1.

[0083] Table 1

[0084]

[0085] Examples of the PDO data sent by each handle are as follows:

[0086] PDO sent by the left handle: 0x18m, 8, D0, D1, D2, D3, D4, D5, D6, D7;

[0087] PDO sent by the first right handle: 0x18m + 1, 8, A0, A1, A2, A3, A4, A5, A6, A7;

[0088] PDO sent by the Nth right handle: 0x18m + n, 8, B0, B1, B2, B3, B4, B5, B6, B7. Where n is the total number of right handles.

[0089] 3) The control computer receives the PDO data sent by each handle, decodes and judges the PDO data to identify the network ID of the handle to be calibrated.

[0090] 4) The control computer sends corresponding calibration instructions to the handle according to the network ID of the handle to be calibrated as needed, so as to calibrate the network ID of the handle to the preset network ID. After calibrating one handle, the calibration operation of the next handle is carried out.

[0091] The following specifically uses two application scenarios to specifically illustrate the calibration method of the handle provided in this example.

[0092] Application scenario 1: The network IDs of all handles are different

[0093] Continue to refer to Figure 3 , for the left handle calibration: After determining on the control computer that the left handle needs to be calibrated, the operator presses the micro switch on the left handle and does not operate on other handles, that is, does not press any switches on other handles; the control computer obtains all PDO data on the CAN bus as follows:

[0094] (1) 0x181, 8, 0, 0, 0, 0, 0, 0, 0, 0

[0095] (2) 0x182, 8, 0, 0, 0, 0, 0, 0, 0, 0

[0096] (3) 0x183, 8, 0, 0, 1, 0, 0, 0, 0, 0

[0097] ……

[0098] (n) 0x18n, 8, 0, 0, 0, 0, 0, 0, 0, 0

[0099] The control computer analyzes the PDO data sent by all handles and finds that only the data in serial number (3) has D2 = 1, which conforms to the operated left handle. It can be determined that the current network ID of the left handle is 3 (0x180 + 3).

[0100] Then, the control computer can send a modify ID instruction for the handle with network ID 3. For example, it can send a service data packet (SDO, Service Data Object) to the handle. The service data packet can include the modify ID instruction, and the specific format is (180 + nodeId 8 2B 01 20 00 nodeId_L nodeId_H 0000). For example, the control computer sends a PDO1 data packet with the content of 0x183, 8, 2B, 01, 20, 00, 0F, 00, 00, 00 to modify the network ID of the handle from 3 to 0F. In addition, the control computer can also send a PDO2 data packet with the content of 0x183, 8, 22, 10, 10, 01, 73, 61, 76, 65 to instruct the handle to save the network ID.

[0101] Calibration for the first right handle: After determining on the control computer that the first right handle needs to be calibrated, the operator presses the micro switch on the first right handle and does not operate other handles, that is, does not press any switches on other handles; the control computer obtains all the PDO data on the CAN bus through the CAN bus as follows:

[0102] (1)0x181,8,0,0,0,0,0,0,0,0

[0103] (2)0x182,8,0,0,2,0,0,0,0,0

[0104] (3)0x183,8,0,0,0,0,0,0,0,0

[0105] ……

[0106] (n)0x18n,8,0,0,0,0,0,0,0,0

[0107] The control computer analyzes the PDO data sent by all handles and finds that only in the data of serial number (2) among the above data, D2 = 2 matches the operated first right handle 1, so it can be determined that the current network ID of the first right handle 1 is 2 (0x180 + 2).

[0108] Next, the control computer can send a modify ID instruction for the handle with network ID 2. For example, the control computer sends a PDO1 data packet with the content of 0x182,8,2B,01,20,00,0E,00,00,00 to modify the network ID of this handle from 2 to 0E. In addition, the control computer can also send a PDO2 data packet with the content of 0x182,8,22,10,10,01,73,61,76,65 to instruct the handle to save the network ID.

[0109] The network ID calibration of other handles follows the same pattern, and the intelligent calibration of the handles at the installation positions is completed according to the above steps. When calibrating each specific handle, the operator presses the unique switch on the handle, or performs an operation with a specific identifier, such as pulling the handle forward, backward, left, or right. As long as the operation corresponding to the installation position is different from that of other installation positions, the control computer can identify the installation position of the handle.

[0110] Application scenario 2: The network IDs of some or all handles are the same

[0111] Refer to Figure 4 , when the network IDs of all handles are the same, for the calibration of the first right handle: After determining on the control computer that the first right handle needs to be calibrated, the operator presses the micro switch on the first right handle and does not operate other handles, that is, does not press any switches on other handles; the control computer obtains all the PDO data on the CAN bus as follows:

[0112] (1) 0x183, 8, 0, 0, 0, 0, 0, 0, 0, 0

[0113] (2) 0x183, 8, 0, 0, 2, 0, 0, 0, 0, 0

[0114] (3) 0x183, 8, 0, 0, 0, 0, 0, 0, 0, 0

[0115] ……

[0116] (n) 0x183, 8, 0, 0, 0, 0, 0, 0, 0, 0

[0117] The control computer analyzes the PDO data sent by all the handles. If it is found that among the data with the same network ID, some have D2 = 0 while some have D2 = 2, it is determined that the network IDs of the handles are repeated. The calibration operator is reminded by means of sound, light, or the screen, etc. to disconnect the handles or bus components at other non-calibrated network ID positions until the network IDs of the handles on the CAN bus are unique, that is, there is no repetition. Then, the control computer can send a modify ID instruction to the handle with network ID 3 to calibrate the right handle 1. At the same time, the network ID calibration of other handles can be carried out in the same way as the above operation.

[0118] In summary, the calibration method of the handle provided by the above embodiment has the following advantages: 1) The handle can be directly installed on the mechanical equipment and then calibrated; 2) Handles located at different installation positions can conveniently switch network IDs, which is convenient for emergency use or diagnostic maintenance; 3) Even if the network ID of the handle needs to be modified due to reasons such as incorrect calibration, it can be conveniently modified, and at the same time, the calibration efficiency and reliability are high, and the calibration cost is low.

[0119] Based on the same inventive concept as the foregoing embodiment, an embodiment of the present invention provides an electronic device, as Figure 5 shown. The electronic device includes: a processor 310 and a memory 311 storing a computer program; wherein, Figure 5 The processor 310 shown in does not refer to the number of processors 310 being one, but only refers to the positional relationship of the processor 310 relative to other devices. In actual applications, the number of processors 310 can be one or more; similarly, Figure 5 the memory 311 shown in also has the same meaning, that is, it only refers to the positional relationship of the memory 311 relative to other devices. In actual applications, the number of memories 311 can be one or more. When the processor 310 runs the computer program, the above-mentioned calibration method of the handle is implemented.

[0120] The electronic device may further include: at least one network interface 312. Each component in the electronic device is coupled together through a bus system 313. It can be understood that the bus system 313 is used to realize the connection and communication between these components. In addition to including a data bus, the bus system 313 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear illustration, in Figure 5 all kinds of buses are labeled as the bus system 313.

[0121] Among them, the memory 311 can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM, Read Only Memory), a programmable read-only memory (PROM, Programmable Read-Only Memory), an erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory), an electrically erasable programmable read-only memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), a ferromagnetic random access memory (FRAM, ferromagnetic random access memory), a flash memory (Flash Memory), a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM, Compact Disc Read-Only Memory); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM, Random Access Memory), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as a static random access memory (SRAM, Static Random Access Memory), a synchronous static random access memory (SSRAM, Synchronous Static Random Access Memory), a dynamic random access memory (DRAM, Dynamic Random Access Memory), a synchronous dynamic random access memory (SDRAM, Synchronous Dynamic Random Access Memory), a double data rate synchronous dynamic random access memory (DDR SDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), an enhanced synchronous dynamic random access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), a sync link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and a direct rambus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 311 described in the embodiments of the present invention is intended to include but not limited to these and any other suitable types of memories.

[0122] The memory 311 in the embodiments of the present invention is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer programs for operating on the electronic device, such as operating systems and application programs; contact data; phone book data; messages; pictures; videos, etc. Among them, the operating system contains various system programs, such as the framework layer, the core library layer, the driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application programs can include various application programs, such as a Media Player, a Browser, etc., for implementing various application services. Here, the program for implementing the method of the embodiments of the present invention can be included in the application programs.

[0123] Based on the same inventive concept as the foregoing embodiments, this embodiment also provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. The computer-readable storage medium can be a ferromagnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM), etc.; it can also be various devices including one or any combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc. When the computer program stored in the computer-readable storage medium is run by a processor, the calibration method of the handle described above is implemented. For the specific step flow implemented when the computer program is executed by the processor, please refer to Figure 2 the description of the illustrated embodiments, which will not be repeated here.

[0124] The technical features of the above-described embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.

[0125] In this document, the terms "including", "comprising", or any other variant thereof are intended to cover non-exclusive inclusion, in addition to the listed elements, and may also include other elements not expressly listed.

[0126] As described above, it is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A calibration method for a handle, characterized in that, Including: Determine a target handle to be calibrated in the mechanical equipment; Obtain processing data packets periodically reported by at least one handle in the mechanical equipment, where the processing data packets include the identity identifier and status data of the handle; Determine the identity identifier of the target handle from the target processing data packet reported by the target handle according to the status data in the processing data packets reported by the at least one handle respectively; Send a calibration instruction to the target handle based on the identity identifier of the target handle to instruct the target handle to modify the identity identifier to the target identity identifier carried in the calibration instruction.

2. The method according to claim 1, wherein The determining the target handle to be calibrated in the mechanical equipment includes: Display a calibration setting interface; Determine the target handle to be calibrated in the mechanical equipment according to the calibration information input or selected in the calibration setting interface.

3. The method according to claim 2, wherein The calibration information includes the target identity identifier.

4. The method according to claim 1, wherein The determining the identity identifier of the target handle from the target processing data packet reported by the target handle according to the status data in the processing data packets reported by the at least one handle respectively includes: Compare the status data in the processing data packets reported by the at least one handle respectively, and determine the processing data packet with different status data as the target processing data packet reported by the target handle; Determine the identity identifier in the target processing data packet as the identity identifier of the target handle.

5. The method according to claim 1, wherein Before obtaining the processing data packets periodically reported by all handles in the mechanical equipment, it includes: Determine and output a calibration prompt message for the target handle, where the calibration prompt message is used to prompt the trigger operation to be performed on the target handle; The determining the identity identifier of the target handle from the target processing data packet reported by the target handle according to the status data in the processing data packets reported by the at least one handle respectively includes: Determine the expected value corresponding to the status data of the target handle according to the calibration prompt message for the target handle; According to the status data in the processing data packets reported by the at least one handle respectively and the expected value, determine the identity identifier in the target processing data packet corresponding to the status data that matches the expected value as the identity identifier of the target handle.

6. The method according to claim 1, wherein Before sending a calibration instruction to the target handle based on the identity identifier of the target handle to instruct the target handle to modify the identity identifier to the target identity identifier carried in the calibration instruction, it includes: Determine the target identity identifier corresponding to the target handle according to the preset corresponding relationship between different handles and the identity identifiers to be calibrated.

7. The method according to any one of claims 1 to 6, characterized in that, The obtaining the processing data packets periodically reported by at least one handle in the mechanical equipment includes: Timingly read the processing data packets periodically reported by at least one handle in the mechanical equipment from the CAN bus.

8. The method according to claim 7, wherein Before sending a calibration instruction to the target handle based on the identity identifier of the target handle to instruct the target handle to modify the identity identifier to the target identity identifier carried in the calibration instruction, it includes: When it is determined, according to the identity identifiers in the processed data packets respectively reported by the at least one handle, that there is at least one other handle with the same identity identifier as that of the target handle, an alert message is output to prompt to disconnect the communication connection between the other handle and the CAN bus until no other processed data packets with the identity identifier of the target handle are detected.

9. An electronic device, characterized in that, It includes: a processor and a memory storing a computer program, and when the computer program runs on the processor, the calibration method of the handle according to any one of claims 1 to 8 is implemented.

10. A computer-readable storage medium, characterized in that, storing a computer program, and when the computer program is executed by a processor, the calibration method of the handle according to any one of claims 1 to 8 is implemented.