CN117354333A - Information transmission method and device in laser system - Google Patents

Information transmission method and device in laser system Download PDF

Info

Publication number
CN117354333A
CN117354333A CN202210765151.0A CN202210765151A CN117354333A CN 117354333 A CN117354333 A CN 117354333A CN 202210765151 A CN202210765151 A CN 202210765151A CN 117354333 A CN117354333 A CN 117354333A
Authority
CN
China
Prior art keywords
data
instruction data
control board
board card
address information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210765151.0A
Other languages
Chinese (zh)
Inventor
樊飞
詹晓鸿
覃成东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Makeblock Co Ltd
Original Assignee
Makeblock Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Makeblock Co Ltd filed Critical Makeblock Co Ltd
Priority to CN202210765151.0A priority Critical patent/CN117354333A/en
Publication of CN117354333A publication Critical patent/CN117354333A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides an information transmission method and device in a laser system, wherein a plurality of controllers are distributed in the laser system, and each controller comprises a main control board card, a motion control board card connected with the main control board card and other board cards connected with the motion control board card; the method comprises the following steps: the main control board card generates instruction data which are used for controlling and executing the service functions of the laser system; data distribution is carried out on the main control board card through an adaptive communication protocol, wherein the communication protocol is from a plurality of communication protocols supported between the main control board card and the motion control board card; the motion control board card obtains instruction data through a bound interface; unpacking and reading relevant instruction data to obtain address information corresponding to a controller for analyzing and processing the instruction data; and initiating the analysis and the processing of the instruction data in the controller according to the address information. The method solves the communication problem among multiple controllers in the use of the laser system, and further improves the information circulation performance among the controllers in the laser system.

Description

Information transmission method and device in laser system
Technical Field
The present disclosure relates to the field of laser processing control, and in particular, to a method and an apparatus for transmitting information in a laser system.
Background
Along with the development of a series of machines related to laser processing, under the drive of high-degree-of-freedom creation, the traditional industrial laser cutting machine is optimized and evolved by advanced technology to form a desktop-level intelligent hardware product, so that the laser processing system is different from the industrial laser processing by the built laser system to provide various business functions.
In order to continuously meet the realization of various services, various controllers are often arranged on hardware of a laser system, and along with the continuous enrichment and optimization of service functions, the controllers distributed in the laser system also tend to be enriched, and the multiple controllers formed on the hardware structure can cause difficulties in the communication process, so that the performance of information circulation among the controllers is obviously reduced.
Disclosure of Invention
An object of the present application is to improve the performance of information communication between controllers in a laser system, and to solve the problem of communication between multiple controllers in use of the laser system.
According to an aspect of an embodiment of the application, an information transmission method in a laser system is disclosed, a plurality of controllers are distributed in the laser system, each controller comprises a main control board card, a motion control board card connected with the main control board card and other board cards connected with the motion control board card, and the controllers are used for executing service functions of the laser system;
The method is deployed on a plurality of controllers and processes information circulation among the controllers, and comprises the following steps:
responding to the service function trigger of the laser system, the main control board card generates instruction data, and the instruction data is used for controlling a corresponding controller to execute the service function of the laser system;
the main control board card distributes data through the communication protocol adapted to the instruction data, wherein the communication protocol is from a plurality of communication protocols supported between the main control board card and the motion control board card;
the motion control board card obtains the distributed instruction data through an interface bound by the motion control board card;
obtaining address information corresponding to a controller for analyzing and processing the instruction data through unpacking and reading related to the instruction data;
and initiating the analysis and the processing of the instruction data in the corresponding controller according to the address information.
According to an aspect of the embodiment of the present application, the data distribution performed by the communication protocol adapted to the instruction data through the main control board includes:
the main control board card dynamically switches the communication protocol configured by the main control board card for sending the instruction, wherein the communication protocol is specified by the instruction data;
Packaging the instruction data through the switched communication protocol to obtain a data unit carrying the instruction data;
and sending the data unit to the motion control board card through an interface to which the instruction data is associated.
According to an aspect of the embodiments of the present application, the encapsulating the instruction data by the switched communication protocol to obtain a data unit carrying the instruction data includes:
generating address information according to the controller mapped by the instruction data;
and encapsulating the address information and the instruction data with the defined packet header identifier and the packet tail identifier to obtain a frame of data, wherein the frame of data is a data unit for bearing the instruction data.
According to an aspect of the embodiments of the present application, the communication protocol includes a reliability transmission protocol, and the encapsulating the instruction data by the switched communication protocol obtains a data unit carrying the instruction data, including:
carrying out reliability encapsulation on the instruction data or the obtained frame data to obtain a reliability transmission protocol packet;
and encapsulating the reliability transmission protocol packet into frames to obtain data frames serving as data units.
According to an aspect of the embodiments of the present application, the obtaining, by unpacking and reading related to the instruction data, address information corresponding to a controller that parses the instruction data includes:
discarding the packet head identifier and the packet tail identifier in the received frame data to obtain data fragments;
and reading address information corresponding to a controller for analyzing and processing the instruction data from the data fragments.
According to an aspect of the embodiments of the present application, the obtaining, by unpacking and reading related to the instruction data, address information corresponding to a controller that parses the instruction data includes:
discarding the frame head and the frame tail of the received data frame to obtain a reliability transmission protocol packet;
unpacking the reliability transmission protocol packet to obtain a frame of data;
and reading and analyzing address information and instruction data corresponding to the controller for processing the instruction data from the frame data.
According to an aspect of the embodiments of the present application, the initiating the parsing and processing of the instruction data in the corresponding controller according to the address information includes:
and judging whether the address information is consistent with the self address, and if not, executing forwarding processing of the instruction data according to the address information.
According to an aspect of the embodiment of the present application, the forwarding processing of the instruction data according to the address information includes:
encapsulating the address information and the instruction data with the defined packet header identifier and the packet tail identifier again to obtain a frame of data carrying the instruction data;
and forwarding the frame data to the corresponding controller through the interface mapped by the address information.
According to an aspect of the embodiment of the present application, performing the unpacking related to the instruction data to obtain a frame of data, and performing forwarding processing of the instruction data according to the address information includes:
and forwarding the frame of data obtained by unpacking to a corresponding controller by an interface adapting to the address information mapping.
According to an aspect of an embodiment of the application, an information transmission device in a laser system is disclosed, a plurality of controllers are distributed in the laser system, each controller comprises a main control board card, a motion control board card connected with the main control board card and other board cards connected with the motion control board card, and the controllers are used for executing service functions of the laser system;
the device is deployed on a plurality of controllers and processes information circulation among the controllers, and the device comprises:
The instruction generation module is used for responding to the service function trigger of the laser system and generating instruction data for the main control board card, wherein the instruction data is used for controlling the corresponding controller to execute the service function of the laser system;
the data distribution module is used for distributing data on the main control board card through a communication protocol matched with the instruction data, wherein the communication protocol is from a plurality of channels supported between the main control board card and the motion control board card;
the data acquisition module is used for acquiring the distributed instruction data for the motion control board card through the self-binding interface;
the unpacking and reading module is used for obtaining address information corresponding to a controller for analyzing and processing the instruction data for the motion control board card through unpacking and reading related to the instruction data;
and the analysis processing module is used for initiating the analysis and the processing of the instruction data in the corresponding controller according to the address information.
In this embodiment, in order to implement multiple service functions, a plurality of controllers are distributed in a laser system, and the controllers at least include a main control board card, a motion control board card connected to the main control board card, and other board cards connected to the motion control board card, so as to execute the service functions of the laser system, on this, in order to process the information flow between each controller, in response to the triggering of the service functions of the laser system, the main control board card first generates instruction data, where the instruction data is used to control the corresponding controller to execute the service functions, then the main control board card performs data distribution through a communication protocol adapted to the instruction data, where the communication protocol is from a plurality of communication protocols supported between the main control board card and the motion control board card, the motion control board card obtains distributed instruction data through a bound interface, and analyzes and processes address information corresponding to the controllers of the instruction data through detachment and reading related to initiate the analysis and processing of the instruction data in the corresponding controllers according to the address information, so as to solve the problem of the communication between multiple controllers in the use of the laser system under the effect of the adaptive communication protocol and the address information, and further improve the performance of the information flow between the controllers in the laser system.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned in part by the practice of the application.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.
Fig. 1 is a schematic diagram of an architecture used in the embodiments of the present application.
Fig. 2 shows a flow chart of a method of information transmission in a laser system according to one embodiment of the present application.
Fig. 3 shows a flow chart of a method of information transmission in a laser system according to another embodiment of the present application.
Fig. 4 is a flowchart illustrating steps for encapsulating command data by switching a communication protocol to obtain a data unit carrying the command data according to one embodiment of the present application.
Fig. 5 is a flowchart illustrating steps for encapsulating command data by switching a communication protocol to obtain a data unit carrying the command data according to one embodiment of the present application.
Fig. 6 shows a flow chart of a method of information transmission in a laser system according to another embodiment of the present application.
Fig. 7 is a flowchart showing the steps of obtaining address information corresponding to a controller parsing instruction data by instruction data dependent unpacking and reading, according to the embodiment shown in fig. 5.
Fig. 8 shows a flow chart of a method of information transmission in a laser system according to another embodiment of the present application.
Fig. 9 shows a flowchart of the forwarding process steps for executing instruction data according to address information according to the disclosed embodiment of fig. 8.
Fig. 10 shows a hardware topology diagram related to a desktop level laser device according to an embodiment of the present application.
Fig. 11 shows a controller topology and a data flow diagram according to an embodiment of the present application.
Fig. 12 shows a mapping diagram between a communication protocol and an interface according to an embodiment of the present application.
Fig. 13 is a schematic diagram of a data format implemented by combining an address encapsulation protocol, a reliability transmission protocol and a frame protocol in an embodiment of the present application.
Fig. 14 shows a schematic diagram of G code transmission formats only existing between the main control board card and the motion control board card in the embodiment of the present application.
Fig. 15 shows a block diagram of an information transmission device in a laser system according to an embodiment of the present application.
Fig. 16 shows a hardware configuration diagram of a desktop level laser apparatus according to one embodiment of the present application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these example embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The drawings are merely schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more example embodiments. In the following description, numerous specific details are provided to give a thorough understanding of example embodiments of the present application. One skilled in the relevant art will recognize, however, that the aspects of the application may be practiced without one or more of the specific details, or with other methods, components, steps, etc. In other instances, well-known structures, methods, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
Referring to fig. 1, fig. 1 is an architecture applied to an embodiment of the present application. The architecture may include: at least one external device 11, such as an upper computer, and a desktop level laser device 12 facing each external device 11, can be used by at least one production fixture (not shown) of the desktop level laser device, so as to form a function capable of performing laser engraving or cutting for a user. The external device 11 and the desktop-level laser device 12 realize interaction of data communication through an adaptive communication port.
It should be understood that the number of external devices 11 in fig. 1 is merely illustrative. There may be any number of external devices 11, as desired for implementation.
Some of the technical solutions of the embodiments of the present application may be implemented based on the architecture shown in fig. 1 or a modified architecture thereof.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for transmitting information in a laser system according to an embodiment of the present application, which provides a method for transmitting information in a laser system constructed by a desktop-level laser device.
Firstly, on the hardware structure of the desktop-level laser equipment, a plurality of controllers are distributed on the realized laser system, and the service functions of the laser system are realized through the mutual coordination among the controllers.
The mutual coordination among the controllers comprises the information circulation among the controllers and the response to the circulated information, and further the corresponding controllers analyze and process the obtained instructions under the control of the circulated information.
The controller includes a main control board card, a motion control board card connected with the main control board card, and other board cards connected with the motion control board card, so that service functions of the laser system are executed under the action and cooperation of different controllers.
The information transmission method in the laser system shown in fig. 2 is deployed on several controllers as an execution of the communication process in the laser system, and processes the information flow between the controllers.
The information transmission method in the laser system comprises the following steps:
Step S210, responding to the service function trigger of the laser system, the main control board card generates instruction data, and the instruction data is used for executing the service function of the laser system by the corresponding controller;
step S220, data distribution is carried out on the main control board card through a communication protocol with the adaptive command data, wherein the communication protocol is from a plurality of communication protocols supported between the main control board card and the motion control board card;
step S230, the motion control board card obtains distributed instruction data through an interface bound by the motion control board card;
step S240, obtaining address information corresponding to a controller for analyzing and processing the instruction data through unpacking and reading related to the instruction data;
and step S250, analyzing and processing the instruction data in the corresponding controller according to the address information.
These steps are described in detail below.
In step S210, it should be first explained that, for the laser system constructed by the desktop-level laser device, the service functions thereof will include, but are not limited to: firmware upgrade, camera mapping, file uploading and downloading, system configuration, processing control, debugging and machine state reporting. Different service functions are adapted to different service scenes to realize the operation of the laser system, for example, under factory debugging scenes of a factory, and each generated debugging instruction completes the processing of debugging service through the execution of the communication process of the application.
Triggering service functions on the laser system, so that the master control board card responds to the triggered service to generate instruction data. The triggering of service functions on the laser system, including the triggering of function keys on the desktop level laser device, and the driving of laser processing programs running in a directly connected or network connected host computer, such as a PC, mobile terminal, are not limited herein.
The main control board card is linked with function keys and an upper computer distributed on the desktop laser equipment, and responds to generate instruction data along with the triggering of the service function, and other controllers are controlled to execute corresponding operations through the instruction data distribution executed on the main control board card, so that the triggered service function is achieved.
Based on the above, the main control board card is controlled by the triggering of the service function to generate instruction data for controlling the main control board card and other controllers.
The generated instruction data is adapted to the triggered service function, and may be an instruction corresponding to the firmware upgrade file, a G code, an M code, or a peripheral control instruction in a data form.
Corresponding instruction data are generated by a main control board card for controlling the business processing of the main control board card and the business processing processes of other controllers.
In step S220, the main control board card performs data distribution on the generated instruction data so as to enable the instruction data to be transmitted to a controller capable of analyzing and processing the instruction through the progress of data distribution.
It should be noted that, the data distribution executed by the main control board card includes a process of packaging and transmitting instruction data, which is different from a process of analyzing and processing instruction data performed by the main control board card itself. For the instruction data which belongs to the main control board card and needs to be processed, the data distribution is not executed, and the analysis and processing process is executed on the instruction data so as to complete the business processing on the main control board card. The analysis and processing of the instruction data are the process of analyzing the instruction data into executable data form and further executing corresponding operation according to the analyzed instruction, which is different from the data distribution process executed by other controllers.
The controller in the laser system is used for coupling the data distribution with the instruction data analysis position, the business processing of the controller is independent of the data distribution performed by the controller, the data distribution performed by the controller to other controllers is performed, the instruction data generated by the main control board card but required to be executed by the other controllers can be transmitted to the controller to which the instruction data belongs, namely the target controller, by the main control board card, and therefore the performance of the business processing and the orderly performance of the data distribution are guaranteed, and interference among the business processing and the data distribution cannot be generated.
Therefore, the data distribution and the business processing performed by the main control board card are independent and do not interfere with each other. In data distribution, the main control board card is preconfigured with a plurality of communication protocols, and the packaging and the transmission of instruction data are controlled through the combination of any one of the communication protocols and a plurality of the communication protocols, so that the instruction data with different service functions are adapted, and the purpose of adapting to different service scenes is achieved.
Specifically, the communication protocol configured by the main control board card includes a direct connection transmission protocol for controlling direct transmission of instruction data, an address encapsulation protocol for indicating an address for transmission of the instruction data to the target controller and encapsulating the instruction data, a reliability transmission protocol for ensuring reliable transmission of the instruction data, and a frame protocol for encapsulating protocol packets into frames. For the communication from the main control board card to the motion control board card, the instruction data is packaged and transmitted according to different communication protocols or communication protocol combinations which are adapted to different instruction data.
Furthermore, for the mutual adaptation between the instruction data and the communication protocol, the service function corresponding to the instruction data can be predefined and configured, and under the predefined and configured condition, the main control board card can adapt to a single communication protocol or a communication protocol combination according to the service function corresponding to the generated instruction data and the service scene.
For example, the instruction data generated by the triggering of the debugging service triggered under the factory debugging scene can be applicable to a protocol for controlling direct transmission of the instruction data, and the debugging can be completed rapidly and efficiently through the direct transmission.
For example, the user triggers the laser cutting function through the upper computer under the processing scene of the user, the upper computer controls the generation of G codes, and the G codes are transmitted to the motion control board card by the main control board card as instruction data, so that the production jig, such as a cutter head, can move and cut under the control of the G codes.
For another example, the controller distributed in the laser system may further include a water-cooling control board, and the laser system triggers the instruction data generated by the water-cooling function to be transmitted to the water-cooling control board by the main control board, the motion control board, and the like. The main control board card responds to instruction data generated by triggering of the water cooling function, firstly, a protocol for transmitting instruction addresses to the target controller and packaging the instruction data is adapted, then, after a packet header is added through a reliability transmission protocol, the protocol packet is packaged into frames, and finally, the frames are transmitted to the motion control board card under the control of the reliability transmission protocol, so that the reliability and the efficiency of subsequent forwarding are ensured.
Of course, it should be understood that the instruction data may also be encapsulated and transferred using only the protocol that indicates the address for transfer of the instruction data to the target controller and encapsulates the instruction data (i.e., the address encapsulation protocol), or other non-enumerated combinations of communication protocols may be employed, and are not limited and listed herein.
In summary, a plurality of communication protocols are supported between the main control board card and the motion control board card to adapt to instruction data corresponding to different service functions and service scenes, so that rich communication protocols are provided for realizing different service scenes, the communication flexibility is ensured, and the communication performance of the laser system is greatly improved.
After the main control board card generates instruction data, the data distribution process is executed through the adapted communication protocol for the instruction data which does not belong to the main control board card, namely the instruction data which does not need to be executed by the main control board card to complete the corresponding business processing process, so as to transmit the instruction controller to the target controller.
Referring also to fig. 3, fig. 3 is a flowchart illustrating a method for transmitting information in a laser system according to another embodiment of the present application, where the embodiment of the present application provides a method for transmitting information in a laser system.
In this embodiment, the step S220 of performing data distribution by using the communication protocol adapted to the instruction data on the main control board card may include:
step S221, the main control board dynamically switches the communication protocol configured by the main control board for transmitting the instruction data, wherein the communication protocol is designated by the instruction data;
step S222, packaging instruction data through the switched communication protocol to obtain a data unit carrying the instruction data;
step S223, sending the data unit to the motion control board card through the interface to which the instruction data is associated.
These steps are described in detail below.
In step S221, as indicated in the foregoing description, a plurality of communication protocols are supported between the main control board card and the motion control board card, so that the data transfer performed can select a more applicable communication protocol.
The main control board card selects a communication protocol for the instruction data by switching the communication protocol, and the selected communication protocol is specified by the instruction data. In other words, the instruction data designates the communication protocol, and the adapted communication protocol can be designated by the service function corresponding to the instruction data.
And the main control board card dynamically switches the communication protocol configured by the main control board card along with the different generated instruction data to obtain the currently-adapted communication protocol. Exemplary communication protocols specified by the instruction data include an address encapsulation protocol, a direct transfer protocol, a reliability transfer protocol, a combination of two protocols of a frame protocol, and a combination of three protocols of the address encapsulation protocol, the reliability transfer protocol, and the frame protocol.
In step S222, under the control of the dynamically switched communication protocol, the encapsulation of the instruction data is performed first, so as to obtain a data unit carrying the instruction data. According to different communication protocols, different encapsulation processes are carried out on the instruction data, and corresponding to the encapsulation processes, the obtained data unit carrying the instruction data comprises a frame of data formed by a network layer, a reliability transmission protocol packet formed by a transmission layer and a data frame in a data form.
As described above, the encapsulation of the instruction data adapts to different communication protocols, and the execution process is different.
Illustratively, under the control of an address encapsulation protocol, the instruction data is taken as original data, and address information of the target controller is added and encapsulated to obtain a frame of data; at this time, the frame data obtained by encapsulation can be directly transmitted to the motion control board card, or can be encapsulated layer by a reliability transmission protocol and a frame protocol, and finally the frame data is obtained and transmitted. Of course, for the encapsulation of the instruction data, the frame data can also be obtained directly under the control of the reliability transmission protocol and the frame protocol, and transmitted to the motion control board card.
Referring also to fig. 4, fig. 4 is a flowchart illustrating steps for encapsulating command data by switching a communication protocol to obtain a data unit carrying the command data according to one embodiment of the present application. The embodiment of the present application provides the step S222 of encapsulating the instruction data by using the switched communication protocol to obtain the data unit carrying the instruction data, which may include:
Step S301, generating address information according to a controller mapped by instruction data;
in step S302, the address information and the instruction data are encapsulated with the defined header identifier and the tail identifier, so as to obtain a frame of data, where the frame of data is a data unit carrying the instruction data.
These two steps are described in detail below.
In step S301, as described above, each instruction data is assigned to a controller, and the controller actually parses and processes the instruction data, so that each instruction data has a mapping relationship with a controller based on the service function to which it belongs. In the execution of step S301, address information is generated according to the mapping relationship between the service function to which the instruction data belongs and the controller, where the address information indicates the target controller to which the instruction data is finally transferred.
In step S302, the address encapsulation protocol defines a header identifier and a trailer identifier that are used, for example, the header identifier may be F0, and the trailer identifier corresponding thereto may be F7, which is not limited herein. The packet header identifier and the packet tail identifier are used for indicating which data are attributed to one protocol for continuous data transmission by the laser system, for example, the packet header identifier is F0, and the packet tail identifier is F7, which is necessarily attributed to the address encapsulation protocol of F0F7, so as to ensure the integrity and reliability of the protocol packet.
After the address information of the target controller is obtained, the address information and the instruction data are encapsulated together using the packet header identifier and the packet tail identifier to obtain one frame of data, at which time the frame of data will be the data unit carrying the instruction data.
Referring also to fig. 5, fig. 5 is a flowchart illustrating steps for encapsulating command data by switching a communication protocol to obtain a data unit carrying the command data according to one embodiment of the present application. The embodiment of the application introduces a reliability transmission protocol for the encapsulation of the instruction data, so that for the communication of the laser system, the instruction data can be directly transmitted to the motion control board card by using the reliability transmission protocol and the frame protocol on the one hand, and on the other hand, the encapsulation of the instruction data can be realized by introducing the reliability transmission protocol and the frame protocol on the basis of the address encapsulation protocol, namely combining the embodiment corresponding to fig. 4, and the transmission of the instruction data is executed under the control of the reliability transmission protocol.
The embodiment of the present application provides the step S222 of encapsulating the instruction data by the switched communication level to obtain the data unit carrying the instruction data, which may include:
Step S401, carrying out reliability encapsulation on instruction data or obtained frame data to obtain a reliability transmission protocol packet;
in step S402, the reliability protocol packet is encapsulated into a transport layer frame to obtain a data frame as a data unit.
These two steps are described in detail below.
In step S401, for encapsulation framing performed by the transport layer, it is encapsulated as raw data of a frame, which may be instruction data, or one frame of data encapsulated by the network layer via an address encapsulation protocol.
For the transmission realization in a laser system, the instruction data can be directly used as the original data of the reliability package, and the package is a reliability transmission protocol package, so that the reliability of the instruction data transmission is ensured, the reliability and the speed are enhanced for the transmission between a main control board card and a motion control board card, and the transmission of the instruction data is fast and reliable on the premise that the sequential operation of the laser system is ensured under the condition that the target controller is the motion control board card.
Thus, after the instruction data is used as the original data and the reliability package is directly performed to obtain the reliability transport protocol packet, the reliability transport protocol packet can be packaged into a frame through step S402 under the control of the frame protocol.
On the other hand, under the combination of the address encapsulation protocol, the reliability transfer protocol, and the frame protocol, the reliability encapsulation process performs reliability encapsulation with respect to one frame of data obtained under the control of the address encapsulation protocol.
Reliability encapsulation, whether performed on instruction data or a frame of data, is a process of adding a Header (Kcp Header) to data to be transmitted.
In step S402, the reliable transport protocol packet at the transport layer is encapsulated into a frame using a frame protocol to obtain a data frame, and the data frame is thus a data unit carrying instruction data.
In step S230, along with the data distribution executed by the main control board card on the instruction data, the motion control board card connected to the main control board card obtains the instruction data distributed by the main control board card through the self-binding interface.
The motion control board card and the main control board card are connected through a set interface. By way of example, the interface may be a USB serial port, a UART serial port, a Bluetooth interface, a WiFi interface, etc., without limitation.
The interfaces between the main control board card and the motion control board card are rich. And the interface for transmitting the instruction data is bound between the main control board card and the motion control board card. Correspondingly, the interface of the motion control board card for obtaining the instruction data is bound by the motion control board card adapting to the instruction data. Interface binding carried out by adapting instruction data can be specifically realized according to a communication protocol to which the instruction data is adapted, and can also be realized according to a target controller binding interface corresponding to the instruction data, no matter what binding relation is established, the interface binding is realized based on the corresponding relation between the instruction data and the communication protocol, and between the instruction data and the controller.
The master control board card is adapted to command data for transmission to the motion control board card via the bound interface, in particular transmission over the bound interface may be performed under control of a reliability transfer protocol. The interface of the motion control board card receives instruction data encapsulated by a transmission layer, such as a reliability transmission protocol packet, or a frame of data which is added with address information and encapsulated by a specific packet head identifier and a packet tail identifier at a network layer, and can also receive a data frame obtained by sequential encapsulation of the network layer and the transmission layer.
In step S240, the motion control board performs unpacking related to the instruction data through the execution of step S240, and reads address information from the unpacked data, where the address information is used to indicate a target controller of the instruction data, and the target controller is used to parse and process the instruction data to implement service processing, for example, the aforementioned G code that is used by the host computer to implement motion and cutting control on the laser system, and the target controller is the motion control board.
The address information may be, for example, a device identification of the target controller. The address information corresponding to the instruction data transmission can be obtained through the unpacking in step S240, and the address information will be added to the original instruction data in the process of packaging the instruction data, which is the process of packaging the instruction data.
For the motion control board, the read address information is used for indicating whether the instruction data is analyzed and processed by the motion control board or needs to be forwarded to other controllers, so that the unpacking and business processing processes of the motion control board can be decoupled under the action of the address information, the situation that the instruction data cannot be processed after analysis is not found any more, the business processing efficiency is greatly improved, and the system consumption is reduced.
Unpacking executed by the motion control board corresponds to instruction data encapsulation executed by the main control board, and the unpacking and the instruction data encapsulation are applicable to the same communication protocol.
Referring also to fig. 6, fig. 6 shows a flow chart of a method of information transmission in a laser system according to another embodiment of the present application. The embodiment of the application realizes the unpacking of the received frame data under the address encapsulation protocol.
Specifically, the step S240 of obtaining address information corresponding to the controller for parsing the processing instruction data through unpacking and reading related to the instruction data may include the following steps:
step S241a, discarding the packet header identifier and the packet tail identifier in the received frame data to obtain data fragments;
in step S242a, address information corresponding to the controller for analyzing the processing instruction data is read from the data fragment.
These two steps are described in detail below.
In step S241a, with the data transmission by the main control board, the motion control board receives one frame of frame data, and performs parsing on each frame of data to read address information therefrom.
As indicated above, the main control board card under the control of the address encapsulation protocol obtains a frame of data by adding address information to the instruction data and encapsulating the packet header identifier and the packet tail identifier; in response thereto, after the motion control board card receives a frame data, for the frame data, a data fragment including address information and instruction data is first obtained by discarding the packet header identifier and the packet tail identifier.
Under the control of the address encapsulation protocol, the data to be transmitted, i.e. the instruction data, is divided into a plurality of data fragments, i.e. data segments, and then the data fragments obtained by unpacking the data fragments comprise the address information and the instruction data, wherein the frame data is obtained by executing the package with the address information, the packet header identifier and the packet tail identifier.
In step S242a, the address information carried by the data slice is read, and the address information indicates the corresponding instruction data, that is, the instruction data carried in the data slice, to be transferred to the target controller.
Further, referring to fig. 7, fig. 7 is a flowchart illustrating steps for obtaining address information corresponding to a controller for parsing instruction data by unpacking and reading the instruction data according to the embodiment shown in fig. 5. As the encapsulation of packets proceeds under the control of the reliability transfer protocol and frame protocol shown in fig. 5, the embodiments of the present application will perform a corresponding unpacking process.
The step S240 of obtaining address information corresponding to the controller for parsing the processing instruction data through unpacking and reading related to the instruction data provided in the embodiment of the present application may include:
step S241b, discarding the frame head and frame tail of the received data frame to obtain a reliability transmission protocol packet;
step S242b, unpacking the reliability transmission protocol packet to obtain a frame of data;
step S243b, reads address information and command data corresponding to the controller for analyzing the processing command data from the frame data.
These steps are described in detail below.
In step S241b, the motion control board receives the data frame transmitted by the main control board, and first discards the frame header and the frame tail of the data frame, thereby obtaining the encapsulated reliability transport protocol packet.
In step S242b, the packet Header (Kcp Header) is discarded for the reliability transmission protocol during the unpacking process to obtain frame data, i.e. a frame data obtained by encapsulating the defined packet Header identifier, packet tail identifier and address information by the main control board card under the control of the address encapsulation protocol.
In step S243b, as described above, the frame data includes, but is not limited to, the header identifier, the address information, the instruction data, and the trailer identifier in the data format, and thus the motion control board card reads the address information and the instruction data from the parsed frame data. The read address information is used for indicating a target controller to which the instruction data is finally transmitted, and the instruction data is used for enabling the target controller to complete corresponding service processing so as to achieve a triggered service function.
That is, as the motion control board card receives, unpacks and reads the main control board card, address information and instruction data are obtained, and the address information and the instruction data are associated with each other. For the motion control board card, it is possible to first know which controller the instruction data needs to be processed by, based on the address information.
If the instruction data is processed by the motion control board, the motion control board analyzes and processes the instruction data. If the instruction data is not processed by the motion control board, the motion control board forwards the instruction data, and analysis and processing of the instruction data are not performed, so that the instruction data do not consume system resources of the motion control board.
In step S250, the motion control board obtains the address information corresponding to the instruction data through the execution of step S240, so that the parsing and processing process of the instruction data on the controller corresponding to the address information can be initiated, and further the business processing is completed.
It should be noted that, the initiation of the instruction data parsing and processing procedure includes, according to the difference of the address information: the instruction data is executed at the initiation of the motion control board card, i.e. the parsing and processing procedure, and the forwarding of the instruction data to other controllers, even the parsing and processing procedure on the controller to which it is forwarded.
Specifically, if the address information corresponds to the motion control board, the instruction data transmitted together with the address information is analyzed and processed by the motion control board, and the corresponding service is the service function of the motion control board, and at the moment, the analysis and the processing of the instruction data are only required to be initiated on the motion control board; if the address information corresponds to other controllers, such as a water-cooled control board card connected to a motion control board card, forwarding of the address information and instruction data is required to enable the address information and instruction data to be transferred to the corresponding controller.
After the address information and the instruction data are transmitted to the corresponding controller, the controller unpacks and reads the address information, and then knows that the instruction data can be resolved and processed by itself, so that the resolution and processing of the execution instruction data are initiated.
And the like, at least one forwarding of the motion control board card to the target controller can be completed until the instruction data is finally analyzed and processed.
Through the above exemplary embodiments, it can be seen that the communication mechanism is constructed so that the distribution of instruction data can be completely decoupled from service processing, thereby saving system resources and greatly improving service processing efficiency.
And by the above-mentioned exemplary embodiments, a rich communication protocol is provided for the laser system, so as to meet various service requirements.
Referring also to fig. 8, fig. 8 shows a flow chart of a method of information transmission in a laser system according to another embodiment of the present application. The step S250 of initiating the analysis and processing of the instruction data in the corresponding controller according to the address information provided in the embodiment of the present application may include:
step S251, it is determined whether the address information matches the own address, if not, step S252 is executed, and if yes, step S253 is executed.
Step S252, the forwarding process of the instruction data is performed according to the address information.
Step S253, parse and process the instruction data.
These steps are described in detail below.
In step S251, the controller that receives the data unit carrying the instruction data may be a motion control unit or another controller. Whether the address information obtained by unpacking and reading is consistent with the address of the controller is judged by any controller, if the address information obtained by unpacking and reading is inconsistent with the address of the controller, the controller is not the controller for processing the instruction data, and the controller is only the intermediate controller for transmitting the instruction data to the target controller.
The controller's own address, which is in the form of a device identification, is adapted to the address information. The controller judges the consistency of the addresses of the received instruction data, so that the situation that the instruction data is directly analyzed and processed in the existing laser system, and the instruction data is not attributed to the controller and is forwarded to other controllers is avoided until the instruction data cannot be processed.
If the address information does not coincide with the controller' S own address, the instruction data is forwarded according to the address information in the execution of step S252.
The forwarding of command data may occur in the motion control board card as well as in other controllers. Illustratively, the forwarding of instruction data is accomplished under control of an address encapsulation protocol.
In particular, referring also to fig. 9, fig. 9 shows a flow chart of the forwarding processing steps of executing instruction data according to address information according to the disclosed embodiment of fig. 8. In the transmission of instruction data under the control of a reliability transmission protocol and a frame protocol or under the control of a direct connection transmission protocol, the unpacking results in the original data, namely the instruction data itself.
At this time, the forwarding process of the instruction data is performed with respect to the instruction data itself, and the protocol used for forwarding is the address encapsulation protocol, so that the instruction data encapsulation under the control of the address encapsulation protocol needs to be performed again to obtain and forward a frame of data.
As shown in fig. 9, the embodiment of the present application provides a step S252 of performing forwarding processing of instruction data according to address information, which may include:
step S2521, encapsulating address information and instruction data with the defined packet header identifier and packet tail identifier again to obtain a frame of data carrying the instruction data;
In step S2522, the frame data is forwarded to the corresponding controller through the interface mapped with the address information.
These two steps are described in detail below.
In step S2521, for forwarding the instruction data, address information is first added to the instruction data, and encapsulated with a header identifier and a trailer identifier defined by an address encapsulation protocol, so as to obtain a frame of data, and then forwarded to a corresponding controller through the interface mapped according to the address information by the execution of step S2522.
The mapping of the address information to the interface may be, as noted above, an interface to which the corresponding instruction data belongs to a service function map, or may be an interface to which a controller that processes the instruction data maps, and is not limited herein.
On the other hand, in the transmission of instruction data implemented under the control of the address encapsulation protocol and the reliability transmission protocol, the step S252 of receiving a data frame carrying instruction data and unpacking to obtain a frame of data, which correspondingly provides the execution of the forwarding process of the instruction data according to the address information, may include:
and forwarding the frame data obtained by unpacking to the corresponding controller by an interface adapting to the address information mapping.
Under the control of the address encapsulation protocol, one frame of data obtained by the frame data unpacking still has the packet head identifier, the packet tail identifier and the address information, which are not only the existence of the complete data packet, but also the address designated for the subsequent transmission, so that the frame data can be directly forwarded without any processing, and the communication performance of a laser system is greatly enhanced.
The following describes the circulation process from the main control board card to the motion control board card, even to other controllers in the laser system by taking the information transmission under each service function of the laser system supporting the direct connection transmission protocol, the address encapsulation protocol, the reliability transmission protocol and the frame protocol as an example.
First, referring to fig. 10, fig. 10 shows a hardware topology diagram related to a desktop level laser device according to an embodiment of the present application. The desktop level laser device can realize data interaction with an upper computer, such as a PC end and a mobile end, through an interface or a network, so that the upper computer can control the desktop level laser device and provide required resources for the desktop level laser device, such as realizing data interaction with the PC end and the mobile end erected at a far end under the support of realizing cloud service.
In the desktop-level laser device, as described above, the main control board card may be connected to the upper computer through a USB interface, or may be connected to the motion control board card through a configured interface, such as a USB interface, a UART interface, etc., and on this basis, the various controllers, i.e., the peripheral MCU1 and the peripheral MCU2, are also connected to the motion control board card, so that the transmission of respective instruction data is realized through the communications implemented in the embodiments of the present application, and further, the service processing is completed.
Referring also to fig. 11, fig. 11 shows a controller topology and a data flow diagram according to an embodiment of the present application. The laser system carried by the laser equipment structurally comprises a main control board card, a motion control board card connected with the main control board card and other controllers.
The other controllers are connected in parallel or in series with the motion control board card and receive instruction data transmitted by the main control board card and sent by the motion control board card.
The following describes the communication mechanism in the laser system according to different service functions.
(1) The triggered service function is a laser cutting function under a user processing scene, and in a laser system realized by the laser equipment, the main control board card completes the encapsulation of instruction data by combining a G code file reliability transmission protocol and a frame protocol and transmits the instruction data to the motion control board card.
Under the action of a reliability transmission protocol, the reliability of instruction data transmission is ensured between the main control board card and the motion control board card, so that the reliability of laser cutting control is ensured, and a high-reliability laser cutting function is realized.
Of course, it should be noted that the G code may also use a combination of an address encapsulation protocol, a reliability transmission protocol, and a frame protocol, so as to ensure that data distribution required by the G code can be implemented following address information under the action of the address encapsulation protocol, and ensure the order of system operation.
(2) The service function of the laser device debugging can be realized by supporting a direct connection transmission protocol (Raw), and besides, the instruction data can be encapsulated and transmitted under the action of an address encapsulation protocol, which is not limited herein.
So far, it can be seen that different types of instruction data correspond to different service functions. Thus, based on the difference of service functions, different instruction data are mapped with different interfaces. Referring also to fig. 12, fig. 12 is a schematic diagram illustrating mapping between a communication protocol and an interface according to an embodiment of the present application. The reliability transmission protocol (Kcp) is mapped with the USB interface, the address encapsulation protocol (F0F 7) is mapped with the USB interface and the serial port, and the direct connection transmission protocol (Raw) has mapping relation with the USB interface and the serial port.
The communication realized by the address encapsulation protocol, the reliability transmission protocol and the frame protocol combination is described in detail by taking the instruction data formed by the G codes as an original instruction.
Referring also to fig. 13, fig. 13 is a schematic diagram illustrating a data format implemented by combining an address encapsulation protocol, a reliability transmission protocol, and a frame protocol in an embodiment of the present application. The address encapsulation protocol and the reliability transmission protocol are configured in the network layer, the frame protocol is configured in the transmission layer, at this time, the instruction data which is the original instruction and exists in the protocol layer is added with address information through the address encapsulation protocol configured in the network layer, and F0 is used as a header identifier, F7 is used as a tail identifier for encapsulation, so as to obtain a frame of data.
The frame data uses the Kcp protocol as a reliable transmission protocol in a transmission layer to ensure the reliable transmission of instruction data and address information, and retransmission in abnormal conditions is completed, so that efficient and reliable transmission is realized for a laser system.
The resulting reliable transport protocol packet will be introduced with the frame concept and will be distinguished from the header identifier and the trailer identifier by escape means for intermediate data.
Referring also to fig. 14, fig. 14 shows a schematic diagram of G code transmission formats only existing between the main control board card and the motion control board card in the embodiment of the present application.
For G codes (Gcode) transmitted only between the main control board card and the motion control board card, it can be used to realize process control. In contrast, the G code is used as an original command only, and the transmission of the G code is performed by encapsulating and framing the Kcp protocol in the transmission layer. Similarly, the same applies to Mcode.
Referring to fig. 15, according to an embodiment of the present application, as shown in fig. 15, an information transmission device in a laser system is provided, where a plurality of controllers are distributed in the laser system, the controllers include a main control board card, a motion control board card connected to the main control board card, and other board cards connected to the motion control board card, and the controllers are configured to execute service functions of the laser system;
The device is deployed on a plurality of controllers and processes information circulation among the controllers, and the device comprises:
the instruction generating module 610 is configured to generate instruction data for a host control board card where the instruction data is used to control a corresponding controller to execute a service function of the laser system in response to a service function trigger of the laser system;
the data distribution module 620 is configured to perform data distribution on the main control board card through a communication protocol adapted to the instruction data, where the communication protocol is from a plurality of channels supported between the main control board card and the motion control board card;
the data acquisition module 630 is configured to obtain the distributed instruction data for the motion control board card through an interface bound by the data acquisition module;
the unpacking and reading module 640 is configured to obtain address information corresponding to a controller that parses the instruction data for the motion control board card through unpacking and reading related to the instruction data;
and the analysis processing module 650 is used for initiating the analysis and the processing of the instruction data in the corresponding controller according to the address information.
In one embodiment, the data distribution module 620 includes:
the main control board card dynamically switches the communication protocol configured by the main control board card for sending the instruction, wherein the communication protocol is specified by the instruction data;
Packaging the instruction data through the switched communication protocol to obtain a data unit carrying the instruction data;
and sending the data unit to the motion control board card through an interface to which the instruction data is associated.
In one embodiment, the encapsulating the instruction data by the switched communication protocol to obtain a data unit carrying the instruction data includes:
generating address information according to the controller mapped by the instruction data;
and encapsulating the address information and the instruction data with the defined packet header identifier and the packet tail identifier to obtain a frame of data, wherein the frame of data is a data unit for bearing the instruction data.
In one embodiment, the communication protocol includes a reliability transmission protocol, and the encapsulating the instruction data by the switched communication protocol to obtain a data unit carrying the instruction data includes:
carrying out reliability encapsulation on the instruction data or the obtained frame data to obtain a reliability transmission protocol packet;
and encapsulating the reliability transmission protocol packet into frames to obtain data frames serving as data units.
In one embodiment, the obtaining, by unpacking and reading related to the instruction data, address information corresponding to a controller that parses the instruction data includes:
Discarding the packet head identifier and the packet tail identifier in the received frame data to obtain data fragments;
and reading address information corresponding to a controller for analyzing and processing the instruction data from the data fragments.
In one embodiment, the obtaining, by unpacking and reading related to the instruction data, address information corresponding to a controller that parses the instruction data includes:
discarding the frame head and the frame tail of the received data frame to obtain a reliability transmission protocol packet;
and unpacking the reliability transmission protocol packet to obtain one frame of data.
Address information corresponding to a controller for analyzing and processing instruction data is read from the frame data.
In one embodiment, the initiating the parsing and processing of the instruction data at the corresponding controller according to the address information includes:
and judging whether the address information is consistent with the self address, and if not, executing forwarding processing of the instruction data according to the address information.
In one embodiment, the forwarding processing of the instruction data according to the address information includes:
encapsulating the address information and the instruction data with the defined packet header identifier and the packet tail identifier again to obtain a frame of data carrying the instruction data;
And forwarding the frame data to the corresponding controller through the interface mapped by the address information.
In one embodiment, performing the unpacking related to the instruction data to obtain a frame of data, and performing the forwarding processing of the instruction data according to the address information includes:
and forwarding the frame of data obtained by unpacking to a corresponding controller by an interface adapting to the address information mapping.
The information transmission method in the laser system according to the embodiment of the present application may be implemented by a desktop level laser apparatus as shown in fig. 16. A desktop level laser apparatus according to an embodiment of the present application is described below with reference to fig. 15. The desktop level laser apparatus shown in fig. 16 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present application.
As shown in fig. 16, the desktop level laser device is in the form of a general purpose computing device. The components of the base station 11 or the user terminal 12 may include, but are not limited to: the at least one processing unit 810, the at least one memory unit 820, and a bus 830 connecting the various system components, including the memory unit 820 and the processing unit 810.
Wherein the storage unit stores program code that is executable by the processing unit 810 such that the processing unit 810 performs steps according to various exemplary embodiments of the present invention described in the description of the exemplary methods described above in this specification. For example, the processing unit 810 may perform the various steps as shown in fig. 2.
The storage unit 820 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 8201 and/or cache memory 8202, and may further include Read Only Memory (ROM) 8203.
Storage unit 820 may also include a program/utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 830 may be one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The desktop level laser device may also be in communication with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the desktop level laser device, and/or any device (e.g., router, modem, etc.) that enables the desktop level laser device to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 650. Also, base station 11 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 860. As shown, network adapter 860 communicates with other modules of user terminal 12 via bus 830. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with the desktop level laser apparatus, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a usb disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present application.
In an exemplary embodiment of the present application, there is also provided a computer program medium having stored thereon computer readable instructions, which when executed by a processor of a computer, cause the computer to perform the method described in the method embodiment section above.
According to an embodiment of the present application, there is also provided a program product for implementing the method in the above method embodiments, which may employ a portable compact disc read only memory (CD-ROM) and comprise program code and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, in accordance with embodiments of the present application. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the various steps of the methods herein are depicted in the accompanying drawings in a particular order, this is not required to either suggest that the steps must be performed in that particular order, or that all of the illustrated steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present application.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.

Claims (10)

1. The information transmission method in the laser system is characterized in that a plurality of controllers are distributed in the laser system, each controller comprises a main control board card, a motion control board card connected with the main control board card and other board cards connected with the motion control board card, and each controller is used for executing service functions of the laser system;
the method is deployed on a plurality of controllers and processes information circulation among the controllers, and comprises the following steps:
responding to the service function trigger of the laser system, the main control board card generates instruction data, and the instruction data is used for controlling a corresponding controller to execute the service function of the laser system;
the main control board card distributes data through the communication protocol adapted to the instruction data, wherein the communication protocol is from a plurality of communication protocols supported between the main control board card and the motion control board card;
the motion control board card obtains the distributed instruction data through an interface bound by the motion control board card;
obtaining address information corresponding to a controller for analyzing and processing the instruction data through unpacking and reading related to the instruction data;
and initiating the analysis and the processing of the instruction data in the corresponding controller according to the address information.
2. The method of claim 1, wherein the data distribution performed by the communication protocol adapted to command data on the main control board card comprises:
the main control board card dynamically switches the communication protocol configured by the main control board card for sending the instruction, wherein the communication protocol is specified by the instruction data;
packaging the instruction data through the switched communication protocol to obtain a data unit carrying the instruction data;
and sending the data unit to the motion control board card through an interface to which the instruction data is associated.
3. The method according to claim 2, wherein said encapsulating of said instruction data by said communication protocol being switched to obtain a data unit carrying said instruction data comprises:
generating address information according to the controller mapped by the instruction data;
and encapsulating the address information and the instruction data with the defined packet header identifier and the packet tail identifier to obtain a frame of data, wherein the frame of data is a data unit for bearing the instruction data.
4. A method according to claim 2 or 3, wherein the communication protocol comprises a reliability transmission protocol, the encapsulating of the instruction data by the communication protocol being switched to obtain a data unit carrying the instruction data, comprising:
Carrying out reliability encapsulation on the instruction data or the obtained frame data to obtain a reliability transmission protocol packet;
and encapsulating the reliability transmission protocol packet into frames to obtain data frames serving as data units.
5. A method according to claim 3, wherein said obtaining address information corresponding to a controller that parses said instruction data by unpacking and reading said instruction data, comprises:
discarding the packet head identifier and the packet tail identifier in the received frame data to obtain data fragments;
and reading address information corresponding to a controller for analyzing and processing the instruction data from the data fragments.
6. The method according to claim 4, wherein the obtaining address information corresponding to a controller that parses the instruction data by the unpacking and reading related to the instruction data includes:
discarding the frame head and the frame tail of the received data frame to obtain a reliability transmission protocol packet;
unpacking the reliability transmission protocol packet to obtain a frame of data;
and reading and analyzing address information and instruction data corresponding to the controller for processing the instruction data from the frame data.
7. The method of claim 1, wherein said initiating parsing and processing of said instruction data at the respective controller in accordance with said address information comprises:
And judging whether the address information is consistent with the self address, and if not, executing forwarding processing of the instruction data according to the address information.
8. The method according to claim 7, wherein the performing forwarding processing of the instruction data according to the address information includes:
encapsulating the address information and the instruction data with the defined packet header identifier and the packet tail identifier again to obtain a frame of data carrying the instruction data;
and forwarding the frame data to the corresponding controller through the interface mapped by the address information.
9. The method according to claim 7, wherein performing the unpacking related to the instruction data to obtain a frame of data, the forwarding processing of the instruction data according to the address information, comprises:
and forwarding the frame of data obtained by unpacking to a corresponding controller by an interface adapting to the address information mapping.
10. The information transmission device in the laser system is characterized in that a plurality of controllers are distributed in the laser system, each controller comprises a main control board card, a motion control board card connected with the main control board card and other board cards connected with the motion control board card, and the controllers are used for executing service functions of the laser system;
The device is deployed on a plurality of controllers and processes information circulation among the controllers, and the device comprises:
the instruction generation module is used for responding to the service function trigger of the laser system and generating instruction data for the main control board card, wherein the instruction data is used for controlling the corresponding controller to execute the service function of the laser system;
the data distribution module is used for distributing data on the main control board card through a communication protocol matched with the instruction data, wherein the communication protocol is from a plurality of channels supported between the main control board card and the motion control board card;
the data acquisition module is used for acquiring the distributed instruction data for the motion control board card through the self-binding interface;
the unpacking and reading module is used for obtaining address information corresponding to a controller for analyzing and processing the instruction data for the motion control board card through unpacking and reading related to the instruction data;
and the analysis processing module is used for initiating the analysis and the processing of the instruction data in the corresponding controller according to the address information.
CN202210765151.0A 2022-06-29 2022-06-29 Information transmission method and device in laser system Pending CN117354333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210765151.0A CN117354333A (en) 2022-06-29 2022-06-29 Information transmission method and device in laser system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210765151.0A CN117354333A (en) 2022-06-29 2022-06-29 Information transmission method and device in laser system

