Accessory detection method of laser processing equipment, laser processing equipment and system

By obtaining and detecting the connection status of the accessories equipment supported by the laser processing equipment and generating an online accessory list, the problem of manual operation of the status detection of the accessories equipment in the prior art is solved, and the automation and intelligence of the equipment are improved.

CN119839483APending Publication Date: 2025-04-18SHENZHEN MAKER WORKS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411073306.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-10-17
Filing Date
2024-08-06
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

The existing laser processing equipment needs to manually detect the status of the accessories equipment before use, which leads to inconvenient operation and cannot realize intelligent linkage control, affecting the intelligent operation of the equipment.

Method used

By obtaining the target accessories list information, detecting the connection status of each accessory device, and generating an online accessory list of laser processing equipment, automatic detection and online status management of accessory devices are realized.

Benefits of technology

Automatic detection and online status management of laser processing equipment accessories is realized, the automation and intelligence of the equipment is improved, and manual intervention is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119839483A_ABST
    Figure CN119839483A_ABST
Patent Text Reader

Abstract

The invention discloses an accessory detection method of laser processing equipment and the laser processing equipment and system.The method comprises the steps that target accessory list information is obtained, and the target accessory list information comprises information of all accessory equipment supported and connected by the laser processing equipment; performing connection state detection on each accessory device according to the target accessory list information to obtain a connection state of each accessory device; and generating an on-line accessory list corresponding to the laser processing equipment according to the connection state of each accessory equipment. According to the technical scheme, automatic detection of all the accessory devices is achieved, which accessory devices are in the online state can be checked based on the accessory online list, then which operations can be executed by the laser processing device at present can be determined, an operator does not need to manually judge the connection state of the accessory devices, and the working efficiency is improved. The automation degree of the laser processing equipment is improved, and then the intelligent degree of the laser processing equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of the Chinese patent application filed with the China Patent Office on October 17, 2023, with the application name "Accessory detection method for laser processing equipment, laser processing equipment and system", and priority number 2023113470254, all of which are incorporated by reference in this application. Technical Field

[0002] The present application belongs to the field of laser processing technology, and specifically relates to a method for detecting accessories of laser processing equipment, laser processing equipment and a system. Background Art

[0003] In recent years, with the continuous development of laser processing technology, the intelligence of laser processing equipment has become increasingly important. When laser processing equipment is working, it requires the cooperation of related accessories. Therefore, when using laser processing equipment, the corresponding accessories need to be turned on simultaneously. At present, before using laser processing equipment, it is necessary to manually detect the status of related accessories in order to turn on or off the accessories. This is not convenient enough and cannot achieve intelligent linkage control, which is not conducive to the intelligent operation of laser processing equipment. Summary of the invention

[0004] The purpose of this application is to provide a method for detecting accessories of laser processing equipment, laser processing equipment and system, so as to improve the intelligence level of laser processing equipment to a certain extent.

[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0006] According to one aspect of an embodiment of the present application, a method for detecting accessories of laser processing equipment is provided, comprising: Acquire target accessory list information, wherein the target accessory list information includes information of each accessory device supported and connected by the laser processing device; Performing connection status detection on each accessory device according to the target accessory list information to obtain the connection status of each accessory device; An online list of accessories corresponding to the laser processing equipment is generated according to the connection status of each accessory device.

[0007] According to one aspect of an embodiment of the present application, there is provided a component detection device for laser processing equipment, comprising: An information acquisition module, used to acquire target accessory list information, wherein the target accessory list information includes information of each accessory device supported and connected by the laser processing device; A status detection module, used to detect the connection status of each accessory device according to the target accessory list information to obtain the connection status of each accessory device; The online list generation module is used to generate an online list of accessories corresponding to the laser processing equipment according to the connection status of each accessory device.

[0008] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for detecting accessories of laser processing equipment in the above technical solution is implemented.

[0009] According to one aspect of an embodiment of the present application, a laser processing device is provided, which includes: a processor; and a memory for storing executable instructions of the processor; wherein the processor executes the executable instructions so that the laser processing device performs the accessory detection method for the laser processing device as in the above technical solution.

[0010] According to one aspect of an embodiment of the present application, a computer program product or a computer program is provided, which includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the accessory detection method for laser processing equipment as in the above technical solution.

[0011] According to one aspect of an embodiment of the present application, a laser processing system is provided, wherein the laser processing system is used to execute the accessory detection method for laser processing equipment as in the above technical solution, the laser processing system comprising: a host computer, an accessory device and a laser processing equipment, the laser processing equipment being connected to the host computer and the accessory device respectively; the host computer being used to send accessory list information to the laser processing equipment; the laser processing equipment detecting the accessory device according to the accessory list information sent by the host computer.

[0012] In the technical solution provided in the embodiment of the present application, the laser processing equipment obtains accessory list information, and the accessory list information includes information of each accessory device supported by the laser processing equipment; then, the connection status of each accessory device is detected according to the accessory list information to obtain the connection status of each accessory device; finally, an online accessory list corresponding to the laser processing equipment can be generated according to the connection status of each accessory device, thereby realizing automatic detection of each accessory device. Based on the online accessory list, it can be checked which accessory devices are online, and then it can be determined which operations the laser processing equipment can currently perform. There is no need for operators to manually determine the connection status of the accessory devices, which improves the automation level of the laser processing equipment and thus improves the intelligence level of the laser processing equipment.

[0013] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0015] Figure 1 A flow chart of a method for detecting accessories of laser processing equipment provided by an embodiment of the present application is schematically shown.

[0016] Figure 2 A flowchart of a process for obtaining target accessory list information provided by an embodiment of the present application is schematically shown.

[0017] Figure 3 A flowchart of a connection status detection process provided by an embodiment of the present application is schematically shown.

[0018] Figure 4 The schematic diagram shows the architecture of a laser processing system using the technical solution of the present application.

[0019] Figure 5 The flowchart schematically shows the updating process of the accessory list information in one embodiment of the present application.

[0020] Figure 6 A flowchart schematically shows a process for detecting an accessory device provided by an embodiment of the present application. Figure 7 The structural block diagram of the accessory detection device for laser processing equipment provided in an embodiment of the present application is schematically shown.

[0021] Figure 8 The schematic diagram shows a computer system structure block diagram of a laser processing device suitable for implementing the embodiment of the present application. DETAILED DESCRIPTION

[0022] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0023] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0024] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0025] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0026] The following is a detailed description of the accessories detection method for laser processing equipment provided by the present application in conjunction with specific implementation methods.

[0027] Figure 1 The flowchart of the laser processing equipment accessory detection method provided by one embodiment of the present application is shown. The method can be implemented by the laser processing equipment accessory detection device provided by any embodiment of the present application. The following will take the laser processing equipment accessory detection device as the implementation subject to explain the specific implementation process of the method. Figure 1 As shown, the accessory detection method for laser processing equipment provided in this embodiment includes S110 to S130, which are specifically as follows: S110, obtaining target accessory list information, where the target accessory list information includes information of each accessory device supported and connected to the laser processing equipment.

[0028] Specifically, laser processing equipment is a device that can use laser to process materials, such as laser engraving machines, laser cutting machines, laser printers, etc. Accessory equipment refers to equipment connected to laser processing equipment that can assist laser processing equipment in performing certain functions, such as smart air pumps, smart purifiers, fire extinguisher boxes, etc. The target accessory list information is the information of each accessory device that the pre-configured laser processing equipment can connect to. The accessory detection device of the laser processing equipment can obtain the target accessory list information from the server in real time, or it can download the target accessory list information from the server in advance and store it locally in the laser processing equipment to speed up the acquisition of the target accessory list information. For example, the accessory detection device of the laser processing equipment can store the target accessory list information in a storage location such as a TF card (Trans-flashCard, flash memory card), a chip flash memory (flash) or a U disk of the laser processing equipment.

[0029] In one embodiment of the present application, Figure 2 As shown, the process of obtaining the target accessory list information specifically includes S111 to S113, which are as follows: S111. Obtain an accessory list file and file verification information, where the accessory list file includes accessory list information.

[0030] Specifically, the accessory list file is a file formed by the accessory list information. The file verification information is verification information generated based on the accessory list file using an encryption algorithm. The file verification information is used to verify the accuracy and integrity of the accessory list file. For example, the file verification information can be verification information generated based on MD5 (Message Digest Algorithm 5).

[0031] In one embodiment of the present application, the process of obtaining the accessory list file specifically includes: determining the accessory list file version currently stored in the laser processing equipment, and obtaining the accessory list file version stored in the server; when the accessory list file version currently stored in the laser processing equipment is inconsistent with the accessory list file version stored in the server, obtaining the accessory list file stored in the server.

[0032] Specifically, the accessory list file is generally stored in the server, and the accessory detection device of the laser processing equipment can periodically obtain the latest accessory list file from the server. In the process of obtaining the accessory list file from the server, the accessory detection device of the laser processing equipment detects the accessory list file version currently stored in the laser processing equipment and the accessory list file version stored in the server, wherein the accessory list file version stored in the server refers to the latest version of the accessory list file currently stored in the server. When it is detected that the accessory list file version currently stored in the laser processing equipment is inconsistent with the accessory list file version stored in the server, it generally means that the accessory list file version currently stored in the laser processing equipment is not the latest version. At this time, a version update is required to obtain the accessory list file from the server, and replace the accessory list information currently stored in the laser processing equipment with the accessory list information in the accessory list file obtained from the server, so as to update the accessory list file version.

[0033] In one embodiment of the present application, the process of obtaining the accessories list file specifically includes: obtaining the response information generated by the accessories laser processing equipment based on the broadcast information sent by the upper computer; according to the laser processing equipment model indicated by the response information, obtaining the accessories list file corresponding to the laser processing equipment model from the server.

[0034] Specifically, different laser processing equipment may support different accessory devices for connection. Therefore, different laser processing equipment corresponds to different accessory list files. When obtaining the accessory list file, it is necessary to first determine the model of the laser processing equipment, and then obtain the corresponding accessory list file from the server according to the model of the laser processing equipment. In this embodiment, the host computer sends a broadcast message to each laser processing equipment, and the broadcast message is used to detect the model of each laser processing equipment. After receiving the broadcast message, the laser processing equipment generates corresponding response information, and the response information includes the model of the laser processing equipment. After the accessory detection device of the laser processing equipment obtains the response information generated by the laser processing equipment, it can obtain the corresponding accessory list file from the server according to the model of the laser processing equipment included in the response information.

[0035] In one embodiment of the present application, a module of an accessory detection device of a laser processing equipment that performs an action of determining the model of the laser processing equipment can be configured in a host computer, and then the host computer can send broadcast information to the laser processing equipment connected to it, or the host computer can query the model of the laser processing equipment through the HTTP LAN device discovery function.

[0036] In one embodiment of the present application, the file verification information is generated by the party sending the accessory list file, for example, the file verification information is generated by the server according to the MD5 algorithm. The detection device of the laser processing equipment can be configured in the laser processing equipment, and the accessory list file can also be sent to the laser processing equipment by the host computer, then the host computer can first obtain the accessory list file from the server, and then generate the corresponding file verification information according to the MD5 algorithm.

[0037] S112. Generate list verification information according to the accessory list file.

[0038] Specifically, after the detection device of the laser processing equipment obtains the accessory list file, it uses the same encryption method as that used to generate the file verification information to calculate the accessory list file and generate the list verification information. For example, the detection device of the laser processing equipment uses the MD5 algorithm to calculate the accessory list file and obtain the list verification information.

[0039] S113. When the list verification information is consistent with the file verification information, the accessory list information included in the accessory list file is used as the accessory list information.

[0040] Specifically, the detection device of the laser processing equipment matches the list verification information with the file verification information to detect whether the two are consistent. When the list verification information is consistent with the file verification information, it means that the contents of the accessory list file obtained by the detection device of the laser processing equipment and the accessory list file sent by the sender are consistent, and there is no content missing in the accessory list file during the transmission process. At this time, the detection device of the laser processing equipment can use the accessory list information included in the accessory list file as the accessory list information based on which the subsequent accessory detection is performed.

[0041] In one embodiment of the present application, when the list verification information is inconsistent with the file verification information, it means that an abnormality occurs in the accessory list file during the transmission process. At this time, the detection device of the laser processing equipment can re-obtain the accessory list file and file verification information from the host computer or server, and perform verification based on the re-obtained accessory list file and file verification information until the list verification information is consistent with the file verification information.

[0042] Continue to refer Figure 1 S120: Detect the connection status of each accessory device according to the accessory list information to obtain the connection status of each accessory device.

[0043] Specifically, the connection status detection of the accessory device refers to detecting whether the accessory device is online, so the connection status of the accessory device includes two results: online status and offline status. If an accessory device is in an online status, it means that the accessory device is in an on state, and the laser processing device can use the function of the accessory device; if an accessory device is in an offline state, it means that the accessory device is in an off state, and the laser processing device cannot use the function of the accessory device.

[0044] In one embodiment of the present application, Figure 3 As shown, the process of detecting the connection status of each accessory device specifically includes S121 to S123, which are as follows: S121. Send a polling packet to each accessory device according to the number of accessory devices included in the target accessory list information.

[0045] Specifically, the number of accessory devices included in the target accessory list information is the number of polling packets sent by the accessory detection device of the laser processing equipment. The accessory detection device of the laser processing equipment can periodically or regularly send polling packets to each accessory device.

[0046] In one embodiment of the present application, the laser processing equipment communicates with each accessory device through a communication engine, and the accessory detection device of the laser processing equipment registers the target accessory list information into the communication engine corresponding to the laser processing equipment, and then the communication engine can send a polling packet to each accessory device according to the number of accessory devices included in the target accessory list information. Here, the number of accessory devices included in the target accessory list information is reflected by which accessory devices are specifically included in the target accessory list information. For example, if the target accessory list information includes accessory device 1 and accessory device 2, then the number of accessory devices is 2.

[0047] S122: If a polling reply packet based on the polling packet feedback from the accessory device is received within a set time period, it is determined that the connection state of the accessory device is an online state.

[0048] S123: If no polling reply packet based on the polling packet feedback from the accessory device is received within the set time period, it is determined that the connection state of the accessory device is an offline state.

[0049] Specifically, if an accessory device can receive a polling packet, it will generate a polling reply packet to be fed back to the accessory detection device of the laser processing device. In this way, the accessory detection device of the laser processing device can determine the connection status of the accessory device by whether the polling reply packet fed back by the accessory device is received. Specifically, if the accessory detection device of the laser processing device receives a polling reply packet fed back by the accessory device based on the polling packet, it can be determined that the accessory device is in an online state; if the accessory detection device of the laser processing device fails to receive a polling reply packet fed back by the accessory device based on the polling packet, it can be determined that the accessory device is in an offline state.

[0050] In one embodiment of the present application, the accessory detection device of the laser processing equipment needs to determine whether a polling reply packet is received within a set time after sending the polling packet. If the time to receive the polling reply packet exceeds the set time, that is, the reception of the polling reply packet times out, then it is also considered that the polling reply packet based on the feedback of the accessory device based on the polling packet has not been received. For example, the set time is 3 seconds. In this way, it can be avoided that the accessory device does not feedback the polling reply packet for a long time, resulting in the inability to determine the connection status of the accessory device for a long time. It can also be avoided that the accessory device with a polling reply packet reception timeout is set to an online state and affects the subsequent use of the accessory device by the laser processing device. This is because the polling reply packet reception timeout usually indicates that the data transmission efficiency between the accessory device and the laser processing equipment is low or the network connection is unstable. If it is determined to be online, when the accessory device is used in the subsequent laser processing process, it is easy to cause poor laser processing effect when the data transmission efficiency is low or the network connection is unstable.

[0051] In one embodiment of the present application, each accessory device and the laser processing device may be connected in parallel or serial communication. For example, when the accessory device and the laser processing device are connected using an RS485 bus, it is a parallel communication connection, that is, the laser processing device can simultaneously transmit data with multiple accessory devices. When the accessory device and the laser device use a serial port communication, it is a serial communication connection, that is, the laser processing device can only transmit data with one accessory device at a time.

[0052] When a parallel communication connection is used, after the laser processing equipment sends multiple polling reply packets, if each accessory device feeds back a polling reply packet at the same time, data conflict will occur. To avoid this problem, each accessory device can feed back a polling reply packet to the laser processing equipment based on the corresponding reply packet delay. Then, the accessory detection device of the laser processing equipment can receive the polling reply packets fed back by each accessory device based on its own reply packet delay.

[0053] In one embodiment of the present application, the corresponding packet return delay of each accessory device can be pre-configured in each accessory device, and each accessory device can also use a specified calculation method to calculate the corresponding packet return delay in real time. The packet return delay must be less than the set time length for determining whether the polling packet is received.

[0054] In one embodiment of the present application, the packet return delay can be calculated using a random number algorithm. During the calculation, the chip identifier contained in each accessory device is used as a random number seed, and the preset delay range is used as the packet return delay value range. A value within the preset delay range can be calculated, and the value is the packet return delay corresponding to each accessory device. The chip identifier contained in the accessory device is unique, so the packet return delays of each accessory device calculated based on the chip identifier contained in each accessory device as a random number seed are different, so data conflicts during feedback polling packet return can be avoided. Exemplarily, the chip identifier is a chip ID, such as 123456, and the preset delay range can be 1~10ms.

[0055] In one embodiment of the present application, if each accessory device is connected to the laser processing device through serial communication, then the accessory detection device of the laser processing device sequentially receives the polling response packets fed back by each accessory device based on the polling packet according to the connection order of each accessory device. In the case of a serial communication connection, the polling packet sent by the laser processing device is first transmitted to the first accessory device. After responding to the polling packet, the first accessory device forwards the polling packet to the next accessory device. The polling packets are sent in this order until they are sent to the last accessory device. In this case, the laser processing device can send only one polling packet, and sequentially receive the polling response packets fed back by each accessory device according to the connection order of each accessory device.

[0056] Continue to refer Figure 1 , S130, generating an online list of accessories corresponding to the laser processing equipment according to the connection status of each accessory device.

[0057] Specifically, after detecting the connection status of each accessory device, the accessory detection device of the laser processing equipment can add the accessory device in the online state to the accessory online list. The accessory online list can clearly display the various accessory devices currently connected to the laser processing equipment, thereby facilitating the laser processing equipment to use the functions of the relevant accessory devices to achieve intelligent operation.

[0058] In the technical solution provided in the embodiment of the present application, the laser processing equipment obtains target accessory list information, and the target accessory list information includes information of each accessory device supported by the laser processing equipment; then, the connection status of each accessory device is detected according to the target accessory list information to obtain the connection status of each accessory device; finally, an online accessory list corresponding to the laser processing equipment can be generated according to the connection status of each accessory device, thereby realizing automatic detection of each accessory device. Based on the online accessory list, it can be checked which accessory devices are online, and then it can be determined which operations the laser processing equipment can currently perform. There is no need for operators to manually determine the connection status of the accessory devices, which improves the automation level of the laser processing equipment and thus improves the intelligence level of the laser processing equipment.

[0059] In one embodiment of the present application, the accessory online list is a newly generated list based on the accessory devices in the online state, and the process specifically includes: treating the accessory devices whose connection state is online as online accessory devices, generating the second device identifier of the online accessory devices according to the first device identifier contained in the polling reply packet of the online accessory devices; generating the accessory online list corresponding to the laser processing equipment according to the first device identifier and the second device identifier of the online accessory devices.

[0060] Specifically, the first device identifier includes a neuron ID and a sub-ID. The neuron ID represents a predefined accessory product series, such as a neuron ID = E represents an educational product series, and a neuron ID = G represents an entertainment product series. The sub-ID represents the type of accessory device, such as a sub-ID = X1 represents an X1 model air pump, a sub-ID = X2 represents an X2 model air pump, and a sub-ID = Y1 represents a Y1 model purifier. The combination of the neuron ID and the sub-ID is equivalent to defining the specific type of the accessory device and the accessory product series. Each accessory device can store its own first device identifier, and when feeding back a polling packet, add the first device identifier to the polling packet, so that the accessory detection device of the laser processing equipment can determine which type of accessory device it is based on the first device identifier in the polling packet after receiving the polling packet. The second device identifier is an address code, which is the identification information used by the laser processing equipment to distinguish and identify specific accessory devices, and usually represents the number of specific accessory devices under the same accessory type. For example, if there are 2 air pumps, the address codes can be 0001 and 0002 respectively.

[0061] In one embodiment of the present application, when generating the second device identifier, first determine the device type of the online accessory device according to the first device identifier contained in the polling response packet of the online accessory device; then determine the second device identifier of the previous online accessory device of the same device type as the online accessory device; finally, increase the second device identifier of the previous online accessory device by a set value as the second device identifier of the online accessory device. Exemplarily, if the first device identifier in the polling response packet includes neuron ID=E and sub-ID=X1, it can be determined that the online accessory device is an X1 model air pump in the educational product series. Assuming that the address code of the previous air pump is 0001, the address code of the previous air pump can be added by 1, and the address code of the current air pump can be obtained as 0002.

[0062] In particular, if the second device identifier of the previous online accessory device does not exist, it means that the current online accessory device is the first online device of this type of accessory device, so the second identifier of the current online device can be set to an initial value, such as the initial value of the address code is set to 000 or 001.

[0063] It can be seen that the address code of the online accessory device is generated after receiving the polling reply packet, and the address codes of the same type of online accessory devices are incremented, so the address code size of different online accessory devices of the same type can be determined based on the corresponding polling reply packet reception time. In a parallel communication connection, the polling reply packet reception time is determined based on the packet return delay of the accessory device. The smaller the packet return delay, the earlier the polling reply packet reception time, and the corresponding accessory device is arranged in the front. In a serial communication connection, the polling reply packet reception time is determined based on the connection order of the accessory device. Whether it is a parallel communication connection or a serial communication connection, the address code of the current online accessory device is obtained by adding a set value to the address code of the previous online accessory device of the same type.

[0064] In one embodiment of the present application, the address codes of multiple online accessory devices of the same device type are different from each other, and the address codes of online accessory devices corresponding to different device types can be the same. For example, if there are two connected smart air pumps and two connected smart purifiers, the address codes of the two smart air pumps can be set to 1 and 2 respectively, and the address codes of the two smart purifiers can also be set to 1 and 2 respectively. Optionally, the address codes of each online accessory device can also be set to be different from each other.

[0065] In one embodiment of the present application, the target accessory list information is stored in the laser processing equipment in the form of a key-value pair structure, which describes the first device identification of each accessory device. When stored through a key-value pair, the accessory name and the first device identification can form a key-value pair, for example, "Air Pump-E, X1" is a key-value pair. The neuron ID and sub-ID in the first device identification can also form a key-value pair, for example, "E-X1" is a key-value pair. After receiving the polling reply packet, the laser processing equipment can match the first device identification in the polling reply packet with the stored first device identification to determine the device type.

[0066] In one embodiment of the present application, when the connection status of the accessory device is not detected, the target accessory list information only reflects the specific accessory type, and the address code corresponding to the accessory device is a null value. After receiving the polling reply packet fed back by the accessory device, the accessory detection device of the laser processing equipment assigns an address code to the accessory device in the online state, and fills the address code into the address code field corresponding to the accessory device. For example, when the connection status of the accessory device is not detected, the target accessory list information includes "E, X1-?", where "?" represents a null value. After detecting the connection status, assuming that the address code generated for the smart purifier is 01, the target accessory list information is changed to "E, X1-01". It should be noted that the accessory detection device of the laser processing equipment will not assign address codes to accessory devices in the offline state.

[0067] In one embodiment of the present application, the online accessories list is a list updated based on the target accessories list information, and the update includes: if the connection status of the accessory device is offline, the accessory device is deleted from the target accessories list information; if the connection status of the accessory device is online, the accessory device is retained in the target accessories list information. The online accessories list corresponding to the laser processing equipment is obtained based on the updated target accessories list information. In this process, the content of the online accessories list still includes the first device identification and the second device identification of the online accessory device. The generation process of these two device identifications is as described above and will not be repeated.

[0068] In one embodiment of the present application, after generating an online accessory list, the accessory detection of the laser processing equipment can periodically detect the connection status of each accessory device based on the target accessory list information, and add the accessory devices detected as online to the online accessory list, while removing the accessory devices detected as offline from the online accessory list.

[0069] It should be noted that although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0070] Figure 4 The schematic diagram shows the architecture of a laser processing system using the technical solution of the present application.

[0071] like Figure 4 As shown, the laser processing system may include a host computer 410, a laser processing device 420 and an accessory device 430. The host computer 410 refers to a device that can send information and instructions to the laser processing device 420, such as a computer, a mobile terminal, etc. The laser processing device 420 is a device that can use lasers to process materials, such as a laser engraver, a laser cutter, a laser printer, etc. The accessory device 430 refers to a device connected to the laser processing device 420 that can assist the laser processing device in performing certain functions, such as an intelligent air pump, an intelligent purifier, a fire extinguisher box, etc.

[0072] The host computer 410 and the laser processing device 420 are connected through a network. The network can be a communication medium of various connection types that can provide a communication link between the host computer 410 and the laser processing device 420. It can be a wired communication link or a wireless communication link. For example, when the host computer 410 is a personal computer (referred to as a PC host computer), it can be connected to the laser processing device 420 through a USB (Universal Serial Bus); when the host computer 410 is a mobile terminal, an application program (i.e., a mobile terminal APP) for controlling the laser processing device 420 can be installed on the mobile terminal, and connected to the laser processing device 420 through WiFi (Wireless Fidelity) technology. There can be multiple accessory devices 430, and the laser processing device 420 and the accessory device 430 can also be connected through a network. For example, the laser processing device 420 and the accessory device 430 are connected through RS485 bus, serial port, Bluetooth, etc.

[0073] In this embodiment, the host computer 410 is used to send information and instructions to the laser processing device 420, such as sending accessory list information, broadcast information, etc. The laser processing device 420 can detect the connection status of each accessory device 430 according to the accessory list information sent by the host computer 410 to generate an online accessory list.

[0074] In one embodiment of the present application, the technical solution of the present application can be implemented by the laser processing device 430, and can also be implemented by the host computer 410, the laser processing device 420 and the accessory device 430. An example of the host computer 410, the laser processing device 420 and the accessory device 430 jointly implementing the technical solution of the present application is given below. The host computer 410 sends the supported accessory list information (the information mainly includes the accessory device type and the device address code) to the TF card of the laser processing device 420 via USB or WiFi, and then the laser processing device 420 starts to automatically identify the accessory device 430 through the neural protocol. Figure 5-Figure 6 Describe this process in detail.

[0075] Figure 5 The flowchart schematically shows the updating process of the accessory list information in one embodiment of the present application. Figure 5 As shown, the updating process of the accessory list information includes S510 to S540, which are as follows: S510, the host computer reads the list and information of accessories supported by the server. Every time a new accessory device is developed, the operator will add the new accessory device information to the original accessory device list and update it to the server. The host computer can obtain the latest accessory list information from the server.

[0076] S520, the upper computer connects to the lower computer and obtains the list of accessories stored in the lower computer. The lower computer corresponding to the upper computer refers to the laser processing equipment. In this step, the upper computer sends a broadcast message to the laser processing equipment to determine the model of the laser processing equipment based on the response information of the laser processing equipment and obtain the corresponding accessory list file. Taking the laser processing equipment as a laser cutting machine as an example, the upper computer can query the model of the laser cutting machine through the USB or HTTP LAN device discovery function to obtain the accessory equipment supported by the hardware interface of this laser cutting machine and its accessory equipment list.

[0077] S530, determine whether the accessories list is updated. The host computer reads the accessories list file in the TF card of the laser cutting machine, and then compares the file version. If the version is updated, the new accessories list file is sent to the TF card of the laser cutting machine through the file transfer protocol.

[0078] S540, the lower computer stores the new accessory list in the TF card. After receiving the file, the laser cutting machine generates list verification information through MD5, and matches it with the MD5 file verification information sent by the upper computer to ensure the integrity of the file. If the two are consistent, there is no need to update the accessory list information, and the accessory list information currently stored in the laser cutting machine is the target accessory list information; if the two are inconsistent, the accessory list information needs to be updated, and the upper computer sends the latest version of the accessory list information to the laser cutting machine for storage.

[0079] After obtaining the target accessories list information, the lower computer detects the accessories. Figure 6 A flowchart of an accessory device detection process provided by an embodiment of the present application is schematically shown. Figure 6 As shown, the accessory device detection process includes S610 to S650, which are as follows: S610, the lower computer obtains the accessory information list in the TF card and puts it into the requested memory. The laser cutting machine obtains the target accessory list information in the TF card after powering on, and puts the target accessory list information into the memory of the program malloc in the form of a key-value pair-like structure, so that the detection program can read and use the target accessory list information. The key-value pair structure describes the neuron ID and sub-ID. The neuron ID is used to identify the accessory type of the accessory device, and the sub-ID is used to identify the address code of the accessory device.

[0080] S620: The laser cutting machine registers each accessory in the communication engine, that is, registers the accessory type in the communication engine, so as to facilitate communication with the accessory device.

[0081] S630, the communication engine task periodically polls the accessory device. The communication engine periodically sends polling packets according to the number of accessory types supported to query whether the accessory device is connected. When using RS485 bus communication, since it is a parallel communication connection, in order to avoid packet return conflicts, a random delay of 1~10ms is added to feedback the polling packet (the random number seed of the random packet return is the ID read inside the chip), and the address code is determined according to the packet return time (for the same type of accessory device, the address code of the device that returns the packet later is the address code of the device that returns the packet earlier plus one). If it is a communication method that can be connected serially, such as a serial port, the address code is determined by adding one to the address code before and after the connection (that is, the address code of the latter device is the address code of the previous device plus one). The address code is used to give different numbers to the same accessories to achieve the effect of separate control.

[0082] S640, the laser cutting machine automatically identifies which accessory it is through the neuron ID and sub-ID in the information packet replied by the accessory, which is equivalent to assigning a value to the key-value pair in the target accessory list information.

[0083] S650, laser cutting machine updates the accessories online list. The laser cutting machine will sort the accessories that receive a reply into the accessories online list. If no reply is received for three seconds, the device will be determined to be offline and removed from the online list. The accessories online list is convenient for the host computer to query and display the relevant connection topology.

[0084] The technical solution provided in the embodiment of the present application uses a low-cost and highly scalable accessory detection method using neuron ID and address code; through automatic identification, the upper and lower computers can determine the connected accessories, give full play to the performance of the accessories, achieve better results, and increase productivity.

[0085] The following introduces an embodiment of the device of the present application, which can be used to execute the accessory detection method of the laser processing equipment in the above embodiment of the present application. Figure 7 The structure block diagram of the accessory detection device of the laser processing equipment provided by the embodiment of the present application is schematically shown. Figure 7 As shown, the device comprises: An information acquisition module 710 is used to acquire target accessory list information, wherein the target accessory list information includes information of each accessory device supported and connected to the laser processing device; A status detection module 720 is used to detect the connection status of each accessory device according to the target accessory list information to obtain the connection status of each accessory device; The online list generating module 730 is used to generate an online list of accessories corresponding to the laser processing equipment according to the connection status of each accessory device.

[0086] In one embodiment of the present application, the information acquisition module 710 includes: A file acquisition unit, used to acquire a component list file and file verification information, wherein the component list file includes component list information; A verification information generating unit, used to generate list verification information according to the accessory list file; An information acquisition unit is used to use the accessory list information included in the accessory list file as the target accessory list information when the list verification information is consistent with the file verification information.

[0087] In one embodiment of the present application, the file acquisition unit is specifically used to: Determine the version of the accessory list file currently stored in the laser processing equipment, and obtain the version of the accessory list file stored in the server; When the target component list file version currently stored in the laser processing equipment is inconsistent with the component list file version stored in the server, the component list file stored in the server is acquired.

[0088] In one embodiment of the present application, the file acquisition unit is specifically used to: Acquire response information generated by the laser processing equipment based on the broadcast information sent by the host computer; According to the laser processing equipment model indicated by the response information, a parts list file corresponding to the laser processing equipment model is obtained from the server.

[0089] In one embodiment of the present application, the state detection module 720 includes: A polling packet sending unit, configured to send a polling packet to each accessory device according to the number of accessory devices included in the target accessory list information; an online status determination unit, configured to determine that the connection status of the accessory device is an online status if a polling response packet fed back by the accessory device based on the polling packet is received within a set time period; The offline state determining unit is configured to determine that the connection state of the accessory device is an offline state if no polling response packet fed back by the accessory device based on the polling packet is received within a set time period.

[0090] In one embodiment of the present application, the polling packet sending unit is specifically used to: The target accessory list information is registered in a communication engine corresponding to the laser processing device, so that the communication engine sends a polling packet to each accessory device according to the number of accessory devices included in the target accessory list information.

[0091] In one embodiment of the present application, the device further includes: A parallel packet return receiving module is used to receive polling packets generated by each accessory device based on the polling packet and fed back according to the packet return delay corresponding to the accessory device when the laser processing equipment and each accessory device are in parallel communication connection; wherein the packet return delay is calculated by a random number algorithm using the chip identifier contained in the accessory device as a random number seed and a preset delay range as a packet return delay value range; and the packet return delay is less than the set duration.

[0092] In one embodiment of the present application, the device further includes: The serial packet return receiving module is used to receive the polling packet feedback from each accessory device in sequence according to the connection order of each accessory device when the laser processing device and each accessory device are connected in serial communication.

[0093] In one embodiment of the present application, the online list generation module 730 includes: A second identifier generating unit, configured to regard an accessory device whose connection state is an online state as an online accessory device, and generate a second device identifier of the online accessory device according to a first device identifier included in a polling reply packet of the online accessory device; The online list generating unit is used to generate an online list of accessories corresponding to the laser processing equipment according to the first equipment identification and the second equipment identification of the online accessory equipment.

[0094] In one embodiment of the present application, the second identifier generating unit is specifically used to: Determine the device type of the online accessory device according to the first device identifier included in the polling response packet of the online accessory device; Determine a second device identifier of a previous online accessory device that is of the same device type as the online accessory device; The second device identification of the previous online accessory device is increased by a set value and used as the second device identification of the online accessory device.

[0095] In one embodiment of the present application, the online list generation module 730 is specifically used to: The target accessory list information is updated according to the connection status of each accessory device, wherein the updating includes: if the connection status of the accessory device is offline, deleting the accessory device from the target accessory list information; if the connection status of the accessory device is online, retaining the accessory device in the target accessory list information; Based on the updated target parts list information, an online list of parts corresponding to the laser processing equipment is obtained.

[0096] In one embodiment of the present application, the device further includes: The online list updating module is used to periodically detect the connection status of the accessory devices in the accessory online list to obtain the connection status of the accessory devices in the accessory online list; when the connection status of the accessory device in the accessory online list is offline, the accessory device is removed from the accessory online list.

[0097] The specific details of the accessory detection device for laser processing equipment provided in each embodiment of the present application have been described in detail in the corresponding method embodiments and will not be repeated here.

[0098] Figure 8 The block diagram schematically shows a computer system structure of the laser processing equipment used to implement the embodiment of the present application.

[0099] It should be noted that Figure 8 The computer system 800 of the laser processing equipment shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0100] like Figure 8As shown, the computer system 800 includes a central processing unit 801 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 802 (ROM) or the program loaded from the storage part 808 to the random access memory 803 (RAM). Various programs and data required for system operation are also stored in the random access memory 803. The central processing unit 801, the read-only memory 802 and the random access memory 803 are connected to each other through a bus 804. The input / output interface 805 (Input / Output interface, i.e., I / O interface) is also connected to the bus 804.

[0101] The following components are connected to the input / output interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.

[0102] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processor 801, various functions defined in the system of the present application are executed.

[0103] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0104] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0105] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0106] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution according to the implementation method of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation method of the present application.

[0107] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application.

[0108] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for detecting accessories of laser processing equipment, characterized in that: include: Acquire target accessory list information, wherein the target accessory list information includes information of each accessory device supported and connected by the laser processing device; Performing connection status detection on each accessory device according to the target accessory list information to obtain the connection status of each accessory device; An online list of accessories corresponding to the laser processing equipment is generated according to the connection status of each accessory device.

2. The method for detecting accessories of laser processing equipment according to claim 1, characterized in that: The step of obtaining target accessory list information includes: Obtaining an accessory list file and file verification information, wherein the accessory list file includes accessory list information; Generate list verification information according to the accessory list file; When the list verification information is consistent with the file verification information, the accessory list information included in the accessory list file is used as the target accessory list information.

3. The method for detecting accessories of laser processing equipment according to claim 2, characterized in that: Get the accessories list file, including: Determine the version of the accessory list file currently stored in the laser processing equipment, and obtain the version of the accessory list file stored in the server; When the target component list file version currently stored in the laser processing equipment is inconsistent with the component list file version stored in the server, the component list file stored in the server is acquired.

4. The method for detecting accessories of laser processing equipment according to claim 2, characterized in that: Get the accessories list file, including: Acquire response information generated by the laser processing equipment based on the broadcast information sent by the host computer; According to the laser processing equipment model indicated by the response information, an accessory list file corresponding to the model is obtained from the server.

5. The method for detecting accessories of laser processing equipment according to claim 1, characterized in that: Performing connection status detection on each accessory device according to the target accessory list information to obtain the connection status of the accessory device includes: Sending a polling packet to each accessory device according to the number of accessory devices included in the target accessory list information; If a polling reply packet based on the polling packet feedback from the accessory device is received within a set time period, determining that the connection state of the accessory device is an online state; If the polling reply packet fed back by the accessory device based on the polling packet is not received within the set time period, it is determined that the connection state of the accessory device is an offline state.

6. The method for detecting accessories of laser processing equipment according to claim 5, characterized in that: Sending a polling packet to each accessory device according to the number of accessory devices included in the target accessory list information includes: The target accessory list information is registered in a communication engine corresponding to the laser processing device, so that the communication engine sends a polling packet to each accessory device according to the number of accessory devices included in the target accessory list information.

7. The method for detecting accessories of laser processing equipment according to claim 5, characterized in that: After sending a polling packet to each accessory device according to the number of accessory devices included in the target accessory list information, the method further includes: When the laser processing equipment and the various accessory devices are connected in parallel communication, the polling reply packets generated by the various accessory devices based on the polling packets and fed back according to the reply delay corresponding to the accessory devices are received; wherein the reply delay is calculated using a random number algorithm with the chip identifier contained in the accessory device as a random number seed and a preset delay range as a reply delay value range; and the reply delay is less than the set duration.

8. The method for detecting accessories of laser processing equipment according to claim 5, characterized in that: After sending a polling packet to each accessory device according to the number of accessory devices included in the target accessory list information, the method further includes: When the laser processing device is connected to the accessory devices in serial communication, the polling response packets fed back by the accessory devices based on the polling packets are received in sequence according to the connection sequence of the accessory devices.

9. The method for detecting accessories of laser processing equipment according to claim 5, characterized in that: Generate an online list of accessories corresponding to the laser processing equipment according to the connection status of each accessory device, including: The accessory device whose connection state is online is regarded as an online accessory device, and a second device identifier of the online accessory device is generated according to the first device identifier included in the polling reply packet of the online accessory device; An online list of accessories corresponding to the laser processing equipment is generated according to the first equipment identification and the second equipment identification of the online accessory equipment.

10. The method for detecting accessories of laser processing equipment according to claim 9, characterized in that: Generating a second device identifier of the online accessory device according to the first device identifier included in the polling response packet of the online accessory device includes: Determine the device type of the online accessory device according to the first device identifier included in the polling response packet of the online accessory device; Determine a second device identifier of a previous online accessory device that is of the same device type as the online accessory device; The second device identification of the previous online accessory device is increased by a set value and used as the second device identification of the online accessory device.

11. The method for detecting accessories of laser processing equipment according to claim 5, characterized in that: Generate an online list of accessories corresponding to the laser processing equipment according to the connection status of each accessory device, including: The target accessory list information is updated according to the connection status of each accessory device, wherein the updating includes: if the connection status of the accessory device is offline, deleting the accessory device from the target accessory list information; if the connection status of the accessory device is online, retaining the accessory device in the target accessory list information; Based on the updated target parts list information, an online list of parts corresponding to the laser processing equipment is obtained.

12. The method for detecting accessories of laser processing equipment according to claim 1, characterized in that: After generating an online list of accessories corresponding to the laser processing equipment according to the connection status of each accessory device, the method further includes: Periodically detecting the connection status of the accessory devices in the accessory online list to obtain the connection status of the accessory devices in the accessory online list; When the connection status of an accessory device in the accessory online list is offline, the accessory device is removed from the accessory online list.

13. A component detection device for laser processing equipment, characterized in that: include: An information acquisition module, used to acquire target accessory list information, wherein the target accessory list information includes information of each accessory device supported and connected by the laser processing device; A status detection module, used to detect the connection status of each accessory device according to the target accessory list information to obtain the connection status of each accessory device; The online list generation module is used to generate an online list of accessories corresponding to the laser processing equipment according to the connection status of each accessory device.

14. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for detecting accessories of laser processing equipment according to any one of claims 1 to 12 is implemented.

15. A laser processing device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; Wherein, the processor executes the executable instructions so that the laser processing equipment executes the accessory detection method for laser processing equipment as described in any one of claims 1 to 12.

16. A laser processing system, characterized in that: The laser processing system is used to execute the accessory detection method for laser processing equipment described in any one of claims 1 to 12, and the laser processing system includes: a host computer, an accessory device and a laser processing device, the laser processing device is connected to the host computer and the accessory device respectively; the host computer is used to send accessory list information to the laser processing equipment; the laser processing equipment detects the accessory device according to the accessory list information sent by the host computer.