Development debugging system, method and equipment based on PC (Personal Computer) simulation embedded environment

By simulating an embedded environment on a PC and utilizing a virtual machine and a PC host computer environment, efficient development and debugging of motorcycle instrument software is achieved, and the problem of low debugging efficiency of embedded equipment is solved, and development efficiency and resource utilization are improved.

CN119201683APending Publication Date: 2024-12-27WUHAN CLOUD PINE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411154341.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The development and debugging of motorcycle instrument software is inefficient and cannot be directly developed and debugged on embedded devices, resulting in inefficiency and inconvenient debugging.

Method used

Adopt a PC-based simulated embedded environment development and debugging system, including a virtual machine development environment unit and a PC host computer environment unit. Through a general host computer, the virtual device path is determined, and development and debugging is carried out in the virtual machine. , realize debugging and running in multiple places.

Benefits of technology

It improves development and debugging efficiency, reduces resource waste, simplifies the debugging process, and realizes efficient multi-location operation and debugging on the PC side.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201683A_ABST
    Figure CN119201683A_ABST
Patent Text Reader

Abstract

The invention discloses a development debugging system, method and device based on a PC simulation embedded environment, and the system comprises the steps: a PC upper computer environment unit collects corresponding module project data through at least one independent function module according to a project demand, analyzing the module project data corresponding to each independent function module through the universal upper computer, and determining at least one virtual equipment path; the PC upper computer environment unit sends module project data corresponding to each independent function module to virtual equipment corresponding to each virtual equipment path in the virtual machine development environment unit; and the virtual machine development environment unit respectively develops and debugs the module project data corresponding to each independent function module through each virtual device. The method is composed of the PC upper computer environment and the virtual machine development environment, the purpose of debugging at one position and running at multiple positions is achieved, and the development and debugging efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of embedded development technology, and in particular to a development and debugging system, method and equipment based on a PC simulating an embedded environment. Background Art

[0002] Motorcycle instrument software is an embedded software. Due to the limited hardware resources of embedded devices, it is impossible to develop and debug directly on the device. The traditional standard development process is to develop and compile on the PC, copy the relevant program resources to the embedded device for debugging, and repeat the above process when problems arise, resulting in low development efficiency and inconvenience in debugging when problems arise. Therefore, how to improve development and debugging efficiency has become an urgent problem to be solved.

[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of the present invention is to provide a development and debugging system, method and equipment based on a PC simulating an embedded environment, aiming to solve the problem of how to improve the development and debugging efficiency.

[0005] To achieve the above object, the present invention provides a development and debugging system based on a PC simulating an embedded environment, the development and debugging system based on a PC simulating an embedded environment comprises a virtual machine development environment unit and a PC host computer environment unit, the PC host computer environment unit comprises a universal host computer, and the universal host computer comprises a plurality of independent functional modules;

[0006] The PC host computer environment unit is used to collect corresponding module project data through at least one independent functional module according to project requirements, and analyze the module project data corresponding to each independent functional module through the universal host computer to determine at least one virtual device path;

[0007] The PC host environment unit is also used to send the module project data corresponding to each independent functional module to the virtual device corresponding to each virtual device path in the virtual machine development environment unit;

[0008] The virtual machine development environment unit is used to develop and debug the module project data corresponding to each independent functional module through each virtual device.

[0009] Optionally, the multiple independent functional modules are obtained by decoupling the hybrid functional system in the corresponding project host computer into multiple independent functional modules according to relevant requirements of each project.

[0010] Optionally, the PC host computer environment unit is used to determine a compilation tool chain according to project requirements, and the compilation tool chain includes an embedded cross-compilation tool chain and a LINUX compilation tool chain;

[0011] The PC host computer environment unit is also used to collect corresponding module project data through at least one independent function module when the compilation tool chain is a LINUX compilation tool chain.

[0012] Optionally, a data channel between the PC host computer environment unit and the virtual machine development environment unit is established through the universal host computer;

[0013] The PC host computer environment unit is also used to send the module project data corresponding to each independent functional module to the virtual devices corresponding to each virtual device path in the virtual machine development environment unit through the data channel based on the universal host computer.

[0014] Optionally, the virtual machine development environment unit is further used to obtain the debugging results corresponding to the project data of each module, and send the debugging results to the PC host environment unit through the data channel;

[0015] The PC host computer environment unit is further used to determine the debugging failure result through the universal host computer according to the debugging result corresponding to the project data of each module, and determine the error function module according to the debugging failure result;

[0016] The PC host computer environment unit is also used to send the debugging failure result to the error function module through the universal host computer to locate and modify the problem.

[0017] In addition, to achieve the above object, the present invention also proposes a development and debugging method based on a PC simulating an embedded environment, the development and debugging method based on a PC simulating an embedded environment comprises the following steps:

[0018] The PC host computer environment unit collects corresponding module project data through at least one independent function module according to project requirements, and analyzes the module project data corresponding to each independent function module through the universal host computer to determine at least one virtual device path;

[0019] The PC host environment unit sends the module project data corresponding to each independent functional module to the virtual device corresponding to each virtual device path in the virtual machine development environment unit;

[0020] The virtual machine development environment unit develops and debugs the module project data corresponding to each independent functional module through each virtual device.

[0021] In addition, to achieve the above-mentioned purpose, the present invention also proposes a development and debugging device based on a PC-simulated embedded environment, the device comprising: a memory, a processor, and a development and debugging program based on a PC-simulated embedded environment stored in the memory and executable on the processor, the development and debugging program based on a PC-simulated embedded environment being configured to implement the steps of a development and debugging system based on a PC-simulated embedded environment as described above.

[0022] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which is stored a development and debugging program based on a PC simulating an embedded environment. When the development and debugging program based on a PC simulating an embedded environment is executed by a processor, the steps of the development and debugging system based on a PC simulating an embedded environment as described above are implemented.

[0023] The present invention is based on the development and debugging system of PC-based simulated embedded environment, including a virtual machine development environment unit, a PC host environment unit, the PC host environment unit includes a universal host computer, the universal host computer includes a plurality of independent function modules, firstly, the PC host environment unit collects corresponding module project data through at least one independent function module according to project requirements, and analyzes the module project data corresponding to each independent function module through the universal host computer, determines at least one virtual device path, and then sends the module project data corresponding to each independent function module to the virtual device corresponding to each virtual device path in the virtual machine development environment unit, and finally the virtual machine development environment unit develops and debugs the module project data corresponding to each independent function module through each virtual device. Compared with the prior art, after the development and compilation on the PC side, the relevant program resources are copied to the embedded device for debugging, resulting in low efficiency and waste of resources, and the present invention is composed of the PC host environment and the virtual machine development environment, so as to achieve the purpose of debugging in one place and running in multiple places, and improve the development and debugging efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a structural diagram of a development and debugging device based on a PC simulating an embedded environment in a hardware operating environment involved in an embodiment of the present invention;

[0025] Figure 2 It is a structural block diagram of a first embodiment of a development and debugging system based on a PC simulating an embedded environment of the present invention;

[0026] Figure 3 A schematic diagram of PC-side simulated embedded development based on a first embodiment of a development and debugging system for simulating an embedded environment on a PC according to the present invention;

[0027] Figure 4The figure is a flow chart of the first embodiment of the development and debugging method based on PC simulating embedded environment of the present invention.

[0028] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0029] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0030] Reference Figure 1 , Figure 1 The present invention is a schematic diagram of the structure of a development and debugging device based on a PC simulating an embedded environment in the hardware operating environment involved in the embodiment of the present invention.

[0031] like Figure 1 As shown, the TCP communication device based on Bluetooth Low Energy BLE may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input module such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage system independent of the aforementioned processor 1001.

[0032] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the development and debugging equipment based on the PC-based simulated embedded environment, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0033] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a development and debugging program based on a PC-based simulated embedded environment.

[0034] exist Figure 1In the development and debugging device based on PC simulating embedded environment shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the development and debugging device based on PC simulating embedded environment of the present invention can be set in the development and debugging device based on PC simulating embedded environment, and the development and debugging device based on PC simulating embedded environment calls the development and debugging program based on PC simulating embedded environment stored in the memory 1005 through the processor 1001, and executes the development and debugging system based on PC simulating embedded environment provided by the embodiment of the present invention.

[0035] The embodiment of the present invention provides a development and debugging system based on a PC simulating an embedded environment, referring to Figure 2 , Figure 2 It is a structural block diagram of the first embodiment of the development and debugging system based on PC simulating embedded environment of the present invention.

[0036] In this embodiment, the development and debugging system based on PC simulating embedded environment includes a virtual machine development environment unit 201 and a PC host environment unit 202. The PC host environment unit includes a universal host computer 203. The universal host computer 203 includes multiple independent functional modules.

[0037] The PC host computer environment unit 202 is used to collect corresponding module project data through at least one independent functional module according to project requirements, and analyze the module project data corresponding to each independent functional module through the general host computer 203 to determine at least one virtual device path.

[0038] In the specific implementation, refer to Figure 3 , Figure 3 This is a schematic diagram of PC-side simulated embedded development based on the first embodiment of the development and debugging system of the PC-based simulated embedded environment of the present invention. Figure 3 It consists of a PC host environment + a virtual machine development environment, which can achieve the purpose of debugging in one place and running in multiple places.

[0039] It should also be noted that the virtual machine development environment is generally an Ubuntu system installed on the virtual machine, and the LINUX compilation tool chain, embedded cross-compilation tool chain, and commonly used virtual device drivers (serial port driver, CAN driver, key input driver) are installed.

[0040] The virtual machine development environment unit includes development applications, and the development applications include multiple virtual devices, which are virtual serial port devices, virtual CAN devices, virtual Bluetooth devices, virtual input devices, etc.

[0041] The PC host computer environment unit includes a universal host computer, which includes multiple independent functional modules, including an MCU module, a CAN module, a Bluetooth module, a key module, and the like.

[0042] It should also be noted that the requirements for functional modules are different for different projects. For example, different projects use different models of Bluetooth modules, which require Bluetooth modules to implement the functions of various models and then flexibly combine them for use by general host computers. Similarly, MCU modules, CAN modules, and key modules also need to integrate the functions of various models.

[0043] The MCU module generally interacts with the instrument program through the serial port. The serial port data also varies from project to project. The module development only needs to follow the project protocol document. Various automated data tests can be performed through random data or specific test cases. The CAN module is similar to the MCU module and can also be automated. The Bluetooth module generally interacts based on the standard AT instruction set. The combination of modules can realize single Bluetooth or multi-Bluetooth functional testing. The key module provides a variety of events such as short press, long press, and combination keys, which can realize automated UI interaction testing.

[0044] It should be understood that there is a one-to-one correspondence between independent functional modules and virtual devices.

[0045] In the specific implementation, it is also necessary to configure the debugging and formal compilation tool chains, such as using different compilation tool chains, accessing different virtual device paths, and then compiling the debug version and executing the program.

[0046] Furthermore, the PC host computer environment unit determines the compilation tool chain according to project requirements, and the compilation tool chain includes an embedded cross-compilation tool chain and a LINUX compilation tool chain; when the compilation tool chain is a LINUX compilation tool chain, the PC host computer environment unit collects corresponding module project data through at least one independent functional module.

[0047] Since the requirements of different projects are different, traditional project testing requires the design of a complete specific host computer program based on the project requirements. There are multiple functional modules corresponding to the project requirements in the host computer program, which results in the specific host computer program being unusable after the project requirement test is completed. If each project develops a host computer, it will incur the cost of version maintenance and will not utilize functional reuse. Therefore, it is necessary to decouple the mixed functional system in the corresponding project host computer into multiple independent functional modules according to the relevant requirements of each project. Each independent functional module integrates the functions of various models. Through multiple independent functional modules, project function combinations can be realized to reduce resource waste.

[0048] It should also be noted that this system involves two types of tool chains, an embedded cross-compilation tool chain and a LINUX compilation tool chain. When the LINUX compilation tool chain is selected, data can be interacted with the virtual development environment through a general host computer. If the embedded cross-compilation tool chain is selected, it can be directly applied to the physical device for testing.

[0049] In this embodiment, since the project requirements may require the implementation of multiple functions, different independent functional modules are required to collect corresponding module project data respectively, and then the corresponding module project data collected by each independent functional module is sent to a general host computer. The general host computer needs to analyze the module project data and determine the virtual device corresponding to the module project data of each independent functional module to obtain the virtual device path of the corresponding virtual device.

[0050] It should also be noted that since there is a one-to-one correspondence between independent functional modules and virtual devices, the general host computer can determine the data collected by a certain independent functional module based on the module project data, and then determine the corresponding virtual device to obtain the corresponding virtual device path.

[0051] It should be understood that a plurality of virtual device paths are pre-stored in the general host computer.

[0052] The PC host computer environment unit 202 is also used to send the module project data corresponding to each independent functional module to the virtual device corresponding to each virtual device path in the virtual machine development environment unit 201.

[0053] The general host computer realizes the data channel function and can forward the data generated by each module to the virtual device on the device path corresponding to the virtual machine development environment.

[0054] It should be understood that a data channel is established between the PC host computer environment unit and the virtual machine development environment unit through the universal host computer; the PC host computer environment unit sends the module project data corresponding to each independent functional module to the virtual devices corresponding to each virtual device path in the virtual machine development environment unit through the data channel based on the universal host computer.

[0055] The virtual machine development environment unit 201 is used to develop and debug the module project data corresponding to each independent functional module through each virtual device.

[0056] Furthermore, the virtual machine development environment unit obtains the debugging results corresponding to the project data of each module, and sends the debugging results to the PC host computer environment unit through the data channel; the PC host computer environment unit determines the debugging failure results through the general host computer according to the debugging results corresponding to the project data of each module, and determines the error function module according to the debugging failure results; the PC host computer environment unit sends the debugging failure results to the error function module through the general host computer to locate and modify the problem.

[0057] In this embodiment, each virtual module in the virtual machine development environment unit can send the corresponding debugging result to the general host computer in the PC host computer environment unit. The general host computer selects the debugging failure result with the problem from multiple debugging results, and determines the error function module (that is, an independent function module with the problem) according to the debugging failure result, and sends the debugging failure result to the error function module to locate and modify the problem.

[0058] In the specific implementation, after the error is discovered and the problem is located, the code is modified and the debug version is repeatedly compiled and executed until all errors are eliminated. Then the formal version is compiled and copied to the embedded device for verification. After the verification is completed, the release version delivery software package is delivered.

[0059] In this embodiment, the development and debugging system based on the PC-based simulated embedded environment includes a virtual machine development environment unit and a PC host environment unit. The PC host environment unit includes a general host computer, and the general host computer includes multiple independent functional modules. First, the PC host environment unit collects corresponding module project data through at least one independent functional module according to project requirements, and analyzes the module project data corresponding to each independent functional module through the general host computer, determines at least one virtual device path, and then sends the module project data corresponding to each independent functional module to the virtual device corresponding to each virtual device path in the virtual machine development environment unit, and finally the virtual machine development environment unit develops and debugs the module project data corresponding to each independent functional module through each virtual device. Compared with the prior art, after the development and compilation on the PC side, the relevant program resources are copied to the embedded device for debugging, resulting in low efficiency and waste of resources. In this embodiment, the PC host environment and the virtual machine development environment are combined, so as to achieve the purpose of debugging in one place and running in multiple places, and improve the development and debugging efficiency.

[0060] Reference Figure 4 , Figure 4 The figure is a flow chart of the first embodiment of the development and debugging method based on PC simulating embedded environment of the present invention.

[0061] like Figure 4 As shown, the development and debugging method based on PC simulating embedded environment proposed in the embodiment of the present invention comprises the following steps:

[0062] Step S10: The PC host computer environment unit collects corresponding module project data through at least one independent functional module according to project requirements, and analyzes the module project data corresponding to each independent functional module through the universal host computer to determine at least one virtual device path.

[0063] In the specific implementation, refer to Figure 3 , Figure 3 This is a schematic diagram of PC-side simulated embedded development based on the first embodiment of the development and debugging system of the PC-based simulated embedded environment of the present invention. Figure 3 It consists of a PC host environment + a virtual machine development environment, which can achieve the purpose of debugging in one place and running in multiple places.

[0064] It should also be noted that the virtual machine development environment is generally an Ubuntu system installed on the virtual machine, and the LINUX compilation tool chain, embedded cross-compilation tool chain, and commonly used virtual device drivers (serial port driver, CAN driver, key input driver) are installed.

[0065] The virtual machine development environment unit includes development applications, and the development applications include multiple virtual devices, which are virtual serial port devices, virtual CAN devices, virtual Bluetooth devices, virtual input devices, etc.

[0066] The PC host computer environment unit includes a universal host computer, which includes multiple independent functional modules, including an MCU module, a CAN module, a Bluetooth module, a key module, and the like.

[0067] It should also be noted that the requirements for functional modules are different for different projects. For example, different projects use different models of Bluetooth modules, which require Bluetooth modules to implement the functions of various models and then flexibly combine them for use by general host computers. Similarly, MCU modules, CAN modules, and key modules also need to integrate the functions of various models.

[0068] The MCU module generally interacts with the instrument program through the serial port. The serial port data also varies from project to project. The module development only needs to follow the project protocol document. Various automated data tests can be performed through random data or specific test cases. The CAN module is similar to the MCU module and can also be automated. The Bluetooth module generally interacts based on the standard AT instruction set. The combination of modules can realize single Bluetooth or multi-Bluetooth functional testing. The key module provides a variety of events such as short press, long press, and combination keys, which can realize automated UI interaction testing.

[0069] It should be understood that there is a one-to-one correspondence between independent functional modules and virtual devices.

[0070] In the specific implementation, it is also necessary to configure the debugging and formal compilation tool chains, such as using different compilation tool chains, accessing different virtual device paths, and then compiling the debug version and executing the program.

[0071] Furthermore, the PC host computer environment unit determines the compilation tool chain according to project requirements, and the compilation tool chain includes an embedded cross-compilation tool chain and a LINUX compilation tool chain; when the compilation tool chain is a LINUX compilation tool chain, the PC host computer environment unit collects corresponding module project data through at least one independent functional module.

[0072] Since the requirements of different projects are different, traditional project testing requires the design of a complete specific host computer program based on the project requirements. There are multiple functional modules corresponding to the project requirements in the host computer program, which results in the specific host computer program being unusable after the project requirement test is completed. If each project develops a host computer, it will incur the cost of version maintenance and will not utilize functional reuse. Therefore, it is necessary to decouple the mixed functional system in the corresponding project host computer into multiple independent functional modules according to the relevant requirements of each project. Each independent functional module integrates the functions of various models. Through multiple independent functional modules, project function combinations can be realized to reduce resource waste.

[0073] It should also be noted that this system involves two types of tool chains, an embedded cross-compilation tool chain and a LINUX compilation tool chain. When the LINUX compilation tool chain is selected, data can be interacted with the virtual development environment through a general host computer. If the embedded cross-compilation tool chain is selected, it can be directly applied to the physical device for testing.

[0074] In this embodiment, since the project requirements may require the implementation of multiple functions, different independent functional modules are required to collect corresponding module project data respectively, and then the corresponding module project data collected by each independent functional module is sent to a general host computer. The general host computer needs to analyze the module project data and determine the virtual device corresponding to the module project data of each independent functional module to obtain the virtual device path of the corresponding virtual device.

[0075] It should also be noted that since there is a one-to-one correspondence between independent functional modules and virtual devices, the general host computer can determine the data collected by a certain independent functional module based on the module project data, and then determine the corresponding virtual device to obtain the corresponding virtual device path.

[0076] It should be understood that a plurality of virtual device paths are pre-stored in the general host computer.

[0077] Step S20: the PC host computer environment unit sends the module project data corresponding to each independent functional module to the virtual devices corresponding to each virtual device path in the virtual machine development environment unit.

[0078] The general host computer realizes the data channel function and can forward the data generated by each module to the virtual device on the device path corresponding to the virtual machine development environment.

[0079] It should be understood that a data channel is established between the PC host computer environment unit and the virtual machine development environment unit through the universal host computer; the PC host computer environment unit sends the module project data corresponding to each independent functional module to the virtual devices corresponding to each virtual device path in the virtual machine development environment unit through the data channel based on the universal host computer.

[0080] Step S30: the virtual machine development environment unit develops and debugs the module project data corresponding to each independent functional module through each virtual device.

[0081] Furthermore, the virtual machine development environment unit obtains the debugging results corresponding to the project data of each module, and sends the debugging results to the PC host computer environment unit through the data channel; the PC host computer environment unit determines the debugging failure results through the general host computer according to the debugging results corresponding to the project data of each module, and determines the error function module according to the debugging failure results; the PC host computer environment unit sends the debugging failure results to the error function module through the general host computer to locate and modify the problem.

[0082] In this embodiment, each virtual module in the virtual machine development environment unit can send the corresponding debugging result to the general host computer in the PC host computer environment unit. The general host computer selects the debugging failure result with the problem from multiple debugging results, and determines the error function module (that is, an independent function module with the problem) according to the debugging failure result, and sends the debugging failure result to the error function module to locate and modify the problem.

[0083] In the specific implementation, after the error is discovered and the problem is located, the code is modified and the debug version is repeatedly compiled and executed until all errors are eliminated. Then the formal version is compiled and copied to the embedded device for verification. After the verification is completed, the release version delivery software package is delivered.

[0084] In this embodiment, the development and debugging system based on the PC-based simulated embedded environment includes a virtual machine development environment unit and a PC host environment unit. The PC host environment unit includes a general host computer, and the general host computer includes multiple independent functional modules. First, the PC host environment unit collects corresponding module project data through at least one independent functional module according to project requirements, and analyzes the module project data corresponding to each independent functional module through the general host computer, determines at least one virtual device path, and then sends the module project data corresponding to each independent functional module to the virtual device corresponding to each virtual device path in the virtual machine development environment unit, and finally the virtual machine development environment unit develops and debugs the module project data corresponding to each independent functional module through each virtual device. Compared with the prior art, after the development and compilation on the PC side, the relevant program resources are copied to the embedded device for debugging, resulting in low efficiency and waste of resources. In this embodiment, the PC host environment and the virtual machine development environment are combined, so as to achieve the purpose of debugging in one place and running in multiple places, and improve the development and debugging efficiency.

[0085] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0086] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0087] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0088] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A development and debugging system based on PC simulating embedded environment, characterized in that: The development and debugging system based on PC-based simulated embedded environment includes a virtual machine development environment unit and a PC host environment unit, wherein the PC host environment unit includes a universal host computer, and the universal host computer includes a plurality of independent functional modules; The PC host computer environment unit is used to collect corresponding module project data through at least one independent functional module according to project requirements, and analyze the module project data corresponding to each independent functional module through the universal host computer to determine at least one virtual device path; The PC host environment unit is also used to send the module project data corresponding to each independent functional module to the virtual device corresponding to each virtual device path in the virtual machine development environment unit; The virtual machine development environment unit is used to develop and debug the module project data corresponding to each independent functional module through each virtual device.

2. The system according to claim 1, characterized in that The multiple independent functional modules are decoupled from the hybrid functional system in the corresponding project host computer into multiple independent functional modules according to the relevant requirements of each project.

3. The system according to claim 2, characterized in that The PC host computer environment unit is used to determine the compilation tool chain according to project requirements, and the compilation tool chain includes an embedded cross-compilation tool chain and a LINUX compilation tool chain; The PC host computer environment unit is also used to collect corresponding module project data through at least one independent function module when the compilation tool chain is a LINUX compilation tool chain.

4. The system according to claim 3, characterized in that Establishing a data channel between the PC host computer environment unit and the virtual machine development environment unit through the universal host computer; The PC host computer environment unit is also used to send the module project data corresponding to each independent functional module to the virtual devices corresponding to each virtual device path in the virtual machine development environment unit through the data channel based on the universal host computer.

5. The system according to claim 4, characterized in that The virtual machine development environment unit is also used to obtain the debugging results corresponding to the project data of each module, and send the debugging results to the PC host environment unit through the data channel; The PC host computer environment unit is further used to determine the debugging failure result through the universal host computer according to the debugging result corresponding to the project data of each module, and determine the error function module according to the debugging failure result; The PC host computer environment unit is also used to send the debugging failure result to the error function module through the universal host computer to locate and modify the problem.

6. A development and debugging method based on PC simulating embedded environment, characterized in that: The development and debugging method based on PC simulating embedded environment comprises the following steps: The PC host computer environment unit collects corresponding module project data through at least one independent function module according to project requirements, and analyzes the module project data corresponding to each independent function module through the universal host computer to determine at least one virtual device path; The PC host environment unit sends the module project data corresponding to each independent functional module to the virtual device corresponding to each virtual device path in the virtual machine development environment unit; The virtual machine development environment unit develops and debugs the module project data corresponding to each independent functional module through each virtual device.

7. A development and debugging device based on a PC simulating an embedded environment, characterized in that: The device includes: a memory, a processor, and a development and debugging program based on a PC-simulated embedded environment stored in the memory and executable on the processor, wherein the development and debugging program based on a PC-simulated embedded environment is configured to implement the steps of a development and debugging system based on a PC-simulated embedded environment as described in any one of claims 1 to 5.