CN117579815A - Automatic analysis method and system for running state and performance of industrial camera - Google Patents

Automatic analysis method and system for running state and performance of industrial camera Download PDF

Info

Publication number
CN117579815A
CN117579815A CN202410068492.1A CN202410068492A CN117579815A CN 117579815 A CN117579815 A CN 117579815A CN 202410068492 A CN202410068492 A CN 202410068492A CN 117579815 A CN117579815 A CN 117579815A
Authority
CN
China
Prior art keywords
industrial camera
frame
count
shared memory
camera
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.)
Granted
Application number
CN202410068492.1A
Other languages
Chinese (zh)
Other versions
CN117579815B (en
Inventor
聂忠强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Do3think Technology Co ltd
Original Assignee
Shenzhen Do3think Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Do3think Technology Co ltd filed Critical Shenzhen Do3think Technology Co ltd
Priority to CN202410068492.1A priority Critical patent/CN117579815B/en
Publication of CN117579815A publication Critical patent/CN117579815A/en
Application granted granted Critical
Publication of CN117579815B publication Critical patent/CN117579815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Quality & Reliability (AREA)
  • Studio Devices (AREA)

Abstract

The invention relates to the technical field of industrial camera running state and performance analysis, in particular to an industrial camera running state and performance automatic analysis method and system. The method comprises the following steps: acquiring running state information and debugging information of an industrial camera and quantifying the running state information and the debugging information into a data form; creating a shared memory module for the industrial camera to form a shared memory file; enumerating shared memory files of the industrial camera, and displaying state information of the industrial camera; reading camera information and states; the selected industrial camera is analyzed and the analysis result is displayed. The automatic analysis of the running state and performance of the industrial camera can be realized without relying on auxiliary equipment and a camera application programming interface, the camera state problem report is generated, professional developers are not required to participate in the analysis, the expansion and compatibility are strong, the maintenance and management are easy, besides the dynamic real-time analysis, the static analysis can be realized, the convenience of the industrial camera detection is greatly improved, and meanwhile, the detection cost is reduced.

Description

Automatic analysis method and system for running state and performance of industrial camera
Technical Field
The invention relates to the technical field of industrial camera running state and performance analysis, in particular to an industrial camera running state and performance automatic analysis method and system.
Background
Along with the improvement of the industrial technical level, the industrial camera is increasingly widely applied in the production process of the manufacturing industry and has higher and higher reliability requirements, so that the industrial camera is required to have a certain self-checking function. The current common industrial camera self-checking mode is that an operating system obtains the state of a camera through an application programming interface of the industrial camera and displays the state on a user interaction interface, wherein the state comprises the opening and closing state of the camera, the frame information state of a picture, the state of a flash lamp, the state of a pin, the state of camera parameters and the like. The operating system may test the camera module status using a corresponding programming interface test function. To determine whether the module status is normal. In order to realize the self-checking function of the industrial camera, an operating system is required to be provided with an external device such as a radio frequency circuit, a sensor, an audio circuit, a WiFi module and the like for assisting in acquiring the state of the camera.
In order to realize the self-checking function of the industrial camera in the prior art, auxiliary devices and equipment are required to acquire the state information of the industrial camera on hardware, and an application programming interface of the camera is required to be relied on software to call a certain functional state or debugging information of the camera. When the debugging function item is changed, software needs to be modified, and the corresponding interface is called to support the function. Meanwhile, even after the state or debugging information of the camera is acquired, the state or debugging information of the camera is analyzed by a professional, and software cannot be automatically analyzed, so that the debugging cost of the industrial camera is further increased.
Disclosure of Invention
The invention aims to solve the related problems, and designs an automatic analysis method and system for the running state and performance of an industrial camera. In order to achieve the above object, the present invention provides the following solutions:
an automatic analysis method for the running state and performance of an industrial camera comprises the following steps:
acquiring running state information and debugging information of an industrial camera and quantifying the running state information and the debugging information into a data form; the running state information and the debugging information of the industrial camera are quantitatively generated by an internal drive of the industrial camera, and the running state information and the debugging information comprise the starting times, starting time, disconnection times, triggering times, frame rate, frame number, retransmission frame number, SID number and serial number of the industrial camera, the time when the industrial camera and a computer end start to be connected, the time when the industrial camera and the computer end start to be connected, and the debugging data information of the industrial camera is summarized;
establishing communication connection between the industrial cameras and a computer, respectively creating a shared memory module for each industrial camera by using a memory mapping mechanism of a windows operating system, and writing running state information and debugging information data of the industrial cameras into the shared memory module to form a shared memory file;
enumerating shared memory files of the industrial camera, and displaying state information of the industrial camera;
selecting a shared memory file of the industrial camera, and reading camera information and states;
analyzing the selected shared memory file of the industrial camera, and displaying analysis results and problems and reasons.
As a further improvement of the technical scheme, after the timing sending of the update command is selected in the interaction process, the industrial camera receives the update command, acquires the running state information and the debugging information of the industrial camera again and quantifies the running state information and the debugging information into data forms, the acquired running state information and the debugging information of the industrial camera are written into the shared memory module to form a new shared memory file, and the new shared memory file contains increment values of the updated state data relative to the state data before updating.
As a further improvement of the technical scheme, the running state information and the debugging information data of the industrial camera are written into the shared memory module to form a shared memory file, the shared memory file is stored in a computer readable file form, and the industrial camera running state and performance automatic analysis method is implemented on the shared memory file stored in the computer readable file form at other application terminals.
As a further improvement of the technical solution, the analysis of the selected industrial camera includes analyzing the industrial camera restart, disconnection and command error conditions, comprising the following specific steps: judging whether the industrial camera is restarted or not according to the camera reconnection count, the camera command error count and the time rollback count; and judging whether the industrial camera is in a delinquent connection or command error according to the camera reconnection count, the camera command error count, the time rollback count and the equipment connection problem count.
As a further improvement of the technical solution, the analysis of the selected industrial camera includes the analysis of the timeout degree of the industrial camera, which comprises the following specific steps: the degree of the frequent occurrence of command (response receiving) timeout of the industrial camera is judged to be relatively serious, general or slight according to the specific gravity of command timeout and the specific gravity of command retransmission.
As a further improvement of the technical scheme, the analysis of the selected industrial camera comprises the analysis of the equipment-side data receiving error condition and the host-side data receiving error condition, and the specific steps are as follows: judging whether the data reception of the industrial camera equipment end has a reception error or not according to the equipment end reception error count and the command overtime; judging whether the data receiving of the industrial camera host end has receiving errors or not according to the receiving errors of the host end and the overtime of the command.
As a further improvement of the technical scheme, the analysis of the selected industrial camera comprises the analysis of hardware cache error conditions, and the specific steps are as follows: judging whether the industrial camera has the hardware cache error according to the hardware cache error, the packet checking error count, the packet ID disorder count, the frame retransmission ratio, the frame retransmission count, the retransmission ID error count and the retransmission checking error.
As a further improvement of the technical scheme, analyzing the selected industrial camera includes analyzing frame problems including error frame count, frame retransmission degree, whether frame loss occurs, whether frame loss risk exists, and frame coverage, and specifically includes the steps of: judging whether an error frame exists in the industrial camera according to the error frame count and the frame retransmission ratio; judging the degree of frequent frame retransmission of the industrial camera to be more serious, general or slight according to the error frame count, the discarded frame count and the frame retransmission ratio; judging whether the industrial camera loses frames or not according to hardware buffer frame loss, error frame count, discarded frame count and frame retransmission ratio; judging whether the industrial camera has a frame loss risk or not according to the processing frame rate, the acquisition frame rate, the microsecond number of average frame intervals, callback time consumption, callback maximum time consumption and the time interval between calling acquired frames; and judging whether the industrial camera has frame coverage according to the frame coverage count.
As a further improvement of the technical scheme, the analysis of the selected industrial camera comprises the analysis of the frame triggering state, and the specific steps are as follows: judging whether the industrial camera has the condition of triggering the frame which cannot be output according to the triggering frame which cannot be output; judging whether the interference degree of the industrial camera frame trigger signal is serious, general or slight according to the invalid trigger count and the proportion of trigger neglect in the trigger; judging whether an invalid frame trigger signal occurs to the industrial camera according to the trigger neglect count and the proportion of trigger neglect in the trigger; the degree of invalid row trigger signals of the industrial camera is judged to be serious, general or slight according to the line sweep trigger neglect count and the line sweep invalid trigger count.
An automatic analysis system for the running state and performance of an industrial camera implements the automatic analysis method for the running state and performance of the industrial camera, and the system comprises a data acquisition module, a shared memory file generation module, a shared memory file operation module and a shared memory file analysis module;
the data acquisition module acquires running state information and debugging information of the industrial camera by an internal driver of the industrial camera and quantifies the running state information and debugging information into a data form; the running state information and the debugging information of the industrial camera are quantitatively generated by an internal drive of the industrial camera, and the running state information and the debugging information comprise the starting times, starting time, disconnection times, triggering times, frame rate, frame number, retransmission frame number, SID number and serial number of the industrial camera, the time when the industrial camera and a computer end start to be connected, the time when the industrial camera and the computer end start to be connected, and the debugging data information of the industrial camera is summarized;
after the industrial cameras are in communication connection with the computer, the shared memory file generation module respectively creates a shared memory module for each industrial camera by using a memory mapping mechanism of a windows operating system, and writes running state information and debugging information data of the industrial cameras into the shared memory module to form a shared memory file;
the shared memory file operation module enumerates the shared memory file of the industrial camera, displays the state information of the industrial camera, and reads the information and the state of the industrial camera after the shared memory file of the industrial camera is selected;
the shared memory file analysis module can analyze the selected shared memory file of the industrial camera and display analysis results and problems and reasons.
In summary, the method and the system for automatically analyzing the running state and the performance of the industrial camera provided by the invention can automatically analyze the running state and the performance of the industrial camera without relying on auxiliary equipment and a camera application programming interface, generate a camera state problem report, have strong expansion and compatibility, are easy to maintain and manage, can perform static analysis besides dynamic real-time analysis, greatly improve the convenience of industrial camera detection, and reduce the detection cost.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for the purpose of illustrating preferred embodiments and are not to be construed as limiting the invention;
FIG. 1 is a schematic flow chart of an industrial camera operating state and performance automatic analysis method of the present invention;
FIG. 2 is a schematic diagram of a portion of a display interface according to the present invention;
FIG. 3 is another portion of a display interface according to the present invention;
FIG. 4 is a schematic diagram of the detection result of the present invention;
FIG. 5 is a schematic diagram of an industrial camera operating state and performance automatic analysis system according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The present invention will be described in detail with reference to the accompanying drawings.
Example 1
As shown in fig. 1, a flow chart of an automatic analysis method for the operation state and performance of an industrial camera includes the following steps:
status information and debugging information of the operation of the industrial camera are obtained and quantized into a data form. The running state information and the debugging information of the industrial camera are quantitatively generated by an internal drive of the industrial camera, and the running state information and the debugging information comprise the starting times, starting time, disconnection times, triggering times, frame rate, frame number, retransmission frame number, SID number and serial number of the industrial camera, the time when the industrial camera and a computer end start to be connected, the time when the industrial camera and the computer end start to be connected, and the debugging data information of the industrial camera is summarized;
establishing communication connection between the industrial cameras and a computer, respectively creating a shared memory module for each industrial camera by using a memory mapping mechanism of a windows operating system, and writing running state information and debugging information data of the industrial cameras into the shared memory module to form a shared memory file;
enumerating the shared memory file of the industrial camera, displaying the state information of the industrial camera, wherein a display interface is shown as a list box of fig. 2, namely a first column REQ, and if an update command is sent to the camera at any time, the camera performs active update, and after the camera receives the update command, the latest state data is brushed into the shared memory; the second column is Device, which is the Sid number of the camera; the third column is the serial number of the camera; the fourth column is the Online Time, which is the Time when the industrial camera and the computer end start to establish connection; the fifth column is the Offline Time, which is the Time when the industrial camera and the computer end start to finish connection; the sixth column is OutLine, which is the OutLine of the debugging data information of the industrial camera; when the state items of great interest are selected, the state items are displayed in the column, so that the observation is convenient.
Selecting a shared memory file of the industrial camera, reading camera information and status, which information is displayed in the viewing panel, i.e. the list box of fig. 3. The view panel is divided into two columns, the first column Name being the Name of the state item and the second column Text, for which the value of the state item at each point in time, in brackets is an increment from the last value.
Analyzing the selected shared memory file of the industrial camera, displaying analysis results and problems and reasons, wherein the analysis process is automatically executed, and specific analysis items and processes are as follows:
analysis of the selected industrial camera includes analysis of the industrial camera restart, loss of connection, and command error conditions, including the specific steps of: firstly, judging the reconnection count of the camera or the command error count of the camera; if the camera reconnection count is not 0 or the camera command error count is not 0, further judging the time rollback count; if the time rollback count is not 0, judging that the industrial camera is restarted due to manual operation or power supply stability; if the time rollback count is 0, further judging the equipment connection problem count; if the equipment connection problem count is not 0, further judging the camera reconnection count; if the camera reconnection count is not 0, judging that the industrial camera is in disconnection caused by communication interruption; if the camera reconnection count is 0, judging that the industrial camera has command errors caused by communication interruption; if the equipment connection problem count is 0, further judging the camera reconnection count, and if the camera reconnection count is not 0, judging that the industrial camera is in disconnection caused by communication interruption; and if the command error count of the camera is not 0, judging that the industrial camera has command errors caused by communication interruption.
Analyzing the selected industrial camera comprises analyzing overtime conditions of the industrial camera, and specifically comprises the following steps: firstly judging whether the specific gravity of the overtime command is greater than 0.001, if the specific gravity of the overtime command is greater than 0.001, further judging whether the specific gravity of the command retransmission is greater than 0.6, and if the specific gravity of the command retransmission is greater than 0.6, judging that the overtime condition of the command (response receiving) caused by system blocking or communication of the industrial camera is serious; if the specific gravity of the command retransmission is not more than 0.6, judging that the command overtime condition caused by the communication of the industrial camera is serious; if the specific gravity of the command overtime is not more than 0.001, further judging whether the specific gravity of the command overtime is more than 0.0001, and if the specific gravity of the command overtime is more than 0.0001, further judging whether the specific gravity of the command retransmission is more than 0.6; if the specific gravity of the command retransmission is greater than 0.6, judging that the overtime condition of the command (response receiving) caused by system blocking or communication of the industrial camera is general; if the specific gravity of the command retransmission is not more than 0.6, judging that the command overtime condition degree caused by communication of the industrial camera is general; if the specific gravity of the command timeout is not more than 0.0001, further judging whether the specific gravity of the command timeout is more than 0.00001, and if the specific gravity of the command timeout is more than 0.00001, judging that the command timeout condition of the industrial camera is slight.
Analyzing the selected industrial camera comprises analyzing the data receiving error condition of the equipment end, and specifically comprises the following steps: firstly judging whether the equipment end acceptance error count is not equal to 0, if the equipment end acceptance error count is not equal to 0, calculating the equipment end acceptance error ratio, wherein the equipment end acceptance error ratio = equipment end acceptance error count/command overtime count, and if the equipment end acceptance error ratio is greater than 0.0001, judging that the industrial camera equipment end data reception has a reception error.
Analyzing the selected industrial camera comprises analyzing the data receiving error condition of a host end, and specifically comprises the following steps: firstly judging whether the receiving error of the host end is not 0, if the receiving error of the host end is not 0, calculating the receiving error rate of the host end, wherein the receiving error rate of the host end = the receiving error count of the host end/the command overtime count; further judging whether the host-side acceptance error ratio is greater than 0.0001, and if the host-side acceptance error ratio is greater than 0.0001, judging that the industrial camera host-side data reception has acceptance errors.
Analyzing the selected industrial camera comprises analyzing hardware cache error conditions, and specifically comprises the following steps: firstly judging whether the hardware cache error is larger than 0, if so, judging that the industrial camera has the hardware cache error caused by power supply, load capacity and interference; if the hardware buffer error is 0, judging whether the packet checking error count is greater than 0 or the packet ID disorder count is greater than 0, if the packet checking error count is greater than 0 or the packet ID disorder count is greater than 0, further judging whether the frame retransmission ratio is greater than 0.0001; if the frame retransmission ratio is greater than 0.0001, judging that the reason for the hardware cache error of the industrial camera is serious in retransmission, and then solving the problems of power supply, load capacity and interference; if the frame retransmission ratio is not greater than 0.0001, further judging whether the frame retransmission count is greater than 0; if the frame retransmission count is greater than 0, judging that the reasons for the hardware cache errors of the industrial camera are power supply, load capacity and interference problems preferentially, and retransmitting seriously; if the frame retransmission count is 0, judging that the industrial camera has hardware cache errors caused by stability problems; if the packet checking error count is 0 or the packet ID mismatching count is 0, further judging whether the retransmission ID error count is greater than 0 or whether the retransmission checking error is greater than 0, and if the retransmission ID error count is greater than 0 or the retransmission checking error is greater than 0, judging that the industrial camera has a hardware cache error caused by the retransmission problem.
Analyzing the selected industrial camera comprises analyzing an error frame count and a lost frame count, and specifically comprises the following steps: firstly judging whether the error frame count is larger than 0, if the error frame count is larger than 0, further judging whether the frame retransmission ratio is larger than 0.001, and if the frame retransmission ratio is larger than 0.001, judging that the industrial camera has retransmission problems, system blocking or error frames caused by communication; if the frame retransmission ratio is not more than 0.001, judging that the industrial camera has an error frame caused by the stability problem; if the error frame count is 0, further judging whether the discarded frame count is greater than 0, and if the discarded frame count is greater than 0, further judging whether the frame retransmission ratio is greater than 0.001; if the frame retransmission ratio is greater than 0.001, judging that the industrial camera has retransmission problems, system blocking or frame loss caused by communication; if the frame retransmission ratio is not more than 0.001, judging that the industrial camera has frame loss caused by stability problem; if the discarded frame count is 0, further judging whether the frame retransmission ratio is greater than 0.001, and if the frame retransmission ratio is greater than 0.001, judging that the industrial camera has serious frame retransmission caused by system blocking or communication; if the frame retransmission ratio is not more than 0.001, further judging whether the frame retransmission ratio is more than 0.0001, and if the frame retransmission ratio is more than 0.0001, judging that the industrial camera has system blocking or frame retransmission with general degree caused by communication; if the frame retransmission ratio is not more than 0.0001, it is further judged whether the frame retransmission ratio is more than 0.00001, and if the frame retransmission ratio is more than 0.00001, it is judged that the industrial camera performs frame retransmission to a slight extent.
Analyzing the selected industrial camera comprises analyzing the frame loss condition of a hardware cache, and specifically comprises the following steps: judging whether the frame loss of the hardware buffer is larger than 0, if the frame loss of the hardware buffer is larger than 0, judging that the frame loss of the hardware buffer caused by insufficient output bandwidth or overhigh output frame rate of the sensor occurs to the industrial camera.
Analyzing the selected industrial camera comprises analyzing a frame loss reason, and specifically comprises the following steps: firstly judging whether the processing frame rate is larger than 0.1 and the acquisition frame rate is larger than 0.1, if the processing frame rate is larger than 0.1 and the acquisition frame rate is larger than 0.1, further judging whether the processing frame rate is smaller than the acquisition frame rate by 0.9, and if the processing frame rate is smaller than the acquisition frame rate by 0.9, judging that the industrial camera has insufficient system performance or frame loss caused by too large image processing time consumption; further judging whether callback time is more than microsecond number 0.9 of average frame interval, if callback time is more than microsecond number 0.9 of average frame interval, judging that the industrial camera has frame loss caused by higher average time consumption in a callback function of frame reception; further judging whether the maximum callback time is greater than the microsecond number of the average frame interval, if the maximum callback time is greater than the microsecond number of the average frame interval, judging that the industrial camera has frame loss caused by higher maximum time consumption in a callback function of frame reception; further judging whether the time interval between calling and acquiring frames is larger than the microsecond number of the average frame interval, if the time interval between calling and acquiring frames is larger than the microsecond number of the average frame interval, judging that the industrial camera loses frames caused by higher time interval between calling and acquiring frame functions.
Analyzing the selected industrial camera comprises analyzing frame coverage, and specifically comprises the following steps: judging whether the frame coverage count is larger than 0, and if the frame coverage count is larger than 0, judging that the industrial camera is in frame coverage.
Analyzing the selected industrial camera comprises analyzing reasons for triggering the frame failure, and specifically comprises the following steps: judging whether the trigger frame count is larger than 0, if so, judging the condition that the industrial camera generates a frame which is not triggered due to the stability problem.
Analyzing the selected industrial camera comprises analyzing frame trigger signal interference conditions, and specifically comprises the following steps: firstly judging whether the invalid trigger count is larger than 0, if the invalid trigger count is larger than 0, further judging whether the proportion of trigger neglect in the trigger is larger than 0.0001, and if the proportion of trigger neglect in the trigger is larger than 0.0001, judging that the frame trigger signal with serious appearance degree of the industrial camera is interfered; if the proportion of the trigger neglect in the trigger is not more than 0.0001, further judging whether the proportion of the trigger neglect in the trigger is more than 0.00001, and if the proportion of the trigger neglect in the trigger is more than 0.00001, judging that the frame trigger signal with the general appearance degree of the industrial camera is interfered; if the proportion of trigger neglect in the trigger is not more than 0.00001, the frame trigger signal which is judged to be slightly appeared in the industrial camera is interfered.
Analyzing the selected industrial camera comprises analyzing the reason why the frame trigger signal is invalid, and specifically comprises the following steps: firstly judging whether the trigger neglect count is larger than 0, if the trigger neglect count is larger than 0, further judging whether the proportion of trigger neglect in triggering is larger than 0.00001, if the proportion of trigger neglect in triggering is larger than 0.00001, judging that the reason that an invalid frame trigger signal occurs to the industrial camera is preferentially that the trigger signal is interfered, and secondly that the interval of the trigger signal is too high (the line frequency is too low); if the proportion of the trigger neglect in the trigger is not more than 0.00001, judging that the reason that the industrial camera generates invalid frame trigger signals is preferentially that the interval of the trigger signals is too low (line frequency is too high), and secondly that the trigger signals are interfered.
Analyzing the selected industrial camera comprises analyzing the problem cause of the line triggering signal, and specifically comprises the following steps: firstly, judging whether the line sweep trigger neglect count is larger than 0; if the line scan trigger neglect count is greater than 0, further judging whether the line scan ineffective trigger count is greater than 0; if the line scanning invalid trigger count is larger than 0, judging that the reason for the invalid line trigger signal of the industrial camera is that the line trigger signal is interfered firstly and then the interval of the line trigger signal is too low (the line frequency is too high); if the line scanning invalid trigger count is 0, judging that the reason why the invalid line trigger signal appears in the industrial camera is preferentially that the interval of the line trigger signal is too low (the line frequency is too high), and then the line trigger signal is interfered; if the line scanning trigger neglect count is 0, further judging whether the line scanning ineffective trigger count is greater than 0, and if the line scanning ineffective trigger count is greater than 0, judging that the line touch signal of the industrial camera is interfered.
After the analysis process is automatically performed, the result is displayed as shown in fig. 4.
Example 2
As shown in fig. 5, an automatic analysis system for operating states and performances of an industrial camera is used for executing the automatic analysis system method for operating states and performances of an industrial camera, and the system comprises a data acquisition module, a shared memory file generation module, a shared memory file operation module and a shared memory file analysis module.
The data acquisition module quantifies the state information and the debugging information of the operation of the industrial camera acquired by the industrial camera internal driver into a data form. The running state information and the debugging information of the industrial camera comprise the starting times, starting time, disconnection times, triggering times, frame rate, frame number, retransmission frame number, SID number, serial number, connection starting time of the industrial camera and the computer end, and debugging data information summary of the industrial camera;
after the industrial cameras are in communication connection with the computer, the shared memory file generation module respectively creates a shared memory module for each industrial camera by using a memory mapping mechanism of a windows operating system, and writes running state information and debugging information data of the industrial cameras into the shared memory module to form a shared memory file;
the shared memory file operation module enumerates the shared memory files of the industrial camera, displays the state information of the industrial camera, and reads the information and the state of the industrial camera after the shared memory files of the industrial camera are selected;
and the shared memory file analysis module analyzes the selected shared memory file of the industrial camera and displays analysis results and problems and reasons.
The foregoing has shown and described the basic principles, principal features and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the above-described embodiments, and that the above-described embodiments and descriptions are only preferred embodiments of the present invention, and are not intended to limit the invention, and that various changes and modifications may be made therein without departing from the spirit and scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (10)

1. An automatic analysis method for the running state and performance of an industrial camera is characterized by comprising the following steps:
acquiring running state information and debugging information of an industrial camera and quantifying the running state information and the debugging information into a data form; the running state information and the debugging information of the industrial camera are quantitatively generated by an internal drive of the industrial camera, and the running state information and the debugging information comprise the starting times, starting time, disconnection times, triggering times, frame rate, frame number, retransmission frame number, SID number and serial number of the industrial camera, the time when the industrial camera and a computer end start to be connected, the time when the industrial camera and the computer end start to be connected, and the debugging data information of the industrial camera is summarized;
establishing communication connection between the industrial cameras and a computer, respectively creating a shared memory module for each industrial camera by using a memory mapping mechanism of a windows operating system, and writing running state information and debugging information data of the industrial cameras into the shared memory module to form a shared memory file;
enumerating shared memory files of the industrial camera, and displaying state information of the industrial camera;
selecting a shared memory file of the industrial camera, and reading camera information and states;
analyzing the selected shared memory file of the industrial camera, and displaying analysis results and problems and reasons.
2. The method for automatically analyzing the operation state and performance of an industrial camera according to claim 1, wherein after a timing transmission of an update command is selected in the interaction process, the industrial camera receives the update command, re-acquires the operation state information and debug information of the industrial camera and quantizes the operation state information and debug information into a data form, and writes the re-acquired operation state information and debug information data of the industrial camera into the shared memory module to form a new shared memory file, wherein the new shared memory file contains an increment value of the updated state data relative to the state data before updating.
3. The method for automatically analyzing the operation state and the performance of the industrial camera according to claim 1, wherein the state information and the debugging information data of the operation of the industrial camera are written into the shared memory module to form a shared memory file, the shared memory file is stored in a form of a computer readable file, and the analysis of the operation state and the performance of the industrial camera is implemented on other application terminals by the shared memory file stored in the form of the computer readable file.
4. The method for automatically analyzing the operation state and performance of an industrial camera according to claim 1, wherein the analysis of the selected industrial camera comprises the steps of analyzing the industrial camera restart, the disconnection and the command error conditions, wherein the steps are as follows: judging whether the industrial camera is restarted or not according to the camera reconnection count, the camera command error count and the time rollback count; and judging whether the industrial camera is in a delinquent connection or command error according to the camera reconnection count, the camera command error count, the time rollback count and the equipment connection problem count.
5. The method for automatically analyzing the operation state and performance of an industrial camera according to claim 1, wherein the analyzing the selected industrial camera comprises analyzing the timeout degree of the industrial camera, comprising the steps of: the degree of frequent response receiving command overtime of the industrial camera is judged to be more serious, general or slight according to the proportion of command overtime and the proportion of command retransmission.
6. The method for automatically analyzing the operation state and performance of an industrial camera according to claim 1, wherein the analyzing the selected industrial camera includes analyzing the device-side data reception error condition and the host-side data reception error condition, comprising the steps of: judging whether the data reception of the industrial camera equipment end has a reception error or not according to the equipment end reception error count and the command overtime; judging whether the data receiving of the industrial camera host end has receiving errors or not according to the receiving errors of the host end and the overtime of the command.
7. The method for automatically analyzing the operation state and performance of an industrial camera according to claim 1, wherein the analyzing the selected industrial camera comprises analyzing a hardware cache error condition, comprising the following steps: judging whether the industrial camera has the hardware cache error according to the hardware cache error, the packet checking error count, the packet ID disorder count, the frame retransmission ratio, the frame retransmission count, the retransmission ID error count and the retransmission checking error.
8. The method for automatically analyzing the operation state and performance of an industrial camera according to claim 1, wherein analyzing the selected industrial camera comprises analyzing frame problems including error frame count, degree of frame retransmission, whether frame loss occurs, whether frame loss risk exists, and frame coverage, and the specific steps are: judging whether an error frame exists in the industrial camera according to the error frame count and the frame retransmission ratio; judging the degree of frequent frame retransmission of the industrial camera to be more serious, general or slight according to the error frame count, the discarded frame count and the frame retransmission ratio; judging whether the industrial camera loses frames or not according to hardware buffer frame loss, error frame count, discarded frame count and frame retransmission ratio; judging whether the industrial camera has a frame loss risk or not according to the processing frame rate, the acquisition frame rate, the microsecond number of average frame intervals, callback time consumption, callback maximum time consumption and the time interval between calling acquired frames; and judging whether the industrial camera has frame coverage according to the frame coverage count.
9. The method for automatically analyzing the operation state and performance of an industrial camera according to claim 1, wherein the analyzing the selected industrial camera comprises analyzing a frame trigger state, comprising the steps of: judging whether the industrial camera has the condition of triggering the frame which cannot be output according to the triggering frame which cannot be output; judging whether the interference degree of the industrial camera frame trigger signal is serious, general or slight according to the invalid trigger count and the proportion of trigger neglect in the trigger; judging whether an invalid frame trigger signal occurs to the industrial camera according to the trigger neglect count and the proportion of trigger neglect in the trigger; the degree of invalid row trigger signals of the industrial camera is judged to be serious, general or slight according to the line sweep trigger neglect count and the line sweep invalid trigger count.
10. An automatic analysis system for the operation state and performance of an industrial camera, characterized in that the automatic analysis method for the operation state and performance of the industrial camera according to any one of claims 1 to 9 comprises a data acquisition module, a shared memory file generation module, a shared memory file operation module and a shared memory file analysis module;
the data acquisition module acquires running state information and debugging information of the industrial camera by an internal driver of the industrial camera and quantifies the running state information and debugging information into a data form; the running state information and the debugging information of the industrial camera are quantitatively generated by an internal drive of the industrial camera, and the running state information and the debugging information comprise the starting times, starting time, disconnection times, triggering times, frame rate, frame number, retransmission frame number, SID number and serial number of the industrial camera, the time when the industrial camera and a computer end start to be connected, the time when the industrial camera and the computer end start to be connected, and the debugging data information of the industrial camera is summarized;
after the industrial cameras are in communication connection with the computer, the shared memory file generation module respectively creates a shared memory module for each industrial camera by using a memory mapping mechanism of a windows operating system, and writes running state information and debugging information data of the industrial cameras into the shared memory module to form a shared memory file;
the shared memory file operation module enumerates the shared memory file of the industrial camera, displays the state information of the industrial camera, and reads the information and the state of the industrial camera after the shared memory file of the industrial camera is selected;
the shared memory file analysis module can analyze the selected shared memory file of the industrial camera and display analysis results and problems and reasons.
CN202410068492.1A 2024-01-17 2024-01-17 Automatic analysis method and system for running state and performance of industrial camera Active CN117579815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410068492.1A CN117579815B (en) 2024-01-17 2024-01-17 Automatic analysis method and system for running state and performance of industrial camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410068492.1A CN117579815B (en) 2024-01-17 2024-01-17 Automatic analysis method and system for running state and performance of industrial camera

Publications (2)

Publication Number Publication Date
CN117579815A true CN117579815A (en) 2024-02-20
CN117579815B CN117579815B (en) 2024-04-02

Family

ID=89892291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410068492.1A Active CN117579815B (en) 2024-01-17 2024-01-17 Automatic analysis method and system for running state and performance of industrial camera

Country Status (1)

Country Link
CN (1) CN117579815B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008131443A (en) * 2006-11-22 2008-06-05 Hitachi Ltd Monitoring system, and its failure status display method
CN103856774A (en) * 2014-02-28 2014-06-11 北京航科威视光电信息技术有限公司 Intelligent detection system and method for video surveillance
CN107707904A (en) * 2017-08-22 2018-02-16 深圳市度申科技有限公司 A kind of test system of industrial camera triggering performance
CN110059004A (en) * 2019-03-21 2019-07-26 深圳市腾讯信息技术有限公司 A kind of method, apparatus, equipment and the medium of application test
CN111629205A (en) * 2020-07-28 2020-09-04 天津美腾科技股份有限公司 System and method applied to industrial camera simulation test
CN116016898A (en) * 2022-11-29 2023-04-25 广州文远知行科技有限公司 Detection method, device, equipment and storage medium for abnormal camera
CN116662038A (en) * 2023-07-25 2023-08-29 菲特(天津)检测技术有限公司 Industrial information detection method, device, equipment and medium based on shared memory

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008131443A (en) * 2006-11-22 2008-06-05 Hitachi Ltd Monitoring system, and its failure status display method
CN103856774A (en) * 2014-02-28 2014-06-11 北京航科威视光电信息技术有限公司 Intelligent detection system and method for video surveillance
CN107707904A (en) * 2017-08-22 2018-02-16 深圳市度申科技有限公司 A kind of test system of industrial camera triggering performance
CN110059004A (en) * 2019-03-21 2019-07-26 深圳市腾讯信息技术有限公司 A kind of method, apparatus, equipment and the medium of application test
CN111629205A (en) * 2020-07-28 2020-09-04 天津美腾科技股份有限公司 System and method applied to industrial camera simulation test
CN116016898A (en) * 2022-11-29 2023-04-25 广州文远知行科技有限公司 Detection method, device, equipment and storage medium for abnormal camera
CN116662038A (en) * 2023-07-25 2023-08-29 菲特(天津)检测技术有限公司 Industrial information detection method, device, equipment and medium based on shared memory

Also Published As

Publication number Publication date
CN117579815B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
US7707459B2 (en) Embedded systems debugging
US11211023B2 (en) Display method of display device and display device
KR20080089595A (en) Fast display initialization and light up
CN109840178B (en) Method, mobile terminal and device for monitoring log information
CN109147701B (en) Display control structure, display control method, display substrate and display device
CN111427779A (en) Application program pause information acquisition method and device
CN117579815B (en) Automatic analysis method and system for running state and performance of industrial camera
US6598150B2 (en) Asynchronously accessing the program counter values of a data processing system by applying an independent clock on the latching and scan-chain circuits
US20060036893A1 (en) Method and system for debugging Ethernet
CN110704148A (en) Method and device for acquiring device page elements, server and storage medium
CN107609114B (en) Log information reporting method and device, storage medium, ADSP and terminal
CN111845345A (en) Automobile full liquid crystal instrument display state screenshot transmission method
US8572569B2 (en) Modified implementation of a debugger wire protocol and command packet
CN113160726A (en) Power-on self-detection method and power-on self-detection device
CN115514590B (en) Electric vehicle component, electric vehicle data collection system and electric vehicle data collection method
CN111651308B (en) Method and device for acquiring debugging data of DP-HDMI chip and intelligent device
US7224368B2 (en) Rendering tear free video
CN101814054A (en) Instruction tracing controller for debugging microcontroller
US20220036781A1 (en) Display device
CN111510772A (en) Method, device, equipment and storage medium for balancing video frame rate error
CN108037942B (en) Adaptive data recovery and update method and device for embedded equipment
CN112286573A (en) Method, device and system for modifying configuration parameters of module controller
CN112395147A (en) Debugging device on SOC
CN112328360A (en) Dual-system touch sharing method and device
US7533299B2 (en) Temporal correlation of messages transmitted by a microprocessor monitoring circuit

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
GR01 Patent grant
GR01 Patent grant