CN-120429153-B - Information viewing method of storage device, electronic device and storage medium
Abstract
The application discloses an information viewing method of storage equipment, electronic equipment and a storage medium, wherein the method comprises the steps of setting a system starting sequence to be started from the information viewing storage equipment preferentially; the method comprises the steps of starting an information checking storage device when the information checking storage device is started, entering an initial interface of the information checking system, unlocking an information checking operation authority in the information checking system in response to receiving an unlocking command and acquiring an unlocking password, executing a target executable file in the information checking system according to an execution command, entering the operation interface, acquiring information of the storage device corresponding to the information checking command when the information checking storage device is detected to be connected with the storage device and the information checking command is received in the operation interface, displaying the information, judging the fault type of the storage device based on the information of the storage device when the fault detection command is received, and generating a fault repairing suggestion based on the fault type of the storage device. The application can enable the user to view the information of the storage equipment locally.
Inventors
- LI XIULU
- ZHU XIAOCONG
- Yin Shanteng
Assignees
- 深圳市安信达存储技术有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20250427
Claims (7)
- 1. An information viewing method of a storage device, comprising: Setting a system start sequence to be started from the information viewing storage device preferentially; starting from the information viewing storage device when starting, and entering an initial interface of an information viewing system; In the information viewing system, unlocking information viewing operation permission is obtained in response to receiving an unlocking command and obtaining an unlocking password; Responding to the received execution command, executing a target executable file in the information viewing system according to the execution command, and entering an operation interface; when connection with a storage device is detected, and an information viewing command is received in the operation interface, information of the storage device corresponding to the information viewing command is acquired, and the information is displayed, wherein the information comprises at least one of device information, self-monitoring information and running information; when a fault detection command is received, judging whether the fault type of the storage device is temporary software conflict or hardware error based on the operation log in the operation information and the working temperature in the self-monitoring information; when a fault detection command is received, judging whether the fault type is a temporary software conflict or a hardware error based on an operation log in the operation information and the working temperature in the self-monitoring information, including: identifying an error event code in the operation log, recording an error event corresponding to the error event code, and classifying the error event corresponding to the error event code according to error types, wherein the error types comprise software-related errors and hardware-related errors; When the error event comprises a hardware-related error, judging whether the fault type is the temporary software conflict or the hardware error according to the occurrence frequency of the hardware-related error or the working temperature when the hardware-related error occurs; Identifying logical and real fault storage units in the storage device based on the fault information in the device information and the self-monitoring information; when the number of the logic fault storage units is larger than a first preset number, judging that the fault type is a data check error; Determining a shielding mode corresponding to the storage device based on corresponding relation information of preset device information and shielding modes and the device information, wherein the shielding mode comprises a redundant shielding mode and a dynamic shielding mode, when the shielding mode is the dynamic shielding mode, calculating the score of each normal storage unit in the storage device according to a preset scoring rule, and mapping the address of each fault storage unit to the address of a corresponding normal storage unit with a score in a preset score interval; Mapping the address of each fault storage unit to the address of a normal storage unit by adopting a shielding mode corresponding to the storage equipment; When the fault type of the storage device is temporary software conflict, generating a fault repair suggestion for restarting the storage device to immediately clear the fault of the storage device; When the fault type of the storage device is data check error, generating a fault restoration suggestion for executing self-checking and updating of the firmware; And when the fault type of the storage device is a hardware error, generating backup storage data and replacing a fault repair suggestion of the storage device.
- 2. The information viewing method of a storage device according to claim 1, wherein the device information includes failure information, the information viewing command includes a command to view the failure information, the acquiring information of the storage device corresponding to the information viewing command when a connection with the storage device is detected and the information viewing command is received in the operation interface, and displaying the information, includes: When the connection with the storage equipment is detected, and a command for checking fault information is received in the operation interface, determining a fault detection mode according to the command for checking the fault information, wherein the fault detection mode comprises a quick detection mode and a comprehensive detection mode; when the fault detection mode is the rapid detection mode, determining that the detection range is a storage unit of all stored data in the storage device; When the fault detection mode is the comprehensive detection mode, determining that the detection range is all storage units in the storage device; performing fault detection on the storage units in the detection range to obtain the fault information; And displaying the states and the positions of all the storage units in a graphical interface representing all the storage units according to the fault information.
- 3. The method for checking information of a storage device according to claim 2, wherein performing fault detection on the storage units in the detection range to obtain the fault information includes: acquiring the electrical data of each storage unit in the detection range, and identifying a fault storage unit according to the electrical data of each storage unit and a numerical interval of the electrical data of a preset normal storage unit; writing test data into each storage unit in turn according to a preset algorithm, and then reading the storage data in each storage unit to perform fault detection so as to identify a fault storage unit; And recording the addresses and the number of all the fault storage units to obtain the fault information.
- 4. The method for viewing information of a storage device according to claim 1, wherein the running information includes a running log, the information viewing command includes a running log viewing command, and when a connection with the storage device is detected and the information viewing command is received in the operation interface, obtaining information of the storage device corresponding to the information viewing command and displaying the information, includes: When connection with a storage device is detected, and a running log checking command is received in the operation interface, determining a checking time period and a target log to be checked according to the running log checking command, wherein the target log comprises at least one of an access log, an error log and an operation log; acquiring a target log recorded by the storage device in the viewing time period; and generating and displaying a statistical graph of the use condition of the storage device in the viewing time period based on the target log.
- 5. The information viewing method of a storage device according to claim 1, wherein the information viewing command includes a device information viewing command, and when a connection with the storage device is detected and the information viewing command is received in the operation interface, acquiring information of the storage device corresponding to the information viewing command and displaying the information, comprises: When the connection with the storage equipment is detected, and an equipment information viewing command is received in the operation interface, acquiring the equipment information according to the equipment information viewing command; An information list is generated and displayed based on the device information, the device information including at least one of a model number, a serial number, vendor information, a firmware version identification, a date of manufacture, a storage capacity, and a storage unit type of the storage device.
- 6. An electronic device, the electronic device comprising: At least one processor, and A memory communicatively coupled to the at least one processor, wherein, The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the information viewing method of the storage device of any of claims 1 to 5.
- 7. A computer-readable storage medium storing executable code for updating firmware, the executable code being executed by a processor to implement the information viewing method of the storage device of any of claims 1 to 5.
Description
Information viewing method of storage device, electronic device and storage medium Technical Field The present invention relates to the field of chip technologies, and in particular, to an information viewing method for a storage device, an electronic device, and a storage medium. Background With the rapid development of storage device technology, solid state disks (Solid STATE DISK, SSD) have been widely used. When the solid state disk has read-write abnormality, storage unit failure or compatibility problem, the firmware of the solid state disk is often required to be updated so that the solid state disk can continue to work normally. BGA (Ball GRID ARRAY) SSD is a solid state disk that uses Ball grid array packaging technology. The flash memory and master of a BGA SSD are typically packaged together. Sometimes, when a user needs to know the configuration of the BGA SSD or the status of use of the device, the information of the BGA SSD needs to be checked. However, the current method for checking the information of the BGA SSD is that the user sends the BGA SSD back to the original factory, and highly depends on professional operation, so that the user cannot autonomously complete information checking, and the whole process is very troublesome. Disclosure of Invention In order to overcome the defects in the prior art, the application provides an information viewing method of a storage device, an electronic device and a storage medium, and when the connection with the storage device is detected, when an information viewing command is received in the operation interface, information of the storage device corresponding to the information viewing command is obtained, and the information is displayed, so that a user can view the information of the storage device locally. In order to solve the problems, the invention provides the following technical scheme: In a first aspect, an embodiment of the present application provides an information viewing method for a storage device, including setting a system start sequence to be started from the information viewing storage device preferentially; starting from the information viewing storage device when starting, and entering an initial interface of an information viewing system; In the information viewing system, unlocking information viewing operation permission is obtained in response to receiving an unlocking command and obtaining an unlocking password; Responding to the received execution command, executing a target executable file in the information viewing system according to the execution command, and entering an operation interface; when connection with a storage device is detected, and an information viewing command is received in the operation interface, information of the storage device corresponding to the information viewing command is acquired, and the information is displayed, wherein the information comprises at least one of device information, self-monitoring information and running information; When a fault detection command is received, judging the fault type of the storage device based on the information of the storage device, wherein the fault type comprises temporary software conflict, hardware error and data verification error; And generating a fault repair suggestion based on the fault type of the storage device. In some embodiments, the device information includes fault information, the information viewing command includes a command to view the fault information, and when a connection with a storage device is detected and the information viewing command is received in the operation interface, obtaining information of the storage device corresponding to the information viewing command, and displaying the information includes: When the connection with the storage equipment is detected, and a command for checking fault information is received in the operation interface, determining a fault detection mode according to the command for checking the fault information, wherein the fault detection mode comprises a quick detection mode and a comprehensive detection mode; when the fault detection mode is the rapid detection mode, determining that the detection range is a storage unit of all stored data in the storage device; When the fault detection mode is the comprehensive detection mode, determining that the detection range is all storage units in the storage device; performing fault detection on the storage units in the detection range to obtain the fault information; And displaying the states and the positions of all the storage units in a graphical interface representing all the storage units according to the fault information. In some embodiments, the performing fault detection on the storage units in the detection range to obtain the fault information includes: acquiring the electrical data of each storage unit in the detection range, and identifying a fault storage unit according to the electrical data of each storage unit and a numerical inter