AI programming education system
Through the programming requirements module, call generation module and output debugging module of the AI programming education system, the problem of difficulty for students to use AI software to generate code is solved, and fast and effective programming education is achieved.
Patent Information
- Application Number
- CN202510348823.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-24
- Publication Date
- 2025-07-22
AI Technical Summary
It is difficult for students to directly apply AI software to program, and there is a threshold for use, and the existing technology cannot quickly and effectively generate the required code.
An AI programming education system was designed, including a programming requirement module, a call generation module and an output debugging module, which obtained user requirements through natural language input, and generated and debugged application code.
It reduces the difficulty of programming education, making programming education faster and more efficient, and users can obtain runnable code without complex operations.
Smart Images

Figure CN120353448A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a programming system, in particular to an AI programming education system. Background Art
[0002] With the rapid development of AI technology, software programming can be realized with the help of AI. However, students cannot apply AI technology and there are certain usage thresholds. AI software needs to accurately input corresponding instructions to generate the desired code. Therefore, in order to quickly apply AI software for programming, it is necessary to develop an AI programming education system that can quickly obtain code in a way that is easy for students to operate, making programming education faster and more effective. Summary of the Invention
[0003] The object of the invention is to provide an AI programming education system that can quickly obtain code in a way that is easy for students to operate, making programming education faster and more effective.
[0004] Technical Solution: The AI programming education system described in the present invention includes a programming requirement module, a call generation module, and an output debugging module;
[0005] The programming requirement module is used to obtain the programming requirements filled in by the user, normalize the programming requirements of the user, and generate a standardized AI programming requirement text;
[0006] The call generation module is used to obtain the AI programming requirement text, select the corresponding AI software according to the AI programming requirement text, generate the programming control instructions of the selected AI software according to the AI programming requirement text, send the programming control instructions to the AI software, and then extract the application code output by the AI software;
[0007] The output debugging module is used to select the corresponding debugging tool according to the application code, generate the code file of the selected debugging tool from the application code, then call the test tool to perform running debugging on the code file, and finally output the debugging result.
[0008] Further, the programming requirement module includes a requirement template library, a template selection unit, a content acquisition unit, and a content specification unit;
[0009] The requirement template library is used to store various types of programming templates, including motor drive templates, switch control templates, communication control templates, display control templates, audio control templates, sensor control templates, image processing templates, voice control templates, programming languages, and timing control templates;
[0010] The template selection unit is used to display the function introduction of each template to the user, provide the user with a template selection entry, and then display the content filling interface of the selected template to the user;
[0011] The content acquisition unit is used to obtain the filling content and the filling completion confirmation information of the user on the content to be filled interface in real time, and summarize the filling content into a programming content file after receiving the filling completion confirmation information;
[0012] The content specification unit is used to perform semantic recognition on each piece of text filled in the programming content file, then match the recognized semantics with the instruction text, generate a standardized instruction expression using the matched instruction text, and then generate a standardized instruction file using each instruction expression.
[0013] Further, various motor parameter items to be filled for motor drive are set in the motor drive template, including motor speed, motor type, motor rated power, motor trigger condition, motor stop condition, and speed regulation trigger condition;
[0014] Various switch parameter items to be filled for switch signal control are set in the switch control template, including disconnection trigger condition, closing trigger condition, and trigger delay time;
[0015] Various communication parameter items to be filled for communication control are set in the communication control template, including communication protocol name, receiving end ID, sending end ID, communication start condition, and communication end condition;
[0016] Various display parameter items to be filled for display control are set in the display control template, including display brightness value, display content, display language, display screen ID, display start condition, display off condition, display refresh rate, and display resolution;
[0017] Various audio parameter items to be filled for audio control are set in the audio control template, including audio file address, audio playback volume, audio playback mode, audio trigger condition, audio pause condition, and audio stop condition;
[0018] Various sensor parameter items to be filled for sensor control are set in the sensor control template, including sensing data type, start trigger condition, off trigger condition, and data preprocessing algorithm;
[0019] Various image processing parameter items to be filled for image processing are set in the image processing template, including image size, processing target, reading path, and storage path;
[0020] Various voice parameter items to be filled for voice control are set in the voice control template, including wake-up instruction, target device ID, target device control protocol, and sleep condition;
[0021] The control timing to be filled for each programming template is set in the timing control template, including the priority of parallel execution and priority execution.
[0022] Further, the call generation module includes an AI call unit, an instruction generation unit, a code detection unit, and a code output unit;
[0023] The AI call unit is used to obtain the instruction file in real time. After obtaining the instruction file, it calls the AI software and uploads the instruction file to the AI software;
[0024] The instruction generation unit is used to generate software control instructions and send the software control instructions to the AI software. The AI software executes the software control instructions to interpret the content of the instruction file and generates a corresponding programming code file according to the content of the instruction file;
[0025] The code detection unit is used to upload the programming code file to the AI software and send a code detection instruction to the AI software. The AI software performs accuracy detection on the programming code in the programming code file and gives an accuracy detection result;
[0026] The code output unit is used to output the programming code file after the accuracy detection result shows that the code is accurate.
[0027] Further, the output debugging module includes a file acquisition unit, a tool debugging unit, a running debugging unit, and a result output unit;
[0028] The file acquisition unit is used to obtain the programming code file, parse the programming code file to obtain the programming language corresponding to the programming code in the programming code file, and then select the corresponding debugging tool according to the programming language;
[0029] The tool debugging unit is used to call the selected debugging tool, copy the programming code in the programming code file to the debugging tool, and then send a running debugging instruction to the debugging tool;
[0030] The running debugging unit is used to start the debugging tool to debug and run the programming code. After the debugging tool finishes running the debugging, it extracts the debugging result information of the debugging tool;
[0031] The result output unit is used to display the debugging result information. If the debugging result information indicates normal debugging and running, it outputs the programming code file. If the debugging result information indicates an error in debugging and running, it abandons the current programming code file, displays an error prompt message at the same time, and prompts the user to re-fill in the programming requirements.
[0032] Compared with the prior art, the beneficial effects of the present invention are as follows: By means of the programming requirement module, the programming requirements of the user are obtained, and then the call generation module is used to call the AI software to generate application code according to the programming requirements. Finally, the programming code is debugged. In this process, the user only needs to input through natural language to obtain the executable code, effectively reducing the difficulty of programming education and making programming education more rapid and effective. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a schematic diagram of the system architecture of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0034] The technical solution of the present invention will be described in detail below with reference to the drawings, but the protection scope of the present invention is not limited to the described embodiments.
[0035] As Figure 1 shown, the AI programming education system disclosed by the present invention includes: a programming requirement module, a call generation module, and an output debugging module;
[0036] The programming requirement module is used to obtain the programming requirements filled in by the user, and normalize the programming requirements of the user to generate a standardized AI programming requirement text;
[0037] The call generation module is used to obtain the AI programming requirement text, select the corresponding AI software according to the AI programming requirement text, generate the programming control instructions of the selected AI software according to the AI programming requirement text, send the programming control instructions to the AI software, and then extract the application code output by the AI software;
[0038] The output debugging module is used to select the corresponding debugging tool according to the application code, generate the code file of the selected debugging tool from the application code, then call the test tool to perform running debugging on the code file, and finally output the debugging result.
[0039] By means of the programming requirement module, the programming requirements of the user are obtained, and then the call generation module is used to call the AI software to generate application code according to the programming requirements. Finally, the programming code is debugged. In this process, the user only needs to input through natural language to obtain the executable code, effectively reducing the difficulty of programming education and making programming education more rapid and effective.
[0040] Further, the programming requirement module includes a requirement template library, a template selection unit, a content acquisition unit, and a content specification unit;
[0041] The requirement template library is used to store various types of programming templates, including motor drive templates, switch control templates, communication control templates, display control templates, audio control templates, sensor control templates, image processing templates, voice control templates, programming languages, and timing control templates;
[0042] The template selection unit is used to display the function introductions of each template to the user, provide an entry for the user to select a template, and then display the content-to-be-filled interface of the selected template to the user;
[0043] The content acquisition unit is used to obtain the filled content and the confirmation information after filling on the content-to-be-filled interface in real time, and summarize the filled content into a programming content file after receiving the confirmation information after filling;
[0044] The content specification unit is used to perform semantic recognition on each piece of text filled in the programming content file, then match the recognized semantics with the instruction texts, generate a standardized instruction expression using the matched instruction texts, and then generate a standardized instruction file using each instruction expression.
[0045] Further, in the motor drive template, there are various motor parameter items to be filled for motor drive, including motor speed, motor type, motor rated power, motor trigger condition, motor stop condition, and speed regulation trigger condition;
[0046] In the switch control template, there are various switch parameter items to be filled for switch signal control, including disconnection trigger condition, closing trigger condition, and trigger delay time;
[0047] In the communication control template, there are various communication parameter items to be filled for communication control, including communication protocol name, receiving end ID, sending end ID, communication start condition, and communication end condition;
[0048] In the display control template, there are various display parameter items to be filled for display control, including display brightness value, display content, display language, display screen ID, display start condition, display off condition, display refresh rate, and display resolution;
[0049] In the audio control template, there are various audio parameter items to be filled for audio control, including audio file address, audio playback volume, audio playback mode (single loop, sequential playback, loop playback, random playback, etc.), audio trigger condition, audio pause condition, and audio stop condition;
[0050] In the sensor control template, there are various sensor parameter items to be filled for sensor control, including sensing data type (digital signal or analog signal), start trigger condition, off trigger condition, and data preprocessing algorithm (filtering algorithm, etc.);
[0051] The image processing template is provided with various image processing parameter items to be filled for image processing, including image size, processing targets (grayscale, filtering, cropping, feature extraction, etc.), reading path, and storage path;
[0052] The voice control template is provided with various voice parameter items to be filled for voice control, including wake-up instructions, target device ID, target device control protocol, and sleep conditions;
[0053] The timing control template is provided with the control timings to be filled for each programming template, including parallel execution and the priority of priority execution.
[0054] Further, the call generation module includes an AI call unit, an instruction generation unit, a code detection unit, and a code output unit;
[0055] The AI call unit is used to obtain the instruction file in real time, and after obtaining the instruction file, call the AI software and upload the instruction file to the AI software;
[0056] The instruction generation unit is used to generate software control instructions, send the software control instructions to the AI software, and the AI software executes the software control instructions to interpret the content of the instruction file and generate the corresponding programming code file according to the content of the instruction file;
[0057] The code detection unit is used to upload the programming code file to the AI software and send a code detection instruction to the AI software, and the AI software performs accuracy detection on the programming code in the programming code file and gives the accuracy detection result;
[0058] The code output unit is used to output the programming code file after the accuracy detection result shows that the code is accurate.
[0059] Further, the output debugging module includes a file acquisition unit, a tool debugging unit, a running debugging unit, and a result output unit;
[0060] The file acquisition unit is used to acquire the programming code file, parse the programming code file to obtain the programming language corresponding to the programming code in the programming code file, and then select the corresponding debugging tool according to the programming language;
[0061] The tool debugging unit is used to call the selected debugging tool, copy the programming code in the programming code file to the debugging tool, and then send a running debugging instruction to the debugging tool;
[0062] The running debugging unit is used to start the debugging tool to debug and run the programming code, and after the debugging tool finishes running and debugging, extract the debugging result information of the debugging tool;
[0063] The result output unit is used to display the debugging result information. If the debugging result information indicates normal debugging operation, the programming code file is output. If the debugging result information indicates an error in debugging operation, the current programming code file is discarded, and at the same time, an error prompt message is displayed, and the user is prompted to re-fill in the programming requirements.
[0064] As described above, although the present invention has been shown and described with reference to specific preferred embodiments, it should not be construed as a limitation of the present invention itself. Various changes in form and detail may be made without departing from the spirit and scope of the present invention as defined by the appended claims.
Claims
1. An AI programming education system, characterized in that: It includes a programming requirement module, a call generation module, and an output debugging module; The programming requirement module is used to obtain the programming requirements filled in by the user, normalize the user's programming requirements, and generate a standardized AI programming requirement text; The call generation module is used to obtain the AI programming requirement text, select the corresponding AI software according to the AI programming requirement text, generate the programming control instructions for the selected AI software according to the AI programming requirement text, send the programming control instructions to the AI software, and then extract the application code output by the AI software; The output debugging module is used to select the corresponding debugging tool according to the application code, generate the code file of the selected debugging tool from the application code, then call the test tool to perform running debugging on the code file, and finally output the debugging result.
2. The AI programming education system according to claim 1, wherein: The programming requirement module includes a requirement template library, a template selection unit, a content acquisition unit, and a content specification unit; The requirement template library is used to store various types of programming templates, including motor drive templates, switch control templates, communication control templates, display control templates, audio control templates, sensor control templates, image processing templates, voice control templates, programming languages, and timing control templates; The template selection unit is used to display the function introductions of each template to the user, provide the user with a template selection entry, and then display the content waiting to be filled interface of the selected template to the user; The content acquisition unit is used to obtain the filling content and the filling completion confirmation information of the user on the content waiting to be filled interface in real time, and summarize the filling content into a programming content file after receiving the filling completion confirmation information; The content specification unit is used to perform semantic recognition on each piece of text filled in the programming content file, then match the recognized semantics with the instruction text, generate a standardized instruction expression using the matched instruction text, and then generate a standardized instruction file using each instruction expression; 3. The AI programming education system according to claim 2, wherein: In the motor drive template, there are various motor parameter items to be filled for motor drive, including motor speed, motor type, motor rated power, motor trigger condition, motor stop condition, and speed regulation trigger condition; In the switch control template, there are various switch parameter items to be filled for switch signal control, including disconnection trigger condition, closing trigger condition, and trigger delay time; In the communication control template, there are various communication parameter items to be filled for communication control, including communication protocol name, receiving end ID, sending end ID, communication start condition, and communication end condition; In the display control template, there are various display parameter items to be filled for display control, including display brightness value, display content, display language, display screen ID, display start condition, display off condition, display refresh rate, and display resolution; In the audio control template, there are various audio parameter items to be filled for audio control, including audio file address, audio playback volume, audio playback mode, audio trigger condition, audio pause condition, and audio stop condition; In the sensor control template, there are various sensor parameter items to be filled for sensor control, including sensing data type, start trigger condition, off trigger condition, and data preprocessing algorithm; The image processing template is set with various image processing parameter items to be filled for image processing, including image size, processing target, reading path, and storage path; The voice control template is set with various voice parameter items to be filled for voice control, including wake-up instruction, target device ID, target device control protocol, and sleep condition; The timing control template is set with the control timings to be filled for each programming template, including parallel execution and the priority of priority execution.
4. The AI programming education system according to claim 1, wherein: The call generation module includes an AI call unit, an instruction generation unit, a code detection unit, and a code output unit; The AI call unit is used to obtain the instruction file in real time, and after obtaining the instruction file, call the AI software and upload the instruction file to the AI software; The instruction generation unit is used to generate software control instructions, send the software control instructions to the AI software, and the AI software executes the software control instructions to interpret the content of the instruction file and generate a corresponding programming code file according to the content of the instruction file; The code detection unit is used to upload the programming code file to the AI software and send a code detection instruction to the AI software. The AI software performs accuracy detection on the programming code in the programming code file and gives an accuracy detection result; The code output unit is used to output the programming code file after the accuracy detection result shows that the code is accurate.
5. The AI programming education system according to claim 1, characterized in that: The output debugging module includes a file acquisition unit, a tool debugging unit, a running debugging unit, and a result output unit; The file acquisition unit is used to obtain the programming code file, parse the programming code file to obtain the programming language corresponding to the programming code in the programming code file, and then select the corresponding debugging tool according to the programming language; The tool debugging unit is used to call the selected debugging tool, copy the programming code in the programming code file to the debugging tool, and then send a running debugging instruction to the debugging tool; The running debugging unit is used to start the debugging tool to debug and run the programming code. After the debugging tool finishes running and debugging, extract the debugging result information of the debugging tool; The result output unit is used to display the debugging result information. If the debugging result information is that the debugging runs normally, output the programming code file. If the debugging result information is that the debugging runs error, abandon the current programming code file, and at the same time display an error prompt message, and prompt the user to re-fill in the programming requirements.