Publications (1)

Publication Number Publication Date
CN117354333A true CN117354333A (en) 2024-01-05

Family

ID=89367953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210765151.0A Pending CN117354333A (en) 2022-06-29 2022-06-29 Information transmission method and device in laser system

Country Status (1)

Country Link
CN (1) CN117354333A (en)

Similar Documents

Publication Publication Date Title
CN111131037B (en) Data transmission method, device, medium and electronic equipment based on virtual gateway
CN112968844B (en) Method and device for sending fragment message
EP2530599B1 (en) Method and mobile terminal for realizing audio transmission
US20180157562A1 (en) Virtual machine-based data transmission method, apparatus and system
CN111294235B (en) Data processing method, device, gateway and readable storage medium
WO2014134947A1 (en) Device for transmitting and receiving control information and method thereof
CN104424036A (en) Synchronous operation method and device of smart terminal
CN117354333A (en) Information transmission method and device in laser system
CN117349210A (en) Multi-board communication method and device in laser system and desktop-level laser equipment
EP2530995B1 (en) Method and apparatus for implementing network device function of wireless communication terminal
CN113377363B (en) Cloud implementation method for automatically generating source codes for various electric control end private protocols
CN115022074A (en) User authentication and authorization method, device, medium and equipment
US20210382723A1 (en) Method of underlying drive forwarding and multi-core system implemented based on uefi
CN115328581B (en) Management device and method for modularized business fusion based on heterogeneous system
CN113660344B (en) Communication method, communication device, electronic apparatus, and computer-readable storage medium
CN114070896B (en) Communication interface, electronic device and device management method
CN100384144C (en) Combination device and its management and maintenance method
CN116684492A (en) Data transmission method, device, related equipment and storage medium
CN116800864A (en) Message processing system, method, electronic equipment and computer storage medium
CN117615042A (en) Data communication method, device, computer equipment and storage medium
CN117997974A (en) Serial port communication method and related equipment
CN112367389A (en) Agent-based software defined network method and device
CN116302750A (en) Equipment debugging method and related device
CN115499422A (en) Multi-device serial communication method and system based on remote control instruction
CN117573578A (en) Drive interface mapping control system and control method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination