Data transmission cut-off recovery method, device and system

文档序号:1782916 发布日期:2019-12-06 浏览:11次 中文

阅读说明:本技术 一种数据传输断流恢复方法、装置及系统 (Data transmission cut-off recovery method, device and system ) 是由 顾钧 徐鑫 吕军杨 于 2018-05-29 设计创作,主要内容包括:本发明实施例提供了一种数据传输断流恢复方法、装置、设备及系统,所述方法包括:对工业相机与用户设备之间的数据传输过程进行监测,当监测到数据传输错误时,工业相机端进行中断传输;接收所述用户设备在监测到传输中断后发送的重置指令,并进行重置传输操作;在完成重置传输操作后,恢复与所述用户设备之间的数据传输。从而减少了断流到恢复的时间。(The embodiment of the invention provides a method, a device, equipment and a system for recovering data transmission cut-off, wherein the method comprises the following steps: monitoring a data transmission process between an industrial camera and user equipment, and when data transmission errors are monitored, carrying out interrupt transmission by an industrial camera end; receiving a reset instruction sent by the user equipment after monitoring transmission interruption, and carrying out reset transmission operation; and after the reset transmission operation is completed, resuming the data transmission with the user equipment. Thereby reducing the time from shut-off to recovery.)

1. A data transmission outage restoration method applied to an industrial camera, the method comprising:

monitoring a data transmission process between an industrial camera and user equipment, and interrupting transmission when data transmission errors are monitored;

Receiving a reset instruction sent by the user equipment, and carrying out reset transmission operation according to the reset instruction;

resuming data transfer with the user equipment after completion of a reset transfer operation.

2. the method of claim 1, wherein interrupting transmission comprises:

Setting an endpoint of data transmission to be in a pause state;

The performing a reset transfer operation includes:

clearing cache data in a Direct Memory Access (DMA) channel in the industrial camera, and setting the DMA channel to be in a pause state;

clearing cache data associated with the endpoint;

setting the DMA channel to be in an opening state;

and setting the endpoint to be in an opening state.

3. The method of claim 1, wherein the resuming the data transmission with the user equipment comprises:

Setting a data Stream Enable (STREAM) Enable register of the industrial camera to be in a non-enabled state, so that the user equipment sends a register state change instruction to the industrial camera after monitoring that the state of the STREAM Enable register is in the non-enabled state, and the industrial camera changes the state of the STREAM Enable register to be in an enabled state;

and after the state of the Stream Enable register is changed into an enabling state, carrying out data transmission with the user equipment.

4. A data transmission outage recovery method is applied to user equipment, and the method comprises the following steps:

when data transmission interruption with an industrial camera is monitored, sending a reset instruction to the industrial camera;

And when the industrial camera is monitored to complete the reset transmission operation, resuming the data transmission with the industrial camera.

5. The method of claim 4, wherein the reset instruction is a reset endpoint Clear Halt instruction for instructing the industrial camera to perform a reset transfer operation.

6. The method of claim 4, wherein resuming data transfer with the industrial camera after monitoring the industrial camera to complete a reset transfer operation comprises:

when the situation that a data Stream Enable register of the industrial camera is set to be in a non-enabled state is monitored, a register state change instruction is sent to the industrial camera, so that the industrial camera changes the state of the Stream Enable register to be in an enabled state;

And after the industrial camera is monitored to change the state of the Stream Enable register into an enabling state, carrying out data transmission with the industrial camera.

7. A data transmission interruption recovery apparatus, applied to an industrial camera, the apparatus comprising:

The monitoring module is used for monitoring the data transmission process between the industrial camera and the user equipment, and interrupting transmission when data transmission errors are monitored;

The reset module is used for receiving a reset instruction sent by the user equipment and carrying out reset transmission operation according to the reset instruction;

And the data transmission recovery module is used for recovering the data transmission between the user equipment and the data transmission recovery module after the reset transmission operation is completed.

8. The apparatus according to claim 7, wherein the monitoring module is specifically configured to set an endpoint of the data transmission to a suspended state;

The reset module is specifically configured to clear cache data in a Direct Memory Access (DMA) channel of the industrial camera, and set the DMA channel to a suspended state; clearing cache data associated with the endpoint; setting the DMA channel to be in an opening state; and setting the endpoint to be in an opening state.

9. The apparatus according to claim 7, wherein the data transmission recovery module is specifically configured to set a Stream Enable register of the industrial camera to a non-enabled state after the reset transmission operation is completed, so that the user equipment sends a register state change instruction to the industrial camera after monitoring that the state of the Stream Enable register is the non-enabled state, so that the industrial camera changes the state of the Stream Enable register to an enabled state; and after the state of the Stream Enable register is changed into an enabling state, carrying out data transmission with the user equipment.

10. A data transmission outage restoration apparatus, applied to a user equipment, the apparatus comprising:

The system comprises a reset instruction sending module, a reset instruction sending module and a reset instruction sending module, wherein the reset instruction sending module is used for sending a reset instruction to the industrial camera when monitoring that data transmission between the industrial camera and the industrial camera is interrupted;

And the recovery module is used for recovering data transmission between the industrial camera and the industrial camera after the industrial camera is monitored to finish the reset transmission operation.

11. the apparatus of claim 10, wherein the reset instruction is a reset endpoint Clear Halt instruction to instruct the industrial camera to perform a reset transfer operation.

12. The apparatus according to claim 10, wherein the recovery module is specifically configured to, after monitoring that a data Stream Enable register of the industrial camera is set to a non-enabled state, send a register state change instruction to the industrial camera, so that the industrial camera changes a state of the Stream Enable register to an enabled state; and after the industrial camera is monitored to change the state of the Stream Enable register into an enabling state, carrying out data transmission with the industrial camera.

13. a data transmission outage recovery system, comprising: the industrial camera of claim 7, the user device of claim 10.

Technical Field

the invention relates to the technical field of software development, in particular to a data transmission cut-off recovery method, device, equipment and system.

Background

When an industrial camera performs data transmission with a user device based on a USB (Universal Serial Bus) 3.0 protocol, hardware on a transmission link may be affected by static electricity, high and low temperature, and other environments, so that data transmission is unstable, that is, errors in verification during transmission are excessive, and under such a condition, the industrial camera suspends transmission, thereby causing data interruption.

Disclosure of Invention

the embodiment of the invention aims to provide a method, a device, equipment and a system for recovering data transmission interruption, so as to shorten the time from interruption to recovery of an industrial camera. The specific technical scheme is as follows:

In a first aspect, an embodiment of the present invention provides a data transmission interruption recovery method, which is applied to an industrial camera, and the method includes:

Monitoring a data transmission process between an industrial camera and user equipment, and interrupting transmission when data transmission errors are monitored;

Receiving a reset instruction sent by the user equipment, and carrying out reset transmission operation according to the reset instruction;

Resuming data transfer with the user equipment after completion of a reset transfer operation.

optionally, the interrupting transmission includes:

setting an endpoint of data transmission to be in a pause state;

the performing a reset transfer operation includes:

Clearing cache data in a Direct Memory Access (DMA) channel in the industrial camera, and setting the DMA channel to be in a pause state;

Clearing cache data associated with the endpoint;

Setting the DMA channel to be in an opening state;

And setting the endpoint to be in an opening state.

optionally, the recovering and the data transmission between the user equipment include:

setting a data Stream Enable (STREAM) Enable register of the industrial camera to be in a non-enabled state, so that the user equipment sends a register state change instruction to the industrial camera after monitoring that the state of the STREAM Enable register is in the non-enabled state, and the industrial camera changes the state of the STREAM Enable register to be in an enabled state;

And after the state of the Stream Enable register is changed into an enabling state, carrying out data transmission with the user equipment.

in a second aspect, an embodiment of the present invention provides a method for recovering data transmission interruption, which is applied to a user equipment, and the method includes:

When data transmission interruption with an industrial camera is monitored, sending a reset instruction to the industrial camera;

And when the industrial camera is monitored to complete the reset transmission operation, resuming the data transmission with the industrial camera.

optionally, the reset instruction is a reset endpoint Clear Halt instruction, and is used to instruct the industrial camera to perform a reset transmission operation.

Optionally, after it is monitored that the industrial camera completes the reset transmission operation, resuming the data transmission with the industrial camera includes:

when the situation that a data Stream Enable register of the industrial camera is set to be in a non-enabled state is monitored, a register state change instruction is sent to the industrial camera, so that the industrial camera changes the state of the Stream Enable register to be in an enabled state;

And after the industrial camera is monitored to change the state of the Stream Enable register into an enabling state, carrying out data transmission with the industrial camera.

In a third aspect, an embodiment of the present invention provides a data transmission interruption recovery device, which is applied to an industrial camera, and includes:

The monitoring module is used for monitoring the data transmission process between the industrial camera and the user equipment, and interrupting transmission when data transmission errors are monitored;

the reset module is used for receiving a reset instruction sent by the user equipment and carrying out reset transmission operation according to the reset instruction;

And the data transmission recovery module is used for recovering the data transmission between the user equipment and the data transmission recovery module after the reset transmission operation is completed.

Optionally, the monitoring module is specifically configured to set an endpoint of data transmission to a suspended state.

Optionally, the reset module is specifically configured to clear cache data in a DMA channel accessed by a direct memory in the industrial camera, and set the DMA channel to a suspended state; clearing cache data associated with the endpoint; setting the DMA channel to be in an opening state; and setting the endpoint to be in an opening state.

Optionally, the data transmission recovery module is specifically configured to set a data Stream Enable register of the industrial camera to be in a non-enabled state after the reset transmission operation is completed, so that the user equipment sends a register state change instruction to the industrial camera after monitoring that the state of the Stream Enable register is in the non-enabled state, so that the industrial camera changes the state of the Stream Enable register to be in an enabled state; and after the state of the Stream Enable register is changed into an enabling state, carrying out data transmission with the user equipment.

In a fourth aspect, an embodiment of the present invention provides a data transmission interruption recovery apparatus, which is applied to user equipment, and the apparatus includes:

The system comprises a reset instruction sending module, a reset instruction sending module and a reset instruction sending module, wherein the reset instruction sending module is used for sending a reset instruction to the industrial camera when monitoring that data transmission between the industrial camera and the industrial camera is interrupted;

and the recovery module is used for recovering data transmission between the industrial camera and the industrial camera after the industrial camera is monitored to finish the reset transmission operation.

Optionally, the reset instruction is a reset endpoint Clear Halt instruction, and is used to instruct the industrial camera to perform a reset transmission operation.

Optionally, the recovery module is specifically configured to, after it is monitored that a data Stream Enable register of the industrial camera is set to a non-enabled state, send a register state change instruction to the industrial camera, so that the industrial camera changes a state of the Stream Enable register to an enabled state; and after the industrial camera is monitored to change the state of the Stream Enable register into an enabling state, carrying out data transmission with the industrial camera.

In a fifth aspect, the present aspect embodiment provides an industrial camera, comprising a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: implementing any of the method steps of the industrial camera side described above.

in a sixth aspect, the present aspect provides a user equipment, including a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: implementing any of the method steps of the user equipment side described above.

in a seventh aspect, an embodiment of the present invention provides a data transmission outage recovery system, including: an industrial camera according to a third aspect and a user device according to a fourth aspect.

By using the data transmission cutoff recovery method, device, equipment and system provided by the embodiment of the invention, the data transmission process can be monitored in the data transmission process with the user equipment, and when excessive verification errors in the data transmission are monitored, the unstable condition possibly caused by the influence of static electricity and the like on hardware in the transmission process is indicated, the transmission is interrupted, and the user equipment is informed. And then receiving a reset instruction fed back by the user equipment, carrying out reset transmission operation by the industrial camera, informing the user equipment after the reset transmission operation is finished, and then informing the industrial camera to continue data transmission by the user equipment. Thereby reducing the time from shut-off to recovery.

drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

fig. 1 is a flowchart of a data transmission interruption recovery method applied to an industrial camera according to an embodiment of the present invention;

fig. 2 is a flowchart of a method for recovering a data transmission interruption according to an embodiment of the present invention, applied to a user equipment;

Fig. 3 is a signaling diagram of a data transmission interruption recovery method according to an embodiment of the present invention;

Fig. 4 is a schematic structural diagram of a data transmission current interruption recovery apparatus applied to an industrial camera according to an embodiment of the present invention;

Fig. 5 is a schematic structural diagram of a data transmission interruption recovery apparatus applied to a user equipment according to an embodiment of the present invention;

Fig. 6 is a schematic structural diagram of an industrial camera according to an embodiment of the present invention;

fig. 7 is a schematic structural diagram of a user equipment according to an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

In order to solve the problems in the prior art, the embodiment of the invention discloses a method, a device, equipment and a system for data transmission cutoff recovery, which can shorten the time from cutoff to recovery of an industrial camera.

The data transmission interruption recovery method provided by the embodiment of the present invention is described below, and the method is applied to an industrial camera, and can be seen in fig. 1, and includes the following steps:

Step S101: the data transmission process between the industrial camera and the user equipment is monitored, and when data transmission errors are monitored, transmission is interrupted.

the industrial camera can monitor the transmission process in the data transmission process with the user equipment, and can interrupt transmission firstly when monitoring that the transmission check errors are excessive.

Step S102: and receiving a reset instruction sent by the user equipment, and carrying out reset transmission operation according to the reset instruction.

after the industrial camera interrupts transmission, when the user equipment requests data from the industrial camera, it can be detected that the transmission is interrupted, the user equipment can send a reset instruction to the industrial camera, and the industrial camera starts to perform reset transmission operation after receiving the reset instruction.

Step S103: after the reset transmission operation is completed, the data transmission with the user equipment is resumed.

After the industrial camera completes the reset transfer operation, data transfer with the user device may resume. Specific embodiments can be seen below.

by using the data transmission cut-off recovery method provided by the embodiment of the invention, the data transmission process can be monitored in the data transmission process with the user equipment, and when the data transmission error is monitored, the transmission is interrupted if the unstable condition possibly occurs due to the influence of static electricity and the like on hardware in the transmission process. The user equipment can monitor the interruption of transmission, then sends a reset instruction to the industrial camera, the industrial camera carries out reset transmission operation, and data transmission can be continued with the user equipment after the reset transmission operation is completed. Therefore, in the process from the cutoff to the recovery, manual operation is not needed, and the power supply and the drive of the equipment do not need to be restarted, so that the time from the cutoff to the recovery is reduced.

Correspondingly, as shown in fig. 2, an embodiment of the present invention further provides a method for recovering data transmission interruption, where the method is applied to a user equipment, and may include the following steps:

Step S201: and when the interruption of data transmission with the industrial camera is monitored, sending a reset instruction to the industrial camera.

When the user equipment and the industrial camera carry out data transmission, the transmission process can be monitored, and when the data transmission interruption is monitored, a reset instruction can be sent to the industrial camera, so that the industrial camera carries out reset transmission operation.

step S202: and when the industrial camera is monitored to complete the reset transmission operation, resuming the data transmission with the industrial camera.

therefore, the data transmission cutoff recovery method provided by the embodiment of the invention can monitor the transmission process, when the transmission interruption is monitored, the reset instruction can be sent to the industrial camera so that the industrial camera carries out the reset transmission operation, and after the reset transmission operation is completed, the data transmission can be continued. The time from the cutoff to the recovery is reduced, in addition, manual operation is avoided, and the stability of the industrial camera is improved.

The following describes in detail a process from current interruption to recovery when an industrial camera and a user equipment perform data transmission with reference to fig. 3 in the specification, and fig. 3 is a signaling diagram of a data transmission current interruption recovery method according to an embodiment of the present invention. The industrial camera is connected with the user equipment through link equipment, and the link equipment can be a USB connecting line and can also be used as a USB hub and the like. In the embodiment of the present invention, data transmission between the industrial camera and the user equipment may be performed based on U3V (USB3.0vision, USB3.0vision protocol), and those skilled in the art can understand that: U3V is a protocol for visual applications to communicate and interact with USB3.0 visual devices based on USB3.0 technology.

in the embodiment shown in fig. 3, the following steps may be included:

Step S301: the industrial camera monitors that the transmission is wrong and interrupts the transmission.

in the embodiment of the invention, the industrial camera may internally include a USB controller, a USB driver and a peripheral controller, and the process of monitoring data transmission based on these modules is as follows:

During data transmission between the industrial camera and the user equipment, the USB controller can check the transmitted data, and when excessive checking errors are monitored, the USB driver can be informed to know that the excessive checking errors exist in the USB driver.

When the USB driver knows that the verification error is excessive, the USB driver can inform the peripheral controller so as to enable the peripheral controller to send out error event information. The peripheral controller may be a USB3.0 peripheral controller integrated with an ARM (Advanced RISC Machine) 9 processor.

The error event information sent by the peripheral controller can be monitored by the firmware program of the industrial camera, so that the firmware program can carry out interrupt operation of data transmission.

the industrial camera firmware program may monitor error event information sent by the peripheral controller through a callback function, for example, the industrial camera firmware program may monitor using a CyU3pusbregister epevtcalback callback function provided by an SDK (Software Development Kit) based on a Cypress (laplace, a home electronics chip manufacturer) FX3 (a model of the peripheral controller) platform.

those skilled in the art will understand that: the software development kit SDK is a collection of development tools used by some software engineers to build application software for a particular software package, software framework, hardware platform, operating system, etc. The monitoring functions, command functions, etc., mentioned in the examples below are provided by the software development kit SDK based on the Cypress FX3 platform. The embodiment of the invention does not limit the used software platform and software development kit.

when the industrial camera firmware program monitors the error event information, the transmission process can be interrupted. Specifically, the industrial camera firmware program may interrupt transmission by placing the endpoint in a suspended state. Where an endpoint is the only addressable port on a USB device that is the source or destination of data for unidirectional transmission by the USB device and a user.

A USB device has one or more endpoints, each endpoint has a unique endpoint number, and each endpoint can be used as a destination endpoint for receiving data or a source endpoint for sending data, but can only be used as an endpoint in a single data transmission direction at the same time, and each endpoint has a corresponding buffer area for storing data to be sent or received through the endpoint. Data transfer may be interrupted by setting the endpoint state to a suspended state.

Step S302: the user device returns streaming error information from the industrial camera.

In the embodiment of the present invention, when the industrial camera sets the endpoint to the pause state and the user equipment connected to the industrial camera requests data from the industrial camera again, an error message, such as a status packet of a stall pid, is received instead of the data information. The user equipment can know that a disconnection occurs during transmission.

step S303: the user device sends a reset instruction to the industrial camera.

After the user equipment learns that the flow interruption condition occurs in the transmission process, the user equipment can send a control instruction to the industrial camera to instruct the industrial camera to carry out reset transmission operation. Specifically, the user equipment may send a Clear Halt (reset endpoint) instruction to the industrial camera, where the instruction is based on a USB3.0 protocol Framework (app Framework) layer and is not described in detail.

Step S304: the industrial camera performs a reset transfer operation.

After the industrial camera receives the instruction, the reset transmission operation can be carried out according to the following steps:

1) And clearing the cache data in the DMA channel accessed by the direct memory in the industrial camera, and setting the DMA channel to be in a pause state.

2) The cached data associated with the endpoint is purged.

For convenience of description, steps 1) and 2) will be described together.

as will be appreciated by those skilled in the art, when the industrial camera performs data transfer with the user device, a DMA (direct memory access) method is usually used, the industrial camera may first place data to be transferred in a buffer of a DMA channel, and the data in the buffer of the DMA channel needs to pass through a buffer associated with an endpoint to be transferred to the user device.

For example, during initialization, the CyU3PdmaChannelReset function provided by software development kit SDK based on the Cypress FX3 platform can be used to flush the data cached in the DMA channel, and then the CyU3PusbFlushEP function can be used to flush the data cached in the DMA channel. These data are erased because they are not sent to the user device instantaneously because of the temporary interruption.

3) And setting the DMA channel to be in an opening state.

4) And setting the endpoint to be in an opening state.

after the cache data flush is completed, the DMA channel and the endpoint may be placed in an open state, respectively. For example, the DMA channel may be set to an on state using the CyU3 pdmacchannelreset function provided by the software development kit SDK based on the Cypress FX3 platform, and the endpoint may be set to an on state using the CyU3PusbStall function. By this time, the reset transfer operation of the industrial camera has been completed.

Step S305: the industrial camera changes the state of the register after the reset transfer operation is completed.

In the embodiment of the invention, after the industrial camera reset transmission operation is completed, the user equipment can be informed to enable the user equipment to know that the industrial camera reset transmission operation is completed, so that data transmission with the industrial camera is started.

specifically, the industrial camera may interact with the user equipment by changing an internal Stream Enable register, and the user equipment may read and write the Stream Enable register in a protocol format in U3V.

That is, after the industrial camera completes initialization, the Stream Enable register may be set to a non-enabled state, so that the user equipment can monitor that the state of the Stream Enable register is the non-enabled state, and thus it is known that the industrial camera has completed the reset transmission operation and is ready to resume data transmission.

In this embodiment of the present invention, the Stream Enable register is a standard register based on the U3V protocol, and the Enable state may be set to 1, and the disable state may be set to 0, which is not limited in this invention.

step S306: the user equipment monitors the register state change.

Step S307: the user equipment sends an instruction to change the state of the register.

step S308: the industrial camera changes the register state and resumes data transfer.

In the embodiment of the present invention, the user equipment may read a value of the Stream Enable register in the industrial camera to know that the industrial camera has completed the reset transfer operation, and then may send an instruction for changing the state of the register to the industrial camera, so that the industrial camera changes the value of the Stream Enable register.

After the state of the Stream Enable register is changed into the enabled state by the industrial camera, the user equipment can also monitor the current enabled state of the register, so far, the interaction between the industrial camera and the user equipment about recovery transmission is completed, and the industrial camera and the user equipment both know that the other party is ready and can recover the transmission. In particular, the user device may resume requesting data from the industrial camera, thereby resuming data transfer with the industrial camera.

Therefore, by using the data transmission cutoff recovery method provided by the embodiment of the invention, the data transmission process can be monitored in the data transmission process with the user equipment, and when the data transmission error is monitored, the transmission is interrupted if the unstable condition possibly occurs due to the influence of static electricity and the like on hardware in the transmission process. The user equipment can monitor the interruption of transmission, then sends a reset instruction to the industrial camera, the industrial camera carries out reset transmission operation, and data transmission can be continued with the user equipment after the reset transmission operation is completed. Therefore, in the process from the cutoff to the recovery, the time from the cutoff to the recovery is reduced, in addition, the manual operation is not needed, the power supply and the drive of the equipment do not need to be restarted, and the stability of the industrial camera is improved.

Referring to fig. 4, an embodiment of the present invention further provides a data transmission interruption recovery device, which is applied to an industrial camera, and may include:

the monitoring module 401 is configured to monitor a data transmission process between the industrial camera and the user equipment, and when a data transmission error is monitored, interrupt transmission.

The reset module 402 is configured to receive a reset instruction sent by the user equipment, and perform a reset transmission operation according to the reset instruction.

a data transmission resuming module 403, configured to resume data transmission with the user equipment after the reset transmission operation is completed.

In the embodiment of the present invention, the reset module 402 may be specifically configured to clear cache data in a DMA channel accessed by a direct memory in an industrial camera, and set the DMA channel in a suspended state; clearing cache data associated with the endpoint; setting the DMA channel to be in an opening state; the endpoint is placed in an on state.

in this embodiment of the present invention, the data transmission recovery module 403 is specifically configured to set the Stream Enable register of the industrial camera to be in a non-enabled state after the reset transmission operation is completed, so that the user equipment sends a register state change instruction to the industrial camera after monitoring that the state of the Stream Enable register is in the non-enabled state, so that the industrial camera changes the state of the Stream Enable register to be in an enabled state; and after the state of the Stream Enable register is changed to the enabled state, performing data transmission with the user equipment.

referring to fig. 5, an embodiment of the present invention further provides a data transmission interruption recovery apparatus, which is applied to a user equipment, and may include:

The reset instruction sending module 501: the industrial camera is used for sending a reset instruction to the industrial camera when the interruption of data transmission with the industrial camera is monitored;

The recovery module 502: and the industrial camera is used for resuming the data transmission with the industrial camera after the industrial camera is monitored to finish the reset transmission operation.

In the embodiment of the present invention, the reset instruction sent by the user equipment may be a reset endpoint Clear Halt instruction, which is used to instruct the industrial camera to perform a reset transmission operation.

In this embodiment of the present invention, the recovery module 502 may be specifically configured to, after monitoring that the data Stream Enable register of the industrial camera is set to the disable state, send a register state change instruction to the industrial camera, so that the industrial camera changes the state of the Stream Enable register to the Enable state; and after the condition that the industrial camera changes the state of the Stream Enable register into the enabling state is monitored, carrying out data transmission with the industrial camera.

Referring to fig. 6, an embodiment of the present invention further provides an industrial camera, including a processor 601 and a machine-readable storage medium 602, the machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: implementing any of the method steps of the industrial camera side described above.

referring to fig. 7, an embodiment of the present invention further provides a user equipment, which includes a processor 701 and a machine-readable storage medium 702, the machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: implementing any of the method steps of the user equipment side described above.

the embodiment of the invention also provides a data transmission interruption flow recovery system which comprises the industrial camera and the user equipment. For the system embodiment, since it is substantially similar to the method embodiment, reference may be made to some descriptions of the method embodiment for relevant points.

the Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.

all the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. For the device and system embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.

It is noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种控制通信模组的方法、计算机装置及计算机可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!