CN115391125A - Analog debugging method, programmable single chip microcomputer, device, equipment and medium - Google Patents
Analog debugging method, programmable single chip microcomputer, device, equipment and medium Download PDFInfo
- Publication number
- CN115391125A CN115391125A CN202211032514.6A CN202211032514A CN115391125A CN 115391125 A CN115391125 A CN 115391125A CN 202211032514 A CN202211032514 A CN 202211032514A CN 115391125 A CN115391125 A CN 115391125A
- Authority
- CN
- China
- Prior art keywords
- equipment
- management controller
- simulator
- communication
- simulate
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 238000004891 communication Methods 0.000 claims abstract description 126
- 239000000758 substrate Substances 0.000 claims abstract description 68
- 238000004088 simulation Methods 0.000 claims abstract description 30
- 238000012544 monitoring process Methods 0.000 claims abstract description 20
- 238000004590 computer program Methods 0.000 claims description 14
- CQIZBIFTOGBKDB-UHFFFAOYSA-N 4-cyclohexyl-1-methyl-3,6-dihydro-2h-pyridine Chemical compound C1N(C)CCC(C2CCCCC2)=C1 CQIZBIFTOGBKDB-UHFFFAOYSA-N 0.000 claims 1
- 101100076239 Drosophila melanogaster Mctp gene Proteins 0.000 claims 1
- 238000011161 development Methods 0.000 abstract description 43
- 238000012360 testing method Methods 0.000 abstract description 20
- 230000002093 peripheral effect Effects 0.000 abstract description 6
- 230000003111 delayed effect Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 230000003287 optical effect Effects 0.000 description 2
- 238000012827 research and development Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/26—Functional testing
- G06F11/261—Functional testing by simulating additional hardware, e.g. fault simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/2221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/76—Architectures of general purpose stored program computers
- G06F15/78—Architectures of general purpose stored program computers comprising a single central processing unit
Abstract
The application discloses simulation debugging method, programmable singlechip, device, equipment and medium, which are applied to the programmable singlechip and relate to the technical field of peripheral equipment, wherein the programmable singlechip comprises a power supply interface, a dial switch, an equipment simulator and a substrate management controller connector, and the method comprises the following steps: supplying power and downloading target firmware through the power supply interface; switching the device simulator through the dial switch to simulate a plurality of communication devices corresponding to the target firmware; and acquiring the communication protocol of the communication equipment simulated by the equipment simulator through the substrate management controller connector, and communicating with the substrate management controller according to the communication protocol so as to simulate the monitoring management of the substrate management controller. Through the technical scheme, the development efficiency can be improved, the problem of insufficient resources in the early stage is solved, development and testing are not disjointed, problems are found early, and the project is guaranteed to be carried out smoothly.
Description
Technical Field
The invention relates to the technical field of peripheral equipment, in particular to an analog debugging method, a programmable single chip microcomputer, a device, equipment and a medium.
Background
The rapid development of the internet also brings prosperity to the server market. The BMC (Baseboard Management Controller) plays a role of monitoring the Management server in the server. In the previous development stage of BMC firmware of the server, the available resources for research and development are limited, only one mainboard and no peripheral equipment are available, only codes can be written first during development, many peripheral equipment have no actual equipment, the problem in the previous stage cannot be checked, debugging can be really started on physical equipment only after module resources arrive, time is often more urgent, and the time between code writing and debugging is too long finally, so that the problem is not easy to solve quickly. Some devices are expensive, for example, the latest GPU (Graphics Processing Unit) devices, and the whole company may have difficulty in coordination because some devices need to debug performance, some devices need to test compatibility, and some devices need to test stability. The main reasons are in several points: the device is probably not matched with the quilt, the code development and the test are not sufficient, the project is delayed, and the like, and it is difficult for everyone to have a whole set of device when a plurality of persons develop the code.
In conclusion, how to solve the problem that the development and test pace is inconsistent and the development progress is delayed due to no equipment or lack of equipment in the development process of the BMC, so that the project delay is to be solved at present.
Disclosure of Invention
In view of this, the present invention provides a simulation debugging method, a programmable single chip, an apparatus, a device and a medium, which can solve the problem of project delay caused by inconsistent development and test schedules and delayed development progress due to no device or lack of devices in the development process of the BMC. The specific scheme is as follows:
in a first aspect, the application discloses a simulation debugging method, which is applied to a programmable single chip microcomputer, wherein the programmable single chip microcomputer comprises a power supply interface, a dial switch, an equipment simulator and a substrate management controller connector, and the method comprises the following steps:
supplying power and downloading target firmware through the power supply interface;
switching the device simulator through the dial switch to simulate a plurality of communication devices corresponding to the target firmware;
and acquiring the communication protocol of the communication equipment simulated by the equipment simulator through the substrate management controller connector, and communicating with the substrate management controller according to the communication protocol so as to simulate the monitoring management of the substrate management controller.
Optionally, the supplying power and downloading the target firmware through the power supply interface includes:
and supplying power through the USB interface, and downloading the target firmware according to different communication protocols and different communication specifications corresponding to different communication equipment.
Optionally, the switching the device simulator by the dial switch to simulate a plurality of communication devices corresponding to the target firmware includes:
switching the equipment simulator through the dial switch to simulate a temperature sensor;
or, the equipment simulator is switched through the dial switch to simulate an NVME hard disk;
or, the equipment simulator is switched through the dial switch to simulate the electrified erasable programmable read-only memory;
or, the equipment simulator is switched through the dial switch to simulate a GPU card;
or, the equipment simulator is switched through the dial switch to simulate a network card;
or, the equipment simulator is switched by the dial switch to simulate voltage.
Optionally, the obtaining, by the baseboard management controller connector, the communication protocol of the communication device simulated by the device simulator includes:
acquiring a system management bus protocol of the communication equipment simulated by the equipment simulator through the substrate management controller connector;
or, acquiring, by the baseboard management controller connector, a field replaceable unit protocol of the communication device simulated by the device simulator;
or, acquiring, by the baseboard management controller connector, an MCTP over I2C protocol of the communication device simulated by the device simulator;
or, acquiring, by the baseboard management controller connector, a protocol read from a general purpose I2C device register simulated by the device simulator.
Optionally, the communicating with the baseboard management controller according to the communication protocol includes:
and the I2C cable is connected with a mainboard of the baseboard management controller so as to communicate with the baseboard management controller according to the communication protocol.
Optionally, the switching the device simulator through the dial switch to simulate a plurality of communication devices corresponding to the target firmware includes:
and switching the equipment simulator through the dial switch to change the slave addr of the programmable singlechip and simulate various communication equipment corresponding to the target firmware.
In a second aspect, the application discloses a programmable single chip microcomputer, which comprises a power supply interface, a dial switch, an equipment simulator and a substrate management controller connector, wherein,
the power supply interface is used for being connected with the server to supply power and download target firmware;
the dial switch is used for switching the equipment simulator to simulate various communication equipment corresponding to the target firmware;
the device simulator is used for simulating a plurality of communication devices corresponding to the target firmware;
the substrate management controller connector is used for acquiring the communication protocol of the communication equipment simulated by the equipment simulator and communicating with the substrate management controller according to the communication protocol so as to simulate monitoring management of the substrate management controller.
In a third aspect, the present application discloses a simulation debugging device, which is applied to a programmable single chip microcomputer, wherein the programmable single chip microcomputer comprises a power supply interface, a dial switch, an equipment simulator and a substrate management controller connector, and the device comprises:
the power supply module is used for supplying power through the power supply interface and downloading the target firmware;
the communication equipment simulation module is used for switching the equipment simulator through the dial switch so as to simulate various communication equipment corresponding to the target firmware;
and the communication module is used for acquiring the communication protocol of the communication equipment simulated by the equipment simulator through the substrate management controller connector and communicating with the substrate management controller according to the communication protocol so as to simulate the monitoring management of the substrate management controller.
In a fourth aspect, the present application discloses an electronic device comprising a processor and a memory; wherein the memory is used for storing a computer program which is loaded and executed by the processor to implement the simulation debugging method as described above.
In a fifth aspect, the present application discloses a computer readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the simulation debugging method as described above.
The method is applied to a programmable single chip microcomputer which comprises a power supply interface, a dial switch, an equipment simulator and a substrate management controller connector, wherein the method comprises the steps of supplying power through the power supply interface and downloading target firmware; then, the equipment simulator is switched through the dial switch to simulate various communication equipment corresponding to the target firmware; and finally, acquiring the communication protocol of the communication equipment simulated by the equipment simulator through the substrate management controller connector, and communicating with the substrate management controller according to the communication protocol so as to simulate the monitoring management of the substrate management controller. Therefore, the method and the device are based on the programmable single chip microcomputer, a real physical device is provided, monitoring management communication equipment of various substrate management controllers can be simulated, and the problems that development and test steps are inconsistent, development progress is delayed and project delay is caused due to the fact that no equipment or equipment is lacked in the development process of the substrate management controllers are solved. In addition, the equipment simulator is switched by one key through the dial switch, the compatibility of the equipment is not influenced among different projects, and the development efficiency is improved. The substrate management controller can be used by physical equipment at any time in the development process, various configurations of various equipment can be realized at any time, full testing can be carried out in the early stage, the earlier the problem is found, the more the project delay can be avoided, the problem of insufficient resources in the early stage is solved, development and testing are not disconnected, the problem is found early, and the project is guaranteed to be carried out smoothly.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a simulation debugging method disclosed herein;
fig. 2 is a schematic structural diagram of a programmable single chip disclosed in the present application;
FIG. 3 is a schematic diagram of a specific programmable single-chip disclosed in the present application;
FIG. 4 is a schematic diagram of a simulation debugging apparatus according to the present disclosure;
fig. 5 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, in the early stage of development of BMC firmware of a server, resources which can be taken by research and development are limited, so that codes can only be written firstly during development, a plurality of peripheral devices do not have actual devices, and the problems in the early stage cannot be solved, so that the problems of inconsistent development and test pace, delayed development progress, project delay and the like are caused.
Therefore, the simulation debugging scheme is provided, and the problem that in the development process of the BMC, development and test steps are inconsistent, development progress is delayed and project is delayed due to the fact that no equipment exists or equipment is lacked.
The embodiment of the invention discloses a simulation debugging method, which is applied to a programmable singlechip as shown in figure 1, wherein the programmable singlechip comprises a power supply interface, a dial switch, an equipment simulator and a substrate management controller connector, and the method comprises the following steps:
step S11: and supplying power and downloading the target firmware through the power supply interface.
The embodiment of the present application provides a simulator that can be real, and the simulator is based on a programmable Single Chip Microcomputer (MCU), a micro control Unit, also called a Single Chip Microcomputer or a Single Chip Microcomputer, and supplies power through a USB (Universal Serial Bus) interface, thereby providing a flexible power supply manner.
In the embodiment of the application, after power is supplied through the USB interface, different target firmware can be downloaded according to different communication protocols and different communication specifications corresponding to different communication devices. For example, in the programmable single chip microcomputer, if it is necessary to simulate an NVME (Non-Volatile Memory) hard disk, a communication Protocol corresponding to the NVME hard disk, such as an MCTP (Management Component Transport Protocol) over I2C (Inter-Integrated Circuit) Protocol, is downloaded. It can be understood that the MCTP over I2C protocol is the final underlying protocol of the management component transport protocol that is transported over I2C.
Step S12: and switching the equipment simulator through the dial switch to simulate various communication equipment corresponding to the target firmware.
In the embodiment of the application, the downloaded target firmware can simulate the required peripheral equipment, that is, the firmware of different equipment corresponds to different dial switches. Therefore, in the simulation process, the equipment simulator can be switched by one key by adjusting the dial switch, so that various kinds of equipment can be simulated.
In this embodiment, the simulation of the plurality of communication devices corresponding to the target firmware may include a temperature sensor, an NVME hard disk, an EEPROM (Electrically Erasable Programmable Read-Only Memory), a GPU card, and the like, and may also simulate a network card or simulate an external voltage, which is not specifically limited herein.
Specifically, the switching the device simulator through the dial switch to simulate a plurality of communication devices corresponding to the target firmware includes: switching the equipment simulator through the dial switch to simulate a temperature sensor; or, the equipment simulator is switched through the dial switch to simulate the NVME hard disk; or, the equipment simulator is switched through the dial switch to simulate the electrified erasable programmable read-only memory; or, the equipment simulator is switched through the dial switch to simulate a GPU card; or, the equipment simulator is switched through the dial switch to simulate a network card; or, the equipment simulator is switched by the dial switch to simulate voltage.
Step S13: and acquiring the communication protocol of the communication equipment simulated by the equipment simulator through the substrate management controller connector, and communicating with a substrate management controller according to the communication protocol so as to simulate monitoring management of the substrate management controller.
In the embodiment of the application, since a part of devices monitored and managed by the baseboard management controller are based on the I2C communication protocol, the I2C cable is connected with the main board of the baseboard management controller, and can communicate with the baseboard management controller according to the communication protocol, so as to simulate various I2C devices monitored and managed by the baseboard management controller.
In this embodiment of the application, different communication protocols corresponding to different types of simulated devices may include an SMBUS (System Management Bus) protocol, an FRU (Field replaceable Unit) protocol, an MCTP over I2C protocol, and the like, and may also be read from a general I2C device register, which is not specifically limited herein. The I2C equipment is equipment for monitoring and managing the substrate management controller based on an I2C communication protocol.
Specifically, the obtaining, by the baseboard management controller connector, the communication protocol of the communication device simulated by the device simulator includes: acquiring a system management bus protocol of the communication equipment simulated by the equipment simulator through the substrate management controller connector; or, acquiring, by the baseboard management controller connector, a field replaceable unit protocol of the communication device simulated by the device simulator; or, acquiring, by the baseboard management controller connector, an MCTP over I2C protocol of the communication device simulated by the device simulator; or, acquiring, by the baseboard management controller connector, a protocol read from a general purpose I2C device register simulated by the device simulator.
In the embodiment of the application, when the device simulator is switched by the dial switch, the slave addr of the programmable single chip microcomputer can be changed at any time so as to simulate various communication devices corresponding to the target firmware. Therefore, the physical addresses of the communication equipment monitored and managed by the various baseboard management controllers can be dynamically configured, and the communication equipment is consistent with real equipment.
The method is applied to a programmable single chip microcomputer, wherein the programmable single chip microcomputer comprises a power supply interface, a dial switch, an equipment simulator and a substrate management controller connector, and the method comprises the steps of firstly supplying power through the power supply interface and downloading target firmware; then, the equipment simulator is switched through the dial switch to simulate various communication equipment corresponding to the target firmware; and finally, acquiring the communication protocol of the communication equipment simulated by the equipment simulator through the substrate management controller connector, and communicating with the substrate management controller according to the communication protocol so as to simulate the monitoring management of the substrate management controller. Therefore, the communication device is a real physical device based on a programmable single chip microcomputer, can simulate the monitoring management communication equipment of various substrate management controllers, and solves the problems that development and test steps are inconsistent, development progress is delayed and project delay is caused due to the fact that no equipment or equipment is lacked in the development process of the substrate management controllers. In addition, the equipment simulator is switched by one key through the dial switch, the compatibility of the equipment is not influenced among different projects, and the development efficiency is improved. The substrate management controller can be used by physical equipment at any time in the development process, various configurations of various equipment can be realized at any time, full testing can be carried out in the early stage, the earlier the problem is found, the more the project delay can be avoided, the problem of insufficient resources in the early stage is solved, development and testing are not disconnected, the problem is found early, and the project is guaranteed to be carried out smoothly.
The embodiment of the application discloses a structural schematic diagram of a programmable singlechip, as shown in figure 2, the device comprises: the system comprises a power supply interface, a dial switch, an equipment simulator and a substrate management controller connector; wherein the content of the first and second substances,
the power supply interface is used for being connected with the server to supply power and download target firmware;
the dial switch is used for switching the equipment simulator to simulate various communication equipment corresponding to the target firmware;
the device simulator is used for simulating a plurality of communication devices corresponding to the target firmware;
the substrate management controller connector is used for acquiring the communication protocol of the communication equipment simulated by the equipment simulator and communicating with the substrate management controller according to the communication protocol so as to simulate monitoring management of the substrate management controller.
For more specific descriptions of the power supply interface, the dial switch, the device simulator, and the baseboard management controller connector, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated herein.
Fig. 3 is a schematic structural diagram of a specific analog debugging. The hardware design is based on a programmable MCU, and the firmware is supplied and downloaded through a USB. Different firmware is compiled according to communication protocols and communication specifications of different equipment during software design, and when the equipment needs to be simulated, different equipment can be simulated by adjusting different dial switches to download different firmware, and the equipment is switched by one key.
Therefore, based on the programmable MCU, the dial switch is only toggled to download the firmware of different devices when needed, and the firmware contains different communication protocols, the value range of original data and the like. Connecting USB download and power supply, connecting I2C cable to the mainboard that BMC is located, just can the real simulation a plurality of different physical devices.
The application discloses a programmable single chip microcomputer which comprises a power supply interface, a dial switch, an equipment simulator and a substrate management controller connector, wherein the power supply interface is used for being connected with a server to supply power and download target firmware; the dial switch is used for switching the equipment simulator to simulate various communication equipment corresponding to the target firmware; the device simulator is used for simulating a plurality of communication devices corresponding to the target firmware; the substrate management controller connector is used for acquiring the communication protocol of the communication equipment simulated by the equipment simulator and communicating with the substrate management controller according to the communication protocol so as to simulate monitoring management of the substrate management controller. Therefore, the communication device is a real physical device based on a programmable single chip microcomputer, can simulate the monitoring management communication equipment of various substrate management controllers, and solves the problems that development and test steps are inconsistent, development progress is delayed and project delay is caused due to the fact that no equipment or equipment is lacked in the development process of the substrate management controllers. In addition, the equipment simulator is switched by one key through the dial switch, the compatibility of the equipment is not influenced among different projects, and the development efficiency is improved. The substrate management controller can be used by physical equipment at any time in the development process, various configurations of various equipment can be realized at any time, full testing can be carried out in the early stage, the earlier the problem is found, the more the project delay can be avoided, the problem of insufficient resources in the early stage is solved, development and testing are not disconnected, the problem is found early, and the project is guaranteed to be carried out smoothly.
Correspondingly, the embodiment of the present application further discloses a simulation debugging device, as shown in fig. 4, which is applied to a programmable single chip microcomputer, where the programmable single chip microcomputer includes a power supply interface, a dial switch, an equipment simulator, and a substrate management controller connector, and the device includes:
the power supply module 11 is used for supplying power through the power supply interface and downloading target firmware;
a communication device simulation module 12, configured to switch the device simulator through the dial switch to simulate a plurality of communication devices corresponding to the target firmware;
and the communication module 13 is configured to acquire, through the baseboard management controller connector, the communication protocol of the communication device simulated by the device simulator, and communicate with the baseboard management controller according to the communication protocol, so as to simulate monitoring management of the baseboard management controller.
For more specific working processes of the modules, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Therefore, the technical scheme of the embodiment is applied to the programmable single chip microcomputer, wherein the programmable single chip microcomputer comprises a power supply interface, a dial switch, an equipment simulator and a substrate management controller connector, and the method comprises the steps of firstly supplying power through the power supply interface and downloading target firmware; then, the equipment simulator is switched through the dial switch to simulate various communication equipment corresponding to the target firmware; and finally, acquiring the communication protocol of the communication equipment simulated by the equipment simulator through the substrate management controller connector, and communicating with the substrate management controller according to the communication protocol so as to simulate the monitoring management of the substrate management controller. Therefore, the method and the device are based on the programmable single chip microcomputer, a real physical device is provided, monitoring management communication equipment of various substrate management controllers can be simulated, and the problems that development and test steps are inconsistent, development progress is delayed and project delay is caused due to the fact that no equipment or equipment is lacked in the development process of the substrate management controllers are solved. In addition, the equipment simulator is switched by one key through the dial switch, the compatibility of the equipment is not influenced among different projects, and the development efficiency is improved. The substrate management controller can be used by physical equipment at any time in the development process, various configurations of various equipment can be realized at any time, full testing can be carried out in the early stage, the earlier the problem is found, the more the project delay can be avoided, the problem of insufficient resources in the early stage is solved, development and testing are not disconnected, the problem is found early, and the project is guaranteed to be carried out smoothly.
Further, an electronic device is disclosed in the embodiments of the present application, and fig. 5 is a block diagram of an electronic device 20 according to an exemplary embodiment, which should not be construed as limiting the scope of the application.
Fig. 5 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is used for storing a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the simulation debugging method disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to acquire external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the memory 22 is a carrier for storing resources, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., the resources stored thereon may include an operating system 221, a computer program 222, data 223, etc., and the data 223 may include various data. The storage means may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device on the electronic device 20 and the computer program 222, and may be Windows Server, netware, unix, linux, or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the simulation debugging method performed by the electronic device 20 disclosed in any of the foregoing embodiments.
Further, embodiments of the present application disclose a computer-readable storage medium, where the computer-readable storage medium includes a Random Access Memory (RAM), a Memory, a Read-Only Memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a magnetic disk, or an optical disk or any other form of storage medium known in the art. Wherein the computer program, when executed by a processor, implements the aforementioned simulation debugging method. For the specific steps of the method, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
In the present specification, the embodiments are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts between the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The steps of simulating debugging or algorithms described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The simulation debugging method, the programmable single chip microcomputer, the device, the equipment and the medium provided by the invention are introduced in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. A simulation debugging method is characterized by being applied to a programmable single chip microcomputer, wherein the programmable single chip microcomputer comprises a power supply interface, a dial switch, an equipment simulator and a substrate management controller connector, and the method comprises the following steps:
supplying power and downloading target firmware through the power supply interface;
switching the device simulator through the dial switch to simulate a plurality of communication devices corresponding to the target firmware;
and acquiring the communication protocol of the communication equipment simulated by the equipment simulator through the substrate management controller connector, and communicating with the substrate management controller according to the communication protocol so as to simulate the monitoring management of the substrate management controller.
2. The analog debugging method of claim 1, wherein the supplying power through the power supply interface and downloading target firmware comprises:
and supplying power through the USB interface, and downloading the target firmware according to different communication protocols and different communication specifications corresponding to different communication equipment.
3. The simulation debugging method of claim 1, wherein the switching the device simulator through the dial-up switch to simulate a plurality of communication devices corresponding to the target firmware comprises:
switching the equipment simulator through the dial switch to simulate a temperature sensor;
or, the equipment simulator is switched through the dial switch to simulate an NVME hard disk;
or, the equipment simulator is switched through the dial switch to simulate the electrified erasable programmable read-only memory;
or, the equipment simulator is switched through the dial switch to simulate a GPU card;
or, the equipment simulator is switched through the dial switch to simulate a network card;
or, the equipment simulator is switched by the dial switch to simulate voltage.
4. The simulation debugging method of claim 1, wherein the obtaining, by the baseboard management controller connector, the communication protocol of the communication device simulated by the device simulator comprises:
acquiring a system management bus protocol of the communication equipment simulated by the equipment simulator through the substrate management controller connector;
or, obtaining, by the baseboard management controller connector, a field replaceable unit protocol of the communication device simulated by the device simulator;
or, acquiring, by the baseboard management controller connector, an MCTP over I2C protocol of the communication device simulated by the device simulator;
or, acquiring, by the baseboard management controller connector, a protocol read from a general purpose I2C device register simulated by the device simulator.
5. The simulation debugging method of claim 1, wherein the communicating with a baseboard management controller according to the communication protocol comprises:
and the communication interface is connected with a mainboard of the baseboard management controller through an I2C cable so as to communicate with the baseboard management controller according to the communication protocol.
6. The simulation debugging method according to any one of claims 1 to 5, wherein the switching the device simulator by the dial switch to simulate a plurality of communication devices corresponding to the target firmware comprises:
and switching the equipment simulator through the dial switch to change the slave addr of the programmable singlechip and simulate various communication equipment corresponding to the target firmware.
7. A programmable singlechip is characterized by comprising a power supply interface, a dial switch, an equipment simulator and a substrate management controller connector, wherein,
the power supply interface is used for being connected with the server to supply power and download target firmware;
the dial switch is used for switching the equipment simulator to simulate various communication equipment corresponding to the target firmware;
the device simulator is used for simulating a plurality of communication devices corresponding to the target firmware;
the substrate management controller connector is used for acquiring the communication protocol of the communication equipment simulated by the equipment simulator and communicating with the substrate management controller according to the communication protocol so as to simulate monitoring management of the substrate management controller.
8. The utility model provides a simulation debugging device which characterized in that is applied to programmable singlechip, programmable singlechip includes power supply interface, dial switch, equipment simulator and base plate management controller connector, wherein, the device includes:
the power supply module is used for supplying power through the power supply interface and downloading the target firmware;
the communication equipment simulation module is used for switching the equipment simulator through the dial switch so as to simulate various communication equipment corresponding to the target firmware;
and the communication module is used for acquiring the communication protocol of the communication equipment simulated by the equipment simulator through the substrate management controller connector and communicating with the substrate management controller according to the communication protocol so as to simulate the monitoring management of the substrate management controller.
9. An electronic device, comprising a processor and a memory; wherein the memory is for storing a computer program that is loaded and executed by the processor to implement the simulation debugging method of any of claims 1 to 6.
10. A computer-readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the simulation debugging method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211032514.6A CN115391125A (en) | 2022-08-26 | 2022-08-26 | Analog debugging method, programmable single chip microcomputer, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211032514.6A CN115391125A (en) | 2022-08-26 | 2022-08-26 | Analog debugging method, programmable single chip microcomputer, device, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115391125A true CN115391125A (en) | 2022-11-25 |
Family
ID=84123309
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211032514.6A Pending CN115391125A (en) | 2022-08-26 | 2022-08-26 | Analog debugging method, programmable single chip microcomputer, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115391125A (en) |
-
2022
- 2022-08-26 CN CN202211032514.6A patent/CN115391125A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8874953B2 (en) | System and method of cloud testing and remote monitoring for integrated circuit components in system validation | |
TW201341811A (en) | Adapter module and motherboard testing device using the same | |
CN113076227A (en) | MCU verification method, system and terminal equipment | |
US10120702B2 (en) | Platform simulation for management controller development projects | |
CN111124775A (en) | Power-on time sequence abnormality detection method and device, MCU and storage medium | |
CN103995499A (en) | Controller, information processing apparatus, and program | |
CN103617061A (en) | Method for multi-node on-line software updating on basis of ARM | |
CN113608684B (en) | Memory information acquisition method, device and system, electronic equipment and storage medium | |
CN110824336A (en) | Test system and test method | |
Hernández-Jayo et al. | A remote and reconfigurable analog electronics laboratory based on IVI an LXI technologies | |
CN103440133A (en) | Development method and system of chip testing software | |
CN115391125A (en) | Analog debugging method, programmable single chip microcomputer, device, equipment and medium | |
CN113625854B (en) | Mainboard power-on control system, method and device and readable storage medium | |
CN114253781B (en) | Test method, device, equipment and storage medium | |
CN113419955B (en) | Software version automatic test system, method, medium and equipment | |
CN109471661B (en) | Embedded board card and automatic drive generation method | |
CN109885329B (en) | Upgrading method and system and electronic equipment | |
CN113904945B (en) | Internet of things equipment simulation debugging method and device, electronic device and storage medium | |
CN109271188A (en) | A kind of CPLD upgrade method and relevant apparatus | |
Lloyd et al. | Ethernet Control of Microcontrollers using the Built-in Interface | |
CN109586810B (en) | Distributed dynamic radio frequency test interface device and test method | |
CN115793582A (en) | Industrial control algorithm debugging method, system and device and electronic equipment | |
CN115237695A (en) | Method, device, equipment and medium for detecting state of mainboard interface | |
CN114757012A (en) | Simulation method and device for reconfigurable processor system and storage medium | |
Harvey | Automated device for Raspberry Pi Pico recovery |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |