WO2016091135A1 - Data processing method, processor and system for external storage medium - Google Patents

Data processing method, processor and system for external storage medium Download PDF

Info

Publication number
WO2016091135A1
WO2016091135A1 PCT/CN2015/096554 CN2015096554W WO2016091135A1 WO 2016091135 A1 WO2016091135 A1 WO 2016091135A1 CN 2015096554 W CN2015096554 W CN 2015096554W WO 2016091135 A1 WO2016091135 A1 WO 2016091135A1
Authority
WO
WIPO (PCT)
Prior art keywords
control information
processor
storage medium
external storage
module
Prior art date
Application number
PCT/CN2015/096554
Other languages
French (fr)
Chinese (zh)
Inventor
璩国伟
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016091135A1 publication Critical patent/WO2016091135A1/en

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C7/00Arrangements for writing information into, or reading information out from, a digital store
    • G11C7/10Input/output [I/O] data interface arrangements, e.g. I/O data control circuits, I/O data buffers

Definitions

  • This application relates to, but is not limited to, the field of data manipulation techniques.
  • the user of the Ethernet communication device requires the device to support the U disk data file copy function.
  • the U disk data interface can realize the transfer of common information data such as system programs, user configuration information, device operation logs, and logic codes for upgrading.
  • the use of such an external storage medium will greatly improve the maintainability of the device, become an indispensable basic functional requirement of the communication device, and improve the work efficiency of the equipment maintenance and debugging personnel.
  • the system will automatically detect whether there is an operating system and configuration file in the USB flash drive. If it exists, copy it to the corresponding directory of Flash (flash), and the system will automatically convert the original The file is set as a backup file. If the device is not configured, you need to determine whether the user has manually enabled the automatic upgrade function. The user needs to enable the automatic upgrade function by entering the command. If the system detects that the user has enabled the automatic upgrade function, the USB disk will be inserted automatically. Upgrade; if the automatic upgrade function is not turned on, the user manually configures the command to enable the automatic upgrade function. For an empty configuration, after the upgrade is successful, the system will automatically restart to load the new system and configuration after a few seconds. For the non-empty configuration, the user needs to manually restart after the upgrade is successful.
  • the related art method uses a command method to copy data information to an external storage medium.
  • the system needs to check whether the device has enabled the automatic upgrade function. If the automatic upgrade is enabled, the USB flash drive is automatically upgraded. If the automatic upgrade function is not enabled, the user needs to manually input commands to copy the data. Perform a system upgrade. Regardless of whether it is automatically upgraded or not, in this non-empty configuration mode, the user needs to manually restart the device to make the system upgrade effective. Then the problem comes. If you don't look at the human-computer interaction interface, the user does not know whether the device is automatically upgraded or needs to be manually upgraded. The user does not know whether the data has been completely copied into the device's built-in storage device (Flash), and manually restarted. The timing of the equipment is uncertain.
  • the present invention provides a data processing method, a processor and a system for an external storage medium, which are used to solve the problem that the Ethernet communication device of the related art cannot directly observe the copy state of the data and the external when performing the data reading operation on the external storage medium.
  • the state of the storage medium causes a problem of inconvenient manual operation.
  • a data processing method for an external storage medium, applied to a processor comprising:
  • the external storage medium If the external storage medium is working normally, generating a first control information, the first control information causing the first indication device that is in communication connection with the processor to be in a first working state;
  • a second control information is generated, the second control information causing the second pointing device in communication connection with the processor to be in a first working state.
  • the data processing method further includes:
  • the second data copy operation is performed on the external storage medium.
  • the data processing method further includes:
  • the data processing method further includes:
  • a fourth control information is generated, the fourth control information causing the first pointing device to be in a second operational state.
  • a processor comprising:
  • the first acquiring module is configured to: acquire an insertion operation signal of the external storage medium, and trigger the first generation module;
  • a first generating module configured to: if the external storage medium works normally, generate a first control information, trigger a second acquiring module, the first control information causes a first indication of a communication connection with the processor The device is in the first working state;
  • the second acquiring module is configured to: acquire the first operation signal in the first preset time, and trigger the first processing module;
  • a first processing module configured to: if the second obtaining module obtains the first operation signal, And performing a first data copy operation on the external storage medium to trigger the second generation module;
  • a second generating module configured to: when the first processing module performs the first data copy operation, generate a second control information, where the second control information causes a second indicating device that is in communication connection with the processor In the first working state.
  • the processor further includes:
  • the third obtaining module is configured to: acquire the second operation signal in the second preset time, and trigger the second processing module;
  • the second processing module is configured to: if the third obtaining module obtains the second operation signal, perform a second data copy operation on the external storage medium.
  • the processor further includes:
  • a third generating module configured to: when the second processing module performs the second data copy operation, generate a third control information, where the third control information causes a third indicating device that is in communication connection with the processor In the first working state.
  • the processor further includes:
  • the fourth obtaining module is configured to: obtain an extraction operation signal of the external storage medium, and trigger a fourth generation module;
  • a fourth generating module configured to: generate a fourth control information, where the fourth control information causes the first indicating device to be in a second working state.
  • a data processing system for an external storage medium comprising:
  • a logic device coupled to the processor
  • a pointing device coupled to the logic device
  • the pressing device transmits the pressing operation signal to the processor through the logic device
  • the indicating device comprises: a first indicating device, a second indicating device and a third indicating device respectively connected to the logic device.
  • the first acquiring module is configured to: acquire an insertion operation signal of the external storage medium, and trigger the first generation module;
  • a first generating module configured to: if the external storage medium works normally, generate a first control information, trigger a second acquiring module, the first control information causes a first indication of a communication connection with the processor The device is in the first working state;
  • the second acquiring module is configured to: acquire the first operation signal in the first preset time, and trigger the first processing module;
  • a second generating module configured to: when the first processing module performs the first data copy operation, generate a second control information, where the second control information causes a second indicating device that is in communication connection with the processor In the first working state.
  • the processor further includes:
  • the third obtaining module is configured to: acquire the second operation signal in the second preset time, and trigger the second processing module;
  • the second processing module is configured to: if the third obtaining module obtains the second operation signal, perform a second data copy operation on the external storage medium, triggering the third generating module;
  • a third generating module configured to: when the second processing module performs the second data copy operation, generate a third control information, where the third control information causes a third indicating device that is in communication connection with the processor In the first working state.
  • a computer readable storage medium storing computer executable instructions for performing the method of any of the above.
  • the data copy operation on the external storage medium is triggered by a preset operation, and the state of the external storage medium is displayed in real time, so that the user can intuitively understand the copy status of the data and the state of the external storage medium, and provide the user with the state.
  • the state of the external storage medium is displayed in real time, so that the user can intuitively understand the copy status of the data and the state of the external storage medium, and provide the user with the state.
  • FIG. 2 is a block diagram showing the processor of the embodiment of the present invention.
  • FIG. 3 is a block diagram showing the structure of the data processing system to which an external storage medium is connected according to an embodiment of the present invention
  • FIG. 4 shows a detailed application flow diagram of the data processing system.
  • the embodiment of the present invention is directed to an Ethernet communication device of the related art.
  • the copy state of the data and the state of the external storage medium cannot be intuitively observed, resulting in inconvenient manual operation, as shown in the figure.
  • 1 shows a data processing method for an external storage medium, applied to a processor, comprising:
  • Step 10 Acquire an insertion operation signal of an external storage medium
  • Step 20 If the external storage medium works normally, generating a first control information, where the first control information causes the first indication device that is in communication connection with the processor to be in a first working state;
  • Step 30 Acquire a first operation signal in a first preset time
  • Step 40 if the first operation signal is obtained, performing a first data copy operation on the external storage medium
  • Step 50 When performing the first data copy operation, generate a second control information, where The second control information causes the second pointing device in communication connection with the processor to be in a first operational state.
  • the data copy operation on the external storage medium is triggered by a preset operation, and the state of the external storage medium is displayed in real time, so that the user can intuitively understand the copy state of the data and the state of the external storage medium.
  • the user provides convenience.
  • the first indicating device and the second indicating device are devices for indicating the working state of the external storage medium, and may be implemented by means of an indicator light or by means of an audio prompting device.
  • the corresponding first working state is the display state of the first indicating device and the second indicating device.
  • the first working state is a state in which the indicator light is on; when an audible prompt is used In the mode of the device, the first working state is a state in which the sound prompting device emits a sound.
  • the first indicating device corresponds to the first indicator light
  • the second indicating device corresponds to the second indicator light as an example.
  • the data processing method further includes:
  • a third control information is generated, the third control information causing the third indication device that is in communication connection with the processor to be in the first working state.
  • the second data copy operation corresponds to copying data into the external storage medium
  • the third indication device corresponds to the third indicator light, and is in progress when the data copy-in operation is required to be obtained. While the data is being copied in, the third indicator light is turned on, so that the user can know the operation of the external storage medium by observing the state of the indicator light.
  • the data processing method further includes:
  • a fourth control information is generated, the fourth control information causing the first pointing device to be in a second operational state.
  • the second working state is a state in which the indicator light is off, and after the external storage medium is pulled out, the first indicator light is turned off.
  • an embodiment of the present invention provides a processor, including:
  • the first obtaining module 100 is configured to: acquire an insertion operation signal of the external storage medium, and trigger the first generation module 200;
  • the first generation module 200 is configured to: if the external storage medium works normally, generate a first control information, trigger the second obtaining module 300, and the first control information causes a communication connection with the processor a pointing device is in a first working state;
  • the second obtaining module 300 is configured to: acquire the first operation signal in the first preset time, and trigger the first processing module 400;
  • the first processing module 400 is configured to: if the second obtaining module 300 obtains the first operation signal, performing a first data copy operation on the external storage medium, triggering the second generating module 500;
  • the second generation module 500 is configured to: when the first processing module 400 performs the first data copy operation, generate a second control information, where the second control information causes a second communication connection with the processor The pointing device is in the first working state.
  • the processor further includes:
  • the third obtaining module is configured to: acquire the second operation signal in the second preset time, and trigger the second processing module;
  • the second processing module is configured to: if the third obtaining module obtains the second operation signal, perform a second data copy operation on the external storage medium.
  • the processor further includes:
  • a third generating module configured to: when the second processing module performs the second data copy operation, generate a third control information, where the third control information causes a third indicating device that is in communication connection with the processor In the first working state.
  • the processor further includes:
  • the fourth obtaining module is configured to: obtain an extraction operation signal of the external storage medium, and trigger a fourth generation module;
  • a fourth generating module configured to: generate a fourth control information, where the fourth control information causes the first indicating device to be in a second working state.
  • an embodiment of the present invention further provides a data processing system for an external storage medium, which is configured to perform data read and write operations on an externally connected U disk 105 (or an SD card), including:
  • a processor (CPU) 101 which implements a copy operation of data by communicating with the USB flash drive 105;
  • a logic device 102 connected to the processor 101;
  • a pressing device 103 connected to the logic device 102, the pressing device 103 being configured to generate a pressing operation signal
  • a pointing device 104 coupled to the logic device 102;
  • the pressing device 103 transmits the pressing operation signal to the processor 101 through the logic device 102;
  • the processor 101 generates control information for controlling an operating state of the pointing device 104 by the received pressing operation signal, and transmits the control information to the pointing device 104 through the logic device 102.
  • the logic device 102 can be selected as a CPLD (Complex Programmable Logic Device).
  • the indicating device 104 includes: a first indicating device, a second indicating device and a third indicating device respectively connected to the logic device 102.
  • the processor includes:
  • the first acquiring module is configured to: acquire an insertion operation signal of the external storage medium, and trigger the first generation module;
  • a first generating module configured to: if the external storage medium works normally, generate a first control information, trigger a second acquiring module, where the first control information is made to communicate with the processor The first indicating device of the signal connection is in a first working state;
  • the first processing module is configured to: if the second obtaining module obtains the first operation signal, perform a first data copy operation on the external storage medium, and trigger the second generating module;
  • a second generating module configured to: when the first processing module performs the first data copy operation, generate a second control information, where the second control information causes a second indicating device that is in communication connection with the processor In the first working state.
  • the processor further includes:
  • the third obtaining module is configured to: acquire the second operation signal in the second preset time, and trigger the second processing module;
  • the second processing module is configured to: if the third obtaining module obtains the second operation signal, perform a second data copy operation on the external storage medium, triggering the third generating module;
  • a third generating module configured to: when the second processing module performs the second data copy operation, generate a third control information, where the third control information causes a third indicating device that is in communication connection with the processor In the first working state.
  • the working process of the data processing system is: the CPU built-in chip detects the insertion of the faultless U disk, sends the first lighting data to the CPLD lighting, and the CPLD lights the inserted faultless U disk, the first color indicator It is always on, telling the user that the information is that the USB flash drive is inserted into the device and the function is normal; when the user copies the data, the number of times the button is touched within the preset time period is obtained, and the first button interrupt information is obtained, and the button interrupt information is reported through the CPLD.
  • the CPU calls the process 2 to detect the file type and size in the U disk and makes a decision to achieve the copy-in operation of the target file, while the CPU sends a second lighting signal to the CPLD, and the CPLD lights the indicator of the second color, blinking
  • the indicator light tells the user that the data copy-in operation is currently in progress.
  • the second color indicator is off; when the user copies the data, the number of times the button is touched within the preset time is obtained, and the second button is obtained.
  • Interrupt information, the second button interrupt information is reported to the CPU through the CPLD, and the CPU calls Process 3 detects the file type and size in the external storage medium (Flash) and makes a decision to implement the copy-out operation of the target file.
  • Flash external storage medium
  • the CPU sends a third lighting signal to the CPLD, and the CPLD lights the indicator of the third color, and blinks.
  • the indicator light tells the user that the data copying operation is currently in progress; after the data is copied out, the indicator of the third color is turned off.
  • Step 201 the device is inserted into the U disk
  • Step 202 the CPU detects the insertion of the U disk
  • Step 203 the CPU determines whether the U disk is normal, if the U disk is normal, then proceeds to step 204; if the U disk is abnormal, then proceeds to step 214 to end the operation;
  • Step 204 the CPU detects that the U disk is normal, sends the lighting data 1 to the CPLD, illuminates the indicator light, and indicates that the U disk is inserted and normal with the first color;
  • Step 205 after inserting the U disk, determine whether to copy or copy the file, if yes, go to step 206, and if not, return to step 204;
  • Step 207 when the CPU calls the process 2, the file type and size of the file in the external storage medium are scanned, and the copy-in operation of the target data file is performed;
  • Step 208 the CPU sends the lighting data of the process 2 to the CPLD, and lights up the indicator light of the second color. wherein, during the copy-in process, the indicator light flashes; when the copy-in is completed, the indicator light is off;
  • Step 209 it is determined whether the button is touched 3 times within 4s, if touched 3 times, then proceeds to step 210, if not touched 3 times, then proceeds to step 204;
  • Step 210 When calling the process 3, the CPU scans the file type and size in the internal storage medium to perform a copy-out operation of the target data file.
  • Step 211 the CPU sends the lighting data of the process 3 to the CPLD, and lights up the indicator light of the third color.
  • the indicator light flashes; when the copying is completed, the indicator light is off;
  • step 212 it is determined whether the U disk is unplugged. If not, the process proceeds to step 204, indicating U. The disk is still inserted in the device, but the user does not perform other operations, the CPU needs to send the lighting data inserted into the USB disk to the CPLD for lighting instructions; if unplugged, then to 213;
  • step 214 the operation ends.
  • the embodiment of the invention not only realizes the indication of the state of inserting the U disk on the Ethernet device, but also can perform the copy-in and copy-out operations of the file according to the button of the manual touch device, and simultaneously the state corresponding to each operation. Clear and intuitive display to the user, for the user to remove the trouble of using complex commands, in practical applications, the hardware design uses a button and a multi-color indicator light, greatly improving the product's easy maintenance.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the embodiment of the present invention triggers a data copy operation on an external storage medium by a preset operation, and displays the state of the external storage medium in real time, so that the user can intuitively understand the copy status of the data and the state of the external storage medium, and Provided for convenience.

Landscapes

  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A data processing method, processor and system for an external storage medium. The data processing method is applied to a processor, and comprises: acquiring an insertion operation signal of an external storage medium (10); if the external storage medium operates normally, generating a piece of first control information, the first control information enabling a first indication device communicatively connected to a processor to be in a first operating state (20); within a first preset time, acquiring a first operation signal (30); if the first operation signal is acquired, conducting a first data copy operation on the external storage medium (40); and generating a piece of second control information when the first data copy operation is conducted, the second control information enabling a second indication device communicatively connected to the processor to be in the first operating state (50).

Description

一种外部存储媒介的数据处理方法、处理器及系统Data processing method, processor and system for external storage medium 技术领域Technical field
本申请涉及但不限于数据操作技术领域。This application relates to, but is not limited to, the field of data manipulation techniques.
背景技术Background technique
目前以太网通讯设备用户要求设备必须支持U盘数据文件拷贝功能,U盘数据接口可以实现系统程序、用户配置信息、设备运行日志、用于升级的逻辑代码等常用信息数据的转移。这种外部存储媒介的使用将大大提高设备的易维护性,成为通讯设备不可缺少的一个基本功能需求,提高了设备维护及调试人员的工作效率。At present, the user of the Ethernet communication device requires the device to support the U disk data file copy function. The U disk data interface can realize the transfer of common information data such as system programs, user configuration information, device operation logs, and logic codes for upgrading. The use of such an external storage medium will greatly improve the maintainability of the device, become an indispensable basic functional requirement of the communication device, and improve the work efficiency of the equipment maintenance and debugging personnel.
对于外部存储媒介的使用,相关的技术手段如下:For the use of external storage media, the relevant technical means are as follows:
1.数据拷入方向1. Data copy-in direction
若设备是空配置,则插上U盘后,系统会自动检测U盘中是否存在操作系统和配置文件,若存在则将其分别拷贝到Flash(闪存)的对应目录下,系统自动将原来的文件设置为备份文件。若设备为非空配置,需要判断用户是否手动开启了自动升级功能(用户需要通过输入命令来开启自动升级功能),如果系统检测到用户开启了自动升级功能,则插入U盘后,会自动进行升级;如果没有打开自动升级功能,则用户手动配置该命令开启自动升级功能。对于空配置情况,升级成功后,系统会等待几秒后自动进行重启加载新系统和配置;而对于非空配置情况,升级成功后,需要用户手工进行重启。If the device is in an empty configuration, after the USB flash drive is plugged in, the system will automatically detect whether there is an operating system and configuration file in the USB flash drive. If it exists, copy it to the corresponding directory of Flash (flash), and the system will automatically convert the original The file is set as a backup file. If the device is not configured, you need to determine whether the user has manually enabled the automatic upgrade function. The user needs to enable the automatic upgrade function by entering the command. If the system detects that the user has enabled the automatic upgrade function, the USB disk will be inserted automatically. Upgrade; if the automatic upgrade function is not turned on, the user manually configures the command to enable the automatic upgrade function. For an empty configuration, after the upgrade is successful, the system will automatically restart to load the new system and configuration after a few seconds. For the non-empty configuration, the user needs to manually restart after the upgrade is successful.
2.数据拷出方向2. Data copying direction
目前,用户不仅仅要求从外部存储媒介拷入相关文件进行操作系统升级,而且还要求需要将设备的配置信息、设备运行日志、系统文件拷出供其他设备使用。相关技术的方法都是使用命令的方法将数据信息拷出至外部存储媒介。Currently, users not only need to copy the relevant files from the external storage medium to upgrade the operating system, but also require the device configuration information, device running logs, and system files to be copied out for use by other devices. The related art method uses a command method to copy data information to an external storage medium.
发明内容 Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
从上述描述可以看出,相关的技术手段方案存在以下问题:As can be seen from the above description, the related technical means have the following problems:
1)对于空配置情况,用户是如何判断升级是否完成的?1) For the empty configuration, how does the user judge whether the upgrade is completed?
用户可以查看人机交互界面,通过设备的打印信息来了解任何详细的信息。用户也可以等上几秒,十几秒,通过查看设备是否重新启动来判断系统是否已升级完成。问题就来了,对于大量的设备,用户不能每台设备都配备一台显示器或是每升级一台设备都重新连接一个显示器,或者让用户去等待这个设备启动的信号去判断系统是否升级完成。Users can view the human-computer interaction interface and learn any detailed information through the printed information of the device. The user can also wait a few seconds, ten seconds, to check whether the system has been upgraded by checking whether the device is restarted. The problem is that for a large number of devices, the user cannot equip each device with a display or reconnect a display for each upgrade, or let the user wait for the device to initiate a signal to determine if the system has been upgraded.
2)对于非空配置情况,系统需要检测设备是否已经开启了自动升级功能,若开启自动升级则插入U盘后自动升级;若没有开启自动升级功能,则需要用户手动输入命令来实现数据拷入进行系统升级。无论是否自动升级,在此非空配置模式下,都需要用户手动重启设备以使系统升级有效。那这样问题就来了,如果不看人机交互界面的话,用户不知道设备是自动升级还是需要手动升级,用户不知道是否已经将数据完全的拷入设备内置存储器件(Flash)中,手动重启设备的时机不确定。2) For the non-empty configuration, the system needs to check whether the device has enabled the automatic upgrade function. If the automatic upgrade is enabled, the USB flash drive is automatically upgraded. If the automatic upgrade function is not enabled, the user needs to manually input commands to copy the data. Perform a system upgrade. Regardless of whether it is automatically upgraded or not, in this non-empty configuration mode, the user needs to manually restart the device to make the system upgrade effective. Then the problem comes. If you don't look at the human-computer interaction interface, the user does not know whether the device is automatically upgraded or needs to be manually upgraded. The user does not know whether the data has been completely copied into the device's built-in storage device (Flash), and manually restarted. The timing of the equipment is uncertain.
3)鉴于目前移动存储媒介(U盘)的小型化,很多U盘均不带指示灯或者用户手里目前只有SD(Secure Digital)卡,想通过读卡器连接器设备以实现系统程序升级,但是用户无法确定插在设备上的U盘是否能正常工作,用户只能通过人机交互界面去看设备打印信息。3) In view of the current miniaturization of mobile storage media (U disk), many U diskes do not have an indicator light or the user currently only has an SD (Secure Digital) card, and wants to implement a system program upgrade through a card reader connector device. However, the user cannot determine whether the USB flash drive inserted on the device can work normally. The user can only view the device printing information through the human-computer interaction interface.
4)用户只能通过命令的方式将数据文件拷出,并且只能通过查看人机交互界面的打印信息去了解每个操作的状态。4) The user can only copy out the data file by command, and can only know the status of each operation by checking the print information of the human-computer interaction interface.
本文提供一种外部存储媒介的数据处理方法、处理器及系统,用以解决相关技术的以太网通讯设备在进行关于外部存储介质的数据读取操作时,不能直观的观测数据的拷贝状态以及外部存储介质的状态,造成人工操作不方便的问题。The present invention provides a data processing method, a processor and a system for an external storage medium, which are used to solve the problem that the Ethernet communication device of the related art cannot directly observe the copy state of the data and the external when performing the data reading operation on the external storage medium. The state of the storage medium causes a problem of inconvenient manual operation.
一种外部存储媒介的数据处理方法,应用于一处理器,包括:A data processing method for an external storage medium, applied to a processor, comprising:
获取外部存储媒介的插入操作信号; Obtaining an insert operation signal of an external storage medium;
若所述外部存储媒介工作正常,则产生一第一控制信息,所述第一控制信息使得与所述处理器进行通信连接的第一指示装置处于第一工作状态;If the external storage medium is working normally, generating a first control information, the first control information causing the first indication device that is in communication connection with the processor to be in a first working state;
在第一预设时间内,获取第一操作信号;Acquiring the first operation signal in the first preset time;
若获取得到所述第一操作信号,则对外部存储媒介进行第一数据拷贝操作;If the first operation signal is obtained, performing a first data copy operation on the external storage medium;
在进行所述第一数据拷贝操作时,产生一第二控制信息,所述第二控制信息使得与所述处理器进行通信连接的第二指示装置处于第一工作状态。When the first data copy operation is performed, a second control information is generated, the second control information causing the second pointing device in communication connection with the processor to be in a first working state.
可选地,所述数据处理方法,还包括:Optionally, the data processing method further includes:
在第二预设时间内,获取第二操作信号;Acquiring the second operation signal in the second preset time;
若获取得到所述第二操作信号,则对外部存储媒介进行第二数据拷贝操作。If the second operation signal is obtained, the second data copy operation is performed on the external storage medium.
可选地,所述数据处理方法,还包括:Optionally, the data processing method further includes:
在进行所述第二数据拷贝操作时,产生一第三控制信息,所述第三控制信息使得与所述处理器进行通信连接的第三指示装置处于第一工作状态。When the second data copy operation is performed, a third control information is generated, the third control information causing the third indication device that is in communication connection with the processor to be in the first working state.
可选地,所述数据处理方法,还包括:Optionally, the data processing method further includes:
获取所述外部存储媒介的拔出操作信号;Obtaining an extraction operation signal of the external storage medium;
产生一第四控制信息,所述第四控制信息使得所述第一指示装置处于第二工作状态。A fourth control information is generated, the fourth control information causing the first pointing device to be in a second operational state.
一种处理器,包括:A processor comprising:
第一获取模块,设置为:获取外部存储媒介的插入操作信号,触发第一生成模块;The first acquiring module is configured to: acquire an insertion operation signal of the external storage medium, and trigger the first generation module;
第一生成模块,设置为:若所述外部存储媒介工作正常,则产生一第一控制信息,触发第二获取模块,所述第一控制信息使得与所述处理器进行通信连接的第一指示装置处于第一工作状态;a first generating module, configured to: if the external storage medium works normally, generate a first control information, trigger a second acquiring module, the first control information causes a first indication of a communication connection with the processor The device is in the first working state;
第二获取模块,设置为:在第一预设时间内,获取第一操作信号,触发第一处理模块;The second acquiring module is configured to: acquire the first operation signal in the first preset time, and trigger the first processing module;
第一处理模块,设置为:若第二获取模块获取得到所述第一操作信号, 则对外部存储媒介进行第一数据拷贝操作,触发第二生成模块;a first processing module, configured to: if the second obtaining module obtains the first operation signal, And performing a first data copy operation on the external storage medium to trigger the second generation module;
第二生成模块,设置为:在第一处理模块进行所述第一数据拷贝操作时,产生一第二控制信息,所述第二控制信息使得与所述处理器进行通信连接的第二指示装置处于第一工作状态。a second generating module, configured to: when the first processing module performs the first data copy operation, generate a second control information, where the second control information causes a second indicating device that is in communication connection with the processor In the first working state.
可选地,所述处理器,还包括:Optionally, the processor further includes:
第三获取模块,设置为:在第二预设时间内,获取第二操作信号,触发第二处理模块;The third obtaining module is configured to: acquire the second operation signal in the second preset time, and trigger the second processing module;
第二处理模块,设置为:若第三获取模块获取得到所述第二操作信号,则对外部存储媒介进行第二数据拷贝操作。The second processing module is configured to: if the third obtaining module obtains the second operation signal, perform a second data copy operation on the external storage medium.
可选地,所述处理器,还包括:Optionally, the processor further includes:
第三生成模块,设置为:在第二处理模块进行所述第二数据拷贝操作时,产生一第三控制信息,所述第三控制信息使得与所述处理器进行通信连接的第三指示装置处于第一工作状态。a third generating module, configured to: when the second processing module performs the second data copy operation, generate a third control information, where the third control information causes a third indicating device that is in communication connection with the processor In the first working state.
可选地,所述处理器,还包括:Optionally, the processor further includes:
第四获取模块,设置为:获取所述外部存储媒介的拔出操作信号,触发第四生成模块;The fourth obtaining module is configured to: obtain an extraction operation signal of the external storage medium, and trigger a fourth generation module;
第四生成模块,设置为:产生一第四控制信息,所述第四控制信息使得所述第一指示装置处于第二工作状态。And a fourth generating module, configured to: generate a fourth control information, where the fourth control information causes the first indicating device to be in a second working state.
一种外部存储媒介的数据处理系统,包括:A data processing system for an external storage medium, comprising:
处理器;processor;
与所述处理器连接的逻辑器件;a logic device coupled to the processor;
与所述逻辑器件连接的按压装置,所述按压装置设置为:产生按压操作信号;以及a pressing device coupled to the logic device, the pressing device being configured to generate a pressing operation signal;
与所述逻辑器件连接的指示装置;a pointing device coupled to the logic device;
其中,所述按压装置通过所述逻辑器件将所述按压操作信号传递给所述处理器;Wherein the pressing device transmits the pressing operation signal to the processor through the logic device;
所述处理器通过接收的所述按压操作信号生成控制所述指示装置工作状 态的控制信息,并通过所述逻辑器件传递所述控制信息给所述指示装置。The processor generates and controls the working condition of the pointing device by receiving the pressed operation signal State control information and pass the control information to the pointing device via the logic device.
可选地,所述指示装置包括:分别与所述逻辑器件连接的第一指示装置、第二指示装置和第三指示装置。Optionally, the indicating device comprises: a first indicating device, a second indicating device and a third indicating device respectively connected to the logic device.
可选地,所述处理器,包括:Optionally, the processor includes:
第一获取模块,设置为:获取外部存储媒介的插入操作信号,触发第一生成模块;The first acquiring module is configured to: acquire an insertion operation signal of the external storage medium, and trigger the first generation module;
第一生成模块,设置为:若所述外部存储媒介工作正常,则产生一第一控制信息,触发第二获取模块,所述第一控制信息使得与所述处理器进行通信连接的第一指示装置处于第一工作状态;a first generating module, configured to: if the external storage medium works normally, generate a first control information, trigger a second acquiring module, the first control information causes a first indication of a communication connection with the processor The device is in the first working state;
第二获取模块,设置为:在第一预设时间内,获取第一操作信号,触发第一处理模块;The second acquiring module is configured to: acquire the first operation signal in the first preset time, and trigger the first processing module;
第一处理模块,设置为:若第二获取模块获取得到所述第一操作信号,则对外部存储媒介进行第一数据拷贝操作,触发第二生成模块;The first processing module is configured to: if the second obtaining module obtains the first operation signal, perform a first data copy operation on the external storage medium, and trigger the second generating module;
第二生成模块,设置为:在第一处理模块进行所述第一数据拷贝操作时,产生一第二控制信息,所述第二控制信息使得与所述处理器进行通信连接的第二指示装置处于第一工作状态。a second generating module, configured to: when the first processing module performs the first data copy operation, generate a second control information, where the second control information causes a second indicating device that is in communication connection with the processor In the first working state.
可选地,所述处理器,还包括:Optionally, the processor further includes:
第三获取模块,设置为:在第二预设时间内,获取第二操作信号,触发第二处理模块;The third obtaining module is configured to: acquire the second operation signal in the second preset time, and trigger the second processing module;
第二处理模块,设置为:若第三获取模块获取得到所述第二操作信号,则对外部存储媒介进行第二数据拷贝操作,触发第三生成模块;The second processing module is configured to: if the third obtaining module obtains the second operation signal, perform a second data copy operation on the external storage medium, triggering the third generating module;
第三生成模块,设置为:在第二处理模块进行所述第二数据拷贝操作时,产生一第三控制信息,所述第三控制信息使得与所述处理器进行通信连接的第三指示装置处于第一工作状态。a third generating module, configured to: when the second processing module performs the second data copy operation, generate a third control information, where the third control information causes a third indicating device that is in communication connection with the processor In the first working state.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项的方法。 A computer readable storage medium storing computer executable instructions for performing the method of any of the above.
上述方案,通过预设的操作触发对外部存储媒介的数据拷贝操作,并实时的显示外部存储媒介的状态,使得使用者可以直观的了解数据的拷贝状态以及外部存储介质的状态,为使用者提供了方便。In the above solution, the data copy operation on the external storage medium is triggered by a preset operation, and the state of the external storage medium is displayed in real time, so that the user can intuitively understand the copy status of the data and the state of the external storage medium, and provide the user with the state. Convenient.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1表示本发明实施例的所述数据处理方法的总体流程图;1 is a general flowchart of the data processing method according to an embodiment of the present invention;
图2表示本发明实施例的所述处理器的模块示意图;2 is a block diagram showing the processor of the embodiment of the present invention;
图3表示本发明实施例的连接有外部存储媒介的所述数据处理系统的结构示意图;3 is a block diagram showing the structure of the data processing system to which an external storage medium is connected according to an embodiment of the present invention;
图4表示对所述数据处理系统的详细应用流程图。Figure 4 shows a detailed application flow diagram of the data processing system.
本发明的实施方式Embodiments of the invention
下面将结合附图及对本发明的实施方式进行详细描述。The embodiments of the present invention will be described in detail below with reference to the drawings.
本发明实施例针对相关技术的以太网通讯设备在进行关于外部存储介质的数据读取操作时,不能直观的观测数据的拷贝状态以及外部存储介质的状态,造成人工操作不方便的问题,如图1所示,提供一种外部存储媒介的数据处理方法,应用于一处理器,包括:The embodiment of the present invention is directed to an Ethernet communication device of the related art. When performing a data reading operation on an external storage medium, the copy state of the data and the state of the external storage medium cannot be intuitively observed, resulting in inconvenient manual operation, as shown in the figure. 1 shows a data processing method for an external storage medium, applied to a processor, comprising:
步骤10,获取外部存储媒介的插入操作信号;Step 10: Acquire an insertion operation signal of an external storage medium;
步骤20,若所述外部存储媒介工作正常,则产生一第一控制信息,所述第一控制信息使得与所述处理器进行通信连接的第一指示装置处于第一工作状态;Step 20: If the external storage medium works normally, generating a first control information, where the first control information causes the first indication device that is in communication connection with the processor to be in a first working state;
步骤30,在第一预设时间内,获取第一操作信号;Step 30: Acquire a first operation signal in a first preset time;
步骤40,若获取得到所述第一操作信号,则对外部存储媒介进行第一数据拷贝操作; Step 40, if the first operation signal is obtained, performing a first data copy operation on the external storage medium;
步骤50,在进行所述第一数据拷贝操作时,产生一第二控制信息,所述 第二控制信息使得与所述处理器进行通信连接的第二指示装置处于第一工作状态。Step 50: When performing the first data copy operation, generate a second control information, where The second control information causes the second pointing device in communication connection with the processor to be in a first operational state.
本发明上述实施例,通过预设的操作触发对外部存储媒介的数据拷贝操作,并实时的显示外部存储媒介的状态,使得使用者可以直观的了解数据的拷贝状态以及外部存储介质的状态,为使用者提供了方便。In the above embodiment of the present invention, the data copy operation on the external storage medium is triggered by a preset operation, and the state of the external storage medium is displayed in real time, so that the user can intuitively understand the copy state of the data and the state of the external storage medium. The user provides convenience.
应当说明的是,所述第一指示装置和所述第二指示装置为用于指示所述外部存储媒介工作状态的装置,可以通过指示灯的方式实现,也可以通过声音提示装置的方式实现,对应的第一工作状态即为第一指示装置和所述第二指示装置的显示状态,当采用指示灯的方式时,所述第一工作状态即为指示灯点亮的状态;当采用声音提示装置的方式时,所述第一工作状态为声音提示装置发出声音的状态。It should be noted that the first indicating device and the second indicating device are devices for indicating the working state of the external storage medium, and may be implemented by means of an indicator light or by means of an audio prompting device. The corresponding first working state is the display state of the first indicating device and the second indicating device. When the indicator light is adopted, the first working state is a state in which the indicator light is on; when an audible prompt is used In the mode of the device, the first working state is a state in which the sound prompting device emits a sound.
本发明实施例中以所述第一指示装置对应第一指示灯,所述第二指示装置对应第二指示灯为例进行说明,当插入外部存储媒介后,若检测到所述外部存储媒介工作正常(即能进行读写操作)时,所述第一指示灯点亮,所述第一数据拷贝操作对应于从外部存储媒介拷出数据的操作,在获取得到需要进行数据拷出操作时,在进行数据拷出的同时,将第二指示灯点亮。In the embodiment of the present invention, the first indicating device corresponds to the first indicator light, and the second indicating device corresponds to the second indicator light as an example. After the external storage medium is inserted, if the external storage medium is detected, Normally (ie, capable of performing a read/write operation), the first indicator light is lit, and the first data copy operation corresponds to an operation of copying data from an external storage medium, and when the data copy-out operation is required to be obtained, While the data is being copied out, the second indicator lights up.
为了明确区分数据操作为拷入操作还是拷出操作,本发明另一实施例中,所述数据处理方法,还包括:In order to clearly distinguish whether the data operation is a copy-in operation or a copy-out operation, in another embodiment of the present invention, the data processing method further includes:
在第二预设时间内,获取第二操作信号;Acquiring the second operation signal in the second preset time;
若获取得到所述第二操作信号,则对外部存储媒介进行第二数据拷贝操作;If the second operation signal is obtained, performing a second data copy operation on the external storage medium;
在进行所述第二数据拷贝操作时,产生一第三控制信息,所述第三控制信息使得与所述处理器进行通信连接的第三指示装置处于第一工作状态。When the second data copy operation is performed, a third control information is generated, the third control information causing the third indication device that is in communication connection with the processor to be in the first working state.
应当说明的是,所述第二数据拷贝操作对应于将数据拷入所述外部存储媒介,所述第三指示装置对应于第三指示灯,在获取得到需要进行数据拷入操作时,在进行数据拷入的同时,将第三指示灯点亮,这样使用者就可以通过观测指示灯的状态了解所述外部存储媒介的工作情况。It should be noted that the second data copy operation corresponds to copying data into the external storage medium, and the third indication device corresponds to the third indicator light, and is in progress when the data copy-in operation is required to be obtained. While the data is being copied in, the third indicator light is turned on, so that the user can know the operation of the external storage medium by observing the state of the indicator light.
可选地,所述数据处理方法,还包括: Optionally, the data processing method further includes:
获取所述外部存储媒介的拔出操作信号;Obtaining an extraction operation signal of the external storage medium;
产生一第四控制信息,所述第四控制信息使得所述第一指示装置处于第二工作状态。A fourth control information is generated, the fourth control information causing the first pointing device to be in a second operational state.
应当说明的是,所述第二工作状态为指示灯灭的状态,在所述外部存储媒介拔出后,所述第一指示灯熄灭。It should be noted that the second working state is a state in which the indicator light is off, and after the external storage medium is pulled out, the first indicator light is turned off.
如图2所示,本发明实施例提供一种处理器,包括:As shown in FIG. 2, an embodiment of the present invention provides a processor, including:
第一获取模块100,设置为:获取外部存储媒介的插入操作信号,触发第一生成模块200;The first obtaining module 100 is configured to: acquire an insertion operation signal of the external storage medium, and trigger the first generation module 200;
第一生成模块200,设置为:若所述外部存储媒介工作正常,则产生一第一控制信息,触发第二获取模块300,所述第一控制信息使得与所述处理器进行通信连接的第一指示装置处于第一工作状态;The first generation module 200 is configured to: if the external storage medium works normally, generate a first control information, trigger the second obtaining module 300, and the first control information causes a communication connection with the processor a pointing device is in a first working state;
第二获取模块300,设置为:在第一预设时间内,获取第一操作信号,触发第一处理模块400;The second obtaining module 300 is configured to: acquire the first operation signal in the first preset time, and trigger the first processing module 400;
第一处理模块400,设置为:若第二获取模块300获取得到所述第一操作信号,则对外部存储媒介进行第一数据拷贝操作,触发第二生成模块500;The first processing module 400 is configured to: if the second obtaining module 300 obtains the first operation signal, performing a first data copy operation on the external storage medium, triggering the second generating module 500;
第二生成模块500,设置为:在第一处理模块400进行所述第一数据拷贝操作时,产生一第二控制信息,所述第二控制信息使得与所述处理器进行通信连接的第二指示装置处于第一工作状态。The second generation module 500 is configured to: when the first processing module 400 performs the first data copy operation, generate a second control information, where the second control information causes a second communication connection with the processor The pointing device is in the first working state.
可选地,所述处理器,还包括:Optionally, the processor further includes:
第三获取模块,设置为:在第二预设时间内,获取第二操作信号,触发第二处理模块;The third obtaining module is configured to: acquire the second operation signal in the second preset time, and trigger the second processing module;
第二处理模块,设置为:若第三获取模块获取得到所述第二操作信号,则对外部存储媒介进行第二数据拷贝操作。The second processing module is configured to: if the third obtaining module obtains the second operation signal, perform a second data copy operation on the external storage medium.
可选地,所述处理器,还包括:Optionally, the processor further includes:
第三生成模块,设置为:在第二处理模块进行所述第二数据拷贝操作时,产生一第三控制信息,所述第三控制信息使得与所述处理器进行通信连接的第三指示装置处于第一工作状态。 a third generating module, configured to: when the second processing module performs the second data copy operation, generate a third control information, where the third control information causes a third indicating device that is in communication connection with the processor In the first working state.
可选地,所述处理器,还包括:Optionally, the processor further includes:
第四获取模块,设置为:获取所述外部存储媒介的拔出操作信号,触发第四生成模块;The fourth obtaining module is configured to: obtain an extraction operation signal of the external storage medium, and trigger a fourth generation module;
第四生成模块,设置为:产生一第四控制信息,所述第四控制信息使得所述第一指示装置处于第二工作状态。And a fourth generating module, configured to: generate a fourth control information, where the fourth control information causes the first indicating device to be in a second working state.
如图3所示,本发明实施例还提供一种外部存储媒介的数据处理系统,用于对外部连接的U盘105(或SD卡)进行数据的读写操作,包括:As shown in FIG. 3, an embodiment of the present invention further provides a data processing system for an external storage medium, which is configured to perform data read and write operations on an externally connected U disk 105 (or an SD card), including:
处理器(CPU)101,所述处理器通过与U盘105进行通信,实现数据的拷贝操作;a processor (CPU) 101, which implements a copy operation of data by communicating with the USB flash drive 105;
与所述处理器101连接的逻辑器件102;a logic device 102 connected to the processor 101;
与所述逻辑器件102连接的按压装置103,所述按压装置103设置为:产生按压操作信号;以及a pressing device 103 connected to the logic device 102, the pressing device 103 being configured to generate a pressing operation signal;
与所述逻辑器件102连接的指示装置104;a pointing device 104 coupled to the logic device 102;
其中,所述按压装置103通过所述逻辑器件102将所述按压操作信号传递给所述处理器101;The pressing device 103 transmits the pressing operation signal to the processor 101 through the logic device 102;
所述处理器101通过接收的所述按压操作信号生成控制所述指示装置104工作状态的控制信息,并通过所述逻辑器件102传递所述控制信息给所述指示装置104。The processor 101 generates control information for controlling an operating state of the pointing device 104 by the received pressing operation signal, and transmits the control information to the pointing device 104 through the logic device 102.
所述逻辑器件102可选为CPLD(Complex Programmable Logic Device,复杂可编程逻辑器件)。The logic device 102 can be selected as a CPLD (Complex Programmable Logic Device).
可选地,所述指示装置104包括:分别与所述逻辑器件102连接的第一指示装置、第二指示装置和第三指示装置。Optionally, the indicating device 104 includes: a first indicating device, a second indicating device and a third indicating device respectively connected to the logic device 102.
所述处理器,包括:The processor includes:
第一获取模块,设置为:获取外部存储媒介的插入操作信号,触发第一生成模块;The first acquiring module is configured to: acquire an insertion operation signal of the external storage medium, and trigger the first generation module;
第一生成模块,设置为:若所述外部存储媒介工作正常,则产生一第一控制信息,触发第二获取模块,所述第一控制信息使得与所述处理器进行通 信连接的第一指示装置处于第一工作状态;a first generating module, configured to: if the external storage medium works normally, generate a first control information, trigger a second acquiring module, where the first control information is made to communicate with the processor The first indicating device of the signal connection is in a first working state;
第二获取模块,设置为:在第一预设时间内,获取第一操作信号,触发第一处理模块;The second acquiring module is configured to: acquire the first operation signal in the first preset time, and trigger the first processing module;
第一处理模块,设置为:若第二获取模块获取得到所述第一操作信号,则对外部存储媒介进行第一数据拷贝操作,触发第二生成模块;The first processing module is configured to: if the second obtaining module obtains the first operation signal, perform a first data copy operation on the external storage medium, and trigger the second generating module;
第二生成模块,设置为:在第一处理模块进行所述第一数据拷贝操作时,产生一第二控制信息,所述第二控制信息使得与所述处理器进行通信连接的第二指示装置处于第一工作状态。a second generating module, configured to: when the first processing module performs the first data copy operation, generate a second control information, where the second control information causes a second indicating device that is in communication connection with the processor In the first working state.
所述处理器,还包括:The processor further includes:
第三获取模块,设置为:在第二预设时间内,获取第二操作信号,触发第二处理模块;The third obtaining module is configured to: acquire the second operation signal in the second preset time, and trigger the second processing module;
第二处理模块,设置为:若第三获取模块获取得到所述第二操作信号,则对外部存储媒介进行第二数据拷贝操作,触发第三生成模块;The second processing module is configured to: if the third obtaining module obtains the second operation signal, perform a second data copy operation on the external storage medium, triggering the third generating module;
第三生成模块,设置为:在第二处理模块进行所述第二数据拷贝操作时,产生一第三控制信息,所述第三控制信息使得与所述处理器进行通信连接的第三指示装置处于第一工作状态。a third generating module, configured to: when the second processing module performs the second data copy operation, generate a third control information, where the third control information causes a third indicating device that is in communication connection with the processor In the first working state.
为了使得使用者在观察到指示灯的状态后,便能得出所述U盘的工作状态,本发明实施例中用不同颜色的指示灯区分不同的数据操作阶段。In order to enable the user to obtain the working state of the U disk after observing the state of the indicator light, in the embodiment of the present invention, different color LEDs are used to distinguish different data operation phases.
所述数据处理系统的工作过程为:CPU内置芯片检测到无故障U盘的插入,发送第一点灯数据给CPLD点灯,CPLD对插入的无故障U盘进行点灯指示,第一种颜色的指示灯常亮,告诉用户的信息是此U盘插入设备且功能正常;用户进行数据拷入时,统计预设时间内触按按钮的次数,得到第一按钮中断信息,所述按钮中断信息通过CPLD上报给CPU,CPU调用进程2检测U盘中的文件类型、大小并做出决策实现目标文件的拷入操作,同时CPU发送第二点灯信号给CPLD,CPLD点亮第二种颜色的指示灯,闪烁的指示灯告诉用户当前正在进行数据拷入操作,数据拷入完毕以后,第二种颜色的指示灯熄灭;用户进行数据拷出时,统计预设时间内触按按钮的次数,得到第二按钮中断信息,所述第二按钮中断信息通过CPLD上报给CPU,CPU调用 进程3检测外部存储介质(Flash)中的文件类型、大小并做出决策实现目标文件的拷出操作,同时CPU发送第三点灯信号给CPLD,CPLD点亮第三种颜色的指示灯,闪烁的指示灯告诉用户当前正在进行数据拷出操作;数据拷出完毕以后,第三种颜色的指示灯熄灭。The working process of the data processing system is: the CPU built-in chip detects the insertion of the faultless U disk, sends the first lighting data to the CPLD lighting, and the CPLD lights the inserted faultless U disk, the first color indicator It is always on, telling the user that the information is that the USB flash drive is inserted into the device and the function is normal; when the user copies the data, the number of times the button is touched within the preset time period is obtained, and the first button interrupt information is obtained, and the button interrupt information is reported through the CPLD. To the CPU, the CPU calls the process 2 to detect the file type and size in the U disk and makes a decision to achieve the copy-in operation of the target file, while the CPU sends a second lighting signal to the CPLD, and the CPLD lights the indicator of the second color, blinking The indicator light tells the user that the data copy-in operation is currently in progress. After the data is copied in, the second color indicator is off; when the user copies the data, the number of times the button is touched within the preset time is obtained, and the second button is obtained. Interrupt information, the second button interrupt information is reported to the CPU through the CPLD, and the CPU calls Process 3 detects the file type and size in the external storage medium (Flash) and makes a decision to implement the copy-out operation of the target file. At the same time, the CPU sends a third lighting signal to the CPLD, and the CPLD lights the indicator of the third color, and blinks. The indicator light tells the user that the data copying operation is currently in progress; after the data is copied out, the indicator of the third color is turned off.
如图4所示,所述数据处理系统对所述U盘的读取操作的详细实现流程为:As shown in FIG. 4, the detailed implementation process of the data processing system for the read operation of the USB disk is as follows:
步骤201,设备插上U盘; Step 201, the device is inserted into the U disk;
步骤202,CPU检测到U盘的插入; Step 202, the CPU detects the insertion of the U disk;
步骤203,CPU判断U盘是否正常,若U盘正常,则转向步骤204;若U盘异常,则转向步骤214,结束操作; Step 203, the CPU determines whether the U disk is normal, if the U disk is normal, then proceeds to step 204; if the U disk is abnormal, then proceeds to step 214 to end the operation;
步骤204,CPU检测到U盘正常,将点灯数据1发送给CPLD,点亮指示灯,用第一种颜色指示U盘插入且正常; Step 204, the CPU detects that the U disk is normal, sends the lighting data 1 to the CPLD, illuminates the indicator light, and indicates that the U disk is inserted and normal with the first color;
步骤205,插上U盘后,判断是否进行文件的拷入或拷出操作,若是,则转入步骤206,若否,则返回步骤204; Step 205, after inserting the U disk, determine whether to copy or copy the file, if yes, go to step 206, and if not, return to step 204;
步骤206,判断4s内是否触按按钮2次,若触按2次,则转入步骤207;若非触按2次,则转入步骤209; Step 206, it is determined whether the button is touched twice in 4s, if touched twice, then proceeds to step 207; if not touched 2 times, then proceeds to step 209;
步骤207,CPU在调用进程2时,扫描外部存储媒介中的文件类型、大小,进行目标数据文件的拷入操作; Step 207, when the CPU calls the process 2, the file type and size of the file in the external storage medium are scanned, and the copy-in operation of the target data file is performed;
步骤208,CPU将进程2的点灯数据发送给CPLD,点亮第二种颜色的指示灯,其中,拷入过程中,指示灯闪烁;拷入完毕,指示灯灭; Step 208, the CPU sends the lighting data of the process 2 to the CPLD, and lights up the indicator light of the second color. wherein, during the copy-in process, the indicator light flashes; when the copy-in is completed, the indicator light is off;
步骤209,判断4s内是否触按按钮3次,若触按3次,则转入步骤210,若非触按3次,则转入步骤204; Step 209, it is determined whether the button is touched 3 times within 4s, if touched 3 times, then proceeds to step 210, if not touched 3 times, then proceeds to step 204;
步骤210,CPU在调用进程3时,扫描内部存储媒介中的文件类型、大小,进行目标数据文件的拷出操作;Step 210: When calling the process 3, the CPU scans the file type and size in the internal storage medium to perform a copy-out operation of the target data file.
步骤211,CPU将进程3的点灯数据发送给CPLD,点亮第三种颜色的指示灯,拷出过程中,指示灯闪烁;拷出完毕,指示灯灭;Step 211, the CPU sends the lighting data of the process 3 to the CPLD, and lights up the indicator light of the third color. During the copying process, the indicator light flashes; when the copying is completed, the indicator light is off;
步骤212,判断U盘是否拔掉,若没有拔掉,则转入步骤204,表明U 盘仍插在设备上,但是用户没有进行其他的操作,CPU需要将U盘插入的点灯数据发给CPLD进行点灯指示;若拔掉,则转向213;In step 212, it is determined whether the U disk is unplugged. If not, the process proceeds to step 204, indicating U. The disk is still inserted in the device, but the user does not perform other operations, the CPU needs to send the lighting data inserted into the USB disk to the CPLD for lighting instructions; if unplugged, then to 213;
步骤213,当CPU检测到U盘已经拔掉,就将数据发送至CPLD,关掉指示灯; Step 213, when the CPU detects that the U disk has been unplugged, sends the data to the CPLD, and turns off the indicator light;
步骤214,结束操作。In step 214, the operation ends.
本发明实施例不仅实现了对以太网设备上插入U盘的状态的指示,而且可以根据手动触按按压装置的按钮来进行文件的拷入、拷出操作,同时将每一个操作所对应的状态,清晰直观的展示给用户,为用户解除了使用复杂命令的麻烦,在实际应用中,硬件设计上使用1个按钮和1个多色指示灯,大大的提高了产品的易维护性。The embodiment of the invention not only realizes the indication of the state of inserting the U disk on the Ethernet device, but also can perform the copy-in and copy-out operations of the file according to the button of the manual touch device, and simultaneously the state corresponding to each operation. Clear and intuitive display to the user, for the user to remove the trouble of using complex commands, in practical applications, the hardware design uses a button and a multi-color indicator light, greatly improving the product's easy maintenance.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
本发明实施例通过预设的操作触发对外部存储媒介的数据拷贝操作,并实时的显示外部存储媒介的状态,使得使用者可以直观的了解数据的拷贝状态以及外部存储介质的状态,为使用者提供了方便。 The embodiment of the present invention triggers a data copy operation on an external storage medium by a preset operation, and displays the state of the external storage medium in real time, so that the user can intuitively understand the copy status of the data and the state of the external storage medium, and Provided for convenience.

Claims (13)

  1. 一种外部存储媒介的数据处理方法,应用于一处理器,包括:A data processing method for an external storage medium, applied to a processor, comprising:
    获取外部存储媒介的插入操作信号;Obtaining an insert operation signal of an external storage medium;
    若所述外部存储媒介工作正常,则产生一第一控制信息,所述第一控制信息使得与所述处理器进行通信连接的第一指示装置处于第一工作状态;If the external storage medium is working normally, generating a first control information, the first control information causing the first indication device that is in communication connection with the processor to be in a first working state;
    在第一预设时间内,获取第一操作信号;Acquiring the first operation signal in the first preset time;
    若获取得到所述第一操作信号,则对外部存储媒介进行第一数据拷贝操作;If the first operation signal is obtained, performing a first data copy operation on the external storage medium;
    在进行所述第一数据拷贝操作时,产生一第二控制信息,所述第二控制信息使得与所述处理器进行通信连接的第二指示装置处于第一工作状态。When the first data copy operation is performed, a second control information is generated, the second control information causing the second pointing device in communication connection with the processor to be in a first working state.
  2. 根据权利要求1所述的数据处理方法,还包括:The data processing method according to claim 1, further comprising:
    在第二预设时间内,获取第二操作信号;Acquiring the second operation signal in the second preset time;
    若获取得到所述第二操作信号,则对外部存储媒介进行第二数据拷贝操作。If the second operation signal is obtained, the second data copy operation is performed on the external storage medium.
  3. 根据权利要求2所述的数据处理方法,还包括:The data processing method according to claim 2, further comprising:
    在进行所述第二数据拷贝操作时,产生一第三控制信息,所述第三控制信息使得与所述处理器进行通信连接的第三指示装置处于第一工作状态。When the second data copy operation is performed, a third control information is generated, the third control information causing the third indication device that is in communication connection with the processor to be in the first working state.
  4. 根据权利要求1所述的数据处理方法,还包括:The data processing method according to claim 1, further comprising:
    获取所述外部存储媒介的拔出操作信号;Obtaining an extraction operation signal of the external storage medium;
    产生一第四控制信息,所述第四控制信息使得所述第一指示装置处于第二工作状态。A fourth control information is generated, the fourth control information causing the first pointing device to be in a second operational state.
  5. 一种处理器,包括:A processor comprising:
    第一获取模块,设置为:获取外部存储媒介的插入操作信号,触发第一生成模块;The first acquiring module is configured to: acquire an insertion operation signal of the external storage medium, and trigger the first generation module;
    第一生成模块,设置为:若所述外部存储媒介工作正常,则产生一第一控制信息,触发第二获取模块,所述第一控制信息使得与所述处理器进行通 信连接的第一指示装置处于第一工作状态;a first generating module, configured to: if the external storage medium works normally, generate a first control information, trigger a second acquiring module, where the first control information is made to communicate with the processor The first indicating device of the signal connection is in a first working state;
    第二获取模块,设置为:在第一预设时间内,获取第一操作信号,触发第一处理模块;The second acquiring module is configured to: acquire the first operation signal in the first preset time, and trigger the first processing module;
    第一处理模块,设置为:若第二获取模块获取得到所述第一操作信号,则对外部存储媒介进行第一数据拷贝操作,触发第二生成模块;The first processing module is configured to: if the second obtaining module obtains the first operation signal, perform a first data copy operation on the external storage medium, and trigger the second generating module;
    第二生成模块,设置为:在第一处理模块进行所述第一数据拷贝操作时,产生一第二控制信息,所述第二控制信息使得与所述处理器进行通信连接的第二指示装置处于第一工作状态。a second generating module, configured to: when the first processing module performs the first data copy operation, generate a second control information, where the second control information causes a second indicating device that is in communication connection with the processor In the first working state.
  6. 根据权利要求5所述的处理器,还包括:The processor of claim 5, further comprising:
    第三获取模块,设置为:在第二预设时间内,获取第二操作信号,触发第二处理模块;The third obtaining module is configured to: acquire the second operation signal in the second preset time, and trigger the second processing module;
    第二处理模块,设置为:若第三获取模块获取得到所述第二操作信号,则对外部存储媒介进行第二数据拷贝操作。The second processing module is configured to: if the third obtaining module obtains the second operation signal, perform a second data copy operation on the external storage medium.
  7. 根据权利要求6所述的处理器,还包括:The processor of claim 6 further comprising:
    第三生成模块,设置为:在第二处理模块进行所述第二数据拷贝操作时,产生一第三控制信息,所述第三控制信息使得与所述处理器进行通信连接的第三指示装置处于第一工作状态。a third generating module, configured to: when the second processing module performs the second data copy operation, generate a third control information, where the third control information causes a third indicating device that is in communication connection with the processor In the first working state.
  8. 根据权利要求5所述的处理器,还包括:The processor of claim 5, further comprising:
    第四获取模块,设置为:获取所述外部存储媒介的拔出操作信号,触发第四生成模块;The fourth obtaining module is configured to: obtain an extraction operation signal of the external storage medium, and trigger a fourth generation module;
    第四生成模块,设置为:产生一第四控制信息,所述第四控制信息使得所述第一指示装置处于第二工作状态。And a fourth generating module, configured to: generate a fourth control information, where the fourth control information causes the first indicating device to be in a second working state.
  9. 一种外部存储媒介的数据处理系统,包括:A data processing system for an external storage medium, comprising:
    处理器;processor;
    与所述处理器连接的逻辑器件;a logic device coupled to the processor;
    与所述逻辑器件连接的按压装置,所述按压装置设置为:产生按压操作信号;以及 a pressing device coupled to the logic device, the pressing device being configured to generate a pressing operation signal;
    与所述逻辑器件连接的指示装置;a pointing device coupled to the logic device;
    其中,所述按压装置通过所述逻辑器件将所述按压操作信号传递给所述处理器;Wherein the pressing device transmits the pressing operation signal to the processor through the logic device;
    所述处理器通过接收的所述按压操作信号生成控制所述指示装置工作状态的控制信息,并通过所述逻辑器件传递所述控制信息给所述指示装置。The processor generates control information for controlling an operating state of the pointing device by the received pressing operation signal, and transmits the control information to the pointing device through the logic device.
  10. 根据权利要求9所述的数据处理系统,其中,所述指示装置包括:分别与所述逻辑器件连接的第一指示装置、第二指示装置和第三指示装置。The data processing system of claim 9 wherein said indicating means comprises: first indicating means, second indicating means and third indicating means respectively coupled to said logic means.
  11. 根据权利要求10所述的数据处理系统,其中,所述处理器,包括:The data processing system of claim 10 wherein said processor comprises:
    第一获取模块,设置为:获取外部存储媒介的插入操作信号,触发第一生成模块;The first acquiring module is configured to: acquire an insertion operation signal of the external storage medium, and trigger the first generation module;
    第一生成模块,设置为:若所述外部存储媒介工作正常,则产生一第一控制信息,触发第二获取模块,所述第一控制信息使得与所述处理器进行通信连接的第一指示装置处于第一工作状态;a first generating module, configured to: if the external storage medium works normally, generate a first control information, trigger a second acquiring module, the first control information causes a first indication of a communication connection with the processor The device is in the first working state;
    第二获取模块,设置为:在第一预设时间内,获取第一操作信号,触发第一处理模块;The second acquiring module is configured to: acquire the first operation signal in the first preset time, and trigger the first processing module;
    第一处理模块,设置为:若第二获取模块获取得到所述第一操作信号,则对外部存储媒介进行第一数据拷贝操作,触发第二生成模块;The first processing module is configured to: if the second obtaining module obtains the first operation signal, perform a first data copy operation on the external storage medium, and trigger the second generating module;
    第二生成模块,设置为:在第一处理模块进行所述第一数据拷贝操作时,产生一第二控制信息,所述第二控制信息使得与所述处理器进行通信连接的第二指示装置处于第一工作状态。a second generating module, configured to: when the first processing module performs the first data copy operation, generate a second control information, where the second control information causes a second indicating device that is in communication connection with the processor In the first working state.
  12. 根据权利要求11所述的数据拷贝系统,其中,所述处理器,还包括:The data copying system according to claim 11, wherein the processor further comprises:
    第三获取模块,设置为:在第二预设时间内,获取第二操作信号,触发第二处理模块;The third obtaining module is configured to: acquire the second operation signal in the second preset time, and trigger the second processing module;
    第二处理模块,设置为:若第三获取模块获取得到所述第二操作信号,则对外部存储媒介进行第二数据拷贝操作,触发第三生成模块;The second processing module is configured to: if the third obtaining module obtains the second operation signal, perform a second data copy operation on the external storage medium, triggering the third generating module;
    第三生成模块,设置为:在第二处理模块进行所述第二数据拷贝操作时,产生一第三控制信息,所述第三控制信息使得与所述处理器进行通信连接的 第三指示装置处于第一工作状态。a third generation module, configured to: when the second processing module performs the second data copy operation, generate a third control information, where the third control information is in communication connection with the processor The third indicating device is in the first working state.
  13. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-4任一项的方法。 A computer readable storage medium storing computer executable instructions for performing the method of any of claims 1-4.
PCT/CN2015/096554 2014-12-11 2015-12-07 Data processing method, processor and system for external storage medium WO2016091135A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410763870.4A CN105739910A (en) 2014-12-11 2014-12-11 Data processing method and system for external storage medium, and processor
CN201410763870.4 2014-12-11

Publications (1)

Publication Number Publication Date
WO2016091135A1 true WO2016091135A1 (en) 2016-06-16

Family

ID=56106707

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/096554 WO2016091135A1 (en) 2014-12-11 2015-12-07 Data processing method, processor and system for external storage medium

Country Status (2)

Country Link
CN (1) CN105739910A (en)
WO (1) WO2016091135A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019009609A (en) * 2017-06-23 2019-01-17 カシオ計算機株式会社 Radio communication device, communication system, radio communication method, and radio communication program
JP7409043B2 (en) * 2019-11-25 2024-01-09 セイコーエプソン株式会社 Media processing device, control method for media processing device, and program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101097539A (en) * 2006-06-30 2008-01-02 联想(北京)有限公司 Data copy device of movable memory apparatus and method
EP1931112A1 (en) * 2006-09-15 2008-06-11 Sony Corporation Information processing device, download method, download interruption method, download resuming method, and program
US20090138631A1 (en) * 2007-11-27 2009-05-28 Aten International Co., Ltd. Remote usb access method
CN102821155A (en) * 2012-08-14 2012-12-12 福建伊时代信息科技股份有限公司 Data synchronization device and data synchronization method
CN103165166A (en) * 2011-12-16 2013-06-19 江南大学 Portable type data unloading device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101017451A (en) * 2006-12-05 2007-08-15 深圳创维-Rgb电子有限公司 Method and system for controlling insertion and extraction of USB on television

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101097539A (en) * 2006-06-30 2008-01-02 联想(北京)有限公司 Data copy device of movable memory apparatus and method
EP1931112A1 (en) * 2006-09-15 2008-06-11 Sony Corporation Information processing device, download method, download interruption method, download resuming method, and program
US20090138631A1 (en) * 2007-11-27 2009-05-28 Aten International Co., Ltd. Remote usb access method
CN103165166A (en) * 2011-12-16 2013-06-19 江南大学 Portable type data unloading device
CN102821155A (en) * 2012-08-14 2012-12-12 福建伊时代信息科技股份有限公司 Data synchronization device and data synchronization method

Also Published As

Publication number Publication date
CN105739910A (en) 2016-07-06

Similar Documents

Publication Publication Date Title
CN105573743B (en) Chip burning system and method and electronic equipment
US9804859B2 (en) Re-enumeration of USB 3.0 compatible devices
CN112463689B (en) OCP card hot plug device, method and computer readable storage medium
CN111163278B (en) Camera control method and device
WO2016091135A1 (en) Data processing method, processor and system for external storage medium
WO2015196479A1 (en) Program data updating method and device
JP2008257714A (en) Portable printer driver
CN105677429A (en) Program burning method, processor and electronic circuit
CN105808460B (en) External equipment recognition methods, device and electronic equipment
CN112526898B (en) Serial port line plug detection circuit and embedded equipment
CN107643900B (en) Display and upgrading method
CN109828773A (en) A kind of Breathing Suppotion device systems remote upgrade terminal and its implementation
US10460088B2 (en) Electronic device and connection method
CN103324186A (en) Automatic test system and control method for remote controller
CN110753219A (en) Image sensor detection equipment
US20150231511A1 (en) Stationary game apparatus, game apparatus, game system, recording medium and speed control method
KR101103940B1 (en) Method for powerless identification of server i/o slots
CN104823174A (en) Re-enumeration of USB 3.0 compatible devices
EP3451220B1 (en) Erasing device
TWI547859B (en) Method of removing external devices related computer system and non-transitory computer-readable medium
CN106773946A (en) A kind of logic control method of dynamic characteristic test master control borad
US10425545B2 (en) Printing apparatus and method for controlling the same
CN206133456U (en) Control of computer remote switch machine and status monitoring device
CN112181742A (en) Board card state changing method and device, IPMC and storage medium
CN117033075A (en) Data backup method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15868393

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15868393

Country of ref document: EP

Kind code of ref document: A1