CN101686165B - Chip device and method of accessing network shared files by using same - Google Patents

Chip device and method of accessing network shared files by using same Download PDF

Info

Publication number
CN101686165B
CN101686165B CN2008102232953A CN200810223295A CN101686165B CN 101686165 B CN101686165 B CN 101686165B CN 2008102232953 A CN2008102232953 A CN 2008102232953A CN 200810223295 A CN200810223295 A CN 200810223295A CN 101686165 B CN101686165 B CN 101686165B
Authority
CN
China
Prior art keywords
local
computer
shared
file
network
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.)
Active
Application number
CN2008102232953A
Other languages
Chinese (zh)
Other versions
CN101686165A (en
Inventor
周晓煜
过晓冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN2008102232953A priority Critical patent/CN101686165B/en
Publication of CN101686165A publication Critical patent/CN101686165A/en
Application granted granted Critical
Publication of CN101686165B publication Critical patent/CN101686165B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a chip device and a method of accessing network shared files by using the same. The chip device comprises a storage module, a network connection module and a control module; the storage module is used for saving the local shared information of a computer on a local area network; the network connection module is used for transmitting data among nonlocal computers beyond the computer on a local area network; the control module is used for establishing a communication protocol on shared file transmission with the nonlocal computers, transmitting the local shared information to the nonlocal computers through the network connection module, acquiring the nonlocal network shared information of the nonlocal computer, creating a shared information list by using the local shared information and the nonlocal network shared information and transmitting protocol data with the local computers according to the shared information list and the communication protocol. By adopting the chip device and the method of accessing the network shared files by using the chip device, a virtual server can be loaded or unloaded automatically on the computer, and the program for loading the virtual server can be loaded or unloaded conveniently without using hand.

Description

Chip device and method for accessing network shared file by using same
Technical Field
The present invention relates to the field of network computer technology, and more particularly, to a chip device capable of accessing network shared files and a method for accessing network shared files using the same.
Background
When a plurality of computers are connected to the same local area network, the virtual server can help users to easily realize the sharing and transmission of internal data of enterprises under the condition of no file server. When a user uses the virtual server function to upload data on a local area network, the part of hard disks used for storing data in the user computer is actually shared and is used as a part of the server, a plurality of parts are combined together to form a virtual server with the same function as a file server, each computer connected to the same local area network can see the virtual server in the local area network, and the virtual server contains files shared by all computers in the same local area network. When the user uses the virtual server function in the same network segment of the local area network, other users can see the file in the file list of the virtual server and download the file according to the own needs as long as the file needing to be shared is selected and uploaded. Meanwhile, the transfer of the server is saved, and the virtual server is adopted to really realize point-to-point connection, so that the time for transmitting and downloading the file in the local area network is shortened.
In the technical field of network computers at present, a mode for setting a virtual server in a local area network mainly comprises the following steps: the method comprises the steps that communication center software is installed on each computer in the local area network, and each computer uploads or downloads files on a virtual server through the communication center software, so that when a computer is connected to the local area network and is connected to the virtual server, an installation program of the communication center software needs to be obtained and meets the installation requirement of the communication center software, the communication center software needs to be installed temporarily for the computer needing to be connected to the local area network temporarily and use the function of the virtual server, and when the virtual server is not needed any more after being used, the software needs to be unloaded manually, otherwise, the running space on the computer is occupied, and the use speed of the computer is influenced.
Disclosure of Invention
The technical scheme of the invention aims to provide a chip device and a method for accessing network shared files by using the chip device, the virtual server can be automatically configured or uninstalled on the computer through the chip device, a program for configuring the virtual server does not need to be installed or uninstalled in a manual mode, and the use is convenient.
In order to achieve the above object, an aspect of the present invention provides a chip apparatus, connected to a computer in a local area network, for accessing a shared file in the local area network, wherein the chip apparatus includes: the storage module is used for storing the local sharing information of the computer on the local area network; the network connection module is used for data transmission with a non-local computer except the computer on the local area network; the control module is used for establishing a communication protocol for transmitting a shared file with the non-local computer, sending the local shared information to the non-local computer through the network connection module, acquiring the non-local network shared information of the non-local computer, creating a shared information list by using the local shared information and the non-local network shared information, and transmitting protocol data with the non-local computer according to the shared information list and the communication protocol.
Preferably, in the chip apparatus described above, the control module includes: the communication protocol module is used for establishing a communication protocol for transmitting a shared file with the non-local computer, performing protocol data transmission with the non-local computer according to the communication protocol, sending the local shared information to the non-local computer, acquiring the non-local network shared information, sending a request for reading the non-local network shared file to the non-local computer, and receiving the request for reading the local shared file sent by the non-local computer; and the virtual server client module is used for creating the shared information list, performing address analysis on a command of the computer requesting to read the non-local network shared file according to the shared information list, obtaining a network shared address of a file or a directory to be read and computer information sharing the file or the directory, performing data analysis on the command of the non-local computer requesting to read the local shared file, obtaining content data of the file or the directory to be read, and sending an address analysis result or a data analysis result to the non-local computer through the communication protocol module.
Preferably, in the chip device, after the computer sends a command requesting to read the shared file in the non-local network, the data content fed back by the non-local computer is received, and the virtual server client module is further configured to analyze the data content fed back by the non-local computer, obtain actual content of a file or a directory to be read, and feed back the actual content to the computer.
Preferably, the chip device described above, further includes: the interface module is used for data transmission between the storage module and the computer; and the power supply module is used for supplying power to the chip device.
Preferably, the chip device described above, further includes: and the universal serial bus module is used for being connected with the computer to obtain power supply and realizing data transmission between the storage module and the computer.
Preferably, in the chip apparatus described above, the storage module is further configured to store the local shared file of the computer.
In another aspect, the present invention provides a method for accessing a local area network shared file by using a chip device, where the method includes: the chip device is connected to a computer of a local area network; establishing a communication protocol for transmitting a shared file between the chip device and a non-local computer on the local area network, performing network connection with the non-local computer, sending local shared information stored on the computer to the non-local computer, acquiring non-local network shared information of the non-local computer, and creating a shared information list by using the local shared information and the non-local network shared information; receiving a command that the computer reads a shared file or a directory in the shared information list, and carrying out data transmission with the non-local computer by using the communication protocol according to the information of the shared file or the directory to obtain the data content of the shared file or the directory on the computer.
Preferably, the method, according to the information of the shared file or directory, and using the communication protocol to perform data transmission with the non-local computer, includes: reading a network sharing address corresponding to the shared file or directory and sharing equipment information of a computer to which the shared file or directory belongs from the sharing information list; sending a request for obtaining the shared file or the shared directory to a computer with the shared device information; receiving file data or file information list data which are analyzed and sent by a computer with the sharing equipment information and correspond to the network sharing address; and analyzing the actual content of the file data or the file information list data.
Preferably, the method described above, further comprising: and receiving a request for reading the local shared file sent by the non-local computer, confirming an actual path stored in the local shared file according to the local shared information, acquiring the content of the local shared file from the actual path, and sending the content to the non-local computer.
The invention also provides another chip device capable of accessing network shared files, which is connected to a computer of a local area network, and comprises: the interface module is used for realizing data transmission between the chip device and the computer; the storage module is used for setting a virtual server client function unit, an automatic operation function unit and a monitoring function unit; the automatic operation functional unit is used for automatically starting the virtual server client functional unit and the monitoring functional unit when the chip device is connected to the computer; the virtual server client function unit is used for creating a shared information list of shared files of all computers on the local area network and carrying out protocol data interaction with non-local computers on the local area network according to the content of the shared information list; and the monitoring function unit is used for terminating the operation of the virtual server client function unit and deleting the file related to the virtual server client function unit on the computer when the chip device is detected to be disconnected from the computer.
Preferably, in the chip device, the automatic operation functional unit is further configured to, when the chip device is connected to the computer, automatically copy the virtual server client functional unit and the monitoring functional unit to a temporary directory of the computer, and start the virtual server client functional unit and the monitoring functional unit from the temporary directory.
Preferably, the chip device described above, further includes: and the network connection module is used for data transmission with the non-local computer.
Preferably, in the chip device described above, the network connection module is a usb wireless network card, the storage module is a flash memory, the interface module is a usb hub, and the flash memory and the usb wireless network card are respectively connected to the usb hub.
Preferably, in the chip device, the virtual server client function unit includes: the communication protocol module is used for establishing a communication protocol for transmitting the shared file with the non-local computer, transmitting the local shared information of the computer to the non-local computer according to the protocol data transmission between the communication protocol and the non-local computer, acquiring the non-local network shared information of the non-local computer, transmitting a request for reading the non-local network shared file to the non-local computer and receiving the request for reading the local shared file by the non-local computer; and the virtual server client module is used for creating the shared information list according to the local shared information and the non-local network shared information, performing address resolution on a command of the computer for requesting to read the non-local network shared file according to the shared information list, obtaining a network shared address of a file or a directory to be read and computer information for sharing the file or the directory, performing data resolution on the command of the non-local computer for requesting to read the local shared file, obtaining content data of the file or the directory to be read, and sending an address resolution result or a data resolution result to the non-local computer through the communication protocol module.
Yet another aspect of the present invention provides a method for accessing a network shared file by using a chip device, the method comprising: the chip device is connected to a computer of a local area network; executing an automatic operation functional unit, and starting a virtual server client functional unit and a monitoring functional unit which are stored by the chip device; creating a shared information list of network shared files of each computer on the local area network through the virtual server client function unit, receiving a command that the computer reads a shared file or a directory in the shared information list on an execution interface of the virtual server client function unit, carrying out protocol data transmission with a non-local computer according to the information of the shared file or the directory, and obtaining the data content of the shared file or the directory on the computer.
Preferably, in the method, the step of executing the automatic operation function unit further includes: and storing the virtual server client function unit and the monitoring function unit to a temporary directory of the computer, and starting the virtual server client function unit and the monitoring function unit in the temporary directory.
Preferably, in the method, while the computer and the non-local computer perform protocol data transmission, a monitoring function unit monitors whether the chip device is connected to the computer, and when it is detected that the chip device is disconnected from the computer, the virtual server client function unit is terminated, and a file related to the virtual server client function unit on the computer is deleted.
At least one of the above technical solutions has the following advantages that the chip device and the method for accessing network shared files by using the device can automatically configure or uninstall the virtual server on the computer by using the chip device, and is convenient to use; preferably, when the chip device is arranged on a removable storage device, the advantage of plug and play of the removable storage device is utilized, when the removable storage device is connected to a computer, shared files on a virtual server in a local area network can be accessed through automatic network configuration, and when the removable storage device is separated from the computer, the virtual server configured in the computer by the chip device can be automatically cleared, so that the virtual server is configured and uninstalled by adopting the chip device without manually installing or uninstalling a software program, and the use is convenient for users.
Drawings
FIG. 1 is a schematic structural diagram of a network-accessible shared file chip apparatus according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of an operation of reading or writing a file at a local computer by using a memory module of a chip device according to a second embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating a process of reading a file shared by non-local computers on a local area network by using a chip device according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a chip device capable of accessing a network shared file according to a third embodiment of the present invention;
fig. 5 is a schematic flow chart illustrating a method for accessing a network shared file by using a chip device according to a second embodiment of the present invention;
FIG. 6 is a diagram illustrating a structure of a network-accessible shared file chip apparatus according to a fourth embodiment of the present invention;
fig. 7 is a schematic diagram of a start-up process of a chip apparatus according to a fourth embodiment of the invention;
fig. 8 is a flowchart illustrating a method for accessing a network shared file by using a chip device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
A specific embodiment of the present invention provides a chip device capable of accessing a local area network shared file, where configuration of a virtual server is automatically completed by using execution functions of components of the chip device, as shown in fig. 1, a chip device according to a first embodiment of the present invention includes:
the storage module is used for storing local sharing information of a local computer on the local area network;
the network connection module is used for data transmission with a non-local computer except the local computer on the local area network;
a control module, configured to configure a virtual server on the local computer, that is: the communication protocol is used for establishing a shared file transmission with the non-local computer, sending the local shared information to the non-local computer through the network connection module, acquiring the non-local network shared information of the non-local computer, establishing a shared information list by using the local shared information and the non-local network shared information, and performing protocol data transmission with the non-local computer according to the shared information list and the communication protocol.
Wherein the control module comprises: the communication protocol module is used for establishing a communication protocol for transmitting a shared file with the non-local computer, performing protocol data transmission with the non-local computer according to the communication protocol, sending the local shared information to the non-local computer, acquiring the non-local network shared information, sending a request for reading the non-local network shared file to the non-local computer, and receiving the request for reading the local shared file sent by the non-local computer;
and the virtual server client module is used for creating the shared information list, performing address analysis on a command of the local computer requesting to read the non-local network shared file according to the shared information list, obtaining a network shared address of a file or a directory to be read and computer information sharing the file or the directory, performing data analysis on the command of the non-local computer requesting to read the local shared file, obtaining content data of the file or the directory to be read, and sending the address analysis result or the data analysis result to the non-local computer through the communication protocol module.
The chip device formed by the storage module, the network connection module and the control module can be connected with a local computer in a plug-and-play mode and can also be fixedly arranged in the local computer. When the chip device is fixedly arranged in a local computer, the virtual server can be automatically configured in the local computer through the network connection module and the control module to generate a shared information list, when the virtual server is not used, the configuration of the virtual server is realized through executing firmware, so that only the shared information list needs to be closed, other operations do not need to be executed, and the running speed of each program in an operating system cannot be influenced by the existence of the chip device; preferably, the chip apparatus is configured in a plug-and-play manner, for example, the chip apparatus may be configured as a mobile storage device, when the mobile storage device is connected to the local computer, the virtual server may be automatically configured in the local computer through the above-mentioned hardware structure, and when the mobile storage device is separated from the local computer, the virtual server automatically disappears on the local computer, so that the method for accessing the local area network shared file by using the chip apparatus can solve the problem that the operation process is complicated when the client program of the server is manually installed or uninstalled for the user who temporarily uses the virtual server in the prior art.
It will be understood by those skilled in the art that when the chip apparatus is configured to be used as a mobile storage device, the chip apparatus further includes:
an interface module for data transmission between the storage module and the local computer; and the power supply module is used for supplying power to the chip device. In addition, the network connection module is preferably a wireless network module, and performs data transmission with a wireless network and a non-local computer.
In a second embodiment of the present invention, the usb disk capable of accessing network shared files includes: a Universal Serial Bus (USB) module, a Flash memory (Flash) module, a network connection module (preferably a wireless network connection module), and a control module.
When the USB flash disk with the structure is installed and used, the USB flash disk is connected into a local computer in a local area network through the USB module, automatically completes network configuration through the network connection module, and performs network communication with a non-local computer in the local area network. The USB flash disk is provided with a USB module and a storage module which are commonly owned by the USB flash disk, transmits an operation command from the local computer to the control module through the USB module, and copies files stored in the hard disk of the local computer to the storage module through the USB module, so that the USB flash disk has the function of storing the files; in addition, the U disk can also send the local shared information of the local computer to the non-local computer in the local area network through the network connection module, acquire the non-local network shared information of the non-local computer, and finish interface data transmission between the computers through the control module when the local computer reads the network shared file of the non-local computer or the non-local computer reads the local shared file of the local computer, so the U disk also has the function of configuring the virtual server.
In addition, the storage module has a common storage function, so that the U disk can be used as a common storage device. Specifically, the local computer sets a local shared file, and may share a file saved to the storage module through the USB module, share a file saved in a hard disk directory of the local computer, or share a file saved in the storage module and a file saved in the hard disk directory of the local computer at the same time. In the chip device according to the second embodiment of the present invention, sharing the files on the lan is realized by storing shared file information (including an actual path stored in the shared file) in the storage module, and sending the shared file information to a non-local computer on the lan through the control module.
In a second embodiment of the chip apparatus according to the present invention, the control module also includes a communication protocol module and a virtual server client module, and in the second embodiment of the chip apparatus according to the present invention, the communication protocol module is an internet flash protocol (IGRS) module, and the IGRS module is combined with the virtual server client module to complete the function of the control module. The IGRS module is used for establishing a communication protocol for transmitting a shared file with the non-local computer, performing protocol data transmission with the non-local computer on the local area network by using the communication protocol, acquiring non-local network shared information shared by the non-local computer on the local area network, sending a request for reading the network shared file to the non-local computer, and receiving a request for reading the local shared file of the local computer by the non-local computer; the virtual server client module is used for creating a sharing information list of files shared by each computer on a local area network, performing address or data analysis on the network sharing files of the non-local computers requested to be read by the local computers and the local sharing files requested to be read by the non-local computers according to the sharing information list, and sending analysis results to the non-local computers through the communication protocol module.
When the USB flash disk with the structure is connected with a local computer, the IGRS module sends requests to all computers which are configured with IGRS protocol stacks in a local area network through the network connection module, obtains information of shared files of the computers under a root directory, sends the information to the virtual server client module and creates a shared information list; and simultaneously, the IGRS module of the U disk sends the local sharing information stored in the storage module to a non-local computer through a network connection module, and files of the local computer are shared on the local area network to form a virtual server, so that file materials are shared and transmitted on the local area network.
Fig. 2 is a schematic flow chart illustrating a process of browsing a file shared by other computers with virtual servers on a local area network by using a chip device according to a second embodiment of the present invention.
In step S201, a user browses a directory a in a network information list stored in the usb disk at a local computer, where the directory a is a directory shared by a computer on the local area network through the virtual server.
In step S202, the local computer sends a disk read command to the virtual server client module through the USB module.
In step S203, after receiving the disk reading command, the virtual server client module obtains information such as shared device information (including device ID) of the directory a, and shared ID corresponding to the directory a according to the shared information list; then, the sharing ID of the directory A is packaged into data with a certain format, an interface provided by the IGRS module is called, and the IGRS module is instructed to send a request for acquiring the directory content to a sharing computer of the directory A;
in step S204, the IGRS module obtains a request for directory content (including the shared ID data of directory a) and sends the request to the shared computer to which the corresponding directory a belongs through an IGRS service call request;
in step S205, after receiving the request, the IGRS protocol stack (software) at the shared computer side including the directory a extracts the request data from the request, and transmits the request data to the virtual server of the shared computer;
in step S206, after receiving the request, the virtual server of the shared computer parses the actual directory corresponding to the directory a, reads the file list in the directory, packages the file information list into data in a certain format, and invokes an API (Application Programming Interface) provided by the IGRS protocol stack to instruct the IGRS protocol stack to send the file to the usb disk;
in step S207, the IGRS protocol stack of the shared computer sends the corresponding file information list data to the virtual server client module through the network connection module of the usb disk via the IGRS service invocation request;
in step S208, after receiving the response message, the IGRS module of the usb disk extracts data from the response message and returns the data to the virtual server client module;
in step S209, the virtual server client module of the USB disk parses out the actual content (the file information list in directory a) in the data, packages the data into a certain format, and returns the data to the local computer through the USB module;
at step S210, the local computer displays the data in a form on an interface (e.g., an explorer) for presentation to a user.
Similarly, when a non-local computer on the local area network wants to read a file shared by the local computer, the U disk receives a request of the non-local computer for reading the local shared file through the IGRS module, searches an actual path of the file or the directory to be read from the local shared information stored in the storage module, reads the content of the file or the directory from the actual path, packages the content according to a certain format, and sends the content to an IGRS protocol stack of the computer sending the request through the IGRS module to obtain the shared file of the local computer.
In addition, with the chip apparatus according to the second embodiment of the present invention, the operation of reading the memory module at the local computer end includes: directly copying files to the storage module, directly browsing or copying local shared files stored in the storage module, and browsing or copying shared files stored on a local computer hard disk through local shared information stored in the storage module. Referring to fig. 3, which is a schematic view of an operation flow of a user reading a file stored in a storage module in a local computer, when the control module receives a disk reading command from the user through the USB module in step S301, step S302 is executed downward;
step S302, judging whether the command is a read command or a write command, if the command is judged to be the read command, executing the step S303 downwards, and if the command is judged to be the write command, executing the step S307 downwards;
step S303, determining whether the file or directory to be read belongs to the local shared file, if the determination result is no, executing step S304, and if the determination result is yes, executing step S305;
step S304, directly reading the file or the directory from the storage module;
step S305, searching an actual path corresponding to a file or a directory to be read from the local shared information stored in the storage module;
step S306, reading the content of the file or the directory from the actual path, and returning to the local computer to display the file or the directory;
step S307, storing the content to be written into the storage module in the storage module, and executing step S308 downwards;
step S308, judging whether the written content is a file or shared file information, if the written content is judged to be the written file, executing step S309, and if the written content is judged to be the written shared file information, executing step S311;
step S309, determining whether the file to be written into the storage module is shared on the local area network, if yes, performing step S310, and if no, performing step S312;
step S310, obtaining information of a file to be shared, wherein the information comprises an actual file storage path, and storing the file information into a storage module;
step S311, the shared file information is issued to a non-local computer on a local area network through a control module;
in step S312, the process of reading the disk ends.
Thus, through the above steps, the local computer user can read the file stored in the usb disk, and also can write the file into the usb disk and share the file on the local area network.
With the chip device according to the second embodiment of the present invention, when the device is connected to a local computer, the device can be used as a general storage usb disk to store files in a storage module, and can also be configured with a virtual server at the same time, so as to read files shared by non-local computers on a local area network at the local computer. Different from the first embodiment, the chip device according to the third embodiment of the present invention is provided with a mode switching module, so that the storage function and the virtual server function of the chip device are used independently.
As shown in fig. 4, the mode switching module is connected to the control module, and is configured to control the working mode of the chip device, and divide the working mode of the chip device into a client mode and a sharing mode. In the client mode, the chip device can only be set to be used by a virtual server, a local computer is allowed to read all network shared files on the local area network, a non-local computer on the local area network is allowed to read the files shared by the local computer, and the files are prohibited to be copied to the storage module; in the sharing mode, the chip device is used as a common storage device, and can browse and copy the files stored in the storage module, and also can copy the files into the chip device.
Another aspect of the embodiments of the present invention is to provide a method for accessing network shared files by using a chip device, where when the chip device is connected to a local computer on a local area network, a virtual server is configured, and the virtual server reads files shared by the computers on the local area network. As in fig. 5, the method starts in step S501 and comprises:
step S502, connecting the chip device to a local computer of the local area network;
step S503, saving the local shared information of the local computer on the local area network to the chip device;
step S504, wireless network connection is carried out between the local area network and a non-local computer on the local area network, the local shared information is sent to the non-local computer, the non-local network shared information of the non-local computer is obtained, and a shared information list is created;
step S505, receiving a command for the local computer to read a directory or a file in the shared information list;
step S506, obtaining the network sharing address corresponding to the directory or the file and the sharing device information of the computer to which the directory or the file belongs from the sharing information list;
step S507, sending a request for obtaining the directory or file to a computer having the shared device information;
step S508, receiving the file information list data or the file data corresponding to the network sharing address, which is analyzed and sent by the computer with the sharing device information, and reading the content of the file information list or the file.
In addition, when receiving a request of the local computer for reading a directory or a file in the shared information list and performing protocol data transmission with the non-local computer, the method further comprises the steps of receiving the request of reading the local shared file sent by the non-local computer, confirming an actual path stored by the local shared file according to the local shared information, acquiring the data content of the local shared file from the actual path and then sending the data content to the computer which requests to read, so that the non-local computer can also read the file shared by the local computer through the chip device.
The fourth embodiment of the present invention further provides another chip device capable of accessing network shared files, in which a client program normally configured with a virtual server is combined with a common mobile storage device, the chip device is accessed to a computer and can automatically run the virtual client program, the virtual server is configured in the computer, and when the chip device is separated from the computer, the client program of the virtual server is automatically terminated, and relevant files are deleted without occupying the running space of the computer.
Specifically, the chip device according to the fourth embodiment of the present invention includes a storage module and an interface module, where the interface module is connected to a local computer to obtain power supply and implement data transmission between the chip device and the local computer; the storage module is internally provided with a virtual server client functional unit, an automatic operation functional unit and a monitoring functional unit, wherein the virtual server client functional unit is used for sending the shared file information of the local computer to the non-local computer on the local network, acquiring the non-local network shared information of the non-local computer, creating a shared information list, and performing data interaction with the non-local computer according to the content of the shared information list to realize the function of configuring the virtual server; the automatic operation (Autorun) functional unit is used for automatically starting the virtual server functional unit and the monitoring functional unit when the chip device is connected with the local computer, preferably, the automatic operation functional unit copies the two functional units into a temporary directory of the local computer before starting the virtual server client functional unit and the monitoring functional unit, and starts the two functional units from the temporary directory to avoid the abnormality of the functional units when the chip device is pulled out from the local computer; the monitoring function unit is used for monitoring whether the chip device is connected with the computer or not after the virtual server function unit is started to operate, and informing the computer to terminate the virtual server client function unit and delete related files and restore the original state of the local computer once the chip device is monitored to be disconnected from the local computer, so that the virtual server client function unit is prevented from occupying a memory when the virtual server is not used.
In the chip device according to the fourth embodiment of the present invention, a network connection module, preferably a wireless network module, is further included for automatically completing network configuration when the chip device is connected to the local computer. Specifically, the configuration information of the wireless network can be obtained in two ways, one is that when the chip device is used for the first time, the device is connected with a computer which is already configured with the wireless network, and the wireless network configuration information is obtained from the computer; another method is to use a pairing method of NFC (near field communication) under the support of a wireless access point and a network card.
In a fourth embodiment of the present invention, as shown in fig. 6, the storage module is disposed in a USB storage device, the network connection module is a USB wireless network card, the interface module is a USB hub, and the USB storage device and the USB wireless network card are connected to the USB hub and connected to the local computer through the USB hub.
As described above, the chip device according to the fourth embodiment of the present invention is automatically started after being connected to the computer, and the virtual server is configured, and the specific starting process is shown in fig. 7.
In step S702, copying the virtual server client function unit and the monitoring function unit to a temporary directory of the local computer;
in step S703, the wireless network configuration is completed;
in step S704, the virtual server client function unit and the monitoring function unit in the temporary directory are started;
in step S705, the above-described startup process is completed.
Through the above process, the virtual server client functional unit and the monitoring functional unit start to operate, and at this time, the local computer can browse and copy the file shared by the non-local computers on the local area network through the virtual server client functional unit.
Specifically, the virtual server client function unit includes a client module and a communication protocol module, and in a fourth embodiment of the present invention, the communication protocol module is an IGRS protocol stack module. After receiving a command of a user to read a shared file on a local area network, the client module is used for acquiring information such as shared computer information (including an equipment address) of the file to be read by the command, a network shared address corresponding to the file and the like from a shared information list; the IGRS protocol stack module is used for sending the network sharing address data of the file to another sharing computer so as to acquire the content of the file. Here, the execution process of reading a shared file on a local area network by using a virtual server configured by the chip apparatus according to the fourth embodiment of the present invention is the same as that of the second embodiment, and is not described in detail here.
In addition, another aspect of the specific embodiment of the present invention provides a method for accessing a network shared file by using a chip device, as shown in fig. 8, where the method starts at step S801 and includes:
step S802, the chip device is connected to a local computer of the local area network to obtain power supply;
step S803, executing an automatic operation function unit, storing the virtual server client function unit and the monitoring function unit in a temporary directory of the local computer, and starting the virtual server client function unit and the monitoring function unit in the temporary directory;
step S804, a sharing information list of the shared files of each computer on the local area network is created through the virtual server client function unit;
step S805, receiving a command for the local computer to read a shared file or directory in the shared information list at an interface of the virtual server client function unit;
step S806, according to the information of the shared file or directory, performing protocol data transmission with the non-local computer, and obtaining the data content of the shared file or directory on the local computer.
When the method executes step S805 and step S806, and the local computer performs protocol data transmission with the non-local computer, the method further monitors whether the chip device is connected to the local computer through a monitoring function unit, and when it is detected that the chip device is disconnected from the local computer, the virtual server client function unit is terminated, and a file on the local computer related to the virtual server client function unit is deleted.
In summary, the chip device and the method for accessing network shared files using the same according to the embodiments of the present invention utilize the advantage of plug and play of the mobile storage device, when the chip device is connected to the computer, a virtual server may be set in the computer to access shared files on the virtual server in the lan, and file information shared by other devices may be obtained, and when the chip device is separated from the computer, the virtual server configured in the computer by the chip device is automatically cleared, and does not occupy space.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (16)

1. A chip apparatus, connected to a computer in a local area network, for accessing a shared file in the local area network, the chip apparatus comprising:
the storage module is used for storing the local sharing information of the computer on the local area network;
the network connection module is used for data transmission with a non-local computer except the computer on the local area network;
the control module is used for establishing a communication protocol for transmitting a shared file with the non-local computer, sending the local shared information to the non-local computer through the network connection module, acquiring the non-local network shared information of the non-local computer, creating a shared information list by using the local shared information and the non-local network shared information, and transmitting protocol data with the non-local computer according to the shared information list and the communication protocol.
2. The chip apparatus of claim 1, wherein the control module comprises:
the communication protocol module is used for establishing a communication protocol for transmitting a shared file with the non-local computer, performing protocol data transmission with the non-local computer according to the communication protocol, sending the local shared information to the non-local computer, acquiring the non-local network shared information, sending a request for reading the non-local network shared file to the non-local computer, and receiving the request for reading the local shared file sent by the non-local computer;
and the virtual server client module is used for creating the shared information list, performing address analysis on a command of the computer requesting to read the non-local network shared file according to the shared information list, obtaining a network shared address of a file or a directory to be read and computer information sharing the file or the directory, performing data analysis on the command of the non-local computer requesting to read the local shared file, obtaining content data of the file or the directory to be read, and sending an address analysis result or a data analysis result to the non-local computer through the communication protocol module.
3. The chip apparatus according to claim 2, wherein the computer receives the data content fed back by the non-local computer after issuing a command requesting to read the non-local network shared file, and the virtual server client module is further configured to parse the data content fed back by the non-local computer, obtain the actual content of the file or directory to be read, and feed back the actual content to the computer.
4. The chip apparatus of claim 1, wherein the chip apparatus further comprises:
the interface module is used for data transmission between the storage module and the computer;
and the power supply module is used for supplying power to the chip device.
5. The chip apparatus of claim 1, wherein the chip apparatus further comprises:
and the universal serial bus module is used for being connected with the computer to obtain power supply and realizing data transmission between the storage module and the computer.
6. The chip apparatus of claim 1, wherein the storage module is further configured to save the local shared file of the computer.
7. A method for accessing a local area network shared file by using a chip device, the method comprising:
the chip device is connected to a computer of a local area network;
establishing a communication protocol for transmitting a shared file between the chip device and a non-local computer on the local area network, performing network connection with the non-local computer, sending local shared information stored on the computer to the non-local computer, acquiring non-local network shared information of the non-local computer, and creating a shared information list by using the local shared information and the non-local network shared information;
receiving a command that the computer reads a shared file or a directory in the shared information list, and carrying out data transmission with the non-local computer by using the communication protocol according to the information of the shared file or the directory to obtain the data content of the shared file or the directory on the computer.
8. The method of claim 7, wherein the step of communicating data with the non-native computer using the communication protocol based on information of the shared file or directory comprises:
reading a network sharing address corresponding to the shared file or directory and sharing equipment information of a computer to which the shared file or directory belongs from the sharing information list;
sending a request for obtaining the shared file or the shared directory to a computer with the shared device information;
receiving file data or file information list data which are analyzed and sent by a computer with the sharing equipment information and correspond to the network sharing address;
and analyzing the actual content of the file data or the file information list data.
9. The method of claim 7, wherein the method further comprises:
and receiving a request for reading the local shared file sent by the non-local computer, confirming an actual path stored in the local shared file according to the local shared information, acquiring the content of the local shared file from the actual path, and sending the content to the non-local computer.
10. A chip device capable of accessing network shared files, connected to a computer of a local area network, the chip device comprising:
the interface module is used for realizing data transmission between the chip device and the computer;
the network connection module is used for data transmission with a non-local computer except the computer on the local area network;
the system comprises a storage module, a monitoring module and a control module, wherein the storage module is internally provided with a virtual server client function unit, an automatic operation function unit and a monitoring function unit; wherein,
the automatic operation functional unit is used for automatically starting the virtual server client functional unit and the monitoring functional unit when the chip device is connected to the computer;
the virtual server client function unit is used for sending local sharing information to the non-local computer through the network connection module, acquiring non-local network sharing information of the non-local computer, creating a sharing information list of shared files of each computer on the local network by using the local sharing information and the non-local network sharing information, and performing protocol data interaction with the non-local computer on the local network according to the content of the sharing information list;
and the monitoring function unit is used for terminating the operation of the virtual server client function unit and deleting the file related to the virtual server client function unit on the computer when the chip device is detected to be disconnected from the computer.
11. The chip apparatus according to claim 10, wherein the autorun function unit is further configured to, when the chip apparatus is connected to the computer, automatically copy the virtual server client function unit and the monitor function unit to a temporary directory of the computer, and start the virtual server client function unit and the monitor function unit from the temporary directory.
12. The chip apparatus according to claim 10, wherein the network connection module is a usb wireless network card, the storage module is a flash memory, the interface module is a usb hub, and the flash memory and the usb wireless network card are respectively connected to the usb hub.
13. The chip apparatus of claim 10, wherein the virtual server client function unit comprises:
the communication protocol module is used for establishing a communication protocol for transmitting the shared file with the non-local computer, transmitting the local shared information of the computer to the non-local computer according to the protocol data transmission between the communication protocol and the non-local computer, acquiring the non-local network shared information of the non-local computer, transmitting a request for reading the non-local network shared file to the non-local computer and receiving the request for reading the local shared file by the non-local computer;
and the virtual server client module is used for creating the shared information list according to the local shared information and the non-local network shared information, performing address resolution on a command of the computer for requesting to read the non-local network shared file according to the shared information list, obtaining a network shared address of a file or a directory to be read and computer information for sharing the file or the directory, performing data resolution on the command of the non-local computer for requesting to read the local shared file, obtaining content data of the file or the directory to be read, and sending an address resolution result or a data resolution result to the non-local computer through the communication protocol module.
14. A method for accessing network shared files by using the chip device of any one of claims 10 to 13, the method comprising:
the chip device is connected to a computer of a local area network;
the chip device starts a virtual server client functional unit and a monitoring functional unit which are stored by the chip device by executing an automatic operation functional unit;
the virtual server client function unit sends local shared information to the non-local computer through a network connection module, acquires non-local network shared information of the non-local computer, creates a shared information list of network shared files of each computer on the local network by using the local shared information and the non-local network shared information, receives a command that the computer reads a shared file or a directory in the shared information list on an execution interface of the virtual server client function unit, performs protocol data transmission with the non-local computer according to the shared file or directory information, and acquires data content of the shared file or directory on the computer.
15. The method of claim 14, wherein the step of executing the autorun function further comprises:
and storing the virtual server client function unit and the monitoring function unit to a temporary directory of the computer, and starting the virtual server client function unit and the monitoring function unit in the temporary directory.
16. The method of claim 14, wherein the computer performs protocol data transmission with the non-native computer while monitoring whether the chip device remains connected to the computer via a monitor function, and wherein the virtual server client function is terminated and a file on the computer associated with the virtual server client function is deleted when the chip device is detected to be disconnected from the computer.
CN2008102232953A 2008-09-28 2008-09-28 Chip device and method of accessing network shared files by using same Active CN101686165B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102232953A CN101686165B (en) 2008-09-28 2008-09-28 Chip device and method of accessing network shared files by using same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102232953A CN101686165B (en) 2008-09-28 2008-09-28 Chip device and method of accessing network shared files by using same

Publications (2)

Publication Number Publication Date
CN101686165A CN101686165A (en) 2010-03-31
CN101686165B true CN101686165B (en) 2012-08-22

Family

ID=42049149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102232953A Active CN101686165B (en) 2008-09-28 2008-09-28 Chip device and method of accessing network shared files by using same

Country Status (1)

Country Link
CN (1) CN101686165B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102427476A (en) * 2011-12-13 2012-04-25 方正国际软件有限公司 Wireless cloud storage module
CN102497426A (en) * 2011-12-13 2012-06-13 方正国际软件有限公司 Wireless cloud storage card
CN103457906A (en) * 2012-05-28 2013-12-18 北京同步科技有限公司 Network data sharing system and network data sharing method
CN105791333A (en) * 2014-12-17 2016-07-20 深圳云之家网络有限公司 Business processing method and client
CN106341905B (en) * 2016-08-31 2019-09-20 广州视睿电子科技有限公司 File sharing method, equipment and system based on wireless network
CN107172082B (en) * 2017-06-29 2020-10-23 苏州浪潮智能科技有限公司 File sharing method and system
CN107403001A (en) * 2017-07-07 2017-11-28 齐鲁工业大学 A kind of computer management device based on artificial intelligence design
CN108023945A (en) * 2017-11-30 2018-05-11 福建中金在线信息科技有限公司 A kind of method and apparatus of information sharing

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1677979A (en) * 2004-04-01 2005-10-05 微软公司 System and method for sharing objects between computers over a network
CN101163133A (en) * 2006-10-10 2008-04-16 中国科学院计算技术研究所 Communication system and method of implementing resource sharing under multi-machine virtual environment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1677979A (en) * 2004-04-01 2005-10-05 微软公司 System and method for sharing objects between computers over a network
CN101163133A (en) * 2006-10-10 2008-04-16 中国科学院计算技术研究所 Communication system and method of implementing resource sharing under multi-machine virtual environment

Also Published As

Publication number Publication date
CN101686165A (en) 2010-03-31

Similar Documents

Publication Publication Date Title
CN101686165B (en) Chip device and method of accessing network shared files by using same
US8533352B2 (en) Method for internet access and for communication
JP4805116B2 (en) Information processing system, information processing system control method, service using device, and service providing device
JP4900760B2 (en) OS image deployment machine and method
CN100385395C (en) Method and apparatus for booting with remote configuration data
EP1717700A2 (en) Multimedia devices with enhanced functionality
JP2008532161A (en) Driver installation
JP2005085278A (en) System and method for communication between computers through integrated hardware device
CN105291613A (en) Information processing device, and control method for information processing device
US20100077396A1 (en) Portable storage device for supporting portable computing system and portable computing based system using the same
JP2001256170A (en) Peripheral device and printer
CN108205504B (en) Terminal USB mapping method, virtual machine USB mapping method and system
JP2017107307A (en) Apparatus, information processing system, information processing method, and program
JP2002215340A (en) Data server system, computer device, and storage medium
JP2005141721A (en) Method and system for automatically installing application program
JP2010219725A (en) Network device and method of releasing external storage device on network
JP2008159033A (en) Electronic apparatus and information processing system
JP2010039684A (en) Image forming apparatus, information processing apparatus, data processing method, and program
WO2014136429A1 (en) Information processing apparatus and method for the same
JP7348815B2 (en) Information processing device and file recording method
CN109471665B (en) Method for automatically installing Windows operating system
JP6930278B2 (en) Multifunction device, reboot method, and computer program
KR20130028478A (en) Management server, host device, and method for management of application
JP7455613B2 (en) Information processing device, its control method, and program
JP2006293638A (en) Information processor and peripheral equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant