CN116408553A - Data interaction method, device and equipment in desktop intelligent laser equipment - Google Patents

Data interaction method, device and equipment in desktop intelligent laser equipment Download PDF

Info

Publication number
CN116408553A
CN116408553A CN202210331893.2A CN202210331893A CN116408553A CN 116408553 A CN116408553 A CN 116408553A CN 202210331893 A CN202210331893 A CN 202210331893A CN 116408553 A CN116408553 A CN 116408553A
Authority
CN
China
Prior art keywords
data
communication port
intelligent laser
external data
laser device
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
CN202210331893.2A
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 PCT/CN2022/120291 priority Critical patent/WO2023124286A1/en
Publication of CN116408553A publication Critical patent/CN116408553A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/408Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by data handling or data format, e.g. reading, buffering or conversion of data
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35323Point to two points on tool locus, calculate and display value
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)

Abstract

The invention provides a data interaction method and device in desktop intelligent laser equipment and the desktop intelligent laser equipment, wherein the method comprises an external data receiving step and a data sending step of directly transmitting data between corresponding communication ports by a sending buffer zone; the external data receiving step includes: the desktop intelligent laser equipment triggers the receiving of the communication port to interrupt, and external data receiving of the communication port is executed in the receiving interrupt; storing and processing external data through hierarchical caches corresponding to the communication ports; the data transmission step of directly transmitting data between the corresponding communication ports by the transmission buffer area comprises the following steps: the desktop intelligent laser device adapts the data sent by each communication port to be stored in the corresponding sending buffer area; and directly transmitting data to external equipment through a channel constructed between the transmission buffer area and the corresponding communication port, thereby finally realizing high-efficiency data interaction.

Description

Data interaction method, device and equipment in desktop intelligent laser equipment
Technical Field
The disclosure relates to the technical field of computer application, in particular to a data interaction method and device in desktop intelligent laser equipment and the desktop intelligent laser equipment.
Background
Along with the development of advanced technologies such as computers and the like and the progress of high-degree-of-freedom creation, the traditional industrial laser cutting machine is revolutionarily optimized by the advanced technologies, and becomes a user-level desktop intelligent hardware product.
However, unlike the conventional industrial laser cutting device, how to implement data interaction between the desktop intelligent laser device and the external device is a current problem to be solved.
Disclosure of Invention
An object of the present disclosure is to solve a technical problem of interaction of a desktop intelligent laser device with an external device.
According to an aspect of the disclosed embodiments, a data interaction method in a desktop intelligent laser device is disclosed, the method includes an external data receiving step and a data transmitting step of directly transmitting data between corresponding communication ports by a transmitting buffer area;
the external data receiving step includes:
the desktop intelligent laser device triggers the interrupt to the receiving of any communication port, and external data receiving of the communication port is executed in the interrupt receiving;
storing and processing the received external data through a hierarchical cache corresponding to the communication port, wherein the external data is used for executing carving and/or cutting in the desktop intelligent laser device;
The step of transmitting data from the transmission buffer area to the corresponding communication ports includes:
the desktop intelligent laser device adapts the data sent by each communication port to be stored in the corresponding sending buffer area;
and directly transmitting the data to external equipment through a channel constructed between the transmission buffer area and the corresponding communication port.
According to an aspect of the embodiments of the present disclosure, the receiving of any communication port by the desktop intelligent laser device triggers an interrupt, and the external data receiving of the communication port is performed in the receiving interrupt, including:
the desktop intelligent laser device receives external data triggered by any communication port and interrupts the program executing process;
and in the interruption of the program execution process, the external data received by the communication port is taken out.
According to an aspect of the embodiments of the present disclosure, the receiving of any communication port by the desktop intelligent laser device triggers an interrupt, and after the external data of the communication port is received in the receiving interrupt, the method further includes:
after the external data to be fetched are stored, the desktop intelligent laser device returns to continue executing the interrupted program execution process.
According to an aspect of the disclosed embodiments, the storing and processing the received external data by the hierarchical cache corresponding to the communication port includes:
storing the received external data in a first-level buffer area corresponding to the communication port;
external data stored in the corresponding first-level buffer area of each communication port are respectively obtained from the first-level buffer area according to the data receiving sequence;
and checking the external data to obtain effective data, and storing the effective data in a secondary annular cache area corresponding to the communication port.
According to an aspect of the disclosed embodiments, the storing and processing the received external data by the hierarchical cache corresponding to the communication port further includes:
and processing the external data which is not checked to pass according to a processing mechanism of the functional module to which the external data belongs.
According to an aspect of the disclosed embodiments, the valid data includes instruction data, the received external data is stored and processed by a hierarchical cache corresponding to the communication port, and further includes:
sequentially extracting instruction data from the secondary annular buffer area corresponding to each communication port;
Analyzing the instruction data to obtain a control instruction of the desktop intelligent laser device;
and processing the control instruction according to the corresponding instruction type, wherein the processing of the control instruction comprises immediate execution of the control instruction and adding the control instruction into an execution queue.
According to an aspect of the embodiments of the present disclosure, the sending the data directly to the external device through the channel constructed between the sending buffer and the corresponding communication port includes:
judging whether the sending buffer area is empty or not, if the sending buffer area is not empty, executing high-speed data transmission operation on the data of the sending buffer area;
and under the execution of the high-speed data transmission operation, the data is directly transmitted to external equipment through a channel constructed by the transmission buffer area to the corresponding communication port.
According to an aspect of the embodiments of the present disclosure, the sending the data directly to the external device through the channel constructed between the sending buffer and the corresponding communication port includes:
and after the data transmission is finished, interrupting the high-speed data transmission operation and closing.
According to an aspect of the disclosed embodiments, a data interaction device in a desktop intelligent laser device is disclosed, the device includes an external data receiving module and a data transmitting module for directly transmitting data between communication ports corresponding to a transmitting buffer area;
The external data receiving module is used for executing the following steps:
the desktop intelligent laser device triggers the interrupt to the receiving of any communication port, and external data receiving of the communication port is executed in the interrupt receiving;
storing and processing the received external data through a hierarchical cache corresponding to the communication port, wherein the external data is used for executing carving and/or cutting in the desktop intelligent laser device;
the data transmitting module is used for executing the following steps:
the desktop intelligent laser device adapts the data sent by each communication port to be stored in the corresponding sending buffer area;
and directly transmitting the data to external equipment through a channel constructed between the transmission buffer area and the corresponding communication port.
According to an aspect of the disclosed embodiments, a desktop intelligent laser device is disclosed, comprising:
a memory storing computer readable instructions;
a processor reads the computer readable instructions stored in the memory to perform any one of the methods described above.
In the embodiment of the disclosure, for the data interaction between the desktop intelligent laser device and the outside, on one hand, the external data reception is realized by triggering interruption and hierarchical buffering of the desktop intelligent laser device to the reception of the communication port, and on the other hand, the data is directly transmitted outwards by constructing a channel between the buffer area and the corresponding communication port, without the intervention of a CPU (central processing unit) of the desktop intelligent laser device, so that the data interaction which is real-time and can reduce the occupation of the CPU in the communication process is realized for the desktop intelligent laser device, and further the communication efficiency of the desktop intelligent laser device is improved.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
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 disclosure.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.
Fig. 1 is an architecture to which embodiments of the present disclosure apply.
Fig. 2 shows a flowchart of external data receiving steps in data interaction of a desktop intelligent laser device, according to one embodiment of the present disclosure.
Fig. 3 shows a flowchart of data transmission steps in data interaction of a desktop intelligent laser device, according to one embodiment of the present disclosure.
Fig. 4 is a flowchart illustrating a step of performing external data reception of a communication port in a reception trigger interrupt of any communication port by a desktop intelligent laser device according to an embodiment of the present disclosure.
Fig. 5 is a flowchart illustrating steps for storing and processing external data through a hierarchical cache corresponding to a communication port for received external data according to one embodiment of the present disclosure.
Fig. 6 shows a flowchart of a data interaction method in a desktop intelligent laser device according to one embodiment of the present disclosure.
Fig. 7 is a flowchart illustrating steps for directly transmitting data to an external device through a channel constructed between a transmission buffer and a corresponding communication port according to one embodiment of the present disclosure.
Fig. 8 shows a hardware configuration diagram of a smart laser device according to one embodiment of the present disclosure.
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 disclosure 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 disclosure. One skilled in the relevant art will recognize, however, that the aspects of the disclosure 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 disclosure.
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 to which embodiments of the present disclosure are applied. The architecture may include: at least one external device 11, such as an upper computer, and a desktop intelligent laser device 12 facing each external device 11, so as to form a function capable of performing laser engraving or cutting for a user. The external device 11 and the desktop intelligent laser device 12 realize interaction of data communication through an adaptive communication port.
After the processing task is generated by the upper computer according to the hand-drawn work, under the processing task, the upper computer generates an executable file, such as a G code file, according to a curve track presented in the hand-drawn work, and splits the executable file into a plurality of frames of data according to a preset rule.
The frames of data are sent to the desktop intelligent laser device 12 through the host computer. The desktop intelligent laser device 12 receives several frames of data sequentially transmitted by the host computer through a specific communication port, such as a USB (Universal Serial Bus ) port, or a serial communication port, and stores the frames of data in a buffer.
The desktop intelligent laser device 12 will realize that the curve track in the hand-drawn work runs at each track point in the running laser engraving or cutting, i.e. runs under each track point to perform the execution mechanism of laser cutting or engraving, through the given data stored in the buffer, and the desktop intelligent laser device will control its movement and finally cut and/or engrave the hand-drawn graph.
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 disclosure may be embodied based on the architecture shown in fig. 1 or a modified architecture thereof.
The embodiment of the disclosure provides a method for realizing data interaction of desktop intelligent laser equipment to the outside, which comprises an external data receiving part and a data transmitting part, wherein the data transmitting part is used for directly transmitting data of a transmitting buffer area to a corresponding communication port.
Referring to fig. 2, fig. 2 shows a flowchart of external data receiving steps in data interaction of a desktop intelligent laser device according to one embodiment of the present disclosure; referring now to fig. 3 in combination, fig. 3 shows a flowchart of data transmission steps in data interaction for a desktop intelligent laser device, according to one embodiment of the present disclosure.
In the data interaction method in the desktop intelligent laser device, the external data receiving step comprises the following steps:
step S210, the desktop intelligent laser device triggers an interrupt to the receiving of any communication port, and external data receiving of the communication port is executed in the receiving interrupt.
Step S220, storing and processing the received external data through the hierarchical buffer memory corresponding to the communication port, where the external data is used for performing engraving and/or cutting in the desktop intelligent laser device.
In the data interaction method in the desktop intelligent laser device, the data sending step of directly transmitting data between the corresponding communication ports by the sending buffer area comprises the following steps:
in step S310, the data sent by the desktop intelligent laser device adapted to each communication port is stored in the corresponding sending buffer.
In step S320, data is directly sent to the external device through the channel constructed between the sending buffer area and the corresponding communication port.
These steps are described in detail below.
In step S210, the desktop intelligent laser device configures a plurality of communication ports, for example, a USB (Universal Serial Bus ) port, a serial communication port, a debug serial communication port, an RGB board serial communication port, etc., for interaction with the outside. The desktop intelligent laser device realizes interaction between itself and the outside through the communication port. It can be appreciated that each communication port, as a physical interface configured on the desktop intelligent laser device, will form each external channel of the desktop intelligent laser device.
Any communication port will receive external data. Specifically, any communication port of the desktop intelligent laser device is triggered to receive external data, at this time, the desktop intelligent device receives the external data about to happen, and executes receiving interruption on the communication port to receive the external data through the communication port, so that instantaneity of data transmission is guaranteed, the desktop intelligent laser device can receive the external data in real time, and communication efficiency and performance are improved.
It should be noted that, the receiving interruption executed by the desktop intelligent laser device refers to interrupting the running of the current program, and preferentially processing the external data receiving triggered by the current communication port. The real-time performance of data reception is greatly enhanced through the reception interruption operation of the desktop intelligent laser device to the external data reception configuration, and the influence of the current running condition of the desktop intelligent laser device is avoided, so that the reliability of data reception is correspondingly enhanced.
Referring to fig. 4, fig. 4 is a flowchart illustrating a step of performing external data reception of a communication port in a reception interrupt triggered by reception of any communication port by a desktop intelligent laser device according to an embodiment of the present disclosure. In the embodiment of the present disclosure, the step S210 of triggering an interrupt to receive any communication port by the desktop intelligent laser device and executing external data reception of the communication port in the receiving interrupt may include the following steps.
Step S211, the desktop intelligent laser device receives external data triggered by any communication port and interrupts the program executing process.
In step S212, the external data received by the communication port is fetched during the interruption of the program execution process.
These two steps are described in detail below.
In step S211, as indicated above, any of the communication ports of the desktop intelligent laser device receives external data, where the received external data may include, but is not limited to, debug data for debugging the laser usage process, data for controlling the movement of the control actuator and the laser usage, and the like.
When the communication port of the desktop intelligent laser device triggers to receive external data, the CPU (central processing unit ) of the desktop intelligent laser device temporarily stops the running of the current program and preferentially executes the process of receiving the external data.
Specifically, the operation of the current program is temporarily stopped, and step 212 is executed, in which the CPU fetches external data from the communication port during the interruption of the program execution process.
The CPU for interrupting the program execution process is provided with priority for the external data receiving of the communication port in the desktop intelligent laser equipment, and the CPU returns to the program execution process after the external data receiving is finished.
In another exemplary embodiment, after step S212, the data interaction method in the desktop intelligent laser device further includes:
after the external data to be fetched are stored, the desktop intelligent laser device returns to continue executing the interrupted program execution process.
After the CPU of the desktop intelligent laser device takes out the external data from the communication port, the storage of the external data is executed, and once the storage of the external data is finished, the CPU can return to continue executing the interrupted program execution process.
In step S220, the CPU of the desktop intelligent laser device takes out the external data received by the communication port, stores and processes the external data by using the hierarchical buffer configured for the communication port, so as to achieve effective data buffer, and then can convert the effective data into a control instruction that can be used by the desktop intelligent laser device, thereby finally achieving the control of the external device on the desktop intelligent laser device by using the external data transferred by the external channel.
Firstly, it should be noted that the desktop intelligent laser device configures a hierarchical cache for a communication port, which is to configure a hierarchical cache policy for received external data, separate the received external data from effective data obtained by completing verification through two-level cache, so that on one hand, real-time of external data reception is ensured, and a CPU does not occupy too much time to prioritize external data reception, and on the other hand, the reliability of the data is ensured because the external data and the effective data are separated independently.
The method comprises the steps of carrying out hierarchical caching, namely, carrying out a process of storing external data taken out by a communication port by a CPU of the desktop intelligent laser device, and carrying out a process of processing the stored external data, namely, carrying out integrity and accuracy verification. Therefore, for the CPU of the desktop intelligent laser device, the program execution process for continuing the interrupt can be returned immediately after the storage of the external data is completed, and the occupation of the CPU by the communication process is reduced.
In order to realize hierarchical caching, the desktop intelligent laser device is correspondingly provided with a first-level cache region and a second-level cache region which is different from the first-level cache region for each communication port. The CPU takes out and stores the external data of the first-level buffer area from the communication port, which is actually temporary data, and can be used for controlling the desktop intelligent laser device after the integrity and accuracy check.
The first-level buffer area is used as a temporary buffer area, so that the requirement on instantaneity is reduced for external data processing of the desktop intelligent laser device, and further, for CPU operation of the desktop intelligent laser device, the currently executed program operation and the communication process can be ensured at the same time.
In the process of hierarchical caching, a second-level cache area is also configured relative to the first-level cache area and is used for storing effective data in the first-level cache area. And respectively taking out the external data stored in the corresponding first-level buffer area of each communication port from the first-level buffer area according to the data receiving sequence, checking the data to obtain effective data, and storing the effective data in the second-level buffer area corresponding to the communication ports. The secondary cache may be a ring cache, for example.
It should be further noted that, the effective data corresponding to the communication ports is stored in the second-level buffer area, and different array subscripts can be defined for the effective data from different communication end products, so that the second-level buffer area can correspond to each communication port, thereby facilitating access and improving subsequent processing efficiency.
For the secondary buffer, a read pointer and a write pointer will be set. The read pointer is used for pointing to the readable data in the secondary annular buffer area, the write pointer is used for pointing to the writable data in the secondary annular buffer area, and the read and write of the data in the secondary annular buffer area are realized by moving the read pointer and the write pointer.
Referring to fig. 5, fig. 5 is a flowchart illustrating steps for storing and processing external data through a hierarchical cache corresponding to a communication port for received external data according to one embodiment of the present disclosure. The embodiment of the present disclosure provides step S220 of storing and processing external data through hierarchical buffering, which may include the following steps.
In step S221, the received external data is stored in the first level buffer corresponding to the communication port.
Step S222, external data stored in the corresponding first-level buffer area by each communication port are respectively obtained from the first-level buffer areas according to the data receiving sequence.
Step S223, the external data is checked to obtain effective data, and the effective data is stored in the second-level annular buffer area corresponding to the communication port.
These steps are described in detail below.
In step S221, as described above, for the external data taken out from the communication port by the CPU of the desktop intelligent laser device, the external data is stored in the first level buffer corresponding to the communication port, so that the CPU side may return to continue the interrupted program execution process.
Any communication port is provided with a unique corresponding first-level buffer area, and external data is received temporary data for the desktop intelligent laser equipment, wherein the temporary data of course comprises effective data, but the temporary data is not limited to the effective data, and data which is required to be retransmitted in error is also included; and the received external data is also the data which can be quickly called immediately, so that the received external data is stored in the first-level buffer area after being received, the system overhead can be reduced, and the efficiency can be improved.
In step S222, the external data stored in the primary buffer are extracted in the data receiving order, respectively, to perform processing of the received external data.
In step S223, corresponding to the data receiving sequence, the external data fetched from the primary buffer area is checked, where the check includes integrity and accuracy check of the data, and if the check is not passed, the external data is valid data, and if the check is not passed, the external data that is not passed is processed according to a processing mechanism of the functional module to which the external data belongs.
The non-verified external data is not limited here, either retransmitted, discarded, or other processing is performed according to different processing mechanisms that are pre-configured.
External data of the first-level buffer area is stored in sequence by taking a frame as a unit, and in a data structure, one frame of data carries a frame head, data, a data length, a data check value and a frame tail, and the integrity check can confirm the integrity of the data according to the frame head and the frame tail, so that the complete data is obtained by intercepting the frame head and the frame tail.
Further, for the second level buffer, as described above, it may be a ring buffer, in other words, the second level ring buffer is the second level buffer referred to above. The secondary ring buffer will store the external data that passes the verification. Specifically, external data through verification is written under the action of a write pointer in the secondary annular buffer area and is read through a read pointer.
Referring to fig. 6, fig. 6 shows a flowchart of a data interaction method in a desktop intelligent laser device according to one embodiment of the present disclosure. The effective data includes instruction data, and after step S220 of storing and processing the received external data through the hierarchical buffer corresponding to the communication port, the data interaction method in the desktop intelligent laser device further includes:
step S410, sequentially extracting instruction data from the second-level ring buffer corresponding to each communication port.
And step S420, analyzing the instruction data to obtain a control instruction of the desktop intelligent laser device.
Step S430, processing the control instruction according to the corresponding instruction type, wherein the processing of the control instruction includes immediate execution of the control instruction and joining the execution queue.
These steps are described in detail below, respectively.
In step S410, as described above, the communication ports and the secondary ring buffer have a correspondence relationship with each other, and based on this, the valid data stored in the secondary ring buffer will be processed sequentially.
Specifically, the effective data is complete data for the desktop intelligent laser device, and the effective data comprises instruction data so as to realize the control of the external device on the desktop intelligent laser device through the instruction data.
It should be understood that the instruction data is data for controlling the desktop intelligent laser device, for example, controlling the movement of an actuator in the desktop intelligent laser device, and laser use.
In step S420, the complete instruction data sequentially extracted from the second-level ring buffer is parsed and the instruction type is adapted to be converted into a control instruction through the execution of step S430, so that the desktop intelligent laser device can realize corresponding control through the control instruction.
Specifically, in order to realize instruction control of the desktop intelligent laser device, the external device transmits instruction data as instruction parameters through the communication process of the desktop intelligent laser device, namely instruction parameters required by the instruction control of the desktop intelligent laser device.
In step S430, different instruction types have different processing manners, for example, some control instructions need to be executed immediately, and some control instructions need to be executed sequentially, so as to process the control instructions according to the corresponding instruction types, or execute them immediately, or add them to an execution queue, and execute them in a first-in first-out order, respectively.
So far, the steps are executed, and the external data received by the desktop intelligent laser device are processed for being used in the operation of the desktop intelligent laser device.
As indicated above, the received external data includes data for motion control in the desktop intelligent laser device, where the data is carried in an instruction parameter for implementing motion control of an actuator, and corresponding to the instruction parameter, a control instruction obtained by analyzing and converting the data is a track point motion instruction for implementing motion control of the actuator in the desktop intelligent laser device.
Generating a track point queue for performing laser engraving or cutting on the desktop intelligent laser device according to the data sequence for motion control in the second-level annular buffer area through the steps S410 to S430, and performing curve pre-scanning on the track point queue at the moment to locate the head and tail track points of the mapped curve; and performing motion pre-calculation on the covered track points according to the head and tail of the mapped curve segment to obtain instruction parameters of the moving track points, and updating the instruction parameters to corresponding track point motion instructions in a track point queue.
After curve pre-scanning of all curve segments in the track point queue and motion pre-calculation of track points covered by the curve segments are completed, finally traversing the track point queue, and executing the operation of the desktop intelligent laser device on the track points according to the traversed track point motion instructions until the traversing is finished.
Further, the data for motion control in the secondary ring buffer exists in units of frames, so that the desktop intelligent laser device generates a track point queue according to the receiving sequence and the data sequence of taking out one frame. The queue elements in the track point queue all contain track point motion instructions, and the track point motion instructions carry a plurality of instruction parameters, such as positions of points on the corresponding curve track, point types and the like. It should be understood that the movement instructions of the trace points contained in the queue elements will be used to describe, on the one hand, the trace points to be laser cut or engraved and, on the other hand, to indicate the movement state of the actuator under the trace points and the laser use to be performed.
The generation of the track point queue is a process of continuously taking out the data for motion control from the secondary annular buffer area, converting the data into track point motion instructions and then adding the track point motion instructions into the track point queue. Trace point motion instructions constitute the presence of data in a queue element.
The secondary annular buffer area is used for continuously storing data and continuously analyzing and converting the data, so that the data is converted into track point movement instructions as far as possible, and the track point movement instructions correspond to the track point movement instructions, so that laser engraving or cutting executed by the desktop intelligent laser equipment can be operated under more track points, and finer and more accurate processing realization is obtained.
In another exemplary embodiment, after generating the trace point queue for performing laser engraving or cutting on the desktop intelligent laser device for the data sequence for motion control in the secondary ring buffer, the following procedure is further performed:
and judging whether the second-level annular buffer area is empty, if the buffer area is empty, allowing to start traversing of the running track point queue, and if the second-level annular buffer area is not empty, continuing to execute track point queue generation on the data for motion control in the second-level annular buffer area, namely continuing to execute track point queue generation, so as to wait for the second-level annular buffer area to be emptied.
Based on the principle of converting as much data as possible into track point motion instructions, continuously converting the data for motion control stored in the secondary annular buffer area, taking out the track point motion instructions, adding the track point queue until the secondary annular buffer area is emptied or the track point queue is full, starting traversing the track point queue, namely executing generation of the track point queue, so that once engraving or cutting is started, the desktop intelligent laser device can have enough track points for operation, and frequent starting and stopping of the executed processing process are avoided.
In another exemplary embodiment, after generating a trace point queue for performing laser engraving or cutting on the desktop intelligent laser device for data sequence for motion control in the secondary ring buffer, the following procedure is further performed:
and judging whether the track point queue is full, if the track point queue is full, allowing to start traversing of the moving track point queue, and if the track point queue is not full, continuing to execute track point queue generation on the data for motion control in the buffer area until the track point queue is full or the buffer area is empty.
By way of example, the condition that whether the track point queue is full or not and the condition that the buffer area is empty are taken as the condition that whether the track point queue can be traversed or not is met, the traversing of the track point queue is allowed to be executed, so that enough track points can be guaranteed to run, and the processing reliability of the desktop intelligent laser device is enhanced.
Specifically, for the generation of the executed track point queue, the writing of the track point motion instruction to the track point queue is realized through pointers defined in the track point queue based on the first-in first-out sequence of the track point queue. Writing of the track point movement instruction into the track point queue is achieved through pointers defined in the queue. At this time, each queue element in the track point queue carries data which is the written track point motion instruction.
It should be appreciated that the track point queue describes and controls the processing performed by the desktop intelligent laser device per track point. Correspondingly, the queue elements in the track point queue correspond to the track points, and the track point movement instructions carried by the queue elements describe and control how the motor, the tool bit and other execution devices move under the corresponding track points, so as to execute the processing content.
Under the action of the secondary annular buffer area and the track point queue, on one hand, the data order is ensured, and further, the operation reliability of the desktop intelligent laser equipment is ensured; on the other hand, the secondary cache area and the track point queue are used as tools, and laser engraving and cutting executed by the desktop intelligent laser equipment are reduced, so that complexity and threshold are greatly reduced, difficulty is reduced for breaking the traditional industrial laser cutting machine which is only applied to industry, and the desktop intelligent laser cutting machine becomes desktop equipment which can be used by a common user with low threshold.
And for the generated track point queue, even if the conditions allow, the processing process of the desktop intelligent laser device is not executed under the control of the track point queue immediately, but the curve pre-scanning of the track point queue is executed in a jumping mode.
It should be further described that the track point array is mapped to a machining curve and a machining working state (laser use), where the machining curve is a motion curve of a motor driving tool bit and/or a laser head to perform laser cutting and/or carving; the working state is the laser power, laser mode and the like used in the working process.
The processing curve comprises a plurality of curve segments, the processing processes related to different curve segments often have great difference, and the processing processes executed on different track points in the same curve segment are relatively stable, so that the track point array is subjected to curve pre-scanning to determine the head and the tail of each curve segment, further, the subsequent actual processing process is avoided, the calculated amount of the subsequent processing process is reduced, and the processing efficiency is improved.
The track points corresponding to the track point queues to be started up by the desktop intelligent laser equipment form a processing curve, so that different curve sections on the processing curve are formed by the track points correspondingly, and the range of one curve section is determined by the first track point and the tail track point.
Therefore, by executing curve pre-scanning, the first track point and the last track point are positioned one by one for the mapped curve segments, and the motion pre-calculation of each track point is conveniently executed under the condition that the range of each curve segment is definitely determined.
The first pointer points to the head and tail of the track point queue, and the second pointer points to the queue element corresponding to the head track point and tail track point on the curve segment mapped by the track point queue.
Correspondingly, for the pre-scanning of the track point queue, the specific implementation process comprises the following steps: initiating a scanning track point queue, positioning a next queue element corresponding to a head of a queue of track points or a tail track point of a last curve segment of the track point queue, and pointing a second-level head pointer of the curve segment to the queue element; and continuing to scan the trace point queue through a second-level pointer for pointing to the trace point of the curve segment, judging whether the queue element scanned by the second-level tail pointer corresponds to the trace point of the curve segment, if so, pointing the second-level tail pointer to the queue element, and if not, continuing to scan the trace point queue until the queue element corresponding to the trace point is scanned.
Specifically, a curve pre-scanning is initiated on the track point queue, and in the process of executing the curve pre-scanning, the first track point of the current curve segment can be located and obtained through the queue head of the track point queue or the next queue element corresponding to the tail track point of the last curve segment obtained through curve pre-scanning.
Specifically, two levels of pointers are defined in the track point queue respectively, one level of pointers is used for pointing to the head and tail of the whole track point queue corresponding to all track points, and the second level of pointers is used for pointing to the head and tail of the curve segment scanned currently. In the initiated trace point queue scanning, for a currently scanned curve segment, if the curve segment is the first curve segment mapped by the trace point queue, the first trace point of the first-level head pointer direction can be positioned.
If the curve segment is not the first curve segment mapped by the track point queue, locating the pointed next queue element according to the tail track point of the last curve segment as the first track point of the curve segment.
The secondary head pointer points to the located first track point. And continuing to perform curve pre-scanning of the track point queue to scan the curve segment to obtain a tail track point.
The second-level tail pointer gradually moves forward to the next queue element, judges whether the currently pointed queue element corresponds to the tail track point of the curve segment, and continuously moves forward to point to the next queue element under the condition that the currently pointed queue element does not correspond to the tail track point.
And by analogy, the secondary tail pointer can be pointed to the queue element until the pointed queue element is judged to correspond to the tail track point of the curve segment, so that the secondary tail pointer marks a cut-off point for the curve segment by pointing to the queue element.
Therefore, curve pre-scanning corresponding to a curve segment is completed, and the motion pre-calculation of the curve segment is performed, so that instruction parameters are updated for a track point queue to be executed later, and the calculated amount in the traversal process is reduced to the greatest extent.
It should be added that, for the determination of whether the motion instruction corresponds to the tail track point of the curve segment, the instruction parameter carried in the motion instruction of the track point may be determined according to a point type, and the point type will describe the attribute of delay, state change and the like of the motion on the corresponding track point by way of example.
The pre-calculated instruction parameters will further accurately describe and control the motion of the actuator in the desktop intelligent laser device. Thus, the instruction parameters are updated in the corresponding queue elements in the trace point queue. The track point movement instructions carrying the richer and more accurate instruction parameters can enable the processing performed by the desktop intelligent laser device to be more reliable and accurate.
Illustratively, the pre-calculated instruction parameters may include information such as a position vector of the corresponding track point in the three-dimensional space. For example, after the head and tail track points of the current scanned curve segment are determined, the length of the curve segment can be obtained, and further, the pre-calculation such as position determination, speed planning and the like can be implemented on the running of the track point according to the length, so that the instruction parameters carried by the movement instruction expansion of the track point can be expanded.
Illustratively, for motion pre-computation performed for a locus of points on a curve segment, the process includes: and calculating the length of the mapped curve segment according to the first track point and the tail track point, performing expansion calculation of other instruction parameters according to the length of the curve segment and instruction parameters carried by the curve segment running instructions at the track points corresponding to the track point queues, and updating the instruction parameters obtained by expansion calculation to corresponding track point motion instructions in the track point queues.
Specifically, the length of the curve segment can be obtained through the positioned initial track point and the positioned tail track point. The obtained curve segment length is beneficial to realizing the motion pre-calculation process such as speed planning and the like for track points in the curve segment range, thereby being convenient for improving the accuracy of motion and processing on the curve segment.
In the motion pre-calculation of the curve segment obtained by pre-scanning the current curve, other instruction parameters are extended for the track points on the curve segment by the pre-calculation performed on the basis of the length of the curve segment and the instruction parameters known by the curve segment, so that the accuracy of the operation of the curve segment, namely the operation of each track point on the curve segment, is further enhanced.
By way of example, the position vector of the corresponding track point in the three-dimensional space can be obtained by pre-calculating the length of the curve segment and the corresponding position of the curve segment on the processing content, namely the position of the point; in addition, the speed planning can also be accomplished by an executed pre-calculation process according to the curve segment length, so that the speed change is controlled by an algorithm. Specifically, for the curve segment of the motion pre-calculation currently executed, the existing acceleration stage and deceleration stage are determined, so that the traversal at the track points is facilitated, and the speed of the curve segment can be processed according to the speed, acceleration or deceleration indicated by the instruction parameters corresponding to each track point, so as to adapt to the planned acceleration stage or deceleration stage.
Further, for the speed planning performed, it can be understood that the execution of the motion on the curve segment will often plan an acceleration phase and/or a deceleration phase in terms of speed, and for the motion on each track point, it is necessary to determine whether the acceleration time point is reached according to the distance that the motion on the curve segment has traveled currently, and then set the acceleration related to the motion entering the acceleration phase.
Similarly, for the planned deceleration stage, whether the deceleration time point is reached is judged according to the remaining distance of the current curve segment, and the deceleration of the planned deceleration stage is set.
And updating the instruction parameters obtained by expansion calculation into queue elements of the track point queue according to the corresponding track points, and further using the instruction parameters for traversing the track point queue executed subsequently.
Therefore, the pre-calculation of the required parameters can be performed among the track point queue traversals, so that the subsequent traversals do not need to perform parameter calculation, and the running efficiency is ensured.
Under the normal state of the desktop intelligent laser device, after the pre-calculation of all curve segments is completed, traversing of a track point queue is initiated, so that the curve segments and track points on the curve segments are operated one by one, and carving or cutting of the desktop intelligent laser device on each track point is finally realized.
Illustratively, as noted above, traversal of the trace point queue is allowed to be performed if the validation buffer is empty, or the trace point queue is full.
It should be noted that, for the operation of each curve segment, the execution process of sending the corresponding track operation instruction is referred to, and each curve segment essentially includes a plurality of track points, so that the operation of the curve segment is the process of respectively operating a plurality of track points.
The motion state of the desktop intelligent laser device includes a normal state and a pause state, the track point queue is traversed, the operation of the desktop intelligent laser device on the track point is executed according to the traversed track point motion instruction, and the specific execution process until the traversal is finished includes:
the desktop intelligent laser equipment initiates traversing of an execution track point queue in a normal state, acquires a traversed track point motion instruction, and then sends the track point motion instruction to an executing mechanism of the desktop intelligent laser equipment, wherein the track point motion instruction is used for the executing mechanism of the desktop intelligent laser equipment to run on a track point.
And finally, after the track point movement instruction is sent, continuing to traverse the track point movement instruction in the next queue element of the track point queue until the track point queue is completely traversed.
Specifically, it should be noted that the motion state of the desktop intelligent laser device refers to the state of an actuator for implementing laser engraving or cutting. Under normal state, the actuating mechanism moves from one track point to the next track point, and the executing laser will carve or cut, and will enter a pause state when abnormality such as interruption occurs.
Under the normal state, the desktop intelligent laser equipment initiates the execution of the traversal of the track point queue, and extracts track point motion instructions from queue elements in the track point queue one by one so as to initiate the motion and laser use on the corresponding track points.
And sending the track point motion instruction obtained by current traversing to a corresponding executing mechanism so as to complete traversing and running of the current track point, further accessing the next queue element, obtaining the track point motion instruction carried by the next queue element, and completing traversing and running of the next queue element until the whole track point queue is completely traversed.
Thus, the traversing performed by the track point array triggers the operation of each track point of the corresponding executing mechanism on the processed material in the desktop intelligent laser device and the carving or cutting performed on the processed material on the track point.
In addition, in the executed trace point queue traversal, a processing mechanism of a pause instruction is also configured. The method is characterized in that after a pause instruction is received, the execution is not stopped immediately, the motion along a set curve section is continued, the deceleration operation is started according to the deceleration carried in the track point motion instruction until the speed is reduced to 0 to complete the deceleration process, and the pause state is entered, so that the impact on equipment caused by immediate stop can be avoided, the processing track can be continued, the integrity of the product in the process of processing can be maintained as much as possible, and the influence caused by pause is reduced.
Through the above-mentioned exemplary embodiment, can be clear that through the realization process that the realization was described above, overcome traditional industry laser cutting machine huge, install complicated, use threshold high and the security not enough's limitation, provide stable reliable accurate laser and use experience for the user, and then greatly reduced the laser and use the degree of difficulty for arbitrary user can all use laser, user-level desktop intelligent laser equipment will be widely used in a great deal of scenes such as family, school.
By the above-described exemplary embodiments, motion control and laser use of the user-level desktop intelligent laser device at each track point are achieved. It can be understood that the motion instruction of the track point used by each track point sets a speed parameter, an acceleration range and the like for each shaft motor of the executing mechanism, so that under the action of the speed planning executed by pre-calculation, the speed change can be controlled to a proper value according to the position vector, the direction and the distance of the opposite inflection point of the corresponding track point in the three-dimensional space, and the stable speed change and the overall running efficiency can be ensured in the specific executing process.
Referring to fig. 7, fig. 7 is a flowchart illustrating a step of directly transmitting data to an external device through a channel constructed between a transmission buffer and a corresponding communication port according to one embodiment of the present disclosure. The step S320 of directly sending data to the external device through the channel constructed between the sending buffer area and the corresponding communication port according to the embodiment of the present disclosure may include the following steps.
In step S321, it is determined whether the transmission buffer is empty, and if the transmission buffer is not empty, the high-speed data transmission operation is performed on the data of the transmission buffer.
In step S322, under the execution of the high-speed data transmission operation, the data is directly transmitted to the external device through the channel constructed by the transmission buffer to the corresponding communication port.
In another embodiment of the present disclosure, the step S320 of directly sending data to the external device through the channel constructed between the sending buffer and the corresponding communication port may further include:
and after the data transmission is finished, interrupting the high-speed data transmission operation and closing.
These steps are described in detail below.
In step S321, the desktop intelligent laser device divides and configures a transmission buffer area for data transmission performed by itself, for temporarily storing data that needs to be transmitted by the desktop intelligent laser device.
Further, the transmission buffer area may be divided for each communication port, and the transmission buffer area is preferably an annular buffer area, that is, a transmission annular buffer area, so that in the execution of step S321, the desktop intelligent laser device first places the data to be transmitted by each port into the corresponding transmission annular buffer area.
And then judging whether the sending ring buffer area corresponding to each communication port is empty, if not, starting transmission , and executing step S322.
In the execution of step S322, the high-speed data transfer operation is performed by turning on DMA (Direct Memory Access ). Specifically, under the high-speed data transfer operation performed, the data is allowed to be directly read and written between the external device and the memory, i.e., the transmission buffer, without the CPU reading the data from the transmission buffer for the external device, and without the CPU intervening.
Under the execution of high-speed data transmission operation, DMA is used for automatically completing the data transmission, and as CPU participation is not needed, a channel for directly transmitting data is opened between a transmission buffer area and a communication port, namely between a memory and external equipment, so that the data is transmitted.
And finally, under the condition that the sending annular buffer area is empty, completing data transmission, responding to the DMA interrupt, closing the DMA, and not executing high-speed data transmission operation.
The following describes a specific implementation of the disclosure by taking a specific use process of a desktop intelligent laser device by a user as an example.
The intelligent desktop laser device is adapted, and a computer end is configured and used for providing contents such as processing patterns for carving and cutting executed by the intelligent desktop laser device, so that the intelligent desktop laser device can execute carving or cutting on a specified material by using laser according to the processing patterns.
Specifically, the computer end is used as an upper computer to obtain a processing pattern which is painted by a user or a processing pattern selected by the user, an executable file of the desktop intelligent laser device is generated according to a curve track existing on the processing pattern, the executable file can be a G code file, and the executable file is used for controlling the movement of the desktop intelligent laser device and the use of laser, so that the processing pattern is engraved or cut on a specified material.
The computer end transmits the split executable file into a plurality of frames of data to the desktop intelligent laser device by taking the frames as units.
And triggering the communication port of the desktop intelligent laser equipment to receive data. At this time, the CPU interrupts the current program motion, preferentially processes data reception, and stores the data in the first-level buffer area corresponding to the communication port.
On the other hand, since one frame of data is a frame header+data+data length+data check value+frame tail, for the first level buffer, the first level buffer is cleared when the frame header is received, and then the reception of the currently transmitted one frame of data is started. Of course, if the first level buffer is full, the frame header cannot be received, and the first level buffer will be cleared. The clear first-level buffer area starts to receive data until the frame tail is received.
Different communication ports are configured with corresponding first-level buffer areas for temporary storage of data received by the communication ports. And sequentially checking the data in the first-level buffer area to obtain effective data and storing the effective data into the second-level annular buffer area.
The data that is not checked is retransmitted and discarded according to the set processing mechanism, and is not limited herein.
The data in the second-level annular buffer can be used for moving curve sections corresponding to the processing patterns and track points and laser.
And (3) taking out the data from the secondary annular buffer area, analyzing and converting the data into track point motion instructions, sequentially adding the track point motion instructions obtained by sequential conversion into a track point queue, and allowing the track point queue to be traversed when the secondary annular buffer area is empty or the track point queue is full.
For the generated track point queue, a first-level pointer and a second-level instruction are defined on the track point queue, so that pre-calculation is conveniently executed for traversing the track point queue, and the calculated amount in the actual traversing process is reduced.
Specifically, the first-level pointer and the second-level pointer both comprise a head pointer and a tail pointer, and the first-level pointer is used for controlling the queue elements in the whole track point queue; the second-level pointer performs pointing control of the corresponding queue element for a curve segment mapped by the trace point queue.
Under the action of the first-level pointer and the second-level pointer, curve pre-scanning is carried out on the track point array, a first track point and a tail track point are determined for the curve section pointed at currently through the execution of the curve pre-scanning, and then the length of the curve section is obtained, so that motion pre-calculation is carried out on the curve section to obtain track point motion instruction expansion instruction parameters, and the track point expansion instruction parameters are updated into the track point array.
Similarly, scanning and pre-calculation of all curve segments in the trace point queue are completed.
If the desktop intelligent laser equipment is in a normal state currently, a traversing track point queue is initiated, track point motion instructions are taken out from traversed queue elements and sent, so that an executing mechanism of the desktop intelligent laser equipment can drive the executing mechanism to run on corresponding track points and use laser according to the track point motion instructions, and laser engraving or cutting of each track point can be completed by the same.
According to one embodiment of the disclosure, a data interaction device in a desktop intelligent laser device is provided, where the interaction device includes an external data receiving module and a data sending module for directly transmitting data between communication ends corresponding to a sending buffer area;
the external data receiving module is used for executing the following steps:
The desktop intelligent laser device triggers the interrupt to the receiving of any communication port, and external data receiving of the communication port is executed in the interrupt receiving;
storing and processing the received external data through a hierarchical cache corresponding to the communication port, wherein the external data is used for executing carving and/or cutting in the desktop intelligent laser device;
the data transmitting module is used for executing the following steps:
the desktop intelligent laser device adapts the data sent by each communication port to be stored in the corresponding sending buffer area;
and directly transmitting the data to external equipment through a channel constructed between the transmission buffer area and the corresponding communication port.
In one embodiment, the receiving of any communication port by the desktop intelligent laser device triggers an interrupt, and the external data receiving of the communication port is executed in the receiving interrupt, which includes:
the desktop intelligent laser device receives external data triggered by any communication port and interrupts the program executing process;
and in the interruption of the program execution process, the external data received by the communication port is taken out.
In one embodiment, the receiving of the desktop intelligent laser device to any communication port triggers an interrupt, and after the external data of the communication port is received in the receiving interrupt, the method further includes:
After the external data to be fetched are stored, the desktop intelligent laser device returns to continue executing the interrupted program execution process.
In one embodiment, the storing and processing the received external data by the hierarchical cache corresponding to the communication port includes:
storing the received external data in a first-level buffer area corresponding to the communication port;
external data stored in the corresponding first-level buffer area of each communication port are respectively obtained from the first-level buffer area according to the data receiving sequence;
and checking the external data to obtain effective data, and storing the effective data in a secondary annular cache area corresponding to the communication port.
In one embodiment, the storing and processing the received external data by the hierarchical cache corresponding to the communication port further includes:
and processing the external data which is not checked to pass according to a processing mechanism of the functional module to which the external data belongs.
In one embodiment, the valid data includes instruction data, the received external data is stored and processed by a hierarchical cache corresponding to the communication port, and further comprising:
Sequentially extracting instruction data from the secondary annular buffer area corresponding to each communication port;
analyzing the instruction data to obtain a control instruction of the desktop intelligent laser device;
and processing the control instruction according to the corresponding instruction type, wherein the processing of the control instruction comprises immediate execution of the control instruction and adding the control instruction into an execution queue.
In one embodiment, the sending the data directly to the external device through the channel constructed between the sending buffer and the corresponding communication port includes:
judging whether the sending buffer area is empty or not, if the sending buffer area is not empty, executing high-speed data transmission operation on the data of the sending buffer area;
and under the execution of the high-speed data transmission operation, the data is directly transmitted to external equipment through a channel constructed by the transmission buffer area to the corresponding communication port.
In one embodiment, the sending the data directly to the external device through the channel constructed between the sending buffer and the corresponding communication port includes:
and after the data transmission is finished, interrupting the high-speed data transmission operation and closing.
The motion control method in the desktop intelligent laser device according to the embodiment of the present disclosure may be implemented by the desktop intelligent laser device of fig. 8. A desktop intelligent laser device according to an embodiment of the present disclosure is described below with reference to fig. 8. The desktop intelligent laser device shown in fig. 8 is only one example and should not be construed as limiting the functionality and scope of use of the disclosed embodiments.
As shown in fig. 8, the desktop intelligent laser device may be similar to a general purpose computing device, and components of the desktop intelligent laser device may include, but are not limited to: at least one processing unit 810, the at least one memory unit 820, a bus 830 connecting the various system components including the memory unit 820 and the processing unit 810, and an actuator (not shown) to undertake laser processing tasks.
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 SDN controller may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.). Such communication may occur through an input/output (I/O) interface 650. Also, SDN controller may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the internet) via network adapter 860. As shown, network adapter 860 communicates with other modules over bus 830. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in connection with the SDN controller, 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 disclosure 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, including 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 disclosure.
In an exemplary embodiment of the present disclosure, 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 disclosure, 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 functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. 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 steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order 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 disclosure 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, including 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 disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. The data interaction method in the desktop intelligent laser equipment is characterized by comprising an external data receiving step and a data sending step of directly transmitting data between corresponding communication ports by a sending buffer area;
the external data receiving step includes:
the desktop intelligent laser device triggers the interrupt to the receiving of any communication port, and external data receiving of the communication port is executed in the interrupt receiving;
storing and processing the received external data through a hierarchical cache corresponding to the communication port, wherein the external data is used for executing carving and/or cutting in the desktop intelligent laser device;
The step of transmitting data from the transmission buffer area to the corresponding communication ports includes:
the desktop intelligent laser device adapts the data sent by each communication port to be stored in the corresponding sending buffer area;
and directly transmitting the data to external equipment through a channel constructed between the transmission buffer area and the corresponding communication port.
2. The method of claim 1, wherein the receiving of any communication port by the desktop intelligent laser device triggers an interrupt, and wherein performing external data reception of the communication port in the receive interrupt comprises:
the desktop intelligent laser device receives external data triggered by any communication port and interrupts the program executing process;
and in the interruption of the program execution process, the external data received by the communication port is taken out.
3. The method of claim 2, wherein the receiving of any communication port by the desktop intelligent laser device triggers an interrupt, and after performing the external data receiving of the communication port in the receiving interrupt, the method further comprises:
after the external data to be fetched are stored, the desktop intelligent laser device returns to continue executing the interrupted program execution process.
4. The method of claim 1, wherein the storing and processing the received external data by the hierarchical cache corresponding to the communication port comprises:
storing the received external data in a first-level buffer area corresponding to the communication port;
external data stored in the corresponding first-level buffer area of each communication port are respectively obtained from the first-level buffer area according to the data receiving sequence;
and checking the external data to obtain effective data, and storing the effective data in a secondary annular cache area corresponding to the communication port.
5. The method of claim 4, wherein the storing and processing of the received external data by the hierarchical cache corresponding to the communication port further comprises:
and processing the external data which is not checked to pass according to a processing mechanism of the functional module to which the external data belongs.
6. The method of claim 4, wherein the valid data comprises instruction data, the received external data being stored and processed by a hierarchical cache corresponding to the communication port, further comprising:
Sequentially extracting instruction data from the secondary annular buffer area corresponding to each communication port;
analyzing the instruction data to obtain a control instruction of the desktop intelligent laser device;
and processing the control instruction according to the corresponding instruction type, wherein the processing of the control instruction comprises immediate execution of the control instruction and adding the control instruction into an execution queue.
7. The method of claim 1, wherein the sending the data directly to the external device through the channel constructed between the sending buffer and the corresponding communication port comprises:
judging whether the sending buffer area is empty or not, if the sending buffer area is not empty, executing high-speed data transmission operation on the data of the sending buffer area;
and under the execution of the high-speed data transmission operation, the data is directly transmitted to external equipment through a channel constructed by the transmission buffer area to the corresponding communication port.
8. The method of claim 7, wherein the sending the data directly to the external device through the channel constructed between the sending buffer and the corresponding communication port comprises:
and after the data transmission is finished, interrupting the high-speed data transmission operation and closing.
9. The data interaction device in the desktop intelligent laser equipment is characterized by comprising an external data receiving module and a data sending module for directly transmitting data between communication ports corresponding to the sending buffer areas;
the external data receiving module is used for executing the following steps:
the desktop intelligent laser device triggers the interrupt to the receiving of any communication port, and external data receiving of the communication port is executed in the interrupt receiving;
storing and processing the received external data through a hierarchical cache corresponding to the communication port, wherein the external data is used for executing carving and/or cutting in the desktop intelligent laser device;
the data transmitting module is used for executing the following steps:
the desktop intelligent laser device adapts the data sent by each communication port to be stored in the corresponding sending buffer area;
and directly transmitting the data to external equipment through a channel constructed between the transmission buffer area and the corresponding communication port.
10. Desktop intelligent laser equipment, its characterized in that includes:
a memory storing computer readable instructions;
a processor reading computer readable instructions stored in a memory to perform the method of any one of claims 1-8.
CN202210331893.2A 2021-12-30 2022-03-31 Data interaction method, device and equipment in desktop intelligent laser equipment Pending CN116408553A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/120291 WO2023124286A1 (en) 2021-12-30 2022-09-21 Data interaction method and apparatus in intelligent desktop laser device, and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111661020 2021-12-30
CN202111661020X 2021-12-30

Publications (1)

Publication Number Publication Date
CN116408553A true CN116408553A (en) 2023-07-11

Family

ID=87053756

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202210333532.1A Pending CN116414083A (en) 2021-12-30 2022-03-31 Motion control method, device and equipment in desktop intelligent laser equipment
CN202210331893.2A Pending CN116408553A (en) 2021-12-30 2022-03-31 Data interaction method, device and equipment in desktop intelligent laser equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202210333532.1A Pending CN116414083A (en) 2021-12-30 2022-03-31 Motion control method, device and equipment in desktop intelligent laser equipment

Country Status (1)

Country Link
CN (2) CN116414083A (en)

Also Published As

Publication number Publication date
CN116414083A (en) 2023-07-11

Similar Documents

Publication Publication Date Title
CN112965466B (en) Reduction test method, device, equipment and program product of automatic driving system
CN111738016B (en) Multi-intention recognition method and related equipment
JP4563829B2 (en) Direct memory access control method, direct memory access control device, information processing system, program
CN102581850A (en) GSK-Link bus based modular robot control device and control method
CN110480635B (en) Control method and control system for multiple robots
JPH06266495A (en) Method and apparatus for message analysis of message given to man-machine dialog system by dialog means
CN112207829A (en) Robot control method and device and readable storage medium
WO2022002885A1 (en) An edge computing based path planning system for agv with intelligent deviation correction algorithm
CN113963562B (en) Avoidance method and device for multiple vehicles in working area
CN116408553A (en) Data interaction method, device and equipment in desktop intelligent laser equipment
US9581991B2 (en) DNC operation system
WO2023124286A1 (en) Data interaction method and apparatus in intelligent desktop laser device, and device
CN110703753B (en) Path planning method and device, electronic equipment and storage medium
WO2023124288A1 (en) Motion control method and apparatus in desktop smart laser device, and device
US5274562A (en) Numerical control unit for facilitating tool change
Urban et al. Fusion of voice, gesture, and human-computer interface controls for remotely operated robot
CN114397124B (en) Interactive detection method and detection device for all mechanisms in building dismantling machine
Kouskoulas et al. Provably safe controller synthesis using safety proofs as building blocks
US6240439B1 (en) System and method for independently executing plurality of programs for control of objects and recording medium in which the programs are recorded so as to execute independently plurality of programs for control of objects
CN112379692B (en) Method, device and equipment for determining unmanned aerial vehicle air route and storage medium
CN113721618B (en) Plane determination method, device, equipment and storage medium
CN113778455A (en) Code conversion method and device, electronic equipment and storage medium
JPH03280120A (en) Guidance system utilizing operation history
CN114347039B (en) Robot look-ahead control method and related device
JP2001154719A (en) Method for interpolating free curve

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