CN103955416A - Hard disk management method, device and system - Google Patents
Hard disk management method, device and system Download PDFInfo
- Publication number
- CN103955416A CN103955416A CN201410124458.8A CN201410124458A CN103955416A CN 103955416 A CN103955416 A CN 103955416A CN 201410124458 A CN201410124458 A CN 201410124458A CN 103955416 A CN103955416 A CN 103955416A
- Authority
- CN
- China
- Prior art keywords
- hard disk
- mobile terminal
- protocol data
- nfc
- nfc chip
- 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
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本发明实施例公开了一种硬盘管理方法,包括:获取硬盘的故障信息;若检测到移动终端发出的近场通信请求,将所述故障信息转换成NFC协议数据写入NFC芯片;通过所述NFC芯片将所述NFC协议数据发送至所述移动终端。本发明实施例还公开了一种硬盘管理装置和系统。采用本发明,可以提高硬盘管理设备的便携性和降低硬件成本。
The embodiment of the present invention discloses a hard disk management method, including: obtaining the fault information of the hard disk; if a near field communication request sent by the mobile terminal is detected, converting the fault information into NFC protocol data and writing it into the NFC chip; through the The NFC chip sends the NFC protocol data to the mobile terminal. The embodiment of the invention also discloses a hard disk management device and system. By adopting the invention, the portability of the hard disk management device can be improved and the hardware cost can be reduced.
Description
技术领域technical field
本发明涉及硬盘维护领域,尤其涉及一种硬盘管理方法、装置和系统。The invention relates to the field of hard disk maintenance, in particular to a hard disk management method, device and system.
背景技术Background technique
随着数据存储需求的增加,服务器中使用越来越多的硬盘,维护人员需要对硬盘进行维护以确保服务器的正常运转。硬盘管理目前较复杂,需要通过硬盘自身安装软件查询故障信息后,再由维护人员采用笔记本电脑对接硬盘查询后获得硬盘的故障信息。具体的方法如下:With the increase of data storage requirements, more and more hard disks are used in the server, and maintenance personnel need to maintain the hard disks to ensure the normal operation of the server. The management of the hard disk is currently complicated. It is necessary to check the fault information through the installation software of the hard disk itself, and then the maintenance personnel use the notebook computer to connect the hard disk to query and obtain the fault information of the hard disk. The specific method is as follows:
1、通过硬盘自身安装管理维护软件获取故障信息后上传到系统控制软件侧,维护人员通过电脑上安装的控制软件来完成大量硬盘在设备中的管理。1. Obtain the fault information through the management and maintenance software installed on the hard disk itself and upload it to the system control software side. The maintenance personnel complete the management of a large number of hard disks in the device through the control software installed on the computer.
2、单盘的信息查询和管理通过电脑对接便携式硬盘管理设备进行查询和管理,每个维护人员身上必备两样设备,电脑和便携式硬盘管理设备。2. The information query and management of a single disk can be queried and managed through a computer connected to a portable hard disk management device. Each maintenance personnel must have two devices, a computer and a portable hard disk management device.
申请人发现,现有技术的硬盘管理方法存在以下不足:The applicant found that the hard disk management method in the prior art has the following deficiencies:
多盘和单盘的信息查询和管理通过电脑对接便携式硬盘管理设备进行查询和管理,每个维护人员身上必备电脑和便携式硬盘管理设备,体积庞大,不便于携带,同时成本高。Multi-disk and single-disk information query and management are performed through a computer connected to a portable hard disk management device. Every maintenance personnel must have a computer and a portable hard disk management device, which are bulky, inconvenient to carry, and costly.
发明内容Contents of the invention
本发明实施例所要解决的技术问题在于,提供一种硬盘管理方法、装置和系统。可解决现有技术中硬盘管理设备不便于携带和成本高的不足。The technical problem to be solved by the embodiments of the present invention is to provide a hard disk management method, device and system. The invention can solve the disadvantages of inconvenient portability and high cost of hard disk management equipment in the prior art.
为了解决上述技术问题,本发明实施例第一方面提供了一种硬盘管理方法,包括:In order to solve the above technical problems, the first aspect of the embodiment of the present invention provides a hard disk management method, including:
获取硬盘的故障信息;Obtain the fault information of the hard disk;
若检测到移动终端发出的近场通信请求,将所述故障信息转换成NFC协议数据写入NFC芯片;If the near-field communication request sent by the mobile terminal is detected, the fault information is converted into NFC protocol data and written into the NFC chip;
通过所述NFC芯片将所述NFC协议数据发送至所述移动终端。sending the NFC protocol data to the mobile terminal through the NFC chip.
结合第一方面,在第一种可能的实现方式中,所述获取硬盘的故障信息的步骤包括:With reference to the first aspect, in a first possible implementation, the step of obtaining the fault information of the hard disk includes:
通过所述硬盘自带的互联网小型计算机系统接口iSCSI获取所述硬盘存储在固件中的故障信息。The fault information stored in the firmware of the hard disk is obtained through the Internet Small Computer System Interface iSCSI provided by the hard disk.
结合第一方面或第一种可能的实现方式,在第二种可能的实现方式中,所述通过NFC芯片将所述NFC协议数据发送至所述移动终端的步骤包括:With reference to the first aspect or the first possible implementation, in a second possible implementation, the step of sending the NFC protocol data to the mobile terminal through the NFC chip includes:
读取预先存储在所述NFC芯片中的所述硬盘的属性信息,并将所述属性信息加载到所述NFC协议数据中;Read attribute information of the hard disk pre-stored in the NFC chip, and load the attribute information into the NFC protocol data;
通过所述NFC芯片将所述NFC协议数据发送至所述移动终端。sending the NFC protocol data to the mobile terminal through the NFC chip.
结合第一方面的第二种可能的实现方式,在第三种可能的实现方式中,所述若检测到移动终端的近场通信请求,将所述故障信息转换成NFC协议数据写入NFC芯片的步骤之后,还包括:In combination with the second possible implementation of the first aspect, in the third possible implementation, if the near field communication request of the mobile terminal is detected, the fault information is converted into NFC protocol data and written into the NFC chip After the steps, also include:
验证所述移动终端合法性,在验证所述移动终端合法后,与所述移动终端建立安全的通信连接。Verifying the legitimacy of the mobile terminal, and establishing a secure communication connection with the mobile terminal after verifying the legitimacy of the mobile terminal.
结合第一方面的第三种可能的实现方式,在第四种可能的实现方式中,还包括:In combination with the third possible implementation of the first aspect, the fourth possible implementation also includes:
在验证所述移动终端合法后,若在预设时长内再次检测到所述移动终端的近场通信请求,直接与所述移动终端建立安全的通信连接。After the legality of the mobile terminal is verified, if the near field communication request of the mobile terminal is detected again within a preset time period, a secure communication connection is directly established with the mobile terminal.
结合第一方面至第四种可能的实现方式中的任一种,在第五种可能的实现方式中,所述故障信息包括故障信息代码,其中,所述故障信息代码与所述硬盘的故障原因为一一对应关系。With reference to any one of the first aspect to the fourth possible implementation manner, in a fifth possible implementation manner, the failure information includes a failure information code, where the failure information code is related to the hard disk failure The reason is a one-to-one correspondence.
本发明实施例第二方面提供了一种硬盘管理装置,包括:The second aspect of the embodiment of the present invention provides a hard disk management device, including:
获取模块,用于获取硬盘的故障信息;An acquisition module, configured to acquire fault information of the hard disk;
转换模块,用于若检测到移动终端发出的近场通信请求,将所述故障信息转换成NFC协议数据写入NFC芯片;The conversion module is used to convert the fault information into NFC protocol data and write it into the NFC chip if the near field communication request sent by the mobile terminal is detected;
发送模块,用于通过所述NFC芯片将所述NFC协议数据发送至所述移动终端。A sending module, configured to send the NFC protocol data to the mobile terminal through the NFC chip.
结合第二方面,在第一种可能的实现方式中,所述获取模块用于通过所述硬盘自带的互联网小型计算机系统接口iSCSI获取所述硬盘存储在固件中的故障信息。With reference to the second aspect, in a first possible implementation manner, the obtaining module is configured to obtain the fault information stored in the firmware of the hard disk through an Internet Small Computer System Interface (iSCSI) of the hard disk.
结合第二方面或第一种可能的实现方式,在第二种可能的实现方式中,所述发送模块包括:With reference to the second aspect or the first possible implementation manner, in the second possible implementation manner, the sending module includes:
加载单元,用于读取预先存储在所述NFC芯片中的所述硬盘的属性信息,并将所述属性信息加载到所述NFC协议数据中;a loading unit, configured to read attribute information of the hard disk pre-stored in the NFC chip, and load the attribute information into the NFC protocol data;
发送单元,用于通过所述NFC芯片将所述NFC协议数据发送至所述移动终端。A sending unit, configured to send the NFC protocol data to the mobile terminal through the NFC chip.
结合第二方面的第二种可能的实现方式,在第三种可能的实现方式中,还包括:In combination with the second possible implementation of the second aspect, the third possible implementation also includes:
验证模块,用于验证所述移动终端合法性,在验证所述移动终端合法后,与所述移动终端建立安全的通信连接。The verification module is used to verify the legitimacy of the mobile terminal, and establish a secure communication connection with the mobile terminal after verifying the legitimacy of the mobile terminal.
结合第二方面的第三种可能的实现方式,在第四种可能的实现方式中,还包括:In combination with the third possible implementation of the second aspect, the fourth possible implementation also includes:
连接模块,用于在验证所述移动终端合法后,若在预设时长内再次检测到所述移动终端的近场通信请求,直接与所述移动终端建立安全的通信连接。The connection module is configured to directly establish a secure communication connection with the mobile terminal if the near-field communication request of the mobile terminal is detected again within a preset period of time after verifying that the mobile terminal is legal.
结合第二方面至第四种可能的实现方式中的任一种,在第五种可能的实现方式中,所述故障信息包括故障信息代码,其中,所述故障信息代码与所述硬盘的故障原因为一一对应关系。With reference to any one of the second aspect to the fourth possible implementation manner, in a fifth possible implementation manner, the failure information includes a failure information code, where the failure information code is related to the hard disk failure The reason is a one-to-one correspondence.
本发明第三方面提供了一种硬盘管理系统,包括移动终端、硬盘、NFC芯片和上述任意一种硬盘管理装置。The third aspect of the present invention provides a hard disk management system, including a mobile terminal, a hard disk, an NFC chip, and any one of the above hard disk management devices.
实施本发明实施例,具有如下有益效果:Implementing the embodiment of the present invention has the following beneficial effects:
通过获取硬盘的故障信息,在接收到移动终端的近场通信请求时,将故障信息转换为NFC协议数据写入NFC芯片,并通过NFC芯片传输故障信息至移动终端,这样,硬盘的管理者使用移动终端便可查询和维护硬盘,避免使用传统的笨重的硬盘维护设备,提高了硬盘维护的效率和降低了硬件成本。By obtaining the fault information of the hard disk, when receiving the near-field communication request of the mobile terminal, the fault information is converted into NFC protocol data and written into the NFC chip, and the fault information is transmitted to the mobile terminal through the NFC chip. In this way, the administrator of the hard disk can use The mobile terminal can query and maintain the hard disk, avoiding the use of traditional heavy hard disk maintenance equipment, improving the efficiency of hard disk maintenance and reducing hardware costs.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本发明第一实施例的一种硬盘管理方法的流程示意图;Fig. 1 is a schematic flow chart of a hard disk management method according to the first embodiment of the present invention;
图2是本发明第二实施例的一种硬盘管理方法的流程示意图;2 is a schematic flowchart of a hard disk management method according to a second embodiment of the present invention;
图3是本发明第一实施例的一种硬盘管理装置的结构示意图;3 is a schematic structural diagram of a hard disk management device according to the first embodiment of the present invention;
图4是本发明第二实施例的一种硬盘管理装置的结构示意图;4 is a schematic structural diagram of a hard disk management device according to a second embodiment of the present invention;
图5是图4中发送模块的结构示意图;Fig. 5 is a schematic structural diagram of the sending module in Fig. 4;
图6是本发明第三实施例的一种硬盘管理装置的结构示意图;6 is a schematic structural diagram of a hard disk management device according to a third embodiment of the present invention;
图7是本发明实施例的一种硬盘管理系统的结构示意图。FIG. 7 is a schematic structural diagram of a hard disk management system according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
参见图1,为本发明第一实施例的一种硬盘管理方法的流程示意图,在本发明实施例中,所述方法包括:Referring to FIG. 1 , it is a schematic flowchart of a hard disk management method according to the first embodiment of the present invention. In the embodiment of the present invention, the method includes:
S101、获取硬盘的故障信息。S101. Obtain fault information of the hard disk.
具体的,硬盘发生故障时,硬盘固件中的检测程序检故障原因生成故障信息存储在固件中,故障信息可以是字符形式,也可以是数字形式。硬盘管理装置读取保存在固件中的故障信息,并将故障信息保存至本地的存储器中。Specifically, when the hard disk fails, the detection program in the firmware of the hard disk detects the cause of the failure and generates fault information, which is stored in the firmware. The fault information can be in the form of characters or numbers. The hard disk management device reads the fault information stored in the firmware, and saves the fault information into a local memory.
S102、若检测到移动终端的近场通信请求,将故障信息转换成NFC(NearFiled Communication,近场通信)协议数据写入NFC芯片。S102. If the near field communication request of the mobile terminal is detected, convert the fault information into NFC (Near Filed Communication, near field communication) protocol data and write it into the NFC chip.
具体的,移动终端为支持NFC近场通信协议的终端设备,移动终端靠近与硬盘管理装置的连接的NFC芯片时,向硬盘管理装置发出近场通信请求,硬盘管理装置接收到该近场通信请求时,将本地存储的故障信息转换成NFC协议的数据并将该数据写入NFC芯片。Specifically, the mobile terminal is a terminal device that supports the NFC near-field communication protocol. When the mobile terminal is close to the NFC chip connected to the hard disk management device, it sends a near-field communication request to the hard disk management device, and the hard disk management device receives the near-field communication request. , convert the locally stored fault information into NFC protocol data and write the data into the NFC chip.
S103、通过NFC芯片将NFC协议数据发送至移动终端。S103. Send the NFC protocol data to the mobile terminal through the NFC chip.
具体的,硬盘管理装置通过NFC芯片以射频信号的形式向移动终端传输NFC协议数据。Specifically, the hard disk management device transmits NFC protocol data to the mobile terminal in the form of radio frequency signals through the NFC chip.
可以理解的是,本发明中的移动终端可以为支撑NFC功能的智能手机、平板电脑、个人数字助理或多媒体影音播放器等设备,本发明不作限制。It can be understood that the mobile terminal in the present invention may be a smart phone, a tablet computer, a personal digital assistant, or a multimedia audio-visual player supporting an NFC function, and the present invention is not limited thereto.
实施本发明的实施例,通过获取硬盘的故障信息,在接收到移动终端的近场通信请求时,将故障信息转换为NFC协议数据写入NFC芯片,并通过NFC芯片传输故障信息至移动终端,这样,硬盘的管理者使用移动终端便可查询和维护硬盘,避免使用传统的笨重的硬盘维护设备,提高了硬盘维护的效率和降低了硬件成本。Implement the embodiment of the present invention, by obtaining the fault information of the hard disk, when receiving the near field communication request of the mobile terminal, convert the fault information into NFC protocol data and write it into the NFC chip, and transmit the fault information to the mobile terminal through the NFC chip, In this way, the administrator of the hard disk can query and maintain the hard disk using the mobile terminal, avoiding the use of traditional heavy hard disk maintenance equipment, improving the efficiency of hard disk maintenance and reducing hardware costs.
参见图2,为本发明第二实施例的一种硬盘管理方法的流程示意图,在本实施例中,所述方法包括:Referring to FIG. 2, it is a schematic flowchart of a hard disk management method according to the second embodiment of the present invention. In this embodiment, the method includes:
S201、通过硬盘自带的iSCSI(internet Small Computer System Interface,互联网小型计算机系统接口,简称iSCSI)获取硬盘存储在固件中的故障信息。S201. Obtain the fault information stored in the firmware of the hard disk through the iSCSI (internet Small Computer System Interface, iSCSI for short) that comes with the hard disk.
具体的,硬盘发生故障时,硬盘固件中的检测程序检故障原因生成故障信息存储在固件中,故障信息可以是字符形式,也可以是数字形式。例如,字符Date error表示硬盘数据错误,字符Hard disk configuration error表示硬盘配置不正确,字符Hard disk controller failure表示硬盘控制器失效;数字1700表示硬盘1703表示硬盘驱动器选择失败,数字1704表示硬盘控制器失效,数字1709表示硬盘ECC检验错误,数字与故障原因为一一对应关系。Specifically, when the hard disk fails, the detection program in the firmware of the hard disk detects the cause of the failure and generates fault information, which is stored in the firmware. The fault information can be in the form of characters or numbers. For example, the character Date error means hard disk data error, the character Hard disk configuration error means hard disk configuration is incorrect, the character Hard disk controller failure means hard disk controller failure; the number 1700 means hard disk 1703 means hard disk drive selection failure, and the number 1704 means hard disk controller failure , the number 1709 means the ECC check error of the hard disk, and the number and the cause of the failure have a one-to-one correspondence.
硬盘管理装置通过硬盘的iSCSI与其连接,硬盘管理装置通过iSCSI读取保存在固件中的故障信息,并将故障信息保存至本地的存储器中。由于iSCSI为硬盘的一个标准接口,硬盘管理装置通过该接口读取硬盘固件的故障信息无需改动硬盘的结构,便于对现有的硬盘进行硬件升级。The hard disk management device is connected to it through the iSCSI of the hard disk, and the hard disk management device reads the fault information stored in the firmware through the iSCSI, and saves the fault information to a local memory. Since iSCSI is a standard interface of the hard disk, the hard disk management device reads the fault information of the hard disk firmware through this interface without changing the structure of the hard disk, which is convenient for hardware upgrade of the existing hard disk.
S202、若检测到移动终端发出的近场通信请求,将故障信息转换成NFC协议数据写入NFC芯片。S202. If a near field communication request sent by the mobile terminal is detected, convert the fault information into NFC protocol data and write it into the NFC chip.
具体的,移动终端为支持NFC近场通信协议的终端设备,移动终端靠近与硬盘关键装置的连接的NFC芯片时,向硬盘管理装置发出近场通信请求,硬盘管理装置接收到该近场通信请求时,将本地存储的故障信息转换成NFC协议的数据并将该数据写入NFC芯片。Specifically, the mobile terminal is a terminal device that supports the NFC near-field communication protocol. When the mobile terminal is close to the NFC chip connected to the hard disk key device, it sends a near-field communication request to the hard disk management device, and the hard disk management device receives the near-field communication request. , convert the locally stored fault information into NFC protocol data and write the data into the NFC chip.
S203、验证移动终端的合法性。S203. Verify the legitimacy of the mobile terminal.
具体的,硬盘管理装置验证移动终端的合法性,若为合法,执行S204,否则结束流程。硬盘管理装置验证移动终端合法的方法可采用密钥验证或输入密钥验证等方法,本发明不作限制。Specifically, the hard disk management device verifies the legitimacy of the mobile terminal, and if it is legal, execute S204; otherwise, end the process. The method for the hard disk management device to verify the legality of the mobile terminal can use methods such as key verification or input key verification, which are not limited by the present invention.
优选的,在本发明的一些实施例中,硬盘管理装置在验证所述移动终端合法后,若在预设时长内再次检测到所述移动终端的近场通信请求,直接与所述移动终端建立安全的通信连接。例如,预设时长为3分钟,硬盘管理装置在验证移动终端合法后,若在预设时长内再次检测到移动终端发出的近场通信请求,不需要再对移动终端进程验证合法性的步骤,直接与移动终端建立安全的通信连接。若上次验证合法成功到本次发起近场通信请求的时间间隔大于预设时长,硬盘管理装置安装正常流程验证移动终端的合法性。Preferably, in some embodiments of the present invention, after the hard disk management device verifies that the mobile terminal is legal, if it detects the near field communication request of the mobile terminal again within a preset period of time, it will directly establish a communication with the mobile terminal. Secure communication connection. For example, the preset duration is 3 minutes. After the hard disk management device verifies that the mobile terminal is legal, if it detects the near-field communication request sent by the mobile terminal again within the preset duration, it does not need to verify the legitimacy of the mobile terminal process. Establish a secure communication connection directly with the mobile terminal. If the time interval between the last valid verification and the initiation of the near field communication request is greater than the preset time, the hard disk management device is installed in a normal process to verify the legitimacy of the mobile terminal.
S204、与移动终端建立安全的通信连接。S204. Establish a secure communication connection with the mobile terminal.
具体的,硬盘管理装置通过NFC芯片与移动终端建立安全的通信连接,硬盘管理装置和移动终端之间交互的数据通过特定的加密算法进行加密再传送到对方设备上,防止敏感信息泄露。Specifically, the hard disk management device establishes a secure communication connection with the mobile terminal through the NFC chip, and the data exchanged between the hard disk management device and the mobile terminal is encrypted by a specific encryption algorithm and then transmitted to the other device to prevent leakage of sensitive information.
S205、读取预先存储在NFC芯片中的硬盘的属性信息,并将所述属性信息加载到NFC协议数据中。S205. Read the attribute information of the hard disk pre-stored in the NFC chip, and load the attribute information into the NFC protocol data.
具体的,NFC芯片中预先存储有硬盘的属性信息,例如序列号、制造信息、容量、制造商和型号等。在本发明的一些实施例中,硬盘管理装置可以对多个硬盘进行管理,NFC芯片中存储有多组硬盘的属性信息。硬盘管理装置将硬盘的属性信息加载到NFC协议数据中,此时NFC协议数据中包括硬盘的属性信息和故障信息。Specifically, attribute information of the hard disk is pre-stored in the NFC chip, such as serial number, manufacturing information, capacity, manufacturer and model, and the like. In some embodiments of the present invention, the hard disk management device can manage multiple hard disks, and the NFC chip stores attribute information of multiple groups of hard disks. The hard disk management device loads the attribute information of the hard disk into the NFC protocol data. At this time, the NFC protocol data includes the attribute information and fault information of the hard disk.
S206、通过NFC芯片将NFC协议数据发送至移动终端。S206. Send the NFC protocol data to the mobile terminal through the NFC chip.
具体的,硬盘管理装置通过NFC芯片以射频信号的形式向移动终端传输NFC协议数据。Specifically, the hard disk management device transmits NFC protocol data to the mobile terminal in the form of radio frequency signals through the NFC chip.
实施本发明的实施例,通过获取硬盘的故障信息,在接收到移动终端的近场通信请求时,将故障信息转换为NFC协议数据写入NFC芯片,并通过NFC芯片传输故障信息至移动终端,这样,硬盘的管理者使用移动终端便可查询和维护硬盘,避免使用传统的笨重的硬盘维护设备,提高了硬盘维护的效率和降低了硬件成本。Implement the embodiment of the present invention, by obtaining the fault information of the hard disk, when receiving the near field communication request of the mobile terminal, convert the fault information into NFC protocol data and write it into the NFC chip, and transmit the fault information to the mobile terminal through the NFC chip, In this way, the administrator of the hard disk can query and maintain the hard disk using the mobile terminal, avoiding the use of traditional heavy hard disk maintenance equipment, improving the efficiency of hard disk maintenance and reducing hardware costs.
参见图3,为本发明实施例的一种硬盘管理装置的结构示意图,在本实施例中,所述硬盘管理装置包括获取模块10、转换模块11和发送模块12。Referring to FIG. 3 , it is a schematic structural diagram of a hard disk management device according to an embodiment of the present invention. In this embodiment, the hard disk management device includes an acquisition module 10 , a conversion module 11 and a sending module 12 .
获取模块10,用于获取硬盘的故障信息。The acquiring module 10 is configured to acquire the fault information of the hard disk.
具体的,硬盘发生故障时,硬盘固件中的检测程序检故障原因生成故障信息存储在固件中,故障信息可以是字符形式,也可以是数字形式。获取模块10读取保存在固件中的故障信息,并将故障信息保存至本地的存储器中。Specifically, when the hard disk fails, the detection program in the firmware of the hard disk detects the cause of the failure and generates fault information, which is stored in the firmware. The fault information can be in the form of characters or numbers. The acquisition module 10 reads the fault information stored in the firmware, and saves the fault information to a local memory.
优选的,获取模块10通过硬盘自带的iSCSI(internet Small Computer SystemInterface,互联网小型计算机系统接口,简称iSCSI)获取硬盘存储在固件中的故障信息。由于iSCSI为硬盘的一个标准接口,硬盘管理装置通过该接口读取硬盘固件的故障信息无需改动硬盘的结构,便于对现有的硬盘进行硬件升级。Preferably, the acquiring module 10 acquires the fault information stored in the firmware of the hard disk through iSCSI (internet Small Computer System Interface, iSCSI for short) that comes with the hard disk. Since iSCSI is a standard interface of the hard disk, the hard disk management device reads the fault information of the hard disk firmware through this interface without changing the structure of the hard disk, which is convenient for hardware upgrade of the existing hard disk.
转换模块11,用于若检测到移动终端发出的近场通信请求,将所述故障信息转换成NFC协议数据写入NFC芯片。The conversion module 11 is configured to convert the fault information into NFC protocol data and write it into the NFC chip if a near field communication request sent by the mobile terminal is detected.
具体的,移动终端为支持NFC近场通信协议的终端设备,移动终端靠近与硬盘管理装置的连接的NFC芯片时,向硬盘管理装置发出近场通信请求,转换模块11接收到该近场通信请求时,将本地存储的故障信息转换成NFC协议的数据并将该数据写入NFC芯片。Specifically, the mobile terminal is a terminal device supporting the NFC near-field communication protocol. When the mobile terminal is close to the NFC chip connected to the hard disk management device, it sends a near-field communication request to the hard disk management device, and the conversion module 11 receives the near-field communication request. , convert the locally stored fault information into NFC protocol data and write the data into the NFC chip.
发送模块12,用于通过NFC芯片将所述NFC协议数据发送至所述移动终端。The sending module 12 is configured to send the NFC protocol data to the mobile terminal through the NFC chip.
具体的,发送模块12通过NFC芯片以射频信号的形式向移动终端传输NFC协议数据。Specifically, the sending module 12 transmits NFC protocol data to the mobile terminal in the form of radio frequency signals through the NFC chip.
实施本发明的实施例,通过获取硬盘的故障信息,在接收到移动终端的近场通信请求时,将故障信息转换为NFC协议数据写入NFC芯片,并通过NFC芯片传输故障信息至移动终端,这样,硬盘的管理者使用移动终端便可查询和维护硬盘,避免使用传统的笨重的硬盘维护设备,提高了硬盘维护的效率和降低了硬件成本。Implement the embodiment of the present invention, by obtaining the fault information of the hard disk, when receiving the near field communication request of the mobile terminal, convert the fault information into NFC protocol data and write it into the NFC chip, and transmit the fault information to the mobile terminal through the NFC chip, In this way, the administrator of the hard disk can query and maintain the hard disk using the mobile terminal, avoiding the use of traditional heavy hard disk maintenance equipment, improving the efficiency of hard disk maintenance and reducing hardware costs.
参见图3和图4,为本发明第二实施例的一种硬盘管理装置的结构示意图,在本发明实施中,所述硬盘管理装置除包括上述的获取模块10、转换模块11和发送模块12之外,还包括验证模块13和连接模块14。Referring to FIG. 3 and FIG. 4, it is a schematic structural diagram of a hard disk management device according to the second embodiment of the present invention. In the implementation of the present invention, the hard disk management device includes the above-mentioned acquiring module 10, converting module 11 and sending module 12 In addition, a verification module 13 and a connection module 14 are also included.
验证模块13,用于验证所述移动终端合法性,在验证所述移动终端合法后,与所述移动终端建立安全的通信连接。The verification module 13 is configured to verify the legitimacy of the mobile terminal, and establish a secure communication connection with the mobile terminal after verifying the legitimacy of the mobile terminal.
连接模块14,用于在验证所述移动终端合法后,若在预设时长内再次检测到所述移动终端的近场通信请求,直接与所述移动终端建立安全的通信连接。The connection module 14 is configured to directly establish a secure communication connection with the mobile terminal if the near field communication request of the mobile terminal is detected again within a preset period of time after verifying that the mobile terminal is legal.
可选的,发送模块12包括:Optionally, the sending module 12 includes:
加载单元121,用于读取预先存储在所述NFC芯片中的所述硬盘的属性信息,并将所述属性信息加载到所述NFC协议数据中;A loading unit 121, configured to read attribute information of the hard disk pre-stored in the NFC chip, and load the attribute information into the NFC protocol data;
发送单元122,用于通过所述NFC芯片将所述NFC协议数据发送至所述移动终端。A sending unit 122, configured to send the NFC protocol data to the mobile terminal through the NFC chip.
本发明实施例和方法实施例二基于同一构思,其带来的技术效果也相同,具体过程请参照方法实施例二的描述,此处不再赘述。The embodiment of the present invention and the second method embodiment are based on the same idea, and the technical effects brought about by them are also the same. For the specific process, please refer to the description of the second method embodiment, which will not be repeated here.
参见图6,为本发明第三实施例的一种硬盘管理装置的结构示意图,在本实施中,硬盘管理装置1包括处理器61、存储器62和通信接口63,通信接口61分别连接硬盘和NFC芯片,硬盘管理装置1中的处理器61的数量可以是一个或多个,图6以一个处理器为例。本发明的一些实施例中,处理器61、存储器62和通信接口63可通过总线或其他方式连接,图6中以总线连接为例。Referring to FIG. 6 , it is a schematic structural diagram of a hard disk management device according to the third embodiment of the present invention. In this implementation, the hard disk management device 1 includes a processor 61, a memory 62 and a communication interface 63, and the communication interface 61 is respectively connected to the hard disk and the NFC Chip, the number of processors 61 in the hard disk management device 1 may be one or more, and one processor is taken as an example in FIG. 6 . In some embodiments of the present invention, the processor 61 , the memory 62 and the communication interface 63 may be connected through a bus or in other ways, and the bus connection is taken as an example in FIG. 6 .
其中,存储器62中存储一组程序代码,且处理器61用于调用存储器62中存储的程序代码,用于执行以下操作:Wherein, a set of program codes are stored in the memory 62, and the processor 61 is used to call the program codes stored in the memory 62 to perform the following operations:
获取硬盘的故障信息;Obtain the fault information of the hard disk;
若检测到移动终端发出的近场通信请求,将所述故障信息转换成NFC协议数据写入NFC芯片;If the near-field communication request sent by the mobile terminal is detected, the fault information is converted into NFC protocol data and written into the NFC chip;
通过NFC芯片将所述NFC协议数据发送至所述移动终端。Send the NFC protocol data to the mobile terminal through the NFC chip.
在本发明的一些实施例中,处理器61执行所述获取硬盘的故障信息的步骤包括:In some embodiments of the present invention, the processor 61 executing the step of obtaining the fault information of the hard disk includes:
通过所述硬盘自带的互联网小型计算机系统接口iSCSI获取所述硬盘存储在固件中的故障信息。The fault information stored in the firmware of the hard disk is obtained through the Internet Small Computer System Interface iSCSI provided by the hard disk.
在本发明的一些实施例中,处理器执行所述通过NFC芯片将所述NFC协议数据发送至所述移动终端的步骤包括:In some embodiments of the present invention, the processor performing the step of sending the NFC protocol data to the mobile terminal through the NFC chip includes:
读取预先存储在所述NFC芯片中的所述硬盘的属性信息,并将所述属性信息加载到所述NFC协议数据中;Read attribute information of the hard disk pre-stored in the NFC chip, and load the attribute information into the NFC protocol data;
通过所述NFC芯片将所述NFC协议数据发送至所述移动终端。sending the NFC protocol data to the mobile terminal through the NFC chip.
在本发明的一些实施例中,处理器61还用于执行:In some embodiments of the present invention, the processor 61 is also used to execute:
验证所述移动终端合法性,在验证所述移动终端合法后,与所述移动终端建立安全的通信连接。Verifying the legitimacy of the mobile terminal, and establishing a secure communication connection with the mobile terminal after verifying the legitimacy of the mobile terminal.
在本发明的一些实施例中,处理器61还用执行:In some embodiments of the present invention, the processor 61 is also used to perform:
在验证所述移动终端合法后,若在预设时长内再次检测到所述移动终端的近场通信请求,直接与所述移动终端建立安全的通信连接。After the legality of the mobile terminal is verified, if the near field communication request of the mobile terminal is detected again within a preset time period, a secure communication connection is directly established with the mobile terminal.
实施本发明的实施例,通过获取硬盘的故障信息,在接收到移动终端的近场通信请求时,将故障信息转换为NFC协议数据写入NFC芯片,并通过NFC芯片传输故障信息至移动终端,这样,硬盘的管理者使用移动终端便可查询和维护硬盘,避免使用传统的笨重的硬盘维护设备,提高了硬盘维护的效率和降低了硬件成本。Implement the embodiment of the present invention, by obtaining the fault information of the hard disk, when receiving the near field communication request of the mobile terminal, convert the fault information into NFC protocol data and write it into the NFC chip, and transmit the fault information to the mobile terminal through the NFC chip, In this way, the administrator of the hard disk can query and maintain the hard disk using the mobile terminal, avoiding the use of traditional heavy hard disk maintenance equipment, improving the efficiency of hard disk maintenance and reducing hardware costs.
参见图7,为本发明实施例的一种硬盘管理系统的结构示意图,在本实施例中,所述硬盘管理系统包括:移动终端2、NFC芯片3、硬盘管理装置1和硬盘4,NFC芯片3通过硬盘管理装置1与硬盘4连接,优选的,硬盘管理装置通过硬盘自带的iSCSI与硬盘连接,硬盘管理装置1获取硬盘4的固件中存储的故障信息,故障信息可以是字符形式,也可以是数字形式。例如,字符Date error表示硬盘数据错误,字符Hard disk configuration error表示硬盘配置不正确,字符Hard disk controller failure表示硬盘控制器失效;数字1700表示硬盘1703表示硬盘驱动器选择失败,数字1704表示硬盘控制器失效,数字1709表示硬盘ECC检验错误,数字与故障原因为一一对应关系。Referring to FIG. 7 , it is a schematic structural diagram of a hard disk management system according to an embodiment of the present invention. In this embodiment, the hard disk management system includes: a mobile terminal 2, an NFC chip 3, a hard disk management device 1 and a hard disk 4, and the NFC chip 3. The hard disk management device 1 is connected to the hard disk 4. Preferably, the hard disk management device is connected to the hard disk through iSCSI provided by the hard disk. The hard disk management device 1 obtains the fault information stored in the firmware of the hard disk 4. The fault information can be in character form or Can be in numeric form. For example, the character Date error means hard disk data error, the character Hard disk configuration error means hard disk configuration is incorrect, the character Hard disk controller failure means hard disk controller failure; the number 1700 means hard disk 1703 means hard disk drive selection failure, and the number 1704 means hard disk controller failure , the number 1709 means the ECC check error of the hard disk, and the number and the cause of the failure have a one-to-one correspondence.
移动终端2靠近NFC芯片2时,向硬盘管理装置1发出近场通信请求,硬盘管理装置1验证移动终端的合法性,若验证合法后,与移动终端建立安全的通信连接,同时,硬盘管理装置将故障信息转换成NFC协议数据,并通过NFC芯片3将NFC协议数据发送至移动终端2,移动终端2接收到NFC协议数据中,从NFC协议数据中解析出硬盘的故障信息,如果硬盘的故障信息为字符形式,直接在移动终端上显示该字符,如果故障信息为数字形式,查询本地数据库对应的故障原因,并将查询到故障原因显示在移动终端上,同时移动终端根据解析得到的数字代码在显示屏上显示一个维护链接,该维护连接指向维护数据库中故障信息对应的解决方案文档,维护者可以访问该维护链接获取硬盘当前故障信息的解决文档。When the mobile terminal 2 is close to the NFC chip 2, it sends a near-field communication request to the hard disk management device 1, and the hard disk management device 1 verifies the legitimacy of the mobile terminal. If the verification is legal, it establishes a secure communication connection with the mobile terminal. Convert the fault information into NFC protocol data, and send the NFC protocol data to the mobile terminal 2 through the NFC chip 3, and the mobile terminal 2 receives the NFC protocol data, and parses the fault information of the hard disk from the NFC protocol data. The information is in the form of characters, and the characters are directly displayed on the mobile terminal. If the fault information is in digital form, the local database is queried for the corresponding fault cause, and the queried fault cause is displayed on the mobile terminal. A maintenance link is displayed on the display screen, the maintenance link points to the solution document corresponding to the fault information in the maintenance database, and the maintainer can access the maintenance link to obtain the solution document of the current fault information of the hard disk.
可以理解的是,在本发明实施例中,NFC芯片和硬盘管理装置均可以集成到硬盘中,与硬盘作为一个整体,也可以为单独的部件安装到硬盘上,本发明不作限制。It can be understood that, in the embodiment of the present invention, both the NFC chip and the hard disk management device can be integrated into the hard disk as a whole, or can be installed on the hard disk as separate components, which is not limited in the present invention.
实施本发明的实施例,通过获取硬盘的故障信息,在接收到移动终端的近场通信请求时,将故障信息转换为NFC协议数据写入NFC芯片,并通过NFC芯片传输故障信息至移动终端,这样,硬盘的管理者使用移动终端便可查询和维护硬盘,避免使用传统的笨重的硬盘维护设备,提高了硬盘维护的效率和降低了硬件成本。Implement the embodiment of the present invention, by obtaining the fault information of the hard disk, when receiving the near field communication request of the mobile terminal, convert the fault information into NFC protocol data and write it into the NFC chip, and transmit the fault information to the mobile terminal through the NFC chip, In this way, the administrator of the hard disk can query and maintain the hard disk using the mobile terminal, avoiding the use of traditional heavy hard disk maintenance equipment, improving the efficiency of hard disk maintenance and reducing hardware costs.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。What is disclosed above is only a preferred embodiment of the present invention, and of course it cannot limit the scope of rights of the present invention. Those of ordinary skill in the art can understand all or part of the process for realizing the above embodiments, and according to the rights of the present invention The equivalent changes required still belong to the scope covered by the invention.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410124458.8A CN103955416A (en) | 2014-03-29 | 2014-03-29 | Hard disk management method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410124458.8A CN103955416A (en) | 2014-03-29 | 2014-03-29 | Hard disk management method, device and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103955416A true CN103955416A (en) | 2014-07-30 |
Family
ID=51332691
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410124458.8A Pending CN103955416A (en) | 2014-03-29 | 2014-03-29 | Hard disk management method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103955416A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107239868A (en) * | 2016-03-28 | 2017-10-10 | 青岛海尔智能技术研发有限公司 | End message processing method and processing device for security cruising inspection system |
CN107612594A (en) * | 2017-10-23 | 2018-01-19 | 郑州云海信息技术有限公司 | A kind of near-field communication design method of service-oriented device information |
CN108011972A (en) * | 2017-12-21 | 2018-05-08 | 联想(北京)有限公司 | Data processing method and system |
CN112306765A (en) * | 2019-07-30 | 2021-02-02 | 北京达佳互联信息技术有限公司 | Portable device, method, apparatus and storage medium for detecting hard disk failure |
CN113743558A (en) * | 2021-08-11 | 2021-12-03 | 镕铭微电子(济南)有限公司 | Near field communication method, device, hard disk and readable storage medium |
CN114980046A (en) * | 2021-02-25 | 2022-08-30 | 华为技术有限公司 | Communication method, device and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040122774A1 (en) * | 2002-08-02 | 2004-06-24 | Martin Studd | Method and system for executing applications on a mobile device |
CN101237256A (en) * | 2007-02-01 | 2008-08-06 | 联想移动通信科技有限公司 | Electronic device and NFC-control method based on other electronic device |
CN103098108A (en) * | 2010-11-25 | 2013-05-08 | 松下电器产业株式会社 | Communication device |
CN203104582U (en) * | 2013-01-25 | 2013-07-31 | 马志敏 | Information acquisition system capable of collecting equipment information by using NFC mobile phone |
CN103312384A (en) * | 2012-03-05 | 2013-09-18 | 佳能株式会社 | Communication apparatus and control method thereof |
-
2014
- 2014-03-29 CN CN201410124458.8A patent/CN103955416A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040122774A1 (en) * | 2002-08-02 | 2004-06-24 | Martin Studd | Method and system for executing applications on a mobile device |
CN101237256A (en) * | 2007-02-01 | 2008-08-06 | 联想移动通信科技有限公司 | Electronic device and NFC-control method based on other electronic device |
CN103098108A (en) * | 2010-11-25 | 2013-05-08 | 松下电器产业株式会社 | Communication device |
CN103312384A (en) * | 2012-03-05 | 2013-09-18 | 佳能株式会社 | Communication apparatus and control method thereof |
CN203104582U (en) * | 2013-01-25 | 2013-07-31 | 马志敏 | Information acquisition system capable of collecting equipment information by using NFC mobile phone |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107239868A (en) * | 2016-03-28 | 2017-10-10 | 青岛海尔智能技术研发有限公司 | End message processing method and processing device for security cruising inspection system |
CN107612594A (en) * | 2017-10-23 | 2018-01-19 | 郑州云海信息技术有限公司 | A kind of near-field communication design method of service-oriented device information |
CN108011972A (en) * | 2017-12-21 | 2018-05-08 | 联想(北京)有限公司 | Data processing method and system |
CN112306765A (en) * | 2019-07-30 | 2021-02-02 | 北京达佳互联信息技术有限公司 | Portable device, method, apparatus and storage medium for detecting hard disk failure |
CN114980046A (en) * | 2021-02-25 | 2022-08-30 | 华为技术有限公司 | Communication method, device and system |
WO2022179399A1 (en) * | 2021-02-25 | 2022-09-01 | 华为技术有限公司 | Communication method, apparatus, and system |
CN113743558A (en) * | 2021-08-11 | 2021-12-03 | 镕铭微电子(济南)有限公司 | Near field communication method, device, hard disk and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103955416A (en) | Hard disk management method, device and system | |
WO2018177124A1 (en) | Service processing method and device, data sharing system and storage medium | |
US10033718B2 (en) | Pairing of base and detachable device | |
WO2017071207A1 (en) | Application installation method, corresponding apparatus, and application installation system | |
KR102048222B1 (en) | Apparatus and method for recognizing an external device in a communication system | |
CN104601799A (en) | Data transmission method and mobile terminal | |
CN104636666A (en) | Method and safety device for safely processing information of mobile terminal | |
KR20150032703A (en) | Method, apparatus and system of recovering an operating system on a portable communication device | |
US20180337922A1 (en) | Method and device for controlling smart device, server and storage medium | |
KR101543578B1 (en) | A terminal certification system for vehicle network connection and certification method thereof | |
WO2017076051A1 (en) | Method and apparatus for acquiring superuser permission | |
JP6440721B2 (en) | Authenticating the use of applications by computing devices | |
CN110545542B (en) | Main control key downloading method and device based on asymmetric encryption algorithm and computer equipment | |
TW201335777A (en) | Distributed data storing and accessing system and method | |
CN106101188B (en) | A kind of data processing method of network cloud USB flash disk | |
CN105549995A (en) | Method and device for upgrading audio equipment | |
CN114268930A (en) | Remote control device matching method, electronic device and readable storage medium | |
JP6306992B2 (en) | Account management method, account management server, and account management system | |
JP2013239096A (en) | Application providing terminal, application providing system, application providing method, and program | |
CN108282472B (en) | WIFI authentication method, device, server and storage medium | |
US20150082403A1 (en) | User terminal for password-based authentication, and password-based trading terminal, system, and method | |
US20130132600A1 (en) | Apparatus and method of a portable terminal for performing communication with a device supporting media transfer protocol | |
CN115220798A (en) | Drive data reading method and device, computer equipment and storage medium | |
CN105975624A (en) | Data transmission method, equipment and system | |
CN106027537A (en) | Information backup method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140730 |
|
RJ01 | Rejection of invention patent application after publication |