Program debugging method and electronic device

By configuring a first program and a second program in electronic devices, virtual devices are used to simulate hardware device interaction and build network or serial communication channels, solving the problems of high hardware cost and low efficiency in equipment software debugging and achieving efficient equipment software debugging.

CN122412271APending Publication Date: 2026-07-17HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2025-01-16
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

The current equipment software debugging process relies on multiple hardware devices, resulting in high hardware costs and low debugging efficiency.

Method used

By configuring a first program and a second program in the electronic device, virtual devices are used to simulate hardware device interaction, and a network or serial communication channel is built to achieve equipment software debugging.

Benefits of technology

It reduced hardware costs, improved debugging efficiency, and met the needs of equipment development and testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122412271A_ABST
    Figure CN122412271A_ABST
Patent Text Reader

Abstract

本申请提供了一种程序调试方法及电子设备。其中,方法包括:配置第一程序,以及,配置与第一程序进行通信的第二程序,其中,第一程序用于对装备进行调试,第二程序中设置有至少一个虚拟设备;在虚拟设备接收到第一程序发送的第一指令的情况下,虚拟设备将第一指令与预设于第二程序中的指令集进行匹配,得到第一指令在指令集中对应的返回值,并将返回值发送至第一程序;基于返回值,第一程序进行程序调试。本申请提供的程序调试方法及电子设备,能够在不设置实体硬件设备,或者仅设置部分实体硬件设备的情况下,对装备软件进行调试,使装备软件符合装备开发测试需求,这样,在装备软件的联合调试过程中,降低了硬件成本,且提升了调试效率。
Need to check novelty before this filing date? Find Prior Art