Control method for storage device externally connected with router

A storage device and control method technology, applied in the direction of digital transmission systems, electrical components, transmission systems, etc., can solve the problems of high probability of failure of storage devices, damage of storage devices, failure of proper control and effective utilization of storage devices, etc., to achieve Improve utilization and ensure stability

Inactive Publication Date: 2015-06-24
BEIJING GEEK GEEK TECH
View PDF5 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This router has simple functions and poor scalability
[0003] A small number of traditional routers have expansion interfaces, such as USB interfaces, but only have the most basic control capabilities for storage devices, and there are no clear specifications for the use of storage devices. User operability and controllability are weak, and it is impossible to know exactly what storage devices There is no control interface to operate the related status of the device. For example, if you want to take out the storage device, you can only forcefully pull it out and cannot safely uninstall the storage device, which is easy to cause damage to the storage device.
And it is impossible to perform some advanced operations on the storage device, such as checking and formatting the file system
Therefore, this router cannot properly control and effectively utilize storage devices.
[0004] Currently common external storage devices on the market, such as SD cards and U disks, have a certain damage rate and failure rate, and the reasons for the failure are various and difficult to detect. When the storage device is abnormal, it will seriously affect the system performance.
[0005] The router is an embedded system with few hardware resources. If the storage device is abnormal, it will cause the process to hang up due to waiting for IO, etc., which may seriously affect the performance of the system host. The probability of failure of the storage device on the embedded system is relatively higher
[0006] The traditional way to query storage device information is to directly call the underlying interface. However, different storage devices have different commands, and because the write command takes a long time to execute, the response speed is slow each time the direct call is made.
[0007] The traditional storage device control method also directly calls the underlying control interface, which may cause multiple operations to be performed at the same time, such as performing formatting and uninstalling operations at the same time, which may cause damage to the storage device

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Control method for storage device externally connected with router

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] Such as figure 1 As shown, the control method of the external storage device connected to the router, the method uses the linux udev system and the hotplug mechanism to monitor the storage device, when the storage device is connected to or removed from the router system, the router system is initialized and the kernel is triggered The hotplug event, the kernel communicates with the user mode hotplugd process through the netlink socket, the storaged process sets a callback hook in the hotplugd process, and notifies the storaged process whenever a storage device event occurs, and the storaged process performs the following steps:

[0028] (1) Receive the information that the storage device is inserted into the router;

[0029] (2) determine whether the disk of the storage device needs to be formatted, if so, perform step (3), otherwise perform step (9);

[0030] (3) The disk is not formatted;

[0031] (4) Whether to confirm the format, if yes, execute step (5), otherwis...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a control method for a storage device externally connected with a router. According to the method, the storage device is monitored through a linux udev system and a hotplug mechanism; when the storage device is connected with or disconnected from a router system, the router system is driven to be initialized and trigger a hotplug even of an inner core, the inner core is in communication with a user mode hotplugd process through a netlink socket, a storaged process sets a callback hook in the hotplugd process, the storaged process is informed whenever storage device events occur, the storaged process executes disk formatting of the storage device and automatically mounts the storage device to the router or dismounts the storage device.

Description

technical field [0001] The invention belongs to the technical field of routers, and in particular relates to a method for controlling an external storage device connected to a router. Background technique [0002] Most traditional routers have neither built-in storage nor external hardware interfaces to install extended storage devices, so they do not have data storage capabilities. This router has simple functions and poor scalability. [0003] A small number of traditional routers have expansion interfaces, such as USB interfaces, but only have the most basic control capabilities for storage devices, and there are no clear specifications for the use of storage devices. User operability and controllability are weak, and it is impossible to know exactly what storage devices There is no control interface to operate the related status of the device. For example, if you want to take out the storage device, you can only forcefully pull it out and cannot safely uninstall the sto...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/771G06F3/06H04L45/60
Inventor 乔龙飞
Owner BEIJING GEEK GEEK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products