Computer unmanned device and method of applying computer unmanned device

By designing a computer unmanned control device that combines USB-HID and USB-MSC functions, the problem of the computer being unable to continue operating after a restart is solved, realizing automated operation and low-power unmanned computer control, and is compatible with multiple operating systems.

CN115757228BActive Publication Date: 2026-02-10BEIJING AEROSPACE CHENXIN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211347565.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-31
Publication Date
2026-02-10
Estimated Expiration
2042-10-31

AI Technical Summary

Technical Problem

Existing USB-HID and USB-MSC devices cannot continue unfinished operations after a computer restart, and hardware devices that cannot perform both types of functions cannot operate their own USB-MSC devices, resulting in low efficiency of mechanical computer operation.

Method used

A computer-controlled unmanned device was designed, which combines USB-HID and USB-MSC functions and uses an embedded software system to simulate keyboard and mouse operations and storage module operations. The device can continue to execute scripts after the computer restarts and is compatible with multiple operating systems.

Benefits of technology

It enables automatic continuation of operations after a computer restart, reducing overall power consumption and cost, and features non-intrusive operation while being compatible with multiple operating systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115757228B_ABST
    Figure CN115757228B_ABST
Patent Text Reader

Abstract

The application relates to a computer unmanned device and a method for applying the computer unmanned device, and relates to the technical field of computers, and comprises the following steps: a storage module is connected with a power module; a main control module reads and writes scripts based on a software system through a FAFS file system; the computer unmanned control device is controlled to realize the work determined by the scripts; the power module takes an external power supply introduced through a USB interface as power input to supply power to the computer unmanned control device; when the scripts are executed, the computer is simulated to be operated by a keyboard and a mouse, or the storage module is operated, or the work determined by the scripts is continuously executed after the computer is restarted or data interaction is interrupted and recovered. The application simultaneously has two types of functions of USB-HID and USB-MSC, can realize computer unmanned operation, and can continuously complete the work determined by the scripts after the computer is restarted or data interaction is interrupted and recovered. The application has simple structure, low overall power consumption and low cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a computer unmanned device and a method for using the computer unmanned device. Background Technology

[0002] Currently, devices such as USB-HID and USB-MSC are widely used. USB-HID (Human Interface Device) is a human-computer interaction device; any USB device that conforms to the HID category specification is an HID device, including USB mice, USB keyboards, and USB printers. USB-MSC (The USB Mass Storage device Class) is a transmission protocol between computers and mobile devices. It allows a Universal Serial Bus (USB) device to access a host computing device, enabling file transfer between the two. The USB Mass Storage device class includes communication protocol definitions and computing capabilities for Universal Serial Bus operation.

[0003] In daily life and across various industries, there are numerous repetitive and mechanical computer operations that consume significant human resources and reduce work and productivity. To address these issues, a plethora of solutions have emerged, such as RPA (Robotic Process Automation) and software like AutoHotkey. While these programs can solve the problems, they also have limitations. For instance, RPA has high deployment costs, long deployment cycles, and requires the installation of corresponding tools on the computer; while AutoHotkey is incompatible with different operating systems and cannot continue running after a computer restart.

[0004] Currently, standalone USB-HID functionality cannot replace the aforementioned software to complete a large number of repetitive and mechanical computer operations. Furthermore, even when both standalone USB-HID and USB-MSC devices are used on the same computer, they cannot continue operations not completed before the restart after a computer reboot. Since there are no hardware devices that simultaneously possess both USB-HID and USB-MSC functions, it is also impossible for any hardware device to utilize its own USB-HID functionality to operate its internal USB-MSC. Summary of the Invention

[0005] In view of the above problems, the present invention provides a computer-controlled unmanned device and a method for using the computer-controlled unmanned device, thereby solving the above problems.

[0006] This invention provides a computer-controlled unmanned device, which includes a main control module, a storage module, a power module, and a USB interface; the computer-controlled unmanned device runs an embedded software system.

[0007] The storage module is connected to the power module, and the storage module is used to receive and store scripts and external files.

[0008] The main control module is connected to the storage module, the power module and the USB interface respectively. The main control module is based on an embedded software system, reads and writes the script through the FAFS file system, and controls the computer unmanned control device to realize the predetermined work of the script.

[0009] The power module is connected to the USB interface. The power module uses the external power introduced through the USB interface as its own power input and supplies power to the computer unmanned control device.

[0010] The USB interface is configured to provide a data interface for the computer unmanned control device and the computer while introducing the external power supply, so as to realize data interaction.

[0011] When the script is executed, it simulates keyboard and mouse operations on the computer, or operates the storage module, or continues to perform the script's intended work after the computer restarts or after data interaction is interrupted and resumed.

[0012] Optionally, the real-time operating system includes: a driver layer, a middleware layer, and an application layer;

[0013] The driver layer is used to implement the basic functions of the computer unmanned device and is configured with a USB-HID driver and a USB-MSC driver. The USB-HID driver and the USB-MSC driver enable the computer unmanned device to become a USB-HID device and a USB-MSC device, respectively, in accordance with the standards of the USB-HID class and the USB-MSC class.

[0014] The middleware layer includes: a combination of USB-HID and USB-MSC, and the porting of the FATFS file system. The combination of USB-HID and USB-MSC enables the unmanned computer device to simultaneously conform to the standards of the USB-HID and USB-MSC classes, and is the basis for the unmanned computer device to read and write the script and output the "HID Input Report". The porting of the FATFS file system enables the unmanned computer device to read and write the script and the external file.

[0015] The application layer is used to implement the specific functions of the computer unmanned device.

[0016] Optionally, the specific functions of the computer unmanned device include: input mode function, output mode function, and recording function;

[0017] The input mode function is based on the standard implementation of the USB-MSC class and realizes the storage function of the computer unmanned device. This function is used to copy and store the script.

[0018] The output mode function is based on the standard implementation of the USB-HID class, realizing the HID function of the computer unmanned device. This function outputs USB information by reading, writing and recognizing the information of the script, which is used to simulate keyboard and mouse operation of the computer, or to operate the storage module, or to continue to execute the predetermined work of the script after the computer restarts or after data interaction is interrupted and resumed.

[0019] The recording function is used to record the operation results of the computer unmanned equipment and its own fault information.

[0020] Optionally, the script information includes: instruction information and data information;

[0021] The instruction information is used by the unmanned computer control device to successfully read, write, and execute the script;

[0022] The data information includes: an information header and the character code of the "HID input report" sent by the computer unmanned control device to the computer, or the data information includes: an information header, file operation command encoding, and operation content encoding;

[0023] The data information categories include: keyboard data information, mouse data information, and storage operation data information, and the information header is used to distinguish different information categories;

[0024] The character code of the "HID Input Report" exists in the keyboard data information and the mouse data information, and is used to control the computer in order to achieve the purpose of simulating mouse and keyboard operation of the computer;

[0025] The file operation command encoding and the operation content encoding exist in the storage operation data information and are used to operate the storage module. The operation content encoding is the encoding of various file operation commands in the FATFS file system, and the operation content encoding refers to the specific content of the file operation command.

[0026] Optionally, the indication information includes: file position information, file end information, and delay information;

[0027] The file location information includes: information header, script quantity information, script line number information, and read / write flags;

[0028] The file end information includes: a message header, script quantity information, and read / write flags;

[0029] The delay information includes: an information header and delay parameters;

[0030] The computer unmanned control device determines whether the script has been completed and whether there are other scripts to be executed by reading and writing the file position information and the file end information. When the computer restarts or the data interaction is interrupted and then resumed, the computer unmanned control device continues to execute the subsequent predetermined work of the script by using the read and write flags.

[0031] The delay information is used to set a delay for control commands.

[0032] Optionally, when the computer-controlled unmanned device is in the output mode function, it reads and writes the storage module through the script, identifies and selects the file to be processed according to the predetermined work of the script, and performs the corresponding operation on the selected file to be processed.

[0033] Optionally, the computer-controlled unmanned device further includes: indicator lights and buttons;

[0034] The indicator light is controlled by the main control module and is used to display the working status of the computer-controlled unmanned device;

[0035] The buttons include a DIP switch or a selection switch, and the buttons are used to select the specific functions of the computer unmanned device.

[0036] Optionally, the computer-controlled unmanned device utilizes the USB protocol, enabling it to be non-intrusive and compatible with Windows, Linux, and Mac OS operating systems.

[0037] This invention also provides a method for using the above-mentioned unmanned computer control device, the method comprising: the power module in the unmanned computer control device receiving electrical energy from an external input power source via a USB interface;

[0038] The main control module in the computer unmanned control device determines the specific function of the computer unmanned device based on the information of the selection signal, wherein the selection signal comes from the button in the computer unmanned control device;

[0039] According to the specific functions, the main control module can copy the script, simulate keyboard and mouse operations on the computer, continue to execute the script's predetermined work after the computer restarts or after data interaction is interrupted and resumed, or operate the storage module in the unmanned computer control device and record the operation results and fault information of the unmanned computer device.

[0040] Optionally, the main control module, according to the specific function, implements script copying, simulates keyboard and mouse operations on the computer, and enables the script to continue its predetermined work after a computer restart or data interaction interruption and recovery, thereby operating the storage module in the unmanned computer control device, including:

[0041] If the information of the selection signal indicates that the specific function is an input mode function, then the main control module uses the USB interface in the computer unmanned device to copy the script from the host computer into the storage module based on the USB-MSC standard;

[0042] After the script is copied into the storage module, the main control module controls the computer unmanned device to eject the device storage; or,

[0043] If the information of the selection signal indicates that the specific function is an output mode function, then the main control module uses the USB interface in the computer unmanned device to perform the predetermined work in the execution script information based on the standard of the USB-HID class, so as to realize the simulation of keyboard and mouse operation of the computer, or to continue to execute the predetermined work of the script after the computer restarts or after the data interaction is interrupted and resumed;

[0044] After completing the predetermined tasks in the script information, the main control module controls the power module to enter sleep mode; or,

[0045] If the information of the selection signal indicates that the specific function is an output mode function, then the main control module performs the predetermined work in the script information by reading and writing the script to operate the storage module;

[0046] After completing the predetermined tasks in the script information, the main control module controls the power module to enter sleep mode.

[0047] The computer-controlled unmanned device provided by the present invention includes: a main control module, a storage module, a power supply module, and a USB interface; the computer-controlled unmanned device runs an embedded software system; the storage module is connected to the power supply module and is used to receive and store scripts and external files.

[0048] The main control module is connected to the storage module, power module, and USB interface. Based on an embedded software system, the main control module reads and writes scripts through the FAFS file system to control the unmanned computer-controlled device to perform the tasks defined in the scripts. The power module is connected to the USB interface, using external power supplied through the USB interface as the power input for the unmanned computer-controlled device and providing it with power. The USB interface is configured to simultaneously provide a data interface between the unmanned computer-controlled device and the computer, enabling data exchange.

[0049] When the script is executed, it can simulate keyboard and mouse operations on the computer, operate the FATFS file system in the storage module, or continue to perform the script's intended work after the computer restarts or after data interaction is interrupted and resumed.

[0050] The computer-controlled unmanned device proposed in this invention combines the functions of both USB-HID and USB-MSC. Utilizing a combination of USB-HID and USB-MSC, along with an embedded software system, it simulates keyboard and mouse operations on the computer and its own storage module based on script information. This achieves unmanned operation of both the computer and the storage module, and allows the device to continue its pre-defined tasks even after a computer restart or a data exchange interruption and recovery. Based on the characteristics of USB, the computer-controlled unmanned device is non-intrusive, requiring no additional drivers or software to be installed on the controlled computer, ensuring its independence. The device is also compatible with various operating systems such as Windows, Linux, and Mac OS. Due to its simple structure, the computer-controlled unmanned device has low overall power consumption and low cost. Attached Figure Description

[0051] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0052] Figure 1 This is a schematic diagram of the structure of a computer-controlled unmanned device according to an embodiment of the present invention;

[0053] Figure 2 This is a flowchart of a method for applying a computer-controlled unmanned device according to an embodiment of the present invention. Detailed Implementation

[0054] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present invention, and are only some, not all, embodiments of the present invention, and are not intended to limit the present invention.

[0055] The inventors discovered that while devices with USB-HID and USB-MSC functionalities are widely used in the market, these devices typically only possess one type of functionality. For example, USB mice and keyboards only have USB-HID functionality, not USB-MSC functionality. Similarly, USB flash drives only have USB-MSC functionality, not USB-HID functionality. Furthermore, the standalone USB-HID functionality cannot replace the aforementioned software to complete a large number of repetitive, mechanical computer operations; RPA, keyboard and mouse wizards, and other similar software are still required. Moreover, even when independent USB-HID and USB-MSC devices are used on the same computer, they cannot resume operations not completed before the computer restarts. For instance, if a computer is simultaneously connected to a USB mouse, keyboard, and USB flash drive, and keyboard and mouse wizard software is being used to copy different images, documents, and other data from various hard drives to the USB flash drive, if the computer loses power and restarts for any reason, or if the copying process is interrupted and then resumed for any reason, the copying of different images, documents, and other data from various hard drives to the USB flash drive will not automatically resume.

[0056] Furthermore, since there is no hardware device that simultaneously possesses both USB-HID and USB-MSC functions, it is naturally impossible for any hardware device to operate its own internal USB-MSC using its USB-HID-like functions.

[0057] To address the aforementioned problems, the inventors, through in-depth research and extensive practical testing and simulation experiments, creatively proposed the computer-controlled unmanned device of this invention, simultaneously solving multiple issues. The following provides a detailed explanation and description of the invention's solution.

[0058] The unmanned computer control device of this invention includes: a main control module, a storage module, a power supply module, and a USB interface; the unmanned computer control device runs an embedded software system; the storage module is connected to the power supply module and is used to receive and store scripts and external files.

[0059] The main control module, storage module, power module, and USB interface are connected separately. The main control module, based on an embedded software system and combined with scripts, controls the unmanned computer-controlled device to perform the tasks predetermined by the scripts. The power module is connected to the USB interface, and the external power supply introduced through the USB interface serves as the power input for the unmanned computer-controlled device, powering it. The USB interface is configured to simultaneously introduce external power and provide a data interface between the unmanned computer-controlled device and the computer, enabling data exchange. Normally, the unmanned computer-controlled device connects to the computer via the USB interface, therefore the computer powers the unmanned computer-controlled device. In other words, the power module uses the power supplied by the computer's USB interface as its own power input to power the unmanned computer-controlled device; simultaneously, the USB interface also provides a data interface between the unmanned computer-controlled device and the computer, enabling data exchange.

[0060] When the script of the computer-controlled unmanned device is executed, it can simulate keyboard and mouse operations on the computer, operate the storage module, or continue to perform the predetermined work of the script after the computer restarts or after data interaction is interrupted and resumed.

[0061] In this embodiment of the invention, the MCU module is preferably used as the main control module, and the FLASH module is preferably used as the storage module. (Refer to...) Figure 1 This diagram illustrates the structure of a computer-controlled unmanned device according to an embodiment of the present invention. The MCU module is connected to the FLASH module, the power supply module, and the USB interface, respectively. The power supply module is connected to the USB interface, and both the MCU module and the power supply module are connected to the target computer via the USB interface. The power supply module is also connected to the FLASH module, providing it with power. It should be noted that the USB interface typically provides 5V, while the MCU module and FLASH module operate at 3.3V. Therefore, the power supply module needs to convert the 5V voltage to 3.3V. The MCU module and the USB interface are generally connected via USB pins. Figure 1 The script is illustratively displayed on the outside of the computer-controlled unmanned device, meaning that the script is copied into and stored in the FLASH module of the computer-controlled unmanned device via USB interface, and the script is used by a third-party device ( Figure 1 The script (not shown) was written using a device that is not designed for the target computer. Third-party devices can be devices with scripting capabilities, including but not limited to: PCs, servers, laptops, tablets, smartphones, industrial PCs, and robots.

[0062] In this embodiment of the invention, an embedded software system runs in the computer unmanned control device; the embedded software system includes: a driver layer, a middleware layer, and an application layer.

[0063] The driver layer is used to implement the basic functions of the computer unmanned device and is configured with USB-HID driver and USB-MSC driver. The USB-HID driver and USB-MSC driver enable the computer unmanned device to become a USB-HID device and a USB-MSC device, conforming to the standards of the USB-HID class and USB-MSC class.

[0064] The middleware layer includes: the combination of USB-HID and USB-MSC, and the porting of the FATFS file system. The combination of USB-HID and USB-MSC is used to enable unmanned computer devices to conform to both USB-HID and USB-MSC standards, and is the basis for unmanned computer devices to read and write scripts and output HID input reports. The porting of the FATFS file system is used to enable unmanned computer devices to read and write scripts and external files.

[0065] The application layer is used to implement the specific functions of the computer-controlled unmanned device. These functions include: input mode functions, output mode functions, and recording functions.

[0066] The input mode function is based on the USB-MSC class standard and enables the storage function of the unmanned computer device. This function is used to copy and store scripts. Since different scripts implement different functions, the unmanned computer device needs to have an input module to facilitate the copying of different scripts and achieve different functions; otherwise, the unmanned computer device can only perform one function, which is quite limiting.

[0067] The output mode function is based on the standard implementation of the USB-HID class, realizing the HID function of unmanned computer devices. This function outputs USB information by reading, writing, and recognizing script information, and is used to simulate keyboard and mouse operations on the computer, such as implementing the functions of RPA, keyboard and mouse wizards, etc. Alternatively, the output mode function can be used to continue the script's predetermined work after the computer restarts or after data interaction is interrupted and resumed.

[0068] It's important to note that enabling the scripts to continue executing their predetermined tasks after a computer restart or a data interaction interruption and subsequent recovery may require multiple scripts. These scripts need to have a continuous relationship, achieved through code compilation. For example, using an unmanned computer control device to automatically install Windows on a target computer typically requires 2-3 restarts during the Windows installation process. Therefore, 2-3 scripts can be written to handle the keyboard and mouse operations during the installation and the automatic restart of the target computer. The unmanned computer control device can then use these scripts to continue executing their predetermined tasks after the target computer automatically restarts during the Windows installation process, ultimately completing the automatic installation of Windows on the target computer.

[0069] The output mode function can also operate the computer's own storage module. That is, using... Figure 1 In the structure shown, the MCU module executes script information and operates the FLASH module through the FTAFS file system. For example, if the FLASH module already stores a large number of photos and needs to batch process them, the photos are renamed according to their file size, in ascending order, as shown in Figure 0. Figure 1 , Figure 2 …Figure N. The MCU module read / write script then manipulates the photos in the FLASH module (equivalent to USB-MSC), renaming all photos in ascending order of their file size to Figure 0. Figure 1 , Figure 2 …Figure N.

[0070] The final recording function is used to record the operational results and fault information of the computer-controlled unmanned equipment. This allows for timely recording of relevant information when the unmanned equipment malfunctions or when scripts execute incorrectly, which is beneficial for the maintenance of the computer-controlled unmanned equipment.

[0071] In this embodiment of the invention, the preferred script information includes: instruction information and data information; the instruction information is used by the unmanned computer control device to smoothly read, write, and execute the script; the data information includes: an information header and the character code of the HID input report sent by the unmanned computer control device to the computer. Alternatively, the data information includes: an information header, file operation command encoding, and operation content encoding.

[0072] Data information categories include: keyboard data information, mouse data information, and storage operation data information. Information headers are used to distinguish different information categories; this allows unmanned computer control devices to correctly simulate keyboard and mouse functions and operate files in the storage module. The character codes of the HID input report exist in the keyboard and mouse data information and are used to control the computer to achieve the purpose of simulating mouse and keyboard operations. File operation command encoding and operation content encoding exist in the storage operation data information and are used to operate the storage module. The operation content encoding refers to the encoding of various file operation commands in the FATFS file system, and the operation content encoding refers to the specific content of the file operation command.

[0073] The indication information includes: file location information, file end information, and delay information; the file location information includes: information header, script quantity information, script line number information, and read / write flags.

[0074] The file end information includes: a header message, script quantity information, and read / write flags; the delay information includes: a header message and delay parameters. The unmanned computer control device determines whether a script has finished executing and whether there are other scripts to execute by reading and writing the file position and end-of-file information. In this way, after a computer restart or a data exchange interruption and subsequent recovery, the unmanned computer control device continues to execute the script's subsequent planned tasks based on the read / write flags. The delay information is naturally used to set delays for control commands. Understandably, a longer delay results in lower efficiency for the unmanned computer control device, and a shorter delay results in higher efficiency, but the latter consumes more power than the former.

[0075] The operation storage module enables the computer-controlled unmanned device to be in output mode. By reading and writing scripts, the device identifies and selects files to be processed according to the pre-defined tasks in the scripts, and performs corresponding operations on the selected files.

[0076] The computer-controlled unmanned device in this embodiment of the invention further includes: indicator lights and buttons; the indicator lights are controlled by the main control module and are used to display the working status of the computer-controlled unmanned device. For example, the computer-controlled unmanned device lights up green when working normally, lights up red when malfunctioning, and lights up blue after the work corresponding to the script has been completed, etc.

[0077] The buttons include: DIP switches or selector switches. The buttons are used to select the specific function of the computer unmanned equipment, that is, to select whether the computer unmanned control equipment is working in input mode or output mode.

[0078] In addition, since computer unmanned control devices have both USB-HID and USB-MSC functions, they essentially utilize the USB protocol. Based on the characteristics of the USB protocol, computer unmanned control devices can have non-intrusive features and are compatible with operating systems such as Windows, Linux, and Mac OS.

[0079] Based on the aforementioned computer-controlled unmanned device, this embodiment of the invention also provides a method for applying the computer-controlled unmanned device, referring to... Figure 2 The flowchart illustrates a method for applying a computer-controlled unmanned device according to an embodiment of the present invention.

[0080] Step 201: The power module in the computer-controlled unmanned device receives electrical energy from an external power source via a USB interface.

[0081] Step 202: The main control module in the computer unmanned control device determines the specific function of the computer unmanned device based on the information from the selection signal, which comes from the button in the computer unmanned control device.

[0082] Since the computer-controlled unmanned device in this embodiment of the invention does not have its own power supply, it needs to receive power from an external power source via a USB interface to operate normally. The specific functions of the computer-controlled unmanned device are determined by button selection, which is generally completed when the device is not powered on. After the computer-controlled unmanned device is powered on, the main control module determines the specific functions of the computer-controlled unmanned device based on the selection signals generated by the buttons within the device.

[0083] Step 203: The main control module, according to specific functions, can copy the script, simulate keyboard and mouse operations on the computer, continue to execute the script's predetermined work after the computer restarts or after data interaction is interrupted and resumed, or operate the storage module in the computer unmanned control device and record the operation results and fault information of the computer unmanned device.

[0084] Since the button selection generates a selection signal, the main control module determines the specific function that the computer-controlled unmanned device should be in based on the selection signal. Then, based on the specific function, it performs the following actions: copying the script, simulating keyboard and mouse operations on the computer, continuing to execute the script's predetermined work after the computer restarts or after data interaction is interrupted and resumed, or operating the storage module in the computer-controlled unmanned device and recording the operation results and its own fault information.

[0085] Specifically, it can be divided into:

[0086] If the selected signal information representation function is the input mode function, meaning the computer-controlled unmanned device is in input mode, the main control module uses the USB interface of the computer-controlled unmanned device to copy the script from the host computer into the storage module based on the USB-MSC standard. After the script is copied into the storage module, because the computer-controlled unmanned device is in input mode, it cannot simulate keyboard and mouse operations on the host computer, nor can it operate its own storage module. Therefore, the main control module directly controls the computer-controlled unmanned device to eject the device storage. Alternatively, the computer-controlled unmanned device can be directly unplugged, physically disconnecting from the host computer. In this case, the power module will also lose power supply, and the entire computer-controlled unmanned device will be powered down.

[0087] Alternatively, if the signal information representation function is selected as the output mode function, meaning the computer-controlled unmanned device is in output mode, the main control module utilizes the USB interface of the computer-controlled unmanned device to execute the predetermined work in the script information based on the USB-HID standard. This simulates keyboard and mouse operation on the computer, or allows the execution of the predetermined script work to continue after the computer restarts or after data interaction is interrupted and resumed. After completing the predetermined work in the script information, the computer-controlled unmanned device does not need to interact with the host computer, so the main control module controls the power module to enter sleep mode. Of course, the computer-controlled unmanned device can also be directly unplugged, physically disconnecting from the host computer. In this case, the power module will also lose power supply, and the entire computer-controlled unmanned device will be powered down.

[0088] Alternatively, if the specific function of the signal information representation is selected as the output mode function, that is, the computer unmanned control device is in the output mode function, then the main control module executes the predetermined work in the script information through script reading and writing to realize the operation of the storage module; after the predetermined work in the script information is completed, the main control module controls the power module to enter the sleep mode.

[0089] In summary, the computer-controlled unmanned device provided by this invention combines the functions of both USB-HID and USB-MSC. Utilizing a combination of USB-HID and USB-MSC, along with an embedded software system, it simulates keyboard and mouse operations on the computer and its own storage module based on script information. This achieves unmanned operation of both the computer and the storage module, and allows the device to continue its pre-defined tasks even after a computer restart or data interaction interruption and recovery. Based on the characteristics of USB, the computer-controlled unmanned device is non-intrusive, meaning it does not require the installation of additional drivers and software on the controlled computer, ensuring the computer's independence. The device is also compatible with various operating systems such as Windows, Linux, and Mac OS. Due to its simple structure, the computer-controlled unmanned device has low overall power consumption and low cost.

[0090] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.

[0091] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0092] The embodiments of the present invention have been described above in conjunction with the accompanying drawings, and have been detailed. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A computer-controlled unmanned device, characterized in that, The computer-controlled unmanned device includes: a main control module, a storage module, a power supply module, and a USB interface; the computer-controlled unmanned device runs an embedded software system; The storage module is connected to the power module, and the storage module is used to receive and store scripts and external files. The main control module is connected to the storage module, the power module and the USB interface respectively. The main control module is based on an embedded software system, reads and writes the script through the FATFS file system, and controls the computer unmanned control device to realize the predetermined work of the script. The power module is connected to the USB interface. The power module uses the external power introduced through the USB interface as its own power input and supplies power to the computer unmanned control device. The USB interface is configured to provide a data interface for the computer unmanned control device and the computer while introducing the external power supply, so as to realize data interaction. When the script is executed, it simulates keyboard and mouse operations on the computer, or operates the storage module, or continues to perform the script's intended work after the computer restarts or after data interaction is interrupted and resumed.

2. The computer-controlled unmanned equipment according to claim 1, characterized in that, The embedded software system includes: a driver layer, a middleware layer, and an application layer; The driver layer is used to implement the basic functions of the computer unmanned device and is configured with a USB-HID driver and a USB-MSC driver. The USB-HID driver and the USB-MSC driver enable the computer unmanned device to become a USB-HID device and a USB-MSC device, respectively, in accordance with the standards of the USB-HID class and the USB-MSC class. The middleware layer includes: a combination of USB-HID and USB-MSC, and the porting of the FATFS file system. The combination of USB-HID and USB-MSC enables the unmanned computer device to simultaneously conform to the standards of the USB-HID and USB-MSC classes, and is the basis for the unmanned computer device to read and write the script and output the "HID Input Report". The porting of the FATFS file system enables the unmanned computer device to read and write the script and the external files. The application layer is used to implement the specific functions of the computer unmanned device.

3. The computer-controlled unmanned equipment according to claim 2, characterized in that, The specific functions of the computer-controlled unmanned device include: input mode function, output mode function, and recording function; The input mode function is based on the standard implementation of the USB-MSC class and realizes the storage function of the computer unmanned device. This function is used to copy and store the script. The output mode function is based on the standard implementation of the USB-HID class, realizing the HID function of the computer unmanned device. This function outputs USB information by reading, writing and recognizing the information of the script, which is used to simulate keyboard and mouse operation of the computer, or to operate the storage module, or to continue to execute the predetermined work of the script after the computer restarts or after data interaction is interrupted and resumed. The recording function is used to record the operation results of the computer unmanned equipment and its own fault information.

4. The computer-controlled unmanned equipment according to claim 1, characterized in that, The script information includes: instruction information and data information; The instruction information is used by the unmanned computer control device to successfully read, write, and execute the script; The data information includes: an information header and the character code of the "HID Input Report" sent by the computer unmanned control device to the computer, or the data information includes: an information header, file operation command encoding, and operation content encoding; The data information categories include: keyboard data information, mouse data information, and storage operation data information, and the information header is used to distinguish different information categories; The character code of the "HID Input Report" exists in the keyboard data information and the mouse data information, and is used to control the computer in order to achieve the purpose of simulating mouse and keyboard operation of the computer; The file operation command encoding and the operation content encoding exist in the storage operation data information and are used to operate the storage module. The operation content encoding is the encoding of various file operation commands in the FATFS file system, and the operation content encoding refers to the specific content of the file operation command.

5. The computer-controlled unmanned equipment according to claim 4, characterized in that, The indication information includes: file location information, file end information, and delay information; The file location information includes: information header, script quantity information, script line number information, and read / write flags; The file end information includes: a message header, script quantity information, and read / write flags; The delay information includes: an information header and delay parameters; The computer unmanned control device determines whether the script has been completed and whether there are other scripts to be executed by reading and writing the file position information and the file end information. When the computer restarts or the data interaction is interrupted and then resumed, the computer unmanned control device continues to execute the subsequent predetermined work of the script by using the read and write flags. The delay information is used to set a delay for control commands.

6. The computer-controlled unmanned equipment according to claim 3, characterized in that, When the computer-controlled unmanned device is in the output mode, it reads and writes the storage module through the script, identifies and selects the file to be processed according to the predetermined work of the script, and performs the corresponding operation on the selected file.

7. The computer-controlled unmanned equipment according to claim 1, characterized in that, The computer-controlled unmanned device also includes: indicator lights and buttons; The indicator light is controlled by the main control module and is used to display the working status of the computer-controlled unmanned device; The buttons include a DIP switch or a selection switch, and the buttons are used to select the specific functions of the computer unmanned device.

8. The computer-controlled unmanned equipment according to claim 1, characterized in that, The computer-controlled unmanned device utilizes the USB protocol, enabling it to be non-intrusive and compatible with Windows, Linux, and Mac OS operating systems.

9. A method for using a computer-controlled unmanned device as described in any one of claims 1-8, characterized in that, The method includes: The power module in the computer-controlled unmanned device receives electrical energy from an external power source via a USB interface. The main control module in the computer unmanned control device determines the specific function of the computer unmanned device based on the information of the selection signal, wherein the selection signal comes from the button in the computer unmanned control device; According to the specific functions, the main control module can copy the script, simulate keyboard and mouse operations on the computer, continue to execute the script's predetermined work after the computer restarts or after data interaction is interrupted and resumed, or operate the storage module in the unmanned computer control device and record the operation results and fault information of the unmanned computer device.

10. The method according to claim 9, characterized in that, The main control module, according to the specific functions, can either copy the script, simulate keyboard and mouse operations on the computer, continue executing the script's predetermined tasks after a computer restart or after data interaction is interrupted and resumed, or operate the storage module in the unmanned computer control device, including: If the information of the selection signal indicates that the specific function is an input mode function, then the main control module uses the USB interface in the computer unmanned device to copy the script from the host computer into the storage module based on the USB-MSC standard; After the script is copied into the storage module, the main control module controls the computer unmanned device to eject the device storage; or, If the information of the selection signal indicates that the specific function is an output mode function, then the main control module uses the USB interface in the computer unmanned device to execute the predetermined work in the script information based on the USB-HID class standard to realize the simulation of keyboard and mouse operation of the computer, or to continue to execute the predetermined work of the script after the computer restarts or after the data interaction is interrupted and resumed. After completing the predetermined tasks in the script information, the main control module controls the power module to enter sleep mode; or, If the information of the selection signal indicates that the specific function is an output mode function, then the main control module performs the predetermined work in the script information by reading and writing the script to operate the storage module; After completing the predetermined tasks in the script information, the main control module controls the power module to enter sleep mode.

Citation Information

Patent Citations

  • External storage device and method of automatically operating the same

    CN101276282A

  • USB secure storage apparatus and method

    US20060184806A1