WO2015120758A1 - 一种数据通信方法、终端及信息安全设备 - Google Patents

一种数据通信方法、终端及信息安全设备 Download PDF

Info

Publication number
WO2015120758A1
WO2015120758A1 PCT/CN2015/070552 CN2015070552W WO2015120758A1 WO 2015120758 A1 WO2015120758 A1 WO 2015120758A1 CN 2015070552 W CN2015070552 W CN 2015070552W WO 2015120758 A1 WO2015120758 A1 WO 2015120758A1
Authority
WO
WIPO (PCT)
Prior art keywords
coding mode
test data
audio test
data packet
terminal
Prior art date
Application number
PCT/CN2015/070552
Other languages
English (en)
French (fr)
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 WO2015120758A1 publication Critical patent/WO2015120758A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0015Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy
    • H04L1/0019Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy in which mode-switching is based on a statistical approach
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0014Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the source coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0015Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0033Systems modifying transmission characteristics according to link quality, e.g. power backoff arrangements specific to the transmitter
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/16Vocoder architecture
    • G10L19/18Vocoders using multiple modes

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a data communication method, a terminal, and an information security device.
  • the mobile phone When the mobile phone communicates with the information security device, for example, the mobile phone sends data to the information security device through the audio interface, and the mobile phone encodes the data to be sent by using a certain encoding method, and sends the encoded data to the information security device.
  • a mobile phone when it sends data through an audio interface, it supports multiple encoding methods.
  • the mobile phone cannot implement the selection of the coding mode.
  • the invention aims to solve the problem that the above-mentioned mobile phone cannot realize the selection of the coding mode.
  • the main object of the present invention is to provide a data communication method.
  • Another object of the present invention is to provide a terminal.
  • Still another object of the present invention is to provide a terminal.
  • Still another object of the present invention is to provide an information security device.
  • An aspect of the present invention provides a data communication method, including:
  • the terminal encodes the audio test data packet by using at least two mutually different coding modes, and obtains at least two audio test data packets encoded by mutually different coding modes;
  • the information security device decodes the received encoded audio test data packet to obtain at least two audio test data packets
  • the information security device calculates a bit error rate of each of the audio test data packets, and compares a bit error rate of the audio test data packet;
  • a target coding mode Determining, by the information security device, a target coding mode, where the target coding mode is an encoding mode used by an audio test data packet with the lowest bit error rate
  • the terminal determines the target coding mode according to the tag information of the target coding mode, where the target coding mode is used to encode data transmitted by the terminal to the information security device.
  • the information security device includes a smart key device and an adapter device having a communication connection interface with the smart key device.
  • the coding mode is a frequency offset modulation FSK coding mode.
  • FSK coding mode a sampling path is used to obtain a sine wave with a period of T1 to represent a logic 0, and N sampling points are used to obtain a period of T2.
  • the sine wave represents logic 1, M ⁇ N, T1 ⁇ T2, and M and N are positive integers.
  • Another aspect of the present invention provides a terminal, including:
  • a coding unit configured to encode the audio test data packet by using at least two mutually different coding modes, to obtain at least two audio test data packets encoded by mutually different coding modes;
  • a sending unit configured to send, by using an audio interface, the at least two encoded audio test data packets to an information security device
  • a receiving unit configured to receive a response data packet sent by the information security device, where the response data packet includes tag information of the target coding mode, where the target coding mode is an encoding used by an audio test data packet with the lowest bit error rate the way;
  • a processing unit configured to acquire, from the response data packet, the tag information of the target coding mode, and determine the target coding mode according to the tag information of the target coding mode, where the target coding mode is used for the terminal.
  • the coding mode is a frequency offset modulation FSK coding mode.
  • FSK coding mode a sampling path is used to obtain a sine wave with a period of T1 to represent a logic 0, and N sampling points are used to obtain a period of T2.
  • the sine wave represents logic 1, M ⁇ N, T1 ⁇ T2, and M and N are positive integers.
  • Another aspect of the present invention provides an information security device, including:
  • a receiving unit configured to receive, by the terminal, at least two audio test data packets encoded by different coding modes
  • a decoding unit configured to decode the encoded audio test data packet received by the receiving unit, to obtain at least two audio test data packets
  • a calculating unit configured to calculate a bit error rate of each of the audio test data packets
  • a processing unit configured to compare a size of a bit error rate of the audio test data packet, and determine a target coding mode, where the target coding mode is an encoding mode used by an audio test data packet with the lowest bit error rate;
  • a sending unit configured to send a response data packet to the terminal, where the response data packet includes the target encoding mode.
  • the information security device includes a smart key device and an adapter device having a communication connection interface with the smart key device.
  • Still another aspect of the present invention provides a terminal comprising: a casing, a screen, a processor, and a circuit board; the screen being disposed on the casing, the circuit board being disposed inside a space enclosed by the casing, The processor is disposed on the circuit board; the processor is configured to process data, specifically for:
  • the audio test data packet is encoded by using at least two mutually different coding modes, and at least two audio test data packets coded by mutually different coding modes are obtained;
  • a response data packet receives, by the information security device, a response data packet, where the response data packet includes tag information of the target coding mode, where the target coding mode is an encoding mode used by an audio test data packet with the lowest bit error rate;
  • the data transmitted by the device is encoded.
  • the coding mode is a frequency offset modulation FSK coding mode.
  • FSK coding mode a sampling path is used to obtain a sine wave with a period of T1 to represent a logic 0, and N sampling points are used to obtain a period of T2.
  • the sine wave represents logic 1, M ⁇ N, T1 ⁇ T2, and M and N are positive integers.
  • Yet another aspect of the present invention provides an information security device, including:
  • One or more processors are One or more processors;
  • One or more programs the one or more programs being stored in the memory, and when executed by the one or more processors, do the following:
  • the response data packet including the target encoding mode.
  • the information security device includes a smart key device and an adapter device having a communication connection interface with the smart key device.
  • the terminal encodes the audio test data packet by using at least two mutually different coding modes, to obtain at least Two audio test data packets encoded by mutually different encoding methods, and transmitting the at least two encoded audio test data packets to an information security device, wherein the information security device can calculate each of the audio tests The error rate of the data packet, and comparing the error rate, the lowest error rate is obtained, and the coding mode adopted by the audio test data packet with the lowest bit error rate is the target coding mode, and the target coding mode is sent to The terminal, in order to facilitate the terminal to subsequently transmit data to the information security device, encode the data to be transmitted by using the target coding mode.
  • the terminal can implement the selection of the coding mode, that is, the terminal can select the coding mode with the lowest bit error rate to encode the data; on the other hand, after selecting the coding mode, the downlink mode can be reduced.
  • the bit error rate of data transmission improves the reliability and accuracy of data transmission.
  • FIG. 1 is a flowchart of a data communication method according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic structural diagram of a terminal according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic structural diagram of an information security device according to Embodiment 2 of the present invention.
  • connection should be understood in a broad sense. For example, it may be a fixed connection, a detachable connection, or an integral connection; it may be a mechanical connection or an electrical connection; it may be directly connected or through the middle. The media is indirectly connected and may be internal to the two components.
  • the specific meaning of the above terms in the present invention can be understood by a person of ordinary skill in the art.
  • the embodiment of the invention provides a data communication method. As shown in FIG. 1 , the method includes:
  • the terminal encodes the audio test data packet by using at least two mutually different coding modes, and obtain at least two audio test data packets coded by using mutually different coding modes;
  • the coding mode is a frequency offset modulation (FSK) coding mode
  • a sine wave of period T1 is obtained by using M sampling points to represent a logic 0
  • a sine wave of period T2 is obtained by using N sampling points to represent a logic 1
  • M ⁇ N, T1 ⁇ T2 M and N are both positive integers.
  • the at least two different coding modes are the downlink data coding mode supported by the terminal, that is, the coding mode used when the terminal sends data to the information security device.
  • the terminal may sequentially encode the audio test data packet by using all kinds of downlink data coding modes supported by the terminal, and obtain multiple audio test data packets encoded by different downlink data coding modes.
  • the at least two mutually different encoding modes may be but not limited to the following:
  • the coding mode indicates that when the terminal encodes the data, four sampling points are used to obtain a sine wave with a period of T1 to represent a logic 0, and eight sampling points are used to obtain a sine wave with a period of T2. Indicates logic 1;
  • the coding mode indicates that when the terminal encodes the data, four sampling points are used to obtain a sine wave with a period of T1 to represent a logic 0, and 10 sampling points are used to obtain a sine wave with a period of T2. Indicates logic 1;
  • the FSK-24-36 coding mode indicates that when the terminal encodes the data, 24 sampling points are used to obtain a sine wave with a period of T1 to represent a logic 0, and 36 sampling points are used to obtain a sine wave with a period of T2 to represent a logic 1 .
  • the sine wave of period T1 is used to represent logic 0, and the sine wave of period T2 is used to represent logic 1.
  • the sine wave periods used to represent logic 0 and logic 1 can also be mutually In other words, the sine wave of period T1 is used to represent logic 1, and the sine wave of period T2 is used to represent logic 0, and no limitation is imposed here.
  • the encoding method may also be that when the terminal encodes the data, four sampling points are used to obtain a sine wave with a period of T1 to represent a logic 1, and eight sampling points are used to obtain a period of The sine wave of T2 represents a logic 0.
  • the sampling frequency used may be, for example, 44.1 kHz, 48 kHz, 10 kHz, 8KHz and so on.
  • the period T2 of the waveform is 1/6KHz, and the sine wave with a period T2 of 1/6KHz is used to represent logic 1. .
  • the terminal sends the at least two encoded audio test data packets to an information security device by using an audio interface.
  • the terminal has an audio interface, and the terminal can be matched with the information security device through the audio interface.
  • the information security device includes a smart key device, an adapter device having a communication connection interface with the smart key device, and the like.
  • the information security device decodes the received encoded audio test data packet to obtain at least two audio test data packets.
  • the manner in which the information security device decodes the encoded audio test data packet corresponds to the manner in which the terminal encodes the audio test data packet.
  • the terminal when the terminal encodes the audio test data packet by using the FSK-4-8 encoding method, the terminal sends the encoded audio test data packet to the information security device, and uses four sampling points to obtain a sine wave with a period of T1. Transmission logic 1, using 8 sample points to obtain a sine wave of period T2 to transmit logic 0.
  • the format of the audio test data packet includes a sync header, a start bit, a valid bit data, a stop bit, and a sync tail.
  • the sync header is represented by a plurality of identical bit values, and the start bit also uses a plurality of identical bits.
  • the value indicates that the bit value indicating the sync header is different from the bit value indicating the start bit.
  • the sync header is represented by 8 bits 1 and the start bit is represented by 4 bits 0.
  • the sine wave period T1 representing the logic 1 may be determined according to the waveform period of the synchronization header of the audio test data packet, according to the start The waveform period of the bit may determine a sine wave period T2 representing a logic 0; thereafter, when the information security device receives the valid bit data in the audio test packet, if the period of detecting the sine wave is T1, the decoding is Logic 1; if the period of the sine wave is detected as T2, it is decoded to logic 0.
  • the information security device calculates a bit error rate of each of the audio test data packets, and compares a bit error rate of the audio test data packet.
  • bit error rate is used to indicate the accuracy of data transmission within a specified time.
  • bit error rate the higher the accuracy of data transmission; conversely, the lower the bit error rate, the lower the accuracy of data transmission.
  • the bit error rate is the number of bits in which the error occurs / the total number of transmitted bits *100%.
  • the information security device determines a target coding mode, where the target coding mode is an encoding mode used by an audio test data packet with the lowest bit error rate;
  • the coding mode adopted by the audio test data packet with the lowest bit error rate is selected, so that when the subsequent terminal uses the target coding mode to encode and transmit the data, the problem that the bit error rate is high due to improper selection of the coding mode can be avoided. That is to say, the coding method adopted by the audio test data packet with the lowest bit error rate is obtained through testing, and the data is encoded and transmitted by the coding method to reduce the bit error rate.
  • the error rate of the audio test data packet is compared, and the coding mode used for determining the audio test data packet with the lowest bit error rate is performed by the information security device.
  • this embodiment can also provide another alternative implementation:
  • the error rate of each audio test data packet may be sent to the terminal, and the terminal receives the error code of each audio test data packet.
  • the size is calculated, and the terminal compares the error rate, and determines the coding mode used by the audio test data packet with the lowest bit error rate.
  • the information security device sends a response data packet to the terminal, where the response data packet includes tag information of the target coding mode.
  • the coding mode adopted by the audio test data packet with the lowest bit error rate is selected as the target coding mode, and is sent to the terminal, so that when the terminal subsequently transmits data to the information security device, the target coding mode is adopted.
  • the transmitted data is encoded to reduce the bit error rate of data transmission and improve the reliability and accuracy of data transmission.
  • the terminal receives the response data packet.
  • the terminal acquires tag information of the target coding mode from the response data packet.
  • the terminal determines the target coding mode according to the tag information of the target coding mode, where the target coding mode is used to encode data transmitted by the terminal to the information security device.
  • the terminal encodes the audio test data packet by using at least two mutually different coding modes, and obtain at least two audio test data packets encoded by mutually different coding modes, and the at least two The two encoded audio test data packets are sent to the information security device, and the information security device can calculate the error rate of each of the audio test data packets, and compare the error rate to obtain the lowest bit error rate.
  • the coding mode adopted by the audio test data packet with the lowest bit error rate is the target coding mode, and the target coding mode is sent to the terminal, so that when the terminal subsequently transmits data to the information security device, the target coding mode is adopted.
  • the transmitted data is encoded.
  • the terminal can implement the selection of the coding mode, that is, the terminal can select the coding mode with the lowest bit error rate to encode the data; on the other hand, after selecting the coding mode, the downlink mode can be reduced.
  • the bit error rate of data transmission improves the reliability and accuracy of data transmission.
  • the embodiment of the present invention provides a terminal.
  • the terminal includes: an encoding unit 21, a sending unit 22, a receiving unit 23, and a processing unit 24.
  • the encoding unit 21 is configured to encode the audio test data packet by using at least two mutually different encoding modes, and obtain at least two audio test data packets encoded by mutually different encoding modes;
  • the coding mode is a frequency offset modulation (FSK) coding mode.
  • FSK frequency offset modulation
  • a sine wave with a period of T1 is obtained by using M sampling points to represent a logic 0.
  • N sampling points obtain a sine wave with a period of T2 to represent a logical 1
  • M ⁇ N, T1 ⁇ T2 and M and N are positive integers.
  • At least two mutually different encoding modes are downlink data encoding modes supported by the terminal, that is, encoding modes used when the terminal sends data to the information security device.
  • the terminal may encode the audio test data packet in turn by using all kinds of downlink data coding modes supported by the terminal, and obtain multiple audio test data packets encoded by different downlink data coding modes.
  • the sending unit 22 is configured to send, by using an audio interface, the at least two encoded audio test data packets to the information security device;
  • the terminal has an audio interface, and the terminal can be matched with the information security device through the audio interface.
  • the information security device includes a smart key device, an adapter device having a communication connection interface with the smart key device, and the like.
  • the receiving unit 23 is configured to receive a response data packet sent by the information security device, where the response data packet includes tag information of the target coding mode, where the target coding mode is an audio test data packet with the lowest bit error rate.
  • bit error rate is used to indicate the accuracy of data transmission within a specified time.
  • the processing unit 24 is configured to obtain the marking information of the target encoding mode from the response data packet, and determine the target encoding mode according to the marking information of the target encoding manner, where the target encoding manner is used to
  • the terminal encodes data transmitted by the information security device.
  • the terminal encodes the audio test data packet by using at least two mutually different coding modes, and obtain at least two audio test data packets encoded by mutually different coding modes, and the at least two The two encoded audio test data packets are sent to the information security device, and the coding mode adopted by the audio test data packet with the lowest bit error rate sent by the information security device is received, which is the target coding mode.
  • the terminal subsequently transmits data to the information security device, the data to be transmitted is encoded by the target coding mode.
  • the terminal can implement the selection of the coding mode, that is, the terminal can select the coding mode with the lowest bit error rate to encode the data; on the other hand, select the target coding mode.
  • the data to be transmitted is encoded by the target coding mode, which can reduce the bit error rate of data transmission and improve the reliability and accuracy of data transmission.
  • the present invention also provides an information security device.
  • the information security device includes: a receiving unit 31, a decoding unit 32, a calculating unit 33, a processing unit 34, and a transmitting unit 35.
  • the receiving unit 31 is configured to receive, by the terminal, at least two audio test data packets that are encoded by using mutually different coding modes;
  • the decoding unit 32 is configured to decode the encoded audio test data packet received by the receiving unit to obtain at least two audio test data packets.
  • the manner in which the information security device decodes the encoded audio test data packet corresponds to the manner in which the terminal encodes the audio test data packet. For example, when the terminal encodes the audio test data packet by using the FSK-4-8 encoding method, the terminal sends the encoded audio test data packet to the information security device, and uses four sampling points to obtain a sine wave with a period of T1. Transmission logic 1, using 8 sample points to obtain a sine wave of period T2 to transmit logic 0.
  • the information security device receives the encoded audio test data packet, if the period of detecting the sine wave is T1, the decoding is logic 1; if the period of detecting the sine wave is T2, the decoding is logic 0.
  • the calculating unit 33 is configured to calculate a bit error rate of each of the audio test data packets
  • the bit error rate is used to indicate the accuracy of data transmission within a specified time.
  • the bit error rate is the number of bits in which the error occurs / the total number of transmitted bits *100%.
  • the processing unit 34 is configured to compare a size of the error rate of the audio test data packet, and determine a target coding mode, where the target coding mode is an encoding mode used by an audio test data packet with the lowest bit error rate;
  • the sending unit 35 is configured to send a response data packet to the terminal, where the response data packet includes the target encoding mode.
  • the information security device includes a smart key device and an adapter device having a communication connection interface with the smart key device.
  • the information security device can calculate the error rate of each audio test data packet, select the coding mode used by the audio test data packet with the lowest bit error rate as the target coding mode, and send it to the terminal, so as to facilitate the terminal.
  • the data to be transmitted is encoded by the target coding mode, which can reduce the bit error rate of data transmission and improve the reliability and accuracy of data transmission.
  • the invention also provides a terminal comprising: a casing, a screen, a processor and a circuit board; the screen is disposed on the casing, The circuit board is disposed inside the space enclosed by the casing, and the processor is disposed on the circuit board; the processor is configured to process data, specifically for performing the following steps S101'-S104'.
  • the audio test data packet is encoded by using at least two mutually different coding modes, and at least two audio test data packets coded by mutually different coding modes are obtained.
  • the coding mode may be a frequency offset modulation FSK coding mode.
  • FSK coding mode M sampling points may be used to obtain a sine wave with a period of T1 to represent a logic 0, and N sampling points are used to obtain a sine wave with a period of T2.
  • M ⁇ N, T1 ⁇ T2, M and N are positive integers.
  • the response data packet includes tag information of the target coding mode, and the target coding mode is an coding mode used by the audio test data packet with the lowest error rate.
  • the present invention also provides an information security device.
  • the information security device may include a smart key device and an adapter device having a communication connection interface with the smart key device.
  • the information security device comprises: one or more processors; a memory; one or more programs, one or more programs stored in the memory, and when executed by one or more processors, performing the following steps S201'-S205' operating.
  • the at least two audio test data packets that are encoded by the mutually different coding modes are sent by the receiving terminal.
  • portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Digital Transmission Methods That Use Modulated Carrier Waves (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

本发明提供一种数据通信方法、终端及信息安全设备。该方法包括:终端采用至少两种互不相同的编码方式对音频测试数据包进行编码,得到至少两个采用互不相同的编码方式编码后的音频测试数据包;所述终端通过音频接口向信息安全设备发送所述至少两个编码后的音频测试数据包;所述信息安全设备对编码后的音频测试数据包进行解码,得到至少两个音频测试数据包;所述信息安全设备计算每个所述音频测试数据包的误码率;所述信息安全设备确定目标编码方式,所述目标编码方式为误码率最低的音频测试数据包采用的编码方式;所述信息安全设备向所述终端发送所述目标编码方式的标记信息;所述终端根据所述目标编码方式的标记信息确定所述目标编码方式。

Description

一种数据通信方法、终端及信息安全设备 技术领域
本发明涉及一种电子技术领域,尤其涉及一种数据通信方法、终端及信息安全设备。
背景技术
在手机与信息安全设备进行数据通信时,例如,手机通过音频接口向信息安全设备发送数据,手机会采用某种编码方式对待发送的数据进行编码,并将编码后的数据发送给信息安全设备。
通常,手机通过音频接口发送数据时,会支持多种编码方式。
然而,现有技术中,手机无法实现编码方式的选择。
发明内容
本发明旨在解决上述手机无法实现编码方式选择的问题。
本发明的主要目的在于提供一种数据通信方法。
本发明的另一目的在于提供一种终端。
本发明的又一目的在于提供一种信息安全设备。
本发明的又另一目的在于提出一种终端。
本发明的又再一目的在于提供一种信息安全设备。
为达到上述目的,本发明的技术方案具体是这样实现的:
本发明一方面提供了一种数据通信方法,包括:
终端采用至少两种互不相同的编码方式对音频测试数据包进行编码,得到至少两个采用互不相同的编码方式编码后的音频测试数据包;
所述终端通过音频接口向信息安全设备发送所述至少两个编码后的音频测试数据包;
所述信息安全设备对接收到的编码后的音频测试数据包进行解码,得到至少两个音频测试数据包;
所述信息安全设备计算每个所述音频测试数据包的误码率,并比较所述音频测试数据包的误码率的大小;
所述信息安全设备确定目标编码方式,所述目标编码方式为误码率最低的音频测试数据包采用的编码方式;
所述信息安全设备向所述终端发送响应数据包,所述响应数据包包括所述目标编码方 式的标记信息;
所述终端接收所述响应数据包;
所述终端从所述响应数据包中获取所述目标编码方式的标记信息;
所述终端根据所述目标编码方式的标记信息确定所述目标编码方式,所述目标编码方式用于对所述终端向所述信息安全设备传输的数据进行编码。
其中,所述信息安全设备包括智能密钥设备、具备与智能密钥设备进行通信连接接口的转接头设备。
其中,所述编码方式为频率偏移调制FSK编码方式,在所述FSK编码方式中,采用M个采样点获得周期为T1的正弦波来表示逻辑0,采用N个采样点获得周期为T2的正弦波来表示逻辑1,M≠N,T1≠T2,M和N均为正整数。
本发明另一方面提供一种终端,包括:
编码单元,用于采用至少两种互不相同的编码方式对音频测试数据包进行编码,得到至少两个采用互不相同的编码方式编码后的音频测试数据包;
发送单元,用于通过音频接口向信息安全设备发送所述至少两个编码后的音频测试数据包;
接收单元,用于接收所述信息安全设备发送的响应数据包,所述响应数据包包括所述目标编码方式的标记信息,所述目标编码方式为误码率最低的音频测试数据包采用的编码方式;
处理单元,用于从所述响应数据包中获取所述目标编码方式的标记信息,并根据所述目标编码方式的标记信息确定所述目标编码方式,所述目标编码方式用于对所述终端向所述信息安全设备传输的数据进行编码。
其中,所述编码方式为频率偏移调制FSK编码方式,在所述FSK编码方式中,采用M个采样点获得周期为T1的正弦波来表示逻辑0,采用N个采样点获得周期为T2的正弦波来表示逻辑1,M≠N,T1≠T2,M和N均为正整数。
本发明又一方面还提供一种信息安全设备,包括:
接收单元,用于接收终端发送的至少两个采用互不相同的编码方式编码后的音频测试数据包;
解码单元,用于对所述接收单元接收到的编码后的音频测试数据包进行解码,得到至少两个音频测试数据包;
计算单元,用于计算每个所述音频测试数据包的误码率;
处理单元,用于比较所述音频测试数据包的误码率的大小,并确定目标编码方式,所述目标编码方式为误码率最低的音频测试数据包采用的编码方式;
发送单元,用于向所述终端发送响应数据包,所述响应数据包包括所述目标编码方式。
其中,所述信息安全设备包括智能密钥设备、具备与智能密钥设备进行通信连接接口的转接头设备。
本发明又另一方面还提供一种终端,包括:外壳,屏幕,处理器和电路板;所述屏幕安置在所述外壳上,所述电路板安置在所述外壳围成的空间内部,所述处理器设置在所述电路板上;所述处理器用于处理数据,具体用于:
采用至少两种互不相同的编码方式对音频测试数据包进行编码,得到至少两个采用互不相同的编码方式编码后的音频测试数据包;
通过音频接口向信息安全设备发送所述至少两个编码后的音频测试数据包;
接收所述信息安全设备发送的响应数据包,所述响应数据包包括所述目标编码方式的标记信息,所述目标编码方式为误码率最低的音频测试数据包采用的编码方式;
从所述响应数据包中获取所述目标编码方式的标记信息,并根据所述目标编码方式的标记信息确定所述目标编码方式,所述目标编码方式用于对所述终端向所述信息安全设备传输的数据进行编码。
其中,所述编码方式为频率偏移调制FSK编码方式,在所述FSK编码方式中,采用M个采样点获得周期为T1的正弦波来表示逻辑0,采用N个采样点获得周期为T2的正弦波来表示逻辑1,M≠N,T1≠T2,M和N均为正整数。
本发明又另一方面还提供一种信息安全设备,包括:
一个或者多个处理器;
存储器;
一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时进行如下操作:
接收终端发送的至少两个采用互不相同的编码方式编码后的音频测试数据包;
对所述接收单元接收到的编码后的音频测试数据包进行解码,得到至少两个音频测试数据包;
计算每个所述音频测试数据包的误码率;
比较所述音频测试数据包的误码率的大小,并确定目标编码方式,所述目标编码方式为误码率最低的音频测试数据包采用的编码方式;
向所述终端发送响应数据包,所述响应数据包包括所述目标编码方式。
其中,所述信息安全设备包括智能密钥设备、具备与智能密钥设备进行通信连接接口的转接头设备。
由上述本发明提供的技术方案可以看出,本发明提供的一种数据通信方法、终端及信息安全设备,终端通过采用至少两种互不相同的编码方式对音频测试数据包进行编码,得到至少两个采用互不相同的编码方式编码后的音频测试数据包,并将所述至少两个编码后的音频测试数据包发送给信息安全设备,所述信息安全设备可以计算每个所述音频测试数据包的误码率,并比较误码率的大小,得出最低的误码率,误码率最低的音频测试数据包采用的编码方式即为目标编码方式,并将该目标编码方式发送给终端,以便于终端后续向所述信息安全设备传输数据时,采用该目标编码方式对待传输的数据进行编码。
采用本发明实施例提供的上述技术方案,一方面终端可以实现对编码方式的选择,也就是终端可以选择误码率最低的编码方式对数据进行编码;另一方面,选择编码方式之后,可以降低数据传输的误码率,提高数据传输的可靠性和精确性。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他附图。
图1为本发明实施例1提供的一种数据通信方法的流程图;
图2为本发明实施例2提供的一种终端的结构示意图;以及
图3为本发明实施例2提供的一种信息安全设备的结构示意图。
具体实施方式
下面结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明的保护范围。
在本发明的描述中,需要理解的是,术语“中心”、“纵向”、“横向”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或数量或位置。
在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相 连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。
下面将结合附图对本发明实施例作进一步地详细描述。
实施例1
本发明实施例提供一种数据通信方法,如图1所示,该方法包括:
101、终端采用至少两种互不相同的编码方式对音频测试数据包进行编码,得到至少两个采用互不相同的编码方式编码后的音频测试数据包;
其中,所述编码方式为频率偏移调制(Frequency-Shift Keying,FSK)编码方式;
在所述FSK编码方式中,通过采用M个采样点获得周期为T1的正弦波来表示逻辑0,通过采用N个采样点获得周期为T2的正弦波来表示逻辑1,M≠N,T1≠T2,M和N均为正整数。
其中,至少两种互不相同的编码方式为终端支持的下行数据编码方式,也就是终端向信息安全设备发送数据时采用的编码方式。
本步骤中,终端可以采用终端支持的所有种类的下行数据编码方式依次对音频测试数据包进行编码,得到多个采用互不相同的下行数据编码方式编码后的音频测试数据包。
示例性地,所述至少两种互不相同的编码方式可以是但不限于如下几种:
FSK-4-8编码方式,该编码方式表示终端在对数据进行编码时,采用4个采样点获得周期为T1的正弦波来表示逻辑0,采用8个采样点获得周期为T2的正弦波来表示逻辑1;
FSK-4-10编码方式,该编码方式表示终端在对数据进行编码时,采用4个采样点获得周期为T1的正弦波来表示逻辑0,采用10个采样点获得周期为T2的正弦波来表示逻辑1;
FSK-24-36编码方式,表示终端在对数据进行编码时,采用24个采样点获得周期为T1的正弦波来表示逻辑0,采用36个采样点获得周期为T2的正弦波来表示逻辑1。
上述编码方式中,周期T1的正弦波用来表示逻辑0,周期T2的正弦波用来表示逻辑1,当然,根据实际应用的需求,用来表示逻辑0和逻辑1的正弦波周期还可以互换,也就是,周期T1的正弦波用来表示逻辑1,周期T2的正弦波用来表示逻辑0,在此不做限制。
以FSK-4-8编码方式为例,该编码方式还可以是终端在对数据进行编码时,采用4个采样点获得周期为T1的正弦波来表示逻辑1,采用8个采样点获得周期为T2的正弦波来表示逻辑0。
通常,在对数据信号进行采样时,使用的采样频率例如可以是44.1KHz、48KHz、10KHz、 8KHz等等。
以采样频率为48KHz为例,在FSK-4-8编码方式中,采样4个采样点对数据信号进行采样后,可以得到频率为48/4=12KHz的正弦波,该波形的周期T1为1/12KHz,该周期T1为1/12KHz的正弦波用来表示逻辑0;
采用8个采样点对数据信号进行采样后,可以得到频率为48/8=6KHz的正弦波,该波形的周期T2为1/6KHz,该周期T2为1/6KHz的正弦波用来表示逻辑1。
102、所述终端通过音频接口向信息安全设备发送所述至少两个编码后的音频测试数据包;
其中,终端具备音频接口,通过该音频接口,所述终端可以与信息安全设备匹配连接。
所述信息安全设备包括智能密钥设备、具备与智能密钥设备进行通信连接接口的转接头设备等等。
103、所述信息安全设备对接收到的编码后的音频测试数据包进行解码,得到至少两个音频测试数据包;
其中,所述信息安全设备对编码后的音频测试数据包进行解码的方式与终端对音频测试数据包进行编码的方式相对应。
例如,当终端采用FSK-4-8编码方式对音频测试数据包进行编码后,终端将编码后的音频测试数据包发送给信息安全设备时,采用4个采样点获得周期为T1的正弦波来传输逻辑1,采用8个采样点获得周期为T2的正弦波来传输逻辑0。
以音频测试数据包的格式包括同步头、起始位、有效比特数据、停止位和同步尾为例,其中,同步头采用多个相同的比特值表示,起始位也采用多个相同的比特值表示,且表示同步头的比特值与表示起始位的比特值不相同,例如同步头采用8个比特1表示,起始位采用4个比特0表示。
当所述信息安全设备接收编码后的音频测试数据包中的同步头和起始位后,根据该音频测试数据包的同步头的波形周期可以确定表示逻辑1的正弦波周期T1,根据起始位的波形周期可以确定表示逻辑0的正弦波周期T2;之后,当所述信息安全设备接收到音频测试数据包中的有效比特数据时,如果检测到正弦波的周期为T1时,则解码为逻辑1;如果检测到正弦波的周期为T2时,则解码为逻辑0。
104、所述信息安全设备计算每个所述音频测试数据包的误码率,并比较所述音频测试数据包的误码率的大小;
其中,误码率是用来表示在规定时间内数据传输的精确性。
误码率越高,说明数据传输的精确性越高;反之,误码率越低,说明数据传输的精确性越低。
对于接收到的二进制比特数据,误码率为出现差错的比特数/总的发送的比特数*100%。
105、所述信息安全设备确定目标编码方式,所述目标编码方式为误码率最低的音频测试数据包采用的编码方式;
这里选用误码率最低的音频测试数据包采用的编码方式,可以使得后续终端采用该目标编码方式对数据进行编码传输时,可以避免由于编码方式选取不当造成误码率较高的问题。也就是,通过测试得出误码率最低的音频测试数据包采用的编码方式,并采用该编码方式对数据进行编码传输来降低误码率。
本实施例中,比较音频测试数据包的误码率的大小,并确定误码率最低的音频测试数据包采用的编码方式是由信息安全设备执行的。
当然,根据实际应用的需要,本实施例还可以提供另一种可替代的实现方案:
信息安全设备计算出每个音频测试数据包的误码率大小之后,可以将每个音频测试数据包的误码率大小均发送给所述终端,终端接收到每个音频测试数据包的误码率大小,并由所述终端比较误码率的大小,从中确定误码率最低的音频测试数据包采用的编码方式。
106、所述信息安全设备向所述终端发送响应数据包,所述响应数据包包括所述目标编码方式的标记信息;
本实施例中,选择误码率最低的音频测试数据包采用的编码方式作为目标编码方式,并发送给终端,以便于该终端后续向所述信息安全设备传输数据时,采用该目标编码方式对待传输的数据进行编码,可以降低数据传输的误码率,提高数据传输的可靠性和精确性。
107、所述终端接收所述响应数据包;
108、所述终端从所述响应数据包中获取所述目标编码方式的标记信息;
109、所述终端根据所述目标编码方式的标记信息确定所述目标编码方式,所述目标编码方式用于对所述终端向所述信息安全设备传输的数据进行编码。
本发明实施例中,终端通过采用至少两种互不相同的编码方式对音频测试数据包进行编码,得到至少两个采用互不相同的编码方式编码后的音频测试数据包,并将所述至少两个编码后的音频测试数据包发送给信息安全设备,所述信息安全设备可以计算每个所述音频测试数据包的误码率,并比较误码率的大小,得出最低的误码率,误码率最低的音频测试数据包采用的编码方式即为目标编码方式,并将该目标编码方式发送给终端,以便于终端后续向所述信息安全设备传输数据时,采用该目标编码方式对待传输的数据进行编码。
采用本发明实施例提供的上述技术方案,一方面终端可以实现对编码方式的选择,也就是终端可以选择误码率最低的编码方式对数据进行编码;另一方面,选择编码方式之后,可以降低数据传输的误码率,提高数据传输的可靠性和精确性。
实施例2
本发明实施例提供一种终端,如图2所示,该终端包括:编码单元21,发送单元22,接收单元23和处理单元24。
编码单元21,用于采用至少两种互不相同的编码方式对音频测试数据包进行编码,得到至少两个采用互不相同的编码方式编码后的音频测试数据包;
其中,所述编码方式为频率偏移调制(Frequency-Shift Keying,FSK)编码方式;在所述FSK编码方式中,通过采用M个采样点获得周期为T1的正弦波来表示逻辑0,通过采用N个采样点获得周期为T2的正弦波来表示逻辑1,M≠N,T1≠T2,M和N均为正整数。至少两种互不相同的编码方式为终端支持的下行数据编码方式,也就是终端向信息安全设备发送数据时采用的编码方式。终端可以采用终端支持的所有种类的下行数据编码方式依次对音频测试数据包进行编码,得到多个采用互不相同的下行数据编码方式编码后的音频测试数据包。
发送单元22,用于通过音频接口向信息安全设备发送所述至少两个编码后的音频测试数据包;
其中,终端具备音频接口,通过该音频接口,所述终端可以与信息安全设备匹配连接。所述信息安全设备包括智能密钥设备、具备与智能密钥设备进行通信连接接口的转接头设备等等。
接收单元23,用于接收所述信息安全设备发送的响应数据包,所述响应数据包包括所述目标编码方式的标记信息,所述目标编码方式为误码率最低的音频测试数据包采用的编码方式;
其中,误码率是用来表示在规定时间内数据传输的精确性。误码率越高,说明数据传输的精确性越高;反之,误码率越低,说明数据传输的精确性越低。
处理单元24,用于从所述响应数据包中获取所述目标编码方式的标记信息,并根据所述目标编码方式的标记信息确定所述目标编码方式,所述目标编码方式用于对所述终端向所述信息安全设备传输的数据进行编码。
本发明实施例中,终端通过采用至少两种互不相同的编码方式对音频测试数据包进行编码,得到至少两个采用互不相同的编码方式编码后的音频测试数据包,并将所述至少两个编码后的音频测试数据包发送给信息安全设备,并接收信息安全设备发送的误码率最低的音频测试数据包采用的编码方式,即为目标编码方式。终端后续向所述信息安全设备传输数据时,采用该目标编码方式对待传输的数据进行编码。
采用本发明实施例提供的上述技术方案,一方面终端可以实现对编码方式的选择,也就是终端可以选择误码率最低的编码方式对数据进行编码;另一方面,选择目标编码方式 之后,采用该目标编码方式对待传输的数据进行编码,可以降低数据传输的误码率,提高数据传输的可靠性和精确性。
所述终端的功能实现可以参见上述实施例1中的数据通信方法中终端侧的相关描述。
本发明还提供一种信息安全设备,如图3所示,该信息安全设备包括:接收单元31,解码单元32,计算单元33,处理单元34和发送单元35。
接收单元31,用于接收终端发送的至少两个采用互不相同的编码方式编码后的音频测试数据包;
解码单元32,用于对所述接收单元接收到的编码后的音频测试数据包进行解码,得到至少两个音频测试数据包;
其中,所述信息安全设备对编码后的音频测试数据包进行解码的方式与终端对音频测试数据包进行编码的方式相对应。例如,当终端采用FSK-4-8编码方式对音频测试数据包进行编码后,终端将编码后的音频测试数据包发送给信息安全设备时,采用4个采样点获得周期为T1的正弦波来传输逻辑1,采用8个采样点获得周期为T2的正弦波来传输逻辑0。当所述信息安全设备接收编码后的音频测试数据包时,如果检测到正弦波的周期为T1时,则解码为逻辑1;如果检测到正弦波的周期为T2时,则解码为逻辑0。
计算单元33,用于计算每个所述音频测试数据包的误码率;
其中,误码率是用来表示在规定时间内数据传输的精确性。误码率越高,说明数据传输的精确性越高;反之,误码率越低,说明数据传输的精确性越低。对于接收到的二进制比特数据,误码率为出现差错的比特数/总的发送的比特数*100%。
处理单元34,用于比较所述音频测试数据包的误码率的大小,并确定目标编码方式,所述目标编码方式为误码率最低的音频测试数据包采用的编码方式;
发送单元35,用于向所述终端发送响应数据包,所述响应数据包包括所述目标编码方式。
其中,所述信息安全设备包括智能密钥设备、具备与智能密钥设备进行通信连接接口的转接头设备。
本实施例中,信息安全设备可以计算每个音频测试数据包的误码率,选择误码率最低的音频测试数据包采用的编码方式作为目标编码方式,并发送给终端,以便于该终端后续向所述信息安全设备传输数据时,采用该目标编码方式对待传输的数据进行编码,可以降低数据传输的误码率,提高数据传输的可靠性和精确性。
本发明还提供一种终端,包括:外壳,屏幕,处理器和电路板;屏幕安置在外壳上, 电路板安置在外壳围成的空间内部,处理器设置在电路板上;处理器用于处理数据,具体用于执行以下步骤S101’-S104’。
S101’,采用至少两种互不相同的编码方式对音频测试数据包进行编码,得到至少两个采用互不相同的编码方式编码后的音频测试数据包。
其中,编码方式可以为频率偏移调制FSK编码方式,在FSK编码方式中,可采用M个采样点获得周期为T1的正弦波来表示逻辑0,采用N个采样点获得周期为T2的正弦波来表示逻辑1,M≠N,T1≠T2,M和N均为正整数。
S102’,通过音频接口向信息安全设备发送至少两个编码后的音频测试数据包。
S103’,接收信息安全设备发送的响应数据包,响应数据包包括目标编码方式的标记信息,目标编码方式为误码率最低的音频测试数据包采用的编码方式。
S104’,从响应数据包中获取目标编码方式的标记信息,并根据目标编码方式的标记信息确定目标编码方式,目标编码方式用于对终端向信息安全设备传输的数据进行编码。
本发明还提供一种信息安全设备,需要说明的是,信息安全设备可包括智能密钥设备、具备与智能密钥设备进行通信连接接口的转接头设备。
该信息安全设备包括:一个或者多个处理器;存储器;一个或者多个程序,一个或者多个程序存储在存储器中,当被一个或者多个处理器执行时进行如下步骤S201’-S205’的操作。
S201’,接收终端发送的至少两个采用互不相同的编码方式编码后的音频测试数据包。
S202’,对接收单元接收到的编码后的音频测试数据包进行解码,得到至少两个音频测试数据包。
S203’,计算每个音频测试数据包的误码率。
S204’,比较音频测试数据包的误码率的大小,并确定目标编码方式,目标编码方式为误码率最低的音频测试数据包采用的编码方式。
S205’,向终端发送响应数据包,响应数据包包括目标编码方式。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。
上述提到的存储介质可以是只读存储器,磁盘或光盘等。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在不脱离本发明的原理和宗旨的情况下在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。本发明的范围由所附权利要求及其等同限定。

Claims (8)

  1. 一种数据通信方法,其特征在于,包括:
    终端采用至少两种互不相同的编码方式对音频测试数据包进行编码,得到至少两个采用互不相同的编码方式编码后的音频测试数据包;
    所述终端通过音频接口向信息安全设备发送所述至少两个编码后的音频测试数据包;
    所述信息安全设备对接收到的编码后的音频测试数据包进行解码,得到至少两个音频测试数据包;
    所述信息安全设备计算每个所述音频测试数据包的误码率,并比较所述音频测试数据包的误码率的大小;
    所述信息安全设备确定目标编码方式,所述目标编码方式为误码率最低的音频测试数据包采用的编码方式;
    所述信息安全设备向所述终端发送响应数据包,所述响应数据包包括所述目标编码方式的标记信息;
    所述终端接收所述响应数据包;
    所述终端从所述响应数据包中获取所述目标编码方式的标记信息;
    所述终端根据所述目标编码方式的标记信息确定所述目标编码方式,所述目标编码方式用于对所述终端向所述信息安全设备传输的数据进行编码。
  2. 根据权利要求1所述的数据通信方法,其特征在于,所述信息安全设备包括智能密钥设备、具备与智能密钥设备进行通信连接接口的转接头设备。
  3. 根据权利要求1所述的数据通信方法,其特征在于,所述编码方式为频率偏移调制FSK编码方式,在所述FSK编码方式中,采用M个采样点获得周期为T1的正弦波来表示逻辑0,采用N个采样点获得周期为T2的正弦波来表示逻辑1,M≠N,T1≠T2,M和N均为正整数。
  4. 根据权利要求2所述的数据通信方法,其特征在于,所述编码方式为频率偏移调制FSK编码方式,在所述FSK编码方式中,采用M个采样点获得周期为T1的正弦波来表示逻辑0,采用N个采样点获得周期为T2的正弦波来表示逻辑1,M≠N,T1≠T2,M和N均为正整数。
  5. 一种终端,其特征在于,包括:
    编码单元,用于采用至少两种互不相同的编码方式对音频测试数据包进行编码,得到至少两个采用互不相同的编码方式编码后的音频测试数据包;
    发送单元,用于通过音频接口向信息安全设备发送所述至少两个编码后的音频测试数据包;
    接收单元,用于接收所述信息安全设备发送的响应数据包,所述响应数据包包括所述目标编码方式的标记信息,所述目标编码方式为误码率最低的音频测试数据包采用的编码方式;
    处理单元,用于从所述响应数据包中获取所述目标编码方式的标记信息,并根据所述目标编码方式的标记信息确定所述目标编码方式,所述目标编码方式用于对所述终端向所述信息安全设备传输的数据进行编码。
  6. 根据权利要求5所述的终端,其特征在于,所述编码方式为频率偏移调制FSK编码方式,在所述FSK编码方式中,采用M个采样点获得周期为T1的正弦波来表示逻辑0,采用N个采样点获得周期为T2的正弦波来表示逻辑1,M≠N,T1≠T2,M和N均为正整数。
  7. 一种信息安全设备,其特征在于,包括:
    接收单元,用于接收终端发送的至少两个采用互不相同的编码方式编码后的音频测试数据包;
    解码单元,用于对所述接收单元接收到的编码后的音频测试数据包进行解码,得到至少两个音频测试数据包;
    计算单元,用于计算每个所述音频测试数据包的误码率;
    处理单元,用于比较所述音频测试数据包的误码率的大小,并确定目标编码方式,所述目标编码方式为误码率最低的音频测试数据包采用的编码方式;
    发送单元,用于向所述终端发送响应数据包,所述响应数据包包括所述目标编码方式。
  8. 根据权利要求7所述的信息安全设备,其特征在于,所述信息安全设备包括智能密钥设备、具备与智能密钥设备进行通信连接接口的转接头设备。
PCT/CN2015/070552 2014-02-17 2015-01-12 一种数据通信方法、终端及信息安全设备 WO2015120758A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410052415.3 2014-02-17
CN201410052415.3A CN103812610B (zh) 2014-02-17 2014-02-17 一种数据通信方法、终端及信息安全设备

Publications (1)

Publication Number Publication Date
WO2015120758A1 true WO2015120758A1 (zh) 2015-08-20

Family

ID=50708865

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/070552 WO2015120758A1 (zh) 2014-02-17 2015-01-12 一种数据通信方法、终端及信息安全设备

Country Status (2)

Country Link
CN (1) CN103812610B (zh)
WO (1) WO2015120758A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103840914B (zh) * 2014-02-17 2017-04-19 天地融科技股份有限公司 一种数据通信方法、终端及信息安全设备
CN103812610B (zh) * 2014-02-17 2018-01-16 天地融科技股份有限公司 一种数据通信方法、终端及信息安全设备
CN110503965B (zh) * 2019-08-29 2021-09-14 珠海格力电器股份有限公司 一种调制解调器语音编解码器的选择方法和存储介质
CN112073888A (zh) * 2020-08-06 2020-12-11 深圳市天视通技术有限公司 一种音频测试方法、系统、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739587A (zh) * 2012-06-16 2012-10-17 天地融科技股份有限公司 音频数据传输方法
CN102769590A (zh) * 2012-06-21 2012-11-07 天地融科技股份有限公司 音频通信调制方式自适应的方法、系统、装置、电子签名工具
CN103138929A (zh) * 2011-12-05 2013-06-05 赛酷特(北京)信息技术有限公司 基于音频接口的非接触式智能卡手机认证设备
CN103812610A (zh) * 2014-02-17 2014-05-21 天地融科技股份有限公司 一种数据通信方法、终端及信息安全设备
CN103840914A (zh) * 2014-02-17 2014-06-04 天地融科技股份有限公司 一种数据通信方法、终端及信息安全设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480473A (zh) * 2010-11-26 2012-05-30 中国银联股份有限公司 基于fsk的安全性信息交互系统及方法
CN102339499B (zh) * 2011-09-30 2014-03-19 重庆南天数据资讯服务有限公司 基于移动通信终端的pos刷卡支付装置的实现系统
CN202795591U (zh) * 2012-07-13 2013-03-13 成都进界科技有限公司 安全识别金融交易终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103138929A (zh) * 2011-12-05 2013-06-05 赛酷特(北京)信息技术有限公司 基于音频接口的非接触式智能卡手机认证设备
CN102739587A (zh) * 2012-06-16 2012-10-17 天地融科技股份有限公司 音频数据传输方法
CN102769590A (zh) * 2012-06-21 2012-11-07 天地融科技股份有限公司 音频通信调制方式自适应的方法、系统、装置、电子签名工具
CN103812610A (zh) * 2014-02-17 2014-05-21 天地融科技股份有限公司 一种数据通信方法、终端及信息安全设备
CN103840914A (zh) * 2014-02-17 2014-06-04 天地融科技股份有限公司 一种数据通信方法、终端及信息安全设备

Also Published As

Publication number Publication date
CN103812610A (zh) 2014-05-21
CN103812610B (zh) 2018-01-16

Similar Documents

Publication Publication Date Title
US20150295962A1 (en) Method, terminal device, server and system for sharing information
WO2015120758A1 (zh) 一种数据通信方法、终端及信息安全设备
KR102452183B1 (ko) 불가청 신호음
CN103299366B (zh) 用于编码及检测带水印信号的装置
JP5767462B2 (ja) 近距離通信のための受信装置による通信モード検出方法
KR102226879B1 (ko) 부정확한 링크를 통한 이벤트들의 정확한 시간 태깅 시스템 및 그 방법
WO2017050234A1 (zh) 数据传输方法及数据处理设备
US9491547B2 (en) Audio playing system and audio playing method
CN105204970A (zh) 检测app的cpu占用率异常的方法、装置及移动终端
WO2013044480A1 (zh) 下行控制信息的发送方法和盲检测方法、基站和终端设备
WO2015120759A1 (zh) 音频信号的传输方法、移动终端和智能密钥设备
CN106877873B (zh) 基于fpga的曼彻斯特码的编解码器及编解码方法
CN103840914B (zh) 一种数据通信方法、终端及信息安全设备
TWI624174B (zh) 音頻-視頻資料的發送方法、接收方法和音頻-視頻資料的傳輸系統
WO2010081293A1 (zh) 信息发送和获取的方法、装置和系统
CN102884834A (zh) 对媒体访问控制协议数据单元中的控制信息进行编码和解码的系统和方法
KR102189511B1 (ko) 데이터 송신 방법과 장치, 데이터 수신 방법과 장치
CN109952794B (zh) Sfn指示方法、终端设备、定位服务器和系统
WO2015109967A1 (zh) 一种移动终端与信息安全设备通信的方法
CN107404319B (zh) 数据接收方法和装置
CN107359964B (zh) 数据发送方法和装置
US10805819B2 (en) Wi-Fi measurement report enhancement techniques
WO2015139523A1 (zh) 一种数据解码方法及装置
CN107359962B (zh) 数据接收方法和装置
CN106714008B (zh) 音频通信方法、智能终端及音频设备

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: 15748450

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: 15748450

Country of ref document: EP

Kind code of ref document: A1