Method and device for acquiring device data, readable storage medium, and electronic device

The embodiment of the invention provides a method and device for acquiring device data, a readable storage medium and an electronic device. The method comprises the following steps: in a virtual filesystem, a preset kernel function interface is called to create a file corresponding to the device; du...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: LI XUEFENG, GAO XIANG, YANG YINGLU
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The embodiment of the invention provides a method and device for acquiring device data, a readable storage medium and an electronic device. The method comprises the following steps: in a virtual filesystem, a preset kernel function interface is called to create a file corresponding to the device; during operation of the device, data corresponding to the device is mapped to the file. A method foracquiring device data according to an embodiment of that present invention, When the technician needs to obtain the device data, it is sufficient to directly view the device data from the corresponding file without inserting a third-party debugging tool into the computer. As the third-party debugging tool does not need to be inserted, the problem of the computer jamming caused by inserting and removing the third-party debugging tool can be avoided. 本发明实施例提供了种获取设备数据的方法、装置、可读存储介质及电子设备,其中所述方法包括:在虚拟文件系统中,调用预设的内核函数接口创建设备对应的文件;在设备运行过程中,将所述设备对应的数据映射至所述文件中。通过本发明实施例提供的获取设备数据的方法,当技术人员需要获取设备数据时,直接从相应文件中查看设备数据即可,无需向计算机中插入第三方调试工具,由