Control method, system and storage medium of multi-protocol electric tightening device

By using the application layer, device abstraction layer, and protocol adaptation layer of the multi-protocol electric tightening equipment control system, unified control of different electric tightening equipment is achieved through a unified data format and protocol adapter. This solves the problems of high development costs and complex maintenance in existing technologies, and improves user experience and data consistency.

CN123055807APending Publication Date: 2026-11-06WUHAN NORCO POWER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611568259.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-12
Publication Date
2026-11-06

AI Technical Summary

Technical Problem

In existing technologies, control systems require the independent development of control service programs for each type of electric tightening equipment, resulting in high development costs, complex maintenance, poor user experience, and difficulty in ensuring data consistency.

Method used

The control system for multi-protocol electric tightening equipment includes an application layer, a device abstraction layer, and a protocol adaptation layer. Through a unified data format request and response mechanism, it utilizes a protocol adapter to achieve data format conversion between different electric tightening devices and provides a standardized operation interface for unified control of devices with different protocol types.

Benefits of technology

It enables unified control of different electric tightening devices, reduces development costs, simplifies the maintenance process, improves user experience, and ensures data consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123055807A_ABST
    Figure CN123055807A_ABST
Patent Text Reader

Abstract

This application discloses a control method, system, and storage medium for a multi-protocol electric tightening device. The control method includes: initiating a first request by calling an operation interface through the application layer, wherein the data format of the first request is a unified data format; converting the first request into a second request through a corresponding target protocol adapter according to the protocol type of the currently connected target electric tightening device, and sending the second request to the target electric tightening device, wherein the data format of the second request is the protocol type data format of the target electric tightening device; receiving a first response generated by the target electric tightening device based on the second request through the target protocol adapter, wherein the data format of the first response is the protocol data format of the target electric tightening device; converting the first response into a second response through the target protocol adapter, and sending the second response to the application layer, wherein the data format of the second response is a unified data format.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electric tightening equipment technology, and in particular to a control method, system and storage medium for a multi-protocol electric tightening equipment. Background Technology

[0002] In industrial production, control systems often interface with multiple different models of electric tightening equipment. Due to differences in product positioning, hardware layout limitations, and cost control factors, the communication protocols, parameter encoding formats, and data structure definitions used by each type of electric tightening equipment can vary significantly. For the control system, this typically involves developing a separate control service program for each electric tightening device, with each device's program running and being maintained independently. However, this approach results in high development costs, complex maintenance, poor user experience, and difficulty in ensuring data consistency. Summary of the Invention

[0003] To address the aforementioned technical problems, this application provides a control method, system, and storage medium for a multi-protocol electric tightening device.

[0004] This application provides a control method for a multi-protocol electric tightening device, applied to a control system for the multi-protocol electric tightening device. The control system includes an application layer, a device abstraction layer, and a protocol adaptation layer. The device abstraction layer includes multiple operation interfaces, and the protocol adaptation layer includes multiple protocol adapters, each protocol adapter corresponding to an electric tightening device of a specific protocol type. The control method includes: initiating a first request by calling the operation interface through the application layer, wherein the data format of the first request is a unified data format within the control system; converting the first request into a second request through a target protocol adapter corresponding to the protocol type of the currently connected target electric tightening device, and sending the second request to the target electric tightening device, wherein the data format of the second request is the protocol type data format of the target electric tightening device; receiving a first response generated by the target electric tightening device based on the second request through the target protocol adapter, wherein the data format of the first response is the protocol data format of the target electric tightening device; converting the first response into a second response through the target protocol adapter, and sending the second response to the application layer, wherein the data format of the second response is the unified data format.

[0005] A second aspect of this application provides a control system for a multi-protocol electric tightening device. The control system includes an application layer, a device abstraction layer, a protocol adaptation layer, and a control module. The device abstraction layer includes multiple operation interfaces. The application layer is used to call the operation interfaces to initiate a first request, the data format of which is a unified data format within the control system. The protocol adaptation layer includes multiple protocol adapters, each corresponding to an electric tightening device of a specific protocol type. The control module is used to convert the first request into a second request using a target protocol adapter corresponding to the protocol type of the currently connected target electric tightening device, and send the second request to the target electric tightening device, wherein the data format of the second request is the protocol type data format of the target electric tightening device. The control module is also used to receive a first response generated by the target electric tightening device based on the second request through the target protocol adapter, the data format of which is the protocol type data format of the target electric tightening device; and to convert the first response into a second response through the target protocol adapter and send the second response to the application layer, wherein the data format of the second response is the unified data format.

