Non-contact log collection device and method

Through the contactless log collection device, the problem of difficulty in collecting logs in abnormal environments by using wireless communication technology is solved by NVMe SSD, efficient log data collection and upload, and improved product quality and problem positioning efficiency.

CN119169794APending Publication Date: 2024-12-20SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411203724.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

During the development of NVMe SSD, especially in environments such as high temperature testing, it is impossible to collect log data in a timely manner or difficult to collect, resulting in the impact of problem positioning and product quality.

Method used

A contactless log collection device is designed, using remote control transmitting circuit, remote control receiving circuit, wireless transmission circuit and control interaction circuit to activate wireless transmission circuit through wireless communication to realize contactless export of NVMe SSD log data, ensuring that Logs can be collected and uploaded to the terminal under abnormal environment.

Benefits of technology

It realizes that when NVMe SSD is constantly powered, log data is collected through wireless means, which improves the efficiency of problem location and enterprise-level product quality, simplifies hardware connections, and reduces the risk of electrostatic damage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119169794A_ABST
    Figure CN119169794A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of solid state disks, and discloses a non-contact log collection device and method.The non-contact log collection method comprises the steps that a remote control transmitting circuit encodes a control command input by a user and then sends the control command to a remote control receiving circuit in a wireless transmission mode; the remote control receiving circuit decodes the control command and then sends the control command to the control interaction circuit; the control interaction circuit is electrically connected with the wireless unvarnished transmission circuit, and the control interaction circuit is electrically connected with the NVMe SSD; the wireless unvarnished transmission circuit is electrically connected with the NVMe SSD debugging interface through the interface circuit, and the wireless unvarnished transmission circuit is in communication connection with a terminal in a wireless transmission mode; and the control interaction circuit controls the wireless transparent transmission circuit to send the log data of the NVMe SSD to the terminal based on the control command, or realizes power-off restart after firmware update of the NVMe SSD, or controls the wireless transparent transmission circuit to enter a deep sleep state. According to the method, non-contact export of the NVMe SSD logs is achieved through the wireless communication technology, the SSD abnormal environment is kept, and the method has great significance in positioning the SSD problem and improving the NVMe SSD product quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of solid state hard disks, and in particular to a non-contact log collection device and method. Background Art

[0002] U.2 interface enterprise-level solid state drives (SSDs) can be divided into three types according to protocol type: Serial ATA (SATA), Serial Attached SCSI (SAS), and Non-Volatile Memory Express (NVMe). NVMe SSDs have become the mainstream memory for high-end storage due to their excellent read and write performance, so NVMe SSDs have become the focus of development for major SSD manufacturers. In the development process of NVMe SSDs, it is inevitable that some software, hardware, or structural problems will arise. Solving these problems is the key task in the development process of NVMe SSDs. An important means to solve these problems is to export logs to analyze the causes of the problems.

[0003] NVMe SSD log export methods are divided into in-band and out-band. As the name implies, the in-band uses the NVMe underlying PCIe protocol, and the out-band uses other debugging interfaces reserved by the NVMe SSD Controller, such as JTAG, SMBus, and UART. In the process of NVMe enterprise-level SSD productization, the in-band and UART log export methods will be retained. For problems with hard disk recognition (SSD is at the bug site and cannot be recognized normally after powering on again), UART log export is required. For some hard disks that are difficult to reproduce or cannot be plugged in and out in time (high and low temperature tests in the incubator, RDT tests), it is more difficult to export logs. Summary of the invention

[0004] In view of this, the present invention provides a contactless log collection device and method to solve the problem of how to collect logs without powering off the NVMe SSD.

[0005] In the first aspect, the present invention provides a contactless log collection device, including: a remote control transmitting circuit, a remote control receiving circuit, a wireless transparent transmission circuit, a control interaction circuit and an interface circuit, wherein the remote control transmitting circuit is connected to the remote control receiving circuit in a wireless transmission manner, and the remote control transmitting circuit is used to encode the control command input by the user and send it to the remote control receiving circuit; the remote control receiving circuit is electrically connected to the control interaction circuit, and the remote control receiving circuit is used to decode the control command and send it to the control interaction circuit; the control interaction circuit is electrically connected to the wireless transparent transmission circuit, and the control interaction circuit is electrically connected to the NVMe SSD; the wireless transparent transmission circuit is electrically connected to the NVMe SSD debugging interface through the interface circuit, and the wireless transparent transmission circuit is connected to the terminal in a wireless transmission manner; the control interaction circuit controls the wireless transparent transmission circuit to send the log data of the NVMe SSD to the terminal based on the control command, or realizes power-off and restart after the NVMe SSD firmware is updated, or controls the wireless transparent transmission circuit to enter a deep sleep state.

[0006] When an abnormal problem occurs in the SSD, the present invention activates the wireless transparent transmission circuit by wireless means, and the wireless transparent transmission circuit sends the log data to the receiving module and then uploads it to the terminal. If the SSD does not have an abnormal problem, the wireless transparent transmission circuit is in a waiting state and does not send any signal to the outside world. Using wireless communication technology to achieve non-contact export of enterprise-level NVMe SSD logs and maintain the SSD abnormal environment is of great significance for locating SSD problems and improving the quality of enterprise-level NVMe SSD products.

[0007] In an optional embodiment, the remote control transmitting circuit includes: a transmitting antenna, a coding circuit and multiple coding transmitting switches, wherein the transmitting antenna is electrically connected to the coding circuit, and the transmitting antenna is communicatively connected to the remote control receiving circuit via wireless transmission; the coding circuit is electrically connected to the multiple coding transmitting switches; one coding circuit corresponds to one control command; after the coding transmitting switch is pressed, the coding circuit receives the control command, and the coding circuit encodes the control command and sends it to the remote control receiving circuit.

[0008] In an optional embodiment, the coding circuit includes: a first switching circuit, a coding chip, and a second switching circuit, wherein the first switching circuit is electrically connected to the coding chip and the transmitting antenna; the coding chip is electrically connected to each coding transmitting switch through the second switching circuit; when the coding transmitting switch is pressed, the corresponding circuit inside the second switching circuit is turned on, and the second switching circuit transmits the control command to the coding chip, and the coding chip encodes the control command and sends it to the transmitting antenna through the first switching circuit.

[0009] In an optional embodiment, the second switching circuit includes: multiple diodes, the number of diodes is the same as the number of coding transmission switches, wherein the anode of each diode is electrically connected to the output end of a coding transmission switch, and the cathode of each diode is electrically connected to a receiving end of the coding chip.

[0010] In an optional implementation, the remote control receiving circuit includes: a receiving antenna and a decoding circuit, wherein the receiving antenna is electrically connected to the decoding circuit; the decoding circuit is electrically connected to the control interaction circuit; and the decoding circuit is used to decode the control command and send it to the control interaction circuit.

[0011] In an optional embodiment, the remote control receiving circuit also includes: a learning button and a status indication circuit, wherein the learning button is electrically connected to the decoding circuit; the status indication circuit is electrically connected to the decoding circuit; when the learning button is pressed, the decoding circuit starts to pair with the remote control transmitting circuit, and the status indication circuit indicates the pairing status of the decoding circuit.

[0012] In an optional implementation, the control interaction circuit includes: an MCU circuit, a first transmitting serial port enabling circuit, a first receiving serial port enabling circuit, a second transmitting serial port enabling circuit, and a second receiving serial port enabling circuit. The MCU circuit is connected to the wireless transparent transmission circuit through the first transmitting serial port enabling circuit and the first receiving serial port enabling circuit, respectively, and the MCU circuit is connected to the interface circuit through the second transmitting serial port enabling circuit and the second receiving serial port enabling circuit, respectively; the MCU circuit enables the serial port between the MCU circuit and the wireless transparent transmission circuit by controlling the on / off state of the first transmitting serial port enabling circuit and the first receiving serial port enabling circuit; the MCU circuit enables the serial port between the wireless transparent transmission circuit and the NVMe SSD through the on / off state of the second transmitting enabling serial port circuit and the second receiving serial port enabling circuit.

[0013] In an optional embodiment, the wireless transparent transmission circuit includes: a wireless antenna, a communication chip, a transmitting circuit, and a receiving circuit, wherein the wireless antenna is connected to the terminal communication via a wireless transmission method, and the wireless antenna is electrically connected to the communication chip; the communication chip is electrically connected to the control interaction circuit via the transmitting circuit and the receiving circuit respectively, and the communication chip is electrically connected to the NVMeSSD debugging interface via the interface circuit.

[0014] In a second aspect, the present invention provides a contactless log collection method, a contactless log collection device based on the first aspect and any optional implementation manner thereof, the method comprising: a remote control transmitting circuit encodes a control command input by a user and sends it to a remote control receiving circuit; the remote control receiving circuit decodes the control command and sends it to a control interaction circuit; the control interaction circuit controls the wireless transparent transmission circuit to send the log data of the NVMe SSD to the terminal based on the control command, or implements power-off and restart after the NVMe SSD firmware is updated, or controls the wireless transparent transmission circuit to enter a deep sleep state.

[0015] In an optional embodiment, the process of controlling the wireless transparent transmission circuit to send the log data of the NVMe SSD to the terminal based on the control command includes: after receiving the control command, the control interaction circuit determines whether the control command is a wake-up command; when the control command is a wake-up command, the control interaction circuit enters the serial port log mode; after the control interaction circuit controls the wireless transparent transmission circuit to wake up from the deep sleep mode, the control interaction circuit controls the wireless transparent transmission circuit to reset; the serial port between the control interaction circuit controller and the wireless transparent transmission circuit is opened, and the control interaction circuit configures the wireless transparent transmission circuit; the control interaction circuit enables the serial port between the wireless transparent transmission circuit and the NVMe SSD to establish a serial port connection between the wireless transparent transmission circuit and the controller of the NVMe SSD; the wireless transparent transmission circuit receives the export log command sent by the terminal and sends it to the controller of the NVMe SSD; the controller of the NVMe SSD sends the log data to the terminal through the wireless transparent transmission circuit.

[0016] In an optional implementation, the control interaction circuit implements a process of powering off and restarting the NVMe SSD after the firmware is updated based on a control command, including: after receiving the control command, the control interaction circuit determines whether the control command is a firmware update command; when the control command is a firmware update command, the control interaction circuit wakes up the wireless transparent transmission circuit, the control interaction circuit enters the firmware burning mode, and the control interaction circuit disables the serial port between the wireless transparent transmission circuit and the NVMe SSD; the control interaction circuit resets the wireless transparent transmission circuit, and the control interaction circuit configures the wireless transparent transmission circuit; the control interaction circuit disables the serial port between the wireless transparent transmission circuit and the wireless transparent transmission circuit, and the control interaction circuit disables the interface circuit; the control interaction circuit establishes a connection between the terminal and the NVMe SSD controller, and the NVMe SSD controller controls the NVMe SSD to power off and restart after the firmware is updated based on the firmware update command sent by the terminal.

[0017] In an optional embodiment, the process of controlling the wireless transparent transmission circuit to enter a deep sleep state based on a control command by the control interaction circuit includes: after the control interaction circuit receives the control command, determining whether the control command is a sleep command; when the control command is a sleep command, the control interaction circuit disables the serial port between the wireless transparent transmission circuit and the NVMe SSD, and the control interaction circuit disables the serial port between itself and the wireless transparent transmission, and the wireless transparent transmission circuit enters deep sleep.

[0018] In an optional embodiment, the contactless log collection method also includes: when the wireless transparent transmission circuit enters deep sleep, the control interaction circuit disables the serial port between it and the NVMe SSD; when the control interaction circuit receives an SSD exception command, the control interaction circuit wakes up and resets the wireless transparent transmission circuit, the control interaction circuit configures the wireless transparent transmission circuit, and the control interaction circuit parses the exception type and issues an alarm; the control interaction circuit disables the interface circuit, and the control interaction circuit disables the serial port between it and the wireless transparent transmission, and the control interaction circuit enables the serial port between the wireless transparent transmission circuit and the NVMe SSD; the control interaction circuit establishes a connection between the terminal and the controller of the NVMe SSD, and the controller of the NVMe SSD sends the log data to the terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 is a composition diagram of a log collection device according to an embodiment of the present invention;

[0021] Figure 2 is a specific circuit structure diagram of a remote control transmitting circuit according to an embodiment of the present invention;

[0022] Figure 3 is a specific circuit structure diagram of a remote control receiving circuit according to an embodiment of the present invention;

[0023] Figure 4 , Figure 5 All of them are specific circuit structure diagrams of the control interaction circuit according to the embodiments of the present invention;

[0024] Figure 6 is a specific circuit diagram of a wireless transparent transmission circuit according to an embodiment of the present invention;

[0025] Figure 7 is a specific circuit diagram of an interface circuit according to an embodiment of the present invention;

[0026] Figure 8 is a general design architecture diagram of a log collection device according to an embodiment of the present invention;

[0027] Fig. 9 is a control flow chart according to an embodiment of the present invention;

[0028] Fig.10 This is a flow chart of an SSD abnormality reporting according to an embodiment of the present invention;

[0029] Fig.11 It is a UART topology diagram of an embodiment of the present invention. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0031] In this embodiment, a non-contact log collection device is provided, such as Figure 1 As shown, it includes: a remote control transmitting circuit, a remote control receiving circuit, a wireless transparent transmission circuit, a control interaction circuit and an interface circuit, wherein the remote control receiving circuit, the wireless transparent transmission circuit, the control interaction circuit and the interface circuit are arranged on a board.

[0032] like Figure 1 As shown, the remote control transmitting circuit is connected to the remote control receiving circuit via wireless transmission, and the remote control transmitting circuit is used to encode the control command input by the user and send it to the remote control receiving circuit; the remote control receiving circuit is electrically connected to the control interaction circuit, and the remote control receiving circuit is used to decode the control command and send it to the control interaction circuit.

[0033] Specifically, the remote control transmitting circuit has a built-in encoder, the remote control receiving circuit has a built-in decoder, the remote control transmitting circuit and the remote control receiving circuit are connected in communication via wireless transmission. The related wireless transmission technologies include WIFI, Bluetooth, Zigbee, and 433M. Since the number of Bluetooth terminal nodes does not exceed 8, the Zigbee transmission rate is relatively low, and 433M is suitable for point-to-point. Therefore, this embodiment uses WIFI technology with the fastest transmission rate and a theoretical maximum of 255 nodes for uplink and downlink wireless data transmission.

[0034] like Figure 1As shown, the control interaction circuit is electrically connected to the wireless transparent transmission circuit, and the control interaction circuit is electrically connected to the NVMe SSD. The wireless transparent transmission circuit is electrically connected to the NVMe SSD debugging interface through the interface circuit, and the wireless transparent transmission circuit is connected to the terminal communication through wireless transmission.

[0035] Specifically, the control interaction circuit controls the wireless transparent transmission circuit to send the log data of the NVMe SSD to the terminal based on the control command, or realizes power-off and restart after the NVMe SSD firmware is updated, or controls the wireless transparent transmission circuit to enter a deep sleep state.

[0036] Specifically, the control commands may include: wake-up command, firmware update command, sleep command, etc. The control interaction circuit wakes up or sleeps the wireless transparent transmission circuit, or updates the firmware of the SSD by controlling the serial port between the control interaction circuit and the wireless transparent transmission circuit, and the serial port between the wireless transparent transmission circuit and the NVMe SSD according to the different commands received. The control interaction circuit software configures the MODE mode to reduce hardware operations and reduce the risk of electrostatic damage.

[0037] Optionally, in order to achieve a match between the remote control receiving circuit and the remote control transmitting circuit, security keys are set for both the remote control receiving circuit and the remote control transmitting circuit. When the remote control receiving circuit transmits a control command to the remote control transmitting circuit, the control command carries not only command information but also security key information. After receiving the control command, the remote control receiving circuit determines whether the security key is correct. If it is incorrect, the security key can be confirmed again to the remote control transmitting circuit. After multiple confirmations, if the security key is still incorrect, an alarm is issued and the control command is intercepted.

[0038] Optionally, the server has dozens of disks in full configuration, and the RDT test has more than 200 disks at most. If all these disks need to export logs, the traditional plug-in debug cable method can only be used to export logs one by one. This embodiment of the patent can achieve network communication through WIFI connection, and a PC host can connect to up to 255 terminal nodes, thereby simplifying hardware connection.

[0039] In some optional implementations, the remote control transmitting circuit includes: a transmitting antenna, a coding circuit and a plurality of coding transmitting switches. The transmitting antenna is electrically connected to the coding circuit, and the transmitting antenna is connected to the remote control receiving circuit in a wireless transmission manner; the coding circuit is electrically connected to the plurality of coding transmitting switches; one coding circuit corresponds to one control command; after the coding transmitting switch is pressed, the coding circuit receives the control command, and the coding circuit encodes the control command and sends it to the remote control receiving circuit.

[0040] Specifically, when the coding transmission switch is not pressed, the coding circuit is not powered on. When any coding transmission switch is pressed, the coding circuit is immediately powered on. After each coding transmission switch is pressed, the coding circuit will receive a control command, which may include a wake-up command, a firmware update command, a sleep command, etc., which is not limited here.

[0041] In an optional implementation, the encoding circuit includes: a first switch circuit, an encoding chip, and a second switch circuit, wherein the second switch circuit includes: a plurality of diodes, the number of which is the same as the number of encoding transmission switches, wherein the anode of each diode is electrically connected to the output end of a coding transmission switch, and the cathode of each diode is electrically connected to a receiving end of the encoding chip. Figure 2 As shown, the first switch circuit includes a transistor Q1, the encoding chip is a chip U3, the second switch circuit includes diodes D1-D4, and the encoding transmission switch includes SW1-SW4.

[0042] Figure 2 In the embodiment, the first switch circuit is electrically connected to the coding chip and the transmitting antenna; the coding chip is electrically connected to each coding transmitting switch through the second switch circuit; when the coding transmitting switch is pressed, the corresponding circuit inside the second switch circuit is turned on, and the second switch circuit transmits the control command to the coding chip, and the coding chip encodes the control command and sends it to the transmitting antenna through the first switch circuit.

[0043] Figure 2 In the code transmission circuit, three 1.5V batteries are used to power the coding circuit. SW1~SW4 are normally open coding transmission switches. If none of the coding transmission switches are pressed, the coding transmission circuit will not be powered on, thus saving energy to the greatest extent. When a coding transmission switch is pressed, the diode is turned on, the coding transmission circuit is powered on, the corresponding Pin K is pulled high (the default K Pin is pulled low internally), and the coding data is sent from the TXD Pin to the remote control receiving antenna in the 433MHz frequency band.

[0044] In an optional implementation, the remote control receiving circuit includes: a receiving antenna and a decoding circuit, wherein the receiving antenna is electrically connected to the decoding circuit; the decoding circuit is electrically connected to the control interaction circuit; and the decoding circuit is used to decode the control command and send it to the control interaction circuit.

[0045] Optionally, the specific circuit structure of the remote control receiving circuit is as follows: Figure 3 As shown, the decoding circuit includes a decoding chip U6, and an LCL filtering circuit is arranged between the decoding chip and the receiving antenna to filter out control command clutter to prevent malfunction.

[0046] In an alternative embodiment, if Figure 3As shown, the remote control receiving circuit also includes: a learning button (i.e. SW5) and a status indication circuit (i.e. light emitting diode D5), wherein the learning button is electrically connected to the encoding circuit; the status indication circuit is electrically connected to the encoding circuit; when the learning button is pressed, the encoding circuit starts to pair with the remote control transmitting circuit, and the status indication circuit indicates the pairing status of the encoding circuit.

[0047] Specifically, Figure 3 In the example, SW5 is a learning button. When pressed, it starts pairing with the remote control transmitting circuit. D5 indicates the pairing status. After pairing is completed, SW5 and D5 are no longer used. The current remote control receiving circuit is designed as a stored output mode. After one reception is completed, decoding is performed. After decoding is completed, the corresponding data bits D0 to D3 continue to output high level. After the next reception and decoding is completed, the output data bit updates the status.

[0048] In an optional implementation, the control interaction circuit includes: an MCU circuit, a first transmitting serial port enabling circuit, a first receiving serial port enabling circuit, a second transmitting serial port enabling circuit, and a second receiving serial port enabling circuit.

[0049] Specifically, the MCU circuit is connected to the wireless transparent transmission circuit through the first transmitting serial port enabling circuit and the first receiving serial port enabling circuit, and the MCU circuit is connected to the interface circuit through the second transmitting serial port enabling circuit and the second receiving serial port enabling circuit; the MCU circuit enables the serial port between the MCU circuit and the wireless transparent transmission circuit by controlling the on-off state of the first transmitting serial port enabling circuit and the first receiving serial port enabling circuit; the MCU circuit enables the serial port between the wireless transparent transmission circuit and the NVMe SSD through the on-off state of the second transmitting serial port enabling circuit and the second receiving serial port enabling circuit.

[0050] Optionally, the specific circuit structure of the control interaction circuit is as follows: Figure 4 , Figure 5 As shown, Figure 4 In the MCU circuit, the MCU chip U8 is mainly included. Figure 5 In the embodiment, the first transmitting serial port enabling circuit mainly includes transistor Q12, the first receiving serial port enabling circuit mainly includes transistor Q11, the second transmitting serial port enabling circuit mainly includes transistor Q14, and the second receiving serial port enabling circuit mainly includes transistor Q13.

[0051] Specifically, after the remote control receiving circuit completes data decoding, it sends the decoded information to P1.0 to P1.4 of the MCU, and the MCU performs corresponding settings according to the recognized key information.

[0052] In an optional embodiment, the wireless transparent transmission circuit includes: a wireless antenna, a communication chip, a transmitting circuit, and a receiving circuit, wherein the wireless antenna is connected to the terminal communication via a wireless transmission method, and the wireless antenna is electrically connected to the communication chip; the communication chip is electrically connected to the control interaction circuit via the transmitting circuit and the receiving circuit respectively, and the communication chip is electrically connected to the NVMeSSD debugging interface via the interface circuit.

[0053] Optionally, the specific circuit structure of the wireless transparent transmission circuit is as follows: Figure 6 As shown, the communication chip is chip U2, the transmitting circuit mainly includes transistor Q6, the receiving circuit mainly includes transistor Q7, and the control interaction circuit establishes the connection between the wireless transparent transmission circuit and the interface circuit by controlling the on and off of Q6 and Q7.

[0054] In an optional implementation, the specific circuit structure of the interface circuit is as follows: Figure 7 shown. Figure 7 For the Type C SSD interaction interface, P3V3 power supply, JTAG debugging port, UART and MODE working mode interface are reserved. Because the SSD Controller IO is 1.8V level, a level conversion circuit is designed to match the UART and MODE levels to 1.8V and 3.3V.

[0055] This embodiment provides a non-contact log collection method, based on the non-contact log collection device of the above embodiment and any optional implementation manner thereof, the method includes:

[0056] (1) The remote control transmitting circuit encodes the control command input by the user and sends it to the remote control receiving circuit;

[0057] (2) The remote control receiving circuit decodes the control command and sends it to the control interaction circuit;

[0058] (3) The control interaction circuit controls the wireless transparent transmission circuit to send the log data of the NVMe SSD to the terminal based on the control command, or realizes power-off and restart after the NVMe SSD firmware is updated, or controls the wireless transparent transmission circuit to enter a deep sleep state.

[0059] Specifically, the control interaction circuit controls the wireless transparent transmission circuit to send the log data of the NVMe SSD to the terminal based on the control command, or realizes power-off and restart after the NVMe SSD firmware is updated, or controls the wireless transparent transmission circuit to enter a deep sleep state.

[0060] Specifically, the control commands may include: wake-up commands, firmware update commands, sleep commands, etc. The control interaction circuit wakes up or sleeps the wireless transparent transmission circuit, or updates the firmware of the SSD by controlling the status of the serial port between the control interaction circuit and the wireless transparent transmission circuit, and the serial port between the wireless transparent transmission circuit and the NVMe SSD according to the different commands received.

[0061] In an optional implementation, the process of controlling the interactive circuit to control the wireless transparent transmission circuit to send the log data of the NVMe SSD to the terminal based on the control command includes:

[0062] (1) After receiving the control command, the control interaction circuit determines whether the control command is a wake-up command;

[0063] (2) When the control command is a wake-up command, the control interaction circuit enters the serial port log mode;

[0064] (3) After the control interaction circuit controls the wireless transparent transmission circuit to wake up from the deep sleep mode, the control interaction circuit controls the wireless transparent transmission circuit to reset;

[0065] (4) controlling the serial port between the interactive circuit controller and the wireless transparent transmission circuit to be opened, and controlling the interactive circuit to configure the wireless transparent transmission circuit;

[0066] (5) Control the interactive circuit to enable the serial port between the wireless transparent transmission circuit and the NVMe SSD to establish a serial port connection between the wireless transparent transmission circuit and the controller of the NVMe SSD;

[0067] (6) The wireless transparent transmission circuit receives the export log command sent by the terminal and sends it to the controller of the NVMe SSD;

[0068] (7) The NVMe SSD controller sends the log data to the terminal through the wireless transparent transmission circuit.

[0069] The overall design architecture of the log collection device in this embodiment is as follows Figure 8 Reference Figure 2 to Figure 8, when P1.4 is high, MCU starts to parse P1.0~P1.3 key information. When MCU parses that SW1 is pressed, MCU enters serial port log mode. MCU wakes up ESP8266 from deep sleep mode and resets it. MCU then opens the serial port between MCU and ESP8266 through MCU_TX_EN and MCU_RX_EN. MCU uses ESP8266_RST to reset and configure WIFI through the serial port. After WIFI configuration is completed, MCU disconnects the serial port from ESP8266, enables the serial port between ESP8266 and Type_C, and establishes a serial port connection between ESP8266 and SSD controller. PC (i.e. terminal) sends an export log command to SSD controller through WIFI and ESP8266 to obtain log information.

[0070] In an optional implementation, the control interaction circuit implements a process of powering off and restarting the NVMe SSD after the firmware update based on the control command, including:

[0071] (1) After receiving the control command, the control interaction circuit determines whether the control command is a firmware update command;

[0072] (2) When the control command is a firmware update command, the control interaction circuit wakes up the wireless transparent transmission circuit, the control interaction circuit enters the firmware burning mode, and the control interaction circuit disables the serial port between the wireless transparent transmission circuit and the NVMe SSD;

[0073] (3) controlling the interactive circuit to reset the wireless transparent transmission circuit and controlling the interactive circuit to configure the wireless transparent transmission circuit;

[0074] (4) controlling the interaction circuit to disable its serial interface with the wireless transparent transmission circuit, and controlling the interaction circuit to disable the interface circuit;

[0075] (5) The control interaction circuit establishes a connection between the terminal and the controller of the NVMe SSD. The controller of the NVMe SSD controls the NVMe SSD to power off and restart after the firmware update based on the firmware update command sent by the terminal.

[0076] refer to Figure 2 to Figure 8 When P1.4 is at a high level, the MCU starts to parse the P1.0~P1.3 key information. When it is parsed that SW2 is pressed, the MCU puts the SSD into firmware burning mode through MODE0~MODE3, and then establishes a connection between the PC and the SSD controller. The PC inputs the firmware update command to the SSD controller, and the SSD controller controls the SSD to power off and restart after completing the firmware update.

[0077] In an optional implementation, the process of controlling the interaction circuit to control the wireless transparent transmission circuit to enter a deep sleep state based on the control command includes:

[0078] (1) After receiving the control command, the control interaction circuit determines whether the control command is a sleep command;

[0079] (2) When the control command is a sleep command, the control interaction circuit disables the serial port between the wireless transparent transmission circuit and the NVMe SSD, and the control interaction circuit disables the serial port between the wireless transparent transmission circuit and the wireless transparent transmission circuit, and the wireless transparent transmission circuit enters deep sleep.

[0080] refer to Figure 2 to Figure 8 When P1.4 is high, MCU starts to parse P1.0~P1.3 key information. When SW3 is pressed, MCU disables the serial port between ESP8266 and Type C, disables the serial port between MCU and ESP8266, and then puts ESP8266 into deep sleep. The control flow is as follows: Fig. 9 shown.

[0081] In an optional implementation, the contactless log collection method further includes:

[0082] (1) When the wireless transparent transmission circuit enters deep sleep, the control interaction circuit disables the serial port between it and the NVMe SSD;

[0083] (2) When the control interaction circuit receives the SSD abnormal command, the control interaction circuit wakes up and resets the wireless transparent transmission circuit, configures the wireless transparent transmission circuit, and analyzes the abnormal type and issues an alarm;

[0084] (3) Control the interactive circuit to disable the interface circuit, control the interactive circuit to disable the serial port between it and the wireless transparent transmission, and control the interactive circuit to enable the serial port between the wireless transparent transmission circuit and the NVMe SSD;

[0085] (4) The control interaction circuit establishes a connection between the terminal and the controller of the NVMe SSD, and the controller of the NVMe SSD sends the log data to the terminal.

[0086] Specifically, when the wireless transparent transmission circuit enters deep sleep, the MCU enables the serial port between the Type C and maintains the SSD abnormal reception capability, abnormal alarm and abnormal trigger log upload, accurately captures the log to avoid large-scale screening of abnormalities. The SSD abnormality reporting process is as follows: Fig.10 As shown, the UART topology is as follows Fig.11 shown.

[0087] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A non-contact log collection device, characterized in that: include: Remote control transmitting circuit, remote control receiving circuit, wireless transparent transmission circuit, control interaction circuit and interface circuit, among which, The remote control transmitting circuit is connected to the remote control receiving circuit in a wireless transmission mode, and the remote control transmitting circuit is used to encode the control command input by the user and send it to the remote control receiving circuit; The remote control receiving circuit is electrically connected to the control interaction circuit, and the remote control receiving circuit is used to decode the control command and send it to the control interaction circuit; The control interaction circuit is electrically connected to the wireless transparent transmission circuit, and the control interaction circuit is electrically connected to the NVMe SSD; The wireless transparent transmission circuit is electrically connected to the NVMe SSD debugging interface through the interface circuit, and the wireless transparent transmission circuit is connected to the terminal communication through a wireless transmission mode; The control interaction circuit controls the wireless transparent transmission circuit to send the log data of the NVMe SSD to the terminal based on the control command, or realizes power-off and restart after the NVMe SSD firmware is updated, or controls the wireless transparent transmission circuit to enter a deep sleep state.

2. The non-contact log collection device according to claim 1, characterized in that: The remote control transmitting circuit includes: a transmitting antenna, a coding circuit and a plurality of coding transmitting switches, wherein: The transmitting antenna is electrically connected to the encoding circuit, and the transmitting antenna is communicatively connected to the remote control receiving circuit via wireless transmission; The encoding circuit is electrically connected to the plurality of encoding transmitting switches; One encoding circuit corresponds to one control command; After the coding transmission switch is pressed, the coding circuit receives the control command, and the coding circuit encodes the control command and sends it to the remote control receiving circuit.

3. The non-contact log collection device according to claim 2, characterized in that: The encoding circuit includes: a first switch circuit, an encoding chip, and a second switch circuit, wherein: The first switch circuit is electrically connected to the encoding chip and the transmitting antenna; The encoding chip is electrically connected to each of the encoding transmitting switches through the second switch circuit; When the coding transmission switch is pressed, the corresponding loop inside the second switch circuit is turned on, and the second switch circuit transmits the control command to the coding chip. The coding chip encodes the control command and sends it to the transmitting antenna through the first switch circuit.

4. The non-contact log collection device according to claim 3, characterized in that: The second switch circuit includes: a plurality of diodes, the number of the diodes being the same as the number of the coded transmission switches, wherein: The anode of each diode is electrically connected to an output end of the coding transmission switch, and the cathode of each diode is electrically connected to a receiving end of the coding chip.

5. The non-contact log collection device according to claim 1, characterized in that: The remote control receiving circuit includes: a receiving antenna and a decoding circuit, wherein: The receiving antenna is electrically connected to the decoding circuit; The decoding circuit is electrically connected to the control interaction circuit; The decoding circuit is used for decoding the control command and sending it to the control interaction circuit.

6. The non-contact log collection device according to claim 5, characterized in that: The remote control receiving circuit also includes: a learning button and a status indication circuit, wherein: The learning button is electrically connected to the decoding circuit; The state indication circuit is electrically connected to the decoding circuit; When the learning button is pressed, the decoding circuit starts to pair with the remote control transmitting circuit, and the status indication circuit indicates the pairing status of the decoding circuit.

7. The non-contact log collection device according to claim 1, characterized in that: The control interaction circuit includes: an MCU circuit, a first transmitting serial port enabling circuit, a first receiving serial port enabling circuit, a second transmitting serial port enabling circuit and a second receiving serial port enabling circuit, wherein: The MCU circuit is connected to the wireless transparent transmission circuit through the first transmitting serial port enabling circuit and the first receiving serial port enabling circuit respectively, and the MCU circuit is connected to the interface circuit through the second transmitting serial port enabling circuit and the second receiving serial port enabling circuit respectively; The MCU circuit enables the serial port between the MCU circuit and the wireless transparent transmission circuit by controlling the on / off states of the first transmitting serial port enabling circuit and the first receiving serial port enabling circuit; The MCU circuit enables the serial port between the wireless transparent transmission circuit and the NVMe SSD through the on-off status of the second transmitting serial port enabling circuit and the second receiving serial port enabling circuit.

8. The non-contact log collection device according to claim 1, characterized in that: The wireless transparent transmission circuit includes: a wireless antenna, a communication chip, a transmitting circuit, and a receiving circuit. The wireless antenna is connected to the terminal through wireless transmission, and the wireless antenna is electrically connected to the communication chip; The communication chip is electrically connected to the control interaction circuit through the transmitting circuit and the receiving circuit respectively, and the communication chip is electrically connected to the NVMe SSD debugging interface through the interface circuit.

9. A non-contact log collection method, characterized in that: Based on the non-contact log collection device according to any one of claims 1 to 9, the method comprises: The remote control transmitting circuit encodes the control command input by the user and sends it to the remote control receiving circuit; The remote control receiving circuit decodes the control command and sends it to the control interaction circuit; The control interaction circuit controls the wireless transparent transmission circuit to send the log data of the NVMe SSD to the terminal based on the control command, or realizes power-off and restart after the NVMe SSD firmware is updated, or controls the wireless transparent transmission circuit to enter a deep sleep state.

10. The non-contact log collection method according to claim 9, characterized in that: The process in which the control interaction circuit controls the wireless transparent transmission circuit to send the log data of the NVMe SSD to the terminal based on the control command includes: After receiving the control command, the control interaction circuit determines whether the control command is a wake-up command; When the control command is a wake-up command, the control interaction circuit enters a serial port log mode; After the control interaction circuit controls the wireless transparent transmission circuit to wake up from the deep sleep mode, the control interaction circuit controls the wireless transparent transmission circuit to reset; The serial port between the control interaction circuit controller and the wireless transparent transmission circuit is opened, and the control interaction circuit configures the wireless transparent transmission circuit; The control interaction circuit enables the serial port between the wireless transparent transmission circuit and the NVMe SSD to establish a serial port connection between the wireless transparent transmission circuit and the controller of the NVMe SSD; The wireless transparent transmission circuit receives the export log command sent by the terminal and sends it to the controller of the NVMe SSD; The controller of the NVMe SSD sends the log data to the terminal through the wireless transparent transmission circuit.

11. The non-contact log collection method according to claim 9, characterized in that: The control interaction circuit implements the process of powering off and restarting the NVMe SSD after the firmware update based on the control command, including: After receiving the control command, the control interaction circuit determines whether the control command is a firmware update command; When the control command is a firmware update command, the control interaction circuit wakes up the wireless transparent transmission circuit, the control interaction circuit enters a firmware burning mode, and the control interaction circuit disables the serial port between the wireless transparent transmission circuit and the NVMe SSD; The control interaction circuit resets the wireless transparent transmission circuit, and the control interaction circuit configures the wireless transparent transmission circuit; The control interaction circuit disables the serial port between the control interaction circuit and the wireless transparent transmission circuit, and the control interaction circuit disables the interface circuit; The control interaction circuit establishes a connection between the terminal and the controller of the NVMe SSD, and the controller of the NVMe SSD controls the NVMe SSD to power off and restart after the firmware is updated based on the firmware update command sent by the terminal.

12. The non-contact log collection method according to claim 9, characterized in that: The process of controlling the wireless transparent transmission circuit to enter a deep sleep state based on the control command by the control interaction circuit includes: After receiving the control command, the control interaction circuit determines whether the control command is a sleep command; When the control command is a sleep command, the control interaction circuit disables the serial port between the wireless transparent transmission circuit and the NVMe SSD, and the control interaction circuit disables the serial port between itself and the wireless transparent transmission, and the wireless transparent transmission circuit enters deep sleep.

13. The non-contact log collection method according to claim 9, characterized in that: Also includes: When the wireless transparent transmission circuit enters deep sleep, the control interaction circuit disables the serial port between it and the NVMe SSD; When the control interaction circuit receives an SSD abnormal command, the control interaction circuit wakes up and resets the wireless transparent transmission circuit, the control interaction circuit configures the wireless transparent transmission circuit, and the control interaction circuit analyzes the abnormal type and issues an alarm; The control interaction circuit disables the interface circuit, and the control interaction circuit disables the serial port between the interface circuit and the wireless transparent transmission, and the control interaction circuit enables the serial port between the wireless transparent transmission circuit and the NVMe SSD; The control interaction circuit establishes a connection between the terminal and the controller of the NVMe SSD, and the controller of the NVMe SSD sends the log data to the terminal.

Citation Information

Patent Citations

  • Control method of solid state disk (SSD) and SSD

    CN101739213A

  • Serial port log capturing method and device, equipment and medium

    CN114780366A

  • SSD video recorder, remote log exporting method and remote log exporting system

    CN115509863A

  • Solid state disk wireless debugging method, system and device and storage medium

    CN115565357A

  • Hard disk management module, hard disk management system and hard disk management method

    CN116795286A