Disclosure of Invention
The invention aims to provide a simulation test method, equipment and a storage medium for an ink-jet printing control board. The problem of real machine test among the prior art brings in practical application is solved.
In order to solve the above technical problem, the present invention provides a simulation test method for an inkjet printing control board, comprising:
1) Establishing communication connection between a control board to be tested and an ink jet drive board;
2) The method comprises the steps that a coded disc is driven to rotate by a preset driving program, rotating data of the coded disc are obtained, the rotating data are sent to a control board to be tested through an ink jet driving board, and when the rotating data read by the control board to be tested are matched with the preset driving program, the motor communication driving function of the control board to be tested is confirmed to be detected to be passed;
3) Sequentially triggering the plurality of input interfaces of the control board to be tested according to a preset sequence, and confirming that the function detection of the input and output interfaces of the control board to be tested is passed when the response sequence of the plurality of output interfaces of the control board to be tested is consistent with the preset sequence;
4) Sending analog printing data in a preset format to the control board to be tested so that the control board to be tested sends execution data to the ink jet drive board, and determining that the communication data driving function of the control board to be tested passes detection when a control signal generated by the ink jet drive board based on the execution data is matched with the analog printing data;
5) And when all the functions in the steps 2) to 4) are detected, confirming that the state of the control board to be tested is normal.
Further, the method also comprises the following steps between the step 1) and the step 2):
detecting the connection state of an integral circuit formed by at least the control board to be tested and the ink-jet drive board, confirming that the integral circuit has good function when the integral circuit has no short circuit, and executing the step 2)
And when the integral circuit has a short circuit, powering off the integral circuit.
Further, in the step 2), the coded disc is driven by a driving motor, and the surface of the coded disc is provided with a grating;
and reading raster data of the raster based on a raster decoder as the rotation data.
Further, the preset driving program enables the driving motor to drive the coded disc to uniformly accelerate forward and reverse rotation;
and when the fact that the raster data read by the control board to be tested changes at a constant speed between a positive preset value and a negative preset value is detected, the rotation data are confirmed to be matched with the preset driving program.
Further, in step 3), when the response sequence of the output interface is inconsistent with the preset sequence, the serial number of the output interface inconsistent with the preset sequence is searched and prompted.
Further, the output end of the ink jet driving board is electrically connected with a waveform detector;
the step 4) specifically comprises the following steps: acquiring a printing waveform corresponding to the analog printing data, and detecting a control waveform of the control signal by using the waveform detector;
and detecting the matching degree of the control waveform and the printing waveform, and when the matching degree meets a preset requirement, confirming that the control signal is matched with the analog printing data.
Further, step 5) also includes:
and when the state of the control board to be tested is determined to be normal, correspondingly updating the program and the parameters in the control board to be tested according to the product information of the control board to be tested.
In a second aspect, the present invention also provides a simulation test apparatus of an inkjet printing control board, comprising: the control panel installation module, the circuit connection module and the function realization module;
the control panel installation module is used for fixedly installing a control panel to be tested and an ink-jet drive board which are used for testing
The circuit connection module is used for at least establishing electric connection among the control board to be tested, the function realization module and the ink-jet drive board;
the function realization module is used for at least controlling the control board to be tested and the ink-jet drive board to execute any one of the steps of the method.
Furthermore, each interface of the line connection module is provided with a replaceable adapter, and the shape of the adapter corresponds to the control board to be tested.
In a third aspect, the present invention also provides a computer-readable storage medium, in which a computer program is stored, which computer program, when executed, performs the steps of any of the methods described above.
By the technical scheme, the beneficial effects of the invention at least comprise:
the simulation test method provided by the invention realizes unified automatic test flow and test standard through program control, so that non-standard products are subjected to standardized test, the production efficiency of the printer control board is further improved, the product control standard is unified, and the quality of the products is further improved; the simulation test method provided by the invention has relatively low requirements on testers, can reduce labor cost and is more beneficial to sustainable mass production.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all 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.
It should be noted that, in the description of the present invention, the terms "1", "2", etc. are used for descriptive purposes only and for distinguishing similar objects, and there is no absolutely defined order between them, and no indication or implication of relative importance is to be understood. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Based on the defects of the prior art, the technical scheme provided by the embodiment of the invention aims to invent the test tool and the test method for simulating ink-jet printing through technical innovation, so that the function test of one device covering all control panels in all directions can be realized, the special traditional mode for a special machine is abandoned, the allocation of field and personnel resources is reduced, and the production cost is reduced.
The technical solution described in a preferred embodiment of the present description provides a simulation test method for an inkjet printing control board, which includes the following steps:
1) Establishing communication connection between a control board to be tested and an ink-jet drive board;
2) The method comprises the steps that a coded disc is driven to rotate by a preset driving program, rotating data of the coded disc are obtained, the rotating data are sent to a control board to be tested through an ink jet driving board, and when the rotating data read by the control board to be tested are matched with the preset driving program, the motor communication driving function of the control board to be tested is confirmed to be detected to be passed;
3) Sequentially triggering the plurality of input interfaces of the control board to be tested according to a preset sequence, and confirming that the function detection of the input and output interfaces of the control board to be tested is passed when the response sequence of the plurality of output interfaces of the control board to be tested is consistent with the preset sequence;
4) Sending analog printing data in a preset format to the control board to be tested so that the control board to be tested sends execution data to the ink jet drive board, and determining that the communication data driving function of the control board to be tested passes detection when a control signal generated by the ink jet drive board based on the execution data is matched with the analog printing data;
5) And when all the functions in the steps 2) to 4) are detected, confirming that the state of the control board to be tested is normal.
In specific implementation, the control panels to be tested can be designed and installed on the same plane and fixedly placed in corresponding dies, and the operation is convenient to install; each interface plug wire adopts a replaceable adapter, normal loss can be realized only by replacing the adapter, the plug wire corresponding to each functional interface is fixed at a corresponding position, wrong insertion is avoided, and the design is humanized; in addition, a printing nozzle is not required to be arranged, unnecessary loss is avoided, the working efficiency of production test is improved, and the consumption expense of the production test is greatly saved.
Through the program control of the test tool, the unified automatic test flow and the test standard are realized, so that the non-standard product is produced in a standardized way; the production efficiency is further improved, the quality control standard is unified, and the product quality is further improved.
Because the automatic process degree of the test tool is high and the uniform test standard is adopted, the requirement on the tester is relatively low, even if new personnel are trained slightly, the test tool can be operated according to the process steps, and the test result can be judged according to the test standard. Therefore, the labor cost can be reduced, and the method is more favorable for sustainable mass production.
The technical scheme mainly aims at the product characteristics in actual manufacturing, combines the research and development technology and the production experience of the printer control board for many years, creatively provides a test standard suitable for all control boards in manufacturing and research and development, and aims to enable non-standard products to enter a standardized production flow. Through continuous technical innovation, the testing tool and the testing method for simulating the ink-jet printing are invented.
The tool is similar to a full-function micro printer, can be suitable for testing all control panels manufactured or researched, and is simpler and more convenient to operate.
The tool and the test method do not need to be connected with a printing nozzle, but are processed by technology, the driving voltage waveform, data and signals of the analog nozzle are output to a corresponding interface, a test adapter plate is inserted into the interface to be connected with an oscilloscope, and the oscilloscope can capture the analog waveform, data and signals to be displayed in front of testers during testing; the test program of the tool is the core technical creation for realizing the standardized flow, can automatically detect a control panel signal input/output interface, a functional interface, communication, data transmission, a driving voltage waveform and the like according to steps, and when abnormity is detected (part of visible abnormity such as motor motion control abnormity and the abnormity detected by an oscilloscope is excluded), a corresponding indicator lamp can be lightened or a display screen connected with the control panel can display a corresponding abnormity prompt; if no abnormity exists, the test is automatically ended, an end prompt is sent out, and a normal test result is displayed on a control panel display screen and an oscilloscope.
Therefore, an embodiment of the present invention further provides a simulation test apparatus for an inkjet printing control board, including: the control panel installation module, the line connection module and the function realization module;
the control panel installation module is used for fixedly installing a control panel to be tested and an ink-jet drive board which are used for testing
The circuit connection module is used for at least establishing electric connection among the control board to be tested, the function realization module and the ink-jet drive board;
the function realization module is used for at least controlling the control board to be tested and the ink-jet drive board to execute any one of the steps of the method.
In actual implementation, the simulation test method provided by the present invention can still be run in other electronic devices, where the electronic devices include a memory and a processor, and the memory stores a computer program, and the computer program is run by the processor to execute the steps of the simulation test method.
Naturally, embodiments of the present invention also provide a readable storage medium used in the electronic device, which can be used as the memory or used as the memory after indirect data transmission, and the readable storage medium has a computer program, and the computer program is executed by a processor to perform the steps of the simulation test method.
In particular, a computer readable storage medium may include a propagated data signal with readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that can communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing. Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and may also include conventional procedural programming languages, such as the C language or similar programming languages. The program code may execute entirely on the user's computing device, partly on an associated device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In situations involving remote computing devices, the remote computing devices may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to external computing devices (e.g., through the internet using an internet service provider).
The technical solution provided by the present invention is further explained by way of example with specific examples as follows:
in the test tool provided by the embodiment of the invention, the design of the mechanical part of the test tool can comprise the following modules
1) The design of the mechanical appearance, the frame and the functional parts of the tool.
2) Function implementation module: the device comprises a circuit protection device, a motor motion control device, a sensor simulation trigger device, an output simulation indicator light, an output alarm indicator light, a buzzer, a communication simulation indicator light and an output simulation waveform and data adapter plate (connected with an oscilloscope).
3) Control panel installation module: the main control board is provided with a mould, the function auxiliary board is provided with a mould, the ink jet drive board is provided with a mould, the motor driver is provided with a mould, and the switching power supply is provided with a mould.
4) The line is connected with the wiring module: every interface plug wire all adopts removable formula adapter, normal loss only need change the adapter can, the plug wire that every function interface corresponds is fixed in corresponding position, can not insert the mistake.
The automated test programming of the simulation test method provided by the present invention may include the following process steps:
1) The safety detection of the whole circuit is automatically completed after the power-on and the power-on, and the circuit protection device is started to automatically power off if the short circuit exists in the circuit.
2) Motor motion detection + grating and decoder detection + communication detection: the program sends pulse direction signals to control the motor to rotate forwards and backwards, meanwhile, a code disc on the motor shaft is driven to operate, a grating decoder arranged above the code disc sends read grating data to an ink jet drive plate through a grating connecting wire, then the read grating data is fed back to a main control plate through an optical fiber communication wire between the main control plate and the ink jet drive plate, finally, the grating reading is displayed on a display screen, if the grating reading is increased from 0 to 65535 and 65535 to 0 to decrease progressively along with the forward and backward rotation of the motor, the detection is normal, the next detection link is started, and if the grating reading is abnormal, a corresponding error prompt is displayed.
3) Detecting the functions of an output interface and an input interface: the output interface indicator lights are sequentially lightened, the input interface simulation device sequentially simulates and triggers, the display screen synchronously displays the position number of the detection interface, all normal interfaces enter the next detection link, if abnormal display screens display the corresponding interface numbers in red characters, and errors are prompted.
4) PC communication + print data + drive waveform detection: the data in a fixed format is calculated and sent to the main control board through the network port, then is sent to the ink jet drive board through optical fiber communication, and finally is executed by the ink jet drive board to simulate and output the data to the adapter board connected with the oscilloscope; if the output is normal, the oscilloscope makes the presented driving waveform and data signal consistent with the reference standard on the oscilloscope, and if the output is abnormal, the difference between the output driving waveform and data signal and the reference standard on the oscilloscope can be observed.
5) And when all tests pass, automatically updating the control panel program and the parameters into the real machine program and parameters of the matched machine type by one key on the computer through a program upgrading tool in the last step, prompting that the firmware is updated successfully through a computer interface after the completion, and sounding a prompt through a buzzer of the test tool.
The test reference standard in this example is designed as follows: the method is mainly controlled by a test program, and part of reference standard parameters are respectively as follows:
1) DC supply voltage input: 24V-42V;
2) Debugging the oscilloscope: time gear 5 us/voltage gear 5v
3) Waveform drive reference point voltage: 2.5v, 15v, 25v, cycle 45us;
4) Analog data reference value: ignition frequency 5k
Grating reading reference: forward direction is 0-65535, and reverse direction is 65535-0.
In the above embodiments, the present invention mainly relates to a method for implementing all design ideas and functions of an automatic test program; the invention relates to a design of a mechanical part of a test tool for simulating ink-jet printing; the invention relates to a design of a tool board card installation and line connection mode; the invention relates to a flow system for standardized testing of non-standard products.
However, what is important is that the key simulation test method provided by the present invention is provided, and the design of the mechanical structure part is not the key technical means of the present invention, and based on the technical idea provided by the present invention, a person skilled in the art can know how to set the structure of the test fixture even without referring to the related structural diagram, because the test fixture of the present invention is obtained by combining/splicing the existing objects such as the existing joint, fixture design and oscilloscope, circuit, etc., the connection relationship and the function of each component are uniquely defined by the above simulation test method.
Based on the above embodiments, it can be summarized that:
1. through technical innovation, the embodiment of the invention provides the test tool for simulating the ink-jet printing, can realize the function test of one device covering all control panels in all directions, abandons the special traditional mode of a special machine, reduces the allocation of field and personnel resources and reduces the production cost.
2. In the implementation of the invention, the control panels are all designed and installed on the same plane and are fixedly arranged in the corresponding dies, so that the installation and the operation are not required to be convenient; each interface plug wire adopts a replaceable adapter, normal loss can be realized only by replacing the adapter, the plug wire corresponding to each functional interface is fixed at a corresponding position, wrong insertion is avoided, and the design is humanized; in addition, a printing nozzle is not required to be arranged, unnecessary loss is avoided, the working efficiency of production test is improved, and the consumption expense of the production test is greatly saved.
3. The invention realizes unified automatic test flow and test standard through the program control of the test tool, so that non-standard products are produced in a standardized way; the production efficiency is further improved, the quality control standard is unified, and the product quality is further improved.
4. In the implementation of the invention, because the automatic process degree of the test tool is high and the uniform test standard is adopted, the requirement on the tester is relatively low, even if a new person is trained slightly, the operation can be carried out according to the process steps, and the test result can be judged according to the test standard. Therefore, the labor cost can be reduced, and the method is more favorable for sustainable mass production.
The above-mentioned embodiments are merely preferred embodiments for fully illustrating the present invention, and the scope of the present invention is not limited thereto. The equivalent substitution or change made by the technical personnel in the technical field on the basis of the invention is all within the protection scope of the invention. The protection scope of the invention is subject to the claims.