[0006] A third aspect of this application provides a control system for a multi-protocol electric tightening device, comprising a processor and a memory, the memory storing a plurality of instructions adapted to be loaded by the processor and executed as described in the first aspect of the control method for the multi-protocol electric tightening device.

[0007] A fourth aspect of this application provides a computer-readable storage medium storing a plurality of instructions adapted for loading by a processor and executing a control method for a multi-protocol electric tightening device as described in the first aspect.

[0008] The control method, control system, and computer-readable storage medium for the multi-protocol electric tightening device provided in this application provide multiple standardized operation interfaces to the application layer through a device abstraction layer. Upper-layer applications can initiate requests by calling these operation interfaces, regardless of the communication protocol used by the electric tightening device. That is, regardless of the protocol used by the electric tightening device, the upper-layer application can interact through the operation interfaces using a unified data format. Furthermore, when controlling a target electric tightening device, the control system selects the corresponding target protocol adapter based on the device's protocol type. This adapter enables bidirectional conversion between the unified data format and the target electric tightening device's proprietary data format: on one hand, the first request is converted into a second request that the target electric tightening device can recognize and sent to the target electric tightening device; on the other hand, the proprietary data format response returned by the target electric tightening device is converted back to the unified data format and returned to the upper-layer application. Thus, the control system achieves control of electric tightening devices with different protocol types using a unified architecture and data format, eliminating the need to develop corresponding control service programs for each type of electric tightening device. Attached Figure Description

[0009] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0010] Figure 1 This is a structural block diagram of the control system of a multi-protocol electric tightening device in some embodiments of this application.

[0011] Figure 2 This is a flowchart of a control method for a multi-protocol electric tightening device in some embodiments of this application.

[0012] Figure 3 This is a flowchart of a control method for a multi-protocol electric tightening device in some other embodiments of this application.

[0013] Figure 4 This is a flowchart of a control method for a multi-protocol electric tightening device in some embodiments of this application.

[0014] Figure 5 for Figure 4 The step S18 shown is a sub-flowchart in some embodiments.

[0015] Figure 6 This is a structural block diagram of the control system of the multi-protocol electric tightening device in some other embodiments of this application.

[0016] Figure 7This is a structural block diagram of the control system of a multi-protocol electric tightening device in some embodiments of this application. Detailed Implementation

[0017] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0018] In the description of this application, the terms "first," "second," ..., "sixth," etc., are used to distinguish different objects, rather than to describe a specific order, and therefore should not be construed as limitations on this application.

[0019] In the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, a / b can mean a or b. "And / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, a and / or b can mean: a exists alone, a and b exist simultaneously, and b exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more.

[0020] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The representation of this phrase in various locations throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0021] Please see Figure 1 , Figure 1 This is a structural block diagram of the control system 100 of a multi-protocol electric tightening device in some embodiments of this application. For example... Figure 1 As shown, the control system 100 includes an application layer 10, a device abstraction layer 20, and a protocol adaptation layer 30. The device abstraction layer 20 includes multiple operation interfaces 21, and the protocol adaptation layer 30 includes multiple protocol adapters 31, each protocol adapter 31 corresponding to an electric tightening device of a certain protocol type.

[0022] Please see Figure 2 , Figure 2 This is a flowchart illustrating a control method for a multi-protocol electric tightening device in some embodiments of this application. The control method is applied to the control system 100 and includes: S11: The application layer 10 calls the operation interface 21 to initiate a first request, the data format of the first request being the unified data format within the control system 100.

[0023] S12: Based on the protocol type of the currently connected target electric tightening device, the first request is converted into a second request through a target protocol adapter corresponding to the protocol type of the target electric tightening device, and the second request is sent to the target electric tightening device, wherein the data format of the second request is the protocol type data format of the target electric tightening device.

[0024] S13: Receive the first response generated by the target electric tightening device based on the second request through the target protocol adapter. The data format of the first response is the protocol type data format of the target electric tightening device.

[0025] S14: The first response is converted into a second response by the target protocol adapter, and the second response is sent to the application layer 10, wherein the data format of the second response is the unified data format.

[0026] The target electric tightening device can be one, more, or all of a plurality of electric tightening devices communicatively connected to the control system 100. That is, the first request can be initiated for some of the plurality of electric tightening devices or for all of them.

[0027] The control method for the multi-protocol electric tightening device provided in this application provides multiple standardized operation interfaces 21 for the application layer 10 through the device abstraction layer 20. Upper-layer applications can initiate requests by calling these operation interfaces 21, regardless of the communication protocol used by the electric tightening device. That is, regardless of the protocol used by the electric tightening device, the upper-layer application can interact through the operation interfaces 21 using a unified data format. Furthermore, when it is necessary to control the target electric tightening device, the control system 100 selects the corresponding target protocol adapter according to the device's protocol type. This target protocol adapter enables bidirectional conversion between the unified data format and the target electric tightening device's proprietary data format: on one hand, the first request is converted into a second request that the target electric tightening device can recognize and sent to the target electric tightening device; on the other hand, the proprietary data format response returned by the target electric tightening device is converted into a unified data format and returned to the upper-layer application. Thus, the control system 100 achieves control of electric tightening devices with different protocol types using a unified architecture and data format, eliminating the need to develop corresponding control service programs for each type of electric tightening device.

[0028] In some embodiments, the multiple operation interfaces 21 of the device abstraction layer 20 can cover all the core service functions of the electric tightening device, including: device identification and status query functions, such as obtaining the unique device identifier, online status detection, and device type determination; network status management functions, such as signal strength query, signal change monitoring, and network configuration reset; policy management operation functions, such as setting tightening parameter sets, batch importing, activating specified policies, deleting policies, and range querying; job plan management functions, such as setting job configurations, batch importing, activating specified jobs, deleting jobs, and job status querying; tightening process control functions, such as starting tightening actions, stopping tightening actions, and triggering device positioning signals; result data acquisition functions, such as querying the range of tightening result sequence numbers and batch synchronously acquiring result data; parameter configuration management functions, such as reading torque calibration parameter settings, reading device operating parameter settings, and locking status control; and log data monitoring functions, such as real-time subscription and acquisition of device operating logs.

[0029] In some embodiments, the protocol adapter 31 is used to parse and convert the data format of the first request and the first response.

[0030] Please see Figure 3 , Figure 3 This is a flowchart illustrating a control method for a multi-protocol electric tightening device in other embodiments of this application. In some embodiments, the control method further includes: S15: When an electric tightening device establishes a communication connection with the control system 100, determine the protocol type of the newly connected electric tightening device.

[0031] S16: Determine whether the protocol adaptation layer 30 has a protocol adapter 31 corresponding to the protocol type of the newly connected electric tightening device. If it does not exist, proceed to S17; if it does exist, return to S15.

[0032] S17: Based on the protocol type of the newly connected electric tightening device, create a new protocol adapter corresponding to the newly connected electric tightening device.

[0033] This enables the identification of the protocol type of newly connected devices and the creation of corresponding protocol adapters, thereby improving the scalability of the control system 100. When a corresponding protocol adapter 31 already exists for the protocol type of a newly connected electric tightening device, it is not necessary to create it again; the existing protocol adapter 31 can be reused directly.

[0034] In some embodiments, the protocol type of the newly connected electric tightening device can be obtained directly, or the device identifier of the newly connected electric tightening device can be obtained, and the protocol type of the newly connected electric tightening device can be determined based on the device identifier.

[0035] In some embodiments, the protocol adapter 31 that already exists in the control system 100 can also be created using the method described above.

[0036] Please see Figure 4 , Figure 4 This is a flowchart illustrating a control method for a multi-protocol electric tightening device in some embodiments of this application. In some embodiments, the control method further includes: S18: The new protocol adapter acquires the functional services supported by the newly connected electric tightening device.

[0037] S19: Initialize the functional modules in the new protocol adapter that correspond to the functional services supported by the newly connected electric tightening device.

[0038] By only initializing the functional modules corresponding to the functions supported by the newly connected electric tightening equipment, that is, not initializing the corresponding functional modules for functions not supported by the newly connected electric tightening equipment, the unnecessary occupation of system resources can be effectively avoided, and the amount of memory and processor data processing can be reduced.

[0039] For example, if the newly connected electric tightening device supports machine information service, the machine information query function is initialized; if the newly connected electric tightening device supports network status service, the signal strength monitoring function is initialized; if the newly connected electric tightening device supports policy management service, the parameter set and job configuration function is initialized; if the newly connected electric tightening device supports log stream service, the operation log subscription function is initialized.

[0040] Please see Figure 5 , Figure 5 for Figure 4 The flowchart shown for step S18 in some embodiments is as follows. In some embodiments, step S18, "the new protocol adapter acquires the functional services supported by the newly connected electric tightening device," includes: S181: The new protocol adapter sends a service query command to the newly connected electric tightening device.

[0041] S182: The new protocol adapter receives a list of service numbers sent by the newly connected electric tightening device based on the service query instruction.

[0042] S183: The new protocol adapter determines the functional services supported by the newly connected electric tightening device based on the service number list.

[0043] When the new protocol adapter interacts with the newly connected electric tightening device, the data format is the protocol type data format of the newly connected electric tightening device. For example, the data format of the service query command and the service number list is the protocol type data format of the newly connected electric tightening device.

[0044] In some embodiments, step S18, "the new protocol adapter obtains the functional services supported by the newly connected electric tightening device", includes: the new protocol adapter determines the functional services supported by the newly connected electric tightening device based on the device identifier of the newly connected electric tightening device.

[0045] In some embodiments, the new protocol adapter determines the functional services supported by the newly connected electric tightening device based on the device identifier of the newly connected electric tightening device, including: the new protocol adapter determining a target service number list corresponding to the device identifier of the newly connected electric tightening device based on a preset correspondence between the device identifier and the service number list; and the new protocol adapter determining the functional services supported by the newly connected electric tightening device based on the target service number list.

[0046] In some embodiments, the electric tightening device includes at least one board, which includes one or more of a communication board, a control board, and an execution board. The electric tightening device communicates with other devices through the communication board, which includes, but is not limited to, a WIFI board. The control board may be a main control board, and the execution board may be a controller board. Each board runs an embedded program independently and has an independent set of service functions.

[0047] Step S18, "The new protocol adapter obtains the functional services supported by the newly connected electric tightening device," includes: the new protocol adapter obtains the functional services supported by each of the boards. Initializing the functional modules in the new protocol adapter corresponding to the functional services supported by the newly connected electric tightening device includes: initializing the functional modules in the new protocol adapter corresponding to the functional services supported by each of the boards.

[0048] In some embodiments, a list of service IDs supported by each board is obtained, and the corresponding functional modules of the board are initialized based on the list of service IDs. The functional modules of each board are managed independently and can be enabled or disabled individually.

[0049] Each board has an independent connection lifecycle state. The control system 100 handles board state changes through an event callback mechanism, including: board going online, for example, performing service discovery and functional module initialization for the board, and filling the corresponding board state cache; board going offline, for example, clearing the functional modules and cache data of the board, and marking the overall device state change; board updating, for example, synchronously updating the board's construction information and state data.

[0050] In some embodiments, the memory of the control system 100 stores at least one status data of the electric tightening device, and the first request is used to query the target status data of the target electric tightening device. Step S11, "initiating the first request by calling the operation interface through the application layer", includes: when the first request is initiated by calling the operation interface 21 through the application layer 10, if the target status data exists in the memory and the target status data is valid, then the target status data in the memory is sent to the application layer 10.

[0051] When valid target state data exists in the memory, the control system 100 directly reads the data from the memory and returns it to the application layer, without needing to go through protocol conversion, network transmission, device response, or other processes. Compared to the method of initiating a remote request to the electric tightening device for each query, reading data from the memory eliminates steps such as request conversion, network communication, device response, and response conversion, significantly shortening the data acquisition path and thus greatly improving the response speed of query requests.

[0052] Furthermore, if each query requires sending a request to the electric tightening device and waiting for a response, the electric tightening device would need to frequently process query commands and reply with data, consuming significant resources from the device's processor. This application significantly reduces the number of remote queries to the device and lowers the communication processing load of the electric tightening device by prioritizing data retrieval from the memory and only initiating device communication when the data is not present in the memory or is invalid.

[0053] Furthermore, when multiple clients query the status data of the same electric tightening device or multiple electric tightening devices, they can directly read from the memory without waiting, demonstrating excellent concurrency performance.

[0054] In some embodiments, step S12, "converting the first request into a second request through a target protocol adapter corresponding to the protocol type of the target electric tightening device," includes: if the target status data is not present in the memory or the target status data in the memory has expired, then the first request is converted into a second request through the protocol adapter 31 corresponding to the target electric tightening device, and the second request is sent to the target electric tightening device.

[0055] Step S13, "receiving the first response generated by the target electric tightening device based on the second request through the target protocol adapter", includes: receiving the first response generated by the target electric tightening device based on the second request through the target protocol adapter, wherein the first response includes the target status data of the target electric tightening device.

[0056] Step S14, "Converting the first response into a second response through the target protocol adapter and sending the second response to the application layer", includes: converting the first response into a second response through the target protocol adapter and sending the second response to the application layer 10.

[0057] The method further includes updating the state data in the memory based on the second response.

[0058] When the target status data is not present in the memory or has expired, the control system 100 sends the second request to the target electric tightening device through the target protocol adapter to obtain the current real status data of the target electric tightening device, and updates the memory based on the obtained data. This ensures that the status data returned to the application layer 10 is always accurate and valid.

[0059] In some embodiments, the state data in the memory has a preset validity period. If the state data exceeds the preset validity period, it is determined to be invalid; otherwise, it is valid. The preset validity period can be set according to actual needs.

[0060] In some embodiments, the control system 100 may acquire the status data of the electric tightening device at a first preset time interval and store it in the memory; or, the electric tightening device may push the status data to the control system 100 at a second preset time interval, and the control system 100 may store the status data in the memory upon receiving it.

[0061] In some embodiments, the status data stored in the memory may include multiple categories, including device parameters, calibration parameters, barcode parameters, electric screwdriver parameters, network parameters, basic information parameters, and board information parameters. Device parameters include, but are not limited to, device operating parameter configuration data; calibration parameters include, but are not limited to, torque sensor calibration parameters; barcode parameters include, but are not limited to, barcode scanning configuration parameters; electric screwdriver parameters include, but are not limited to, screwdriver configuration parameters; network parameters include, but are not limited to, wireless network configuration parameters and IP address; basic information parameters include, but are not limited to, device model and project name; and board information parameters include, but are not limited to, the construction information of each board (such as model, version, etc.).

[0062] In some embodiments, the control system 100 is communicatively connected to at least two terminal devices, which can be understood as clients of the control system 100, and the control system 100 can be understood as a client of the electric tightening device. Users can initiate requests to the electric tightening device by operating the terminal devices, which can be used to query the status data of the target electric tightening device, or to start, stop, or adjust the operating parameters of the target electric tightening device. The terminal devices include, but are not limited to, mobile phones, tablets, and computers.

[0063] In some embodiments, the first request is used to instruct the adjustment of the operating parameters of the target electric tightening device, and the first request includes instructing the target electric tightening device to adjust to a target operating parameter. The method further includes: when the at least two terminal devices initiate at least two first requests by calling the same operation interface 21 through the application layer 10, converting one of the at least two first requests into a second request through the target protocol adapter, and sending the second request to the target electric tightening device, wherein each terminal device initiates one first request by calling the operation interface 21 through the application layer 10.

[0064] When at least two terminal devices invoke the same operation interface 21 through the application layer 10 to initiate parameter adjustment requests for the same target electric tightening device, the control system 100 only converts one of the first requests into a second request and sends it to the target electric tightening device for execution. This avoids execution conflicts or state uncertainties in the target electric tightening device caused by multiple terminal devices simultaneously issuing different target operating parameters.

[0065] In some embodiments, the method further includes converting the first request with the latest initiation time into the second request based on the initiation time of each of the at least two first requests.

[0066] In other embodiments, the method further includes: determining the priority of each of at least two first requests; and converting the first request with the highest priority into a second request. The priority can be determined based on device information of the terminal device initiating the first request.

[0067] In other embodiments, the method further includes: determining whether the target operating parameter of each of at least two first requests is reasonable; if unreasonable, then no conversion is performed. If the target operating parameter is outside the reasonable operating parameter range of the electric tightening device, then the target operating parameter is unreasonable.

[0068] In other embodiments, the method further includes: performing a credibility assessment on the at least two terminal devices based on historical records; and converting a first request initiated by the terminal device with the highest credibility into a second request. The historical records include the error rate and / or deviation of the terminal devices' historical first requests.

[0069] In some embodiments, the first request that is converted into the second request is a target first request; the method further includes: sending information about the target electric tightening device operating with the target operating parameters included in the target first request to the terminal device corresponding to the first request that was not converted into the second request.

[0070] When multiple terminal devices simultaneously initiate parameter adjustment requests, the control system 100 only sends one request to the target electric tightening device for execution. Then, it sends the information about the actual target operating parameters executed by the target electric tightening device to the terminal devices corresponding to the other unexecuted requests. This ensures that all requesting terminal devices can know the final operating parameters of the target electric tightening device, avoiding the problem of incorrect perception of the target electric tightening device's status due to information asynchrony between different terminal devices.

[0071] Please see Figure 6 , Figure 6 This is a structural block diagram of a control system 100 for a multi-protocol electric tightening device in some embodiments of this application. In some embodiments, the control system 100 further includes a transmission layer 40 and a physical layer 50. The transmission layer 40 is connected between the protocol adaptation layer 30 and the physical layer 50, and the physical layer 50 is connected between the transmission layer 40 and the electric tightening device. The physical layer 50 is used for communication with the electric tightening device, and the physical layer 50 includes, but is not limited to, network ports, serial ports, USB data channels, etc.

[0072] In some embodiments, the method further includes: sending probe information to the electric tightening device through the transmission layer 40; and determining that the communication connection between the electric tightening device and the control system 100 is disconnected when the transmission layer 40 does not receive probe response information sent by the electric tightening device based on the probe information. The electric tightening device to which the transmission layer 40 sends the probe information may be one, more, or all of a plurality of electric tightening devices communicatively connected to the control system 100.

[0073] By sending detection information to the electric tightening device and listening to response information through the transmission layer 40, the connection can be detected in time when the electric tightening device loses power or the network is interrupted, so that the control system 100 can respond in time and take corresponding measures, such as issuing prompt information.

[0074] In some embodiments, the transmission layer 40 sends detection information to the electric tightening device, including: the transmission layer 40 sending the detection information to the electric tightening device within a first duration of establishing a communication connection with the electric tightening device. The first duration is less than or equal to 5 seconds, but may also be other values.

[0075] In some embodiments, the interval between two adjacent detection messages is 1 second.

[0076] In some embodiments, when the transmission layer 40 does not receive a detection response from the electric tightening device based on the detection information, it determines that the communication connection between the electric tightening device and the control system is disconnected. This includes: if the transmission layer has transmitted the detection information to the electric tightening device at least a preset number of times, and if the transmission layer 40 does not receive the detection response information from the electric tightening device, then it determines that the communication connection between the electric tightening device and the transmission layer 40 is disconnected. The preset number of times can be 10 times, or other values.

[0077] In some embodiments, sending detection information to the electric tightening device via the transmission layer 40 includes: the transmission layer 40 sending the detection information to the electric tightening device at second time intervals. The second time interval is less than or equal to 1 second, but may also be other values.

[0078] In some embodiments, the control system 100 further includes a counter for counting the same first request to obtain a corresponding count value, wherein the same first request is used to query the same target status data. The method further includes: when the count value corresponding to the same first request is greater than or equal to 1, receiving, through the target protocol adapter, the first response generated by the target electric tightening device based on the second request, wherein the first response includes the target status data; The first response is converted into the second response by the target protocol adapter, and the second response is sent to the application layer 10; When the count value corresponding to the first request is equal to 0, the target protocol adapter stops receiving the first response generated by the target electric tightening device.

[0079] That is, when the number of terminal devices requesting to query a status data is 1, i.e., the count value is 1, the control system 100 starts to obtain the status data from the target electric tightening device and feeds it back to the terminal device; as the number of terminal devices requesting to query the status data increases, i.e., the count value increases, the control system 100 continuously obtains the latest status data from the target electric tightening device and feeds it back to the requesting terminal device; when the terminal devices requesting to query the status data gradually withdraw, i.e., the count value decreases and decreases to 0, the control system 100 stops obtaining the status data from the target electric tightening device.

[0080] The count value of the counter controls whether the same state data stream is sent. It is only sent when at least one terminal device requests a query, and stops sending when no terminal device requests a query, thus realizing on-demand sending and automatic start and stop of the state data stream.

[0081] In some embodiments, the method further includes: performing integrity verification on the second request and / or the first response through the transport layer 40 to prevent transmission errors from causing data parsing failure.

[0082] Please see Figure 7 , Figure 7 This is a structural block diagram of a control system 100 for a multi-protocol electric tightening device in some embodiments of this application. The control system 100 includes an application layer 10, a device abstraction layer 20, a protocol adaptation layer 30, and a control module 60, as described above. The device abstraction layer 20 includes multiple operation interfaces 21, and the protocol adaptation layer 30 includes multiple protocol adapters 31, each protocol adapter 31 corresponding to an electric tightening device of a specific protocol type. The application layer 10 is used to call the operation interfaces 21 to initiate a first request, the data format of which is a unified data format within the control system 100. The control module 60 is configured to convert the first request into a second request through a target protocol adapter corresponding to the protocol type of the currently connected target electric tightening device, and send the second request to the target electric tightening device, wherein the data format of the second request is the protocol type data format of the target electric tightening device; the control module 60 is also configured to receive a first response generated by the target electric tightening device based on the second request through the target protocol adapter, wherein the data format of the first response is the protocol type data format of the target electric tightening device, and convert the first response into a second response through the target protocol adapter, and send the second response to the application layer 10, wherein the data format of the second response is the unified data format.

[0083] The control module 60 may be a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a microcontroller unit (MCU), an embedded processor, a system on a chip (SoC), or any combination of one or more of the above.

[0084] It should be noted that the functional operations performed by the control system 100 correspond to the aforementioned control method. In the aforementioned method steps, if the executing entity is not specified, it can be executed by the control module 60. For a more detailed description, please refer to the contents of the various embodiments of the aforementioned control method. The contents of the control system 100 and the aforementioned control method can also be referenced interchangeably.

[0085] This application provides a control system 100 for a multi-protocol electric tightening device, which includes a processor and a memory. The memory stores multiple instructions, which are adapted to be loaded by the processor and executed by the control method of the multi-protocol electric tightening device described in any of the foregoing embodiments.

[0086] This application provides a computer-readable storage medium storing multiple instructions adapted for loading by a processor and executing the control method of the multi-protocol electric tightening device described in any of the foregoing embodiments.

[0087] The computer-readable storage medium includes, but is not limited to, various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0088] The execution order of each step in the method embodiment of this application is not limited, and the execution order can be set according to requirements.

[0089] It is understood that the structure illustrated in the embodiments of this application does not constitute a specific limitation on the control system 100. In other embodiments of this application, the control system 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements.

[0090] The above are the implementation methods of the embodiments of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the embodiments of this application, and these improvements and modifications are also considered to be within the protection scope of this application.

Claims

1. A control method for a multi-protocol electric tightening device, applied to the control system of a multi-protocol electric tightening device, characterized in that, The control system includes an application layer, a device abstraction layer, and a protocol adaptation layer. The device abstraction layer includes multiple operation interfaces, and the protocol adaptation layer includes multiple protocol adapters. Each protocol adapter corresponds to an electric tightening device of a certain protocol type. The control method includes: The application layer calls the operation interface to initiate a first request, and the data format of the first request is a unified data format within the control system. Based on the protocol type of the currently connected target electric tightening device, the first request is converted into a second request through a target protocol adapter corresponding to the protocol type of the target electric tightening device, and the second request is sent to the target electric tightening device, wherein the data format of the second request is the protocol type data format of the target electric tightening device; The target protocol adapter receives a first response generated by the target electric tightening device based on the second request, wherein the data format of the first response is the protocol type data format of the target electric tightening device. The first response is converted into a second response by the target protocol adapter and the second response is sent to the application layer, wherein the data format of the second response is the unified data format.

2. The control method for the multi-protocol electric tightening device according to claim 1, characterized in that, The control method further includes: When an electric tightening device establishes a communication connection with the control system, the protocol type of the newly connected electric tightening device is determined; and If no protocol adapter exists in the protocol adaptation layer that corresponds to the protocol type of the newly connected electric tightening device, a new protocol adapter corresponding to the newly connected electric tightening device is created based on the protocol type of the newly connected electric tightening device.

3. The control method for the multi-protocol electric tightening device according to claim 2, characterized in that, The control method further includes: The new protocol adapter acquires the functional services supported by the newly connected electric tightening device; Initialize the functional modules in the new protocol adapter that correspond to the functional services supported by the newly connected electric tightening device.

4. The control method for the multi-protocol electric tightening device according to claim 3, characterized in that, The new protocol adapter acquires the functional services supported by the newly connected electric tightening device, including: The new protocol adapter sends a service query command to the newly connected electric tightening device; The new protocol adapter receives a list of service numbers sent by the newly connected electric tightening device based on the service query command; The new protocol adapter determines the functional services supported by the newly connected electric tightening device based on the service number list.

5. The control method for the multi-protocol electric tightening device according to claim 3, characterized in that, The new protocol adapter acquires the functional services supported by the newly connected electric tightening device, including: The new protocol adapter determines the functional services supported by the newly connected electric tightening device based on the device identifier of the newly connected electric tightening device.

6. The control method for the multi-protocol electric tightening device according to claim 5, characterized in that, The new protocol adapter determines the supported functional services of the newly connected electric tightening device based on the device identifier of the newly connected electric tightening device, including: The new protocol adapter determines the target service number list corresponding to the device identifier of the newly connected electric tightening device based on the preset correspondence between the device identifier and the service number list. The new protocol adapter determines the functional services supported by the newly connected electric tightening device based on the target service number list.

7. The control method for the multi-protocol electric tightening device according to claim 3, characterized in that, The electric tightening device includes at least one board; the new protocol adapter acquires the functional services supported by the newly connected electric tightening device, including: The new protocol adapter acquires the functional services supported by the board; The initialization of the functional modules in the new protocol adapter corresponding to the functional services supported by the newly connected electric tightening device includes: Initialize the functional modules in the new protocol adapter that correspond to the functional services supported by the board.

8. The control method for the multi-protocol electric tightening device according to claim 1, characterized in that, The memory of the control system stores at least one status data of the electric tightening device, and the first request is used to query the target status data of the target electric tightening device. The control method further includes: When the first request is initiated by calling the operation interface through the application layer, if the target state data exists in the memory and the target state data is valid, the target state data in the memory is sent to the application layer.

9. The control method for the multi-protocol electric tightening device according to claim 8, characterized in that, The control method further includes: If the target state data is not present in the memory or the target state data in the memory is invalid, the first request is converted into the second request through the protocol adapter corresponding to the target electric tightening device, and the second request is sent to the target electric tightening device. The first response generated by the target electric tightening device based on the second request is received through the target protocol adapter, and the first response includes the target status data of the target electric tightening device. The first response is converted into the second response by the target protocol adapter, and the second response is sent to the application layer; The state data in the memory is updated based on the second response.

10. The control method for the multi-protocol electric tightening device according to claim 1, characterized in that, The control system is communicatively connected to at least two terminal devices. The first request is used to instruct the adjustment of the operating parameters of the target electric tightening device. The first request includes instructing the target electric tightening device to be adjusted to the target operating parameters. The control method further includes: When at least two terminal devices initiate at least two first requests by calling the same operation interface through the application layer, the target protocol adapter converts one of the at least two first requests into a second request and sends the second request to the target electric tightening device, wherein each terminal device initiates one first request by calling the operation interface through the application layer.

11. The control method for the multi-protocol electric tightening device according to claim 10, characterized in that, The first request that is converted into the second request is the target first request; The control method further includes: The information that the target electric tightening device operates with the target operating parameters included in the target first request is sent to the terminal device corresponding to the first request that was not converted into the second request.

12. The control method for the multi-protocol electric tightening device according to claim 1, characterized in that, The control system further includes a transmission layer, and the control method further includes: The detection information is sent to the electric tightening device through the transmission layer; When the transmission layer does not receive the detection response information sent by the electric tightening device based on the detection information, it determines that the communication connection between the electric tightening device and the control system is disconnected.

13. The control method for the multi-protocol electric tightening device according to claim 1, characterized in that, The control system further includes a counter, used to count the same first request to obtain a corresponding count value, and the same first request is used to query the same target state data. The control method further includes: When the count value corresponding to the first request is greater than or equal to 1, the first response generated by the target electric tightening device based on the second request is received through the target protocol adapter. The first response includes the target status data. The first response is converted into the second response by the target protocol adapter, and the second response is sent to the application layer; When the count value corresponding to the first request is equal to 0, the target protocol adapter stops receiving the first response generated by the target electric tightening device.

14. A control system for a multi-protocol electric tightening device, characterized in that, The control system includes: The device abstraction layer includes multiple operation interfaces; The application layer is used to call the operation interface to initiate a first request, wherein the data format of the first request is a unified data format within the control system. The protocol adaptation layer includes multiple protocol adapters, each corresponding to a type of electric tightening device with a specific protocol. The control module is configured to, based on the protocol type of the currently connected target electric tightening device, convert the first request into a second request through a target protocol adapter corresponding to the protocol type of the target electric tightening device, and send the second request to the target electric tightening device, wherein the data format of the second request is the protocol type data format of the target electric tightening device; the control module is also configured to, through the target protocol adapter, receive a first response generated by the target electric tightening device based on the second request, wherein the data format of the first response is the protocol type data format of the target electric tightening device, and convert the first response into a second response through the target protocol adapter, and send the second response to the application layer, wherein the data format of the second response is the unified data format.

15. A control system for a multi-protocol electric tightening device, characterized in that, It includes a processor and a memory, the memory storing multiple instructions adapted to be loaded by the processor and executed by the processor in the control method of the multi-protocol electric tightening device as described in any one of claims 1-13.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of instructions adapted for loading by a processor and executing the control method of the multi-protocol electric tightening device as described in any one of claims 1-13.