According to the actual requirements of Print control system, and on basis of the low development costs, and the increase of practicability, reliability and convenience, this paper developed a data transmission system which is based on 3D printer. The data-transmission control system in this paper replaces complex hardware structure of data-transmission by the serial communication interface of PC, and the host computer can realize the data-transmission assistant software through programming. This software stores the Gcode documents into a certain file after filter, and then transmits the data between the serial communication interface and slave computer STM32 by preset check information. To check the sent and received data, slave computer STM32 use the Organic Light Emitting Diode OLED to display the sent and received data in real time. This design put forward the method, namely the system designs properly in the process of PC "data transmission assistant" software programming. In this way, it is easy to find out whether the transmission interruption is caused by hosting application software or slave computer system and make sure the error position through the comparison of the data before and after.In addition, embedded real-time operating system uC/OS-III is joined in the software design of the slave computer system. This paper describes the method of the transplantation of uC/OS- III, and design the real-time operating system uC/OS-III multi-task kernel clock, interrupt mode, store information release and other aspects. Then download it to the main control Flash, together with the STM32 control procedure, successfully transplant it to the STM32F103RBT6 chip, so that the computer can concurrent processing.By way of integrating theory with practice, this paper analyzes the design, problemsolving and the way of implementation of the various steps in the data transmission system in detail, provide the problem-solving ideas and the reference value.to the reduction of development costs, and the construction of a practicable, convenient data transmission system. |