C language teaching system integrating virtuality and reality
Through the C language teaching system that integrates virtual and real, the simulation module and the arduino control chip are used to realize the recognition, import and real-time simulation of C language models, solving the problem of students suffering from failure to retreat while learning C language, and improving students' C language knowledge application ability and professional qualities.
Patent Information
- Application Number
- CN202411687943.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-05-02
AI Technical Summary
Students often suffer from failure when studying C language programming courses and even give up learning.
Design a C language teaching system that integrates virtual and real, including simulation modules, control modules, input modules, output modules, import modules, serial port modules, model modules and login modules. Use the arduino control chip and optocoupler isolation input method to realize the recognition, import, loading and compilation of C language models and real-time simulation.
Through the teaching model of integrating virtual and real, students are guided to actively integrate, think independently, and actively participate, improve their ability to apply C language knowledge, expand their professional knowledge, and promote students' development towards applied talents. At the same time, the optocoupler isolation input method avoids accidental damage to the main control system.
Smart Images

Figure CN119920138A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of teaching technology, and in particular to a virtual-real C language teaching system. Background Art
[0002] C language is an early programming language, which was born in Bell Labs in 1972. In 1972, Dennis Ritchie designed C language, which inherited many ideas of B language and added the concept of data type and other features. For students of computer and other related majors, C language is a computer programming language that needs to be focused on. For the study of C language, it is necessary not only to learn the grammatical rules of C language, but more importantly to learn the actual programming ability of C language. Therefore, the teaching of C language should focus on the learning of basic knowledge and the practice of practical programming.
[0003] The C language programming course content is highly abstract and the rules are complicated. Many students often give up when they encounter difficulties or even give up learning. It is very important to use simulation software that can run in conjunction with C programs and the existing Arduino innovation platform to build a teaching system that can guide students to actively integrate and attract students to actively participate. Therefore, a C language teaching system that integrates virtual and real is proposed. Summary of the invention
[0004] 1. Technical issues to be resolved
[0005] In view of the deficiencies in the prior art, the present invention provides a virtual and real integrated C language teaching system, which solves the practical problem that students often give up when encountering difficulties or even simply give up learning when learning C language programming courses.
[0006] (II) Technical solution
[0007] In order to achieve the above object, the present invention adopts the following technical solutions:
[0008] A virtual and real integrated C language teaching system comprises a system module assembly, the system module assembly comprises a simulation module, a control module, an input module, an output module, an import module, a serial port module, a model module, and a login module. The control module adopts an Arduino control chip. The input module is connected to the control module and inputs control logic through the input module. The control module is connected to the output module and outputs digital control logic through the output module. The control module is connected to the serial port module and is connected to a host computer through the serial port module. The model module first obtains model variables and variable addresses of a target C language model and writes a preset interface function file to obtain a model information file. The model module is connected to the simulation module, and the simulation module identifies information in the model information file to identify the C language model, and imports the identified C language model into the simulation module through the import module. The imported C language model is loaded and compiled through the simulation module to realize the simulation of the C language model. The login module receives login request information from a student and accepts the student's login request when verifying that the login request information is legal.
[0009] Furthermore, the system module assembly also includes a power supply module, and the power supply module is connected to the circuit conversion module, and the power supply module provides power supply for the entire system.
[0010] On the basis of the above scheme, the input module includes multiple groups of logic input units, and the input module adopts an optical coupling isolation input method to completely isolate the signal field from the main control end electrically.
[0011] As a further solution of the present invention, the model variables include: model input variables, model simulation process variables, and model output variables.
[0012] Furthermore, the simulation module edits the model parameters of the imported C language model during simulation to generate the model code to be real-time, and then compiles the model code to be real-time to obtain the model to be real-time, and distributes the model to be real-time to the lower computer connected to the simulation module for operation.
[0013] On the basis of the above-mentioned solution, the system module assembly includes a storage module, the storage module is connected to a recording module, and the recording module is connected to a simulation module.
[0014] Furthermore, the control module is connected to a network connection module, the network connection module is connected to a network command parsing module, and the network command parsing module and the network connection module are connected using a socket.
[0015] The beneficial effects of the present invention are:
[0016] 1. In the present invention, the information in the model information file is identified by the simulation module to identify the C language model, thereby solving the problem that the simulation module cannot identify the model variables of the C language model and thus cannot identify the imported C language model.
[0017] 2. In the present invention, the new C language learning platform constructed by the simulation module and the control module can guide students to actively integrate, inspire students to think independently, and attract students to actively participate in the immersive C language course teaching mode that integrates virtual and real, which provides strong support for students to improve their ability to apply C language knowledge, expand their professional knowledge, and develop into higher-level application-oriented talents.
[0018] 3. In the present invention, the input module adopts an optical coupling isolation input mode, so that the signal field and the main control end are completely isolated electrically, avoiding accidental damage to the main control system.
[0019] 4. In the present invention, during simulation, the model parameters of the imported C language model are edited to generate the model code to be real-time, and then the model code to be real-time is compiled to obtain the model to be real-time, and the model to be real-time is distributed to the lower computer connected to the simulation module for operation, so as to realize the real-time simulation of the target C language model. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 This is a schematic diagram of the system framework process structure of a virtual-real integrated C language teaching system proposed by the present invention. DETAILED DESCRIPTION
[0021] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. It should be noted that, unless otherwise clearly specified and limited, the terms "installation", "connection" and "setting" should be understood in a broad sense. For ordinary technicians in this field, the specific meanings of the above terms in this patent can be understood according to specific circumstances.
[0022] Example 1
[0023] Reference Figure 1A virtual and real C language teaching system includes a system module assembly, which includes a simulation module, a control module, an input module, an output module, an import module, a serial port module, a model module, and a login module. The control module adopts an Arduino control chip. The input module is connected to the control module and inputs control logic through the input module. The control module is connected to the output module and outputs digital control logic through the output module. The control module is connected to the serial port module and is connected to a host computer through the serial port module. The model module first obtains the model variables and variable addresses of the target C language model and writes them into a preset interface function file to obtain a model information file. The model module is connected to the simulation module, and the simulation module recognizes the information in the model information file to recognize C The language model solves the problem that the simulation module cannot recognize the model variables of the C language model, and thus cannot recognize the imported C language model, and imports the recognized C language model into the simulation module through the import module, and loads and compiles the imported C language model through the simulation module to realize the simulation of the C language model. The new C language learning platform constructed by the simulation module and the control module can guide students to actively integrate, inspire students to think independently, and attract students to actively participate in the immersive C language course teaching mode that integrates virtual and real, and provide strong support for students to improve their ability to apply C language knowledge, expand their professional knowledge, and develop into higher-level application-oriented talents. The login module receives login request information from students, and accepts students' login requests when verifying that the login request information is legal.
[0024] In the present invention, the system module assembly also includes a power supply module, and the power supply module is connected to the circuit conversion module, the power supply module provides power supply for the entire system, the input module includes multiple groups of logic input units, the input module adopts an optocoupler isolation input method, so that the signal field and the main control end are completely electrically isolated, avoiding accidental damage to the main control system, and the model variables include: model input variables, model simulation process variables, and model output variables.
[0025] Example 2
[0026] Reference Figure 1A virtual and real C language teaching system includes a system module assembly, which includes a simulation module, a control module, an input module, an output module, an import module, a serial port module, a model module, and a login module. The control module adopts an Arduino control chip. The input module is connected to the control module and inputs control logic through the input module. The control module is connected to the output module and outputs digital control logic through the output module. The control module is connected to the serial port module and is connected to a host computer through the serial port module. The model module first obtains the model variables and variable addresses of the target C language model and writes them into a preset interface function file to obtain a model information file. The model module is connected to the simulation module, and the simulation module recognizes the information in the model information file to recognize C The language model solves the problem that the simulation module cannot recognize the model variables of the C language model, and thus cannot recognize the imported C language model, and imports the recognized C language model into the simulation module through the import module, and loads and compiles the imported C language model through the simulation module to realize the simulation of the C language model. The new C language learning platform constructed by the simulation module and the control module can guide students to actively integrate, inspire students to think independently, and attract students to actively participate in the immersive C language course teaching mode that integrates virtual and real, and provide strong support for students to improve their ability to apply C language knowledge, expand their professional knowledge, and develop into higher-level application-oriented talents. The login module receives login request information from students, and accepts students' login requests when verifying that the login request information is legal.
[0027] In the present invention, the system module assembly also includes a power supply module, and the power supply module is connected to the circuit conversion module, the power supply module provides power supply for the entire system, the input module includes multiple groups of logic input units, the input module adopts an optocoupler isolation input method, so that the signal field and the main control end are completely electrically isolated, avoiding accidental damage to the main control system, and the model variables include: model input variables, model simulation process variables, and model output variables.
[0028] In particular, the simulation module edits the model parameters of the imported C language model during simulation to generate the model code to be real-time, and then compiles the model code to be real-time to obtain the model to be real-time, and distributes the model to be real-time to the lower computer connected to the simulation module for operation to realize the real-time simulation of the target C language model. The system module assembly includes a storage module, the storage module is connected to a recording module, the recording module is connected to the simulation module, the control module is connected to a network connection module, the network connection module is connected to a network command parsing module, and the network command parsing module and the network connection module are connected using a socket.
[0029] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A virtual and real C language teaching system, including a system module assembly, characterized in that: The system module assembly includes a simulation module, a control module, an input module, an output module, an import module, a serial port module, a model module, and a login module. The control module adopts an Arduino control chip. The input module is connected to the control module and inputs the control logic through the input module. The control module is connected to the output module and outputs the digital control logic through the output module. The control module is connected to the serial port module and is connected to the host computer through the serial port module. The model module first obtains the model variables and variable addresses of the target C language model, and writes the preset interface function file to obtain the model information file. The model module is connected to the simulation module, and the simulation module identifies the information in the model information file to identify the C language model, and imports the identified C language model into the simulation module through the import module. The imported C language model is loaded and compiled by the simulation module to realize the simulation of the C language model. The login module receives the login request information from the student, and accepts the student's login request when verifying that the login request information is legal.
2. A virtual and real C language teaching system according to claim 1, characterized in that: The system module assembly also includes a power supply module, and the power supply module is connected to the circuit conversion module, and the power supply module provides power supply for the entire system.
3. The virtual-real C language teaching system according to claim 1 is characterized in that: The input module includes multiple groups of logic input units. The input module adopts an optical coupling isolation input mode to completely isolate the signal field from the main control end electrically.
4. A virtual and real C language teaching system according to claim 3, characterized in that: The model variables include: model input variables, model simulation process variables, and model output variables.
5. The virtual-real C language teaching system according to claim 1 is characterized in that: During simulation, the simulation module edits the model parameters of the imported C language model to generate the model code to be real-time, and then compiles the model code to be real-time to obtain the model to be real-time, and distributes the model to be real-time to the lower computer connected to the simulation module for operation.
6. The virtual-real C language teaching system according to claim 5 is characterized in that: The system module assembly includes a storage module, the storage module is connected to a recording module, and the recording module is connected to a simulation module.
7. The virtual-real C language teaching system according to claim 6 is characterized in that: The control module is connected to a network connection module, the network connection module is connected to a network command parsing module, and the network command parsing module and the network connection module are connected using a socket.