Storage device and control method
By introducing an operating system module and a communication module into the storage device, the problem of frequent plugging and unplugging of the storage device is solved, and the convenience of remote data interaction is realized.
Patent Information
- Application Number
- CN202110864776.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-27
- Publication Date
- 2026-02-13
- Estimated Expiration
- 2041-07-27
AI Technical Summary
Existing storage devices require frequent plugging and unplugging to exchange data, resulting in poor convenience.
A storage device is provided, including a storage module, an operating system module, and a communication module. The operating system module loads and enters a working mode when it receives an insert command, and the communication module remotely receives the file to be written from the terminal device and writes the file to the storage module for the control device to read.
It enables remote communication access and data interaction without the need to plug and unplug storage devices, thus improving convenience.
Smart Images

Figure CN113553111B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of storage devices, in particular to a storage device and a control method. BACKGROUND
[0002] At present, as a commonly used portable storage device, the U disk is simple and easy to use, but in some specific scenarios that require frequent plugging and exchanging data, or due to the special installation position of the device (such as closed\hidden), there are also some limitations in use, which is not convenient enough, for example: in the debugging process based on Andriod smart TV, the U disk is used as a computer and Andriod TV application installation and information extraction storage medium, which needs to be frequently plugged in and out of the smart TV and the computer to interact data. Or in the configuration of an ordinary car, the U disk is used as a device for storing songs, which is very convenient. However, if you want to update the media content of the U disk, you need to take it out and update the media content through a computer or other device, which is not convenient to use. Therefore, the storage device in the prior art needs to be frequently plugged in and out to interact data, which results in poor convenience.
[0003] The above content is only used to assist in understanding the technical solutions of the present application and does not represent the acknowledgement of the above content as prior art. SUMMARY
[0004] The main purpose of the present application is to provide a storage device and a control method, which aims to solve the technical problem of poor convenience in the prior art that requires frequent plugging and unplugging of the storage device to interact data.
[0005] To achieve the above purpose, the present application provides a storage device, which comprises a storage module, an operating system module and a communication module, and the storage device is inserted into a control device;
[0006] The operating system module is configured to load the system according to the insertion instruction when receiving the insertion instruction, so as to enter the working mode;
[0007] The communication module is configured to remotely receive a to-be-written file of a terminal device, write the to-be-written file into the storage module through the operating system module, so that the control device reads the storage file in the storage module.
[0008] Optionally, the operating system module is further configured to control the control device to load the control script and obtain target file information when the to-be-written file is a control script;
[0009] The communication module is further configured to write the target file information into the storage module through the operating system module, and send the target file information to the terminal device.
[0010] Optionally, the operating system module is further configured to identify a usage state of the control script.
[0011] The operating system module is further configured to obtain target file information when it is identified that the control script is in the used state.
[0012] Optionally, the communication module comprises a wireless communication module and a mobile communication module.
[0013] The communication module is further configured to determine a target remote communication module from the wireless communication module and the mobile communication module.
[0014] The communication module is further configured to remotely receive a to-be-written file of a terminal device through the target remote communication module.
[0015] The operating system module is further configured to determine a target operation instruction according to the control script and a preset operation instruction when the to-be-written file is a control script.
[0016] The operating system module is further configured to determine a target file type according to the target operation instruction and a preset file type.
[0017] The operating system module is further configured to control the control device to load the control script according to the target file type, and obtain target file information.
[0018] Optionally, the communication module is further configured to remotely receive a to-be-written file of a terminal device, and when a data type of the to-be-written file is an update file, write parameter information corresponding to the update file into the storage module through the operating system module, so that the control device reads the parameter information in the storage module to update device data.
[0019] Optionally, the storage device further comprises a USB interface.
[0020] The operating system module is further configured to package a storage file in the storage module according to an interface type of the USB interface and a data transmission format of the communication module, and obtain a target data packet.
[0021] The communication module is further configured to send the target data packet to the terminal device.
[0022] Optionally, the communication module is further configured to remotely receive a to-be-written file of a terminal device according to a current communication network signal, and write the to-be-written file into the storage module through the operating system module, so that the control device reads a storage file in the storage module.
[0023] In addition, to achieve the above object, the application further provides a storage device control method, which comprises:
[0024] The storage device insertion control device, when receiving the insertion instruction, the operating system module carries out system loading according to the insertion instruction to enter the working mode;
[0025] The communication module remotely receives the to-be-written file of the terminal device, and writes the to-be-written file into the storage module through the operating system module, so that the control device reads the storage file in the storage module.
[0026] Optionally, after the step that the communication module remotely receives the to-be-written file of the terminal device, and writes the to-be-written file into the storage module through the operating system module, so that the control device reads the storage file in the storage module, the application further comprises:
[0027] When the to-be-written file is a control script, the operating system module controls the control device to load the control script to obtain target file information;
[0028] The communication module writes the target file information into the storage module through the operating system module, and sends the target file information to the terminal device.
[0029] Optionally, the storage device further comprises a USB interface;After the step that the communication module remotely receives the to-be-written file of the terminal device, and writes the to-be-written file into the storage module through the operating system module, so that the control device reads the storage file in the storage module, the application further comprises:
[0030] The operating system module packs the storage file in the storage module through the interface type corresponding to the USB interface and the data transmission format corresponding to the communication module to obtain target data packet;
[0031] The communication module sends the target data packet to the terminal device.
[0032] This invention, when a control device is inserted into the storage device, involves the operating system module receiving an insertion command, loading the system to enter working mode, and remotely receiving the file to be written from the terminal device via the communication module. The operating system module then writes the file to be written to the storage module of the storage device, enabling the control device to read the stored file. Because this invention uses the operating system and communication modules of the storage device to write the file to the storage module, allowing the control device to read the stored file, it enables remote access from the terminal device to the control device. Compared to existing technologies that require frequent insertion and removal of the storage device for data exchange, this invention achieves remote communication access and data exchange with the control device without the need for frequent insertion and removal of the storage device. Attached Figure Description
[0033] Figure 1 This is a structural block diagram of the first embodiment of the storage device of the present invention;
[0034] Figure 2 This is a schematic diagram of the smart TV control process according to a second embodiment of the storage device of the present invention;
[0035] Figure 3 This is a flowchart illustrating the first embodiment of the storage device control method of the present invention.
[0036] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0037] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0038] Reference Figure 1 , Figure 1 This is a structural block diagram of the first embodiment of the present invention based on a storage device.
[0039] like Figure 1 As shown, the storage device may include: a storage module 1001, an operating system module 1002, and a communication module 1003.
[0040] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the storage device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0041] This invention provides a storage device, with reference to... Figure 1 , Figure 1 This is a block diagram of the storage device structure of the present invention.
[0042] In this embodiment, the storage device includes a storage module 1001, an operating system module 1002, and a communication module 1003, and the storage device is inserted into the control device.
[0043] In this embodiment, the operating system module 1002 is configured to perform system loading according to the insertion instruction when the insertion instruction is received, so as to enter a working mode.
[0044] It should be noted that the storage device can be a device inserted into the control device, for example, a U disk, and the storage module 1001 can be a module for storing data in the storage device, for example, a storage module in the U disk.
[0045] It can be understood that the insertion instruction can be an instruction signal generated when the storage device is inserted into the control device. The system loading can be that the operating system module 1002 corresponding to the storage device loads the system in the storage device when the insertion instruction is received. The working mode can be a working mode determined after the system is loaded.
[0046] In specific implementation, the operating system module 1002 performs system loading according to the insertion instruction when the insertion instruction generated when the storage device is inserted into the control device is received, so as to enter a working mode.
[0047] The communication module 1003 is configured to remotely receive a to-be-written file of a terminal device, write the to-be-written file into the storage module 1001 through the operating system module 1002, and enable the control device to read a storage file in the storage module 1001.
[0048] It should be noted that the terminal device can be a device for remotely accessing the storage device, and the terminal device can be a local computer or another device for remotely transmitting and updating data using the storage device, and the embodiment is not limited in this regard.
[0049] It can be understood that the to-be-written file can be a file that needs to be written into the storage device, and the file can be a resource file including parameter information, script information, and debugging information. The embodiment is not limited in this regard.
[0050] It should be understood that the control device can be a device connected to the storage device, and the control device can be a device that needs to transmit and update data. The storage file can be a file stored in the storage module 1001, and the storage file can be a storage file generated after the to-be-written file is stored into the storage module 1001, or a historical storage file. The historical storage file can be a resource file uploaded to the terminal device, for example, a resource file including parameter information, log information, and debugging information.
[0051] In the implementation, the communication module 1003 remotely receives a to-be-written file of the terminal device, and writes the to-be-written file into the storage module 1001 through the operating system module 1002, so that the control device reads a storage file in the storage module 1001.
[0052] In the embodiment, when the storage device is inserted into the control device, the operating system module 1002 loads the system according to an insertion instruction when the insertion instruction is received, to enter a working mode, and remotely receives a to-be-written file of the terminal device through the communication module 1003, and writes the to-be-written file into the storage module 1001 of the storage device through the operating system module 1002, so that the control device reads a storage file in the storage module 1001. According to the operating system module 1002 and the communication module 1003 of the storage device, the to-be-written file is written into the storage module 1001, so that the control device reads the storage file in the storage module 1001, thereby realizing remote access of the terminal device to the control device. Compared with the prior art, the embodiment realizes remote communication access and data interaction of the control device without plugging in the storage device.
[0053] Based on the first embodiment, the second embodiment of the storage device of the application is provided.
[0054] In the embodiment, the operating system module 1002 is further configured to control the control device to load the control script and obtain target file information when the to-be-written file is the control script.
[0055] It should be noted that the control script can be a script used to control a software application, and the script can be saved in text and interpreted or compiled when called. The control script can be a script language used to control the operation of the control script.
[0056] It can be understood that the target file information can be file information generated after the control device loads the control script. The file information can include log information, advertisement information, and media information. The log information can be working condition information generated when the control device is running, that is, a log file or a file set recorded by the control device to record system operation events. The log information can be divided into event logs and message logs. Different control devices generate different log information, and therefore the log information is not limited in the embodiment. For example, when the control device is a smart television, the log information can be screen usage state information, or parameter information of the smart television when a fault event occurs. The embodiment does not limit the log information.
[0057] It should be understood that the advertising information can refer to content that needs to be put to the advertising audience, and the content of the advertising information can be in various forms, including text, images, audio, and video, and any form that can be perceived by humans. The media information can refer to product information corresponding to an object carrying multimedia information, or information corresponding to an entity for storing, presenting, processing, and delivering information.
[0058] In specific implementation, when the operating system module 1002 identifies that the file to be written is a control script, the control device is controlled to load the control script, and target file information is obtained.
[0059] The communication module 1003 is further configured to write the target file information to the storage module 1001 through the operating system module 1002, and send the target file information to a terminal device.
[0060] It should be noted that the file information to be extracted is determined from the file information set corresponding to the control device according to the control script, and the file information to be extracted is used as the target file information.
[0061] In specific implementation, the communication module 1003 can write the obtained target file information to the storage module 1001 through the operating system module 1002, and send the target file information to a terminal device. For further illustration, reference can be made to Figure 2 The smart TV control flow diagram, in the field of andriod smart TV testing, in order to solve the pain points of the current TV log information grabbing scene, we will debug the TV during the development process of TV function software. The test personnel need to obtain the debug log information through the USB device, and then send the log to the related development platform or terminal device through WeChat or email for technical analysis. Therefore, the storage device is inserted into the control device, and the operating system module enters the working mode according to the insertion instruction when receiving the insertion instruction. The terminal device can access the communication module of the storage device through communication technologies such as wifi / LTE, and remotely log in the system control interface. The communication module of the storage device remotely receives the file to be written by the terminal device, writes the file to be written into the storage module through the operating system module, so that the smart TV reads the storage file in the storage module. The smart TV restarts according to the control script, loads the control script, and sets the script as a used state when the smart TV loads the script. The smart TV generates log information corresponding to the control script, and the communication module writes the log information into the storage module through the operating system module, and returns the target file information data to the terminal device.
[0062] Further, in order to improve the system operation efficiency, the operating system module 1002 is further configured to identify the use state of the control script; and when it is identified that the control script is in the used state, the operating system module 1002 is further configured to obtain the target file information.
[0063] It should be noted that the use state of the control script can refer to the state of the control device loading the control script, and the loading state can be divided into three states: not loaded, loading, and loading completed, i.e., the use state can be determined according to the loading state.
[0064] In specific implementation, in order to improve the system operation efficiency, the operating system module 1002 can determine whether the control device generates the target file information by identifying the use state of the control script, and when it is identified that the control script is in the used state, it is determined that the control device has loaded the control script, the control script is set to the used state, and the target file information is obtained.
[0065] Further, in order to meet different remote control requirements and improve the remote access capability, the communication module 1003 includes a wireless communication module and a mobile communication module; the communication module 1003 is further configured to determine a target remote communication module from the wireless communication module and the mobile communication module; the communication module 1003 is further configured to remotely receive a to-be-written file of a terminal device through the target remote communication module; the operating system module 1002 is further configured to, when the to-be-written file is a control script, determine a target operation instruction according to the control script and a preset operation instruction; the operating system module 1002 is further configured to determine a target file type according to the target operation instruction and a preset file type; and the operating system module 1002 is further configured to control the control device to load the control script according to the target file type, and obtain the target file information.
[0066] It should be noted that the wireless communication module can support GPRS and short message dual-channel data transmission, support multi-center data communication, and support remote parameter setting and program upgrading. The wireless communication module can also communicate through a wireless local area network, for example, by connecting a WiFi to realize networking and thus realize remote communication. The mobile communication module can refer to a module for data transmission based on the long-term evolution standard of general mobile communication technology, for example, a module containing 3G, 4G, and 5G mobile communication technology.
[0067] It can be understood that the target remote communication module can be a module determined from the communication module 1003 according to the network connection relationship between the terminal device and the control device, and the preset operation instruction can be a pre-set operation instruction, that is, an operation instruction pre-set according to different control devices, that is, an operation instruction corresponding to different control scripts. The target operation instruction can be an operation instruction determined according to the correspondence between the pre-set operation instruction and the control script.
[0068] It should be understood that the preset file type can be a file type corresponding to the control device pre-generated, that is, the file type corresponding to different control devices is different, and the file type generated by the same control device is also different, for example: the file type generated by the smart television can be a log type, which can be further divided into running condition log, fault event log and fault handling log, etc. The log type is not specifically limited in the embodiment. The target file type can be a file type determined from the preset file type according to the target operation instruction. For example: the file type can be a fault event log of the smart television.
[0069] It should be understood that the control device can load the control script according to the determined target file type to obtain the target file information, that is, in order to improve the accuracy of file information acquisition, the file information to be extracted can be accurately positioned according to the target file type, and the control device acquires the file information to be extracted according to the control script, and outputs the file information to be extracted as the target file information.
[0070] In a specific implementation, in order to improve the remote access capability, the communication module 1003 includes a wireless communication module and a mobile communication module; the communication module 1003 determines a target remote communication module from the wireless communication module and the mobile communication module, and remotely receives a to-be-written file of a terminal device through the target remote communication module; when the to-be-written file is a control script, the operating system module 1002 determines a target operation instruction according to the control script and a preset operation instruction, and determines a target file type according to the target operation instruction and a preset file type; the operating system module 1002 controls the control device to load the control script according to the target file type, and obtains target file information.
[0071] Further, in order to improve the data updating efficiency of the control device, the communication module 1003 can be used to remotely receive a to-be-written file of a terminal device, and when the data type of the to-be-written file is an update file, the parameter information corresponding to the update file is written into the storage module through the operating system module, so that the control device reads the parameter information in the storage module 1001 to update the device data.
[0072] It should be noted that the update file can be a file of an update script, or a resource file corresponding to update parameter information, and the embodiment does not limit the specific content of the update file.
[0073] In a specific implementation, in the field of televisions or outdoor advertising screens, the video content played needs to be updated at irregular intervals, and a management personnel can remotely access and update the resource file stored in the storage device, such as a resource file stored in a U disk, by using 5G communication, so as to realize remote management and update of the played content. In the field of traditional numerical control machining machines, the storage device can be used in a machining device, that is, machining data parameters can be imported into the machine by using the storage device, so as to realize real-time transmission and update of the machining data.
[0074] Further, in order to ensure the data transmission efficiency, the storage device further includes a USB interface, and the operating system module 1002 is further configured to package the storage file in the storage module 1001 according to an interface type corresponding to the USB interface and a data transmission format corresponding to the communication module 1003, to obtain a target data packet, and the communication module 1003 is further configured to send the target data packet to the terminal device.
[0075] It should be noted that the interface type corresponding to the USB interface can be a power supply interface or a communication interface, and the communication interface can be a serial port used to connect a computer system and an external device, and the embodiment does not limit the interface type.
[0076] It can be understood that the data transmission format can be a data transmission format corresponding to different communication modules, and the data transmission format can be determined according to a communication protocol corresponding to the communication module.
[0077] In a specific implementation, in order to ensure the security and efficiency of remote data transmission, the operating system module 1002 can package the storage file in the storage module 1001 according to the interface type corresponding to the USB interface in the storage device and the data transmission format corresponding to the communication protocol in which the communication module 1003 is located, obtain a target data packet, and the communication module 1003 sends the target data packet to the terminal device. The operating system module 1002 can package the storage file in the storage module 1001 according to the interface type corresponding to the USB interface in the storage device and the data transmission format corresponding to the communication protocol in which the communication module 1003 is located, obtain a target data packet, and the communication module 1003 sends the target data packet to the terminal device. For example, in the field of andriod smart television testing, we will debug the television during the development of the television function software. The tester needs to obtain the log information through the USB device, and then sends the log to the relevant development platform or terminal device through WeChat or email for technical analysis. That is, the U disk file can be accessed through the wireless or remote mode in this embodiment, and the log information in the storage module 1001 is packaged according to the interface type corresponding to the USB interface in the storage device and the data transmission format corresponding to the communication protocol in which the communication module 1003 is located, a target data packet is obtained, and the communication module 1003 sends the target data packet to the terminal device, thereby improving the efficiency and security of data transmission.
[0078] Further, the communication module 1003 is further configured to remotely receive a to-be-written file of a terminal device according to a current communication network signal, write the to-be-written file into the storage module 1001 through the operating system module 1002, and enable the control device to read a storage file in the storage module 1001.
[0079] It should be noted that the current communication network signal can refer to the network signal connected by the terminal device and the storage device.
[0080] In a specific implementation, the communication module 1003 remotely receives a to-be-written file of a terminal device according to a current communication network signal, writes the to-be-written file into the storage module 1001 through the operating system module 1002, and enables the control device to read a storage file in the storage module 1001. For example, when the network signal connected by the terminal device and the storage device is stable, the to-be-written file of the terminal device is remotely received. If the network signal connection is unstable, the to-be-written file of the terminal device is temporarily suspended to avoid file loss.
[0081] The embodiment is achieved by the following steps: when the storage device is inserted into the control device, the operating system module 1002 loads the system according to the insertion instruction to enter the working mode when receiving the insertion instruction; the communication module 1003 remotely receives the to-be-written file of the terminal device, and the to-be-written file is written into the storage module 1001 through the operating system module 1002, so that the control device reads the storage file in the storage module 1001. When the to-be-written file is a control script, the operating system module 1002 controls the control device to load the control script to obtain target file information; the communication module 1003 writes the target file information into the storage module 1001 through the operating system module 1002, and sends the target file information to the terminal device. Since the operating system module 1002 of the storage device identifies that the to-be-written file is a control script, the control device loads the control script to obtain target file information, and the target file information is written into the storage module 1001 through the operating system module 1002, and the target file information is sent to the terminal device through the communication module 1003, compared with the prior art, the embodiment can realize remote communication access and data interaction of the control device without plugging in the storage device.
[0082] Based on the above storage device, the application further provides a storage device control method.
[0083] Referring to Figure 3 , Figure 3 The flowchart of the first embodiment of the storage device control method of the application is shown.
[0084] In the embodiment, the storage device control method comprises the following steps:
[0085] Step S10: the storage device is inserted into the control device, and the operating system module loads the system according to the insertion instruction to enter the working mode when receiving the insertion instruction.
[0086] It should be noted that the storage device can be a device inserted into the control device, for example, a U disk, and the storage module can be a module for storing data in the storage device, for example, a storage module in the U disk.
[0087] It can be understood that the insertion instruction can be an instruction signal generated when the storage device is inserted into the control device. The system loading can be that the operating system module corresponding to the storage device loads the system in the storage device when receiving the insertion instruction, and the working mode can be the working mode determined after the operating system is loaded.
[0088] In a specific implementation, the operating system module, upon receiving an insertion instruction generated by the control device when the storage device is inserted, performs system loading according to the insertion instruction to enter the working mode.
[0089] Step S20: The communication module remotely receives a to-be-written file of the terminal device, and writes the to-be-written file into the storage module through the operating system module, so that the control device reads a storage file in the storage module.
[0090] It should be noted that the terminal device can be a device for remotely accessing the storage device, and the terminal device can be a local computer or other device for remotely transmitting and updating data using the storage device, and the embodiment is not limited in this regard.
[0091] It should be understood that the to-be-written file can be a file that needs to be written into the storage device, and the file can be a resource file including parameter information, script information, and debugging information. The embodiment is not limited in this regard.
[0092] It should be understood that the control device can be a device connected to the storage device, and the control device can be a device that needs to transmit and update data. The storage file can be a file stored in the storage module, and the storage file can be a storage file generated after the to-be-written file is stored in the storage module, or a historical storage file, which can be a resource file uploaded to the terminal device, such as parameter information, log information, and debugging information.
[0093] In a specific implementation, the communication module remotely receives a to-be-written file of the terminal device, and the to-be-written file is written into the storage module through the operating system module, so that the control device reads a storage file in the storage module.
[0094] Further, after the step S20, the operating system module controls the control device to load the control script when the to-be-written file is a control script, and obtains target file information; the communication module writes the target file information into the storage module through the operating system module, and sends the target file information to the terminal device.
[0095] It should be noted that the control script can be a script for controlling a software application, and the script can be saved in text, and interpreted or compiled when called. The control script can be a script language for controlling the operation of the control script.
[0096] It can be understood that the target file information can refer to file information generated after the control device loads the control script. The file information can include log information, advertisement information, and media information, etc. The log information can be generated according to the working condition information of the control device when it is running, that is, a log file or a file set recorded by the control device to record system operation events, which can be divided into event logs and message logs. Different control devices generate different log information, and therefore, the log information is not specifically limited in the embodiment, for example, when the control device is a smart television, the log information can be screen usage state information, or parameter information of the smart television when a fault event occurs, which is not specifically limited in the embodiment.
[0097] It should be understood that the advertisement information can refer to content for advertisement audience needs to be put in, and the content of the advertisement information is various, which can include text, image, audio, and video, and any form that can be perceived by human beings. The media information can refer to product information corresponding to an object carrying multimedia information, or information corresponding to an entity for storing, presenting, processing, and transmitting information.
[0098] It should be understood that the operating system module determines the file information to be extracted from the log information set corresponding to the control device according to the control script, and takes the log information to be extracted as the target file information.
[0099] In a specific implementation, when the operating system module identifies that the file to be written is the control script, the control device is controlled to load the control script, and the target file information is obtained. The communication module can write the obtained target file information to the storage module through the operating system module, and send the target file information to the terminal device.
[0100] Further, the storage device further includes a USB interface; after the step S20, the operating system module further includes: packaging the storage file in the storage module through the interface type corresponding to the USB interface and the data transmission format corresponding to the communication module, to obtain a target data packet; and the communication module sends the target data packet to the terminal device.
[0101] It should be noted that the interface type corresponding to the USB interface can be an interface for power supply, an interface for communication, or a serial port for connecting a computer system and an external device, and the interface type is not limited in the embodiment.
[0102] It can be understood that the data transmission format can be the data transmission format corresponding to different communication modules, and the data transmission format can be determined according to the communication protocol corresponding to the communication module.
[0103] In a specific implementation, in order to ensure the security and efficiency of remote data transmission, the operating system module can package the storage file in the storage module according to the interface type corresponding to the USB interface in the storage device and the data transmission format corresponding to the communication protocol in which the communication module is located, to obtain a target data packet, and the communication module sends the target data packet to the terminal device. The operating system module can package the storage file in the storage module according to the interface type corresponding to the USB interface in the storage device and the data transmission format corresponding to the communication protocol in which the communication module is located, to obtain a target data packet, and the communication module sends the target data packet to the terminal device. For example, in the field of andriod smart television testing, we will debug the television during the development of the television function software. The test personnel need to obtain the log information through the USB device, and then send the log to the relevant platform or terminal device for technical analysis through WeChat or email, that is, the U disk file can be accessed through the wireless or remote mode in this embodiment, and the log information is packaged in the storage module according to the interface type corresponding to the USB interface in the storage device and the data transmission format corresponding to the communication protocol in which the communication module is located, to obtain a target data packet, and the communication module sends the target data packet to the terminal device, thereby improving the efficiency and security of data transmission.
[0104] In this embodiment, when the storage device is inserted into the control device, the operating system module loads the system according to the insertion instruction when receiving the insertion instruction, to enter the working mode; the communication module remotely receives the to-be-written file of the terminal device, and the to-be-written file is written into the storage module by the operating system module, so that the control device reads the storage file in the storage module. When the to-be-written file is a control script, the operating system module controls the control device to load the control script to obtain target file information; the communication module writes the target file information into the storage module through the operating system module, and sends the target file information to the terminal device. Since the operating system module of the storage device identifies that the to-be-written file is a control script in this embodiment, the control device is controlled to load the control script to obtain target file information, and the target file information is written into the storage module through the operating system module, and the target file information is sent to the terminal device through the communication module, so that the control device can be remotely communicated and accessed and data can be interacted without plugging in the storage device, compared with the prior art.
[0105] Moreover, it is to be understood that the phraseology and terminology used herein is for the purpose of description and should not be regarded as limiting. The use of "including" "comprising" or "having" and variations thereof herein is intended to encompass the presence of one or more recited elements or steps and not the exclusion of any other integers or steps. The use of "including", "comprising", "having" and "with" and variations thereof herein is intended to encompass the presence of one or more recited elements or steps and not the exclusion of any other integers or steps.
[0106] The above-mentioned embodiment numbers of the present application are only for description, and do not represent the advantages or disadvantages of the embodiments.
[0107] Those skilled in the art can clearly understand the above-mentioned embodiment methods by means of software and the necessary general hardware platform, of course, they can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, an optical disk) and includes a plurality of instructions for making a terminal device (which can be a mobile phone, a computer, a server or a network device, etc.) execute the methods described in various embodiments of the present application.
[0108] The above is only the preferred embodiment of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation, or direct or indirect application in other related technical fields, which is made by using the content of the specification and drawings of the present application, is also included in the patent protection scope of the present application.
Claims
1. A storage device, characterized in that, The storage device includes a storage module, an operating system module, and a communication module, and the storage device is inserted into a control device; The operating system module is used to load the system according to the insertion instruction when it receives the insertion instruction, so as to enter the working mode; The communication module is used to remotely receive a file to be written from a terminal device, and write the file to be written to the storage module through the operating system module, so that the control device can read the stored file in the storage module. The operating system module is also used to control the control device to load the control script when the file to be written is a control script; The operating system module is also used to identify the usage status of the control script, and when the control script is identified as being in a used state, to determine that the control device has finished loading the control script, and to set the control script to a used state, thereby obtaining target file information, the target file information including: log information, advertising information, and media information; The communication module is further configured to write the target file information into the storage module through the operating system module, and send the target file information to the terminal device; The communication module includes: a wireless communication module and a mobile communication module; The communication module is further configured to determine the target remote communication module from the wireless communication module and the mobile communication module; The communication module is also used to remotely receive the file to be written from the terminal device through the target remote communication module; The operating system module is further configured to determine the target operation instruction based on the correspondence between the control script and the preset operation instruction when the file to be written is a control script; The operating system module is further configured to determine the target file type based on the target operation instruction and the preset file type, wherein the preset file type is a file type pre-generated by the control device; The operating system module is also used to control the control device to load the control script according to the target file type, and obtain the target file information.
2. The storage device as claimed in claim 1, characterized in that, The communication module is also used to remotely receive a file to be written from the terminal device. When the data type of the file to be written is an update file, the parameter information corresponding to the update file is written to the storage module through the operating system module, so that the control device reads the parameter information in the storage module to update the device data.
3. The storage device as described in claim 1, characterized in that, The storage device also includes: a USB interface; The operating system module is also used to package the storage files in the storage module according to the interface type corresponding to the USB interface and the data transmission format corresponding to the communication module to obtain the target data packet; The communication module is also used to send the target data packet to the terminal device.
4. The storage device as described in any one of claims 1 to 3, characterized in that, The communication module is also used to remotely receive the file to be written from the terminal device according to the current communication network signal, and write the file to be written into the storage module through the operating system module, so that the control device can read the stored file in the storage module.
5. A method for controlling a storage device, characterized in that, The storage device control method is applied to a storage device control system, the storage device control system including a storage device as described in any one of claims 1 to 4, the storage device including a storage module, an operating system module, and a communication module, and the storage device control method includes the following steps: When the operating system module receives the insertion command, it loads the system according to the insertion command to enter the working mode; The communication module remotely receives the file to be written from the terminal device and writes the file to be written to the storage module through the operating system module, so that the control device can read the stored file in the storage module. When the file to be written is a control script, the operating system module controls the control device to load the control script; The operating system module identifies the usage status of the control script, and when it identifies that the control script is in a used state, it determines that the control device has finished loading the control script, sets the control script to a used state, and obtains target file information, which includes: log information, advertising information, and media information; The communication module writes the target file information into the storage module through the operating system module, and sends the target file information to the terminal device; The communication module includes a wireless communication module and a mobile communication module, and the method further includes the following steps: The communication module determines the target remote communication module from the wireless communication module and the mobile communication module; The communication module remotely receives the file to be written from the terminal device through the target remote communication module; When the file to be written is a control script, the operating system module determines the target operation instruction based on the correspondence between the control script and the preset operation instructions. The operating system module determines the target file type based on the target operation instruction and the preset file type, wherein the preset file type is a file type pre-generated by the control device; The operating system module controls the control device to load the control script according to the target file type, thereby obtaining the target file information.
6. The storage device control method as described in claim 5, characterized in that, The storage device also includes: a USB interface; After the step of the communication module remotely receiving the file to be written from the terminal device and writing the file to be written to the storage module through the operating system module, so that the control device can read the stored file in the storage module, the method further includes: The operating system module packages the stored files in the storage module using the interface type corresponding to the USB interface and the data transmission format corresponding to the communication module to obtain the target data packet; The communication module sends the target data packet to the terminal device.
Citation Information
Patent Citations
Wireless information sharing facility based on double-end working mode
CN201797534U
Long -range USB store controller and storage control system
CN208013941U