CN111010357B - Data ferrying method and device based on HDD hard disk - Google Patents
Data ferrying method and device based on HDD hard disk Download PDFInfo
- Publication number
- CN111010357B CN111010357B CN202010155820.3A CN202010155820A CN111010357B CN 111010357 B CN111010357 B CN 111010357B CN 202010155820 A CN202010155820 A CN 202010155820A CN 111010357 B CN111010357 B CN 111010357B
- Authority
- CN
- China
- Prior art keywords
- data
- signal
- frame
- hard disk
- receiving end
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000005540 biological transmission Effects 0.000 claims abstract description 13
- 230000003321 amplification Effects 0.000 claims abstract description 5
- 238000003199 nucleic acid amplification method Methods 0.000 claims abstract description 5
- 230000008569 process Effects 0.000 claims description 9
- 239000000969 carrier Substances 0.000 claims description 7
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 238000012545 processing Methods 0.000 claims description 3
- 230000001502 supplementing effect Effects 0.000 claims 2
- 125000004122 cyclic group Chemical group 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 7
- 238000012546 transfer Methods 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000006698 induction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000005670 electromagnetic radiation Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000000696 magnetic material Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L27/00—Modulated-carrier systems
- H04L27/10—Frequency-modulated carrier systems, i.e. using frequency-shift keying
- H04L27/12—Modulator circuits; Transmitter circuits
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B1/00—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
- H04B1/0003—Software-defined radio [SDR] systems, i.e. systems wherein components typically implemented in hardware, e.g. filters or modulators/demodulators, are implented using software, e.g. by involving an AD or DA conversion stage such that at least part of the signal processing is performed in the digital domain
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L27/00—Modulated-carrier systems
- H04L27/10—Frequency-modulated carrier systems, i.e. using frequency-shift keying
- H04L27/14—Demodulator circuits; Receiver circuits
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
Description
技术领域technical field
本发明涉及数据传输领域,尤其涉及一种基于硬盘的数据摆渡方法及装置,特别涉及一种在物理隔离的计算机环境中,利用HDD的实现数据摆渡。The invention relates to the field of data transmission, in particular to a method and device for data ferrying based on a hard disk, and in particular to a method and device for data ferrying using HDD in a physically isolated computer environment.
背景技术Background technique
随着计算机技术的飞速发展,在两台设备间传递数据已经成为一种普遍的操作,在内网和外网之间、公共网络与专用网络之间进行数据传输,特别需要保障传输数据的安全性。With the rapid development of computer technology, it has become a common operation to transfer data between two devices. For data transmission between the internal network and the external network, between the public network and the private network, it is especially necessary to ensure the security of the transmitted data. sex.
在某些应用场景,由于存在网络攻击等风险,通过IP网络在两台设备或两个网络间传输数据并不能满足安全性的要求。为了保证数据安全,可以将两台设备或两个网络进行物理隔离,在物理隔离的两台设备或两个网络间使用数据摆渡的传输方式传输数据。In some application scenarios, due to risks such as network attacks, data transmission between two devices or two networks over an IP network cannot meet the security requirements. In order to ensure data security, two devices or two networks can be physically isolated, and data is transmitted between the two physically isolated devices or two networks using a data ferry transmission method.
传统的跨网数据交换方式有光盘摆渡机。即先用光盘刻录需要传输信息,然后用机械臂换到需要交换的另一端网络,然后读取存储,这样就完成了一次单向传输。这种方式速度慢,且丢包率高,安全性难以保障,万一丢失重要数据信息,会严重影响业务的正常开展。同时,由于数据拷贝是人工完成的,很难对其所拷贝的内容范围进行监管,难以保证数据的合规性,不能保证数据是否被篡改,对拷贝的数据及使用流程无法追溯,出现问题时无法追踪到责任人。The traditional way of cross-network data exchange is CD-ROM. That is, first use the CD to record the information that needs to be transmitted, then use the robotic arm to switch to the other end of the network that needs to be exchanged, and then read the storage, thus completing a one-way transmission. This method is slow, has a high packet loss rate, and is difficult to guarantee security. If important data information is lost, it will seriously affect the normal development of the business. At the same time, because data copying is done manually, it is difficult to supervise the scope of the copied content, it is difficult to ensure the compliance of the data, and it is impossible to guarantee whether the data has been tampered with, and the copied data and the use process cannot be traced back. The responsible person could not be traced.
还出现了利用电磁辐射、光波、声波、热学原理实现的数据摆渡解决方案,但现有的数据摆渡解决方案实现复杂,存在数据丢包、数据传输速度慢、数据还原难度大,以及存在数据泄密的风险等问题。There have also been data ferry solutions using electromagnetic radiation, light waves, sound waves, and thermal principles. However, the existing data ferry solutions are complex to implement, including data packet loss, slow data transmission, difficult data restoration, and data leakage. risks, etc.
发明内容SUMMARY OF THE INVENTION
为解决上述技术问题,本发明提出了一种基于HDD硬盘的数据摆渡方法及装置,所述方法及装置,用以解决现有技术中数据摆渡解决方案实现复杂,存在数据丢包、数据传输速度慢、数据还原难度大,以及存在数据泄密的风险的技术问题。In order to solve the above technical problems, the present invention proposes a method and device for data ferrying based on an HDD hard disk. The method and device are used to solve the complex implementation of data ferrying solutions in the prior art, such as data packet loss and data transmission speed. Slow, difficult to restore data, and technical problems with the risk of data leakage.
根据本发明的第一方面,提供一种基于HDD硬盘的数据摆渡方法,所述方法包括以下步骤:According to a first aspect of the present invention, a data transfer method based on an HDD hard disk is provided, the method comprising the following steps:
步骤S101:布置工作环境,确定数据发送端及数据接收端,所述数据发送端及数据接收端都具有HDD硬盘,所述HDD硬盘的磁头上配置磁头芯片,该磁头芯片用于实现电信号的放大;Step S101: Arrange the working environment, determine the data sending end and the data receiving end, both the data sending end and the data receiving end have an HDD hard disk, and a magnetic head chip is arranged on the magnetic head of the HDD hard disk, and the magnetic head chip is used to realize the transmission of electrical signals. enlarge;
步骤S102:所述数据发送端将待发送数据的放大的电信号转换成二进制信号,将二进制信号调制为2FSK信号,使表示数字0和1的二进制信号分别对应于频率f1和f2,使用f1和f2两个频率的载波传递信息;对每一帧数据,在物理帧首部增加前导码;Step S102: The data transmitting end converts the amplified electrical signal of the data to be sent into a binary signal, modulates the binary signal into a 2FSK signal, so that the binary signals representing digital 0 and 1 correspond to frequencies f 1 and f 2 respectively, using Carriers of two frequencies f 1 and f 2 transmit information; for each frame of data, a preamble is added to the header of the physical frame;
步骤S103:所述数据接收端使用软件无线电(SDR)接收载波传递的信号,还原信号,获取数据发送端发送的数据。Step S103: The data receiving end uses software defined radio (SDR) to receive the signal transmitted by the carrier, restore the signal, and obtain the data sent by the data transmitting end.
进一步地,数据发送端执行以下方法,包括:Further, the data sending end executes the following methods, including:
步骤S3001:所述数据发送端数据发送程序启动;Step S3001: the data sending end data sending program is started;
步骤S3002:所述数据发送端的HDD硬盘高速读取数据信号,放大该数据信号,并将读取的放大的数据信号转换为二进制格式信号;Step S3002: the HDD hard disk of the data sending end reads the data signal at high speed, amplifies the data signal, and converts the read amplified data signal into a binary format signal;
步骤S3003:将所述二进制格式信号调制为2FSK信号;Step S3003: modulate the binary format signal into a 2FSK signal;
步骤S3004:判断当前数据帧数据是否写满;若是,进入步骤S3009;若否,进入步骤S3005;Step S3004: determine whether the current data frame data is full; if yes, go to step S3009; if not, go to step S3005;
步骤S3005:按位读取2FSK信号;Step S3005: read the 2FSK signal bit by bit;
步骤S3006:判断读取的所述2FSK信号代表的数据是否是0;若是,进入步骤S3007;若否,进入步骤S3008;Step S3006: Determine whether the read data represented by the 2FSK signal is 0; if so, go to step S3007; if not, go to step S3008;
步骤S3007:调整HDD硬盘读写频率为f1;进入步骤S3010;Step S3007: Adjust the read/write frequency of the HDD hard disk to f 1 ; go to step S3010;
步骤S3008:调整HDD硬盘读写频率为f2;进入步骤S3010;Step S3008: adjust the read/write frequency of the HDD hard disk to f 2 ; go to step S3010;
步骤S3009:在当前帧的首部增加前导码,向数据接收端发送当前帧,实现数据发送端和数据接收端的同步;建立新的数据帧;进入步骤S3005;Step S3009: add a preamble to the header of the current frame, send the current frame to the data receiving end, and realize the synchronization of the data sending end and the data receiving end; establish a new data frame; enter step S3005;
步骤S3010:判断所述数据发送端数据是否发送结束;若是,进入步骤S3011;若否,进入步骤S3002;Step S3010: Determine whether the data of the data sending end has been sent; if so, go to Step S3011; if not, go to Step S3002;
步骤S3011:用0补齐当前数据帧空余位,在当前数据帧的首部增加前导码,向数据接收端发送当前数据帧。Step S3011: Fill the vacant bits of the current data frame with 0, add a preamble to the header of the current data frame, and send the current data frame to the data receiving end.
进一步地,数据帧的前四位为前导码,用于标记数据帧的时序,可以实现数据发送端和数据接收端之间的数据同步;数据帧的中间12位为传递的数据信息;数据帧还设置CRC校验码。Further, the first four bits of the data frame are the preamble, which is used to mark the timing of the data frame, and can realize the data synchronization between the data sending end and the data receiving end; the middle 12 bits of the data frame are the transmitted data information; the data frame Also set the CRC check code.
进一步地,所述数据接收端执行以下方法,包括:Further, the data receiving end performs the following methods, including:
步骤S601:所述数据接收端数据接收程序启动;Step S601: the data receiving end data receiving program is started;
步骤S602:使用软件无线电(SDR)接收数据帧,获取载波传递的信号,其中前导码实现发送方与接收方之间的同步;Step S602: use software-defined radio (SDR) to receive the data frame, and obtain the signal transmitted by the carrier, wherein the preamble realizes the synchronization between the sender and the receiver;
步骤S603:解调接收到的信号;Step S603: demodulate the received signal;
步骤S604:还原解调后的信号,对数据进行CRC校验,若校验正确则接收数据,并进行所述数据端显示,否则放弃。Step S604: Restore the demodulated signal, perform CRC check on the data, receive the data if the check is correct, and display the data terminal, otherwise give up.
根据本发明第二方面,提供一种基于HDD硬盘的数据摆渡装置,所述装置包括:According to a second aspect of the present invention, there is provided a data ferry device based on an HDD hard disk, the device comprising:
配置模块:用于布置工作环境,确定数据发送端及数据接收端,所述数据发送端及数据接收端都具有HDD硬盘,所述HDD硬盘的磁头上配置磁头芯片,该磁头芯片用于实现电信号的放大;Configuration module: used for arranging the working environment and determining the data sending end and the data receiving end. Both the data sending end and the data receiving end have HDD hard disks. The magnetic head of the HDD hard disk is equipped with a magnetic head chip, which is used to realize electrical signal amplification;
数据发送模块:用于由所述数据发送端将待发送数据的放大的电信号转换成二进制信号,将二进制信号调制为2FSK信号,使表示数字0和1的二进制信号分别对应于频率f1和f2,使用f1和f2两个频率的载波传递信息;对每一帧数据,在物理帧首部增加前导码;Data sending module: used for converting the amplified electrical signal of the data to be sent into a binary signal by the data sending end, and modulating the binary signal into a 2FSK signal, so that the binary signals representing digital 0 and 1 correspond to frequencies f 1 and 1 respectively. f 2 , use two frequency carriers of f 1 and f 2 to transmit information; for each frame of data, add a preamble to the header of the physical frame;
数据接收模块:用于由所述数据接收端使用软件无线电(SDR)接收载波传递的信号,还原信号,获取数据发送端发送的数据。Data receiving module: used by the data receiving end to receive the signal transmitted by the carrier using software defined radio (SDR), restore the signal, and obtain the data sent by the data transmitting end.
进一步地,所述数据发送模块,包括:Further, the data sending module includes:
启动子模块:用于所述数据发送端数据发送程序启动;Startup submodule: used for starting the data sending program of the data sending end;
格式转换子模块:用于所述数据发送端的HDD硬盘高速读取数据信号,放大该数据信号,并将读取的放大的数据信号转换为二进制格式信号;Format conversion submodule: used for the HDD hard disk of the data sending end to read the data signal at high speed, amplify the data signal, and convert the read amplified data signal into a binary format signal;
调制子模块:用于将所述二进制格式信号调制为2FSK信号;Modulation submodule: used to modulate the binary format signal into a 2FSK signal;
第一判断子模块:用于判断当前数据帧数据是否写满;The first judgment sub-module: used to judge whether the current data frame data is full;
读取子模块:用于按位读取2FSK信号;Read sub-module: used to read 2FSK signal bit by bit;
第二判断子模块:用于判断读取的所述2FSK信号代表的数据是否是0;The second judging submodule: for judging whether the data represented by the read 2FSK signal is 0;
第一调频子模块:用于调整HDD硬盘读写频率为f1;The first frequency modulation sub-module: used to adjust the read and write frequency of the HDD hard disk to f 1 ;
第二调频子模块:用于调整HDD硬盘读写频率为f2;The second frequency modulation sub-module: used to adjust the read and write frequency of the HDD hard disk to f 2 ;
前导码子模块:用于在当前帧的首部增加前导码,向数据接收端发送当前帧,实现数据发送端和数据接收端的同步;建立新的数据帧;Preamble sub-module: used to add a preamble to the header of the current frame, send the current frame to the data receiving end, realize the synchronization of the data sending end and the data receiving end; establish a new data frame;
第三判断子模块:用于判断所述数据发送端数据是否发送结束;The third judging sub-module: used to judge whether the data of the data sending end has been sent;
发送子模块:用0补齐当前数据帧空余位,在当前数据帧的首部增加前导码,向数据接收端发送当前数据帧。Sending sub-module: fill the vacant bits of the current data frame with 0, add a preamble to the header of the current data frame, and send the current data frame to the data receiving end.
进一步地,数据帧的前四位为前导码,用于标记数据帧的时序,可以实现数据发送端和数据接收端之间的数据同步;数据帧的中间12位为传递的数据信息;数据帧还设置CRC校验码。Further, the first four bits of the data frame are the preamble, which is used to mark the timing of the data frame, and can realize the data synchronization between the data sending end and the data receiving end; the middle 12 bits of the data frame are the transmitted data information; the data frame Also set the CRC check code.
进一步地,所述数据接收模块,包括:Further, the data receiving module includes:
启动子模块:用于由所述数据接收端数据接收程序启动;Startup submodule: used for being started by the data receiving program of the data receiving end;
接收子模块:使用软件无线电(SDR)接收数据帧,获取载波传递的信号,其中前导码实现发送方与接收方之间的同步;Receiving sub-module: use software-defined radio (SDR) to receive data frames and obtain the signal transmitted by the carrier, in which the preamble realizes the synchronization between the sender and the receiver;
解调子模块:用于解调接收到的信号;Demodulation sub-module: used to demodulate the received signal;
还原子模块:用于还原解调后的信号,对数据进行CRC校验,若校验正确则接收数据,并进行所述数据端显示,否则放弃。Restoration atomic module: used to restore the demodulated signal, perform CRC check on the data, receive the data if the check is correct, and display the data at the end, otherwise give up.
根据本发明第三方面,提供一种基于HDD硬盘的数据摆渡系统,包括:According to a third aspect of the present invention, a data ferry system based on an HDD hard disk is provided, comprising:
处理器,用于执行多条指令;a processor for executing multiple instructions;
存储器,用于存储多条指令;memory for storing multiple instructions;
其中,所述多条指令,用于由所述存储器存储,并由所述处理器加载并执行如前所述的基于HDD硬盘的数据摆渡方法。Wherein, the plurality of instructions are used to be stored by the memory, and loaded by the processor to execute the aforementioned method for data transfer based on the HDD hard disk.
根据本发明第四方面,提供一种计算机可读存储介质,所述存储介质中存储有多条指令;所述多条指令,用于由处理器加载并执行如前所述的基于HDD硬盘的数据摆渡方法。According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein a plurality of instructions are stored in the storage medium; the plurality of instructions are used by a processor to load and execute the aforementioned HDD-based hard disk drive. Data Ferry Method.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,并可依照说明书的内容予以实施,以下以本发明的较佳实施例并配合附图详细说明如后。The above description is only an overview of the technical solution of the present invention. In order to understand the technical means of the present invention more clearly, and implement it according to the content of the description, the preferred embodiments of the present invention are described in detail below with the accompanying drawings.
附图说明Description of drawings
构成本发明的一部分的附图用来提供对本发明的进一步理解,本发明提供如下附图进行说明。在附图中:The accompanying drawings, which form a part of this disclosure, are provided to provide a further understanding of the present disclosure, and the present disclosure is provided with the following figures to illustrate. In the attached image:
图1为本发明一个实施方式的基于HDD硬盘的数据摆渡方法流程图;1 is a flowchart of a method for data ferrying based on an HDD hard disk according to an embodiment of the present invention;
图2为本发明一个实施方式的布置的工作环境场景图;Fig. 2 is a working environment scene diagram of the arrangement of an embodiment of the present invention;
图3为本发明一个实施方式的数据发送端执行方法流程图;3 is a flowchart of a method for executing a data sending end according to an embodiment of the present invention;
图4为本发明一个实施方式的调制方式示意图;FIG. 4 is a schematic diagram of a modulation method according to an embodiment of the present invention;
图5为本发明一个实施方式的数据帧格式示意图;5 is a schematic diagram of a data frame format according to an embodiment of the present invention;
图6为本发明一个实施方式的数据接收端执行方法流程图;6 is a flowchart of a method for executing a data receiving end according to an embodiment of the present invention;
图7为本发明一个实施方式的基于HDD硬盘的数据摆渡装置结构框图。FIG. 7 is a structural block diagram of a data ferry device based on an HDD hard disk according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明具体实施例及相应的附图对本发明技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
首先结合图1说明为本发明一个实施方式的基于HDD硬盘的数据摆渡流程图。如图1所示,应用于物理隔离的计算机环境中,包括以下步骤:First, a flow chart of data transfer based on an HDD hard disk according to an embodiment of the present invention will be described with reference to FIG. 1 . As shown in Figure 1, when applied to a physically isolated computer environment, it includes the following steps:
步骤S101:布置工作环境,确定数据发送端及数据接收端,所述数据发送端及数据接收端都具有HDD硬盘,所述HDD硬盘的磁头上配置磁头芯片,该磁头芯片用于实现电信号的放大;Step S101: Arrange the working environment, determine the data sending end and the data receiving end, both the data sending end and the data receiving end have an HDD hard disk, and a magnetic head chip is arranged on the magnetic head of the HDD hard disk, and the magnetic head chip is used to realize the transmission of electrical signals. enlarge;
步骤S102:所述数据发送端将待发送数据的放大的电信号转换成二进制信号,将二进制信号调制为2FSK信号,使表示数字0和1的二进制信号分别对应于频率f1和f2,使用f1和f2两个频率的载波传递信息;对每一帧数据,在物理帧首部增加前导码;Step S102: The data transmitting end converts the amplified electrical signal of the data to be sent into a binary signal, modulates the binary signal into a 2FSK signal, so that the binary signals representing digital 0 and 1 correspond to frequencies f 1 and f 2 respectively, using Carriers of two frequencies f 1 and f 2 transmit information; for each frame of data, a preamble is added to the header of the physical frame;
步骤S103:所述数据接收端使用软件无线电(SDR)接收载波传递的信号,还原信号,获取数据发送端发送的数据。Step S103: The data receiving end uses software defined radio (SDR) to receive the signal transmitted by the carrier, restore the signal, and obtain the data sent by the data transmitting end.
以下结合图2说明为本发明一个实施方式的布置的工作环境场景图。如图2所示:The following describes a working environment scene diagram of an arrangement of an embodiment of the present invention with reference to FIG. 2 . as shown in picture 2:
数据发送端在应用程序的控制下,通过硬盘高速读写硬盘,产生辐射,将电信号进行2FSK的数字调制。数据接收端利用SDR设备接收信号,然后经过信号解调、还原,将数据发送端待发送数据显示在数据接收端的系统终端。Under the control of the application program, the data sending end reads and writes the hard disk at high speed through the hard disk, generates radiation, and conducts digital modulation of 2FSK on the electrical signal. The data receiving end uses the SDR device to receive the signal, and then demodulates and restores the signal, and displays the data to be sent by the data transmitting end on the system terminal of the data receiving end.
步骤S101:布置工作环境,确定数据发送端及数据接收端,所述数据发送端及数据接收端都具有HDD硬盘,所述HDD硬盘的磁头上配置磁头芯片,该磁头芯片用于实现电信号的放大;Step S101: Arrange the working environment, determine the data sending end and the data receiving end, both the data sending end and the data receiving end have an HDD hard disk, and a magnetic head chip is arranged on the magnetic head of the HDD hard disk, and the magnetic head chip is used to realize the transmission of electrical signals. enlarge;
具体地,硬盘的数据保存于布满磁性物质的盘片上,HDD硬盘写数据的过程是通过感应磁头对HDD盘片磁性物质的磁极进行改变的过程;HDD硬盘读数据是MR磁头通过阻值的变化感应信号的过程,磁头在HDD硬盘的读、写过程中都起到了关键作用。在HDD硬盘的磁头上,配置一磁头芯片,该磁头芯片用于放大HDD硬盘在读、写过程中产生的电信号。Specifically, the data of the hard disk is stored on the disk full of magnetic substances, and the process of writing data in the HDD hard disk is the process of changing the magnetic pole of the magnetic material of the HDD disk through the induction head; the reading data of the HDD hard disk is the resistance value of the MR head. In the process of changing the induction signal, the magnetic head plays a key role in the reading and writing process of the HDD hard disk. A magnetic head chip is arranged on the magnetic head of the HDD hard disk, and the magnetic head chip is used to amplify the electrical signals generated by the HDD hard disk in the process of reading and writing.
步骤S102:所述数据发送端将待发送数据的放大的电信号转换成二进制信号,将二进制信号调制为2FSK信号,使表示数字0和1的二进制信号分别对应于频率f1和f2,使用f1和f2两个频率的载波传递信息;对每一帧数据,在物理帧首部增加前导码;Step S102: The data transmitting end converts the amplified electrical signal of the data to be sent into a binary signal, modulates the binary signal into a 2FSK signal, so that the binary signals representing digital 0 and 1 correspond to frequencies f 1 and f 2 respectively, using Carriers of two frequencies f 1 and f 2 transmit information; for each frame of data, a preamble is added to the header of the physical frame;
以下结合图3说明本发明的数据发送端的执行过程,图3为本发明一个实施的数据发送端执行方法流程图,如图3所示,包括:The following describes the execution process of the data sending end of the present invention with reference to FIG. 3 . FIG. 3 is a flowchart of an implementation method of the data sending end of the present invention, as shown in FIG. 3 , including:
步骤S3001:所述数据发送端数据发送程序启动;Step S3001: the data sending end data sending program is started;
步骤S3002:所述数据发送端的HDD硬盘高速读取数据信号,放大该数据信号,并将读取的放大的数据信号转换为二进制格式信号;Step S3002: the HDD hard disk of the data sending end reads the data signal at high speed, amplifies the data signal, and converts the read amplified data signal into a binary format signal;
步骤S3003:将所述二进制格式信号调制为2FSK信号;Step S3003: modulate the binary format signal into a 2FSK signal;
步骤S3004:判断当前数据帧数据是否写满;若是,进入步骤S3009;若否,进入步骤S3005;Step S3004: determine whether the current data frame data is full; if yes, go to step S3009; if not, go to step S3005;
步骤S3005:按位读取2FSK信号;Step S3005: read the 2FSK signal bit by bit;
步骤S3006:判断读取的所述2FSK信号代表的数据是否是0;若是,进入步骤S3007;若否,进入步骤S3008;Step S3006: Determine whether the read data represented by the 2FSK signal is 0; if so, go to step S3007; if not, go to step S3008;
步骤S3007:调整HDD硬盘读写频率为f1;进入步骤S3010;Step S3007: Adjust the read/write frequency of the HDD hard disk to f 1 ; go to step S3010;
步骤S3008:调整HDD硬盘读写频率为f2;进入步骤S3010;Step S3008: adjust the read/write frequency of the HDD hard disk to f 2 ; go to step S3010;
步骤S3009:在当前帧的首部增加前导码,向数据接收端发送当前帧,实现数据发送端和数据接收端的同步;建立新的数据帧;进入步骤S3005;Step S3009: add a preamble to the header of the current frame, send the current frame to the data receiving end, and realize the synchronization of the data sending end and the data receiving end; establish a new data frame; enter step S3005;
步骤S3010:判断所述数据发送端数据是否发送结束;若是,进入步骤S3011;若否,进入步骤S3002;Step S3010: Determine whether the data of the data sending end has been sent; if so, go to Step S3011; if not, go to Step S3002;
步骤S3011:用0补齐当前数据帧空余位,在当前数据帧的首部增加前导码,向数据接收端发送当前数据帧。Step S3011: Fill the vacant bits of the current data frame with 0, add a preamble to the header of the current data frame, and send the current data frame to the data receiving end.
进一步地,所述步骤S3003:将所述二进制格式信号调制为2FSK信号;Further, the step S3003: modulate the binary format signal into a 2FSK signal;
结合图4为说明本发明一个实施方式的调制方式示意图。如图4所示:4 is a schematic diagram illustrating a modulation method according to an embodiment of the present invention. As shown in Figure 4:
数据发送端将待发送数据的放大的电信号转化成计算机能识别的二进制信号,需要对信号进行调制,采用2FSK的调制方式,调制公式为:The data sending end converts the amplified electrical signal of the data to be sent into a binary signal that can be recognized by the computer. The signal needs to be modulated. The 2FSK modulation method is used. The modulation formula is:
将0和1分别对应两个不同的频率f1和f2,使用f1和f2两个频率的载波传递数字信息。0 and 1 are respectively corresponding to two different frequencies f 1 and f 2 , and digital information is transmitted by using the carrier waves of the two frequencies of f 1 and f 2 .
进一步地,所述步骤S3009:在当前帧的首部增加前导码,向数据接收端发送当前帧,实现数据发送端和数据接收端的同步;建立新的数据帧;进入步骤S3005;Further, the step S3009: adding a preamble to the header of the current frame, sending the current frame to the data receiving end, and realizing the synchronization of the data sending end and the data receiving end; establishing a new data frame; entering step S3005;
结合图5说明本发明一个实施方式的数据帧格式示意图,如图5所示:A schematic diagram of a data frame format according to an embodiment of the present invention is described with reference to FIG. 5 , as shown in FIG. 5 :
数据帧的前四位为前导码,用于标记数据帧的时序,可以实现数据发送端和数据接收端之间的数据同步。数据帧的中间12位为传递的数据信息,数据帧还设置CRC校验码。The first four bits of the data frame are the preamble, which is used to mark the timing of the data frame, and can realize the data synchronization between the data sending end and the data receiving end. The middle 12 bits of the data frame are the transmitted data information, and the data frame is also set with a CRC check code.
步骤S103:所述数据接收端使用软件无线电(SDR)接收载波传递的信号,还原信号,获取数据发送端发送的数据。Step S103: The data receiving end uses software defined radio (SDR) to receive the signal transmitted by the carrier, restore the signal, and obtain the data sent by the data transmitting end.
结合图6说明数据接收端执行的方法,图6为本发明一个实施方式的数据接收端的执行方法流程图,如图6所示,包括:The method performed by the data receiving end is described with reference to FIG. 6. FIG. 6 is a flowchart of the execution method of the data receiving end according to an embodiment of the present invention, as shown in FIG. 6, including:
步骤S601:所述数据接收端数据接收程序启动;Step S601: the data receiving end data receiving program is started;
步骤S602:使用软件无线电(SDR)接收数据帧,获取载波传递的信号,其中前导码实现发送方与接收方之间的同步;Step S602: use software-defined radio (SDR) to receive the data frame, and obtain the signal transmitted by the carrier, wherein the preamble realizes the synchronization between the sender and the receiver;
步骤S603:解调接收到的信号;Step S603: demodulate the received signal;
步骤S604:还原解调后的信号,对数据进行CRC校验,若校验正确则接收数据,并进行所述数据端显示,否则放弃。Step S604: Restore the demodulated signal, perform CRC check on the data, receive the data if the check is correct, and display the data terminal, otherwise give up.
本发明实施例进一步给出一种基于HDD硬盘的数据摆渡装置,如图7所示,所述装置包括:The embodiment of the present invention further provides a data ferry device based on an HDD hard disk. As shown in FIG. 7 , the device includes:
所述装置包括:The device includes:
配置模块:用于布置工作环境,确定数据发送端及数据接收端,所述数据发送端及数据接收端都具有HDD硬盘,所述HDD硬盘的磁头上配置磁头芯片,该磁头芯片用于实现电信号的放大;Configuration module: used for arranging the working environment and determining the data sending end and the data receiving end. Both the data sending end and the data receiving end have HDD hard disks. The magnetic head of the HDD hard disk is equipped with a magnetic head chip, which is used to realize electrical signal amplification;
数据发送模块:用于由所述数据发送端将待发送数据的放大的电信号转换成二进制信号,将二进制信号调制为2FSK信号,使表示数字0和1的二进制信号分别对应于频率f1和f2,使用f1和f2两个频率的载波传递信息;对每一帧数据,在物理帧首部增加前导码;Data sending module: used for converting the amplified electrical signal of the data to be sent into a binary signal by the data sending end, and modulating the binary signal into a 2FSK signal, so that the binary signals representing digital 0 and 1 correspond to frequencies f 1 and 1 respectively. f 2 , use two frequency carriers of f 1 and f 2 to transmit information; for each frame of data, add a preamble to the header of the physical frame;
数据接收模块:用于由所述数据接收端使用软件无线电(SDR)接收载波传递的信号,还原信号,获取数据发送端发送的数据。Data receiving module: used by the data receiving end to receive the signal transmitted by the carrier using software defined radio (SDR), restore the signal, and obtain the data sent by the data transmitting end.
进一步地,所述数据发送模块,包括:Further, the data sending module includes:
启动子模块:用于所述数据发送端数据发送程序启动;Startup submodule: used for starting the data sending program of the data sending end;
格式转换子模块:用于所述数据发送端的HDD硬盘高速读取数据信号,放大该数据信号,并将读取的放大的数据信号转换为二进制格式信号;Format conversion submodule: used for the HDD hard disk of the data sending end to read the data signal at high speed, amplify the data signal, and convert the read amplified data signal into a binary format signal;
调制子模块:用于将所述二进制格式信号调制为2FSK信号;Modulation submodule: used to modulate the binary format signal into a 2FSK signal;
第一判断子模块:用于判断当前数据帧数据是否写满;The first judgment sub-module: used to judge whether the current data frame data is full;
读取子模块:用于按位读取2FSK信号;Read sub-module: used to read 2FSK signal bit by bit;
第二判断子模块:用于判断读取的所述2FSK信号代表的数据是否是0;The second judging submodule: for judging whether the data represented by the read 2FSK signal is 0;
第一调频子模块:用于调整HDD硬盘读写频率为f1;The first frequency modulation sub-module: used to adjust the read and write frequency of the HDD hard disk to f 1 ;
第二调频子模块:用于调整HDD硬盘读写频率为f2;The second frequency modulation sub-module: used to adjust the read and write frequency of the HDD hard disk to f 2 ;
前导码子模块:用于在当前帧的首部增加前导码,向数据接收端发送当前帧,实现数据发送端和数据接收端的同步;建立新的数据帧;Preamble sub-module: used to add a preamble to the header of the current frame, send the current frame to the data receiving end, realize the synchronization of the data sending end and the data receiving end; establish a new data frame;
第三判断子模块:用于判断所述数据发送端数据是否发送结束;The third judging sub-module: used to judge whether the data of the data sending end has been sent;
发送子模块:用0补齐当前数据帧空余位,在当前数据帧的首部增加前导码,向数据接收端发送当前数据帧。Sending sub-module: fill the vacant bits of the current data frame with 0, add a preamble to the header of the current data frame, and send the current data frame to the data receiving end.
进一步地,数据帧的前四位为前导码,用于标记数据帧的时序,可以实现数据发送端和数据接收端之间的数据同步;数据帧的中间12位为传递的数据信息;数据帧还设置CRC校验码。Further, the first four bits of the data frame are the preamble, which is used to mark the timing of the data frame, and can realize the data synchronization between the data sending end and the data receiving end; the middle 12 bits of the data frame are the transmitted data information; the data frame Also set the CRC check code.
进一步地,所述数据接收模块,包括:Further, the data receiving module includes:
启动子模块:用于由所述数据接收端数据接收程序启动;Startup submodule: used for being started by the data receiving program of the data receiving end;
接收子模块:使用软件无线电(SDR)接收数据帧,获取载波传递的信号,其中前导码实现发送方与接收方之间的同步;Receiving sub-module: use software-defined radio (SDR) to receive data frames and obtain the signal transmitted by the carrier, in which the preamble realizes the synchronization between the sender and the receiver;
解调子模块:用于解调接收到的信号;Demodulation sub-module: used to demodulate the received signal;
还原子模块:用于还原解调后的信号,对数据进行CRC校验,若校验正确则接收数据,并进行所述数据端显示,否则放弃。Restoration atomic module: used to restore the demodulated signal, perform CRC check on the data, receive the data if the check is correct, and display the data at the end, otherwise give up.
本发明实施例进一步给出一种基于HDD硬盘的数据摆渡的系统,包括:The embodiment of the present invention further provides a system for data ferrying based on an HDD hard disk, including:
处理器,用于执行多条指令;a processor for executing multiple instructions;
存储器,用于存储多条指令;memory for storing multiple instructions;
其中,所述多条指令,用于由所述存储器存储,并由所述处理器加载并执行如前所述的基于HDD硬盘的数据摆渡的方法。Wherein, the plurality of instructions are used to be stored by the memory and loaded by the processor to execute the aforementioned method for data transfer based on an HDD hard disk.
本发明实施例进一步给出一种计算机可读存储介质,所述存储介质中存储有多条指令;所述多条指令,用于由处理器加载并执行如前所述的基于HDD硬盘的数据摆渡的方法。An embodiment of the present invention further provides a computer-readable storage medium, where multiple instructions are stored in the storage medium; the multiple instructions are used by a processor to load and execute the aforementioned data based on the HDD hard disk method of ferrying.
需要说明的是,在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。It should be noted that the embodiments of the present invention and the features of the embodiments may be combined with each other under the condition of no conflict.
在本发明所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined. Either it can be integrated into another system, or some features can be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机装置(可以是个人计算机,实体机服务器,或者网络云服务器等,需安装Windows或者Windows Server操作系统)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium, and include several instructions to make a computer device (which can be a personal computer, a physical machine server, or a network cloud server, etc., need to install Windows or Windows Server operating system) to execute each of the present invention. Some steps of the method described in the examples. The aforementioned storage medium includes: U disk, removable hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes.
以上所述,仅是本发明的较佳实施例而已,并非对本发明作任何形式上的限制,依据本发明的技术实质对以上实施例所作的任何简单修改、等同变化与修饰,均仍属于本发明技术方案的范围内。The above are only preferred embodiments of the present invention, and do not limit the present invention in any form. Any simple modifications, equivalent changes and modifications made to the above embodiments according to the technical essence of the present invention still belong to the present invention. within the scope of the technical solution of the invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010155820.3A CN111010357B (en) | 2020-03-09 | 2020-03-09 | Data ferrying method and device based on HDD hard disk |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010155820.3A CN111010357B (en) | 2020-03-09 | 2020-03-09 | Data ferrying method and device based on HDD hard disk |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111010357A CN111010357A (en) | 2020-04-14 |
CN111010357B true CN111010357B (en) | 2020-06-16 |
Family
ID=70120984
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010155820.3A Active CN111010357B (en) | 2020-03-09 | 2020-03-09 | Data ferrying method and device based on HDD hard disk |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111010357B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1217526A (en) * | 1997-11-13 | 1999-05-26 | 索尼株式会社 | Apparatus for recording data on magnetic recording medium |
CN1257273A (en) * | 1998-11-11 | 2000-06-21 | Tdk株式会社 | Magnetic head device |
US6263288B1 (en) * | 1998-07-22 | 2001-07-17 | Eastman Kodak Company | Method and apparatus for indicating proximity of film scanner to CRT display monitor |
CN103187071A (en) * | 2011-12-30 | 2013-07-03 | Hgst荷兰有限公司 | Microwave-assisted magnetic recording head and systems thereof with environmental conditions control |
CN104050981A (en) * | 2013-03-13 | 2014-09-17 | 希捷科技有限公司 | Contact detection using laser modulation |
CN205453690U (en) * | 2016-03-14 | 2016-08-10 | 张培蕾 | Using mobile phones simulation magnetism data transmission's device |
CN205723958U (en) * | 2016-06-17 | 2016-11-23 | 上海易码信息科技有限公司 | Magnetic field impulse launches antenna |
CN106776412A (en) * | 2016-12-21 | 2017-05-31 | 广州炒米信息科技有限公司 | Interface compatibility circuit |
CN109640096A (en) * | 2018-12-06 | 2019-04-16 | 浙江大学 | A kind of concealed communication method based on video decoding electromagnetic leakage |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001176225A (en) * | 1999-12-15 | 2001-06-29 | Tdk Corp | Head suspension assembly |
JP2010108560A (en) * | 2008-10-31 | 2010-05-13 | Toshiba Storage Device Corp | Signal amplification device and storage device |
US8755256B2 (en) * | 2012-11-14 | 2014-06-17 | Headway Technologies, Inc. | Plasmon resonator with dual waveguide excitation for TAMR |
-
2020
- 2020-03-09 CN CN202010155820.3A patent/CN111010357B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1217526A (en) * | 1997-11-13 | 1999-05-26 | 索尼株式会社 | Apparatus for recording data on magnetic recording medium |
US6263288B1 (en) * | 1998-07-22 | 2001-07-17 | Eastman Kodak Company | Method and apparatus for indicating proximity of film scanner to CRT display monitor |
CN1257273A (en) * | 1998-11-11 | 2000-06-21 | Tdk株式会社 | Magnetic head device |
CN103187071A (en) * | 2011-12-30 | 2013-07-03 | Hgst荷兰有限公司 | Microwave-assisted magnetic recording head and systems thereof with environmental conditions control |
CN104050981A (en) * | 2013-03-13 | 2014-09-17 | 希捷科技有限公司 | Contact detection using laser modulation |
CN205453690U (en) * | 2016-03-14 | 2016-08-10 | 张培蕾 | Using mobile phones simulation magnetism data transmission's device |
CN205723958U (en) * | 2016-06-17 | 2016-11-23 | 上海易码信息科技有限公司 | Magnetic field impulse launches antenna |
CN106776412A (en) * | 2016-12-21 | 2017-05-31 | 广州炒米信息科技有限公司 | Interface compatibility circuit |
CN109640096A (en) * | 2018-12-06 | 2019-04-16 | 浙江大学 | A kind of concealed communication method based on video decoding electromagnetic leakage |
Non-Patent Citations (1)
Title |
---|
基于物联网的物理隔离隐蔽信道研究;周正;《中国优秀硕士学位论文全文库》;20190531;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111010357A (en) | 2020-04-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3435570B1 (en) | A nfc device and method for selectively securing records in a near field communication data exchange format message | |
TWI305641B (en) | ||
RU2002117435A (en) | DEVICE AND METHOD FOR CODING AND STORING DIGITAL IMAGES AND AUDIO SIGNALS | |
TW346571B (en) | Data reception apparatus, data transmission apparatus, information processing system, data reception method | |
AU2013275900B2 (en) | Audio data transmission system, audio data transmission device, and electronic signature tool | |
JP2004511377A (en) | Storing fault-tolerant data on photos | |
JP2004511378A (en) | Storing fault-tolerant data on photos | |
CN1396773A (en) | Digital information recording device and output decice | |
CN111010357B (en) | Data ferrying method and device based on HDD hard disk | |
CN102314322A (en) | Data processing method and device based on RAID (redundant array of independent disks) | |
HUP0203950A2 (en) | Method of choosing display and record format of video image information | |
CN112612411A (en) | System and method for data backup and instant access based on distributed cloud storage | |
CN106559596A (en) | Image processing apparatus and image processing method | |
KR101839701B1 (en) | An apparatus for one-way data transmission and method thereof | |
JPWO2006126580A1 (en) | Image data transmission system and method, and terminal device and management center constituting the transmission side and the reception side of the system, respectively | |
JP2856581B2 (en) | Transmission system, transmission device, reception device, and transmission method | |
JP3403033B2 (en) | Communication apparatus and method | |
JP4564318B2 (en) | Communication device and communication method | |
CN112783671B (en) | Fusion system suitable for image voice and data transmission | |
CN100562032C (en) | A kind of method of utilizing MMS to realize the multi-point backup of mobile communication book | |
JPS6376576A (en) | Data recorder | |
JP4862200B2 (en) | Content transfer system | |
JPS6212227A (en) | Privacy communication system | |
JP2002135270A (en) | Data asynchronous transfer system | |
CN115988008A (en) | High-density storage method and system for cloud storage system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |