<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.4 20241031//EN" "JATS-journalpublishing1-4.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="1.4" xml:lang="en">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">jss</journal-id>
      <journal-title-group>
        <journal-title>Open Journal of Social Sciences</journal-title>
      </journal-title-group>
      <issn pub-type="epub">2327-5960</issn>
      <issn pub-type="ppub">2327-5952</issn>
      <publisher>
        <publisher-name>Scientific Research Publishing</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.4236/jss.2025.1312026</article-id>
      <article-id pub-id-type="publisher-id">jss-148365</article-id>
      <article-categories>
        <subj-group>
          <subject>Article</subject>
        </subj-group>
        <subj-group>
          <subject>Business</subject>
          <subject>Economics</subject>
          <subject>Social Sciences</subject>
          <subject>Humanities</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>Exploring Interdisciplinary Project-Based Teaching Reform of “AI Meets HarmonyOS” in Higher-Vocational IoT Programs: A Case Study on Smart-Home Development</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <name name-style="western">
            <surname>Tang</surname>
            <given-names>Jianqing</given-names>
          </name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
      </contrib-group>
      <aff id="aff1"><label>1</label> School of Internet of Things, Guangdong Open University (Guangdong Polytechnic Institute), Guangzhou, China </aff>
      <author-notes>
        <fn fn-type="conflict" id="fn-conflict">
          <p>The author declares no conflicts of interest regarding the publication of this paper.</p>
        </fn>
      </author-notes>
      <pub-date pub-type="epub">
        <day>09</day>
        <month>12</month>
        <year>2025</year>
      </pub-date>
      <pub-date pub-type="collection">
        <month>12</month>
        <year>2025</year>
      </pub-date>
      <volume>13</volume>
      <issue>12</issue>
      <fpage>336</fpage>
      <lpage>348</lpage>
      <history>
        <date date-type="received">
          <day>13</day>
          <month>12</month>
          <year>2025</year>
        </date>
        <date date-type="accepted">
          <day>23</day>
          <month>12</month>
          <year>2025</year>
        </date>
        <date date-type="published">
          <day>26</day>
          <month>12</month>
          <year>2025</year>
        </date>
      </history>
      <permissions>
        <copyright-statement>© 2025 by the authors and Scientific Research Publishing Inc.</copyright-statement>
        <copyright-year>2025</copyright-year>
        <license license-type="open-access">
          <license-p> This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license ( <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link> ). </license-p>
        </license>
      </permissions>
      <self-uri content-type="doi" xlink:href="https://doi.org/10.4236/jss.2025.1312026">https://doi.org/10.4236/jss.2025.1312026</self-uri>
      <abstract>
        <p>The mass deployment of HarmonyOS and the convergence of generative AI have created a twofold dilemma for higher-vocational IoT education: curricula lag behind rapid technological change, and abstract concepts remain disconnected from practice. Grounded in a competence-based approach, we redesigned a course around a smart-home application that deeply integrates GitHub Copilot and Tongyi Lingma into the complete workflow of project decomposition, code generation, debugging, and integration testing. The resulting three-dimensional framework—project-driven, AI-empowered, and hierarchically scaffolded—enables students to advance through basic functions, core technical challenges, and innovative extensions within 72 class hours, using a light-control subsystem as the illustrative thread. Empirical results demonstrate significant gains in students’ ability to solve complex engineering problems and to collaborate effectively with AI tools. The study offers a replicable model for interdisciplinary, project-based teaching in higher vocational colleges navigating the new-technology wave.</p>
      </abstract>
      <kwd-group kwd-group-type="author-generated" xml:lang="en">
        <kwd>Artificial Intelligence</kwd>
        <kwd>HarmonyOS</kwd>
        <kwd>Project-Based Teaching</kwd>
        <kwd>Internet of Things</kwd>
        <kwd>Smart Home</kwd>
        <kwd>Higher Vocational Education</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec1">
      <title>1. Introduction</title>
      <p>Against the backdrop of the deep integration between the digital economy and the real economy, the Internet of Things (IoT), as a core component of the new generation of information technology, is accelerating industrial transformation and upgrading. Leveraging its distributed architecture and open-source ecosystem, the HarmonyOS operating system has become a fundamental technological platform for IoT terminal development. Meanwhile, generative AI technology is profoundly reshaping software development paradigms through code generation and intelligent assistance ([<xref ref-type="bibr" rid="B1">1</xref>]; [<xref ref-type="bibr" rid="B2">2</xref>] Wang[<xref ref-type="bibr" rid="B2">2</xref>]), imposing new demands on technical talent for their ability to synergize “intelligent tools with professional expertise.” ([<xref ref-type="bibr" rid="B3">3</xref>]; [<xref ref-type="bibr" rid="B5">5</xref>])</p>
      <p>As primary providers of technical and skilled talent, higher vocational colleges have long faced contradictions in their IoT major teaching, such as “rapid technological iteration versus outdated teaching content” and “students’ weak theoretical foundations versus high demands of complex projects.” Most courses still focus on traditional programming languages and single hardware modules, lacking systematic coverage of new systems like HarmonyOS and failing to effectively integrate AI tools, resulting in a disconnect between talent cultivation and industry needs. Therefore, exploring a teaching model tailored to the cognitive characteristics of vocational college students and integrating “AI + HarmonyOS” technologies has become an urgent requirement for professional teaching reform. Smart home, as a typical IoT scenario with modular functionality and specific demands, provides an ideal vehicle for integrating cross-disciplinary knowledge.</p>
    </sec>
    <sec id="sec2">
      <title>2. “AI + HarmonyOS” Interdisciplinary Project-Based Teaching Plan Design</title>
      <sec id="sec2dot1">
        <title>2.1. Design Philosophy and Objectives</title>
        <p>Designed to address the characteristics of vocational college students, who typically exhibit “weak theoretical foundations, strong practical motivation, and a preference for concrete thinking.” Guided by the philosophy of “industry demand-driven, project-based learning at its core, AI tools as enablers, and skill progression as the goal” ([<xref ref-type="bibr" rid="B4">4</xref>]; [<xref ref-type="bibr" rid="B6">6</xref>] Zhang[<xref ref-type="bibr" rid="B6">6</xref>]), it transforms abstract technologies into actionable tasks through real-world projects. By leveraging AI tools to lower technical barriers and implementing tiered task design, the program facilitates a step-by-step progression from “foundational skills → integrated application → innovative expansion.” The teaching objectives include: mastering knowledge of HarmonyOS distributed architecture, UI development, and device interconnectivity (knowledge objectives); developing the practical ability to utilize AI tools to assist in HarmonyOS application development, debugging, and hardware interconnection (skill objectives); and fostering rigorous engineering ethics, an innovative mindset enabled by tools, and professional adaptability to technological changes (literacy objectives).</p>
      </sec>
      <sec id="sec2dot2">
        <title>2.2. Maintaining the Integrity of the Specifications</title>
        <p>With the “Multi-terminal Collaborative Smart Home Control System” as the core project, it covers four functional modules: terminal control, status monitoring, scenario linkage, and AI-assisted (voice control) functions. The teaching content is divided into three levels based on 72 class hours:</p>
        <p>1) Basic Level (18 class hours): Focuses on the setup of HarmonyOS development environment and basic UI development. AI tools are utilized to generate page prototypes and interpret API documents.</p>
        <p>2) Advanced Level (40 class hours): Delves into distributed capability development, device interconnection protocols, and data collection and processing. AI is employed to generate code frameworks, assist in debugging, and optimize logic.</p>
        <p>3) Innovation Level (14 class hours): Completes complex functions such as scenario linkage and voice control integration. AI tools provide support for scheme verification, code review, and performance optimization.</p>
      </sec>
    </sec>
    <sec id="sec3">
      <title>3. Integrating AI Tools into the Full Teaching Process</title>
      <sec id="sec3dot1">
        <title>3.1. Requirement Translation &amp; Framework Generation (8 Class Hours)</title>
        <p>Students are guided to describe functional requirements in natural language (e.g., the interaction logic of a lighting-control page). Using Tongyi Lingma’s “natural-language-to-code” capability, an initial page-layout and module-division framework is automatically produced. The instructor focuses on standardising the requirement descriptions to ensure the accuracy of the AI-generated code. For example, after a student’s description, the AI can output a well-structured ArkTS code skeleton that includes state management, layout, and interaction modules, laying a solid foundation for subsequent development.</p>
      </sec>
      <sec id="sec3dot2">
        <title>3.2. Code Generation and Problem-Solving (56 Class Hours)</title>
        <p>1) Basic-level Empowerment: </p>
        <p>For tasks such as environment configuration and basic UI development, AI is used to generate operational guides and sample code, helping students get started quickly. For example, when students input layout requirements, AI generates the corresponding code. The teacher then guides students in analyzing the structure to understand component properties and logic.</p>
        <p>2) Intermediate-level Empowerment:</p>
        <p>The “Autonomous Thinking + AI Completion” model is adopted. Students first independently draft the core logic code for tasks such as distributed communication or hardware data collection. They then utilize GitHub Copilot’s code completion feature to refine the details and compare the differences to deepen their understanding. During debugging, students are guided to input error information into AI tools to obtain solutions, thereby cultivating their problem-solving skills.</p>
        <p>3) Innovation-level Empowerment:</p>
        <p>Students are encouraged to autonomously design solutions for scene linkage and voice control integration. They then use AI tools to generate core logic code for feasibility verification and optimization. For example, after designing the linkage rules for a “Wake-Up Mode,” AI generates the specific trigger condition and device action class code.</p>
      </sec>
      <sec id="sec3dot3">
        <title>3.3. Code Review and Performance Optimization (8 Class Hours)</title>
        <p>1) Code Review</p>
        <p>Leverage the “code review” functionality of AI tools to detect normative issues and potential risks, generating review reports. This is combined with manual peer review to identify scenario-specific logical problems (such as device offline handling) that AI may overlook.</p>
        <p>2) Performance Optimization</p>
        <p>Utilize AI to analyze application runtime data (e.g., rendering time, communication latency), obtain optimization suggestions (such as reducing component re-rendering, reusing hardware connections), and guide students in code refactoring to enhance operational efficiency.</p>
      </sec>
    </sec>
    <sec id="sec4">
      <title>4. Teaching Case: AI-Assisted Development of a Smart-Home Lighting Control System</title>
      <p>This section selects the core sub-project “Smart-Home Lighting Control System” as the teaching case. It presents the complete implementation of the “AI + HarmonyOS” project-based approach, covering requirement decomposition, technical realization, AI-tool usage, and instructional organization. The case illustrates how stepped task design advances higher-vocational students’ competences in a concrete scenario.</p>
      <sec id="sec4dot1">
        <title>4.1. Case Background and Teaching Objectives</title>
        <p>4.1.1. Case Background</p>
        <p>This case is selected from the core module of the “progressive level” in the teaching plan and is implemented after students have completed the foundational level of learning (mastering the basics of HarmonyOS UI development). Lighting control is one of the most intuitive and moderately complex functional modules in smart home systems, involving multiple core HarmonyOS technical points such as UI interaction, state management, distributed communication, and hardware control. It serves as an ideal transitional task for students moving from basic development to comprehensive application.</p>
        <p>4.1.2. Learning Objectives</p>
        <p>1) Knowledge:</p>
        <p>Master the APIs of HarmonyOS Distributed Data Manager.Understand how state variables (@State, @Prop) enable cross-page data synchronization.Grasp the mapping logic between UI components (Toggle, Slider) and hardware-control commands.</p>
        <p>2) Skills:</p>
        <p>Use AI tools (GitHub Copilot) to interpret distributed-API documentation and generate core communication code.Debug typical distributed-sync problems (device offline, data conflicts).Independently develop a complete module supporting multi-terminal control.</p>
        <p>3) Competencies:</p>
        <p>Cultivate rigorous logical thinking for hardware communication.Establish a collaborative habit of “AI-generated framework + human logic optimization”.Strengthen communication and stress-resistance when solving technical problems in team work.</p>
      </sec>
      <sec id="sec4dot2">
        <title>4.2. Case Implementation Process (14 Class Hours)</title>
        <p>To provide a clearer understanding of the case implementation process, the project has devised a closed-loop teaching process featuring “two main threads and four phases”, with the specific process illustrated in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p>
        <p>As shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>, the diagram clearly illustrates:</p>
        <p>1) Dual-track drivers: </p>
        <p>Three distinct yet intertwined interaction threads—student activities (hands-on work and reflection), AI-tool application (generation and suggestions), and teacher guidance (explanation and elevation)—embodying the modern instructional model of “students as the subject, AI as the tool, and teacher as the guide.”</p>
        <p>2) Four-stage progression:</p>
        <p>The figure strictly aligns with the four phases described. Each phase forms a micro-cycle of “student initiation → AI response → teacher intervention,” ensuring continuous support and scaffolding.</p>
        <p>3) Outcomes-and-reflection closed loop: </p>
        <p>The final stage evaluates not only knowledge and skills (efficiency, technical mastery, AI literacy) but also delves into pedagogical reflection—role transformation, tiered design, and potential pitfalls such as AI overreliance—thereby creating a complete loop for instructional improvement.</p>
        <p>4.2.1. Requirements Analysis &amp; AI Framework Generation (3 Class Hours)</p>
        <p>Develop a mobile-controlled lighting page that synchronizes switch status, brightness value, and last-operation time in real time; the expected interface is shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p>
        <p><bold>1</bold><bold>)</bold><bold>Natural-</bold><bold>Language Requi</bold><bold>rement</bold></p>
        <p>In small groups, students describe their needs to AI in structured language:</p>
        <p>Create a HarmonyOS ArkTS page that:</p>
        <p>provides a circular switch button to control the lamp; shows a horizontal brightness slider (0 - 100) enabled only when the lamp is on; displays the brightness percentage in real time; shows the device name and its status (on/off); shows the last-operation time;synchronises all state changes instantly on the phone.</p>
        <p><bold>2</bold><bold>)</bold><bold>AI-</bold><bold>Generated Code Fra</bold><bold>me</bold></p>
        <fig id="fig1">
          <label>Figure 1</label>
          <graphic xlink:href="https://html.scirp.org/file/6501144-rId11.jpeg?20251226025051" />
        </fig>
        <p>Figure 1. “Two main threads and four phases” teaching process.</p>
        <fig id="fig2">
          <label>Figure 2</label>
          <graphic xlink:href="https://html.scirp.org/file/6501144-rId12.jpeg?20251226025051" />
        </fig>
        <fig id="fig3">
          <label>Figure 3</label>
          <graphic xlink:href="https://html.scirp.org/file/6501144-rId13.jpeg?20251226025051" />
        </fig>
        <fig id="fig4">
          <label>Figure 4</label>
          <graphic xlink:href="https://html.scirp.org/file/6501144-rId14.jpeg?20251226025051" />
        </fig>
        <fig id="fig5">
          <label>Figure 5</label>
          <graphic xlink:href="https://html.scirp.org/file/6501144-rId15.jpeg?20251226025051" />
        </fig>
        <p>Figure 2. Functional Interface Mock-up.</p>
        <p>AI returns an ArkTS page skeleton with state variables, basic UI layout, and function stubs, clearly organised within a LightControlPage component. The project structure diagram is shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p>
        <fig id="fig6">
          <label>Figure 6</label>
          <graphic xlink:href="https://html.scirp.org/file/6501144-rId16.jpeg?20251226025052" />
        </fig>
        <p>Figure 3. The project structure diagram.</p>
        <p><bold>3</bold><bold>)</bold><bold>Teacher</bold><bold>Guidance</bold></p>
        <p>The instructor guides students to analyze the logic of the AI-generated smart lighting control code, focusing on two core points for in-depth explanation:</p>
        <p>By examining real-time response scenarios such as light switch status and brightness value adjustments, analyze the core role of the @State decorator in state management within components (e.g., the animation linkage of scaleValue during switch clicks and the immediate update of the brightness slider value). Compare the interaction flaws in the absence of state management and clarify its necessity in achieving two-way binding between UI and data.</p>
        <p>Based on the existing code architecture, analyze the feasibility of functional expansion (such as adding light color control or color temperature adjustment modules). Break down the decoupled design of the LightDevice model, the LightControlViewModel business layer, and the LightControlPage view layer. Identify structural areas in the current code that require optimization for future extensions (e.g., abstracting brightness control logic into a generic device parameter control method and reserving extension interfaces for color attributes).</p>
        <p>4.2.2. Technical Breakthroughs &amp; AI-Assisted Coding (6 Class Hours)</p>
        <p>Traditional instruction struggles to reconcile complex business logic with rapid-development demands in HarmonyOS courses. By embedding AI pair-programming, we boost students’ ability to tackle technical bottlenecks and shorten iteration cycles. Guided by AI, learners practice code review, state management, component encapsulation, business-logic decoupling, and feature extension—acquiring the full-stack skills demanded by industry and graduating as versatile, market-ready developers.</p>
        <p><bold>1</bold><bold>)</bold><bold>Instructional</bold><bold>Content</bold><bold>Design</bold></p>
        <p>The instructional content design is shown in <bold>Table 1</bold>. </p>
        <p>Table 1. Technical content of the breakthroughs.</p>
        <table-wrap id="tbl1">
          <label>Table 1</label>
          <table>
            <tbody>
              <tr>
                <td>Session</td>
                <td>Topic</td>
                <td>Core Content</td>
              </tr>
              <tr>
                <td>1</td>
                <td>Structured Review of AI-Generated Code</td>
                <td>Review methods, initial screening dimensions, practical review, summary of advantages and limitations</td>
              </tr>
              <tr>
                <td>2</td>
                <td>State Management Breakthrough — In-depth Application of @State Decorator</td>
                <td>Nature of decorators, management pain points, AI-assisted practice, best practice expansion</td>
              </tr>
              <tr>
                <td>3</td>
                <td>Component Encapsulation and Reuse Breakthrough</td>
                <td>Component problem analysis, AI-assisted refactoring, practical reuse testing</td>
              </tr>
              <tr>
                <td>4</td>
                <td>Business Logic Decoupling Breakthrough</td>
                <td>Logic coupling issues, AI-assisted decoupling and refactoring, data flow controllability</td>
              </tr>
              <tr>
                <td>5</td>
                <td>Function Expansion Breakthrough — Color Control Module Development</td>
                <td>Requirement analysis, AI-assisted expansion development, debugging and optimization</td>
              </tr>
              <tr>
                <td>6</td>
                <td>Full-Process Review and Optimization of AI-Assisted Coding</td>
                <td>Full-process review, AI coding optimization strategies, final acceptance</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p><bold>2</bold><bold>)</bold><bold>Instructional</bold><bold>Implementation</bold></p>
        <p>Following the content design in <bold>Table 1</bold>, the teaching process is delivered as follows.</p>
        <p>1) Structured Review of AI-Generated Code</p>
        <p>Review method: Teach students to systematically inspect AI-generated code to identify defects.Screening dimensions: syntax compliance (e.g., misuse of @State), architecture rationality (clear MVVM layers, no UI-logic coupling), and functional completeness (coverage of core interactions).Hands-on review: In groups, students mark issues such as invalid assignments in BrightnessControl or thread-safety risks in the DeviceManager singleton; cross-check with DevEco Studio AI inspector.Strengths &amp; limits: Summarise AI’s speed in scaffolding and styling versus its shallow business fit, missing extension hooks, and ignorance of HarmonyOS-specific rules.</p>
        <p>2) State-Management Breakthrough - Deep Use of @State</p>
        <p>Essence: @State is component-private; value change triggers UI re-render—ideal for local data like switch scale or slider brightness.Pain points: AI code often fails to separate “component-local” from “cross-component” state, causing redundant global re-renders.AI-aided practice: Refactor LightControlViewModel’s device to @Observable; pages link via @Link to avoid redundant paints; AI helps trace update delays.Best-practice extension: Clarify when to use @State (local), @Link (parent-child), @Provide/@Consume (cross-level); validate AI-generated decorator choices.</p>
        <p>3) Component Encapsulation &amp; Re-use</p>
        <p>Problem analysis: AI-built CircleSwitchButton or BrightnessControl is tightly coupled to business, preventing re-use; parameters lack type checks or defaults.AI-assisted refactor: Define param interfaces (e.g., BrightnessControlParam); AI generates types and validation logic; extract business logic to create a reusable component library.Re-use test: Add a “bed-room light” page that re-uses the encapsulated components; AI helps resolve style clashes during parameter/event callback verification.</p>
        <p>4) Decoupling Business Logic</p>
        <p>Coupling issues: toggleSwitch/updateBrightness directly call viewModel without exception handling; DeviceManager is overly intimate with LightControlViewModel; sync logic is scattered.AI-aided decoupling: AI produces a generic updateDeviceParamData-flow mapping: Draw the “Page → ViewModel → Model → DeviceManager” diagram; AI verifies unidirectionality to avoid circular dependencies.</p>
        <p>5) Feature Extension - Color-Control Module</p>
        <p>Requirement analysis: Add RGB &amp; colour-temperature control; identify changes in Model, ViewModel, and View layers.AI-assisted development: Feed AI the spec; receive baseline ColorControl component; integrate colour logic into existing ViewModel, ensure sync to DeviceManager and history module.Debug &amp; optimise: Test colour-light linkage; AI pinpoints format errors or sync delays; refine colour-parameter validation.</p>
        <p>6) Full-Cycle Review &amp; Optimisation</p>
        <p>Whole-process review: Recap key milestones—requirements, AI scaffolding, manual review, tech breakthroughs, extension, tuning; quantify AI gains (60% faster component generation, 40% quicker state-debug).Optimisation strategy: Distil high-leverage prompt templates; let AI suggest refactors; manually screen and adopt viable ones.Final acceptance: Integrate all features; verify code quality, functional completeness, and extensibility; publish “AI-Assisted HarmonyOS Development Guidelines” that specify review standards, state-management rules, and component-encapsulation principles.</p>
        <p>4.2.3. Integrated Debugging &amp; AI-Assisted Troubleshooting (2 Class Hours) </p>
        <p>Teaching zeros in on the two core debugging links—“problem finding” and “problem fixing”—while letting AI tools empower every step, forming a compact and practical learning loop.</p>
        <p>1) Phase 1: Problem Finding &amp; Environment Validation (1 class hour)</p>
        <p>Tutor demo: one-click AI diagnosis of SDK/dependencies and automatic generation of structured log templates.Group practice: “three-dimension health check”Function: verify switch &amp; slider interaction.Data flow: trace one brightness change from ViewModel to Model.Resource/layout: ensure icons load and UI is aligned.</p>
        <p>2) Phase 2: AI-Aided Diagnosis &amp; Repair (1 class hour)</p>
        <p>Students interact with AI: describe the bug, supply code snippets, use prompts like “analyse the root cause of state desync” or “give a fix for the unresponsive UI”.They evaluate AI’s explanation and patch, verify the fix, and complete a short Project Initial-State Report listing 1 - 2 visible issues plus the repair process.</p>
        <p>4.2.4. Performance Optimization and AI-Assisted Diagnosis (3 Class Hours)</p>
        <p>This phase guides students to shift from “functional implementation” to “performance excellence,” helping them develop an awareness of quantitative performance evaluation and learn to use professional tools and AI for performance bottleneck diagnosis and precise optimization. The designed tasks are shown in <bold>Table 2</bold>.</p>
        <p>Table 2. Performance optimization tasks.</p>
        <table-wrap id="tbl2">
          <label>Table 2</label>
          <table>
            <tbody>
              <tr>
                <td>Class Hour</td>
                <td>Task</td>
                <td>AI Empowerment</td>
                <td>Student Deliverables</td>
              </tr>
              <tr>
                <td>1</td>
                <td>Preliminary Performance Diagnosis</td>
                <td>Interpreting flame graphs, identifying high-frequency onChange calls, memory leaks</td>
                <td>Locate 1 bottleneck, complete the “Performance Snapshot” form</td>
              </tr>
              <tr>
                <td>1</td>
                <td>Immediate Optimization</td>
                <td>One-click generation of debounce</td>
                <td>Frame rate ↑10 fps, CPU usage ↓20%</td>
              </tr>
              <tr>
                <td>1</td>
                <td>Creative Expansion</td>
                <td>AI suggests a “scenario mode persistence” solution</td>
                <td>Submit core code for Preferences data storage</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>Based on the design in <bold>Table 2</bold>, the process begins with a teacher demonstration: AI reads the flame graph and highlights the Slider’s 247 calls/s in seconds → suggests using on ChangeEnd + 200 ms debouncing. Students then verify the changes: after replacement and re-sampling, the frame rate improves from 45 to 55 fps, and latency drops from 150 to 70 ms. A screenshot comparison completes this step. Finally, students implement the creative solution: AI provides a template for “saving the current scenario to Preferences,” and students supplement the key-value pairs and toast prompts based on the AI-generated code, achieving a runnable demonstration within 10 minutes.</p>
        <p>4.2.5. Teaching Reflection</p>
        <p><bold>1</bold><bold>)</bold><bold>Effectiveness</bold><bold>Analysis</bold></p>
        <p>a) Significant Improvement in Learning Efficiency: </p>
        <p>Two parallel classes of the same grade taught by the author in the autumn semester of 2025 were selected as the research objects. Among them, Class 1 of Internet of Things (IoT) Application Technology adopted the “AI + HarmonyOS” teaching model, while Class 2 of IoT Application Technology adopted the traditional teaching model (only using HarmonyOS development tools without AI assistance). Students in Class 2 needed an average of more than 8 class hours to understand and implement the distributed synchronization function, and they encountered great difficulties in debugging. By virtue of AI tools’ capabilities in document interpretation and code generation, students in Class 1 shortened the development time of core functions to 6 class hours, enabling them to focus more energy on logical understanding and problem troubleshooting.</p>
        <p>b) Enhanced Proficiency in Complex Technologies: </p>
        <p>Through the hands-on, contrastive approach of “independent design followed by AI-assisted completion,” students’ understanding of abstract concepts like distributed communication evolved from merely “being aware of its existence” to “knowing exactly how to implement it and handle exceptions.” Testing and practical project defenses showed that over 85% of students could clearly articulate the synchronization logic and fault-tolerance mechanisms in their code.</p>
        <p>c) Internalization of AI Tool Application Capabilities: </p>
        <p>Students have transformed from initially “blindly trusting AI outputs” to “using AI purposefully for inquiry, verification and optimization”. At the end of the case, students can skillfully use natural language to describe technical problems to AI and critically evaluate the rationality of AI-generated codes.</p>
        <p><bold>2</bold><bold>)</bold><bold>Teaching</bold><bold>Reflection</bold></p>
        <p>a) The “Double-Edged Sword” Effect of AI Tools</p>
        <p>AI has greatly improved learning efficiency, but it has also been observed that some students have developed a “copy-paste dependence”. In teaching, the principle of “understanding takes priority over application” must be emphasized, and a three-step principle should be adopted: Pre-control—Students must first submit pseudocode and flowcharts, which can only be used with AI tools after being reviewed and approved by teachers; Process review—Establish a “code traceability form” that requires students to mark and explain the reasons for selecting AI-generated code and the parts modified by themselves; Post-review—Analyze typical error cases in class to help students understand the limitations of AI and systematically cultivate their ability to use AI critically.</p>
        <p>b) Profound Transformation of Teachers’ Roles: </p>
        <p>Teachers have transformed from “knowledge instructors” to project “architects” and “guides”. Their core responsibilities include designing challenging tasks, intervening when there are deviations in students’ interaction with AI (such as correcting vague demand descriptions), and refining and elevating engineering experience and design ideas that AI cannot impart.</p>
        <p>c) Accuracy of Hierarchical Teaching: </p>
        <p>The success of this case confirms the necessity of hierarchical tasks. By decomposing the complex lighting control system into a ladder of “UI construction - standalone logic - distributed synchronization - function expansion”, students with different foundations can find entry points, obtain positive incentives after completing each step, and finally work together to complete the seemingly arduous comprehensive project.</p>
      </sec>
    </sec>
    <sec id="sec5">
      <title>5. Conclusion</title>
      <p>This study addresses the pain points of IoT education in higher vocational colleges by constructing and practicing an interdisciplinary, project-based teaching model that integrates “AI + HarmonyOS.” Using a real-world smart-home project as the carrier, AI tools are embedded throughout the entire teaching process, effectively bridging the gap between cutting-edge industry technologies and students’ cognitive patterns. The model provides a feasible reference for reforming professional education and cultivating highly skilled talents suited to intelligent terminal development in the era of artificial intelligence. In the future, it will be necessary to continuously track technological evolution, dynamically update the project repository, and further explore the deep application of AI tools in teaching evaluation and personalized learning support</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <title>References</title>
      <ref id="B1">
        <label>1.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Hu, W. X. (2025). AI-Driven Educational Transformation: Application Fields, Real Challenges and Future Prospects. <italic>Journal of Chinese Education, (S1):</italic>4-6.</mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Hu, W.</string-name>
              <string-name>Fields, R</string-name>
            </person-group>
            <year>2025</year>
            <fpage>4</fpage>
            <lpage>6</lpage>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B2">
        <label>2.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Huang, J. C., Wang, Y. D. (2025). From “AI Exclusion” to “AI Enablement”: Deepening the Application of Artificial Intelligence in University Teaching. <italic>China Higher Education Research,</italic><italic>4</italic><italic>,</italic> 34-41.</mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Huang, J.</string-name>
              <string-name>Wang, Y.</string-name>
            </person-group>
            <year>2025</year>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B3">
        <label>3.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Kong, L. S., Hou, J., Qian, L. (2025). Actions and Reflections on AI-Based Instructional Applications in U.S. K-12 Education. <italic>Open Education Research,</italic><italic>31</italic><italic>,</italic> 65-73.</mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Kong, L.</string-name>
              <string-name>Hou, J.</string-name>
              <string-name>Qian, L.</string-name>
            </person-group>
            <year>2025</year>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B4">
        <label>4.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Li, J. Y., Lin, B. T., Hu, X. D., et al. (2025). Exploring a Dual-Empowerment Model for Cultivating Interdisciplinary Talent in Oil-Gas AI. <italic>Academic Degrees &amp; Graduate Education,</italic><italic>7</italic><italic>,</italic> 39-46.</mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Li, J.</string-name>
              <string-name>Lin, B.</string-name>
              <string-name>Hu, X.</string-name>
            </person-group>
            <year>2025</year>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B5">
        <label>5.</label>
        <citation-alternatives>
          <mixed-citation publication-type="book">Long, B. X., Gao, Y. F., Cao, Y. W. (2025). Trends, Risks and Countermeasures of AI Application in Education. <italic>Journal of Soochow University (Educational Science Edition),</italic><italic>13</italic><italic>,</italic>51-61.</mixed-citation>
          <element-citation publication-type="book">
            <person-group person-group-type="author">
              <string-name>Long, B.</string-name>
              <string-name>Gao, Y.</string-name>
              <string-name>Cao, Y.</string-name>
              <string-name>Trends, R</string-name>
            </person-group>
            <year>2025</year>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B6">
        <label>6.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Zhao, J., Zhang, J. Y. (2025). Construction and Application of Teaching-Resource Libraries Based on Large AI Models. <italic>China University Teaching,</italic><italic>7</italic><italic>,</italic> 37-43+79.</mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Zhao, J.</string-name>
              <string-name>Zhang, J.</string-name>
            </person-group>
            <year>2025</year>
          </element-citation>
        </citation-alternatives>
      </ref>
    </ref-list>
  </back>
</article>