CN117479007A - Industrial camera controller, industrial camera triggering method, industrial camera and system - Google Patents
Industrial camera controller, industrial camera triggering method, industrial camera and system Download PDFInfo
- Publication number
- CN117479007A CN117479007A CN202311345743.8A CN202311345743A CN117479007A CN 117479007 A CN117479007 A CN 117479007A CN 202311345743 A CN202311345743 A CN 202311345743A CN 117479007 A CN117479007 A CN 117479007A
- Authority
- CN
- China
- Prior art keywords
- module
- control
- trigger command
- industrial camera
- control packet
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 238000004458 analytical method Methods 0.000 claims abstract description 111
- 238000012795 verification Methods 0.000 claims description 27
- 238000012545 processing Methods 0.000 claims description 12
- 238000004891 communication Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 abstract description 16
- 230000004044 response Effects 0.000 abstract description 14
- 238000004364 calculation method Methods 0.000 abstract description 11
- 230000009471 action Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 12
- 230000005540 biological transmission Effects 0.000 description 5
- 238000003384 imaging method Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/66—Remote control of cameras or camera parts, e.g. by remote control devices
- H04N23/661—Transmitting camera control signals through networks, e.g. control via the Internet
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/083—Network architectures or network communication protocols for network security for authentication of entities using passwords
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the application provides a controller of an industrial camera, an industrial camera triggering method, an industrial camera and a system, which are applied to the technical field of cameras, wherein the controller of the industrial camera comprises: the device comprises a packet receiving module, a main control module, a trigger command analysis module and an image sensor driving module; the package receiving module is used for receiving the control package, sending the trigger command control package to the trigger command analysis module, and sending other control packages to the main control module for analysis; the trigger command analysis module is used for analyzing the trigger command control packet, generating a trigger signal based on an analysis result and sending the trigger signal to the image sensor driving module so that the image sensor driving module drives the image sensor to collect images. The method can avoid the influence of other calculation tasks in the analysis process of the trigger command control packet, improve the analysis speed of the trigger command control packet, reduce the delay of response triggering and improve the photographing precision of the industrial camera.
Description
Technical Field
The present application relates to the field of camera technology, and in particular, to a controller for an industrial camera, an industrial camera triggering method, an industrial camera, and a system.
Background
Currently, image acquisition by an industrial camera based on an image transmission standard, such as GigE Vision transmission protocol (a standard of image transmission based on gigabit ethernet, which is suitable for industrial imaging application), has become a common solution for image acquisition in the machine Vision field. Referring to fig. 1, the standard by which a plurality of industrial cameras 102 can be connected to an industrial personal computer 101 specifically includes: industrial cameras 1 and 2 … … send a triggering command control packet through the industrial personal computer 101 to trigger a plurality of industrial cameras 102 to take pictures, and can splice images taken by the industrial cameras 102.
Among the control packets sent from the industrial personal computer 101 to the industrial camera 102, other control packets besides the trigger command control packet include, for example: retransmission packets, event packets, response packets, heartbeat packets, and the like. In the related art, all control packages are uniformly parsed and processed by the software system of the main control module of the industrial camera 102. However, the software system of the main control module needs to process the control packet and perform processing such as data calculation, so that the analysis speed of the control packet is affected, the response is delayed, and the photographing precision of the industrial camera 102 is affected.
Disclosure of Invention
The embodiment of the application aims to provide a controller of an industrial camera, an industrial camera triggering method, the industrial camera and a system, so as to improve photographing precision of the industrial camera. The specific technical scheme is as follows:
in a first aspect of embodiments of the present application, there is provided a controller for an industrial camera, comprising: the device comprises a packet receiving module, a main control module, a trigger command analysis module and an image sensor driving module;
the package receiving module is used for receiving the control package, sending the trigger command control package to the trigger command analysis module, and sending other control packages to the main control module for analysis;
the trigger command analysis module is used for analyzing the trigger command control packet, generating a trigger signal based on an analysis result and sending the trigger signal to the image sensor driving module so that the image sensor driving module drives the image sensor to collect images.
In one possible implementation, the packet receiving module includes: an Ethernet control sub-module and a control packet receiving sub-module;
the Ethernet control sub-module is used for carrying out decapsulation processing on a network packet received from a network, and sending a control packet obtained after decapsulation to the control packet receiving sub-module;
the control packet receiving sub-module is used for identifying and sending the trigger command control packet to the trigger command analysis module, and sending other control packets to the main control module for processing.
In a possible implementation manner, the trigger command parsing module is specifically configured to parse the trigger command control packet to obtain information to be verified, and generate a trigger signal and send the trigger signal to the image sensor driving module when the information to be verified matches with the verification information pre-stored in the image sensor driving module.
In a possible implementation manner, the main control module is further configured to send verification information to the trigger command analysis module to enable the trigger command analysis module to store when the industrial camera is started.
In one possible embodiment, any of the controllers described above is implemented by an FPGA.
In a second aspect of the embodiments of the present application, there is provided a method for triggering an industrial camera, where the industrial camera includes any one of the above-mentioned controllers;
the method comprises the following steps:
the method comprises the steps of receiving a control packet through a packet receiving module, sending a trigger command control packet to a trigger command analyzing module, and sending other control packets to a main control module for analysis;
and analyzing the trigger command control packet through a trigger command analysis module, generating a trigger signal based on an analysis result, and sending the trigger signal to the image sensor driving module so that the image sensor driving module drives the image sensor to acquire images.
In one possible implementation, the packet receiving module includes: an Ethernet control sub-module and a control packet receiving sub-module;
the method for receiving the control packet through the packet receiving module, sending the trigger command control packet to the trigger command analyzing module, and sending other control packets to the main control module for analysis comprises the following steps:
the Ethernet control submodule is used for carrying out decapsulation treatment on network packets received from a network, and the control packets obtained after decapsulation are sent to the control packet receiving submodule;
and identifying and sending the trigger command control packet to the trigger command analysis module through the control packet receiving sub-module, and sending other control packets to the main control module for processing.
In one possible implementation manner, the parsing, by the trigger command parsing module, the trigger command control packet, generating a trigger signal based on a parsing result, and sending the trigger signal to the image sensor driving module, where the method includes:
and analyzing the trigger command control packet through the trigger command analysis module to obtain information to be verified, and generating a trigger signal and sending the trigger signal to the image sensor driving module under the condition that the information to be verified is matched with the verification information prestored in the trigger command analysis module.
In one possible implementation, the verification information includes: a device key, a group key, and a group mask;
under the condition that the information to be verified is matched with the verification information pre-stored in the image sensor driving module, generating a trigger signal and sending the trigger signal to the image sensor driving module, wherein the method comprises the following steps:
and comparing the stored device key, the group key and the group mask with the device key, the group key and the group mask to be verified, which are obtained by analysis, and if the device key, the group key and the group mask are the same, matching the information to be verified with the verification information pre-stored by the device key, the group key and the group mask, generating a trigger signal and sending the trigger signal to the image sensor driving module.
In a possible implementation manner, the self-prestored verification information is sent and stored to the trigger command analysis module by the main control module when the industrial camera is started.
In a third aspect of embodiments of the present application, there is provided an industrial camera comprising: a controller and an image sensor as in any above.
In one possible embodiment, the industrial camera further comprises: a network processor;
the network processor is connected with the controller;
the controller receives network packets from a network via the network processor.
In a fourth aspect of embodiments of the present application, there is provided an industrial camera system comprising: the industrial personal computer and any one of the industrial cameras; the industrial personal computer is in network communication connection with each industrial camera;
when image acquisition is needed, the industrial personal computer generates a triggering command control packet and sends the triggering command control packet to each industrial camera, so that a camera controller of each industrial camera triggers an image sensor of the industrial camera to acquire images based on the analysis result of the triggering command control packet.
The beneficial effects of the embodiment of the application are that:
the embodiment of the application provides a controller of an industrial camera, an industrial camera triggering method, an industrial camera and a system, wherein the controller of the industrial camera comprises: the device comprises a packet receiving module, a main control module, a trigger command analysis module and an image sensor driving module; the package receiving module is used for receiving the control package, sending the trigger command control package to the trigger command analysis module, and sending other control packages to the main control module for analysis; the trigger command analysis module is used for analyzing the trigger command control packet, generating a trigger signal based on an analysis result and sending the trigger signal to the image sensor driving module so that the image sensor driving module drives the image sensor to collect images.
Compared with the prior industrial camera, the control package analysis is carried out through the main control module, and data calculation is needed, so that the analysis speed of the control package is influenced, after the package receiving module receives the control package, the controller of the industrial camera sends the trigger command control package to the trigger command analysis module, and other control packages are sent to the main control module for analysis, so that the analysis of the trigger command control package by the independently arranged trigger command analysis module is realized, the influence of other calculation tasks in the analysis process of the trigger command control package is avoided, the analysis speed of the trigger command control package is improved, the delay of response triggering is reduced, and the photographing precision of the industrial camera is improved.
Of course, not all of the above-described advantages need be achieved simultaneously in practicing any one of the products or methods of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following description will briefly introduce the drawings that are required to be used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other embodiments may also be obtained according to these drawings to those skilled in the art.
FIG. 1 is a schematic diagram of an industrial camera system of the prior art;
FIG. 2 is a schematic diagram of an industrial camera according to the prior art;
FIG. 3 is a schematic diagram of a controller of an industrial camera according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another structure of a controller of an industrial camera according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a trigger command control packet according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an FPGA according to an embodiment of the present disclosure;
fig. 7 is a schematic flow chart of a triggering method of an industrial camera according to an embodiment of the present application;
fig. 8 is another flow chart of a triggering method of an industrial camera according to an embodiment of the present application;
FIG. 9 is a schematic diagram of an industrial camera according to an embodiment of the present disclosure;
fig. 10 is a schematic diagram of another structure of an industrial camera according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. Based on the embodiments herein, a person of ordinary skill in the art would be able to obtain all other embodiments based on the disclosure herein, which are within the scope of the disclosure herein.
In the related art, when the industrial personal computer sends a control packet to the industrial camera to perform image acquisition, a main control module in the industrial camera needs to perform data calculation while performing analysis of the control packet, for example, rotation and focal length adjustment of the industrial camera are controlled, so that analysis speed of the control packet is affected, delay of response triggering is caused, and photographing precision of the industrial camera is affected. In order to improve photographing precision of an industrial camera, the embodiment of the application provides a controller of the industrial camera, an industrial camera triggering method, the industrial camera and a system.
First, terms of art that may be used in the embodiments of the present application will be explained:
GigE Vision: a standard for gigabit ethernet-based image transmission, designated by automated imaging association AIA (Automated Imaging Association), is suitable for industrial imaging applications;
action CMD: the control packet sent by the host to the slave in the GigE Vision protocol is used for triggering the slave to respond to the action;
device Key: a device key, each camera being preconfigured with its own device key, which is write-only, cannot be simply read from the camera, and can trigger an event only by an action command containing the corresponding key;
group Key: a group key, a freely selected 32-bit value, wherein the group key is matched with the protocol message group key, and the corresponding camera executes actions;
group Mask: a group mask, which is a 32-bit mask that specifies the subset of cameras that actually execute the command.
In the related art, when an industrial camera responds to a triggering command control packet of an industrial personal computer and triggers an image sensor to take a picture, a controller in the industrial camera analyzes the control packet and triggers the image sensor. Specifically, referring to fig. 2, the controller is implemented by an FPGA (Field Programmable Gate Array ) integrated with an ethernet MAC module 201, a CPU packet receiving (CPU Packet Receiver) module 202, a CPU Subsystem (CPU Subsystem) 203, and an image sensor driving (Driver Control) module 204. When the industrial personal computer sends a control packet to the industrial camera, the control packet sent by the industrial personal computer is received through the Ethernet MAC module 201, then the control packet is forwarded to the CPU packet receiving module 202, then the control packet is forwarded to the CPU subsystem 203 through the CPU subsystem 203, the analysis of the control packet is performed, and after the analysis is completed, the image sensor 205 is driven through the image sensor driving module 204 to perform image acquisition. According to the method, the main control module is required to analyze the control packet, however, in the actual working process, the CPU subsystem is required to perform data calculation while analyzing the control packet, for example, the rotation of the industrial camera, the adjustment of the focal length and the like are controlled, so that the analysis speed of the control packet is influenced, the response triggering delay is caused, the embedded analysis jitter exists in a non-real-time system processing command, and the photographing precision of the industrial camera is influenced.
In order to improve photographing accuracy of an industrial camera, the embodiments of the present application provide a controller of the industrial camera, an industrial camera triggering method, an industrial camera and a system, which are described in detail below.
In a first aspect of the embodiments of the present application, a controller of an industrial camera is provided, referring to fig. 3, fig. 3 is a schematic structural diagram of the controller of the industrial camera in the embodiments of the present application, including: the device comprises a packet receiving module 301, a main control module 302, a trigger command analyzing module 303 and an image sensor driving module 304;
the packet receiving module 301 is configured to receive a control packet, send a trigger command control packet to the trigger command parsing module 303, and send other control packets to the main control module 302 for parsing;
the trigger command parsing module 303 is configured to parse the trigger command control packet, generate a trigger signal based on the parsing result, and send the trigger signal to the image sensor driving module 304, so that the image sensor driving module 304 drives the image sensor to collect an image.
According to the controller of the industrial camera, after the packet receiving module receives the control packet, the triggering command control packet is sent to the triggering command analysis module, other control packets are sent to the main control module for analysis, so that the analysis of the triggering command control packet by the independently arranged triggering command analysis module is realized, the influence of other calculation tasks in the analysis process of the triggering command control packet is avoided, the analysis speed of the triggering command control packet is improved, the response triggering delay is reduced, and the photographing precision of the industrial camera is improved.
In the embodiment shown in fig. 3, after the packet receiving module 301 receives the control packet, the packet receiving module may identify the trigger command control packet according to the packet header information of the control packet, if the currently received control packet is the trigger command control packet, send the trigger command control packet to the trigger command analyzing module 303, and if the currently received control packet is not the trigger command control packet, send the currently received control packet to the main control module 302 for analysis. In one example, in the embodiment of the present application, the industrial personal computer sends the control packet to the industrial camera through the GigE Vision transmission protocol, so the packet receiving module 301 may identify the control packet according to the packet header information of the control packet, and if the currently received control packet is a trigger command control packet, send the trigger command to the trigger command parsing module 303. The trigger command parsing module 303 continues to parse the trigger command control packet, so as to obtain various information in the control packet, such as a control instruction, a network address of a requester, a size of the packet, verification information, and the like.
In this embodiment of the present application, the trigger command parsing module 303 that is separately set is used to parse the trigger command control packet, so that the master control module 302 is only used to process other control packets, thereby avoiding the parsing delay caused by that the master control module 302 processes multiple tasks simultaneously, preventing the parsing delay caused by that the industrial camera cannot parse in time when receiving the trigger command control packet, and causing the time difference between the time when the industrial computer sends the control packet and the time when the actual image sensor receives the trigger command, so as to improve the photographing precision by reducing the time difference between the time when the industrial computer sends the control packet and the time when the actual image sensor receives the trigger command.
Therefore, after the controller of the industrial camera receives the control packet through the packet receiving module, the controller sends the triggering command control packet to the triggering command analysis module, other control packets are sent to the main control module for analysis, and the triggering command analysis module which is independently arranged analyzes the triggering command control packet, so that the influence of other calculation tasks in the analysis process of the triggering command control packet is avoided, the analysis speed of the triggering command control packet is improved, the response triggering delay is reduced, and the photographing precision of the industrial camera is improved.
In one possible implementation, referring to fig. 4, fig. 4 is another schematic structural diagram of a controller of an industrial camera in an embodiment of the present application. The packet receiving module 301 may include: an ethernet control submodule 3011 and a control packet receiving submodule 3012; the ethernet control submodule 3011 is configured to perform decapsulation processing on a network packet received from a network, and send a control packet obtained after decapsulation to the control packet receiving submodule 3012; the control packet receiving submodule 3012 is configured to identify and send a trigger command control packet to the trigger command parsing module 303, and send other control packets to the main control module 302 for processing.
Specifically, the ethernet control submodule 3011 may be an ethernet MAC (Media Access Control, media intervention control layer) module, and the control packet receiving submodule 3012 may be a CPU Packet Receiver (data packet receiver of a central processing unit) module.
The ethernet MAC module may decapsulate the control packet received in the network, and send the control packet obtained after decapsulation to the CPU Packet Receiver module. The data can be restored from the bit stream to the data stream through the unpacking process, so that the identification of the header information is convenient to follow. After the CPU Packet Receiver module receives the control packet sent by the ethernet MAC module, the control packet may also be buffered.
In a possible implementation manner, referring to fig. 4, the trigger command parsing module 303 is specifically configured to parse the trigger command control packet to obtain information to be verified, and generate a trigger signal and send the trigger signal to the image sensor driving module 304 when the information to be verified matches with the verification information pre-stored in the image sensor driving module.
In a possible implementation, referring to fig. 4, the main control module 302 is further configured to send verification information to the trigger command analysis module 303 when the industrial camera is turned on, so that the trigger command analysis module 303 stores the verification information.
The trigger command parsing module 303 may parse the trigger command control packet to obtain information to be verified, where the verification information may include a device key, a group key, and a group mask. The master control module 302 can send verification information to the trigger command analysis module 303 when the industrial camera is started, so that the trigger command analysis module 303 stores the verification information, and when the trigger command analysis module 303 verifies the information to be verified obtained by analyzing the trigger command control packet, the information to be verified is matched with the verification information prestored in the master control module. Specifically, the device key, the group key and the group mask which are stored in advance can be matched, and if the device key, the group key and the group mask which are obtained through analysis are identical, the matching is determined. In one example, the industrial personal computer may be connected to a plurality of industrial cameras, where the device key or the group key corresponding to each industrial camera may be different, when the controller sends a control packet to the industrial camera, the controller may broadcast the control packet to each industrial camera, and after each industrial camera receives the broadcast control packet, analyze the control packet, and then match the device key or the group key obtained by analysis with the device key or the group key stored in advance, and if the device key or the group key is the same, perform image acquisition, so that the industrial personal computer may control the corresponding one or more industrial cameras to perform image acquisition through setting the device key or the group key. Specifically, when a plurality of industrial cameras are controlled to perform image acquisition, the plurality of industrial cameras may be grouped, each group corresponding to one group key, so that verification is performed by the group key at the time of verification, and control of the industrial cameras corresponding to the group.
Referring to fig. 5, fig. 5 is a schematic diagram of a trigger Command control packet according to an embodiment of the present application, where command=action-CMD is a control Command, req-id represents a network address of a requester, length represents a length of the packet, 0x42 represents a function used in the control packet, and authentication information includes: device Key (Device Key), group Key (Group Key), group Mask (Group Mask). A trigger signal may be generated based on the parsing result and sent to the image sensor driving module 304 to cause the image sensor driving module 304 to drive the image sensor to capture an image. In one example, the control packet of the trigger command may be a 32-bit character, the function and the identification portion may correspond to 0-15 bits, the control instruction may correspond to 16-31 bits, and the control packet may further include an identification flag. The control packet receiving submodule 3012 may identify the trigger command control packet according to the packet header information, such as identification information, in the control packet, so as to send the trigger command control packet to the trigger command parsing module 303.
In one possible implementation, the controller in the present application may be implemented by hardware, and the trigger command control packet is parsed by a dedicated hardware circuit. Specifically, any of the controllers described above may be implemented by an FPGA (field programmable gate array). Referring to fig. 6, fig. 6 is an FPGA provided in an embodiment of the present application. The FPGA may include the above-described packet receiving module 301, the main control module 302, the trigger command parsing module 303, and the image sensor driving module 304. The packet receiving module 301 may include: an ethernet control submodule 3011 and a control packet receive submodule 3012. Specifically, the ethernet Control submodule 3011 may be an ethernet MAC (Media Access Control), the Control packet receiving submodule 3012 may be a CPU Packet Receiver module, the main Control module 302 may be a CPU Subsystem module, the image sensor driving module 304 may be a Driver Control module, and the sensor may be an image sensor.
The FPGA provided by the embodiment of the application utilizes a special logic circuit to analyze the trigger command control packet, so that the problem of delay jitter of the embedded analysis Action packet is solved, and the FPGA is different from the fact that the prior scheme needs a main control module to participate and has a scheduling mechanism. In the method, the time required from the receipt of the trigger command control packet to the triggering of the image sensor is fixed, so that the jitter of response triggering is reduced, and the synchronization precision of the multi-camera response triggering is improved. In addition, unlike the prior art that the main control module is required to participate in analysis, the time required from the receipt of the trigger command control packet to the triggering of the image sensor image is less. The inventor of the application tests and discovers that the FPGA disclosed by the application can rapidly analyze the trigger command control packet and timely respond to the trigger realization mode, so that the trigger synchronization precision can be within 20us, the analysis speed is higher, and the response trigger delay is reduced.
In a second aspect of the embodiments of the present application, there is provided a method for triggering an industrial camera, the industrial camera including any one of the controllers described above; referring to fig. 7, fig. 7 is a flow chart of a triggering method of an industrial camera according to an embodiment of the present application, where the method includes:
step S71, receiving the control packet through the packet receiving module, sending the triggering command control packet to the triggering command analyzing module, and sending other control packets to the main control module for analysis;
and step S72, analyzing the trigger command control package through the trigger command analysis module, generating a trigger signal based on the analysis result and sending the trigger signal to the image sensor driving module so that the image sensor driving module drives the image sensor to acquire images.
In one possible implementation, the packet receiving module includes: an Ethernet control sub-module and a control packet receiving sub-module;
step S71 receives the control packet through the packet receiving module, and sends the trigger command control packet to the trigger command analyzing module, and sends other control packets to the main control module for analysis, comprising:
the network packet received from the network is subjected to decapsulation treatment through an Ethernet control submodule, and the control packet obtained after decapsulation is sent to a control packet receiving submodule;
and identifying and sending the trigger command control packet to the trigger command analysis module through the control packet receiving sub-module, and sending other control packets to the main control module for processing.
In one possible implementation manner, the trigger command parsing module parses the trigger command control packet, generates a trigger signal based on a parsing result, and sends the trigger signal to the image sensor driving module, where the trigger signal includes:
and analyzing the trigger command control packet through a trigger command analysis module to obtain information to be verified, and generating a trigger signal and sending the trigger signal to the image sensor driving module under the condition that the information to be verified is matched with verification information prestored in the trigger command analysis module.
In one possible implementation, the authentication information includes: a device key, a group key, and a group mask;
under the condition that the information to be verified is matched with the verification information pre-stored in the image sensor driving module, generating a trigger signal and sending the trigger signal to the image sensor driving module, wherein the method comprises the following steps:
and comparing the stored device key, the group key and the group mask with the device key, the group key and the group mask to be verified, which are obtained by analysis, and if the device key, the group key and the group mask are the same, matching the information to be verified with the verification information pre-stored by the device key, the group key and the group mask, generating a trigger signal and sending the trigger signal to the image sensor driving module.
In one possible implementation, the authentication information pre-stored by the master control module is sent and stored to the trigger command analysis module when the industrial camera is started.
In one example, referring to fig. 8, fig. 8 is a schematic flow chart of image acquisition of an industrial camera according to an embodiment of the present application. The Action packet may correspond to the trigger command Control packet, and the Driver Control module may correspond to the image sensor driving module. The method specifically comprises the following steps:
step S81, initializing, namely initializing the industrial camera according to the GigE Vision protocol, and configuring a Device Key, a Group Mask and the like to the industrial camera. In this step, the configuration information may be sent by the main control module to the trigger command execution module for saving during initialization;
step S82, judging whether the control packet is an Action packet, judging whether the control packet which arrives currently is an Action packet according to the packet header information when the industrial camera receives the control packet, if so, continuing to analyze the content behind the Action packet, otherwise, returning to the re-receiving protocol Action packet. This step may be performed by a packet receiving module;
and S83, analyzing the content of the Action packet to obtain a Device Key, a Group Key and a Group Mask in the Action packet. This step may be performed by a trigger command execution module;
step S84, judging whether the Device Key, the Group Key and the Group Mask are matched, comparing the analyzed Device Key, the analyzed Group Key and the analyzed Group Mask with the Device Key, the analyzed Group Key and the analyzed Group Mask configured by the camera, if the matching is continued, returning to wait for the receipt of the control packet again, otherwise, returning to the receiving of the control packet. This step may be performed by a trigger command execution module;
step S85, a trigger signal is generated, and the trigger signal is generated and transmitted to the Driver Control module. This step may be performed by a trigger command execution module;
and step S86, triggering a sensor graph, responding to a trigger signal of the hardware analysis Action package module in the Driver Control module, and triggering the sensor (image sensor) graph. This step may be performed by an image sensor drive module;
step S87, the one-time triggering ends.
Therefore, according to the triggering method of the industrial camera, after the control package is received by the package receiving module, the triggering command control package is sent to the triggering command analyzing module, other control packages are sent to the main control module for analysis, and the triggering command control package is analyzed by the triggering command analyzing module which is arranged independently, so that the influence of other calculation tasks in the analysis process of the triggering command control package is avoided, the analysis speed of the triggering command control package can be improved, the response triggering delay is reduced, and the photographing precision of the industrial camera is improved.
In a third aspect of the embodiments of the present application, referring to fig. 9, fig. 9 is a schematic structural diagram of an industrial camera provided in the embodiments of the present application, including: a controller 901 and an image sensor 902 of any of the above.
In one possible implementation, the industrial camera further comprises: a network processor;
the network processor is connected with the controller;
and a controller for receiving network packets from the network through the network processor.
Referring to fig. 10, the network processor may be a PHY (ethernet physical interface) module, the network processor 1002 may be a module in an industrial camera, the industrial camera is connected with the industrial computer through the network processor 1002 in a communication manner, the industrial camera receives a control packet sent by the industrial computer through the network processor 1002, and then sends the received control packet to the FPGA1003 in the industrial camera.
In one example, referring to fig. 10, the industrial camera includes a network interface 1001, a network processor 1002, an FPGA1003, a memory 1004, and an image sensor 1005, where the industrial camera is connected to the industrial personal computer through the network interface, the network processor 1002 may be a PHY module, the FPGA is connected to the network interface 1001 through the PHY module, the FPGA is further connected to the image sensor 1005 and the memory, for example, DDR3 (double-data-rate three synchronous dynamic random access memory, a computer storage specification), the FPGA may be used as a controller to receive a control packet of the industrial personal computer and drive the sensor to perform image acquisition, and the DDR3 may be used as a cache to perform the caching of data in the FPGA.
It is seen that, industrial camera in this application, including controller, image sensor, after receiving the control package through the package receiving module in the controller, send the control package of trigger command to the control command analysis module, send other control packages to main control module and parse, parse the control package of trigger command through the control command analysis module that sets up alone, avoid the influence of other calculation tasks in the analysis process of control package of trigger command, thereby improve the analysis speed of control package of trigger command, reduce the delay of response trigger, improve the precision of taking a picture of industrial camera.
In a fourth aspect of embodiments of the present application, there is provided an industrial camera system, see fig. 1, comprising: an industrial personal computer 101 and any of the industrial cameras 102 described above; the industrial personal computer 101 is in network communication connection with each industrial camera 102; when image acquisition is required, the industrial personal computer 101 generates a trigger command control packet and sends the trigger command control packet to each industrial camera 102, so that the camera controller of each industrial camera 102 triggers the image sensor of the industrial camera to acquire an image based on the analysis result of the trigger command control packet.
The industrial personal computer 101 in the embodiment of the present application may be connected to a plurality of industrial cameras 102, and in an actual use process, the plurality of industrial cameras may be grouped. The industrial personal computer can drive one or more groups of the industrial personal computers to collect images, specifically, each group can correspond to one group mask, when the industrial personal computer sends a control packet to the industrial camera, the industrial camera can receive the control packet, after each industrial camera analyzes the industrial camera, the group mask in the control packet obtained through analysis can be compared with the group mask prestored by the industrial camera, if the group masks are the same, the control packet is judged to be the control packet corresponding to the group where the industrial camera is located, and therefore image collection is carried out.
Therefore, the industrial camera system in the application can comprise an industrial personal computer and an industrial camera, after the control packet is received by the packet receiving module in the controller in the industrial camera, the triggering command control packet is sent to the triggering command analysis module, other control packets are sent to the main control module for analysis, and the triggering command analysis module which is independently arranged is used for analyzing the triggering command control packet, so that the influence of other calculation tasks in the analysis process of the triggering command control packet is avoided, the analysis speed of the triggering command control packet is improved, the response triggering delay is reduced, and the photographing precision of the industrial camera is improved.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a Solid State Disk (SSD), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the controller of an industrial camera, the industrial camera triggering method, the industrial camera and the system, the description is relatively simple as it is substantially similar to the controller embodiment of the industrial camera, and reference is made to the description of the method embodiments in part.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modifications, equivalent substitutions, improvements, etc. that are within the spirit and principles of the present application are intended to be included within the scope of the present application.
Claims (13)
1. A controller for an industrial camera, comprising: the device comprises a packet receiving module, a main control module, a trigger command analysis module and an image sensor driving module;
the package receiving module is used for receiving the control package, sending the trigger command control package to the trigger command analysis module, and sending other control packages to the main control module for analysis;
the trigger command analysis module is used for analyzing the trigger command control packet, generating a trigger signal based on an analysis result and sending the trigger signal to the image sensor driving module so that the image sensor driving module drives the image sensor to collect images.
2. The controller of claim 1, wherein the packet receiving module comprises: an Ethernet control sub-module and a control packet receiving sub-module;
the Ethernet control sub-module is used for carrying out decapsulation processing on a network packet received from a network, and sending a control packet obtained after decapsulation to the control packet receiving sub-module;
the control packet receiving sub-module is used for identifying and sending the trigger command control packet to the trigger command analysis module, and sending other control packets to the main control module for processing.
3. The controller according to claim 1, wherein,
the trigger command analysis module is specifically configured to analyze the trigger command control packet to obtain information to be verified, and generate a trigger signal and send the trigger signal to the image sensor driving module when the information to be verified is matched with verification information pre-stored in the trigger command analysis module.
4. The controller according to claim 3, wherein,
the main control module is further used for sending verification information to the trigger command analysis module when the industrial camera is started so that the trigger command analysis module can store the verification information.
5. The controller according to any one of claims 1-4, wherein the controller is implemented by an FPGA.
6. A method of triggering an industrial camera, the industrial camera comprising the controller of any one of claims 1-5;
the method comprises the following steps:
the method comprises the steps of receiving a control packet through a packet receiving module, sending a trigger command control packet to a trigger command analyzing module, and sending other control packets to a main control module for analysis;
and analyzing the trigger command control packet through a trigger command analysis module, generating a trigger signal based on an analysis result, and sending the trigger signal to the image sensor driving module so that the image sensor driving module drives the image sensor to acquire images.
7. The method of claim 6, wherein the packet receiving module comprises: an Ethernet control sub-module and a control packet receiving sub-module;
the method for receiving the control packet through the packet receiving module, sending the trigger command control packet to the trigger command analyzing module, and sending other control packets to the main control module for analysis comprises the following steps:
the Ethernet control submodule is used for carrying out decapsulation treatment on network packets received from a network, and the control packets obtained after decapsulation are sent to the control packet receiving submodule;
and identifying and sending the trigger command control packet to the trigger command analysis module through the control packet receiving sub-module, and sending other control packets to the main control module for processing.
8. The method according to claim 6, wherein the parsing, by the trigger command parsing module, the trigger command control packet, generating a trigger signal based on the parsing result, and sending the trigger signal to the image sensor driving module, includes:
and analyzing the trigger command control packet through the trigger command analysis module to obtain information to be verified, and generating a trigger signal and sending the trigger signal to the image sensor driving module under the condition that the information to be verified is matched with the verification information prestored in the trigger command analysis module.
9. The method of claim 8, wherein the authentication information comprises: a device key, a group key, and a group mask;
under the condition that the information to be verified is matched with the verification information pre-stored in the image sensor driving module, generating a trigger signal and sending the trigger signal to the image sensor driving module, wherein the method comprises the following steps:
and comparing the stored device key, the group key and the group mask with the device key, the group key and the group mask to be verified, which are obtained by analysis, and if the device key, the group key and the group mask are the same, matching the information to be verified with the verification information pre-stored by the device key, the group key and the group mask, generating a trigger signal and sending the trigger signal to the image sensor driving module.
10. The method of claim 9, wherein the self-pre-stored verification information is sent and stored to the trigger command analysis module by the master control module when the industrial camera is started.
11. An industrial camera, which is characterized in that,
comprising the following steps: the controller and image sensor of any one of claims 1-5.
12. The industrial camera of claim 11, further comprising: a network processor;
the network processor is connected with the controller;
the controller receives network packets from a network via the network processor.
13. An industrial camera system, comprising: an industrial personal computer and a plurality of industrial cameras as claimed in claim 11 or claim 12; the industrial personal computer is in network communication connection with each industrial camera;
when image acquisition is needed, the industrial personal computer generates a triggering command control packet and sends the triggering command control packet to each industrial camera, so that a camera controller of each industrial camera triggers an image sensor of the industrial camera to acquire images based on the analysis result of the triggering command control packet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311345743.8A CN117479007A (en) | 2023-10-16 | 2023-10-16 | Industrial camera controller, industrial camera triggering method, industrial camera and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311345743.8A CN117479007A (en) | 2023-10-16 | 2023-10-16 | Industrial camera controller, industrial camera triggering method, industrial camera and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117479007A true CN117479007A (en) | 2024-01-30 |
Family
ID=89635580
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311345743.8A Pending CN117479007A (en) | 2023-10-16 | 2023-10-16 | Industrial camera controller, industrial camera triggering method, industrial camera and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117479007A (en) |
-
2023
- 2023-10-16 CN CN202311345743.8A patent/CN117479007A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3584789B2 (en) | Data transfer control device and electronic equipment | |
CN110830460B (en) | Connection establishing method and device, electronic equipment and storage medium | |
EP4191355A1 (en) | Uds-based communication method, ecu and upper computer | |
US20220144547A1 (en) | Method and system for generating rfid labels using rfid encoder attachment | |
US20110078751A1 (en) | Method of requesting video data distributed across a plurality of video servers | |
US9942120B2 (en) | Technique for monitoring component processing | |
US20190044887A1 (en) | Method and apparatus for conditional broadcasting of network configuration data | |
US11079983B2 (en) | Information processing apparatus that saves, in a shared memory, information for accessing a device using a URL via a USB, and method of controlling same | |
JP3387466B2 (en) | Data communication device | |
WO2022223003A1 (en) | File access method, network card and computing device | |
CN117479007A (en) | Industrial camera controller, industrial camera triggering method, industrial camera and system | |
CN111859062B (en) | Network data processing method and device based on DPDK | |
JP2000134231A (en) | Data transfer controller and electronic equipment | |
CN115426317A (en) | Data transmission rate control method and device and electronic equipment | |
CN115994057A (en) | Chip bus detection method and device, electronic equipment and storage medium | |
US8898716B2 (en) | Method and apparatus for designing a communication mechanism between embedded cable modem and embedded set-top box | |
US11431820B1 (en) | Method and system for implementing inter-process communications | |
CN114124754B (en) | Method for processing media data packets in a multimedia network and related products | |
US11509762B2 (en) | Cable length calculation system and cable length calculation method | |
US9647853B2 (en) | Transmitting system, the device and the method for the remote bus | |
US11102150B2 (en) | Communication apparatus and control method for communication apparatus | |
WO2016180167A1 (en) | Method, device and system for associating events between computing devices | |
CN117118858A (en) | Data acquisition method and device based on network protocol and acquisition card | |
TWI669981B (en) | The process system and the method of the remote device objectification and control mechanism base on the ethernet | |
CN117768248A (en) | Network card equipment, network data transmission method, device, system, equipment and medium |
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 |