WO2015027764A1 - 音频数据的传输方法、智能密钥设备、移动终端以及音频数据的传输系统 - Google Patents

音频数据的传输方法、智能密钥设备、移动终端以及音频数据的传输系统 Download PDF

Info

Publication number
WO2015027764A1
WO2015027764A1 PCT/CN2014/082004 CN2014082004W WO2015027764A1 WO 2015027764 A1 WO2015027764 A1 WO 2015027764A1 CN 2014082004 W CN2014082004 W CN 2014082004W WO 2015027764 A1 WO2015027764 A1 WO 2015027764A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
audio
nth
nth data
feedback information
Prior art date
Application number
PCT/CN2014/082004
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 WO2015027764A1 publication Critical patent/WO2015027764A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a method for transmitting audio data, a smart key device, a mobile terminal, and a transmission system for audio data. Background technique
  • Digital signature technology is a network information security technology that ensures that user data is not maliciously modified during network transmission.
  • the so-called digital signature technology is a technology for identity authentication that can be used to securely transfer commands and files.
  • the digital signature technique processes the user data to be transmitted through a one-way function to obtain an alphanumeric string that authenticates the source of the data and verifies that the data has changed.
  • the digital signature uses a hash algorithm such as MD5, SHA-1, etc. to calculate a digest value for the data to be transmitted, and encrypts the digest value and then transmits it using an encryption algorithm.
  • digital signatures are more commonly used in public key cryptography, such as PKCS (Public Key Cryptography Standards) based on RSA Date Security, Digital Signature Algorithm ⁇ x.509 PGP (Pretty Good Privacy). Published by the American Institute of Standards and Technology in 1994.
  • Digital Signature Standard makes public key cryptography widely used. This digital signature on a digitized document is similar to a handwritten signature on paper. It is unforgeable. The recipient of the document can verify that the document is indeed from the signer, and the signed document has not been modified to ensure that the document is received. The authenticity and integrity of the information.
  • the perfect digital signature technology should meet the following three conditions: First, the signer cannot refute his signature afterwards; second, no other person can forge the signature; third, if the parties have a dispute over the authenticity of the signature, they can A fair arbitrator confirms the authenticity by verifying the signature.
  • a portable and portable smart key device also known as a USB Key
  • This is a small hardware device with a microprocessor. It establishes a connection with the host through the data communication interface of the host.
  • the processor in the device is generally implemented by a security design chip, and uses its built-in security mechanism to implement functions such as key generation, key secure storage, and preset encryption algorithms. Key-related operations are performed entirely within the authentication device, so security is high.
  • USB Key USB Key
  • USB Key an improved smart key device
  • the improved smart key device includes a display screen and a confirmation button, and a transaction request message that needs to be signed must be sent to the improved smart key.
  • the display of the key device is displayed, and after the display is correct, the user can manually press the enter key to confirm, and then the signature data can be returned to the calculation. In this way, even if the hacker controls the user's computer, the improved smart key device cannot be controlled, and the user cannot control the user to manually confirm by pressing the confirmation key, so the security is greatly improved.
  • the object of the present invention is to provide a method for transmitting audio data, a smart key device, a mobile terminal, and a transmission system for audio data, which are used to solve the problem of how the smart key device transmits transaction data when communicating with the mobile phone in a contact mode.
  • a first aspect of the embodiments of the present invention provides a method for transmitting audio data, including: a process in which a smart key device receives a plurality of data packets corresponding to a transaction through an audio interface, and receives a first data packet.
  • the audio interface includes a microphone pin and a channel pin; if the first data packet is complete, sending the first data packet successfully Feedback information, and saving the first data packet; otherwise, sending feedback information that the first data packet is not successfully received; and when receiving the Nth data packet, determining whether the Nth data packet is complete Where N is an integer greater than or equal to 2; if the Nth data packet is complete, the transmission successfully receives feedback information of the Nth data packet; otherwise, the transmission fails to receive the Nth number According to the feedback information of the packet; when the Nth data packet is complete, determining whether the Nth data packet and the N-1th data packet are duplicated; if the Nth data packet and the Nth data packet If one data packet is repeated, the Nth data packet is discarded; otherwise, the Nth data packet is saved.
  • a method for transmitting audio data includes: transmitting, in a process of transmitting, by the mobile terminal, a plurality of data packets corresponding to a transaction, where the Nth data packet is sent, where N is a natural number; After the Nth data packet, timing the time for waiting for the feedback information of the Nth data packet to obtain a waiting time; determining whether the waiting time is within a preset waiting time threshold; if the waiting time is at the Retrieving the Nth data packet if the feedback information of the Nth data packet is not received within the waiting time threshold; if the feedback of the Nth data packet is received within a preset waiting time threshold Information, if the feedback information of the Nth data packet is that the Nth data packet is successfully received, the N+1th data packet is sent; if the feedback information of the Nth data packet is unsuccessfully received The Nth data packet is retransmitted to the Nth data packet.
  • the method further includes: if it is detected that an audio transmission channel is occupied by other audio data, timing the time at which the other audio data occupies the audio transmission channel, and detecting the other audio After the data is released from the audio transmission channel, the timing ends, and an interruption time is obtained; if the interruption time exceeds a preset interruption time threshold, the transmission of the audio data is terminated.
  • the method further includes: if it is detected that an audio transmission channel is occupied by other audio data, timing the time at which the other audio data occupies the audio transmission channel, and detecting the other audio data After the occupation of the audio transmission channel is released, the timing is ended, and an interruption time is obtained; determining whether the interruption time is within a preset interruption time threshold; if the interruption time is within the interruption time threshold, Multiple data packets corresponding to the transaction are resumed.
  • the resuming the plurality of data packets corresponding to the transaction includes: acquiring operation information of the plurality of data packets corresponding to the transaction when the audio transmission channel is occupied by the other audio data And if the operation information is to send the Nth data packet, resending the Nth data packet; if the operation information is feedback information waiting to receive the Nth data packet, performing a determination current a flow of whether the waiting time of the feedback information of the Nth data packet is in the preset waiting time threshold; if the operation information is feedback information of receiving the Nth data packet, executing the sending station The operation of the N+1th data packet.
  • the interruption time threshold is 6 seconds.
  • a smart key device includes: a first determining module, when receiving a plurality of data packets corresponding to a transaction by using an audio interface, determining, when receiving the first data packet, Whether the first data packet is complete, wherein the audio interface includes a microphone pin and a channel pin; and the first sending module is configured to send the first data successfully if the first data packet is complete Packet feedback information; otherwise, the transmission was not successfully received Receiving feedback information of the first data packet; a saving module, configured to save the first data packet when the first data packet is complete; and a second determining module, configured to receive the Nth And determining, by the data packet, whether the Nth data packet is complete, where N is an integer greater than or equal to 2; and the second sending module is configured to: if the Nth data packet is complete, successfully send the Nth The feedback information of the data packet; otherwise, sending the feedback information that the Nth data packet is not successfully received; the third determining module is configured to determine, when the Nth data
  • a mobile terminal includes: a first sending module, configured to send, by using an audio interface, a data packet corresponding to a transaction, and send an Nth data packet, where N is a natural number; a timing module, configured to: after waiting for the Nth data packet, time to wait for the feedback information of the Nth data packet to obtain a waiting time; the determining module, configured to determine whether the waiting time is a first processing module, configured to: resend the Nth data if the waiting time does not receive the feedback information of the Nth data packet within the waiting time threshold a second processing module, configured to: if the feedback information of the Nth data packet is received within a preset waiting time threshold, if the feedback information of the Nth data packet is to successfully receive the Nth Data packet, the N+1th data packet is sent; if the feedback information of the Nth data packet is that the Nth data packet is not successfully received, Send the N-th packet.
  • a first sending module configured to send, by using an audio interface, a data packet corresponding to
  • the mobile terminal further includes: a second timing module, configured to: if an audio transmission channel is detected to be occupied by other audio data, time for occupying the audio transmission channel by the other audio data, After detecting that the other audio data is released from the audio transmission channel, the timing is ended, and an interruption time is obtained; the first control module is configured to terminate the interruption if the interruption time exceeds a preset interruption time threshold Transmission of audio data.
  • a second timing module configured to: if an audio transmission channel is detected to be occupied by other audio data, time for occupying the audio transmission channel by the other audio data, After detecting that the other audio data is released from the audio transmission channel, the timing is ended, and an interruption time is obtained; the first control module is configured to terminate the interruption if the interruption time exceeds a preset interruption time threshold Transmission of audio data.
  • the mobile terminal further includes: a third timing module, configured to: if an audio transmission channel is detected to be occupied by other audio data, time for occupying the audio transmission channel by the other audio data, After detecting that the other audio data is released from the audio transmission channel, the timing is ended, and an interruption time is obtained; the second determining module is configured to determine whether the interruption time is within a preset interruption time threshold; And a control module, configured to: if the interruption time is within the interruption time threshold, resume transmission of multiple data packets corresponding to the transaction.
  • a third timing module configured to: if an audio transmission channel is detected to be occupied by other audio data, time for occupying the audio transmission channel by the other audio data, After detecting that the other audio data is released from the audio transmission channel, the timing is ended, and an interruption time is obtained; the second determining module is configured to determine whether the interruption time is within a preset interruption time threshold; And a control module, configured to: if the interruption time is within the interruption time threshold, resume transmission of multiple data packets
  • the second control module includes: an acquiring unit, configured to acquire operation information of multiple data packets corresponding to the transaction when the audio transmission channel is occupied by the other audio data; And if the operation information is to send the Nth data packet, retransmitting the Nth data packet; if the operation information is feedback information waiting to receive the Nth data packet, performing judgment Whether the current waiting time of the feedback information of the Nth data packet is within a preset waiting time threshold; if the operation information is received The feedback information of the Nth data packet is performed to perform the operation of transmitting the (N+1)th data packet.
  • the interruption time threshold is 6 seconds.
  • a transmission system for audio data comprising the above smart key device and a mobile terminal.
  • the smart key device after receiving the data packet, the smart key device detects the data packet, obtains feedback information, and sends the feedback information to the mobile terminal to trigger the next sending operation of the mobile terminal, and The mobile terminal determines, according to whether the feedback information can be received and the content of the feedback information, the sending target of the current sending operation, and realizes the sequential transmission of the data packet between the smart key device and the mobile terminal. , to ensure the continuity of transmission and the integrity of data transmission.
  • FIG. 1 is a schematic flowchart diagram of an embodiment of a method for transmitting audio data according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic flowchart of an embodiment of a method for transmitting audio data according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic structural diagram of an embodiment of a smart key device provided by the present invention.
  • FIG. 4 is a schematic structural diagram of an embodiment of a mobile terminal provided by the present invention. detailed description
  • FIG. 1 is a schematic flowchart diagram of an embodiment of a method for transmitting audio data according to Embodiment 1 of the present invention.
  • the method embodiment shown in Figure 1 includes:
  • Step 101 The smart key device receives, by the audio interface, a plurality of data packets corresponding to the transaction, and when the first data packet is received, determines whether the first data packet is complete, where the audio interface includes a microphone Foot and channel pins;
  • the smart key device can be connected to the mobile terminal through an audio interface, such as a mobile phone or a tablet computer; and the CRC16 algorithm can be used to determine whether the data packet is complete.
  • Step 102 If the first data packet is complete, send the feedback information of the first data packet successfully, and save the first data packet; otherwise, send the feedback information that the first data packet is not successfully received;
  • the smart key device is in a passive state when communicating with the external device through the audio interface, and after receiving the external data, feeding back corresponding information to the external device, and does not actively request data from the external device;
  • Step 103 When receiving the Nth data packet, determine whether the Nth data packet is complete, where N is an integer greater than or equal to 2;
  • step 101 The processing of this step is the same as that of step 101, and is not described here.
  • Step 104 If the Nth data packet is complete, the sending succeeds in receiving the feedback information of the Nth data packet; No, the sending information of the Nth data packet is not successfully received;
  • the external device may be triggered to perform the next round of data packet transmission; and the unsuccessfully received information is sent to the external device, and the external device may be triggered to resend the data packet until successful. Until the packet is received;
  • the integrity verification plane can ensure the integrity of the data, and prepare for the analysis of the data in the future; and according to the verification result, the local device is fed back to the external device whether the data packet is successfully received.
  • the information is convenient for the external to know the data transmission, to ensure that the data can be transmitted smoothly and orderly, and the basic process of data transmission through the audio interface is established.
  • Step 105 When the Nth data packet is complete, determine whether the Nth data packet is overlapped with the N-1th data packet; if it is repeated, discard the Nth data packet; if not, Then save the Nth data packet.
  • the smart key device is connected to the outside through the audio interface, and after receiving the data packet through the audio interface, determining the integrity of the data packet, Whether the local packet is successfully received by the local device, and the feedback packet is sent to trigger the peer to send the next data packet to complete the local receiving subsequent data.
  • N is greater than or equal to 2
  • by determining whether the Nth data packet is duplicated with the previously received data packet, thereby determining whether the data packet is locally required data, thereby determining whether to save the data packet, and performing repetitive detection on the data packet effectively control the number of parsed data packets, reduce the processing of repeated data packets, and improve the processing efficiency of data packets.
  • FIG. 2 is a schematic flowchart diagram of an embodiment of a method for transmitting audio data according to Embodiment 2 of the present invention.
  • the method embodiment shown in Figure 2 includes:
  • Step 201 Send, by the mobile terminal, the Nth data packet, where N is a natural number, in the process of sending the multiple data packets corresponding to the transaction through the audio interface;
  • Step 202 After sending the Nth data packet, time waiting for the feedback information of the Nth data packet to be timed to obtain a waiting time;
  • Step 203 Determine whether the waiting duration is within a preset waiting time threshold
  • Step 204 If the waiting time does not receive the feedback information of the Nth data packet within the waiting time threshold, resend the Nth data packet;
  • Step 205 If the feedback information of the Nth data packet is received within a preset waiting time threshold, if the feedback information of the Nth data packet is successfully received the Nth data packet, send the Nth +1 data packet; if the feedback information of the Nth data packet is that the Nth data packet is not successfully received, the Nth data packet is retransmitted.
  • the mobile terminal is connected to the outside through the audio interface, and after transmitting the data packet, determining whether to resend the data packet by timing the elapsed time after the data packet is sent. After receiving the feedback information, according to the feedback information, it is determined whether to resend or send the next data packet, thereby ensuring that the externally can receive the data packet sequentially, ensuring the continuity of the transmission and the integrity of the data transmission.
  • the time when the other audio data occupies the audio transmission channel is counted, and after detecting that the other audio data is released from the audio transmission channel, the timing ends and the interruption time is obtained. If the interruption time exceeds a preset interruption time threshold, the transmission of the audio data is terminated.
  • the audio transmission channel is occupied by other audio data, and may include the following situations, such as playing an alarm clock, a short message prompt, and the like;
  • control transmission End Considering that if the audio transmission channel is occupied by other audio data for too long, the data corresponding to the transaction may be modified by the user, and the hacker may also launch an attack during this time. To ensure the timeliness and security of the transaction, control transmission End.
  • the method further includes:
  • the time when the other audio data occupies the audio channel is counted, and after detecting that the other audio data is released from the audio channel, the timing ends and the interruption time is obtained; Determining whether the interruption time is within a preset interruption time threshold; if the interruption time is within the interruption time threshold, continuing to transmit a plurality of data packets corresponding to the transaction.
  • the audio transmission channel is short in other audio data, and the transaction data is modified and the possibility of hacking is low, the corresponding transmission of the transaction can be continued.
  • the resuming of the plurality of data packets corresponding to the transaction includes:
  • the operation information is feedback information waiting to receive the Nth data packet, performing a process of determining whether the waiting time of the current feedback information of the Nth data packet is in the preset waiting time threshold;
  • the operation information is the feedback information of the Nth data packet, the operation of transmitting the N+1th data packet is performed.
  • the operation information is feedback information waiting to receive the Nth data packet, and includes an operation of not receiving the feedback information of the Nth data packet and an operation in which the terminal starts to receive the feedback information but has not completely received.
  • the threshold of the interruption time may be 3 to 10 seconds.
  • the threshold may also be adjusted according to an external setting. In this embodiment, it is preferably 6 seconds.
  • FIG. 3 is a schematic structural diagram of an embodiment of a smart key device provided by the present invention.
  • the smart key device shown in FIG. 3 includes: a first determining module 301, when receiving a plurality of data packets corresponding to a transaction through an audio interface, determining, when the first data packet is received, determining whether the first data packet is complete
  • the audio interface includes a microphone pin and a channel pin;
  • the first sending module 302 is connected to the first determining module, and is configured to: if the first data packet is complete, send the feedback information that successfully receives the first data packet; otherwise, the sending does not successfully receive the first data packet.
  • the feedback module 303 is connected to the first sending module, and is configured to save the first data packet when the first data is complete;
  • the second determining module 304 is configured to determine, when the Nth data packet is received, whether the Nth data packet is complete, where N is an integer greater than or equal to 2;
  • the second sending module 305 is connected to the second determining module 304, and is configured to: if the Nth data packet is complete, send the feedback information of the Nth data packet successfully; otherwise, the sending does not successfully receive the Nth data.
  • the third determining module 306 is connected to the second determining module 305, and configured to determine, when the Nth data packet is complete, the Nth data packet and the N-1th data packet. Is it redundant;
  • the processing module 307 is connected to the third determining module 306, and is configured to discard the Nth data packet if the Nth data packet is overlapped with the N-1th data packet; if not, save the Nth data packet The Nth data packet.
  • the smart key device is connected to the outside through the audio interface, and after receiving the data packet through the audio interface, the integrity of the data packet is detected. Determining whether the locality successfully receives the data packet, and sending the feedback information, triggering the peer end to send the next data packet, to complete the local receiving subsequent data work, and, for the received Nth data packet, where N is greater than Or equal to 2, by determining whether the Nth data packet is duplicated with the previously received data packet, thereby determining whether the data packet is locally required data, thereby determining whether to save the data packet, and repeating the data packet.
  • the detection effectively controls the number of packets with parsing, reduces the processing of duplicate packets, and improves the processing efficiency of the packets.
  • FIG. 4 is a schematic structural diagram of an embodiment of a mobile terminal provided by the present invention.
  • the mobile terminal shown in FIG. 4 includes: a first sending module 401, configured to send an Nth data packet, where N is a natural number, in a process of sending a plurality of data packets corresponding to the transaction through the audio interface;
  • the first timing module 402 is connected to the first sending module 401, and is configured to time the time for waiting for the feedback information of the Nth data packet after the Nth data packet is sent, to obtain a waiting time;
  • the first judging module 403 is connected to the first timing module 402, and is configured to determine whether the waiting duration is within the waiting time threshold set in advance;
  • the first processing module 404 is connected to the first determining module, and configured to resend the Nth if the waiting time does not receive the feedback information of the Nth data packet within the waiting time threshold Data packet
  • the second processing module 405 is connected to the first determining module 403, and configured to: if the feedback information of the Nth data packet is received within a preset waiting time threshold, if the Nth data packet is The feedback information is that the Nth data packet is successfully received, and the N+1th data packet is sent; if the feedback information of the Nth data packet is that the Nth data packet is not successfully received, the Nth data packet is retransmitted. data pack.
  • the mobile terminal further includes:
  • a second timing module configured to: if an audio transmission channel is detected to be occupied by other audio data, time the other audio data occupies the audio transmission channel, and detect other audio data to release the audio transmission After the occupation of the track, the time is over and the interruption time is obtained;
  • a first control module configured to terminate transmission of the audio data if the interruption time exceeds a preset interruption time threshold.
  • the mobile terminal further includes:
  • a third timing module configured to: if an audio transmission channel is detected to be occupied by other audio data, time for occupying the audio channel by other audio data, after detecting that other audio data is used to release the audio channel, The timing is over and the interruption time is obtained;
  • a second judging module configured to be connected to the third timing module, configured to determine whether the interrupt time is within a preset interrupt time threshold
  • the second control module is connected to the second determining module, and is configured to resume transmission of the plurality of data packets corresponding to the transaction if the interruption time is within the interruption time threshold.
  • the second control module includes:
  • An obtaining unit configured to acquire operation information of a plurality of data packets corresponding to the transaction when the audio transmission channel is occupied by other audio data;
  • control unit configured to: if the operation information is the Nth data packet, retransmit the Nth data packet; if the operation information is feedback information waiting to receive the Nth data packet, perform a judgment on the current And a flow of whether the waiting time of the feedback information of the Nth data packet is in the preset waiting time threshold; if the operation information is the feedback information of the Nth data packet, performing the sending The operation of N+1 packets.
  • the interrupt time threshold is 6 seconds.
  • the mobile terminal is connected to the outside through the audio interface, and after transmitting the data packet, determining whether to resend the data packet by timing the elapsed time after the data packet is sent. After receiving the feedback information, according to the feedback information, it is determined whether to resend or send the next data packet, thereby ensuring that the externally can receive the data packet sequentially, ensuring the continuity of the transmission and the integrity of the data transmission.
  • the present invention provides a transmission system for audio data, comprising the smart key device of any of the above and the mobile terminal of any of the above.
  • the smart key device after receiving the data packet, the smart key device detects the data packet, obtains feedback information, and sends the feedback information to the mobile terminal to trigger the The next transmission operation of the mobile terminal, and the mobile terminal determines the transmission destination of the current transmission operation according to whether the feedback information can be received and the content of the feedback information, and implements the smart key device and
  • the data packets are sequentially transmitted between the mobile terminals to ensure continuity of transmission and integrity of data transmission.
  • 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 with 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 separate 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.
  • the description of the terms “one embodiment”, “some embodiments”, “example”, “specific example”, or “some examples” and the like means a specific feature described in connection with the embodiment or example.
  • a structure, material or feature is included in at least one embodiment or example of the invention.
  • the schematic representation of the above terms does not necessarily mean the same embodiment or example.
  • the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

本发明提供一种音频数据的传输方法、智能密钥设备、移动终端以及音频数据的传输系统,所述方法包括:智能密钥设备通过音频接口接收交易对应的多个数据包过程中,在接收到第1个数据包时,判断第1个数据包是否完整;如果第1个数据包完整,则发送成功接收第1个数据包的反馈信息,并保存第1个数据包;否则,发送未成功接收第1个数据包的反馈信息;在接收到第N个数据包时,判断第N个数据包是否完整,其中N为大于或等于2的整数;如果第N个数据包完整,发送成功接收第N个数据包的反馈信息;否则,发送未成功接收第N个数据包的反馈信息。

Description

音频数据的传输方法、 智能密钥设备、 移动终端以及音频数据的传输系统 技术领域
本发明涉及一种电子技术领域, 尤其涉及一种音频数据的传输方法、 智能密钥设备、 移动终端以及音频数据的传输系统。 背景技术
随着网络的迅速发展给人们带来的极大便利, 人们越来越依赖于网络进行各种活动, 例如网络文件的传输、 网上银行交易均已逐渐成为人们生活、 工作中不可缺少的一部分。 由于网络毕竟是一个虚拟的环境, 存在着太多不安全的因素, 而在网络环境中必然会进行 数据交互的网络活动, 尤其是像网上银行业务和机密文件的传输这样的网络活动, 对网络 的安全提出了很高的要求, 因此人们开始大力发展网络信息安全技术。
数字签名技术就是一种为了确保用户数据在网络的传输过程中不会被人恶意修改的网 络信息安全技术。 所谓数字签名技术, 就是一种进行身份认证的技术, 可用于安全地传送 命令和文件。 数字签名技术通过一个单向函数对要传送的用户数据进行处理, 得到用以认 证数据来源并核实数据是否发生变化的一个字母数字串。 通常数字签名采用 MD5、 SHA-1 等散列算法对要传送的数据计算一个摘要值, 并采用加密算法对这个摘要值进行加密然后 进行传送。 目前数字签名采用较多的是公钥加密技术, 如基于 RSA Date Security 公司的 PKCS (Public Key Cryptography Standards) Digital Signature Algorithm^ x.509 PGP(Pretty Good Privacy).1994年美国标准与技术协会公布了数字签名标准 (DSS)而使公钥加密技术广 泛应用。 这种在数字化文档上的数字签名类似于纸张上的手写签名, 是不可伪造的, 文档 的接收者能够验证文档确实来自签名者, 并且签名后的文档没有被修改过, 从而保证接收 的文档中信息的真实性和完整性。 完善的数字签名技术应满足以下三个条件: 第一, 签名 者事后不能抵赖自己的签名; 第二, 任何其它人不能伪造签名; 第三, 如果当事人双方关 于签名的真伪发生争执, 能够在公正的仲裁者面前通过验证签名来确认其真伪。
对数据进行数字签名后, 可以很大程度上增加数据的安全性。 但是, 黑客技术的发展 依然使用户非常担忧, 因为一旦恶意攻击者控制了用户的计算机, 他们就可以截取计算机 内存中出现的数据, 对计算机合法用户的利益造成伤害。 因此人们研制出了一种便携式的 可移动使用的智能密钥设备, 也称为 USB Key。 这是一种带有微处理器的小型硬件设备, 其通过主机的数据通讯接口与主机建立连接, 设备内的处理器一般会采用安全设计芯片实 现, 利用其内置的安全机制, 实现密钥生成、 密钥安全存储和预置加密算法等功能, 与密 钥相关的运算完全在认证设备内部执行, 所以安全性很高。
但是, 这样仍然存在安全隐患, 当用户的计算机遭到木马病毒的侵害后, 能够在暗中 操作用户计算机, 并且不被用户所发觉。 如果这时用户的 USB Key接入电脑后忘记拔插, 黑客就可以按照网银交易的格式伪造交易请求报文, 并通过操纵用户的计算机, 将伪造的 交易请求报文送入 USB Key中, 利用用户私钥进行签名, 利用签名结果和伪造的交易请求 报文进行网上交易, 这些都是在用户完全不知情的情况下进行的, 因此对用户的帐户安全 威胁很大。 因此, 人们研制出了一种改进型智能密钥设备 (USB Key), 该改进型的智能密 钥设备包含显示屏以及确认按键, 需要签名的交易请求报文必须发送至该改进型的智能密 钥设备的显示屏进行显示, 并且在显示无误后, 经用户手动按确认键进行确认后, 方可将 签名数据返回至计算。 这样即便黑客控制了用户的计算机, 但是无法控制该改进型的智能 密钥设备, 并且更不能控制用户手动按确认键进行确认, 因此安全性得到了很大提高。
随着电话银行与网上银行的发展, 人们已经可以通过电话与网络便捷地享受到银行提 供的各类服务, 但随着人们对银行业务的需求不断增强, 愈发需要随时随地进行查询、 转 账、 支付等业务, 由于电话银行与网上银行的使用有一定的局限性, 无法满足用户随时随 地进行银行业务办理的需求, 手机银行的出现为用户实现了这一需求。
为了保证手机银行交易的安全性, 就要求出现相应的智能密钥设备, 那么如何实现智 能密钥设备在与手机进行接触式方式通信时如何传输交易数据是亟待解决的问题。 发明内容
本发明目的是提供一种音频数据的传输方法、 智能密钥设备、 移动终端以及音频数据 的传输系统, 用来解决智能密钥设备在与手机进行接触式方式通信时如何传输交易数据的 问题。
为达到上述目的, 根据本发明实施例第一方面提供一种音频数据的传输方法, 包括: 智能密钥设备通过音频接口接收交易对应的多个数据包过程中,在接收到第 1个数据包时, 判断所述第 1个数据包是否完整, 其中所述音频接口包括麦克引脚和声道引脚; 如果所述 第 1个数据包完整, 则发送成功接收所述第 1个数据包的反馈信息, 并保存所述第 1个数 据包; 否则, 发送未成功接收所述第 1个数据包的反馈信息; 在接收到第 N个数据包时, 判断所述第 N个数据包是否完整,其中 N为大于或等于 2的整数; 如果所述第 N个数据包 完整, 发送成功接收所述第 N个数据包的反馈信息; 否则, 发送未成功接收所述第 N个数 据包的反馈信息; 在所述第 N个数据包完整时, 判断所述第 N个数据包与第 N-1个数据包 是否重复;如果所述第 N个数据包与所述第 N-1个数据包重复,则丢弃所述第 N个数据包; 否则, 保存所述第 N个数据包。
根据本发明实施例第二方面提供一种音频数据的传输方法, 包括: 在移动终端通过音 频接口发送交易对应的多个数据包过程中, 发送第 N个数据包, 其中 N为自然数; 在发送 第 N个数据包后, 对等待所述第 N个数据包的反馈信息的时间进行计时, 得到等待时长; 判断所述等待时长是否在预先设置的等待时间阈值内; 如果所述等待时长在所述等待时间 阈值内没有接收到所述第 N个数据包的反馈信息, 则重发所述第 N个数据包; 如果在预先 设置的等待时间阈值内接收到所述第 N个数据包的反馈信息,那么如果所述第 N个数据包 的反馈信息为成功接收所述第 N个数据包, 则发送第 N+1个数据包; 如果所述第 N个数 据包的反馈信息为未成功接收所述第 N个数据包, 则重发所述第 N个数据包。
在一个实施例中, 所述方法还包括: 如果检测到有音频传输通道被其他音频数据占用, 则对所述其他音频数据占用所述音频传输通道的时间进行计时, 在检测到所述其他音频数 据解除对所述音频传输通道的占用后, 计时结束, 得到中断时间; 如果所述中断时间超过 预先设置的中断时间阈值, 则终止所述音频数据的传输。
在一个实施例中, 所述方法还包括: 如果检测到有音频传输通道被其他音频数据占用, 对所述其他音频数据占用所述音频传输通道的时间进行计时, 在检测到所述其他音频数据 解除对所述音频传输通道的占用后, 计时结束, 得到中断时间; 判断所述中断时间是否在 预先设置的中断时间阈值内; 如果所述中断时间在所述中断时间阈值内, 则对所述交易对 应的多个数据包进行续传。
在一个实施例中, 所述对所述交易对应的多个数据包进行续传包括: 获取在所述音频 传输通道被所述其他音频数据占用时所述交易对应的多个数据包的操作信息; 如果所述操 作信息为发送所述第 N个数据包, 则重发所述第 N个数据包; 如果所述操作信息为等待接 收所述第 N个数据包的反馈信息,则执行判断当前对所述第 N个数据包的反馈信息的等待 时间是否在预先设置的所述等待时间阈值的流程; 如果所述操作信息为接收到所述第 N个 数据包的反馈信息, 则执行发送所述第 N+1个数据包的操作。
在一个实施例中, 所述中断时间阈值为 6秒。
根据本发明实施例第三方面提供一种智能密钥设备, 包括: 第一判断模块, 通过音频 接口接收交易对应的多个数据包过程中, 在接收到第 1个数据包时, 判断所述第 1个数据 包是否完整, 其中所述音频接口包括麦克引脚和声道引脚; 第一发送模块, 用于如果所述 第 1个数据包完整, 则发送成功接收所述第 1个数据包的反馈信息; 否则, 发送未成功接 收所述第 1个数据包的反馈信息; 保存模块, 用于在第 1个所述数据包完整时, 保存所述 第 1个数据包; 第二判断模块, 用于在接收到第 N个数据包时, 判断所述第 N个数据包是 否完整,其中 N为大于或等于 2的整数;第二发送模块,用于如果所述第 N个数据包完整, 发送成功接收所述第 N个数据包的反馈信息; 否则, 发送未成功接收所述第 N个数据包的 反馈信息; 第三判断模块, 用于在所述第 N个数据包完整时, 判断所述第 N个数据包与所 述第 N-1个数据包是否重复; 处理模块, 用于如果所述第 N个数据包与所述第 N-1个数据 包重复, 则丢弃所述第 N个数据包; 如果不重复, 则保存所述第 N个数据包。
根据本发明实施例第四方面提供一种移动终端, 包括: 第一发送模块, 用于通过音频 接口发送交易对应的多个数据包过程中, 发送第 N个数据包, 其中 N为自然数; 第一计时 模块, 用于在发送所述第 N个数据包后, 对等待所述第 N个数据包的反馈信息的时间进行 计时, 得到等待时长; 判断模块, 用于判断所述等待时长是否在预先设置的等待时间阈值 内; 第一处理模块, 用于如果所述等待时长在所述等待时间阈值内没有接收到所述第 N个 数据包的反馈信息, 则重发所述第 N个数据包; 第二处理模块, 用于如果在预先设置的等 待时间阈值内接收到所述第 N个数据包的反馈信息,那么如果所述第 N个数据包的反馈信 息为成功接收所述第 N个数据包, 则发送第 N+1个数据包; 如果所述第 N个数据包的反 馈信息为未成功接收所述第 N个数据包, 则重发所述第 N个数据包。
在一个实施例中, 所述移动终端还包括: 第二计时模块, 用于如果检测到有音频传输 通道被其他音频数据占用, 对所述其他音频数据占用所述音频传输通道的时间进行计时, 在检测到所述其他音频数据解除对所述音频传输通道的占用后, 计时结束, 得到中断时间; 第一控制模块, 用于如果所述中断时间超过预先设置的中断时间阈值, 则终止所述音频数 据的传输。
在一个实施例中, 所述移动终端还包括: 第三计时模块, 用于如果检测到有音频传输 通道被其他音频数据占用, 对所述其他音频数据占用所述音频传输通道的时间进行计时, 在检测到所述其他音频数据解除对所述音频传输通道的占用后, 计时结束, 得到中断时间; 第二判断模块, 用于判断所述中断时间是否在预先设置的中断时间阈值内; 第二控制模块, 用于如果所述中断时间在所述中断时间阈值内,则对所述交易对应的多个数据包进行续传。
在一个实施例中, 所述第二控制模块包括: 获取单元, 用于获取在所述音频传输通道 被所述其他音频数据占用时所述交易对应的多个数据包的操作信息; 控制单元, 用于如果 所述操作信息为发送所述第 N个数据包, 则重发所述第 N个数据包; 如果所述操作信息为 等待接收所述第 N个数据包的反馈信息,则执行判断当前对所述第 N个数据包的反馈信息 的等待时间是否在预先设置的所述等待时间阈值内的流程; 如果所述操作信息为接收到所 述第 N个数据包的反馈信息, 则执行发送所述第 N+1个数据包的操作。
在一个实施例中, 所述中断时间阈值为 6秒。
根据本发明实施例第五方面提供一种音频数据的传输系统, 包括上述智能密钥设备和 移动终端。
本发明提供的技术方案, 智能密钥设备在接收到数据包后, 对该数据包进行检测, 得 到反馈信息, 并将反馈信息发给移动终端, 以触发该移动终端的下一次发送操作, 而移动 终端根据是否能接收到反馈信息以及在接收到该反馈信息的条件下, 该反馈信息的内容, 确定当前的发送操作的发送对象, 实现智能密钥设备和移动终端之间顺序地传输数据包, 保证传输的连续性和数据传输的完整性。 附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中所需要使用的附 图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领 域的普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他附 图。
图 1为本发明实施例一提供的音频数据的传输方法实施例的流程示意图;
图 2为本发明实施例二提供的音频数据的传输方法实施例的流程示意图;
图 3为本发明提供的智能密钥设备实施例的结构示意图;
图 4为本发明提供的移动终端实施例的结构示意图。 具体实施方式
下面结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发 明的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例, 都属于本发明的保护范围。
实施例一
图 1为本发明实施例一提供的音频数据的传输方法实施例的流程示意图。 图 1所示方 法实施例包括:
步骤 101、 智能密钥设备通过音频接口接收交易对应的多个数据包过程中, 在接收到 第 1个数据包时, 判断所述第 1个数据包是否完整, 其中所述音频接口包括麦克引脚和声 道引脚; 其中, 智能密钥设备可以通过音频接口与移动终端相连, 如手机、 平板电脑等; 而判 断数据包是否完整可以采用 CRC16算法。
步骤 102、 如果第 1个数据包完整, 则发送成功接收第 1个数据包的反馈信息, 并保 存所述第 1个数据包; 否则, 发送未成功接收第 1个数据包的反馈信息;
其中, 智能密钥设备在通过音频接口与所述外部设备通信时, 是处于被动状态, 在接 收外部的数据后, 向外部设备反馈对应的信息, 并不会主动向外部设备请求数据;
步骤 103、 在接收到第 N个数据包时, 判断所述第 N个数据包是否完整, 其中 N为大 于或等于 2的整数;
此步骤的处理方式与步骤 101相同, 此处不再赘述。
步骤 104、 如果所述第 N个数据包完整, 发送成功接收第 N个数据包的反馈信息; 否 贝 U, 发送未成功接收第 N个数据包的反馈信息;
具体的, 通过发送成功接收的信息给外部设备, 可以触发外部设备进行下一轮数据包 的发送操作; 而发送未成功接收的信息给外部设备, 可以触发外部设备重发该数据包, 直 到成功接收到该数据包为止;
需要说明的是, 在接收到数据包后, 进行完整性验证面能够保证数据的完整, 为日后 对数据的解析做好准备工作; 而根据验证结果, 向外部设备反馈本地是否成功接收数据包 的信息, 方便外部获知数据的发送情况, 保证数据能够顺畅有序的进行传输, 建立了通过 音频接口进行数据传输的基础流程。
步骤 105、 在所述第 N个数据包完整时, 判断所述第 N个数据包与第 N-1个数据包是 否重复; 如果重复, 则丢弃所述第 N个数据包; 如果不重复, 则保存所述第 N个数据包。
具体的, 当接收同一交易对应的数据包的个数大于或等于 2个时, 通过判断接收到的 数据包与之前的数据包是否重复, 丢弃重复接收的数据包, 从而减少后续处理的压力, 有 效利用处理资源。
与现有技术相比, 本发明提供的传输方法实施例, 智能密钥设备通过音频接口与外部 相连, 在接收到通过音频接口接收到数据包后, 通过对该数据包的完整性检测, 确定本地 是否成功接收了该数据包, 并通过发送反馈信息, 触发对端发送下一个数据包, 以完成本 地接收后续数据的工作, 另外, 对于接收到的第 N个数据包, 其中 N大于或等于 2时, 通 过判断该第 N个数据包是否与之前接收的数据包重复, 从而确定该数据包是否为本地所需 的数据, 进而确定是否保存该数据包, 通过对数据包进行重复性的检测, 有效控制带解析 的数据包的数量, 减少对重复的数据包的处理, 提高数据包的处理效率。
实施例二 图 2为本发明实施例二提供的音频数据的传输方法实施例的流程示意图。 图 2所示方 法实施例包括:
步骤 201、 在移动终端通过音频接口发送交易对应的多个数据包过程中, 发送第 N个 数据包, 其中 N为自然数;
步骤 202、 在发送第 N个数据包后, 对等待所述第 N个数据包的反馈信息的时间进行 计时, 得到等待时长;
步骤 203、 判断所述等待时长是否在预先设置的等待时间阈值内;
步骤 204、 如果所述等待时长在所述等待时间阈值内没有接收到所述第 N个数据包的 反馈信息, 则重发所述第 N个数据包;
步骤 205、 如果在预先设置的等待时间阈值内接收到所述第 N个数据包的反馈信息, 那么如果所述第 N个数据包的反馈信息为成功接收第 N个数据包, 则发送第 N+1个数据 包; 如果所述第 N个数据包的反馈信息为未成功接收第 N个数据包,则重发所述第 N个数 据包。
与现有技术相比, 本发明提供的传输方法实施例, 移动终端通过音频接口与外部相连, 在发送数据包后, 通过对数据包发送后经过的时间进行计时, 确定是否重发该数据包, 而 在接收到反馈信息, 再根据反馈信息, 确定重发还是发送下一个数据包, 从而保证外部能 够顺序地接收到数据包, 保证传输的连续性和数据传输的完整性。
下面对本实施例作进一步说明:
当移动终端自身在使用其音频传输通道时, 智能密钥设备与手机之间的通信无法正常 进行。 那么在一次交易过程中, 智能密钥设备与移动终端进行通信时, 如果移动终端收到 短信、 来电、 闹铃提醒等触发事项时, 就会强行占用音频传输通道, 引起移动终端与移动 终端之间的通信中断, 导致交易错误, 影响数据的正常传输, 且在这种情况下, 用户无法 得知交易进度, 也无法明确是否需要重新进行交易操作, 降低了用户的交易体验。 那么, 为解决这个技术问题, 采用如下方案:
如果检测到有音频传输通道被其他音频数据占用, 则对其他音频数据占用所述音频传 输通道的时间进行计时, 在检测到其他音频数据解除对音频传输通道的占用后, 计时结束, 得到中断时间; 如果中断时间超过预先设置的中断时间阈值, 则终止所述音频数据的传输。
其中, 该音频传输通道被其他音频数据占用可以包括如下情况, 例如播放闹钟的音乐、 短信提示音等;
考虑到如果音频传输通道被其他音频数据占用的时间过长, 交易对应的数据可能被用 户修改, 且, 黑客也可能在这段时间发起攻击, 为保证交易的及时性和安全性, 控制传输 结束。
相对应的, 所述方法还包括:
如果检测到有音频传输通道被其他音频数据占用, 对其他音频数据占用所述音频通道 的时间进行计时, 在检测到其他音频数据解除对所述音频通道的占用后, 计时结束, 得到 中断时间; 判断所述中断时间是否在预先设置的中断时间阈值内; 如果所述中断时间在所 述中断时间阈值内, 则对所述交易对应的多个数据包进行续传。
如果音频传输通道备其他音频数据占用的时间很短, 交易数据被修改和黑客攻击的可 能性都很低的情况下, 可以将该交易对应的传输继续传输。
其中, 对所述交易对应的多个数据包进行续传包括:
获取在音频传输通道被其他音频数据占用时对所述交易对应的多个数据包的操作信 自E .;
如果所述操作信息为发送第 N个数据包, 则重发第 N个数据包;
如果所述操作信息为等待接收第 N个数据包的反馈信息, 则执行判断当前对所述第 N 个数据包的反馈信息的等待时间是否在预先设置的所述等待时间阈值的流程;
如果所述操作信息为接收到第 N个数据包的反馈信息,则执行发送第 N+1个数据包的 操作。
需要说明的是, 操作信息为等待接收第 N个数据包的反馈信息, 包括未开始接收到第 N个数据包的反馈信息的操作和终端开始接收反馈信息但还未完整接收的操作。
由上可以看出, 根据交易中断前的操作内容, 在交易终端结束后继续之前的操作, 与 现有技术中重新发起操作相比, 缩短了处理时间, 且通过判断中断时间的长短, 判断是否 能够续传, 保证了续传的安全。
其中, 所述中断时间阈值可以 3到 10秒, 当然, 在实际应用中, 还可以根据外部的设 置, 对该阈值进行调整。 本实施例中优选为 6秒,
图 3为本发明提供的智能密钥设备实施例的结构示意图。图 3所示智能密钥设备包括: 第一判断模块 301, 通过音频接口接收交易对应的多个数据包过程中, 在接收到第 1 个数据包时, 判断所述第 1个数据包是否完整, 其中所述音频接口包括麦克引脚和声道引 脚;
第一发送模块 302, 与所述第一判断模块相连, 用于如果第 1个数据包完整, 则发送 成功接收第 1个数据包的反馈信息,; 否则, 发送未成功接收第 1个数据包的反馈信息; 保存模块 303, 与所述第一发送模块相连, 用于在第一个数据完整时, 保存所述第 1 数据包; 第二判断模块 304,用于在接收到第 N个数据包时,判断所述第 N个数据包是否完整, 其中 N为大于或等于 2的整数;
第二发送模块 305, 与所述第二判断模块 304相连, 用于如果所述第 N个数据包完整, 发送成功接收第 N个数据包的反馈信息;否则,发送未成功接收第 N个数据包的反馈信息; 第三判断模块 306, 与所述第二判断模块 305相连, 用于在所述第 N个数据包完整时, 判断所述第 N个数据包与第 N-1个数据包是否重复;
处理模块 307, 与所述第三判断模块 306相连, 用于如果所述第 N个数据包与第 N-1 个数据包重复, 则丢弃所述第 N个数据包; 如果不重复, 则保存所述第 N个数据包。
与现有技术相比, 本发明提供的智能密钥设备实施例, 智能密钥设备通过音频接口与 外部相连, 在接收到通过音频接口接收到数据包后, 通过对该数据包的完整性检测, 确定 本地是否成功接收了该数据包, 并通过发送反馈信息, 触发对端发送下一个数据包, 以完 成本地接收后续数据的工作,另外,对于接收到的第 N个数据包,其中 N大于或等于 2时, 通过判断该第 N个数据包是否与之前接收的数据包重复, 从而确定该数据包是否为本地所 需的数据, 进而确定是否保存该数据包, 通过对数据包进行重复性的检测, 有效控制带解 析的数据包的数量, 减少对重复的数据包的处理, 提高数据包的处理效率。
图 4为本发明提供的移动终端实施例的结构示意图。 图 4所示移动终端包括: 第一发送模块 401, 用于通过音频接口发送交易对应的多个数据包过程中, 发送第 N 个数据包, 其中 N为自然数;
第一计时模块 402, 与所述第一发送模块 401相连, 用于在发送第 N个数据包后, 对 等待所述第 N个数据包的反馈信息的时间进行计时, 得到等待时长;
第一判断模块 403, 与所述第一计时模块 402相连, 用于判断所述等待时长是否在预 先设置的所述等待时间阈值内;
第一处理模块 404, 与所述第一判断模块相连, 用于如果所述等待时长在所述等待时 间阈值内没有接收到所述第 N个数据包的反馈信息, 则重发所述第 N个数据包;
第二处理模块 405, 与所述第一判断模块 403相连, 用于如果在预先设置的等待时间 阈值内接收到所述第 N个数据包的反馈信息,那么如果所述第 N个数据包的反馈信息为成 功接收第 N个数据包, 则发送第 N+1个数据包; 如果所述第 N个数据包的反馈信息为未 成功接收第 N个数据包, 则重发所述第 N个数据包。
其中, 所述移动终端还包括:
第二计时模块, 用于如果检测到有音频传输通道被其他音频数据占用, 对其他音频数 据占用所述音频传输通道的时间进行计时, 在检测到其他音频数据解除对所述音频传输通 道的占用后, 计时结束, 得到中断时间;
第一控制模块, 用于如果所述中断时间超过预先设置的中断时间阈值, 则终止所述音 频数据的传输。
其中, 所述移动终端还包括:
第三计时模块, 用于如果检测到有音频传输通道被其他音频数据占用, 对其他音频数 据占用所述音频通道的时间进行计时, 在检测到其他音频数据解除对所述音频通道的占用 后, 计时结束, 得到中断时间;
第二判断模块, 与所述第三计时模块相连, 用于判断所述中断时间是否在预先设置的 中断时间阈值内;
第二控制模块, 与所述第二判断模块相连, 用于如果所述中断时间在所述中断时间阈 值内, 则对所述交易对应的多个数据包进行续传。
其中, 所述第二控制模块包括:
获取单元, 用于获取在音频传输通道被其他音频数据占用时对所述交易对应的多个数 据包的操作信息;
控制单元, 用于如果所述操作信息为发送第 N个数据包, 则重发第 N个数据包; 如果 所述操作信息为等待接收第 N个数据包的反馈信息,则执行判断当前对所述第 N个数据包 的反馈信息的等待时间是否在预先设置的所述等待时间阈值的流程; 如果所述操作信息为 接收到所述第 N个数据包的反馈信息, 则执行发送所述第 N+1个数据包的操作。
其中, 所述中断时间阈值为 6秒。
与现有技术相比, 本发明提供的移动终端实施例, 移动终端通过音频接口与外部相连, 在发送数据包后, 通过对数据包发送后经过的时间进行计时, 确定是否重发该数据包, 而 在接收到反馈信息, 再根据反馈信息, 确定重发还是发送下一个数据包, 从而保证外部能 够顺序地接收到数据包, 保证传输的连续性和数据传输的完整性。
另外, 本发明提供的一种音频数据的传输系统, 包括上文任一所述的智能密钥设备和 上文任一所述的移动终端。
与现有技术相比, 本发明提供的传输系统实施例, 智能密钥设备在接收到数据包后, 对该数据包进行检测, 得到反馈信息, 并将反馈信息发给移动终端, 以触发该移动终端的 下一次发送操作, 而移动终端根据是否能接收到反馈信息以及在接收到该反馈信息的条件 下, 该反馈信息的内容, 确定当前的发送操作的发送对象, 实现智能密钥设备和移动终端 之间顺序地传输数据包, 保证传输的连续性和数据传输的完整性。 流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为, 表示包括一个 或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、 片段或部分, 并且本发明的优选实施方式的范围包括另外的实现, 其中可以不按所示出或讨论的顺序, 包括根据所涉及的功能按基本同时的方式或按相反的顺序, 来执行功能, 这应被本发明的 实施例所属技术领域的技术人员所理解。
应当理解, 本发明的各部分可以用硬件、 软件、 固件或它们的组合来实现。 在上述实 施方式中, 多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或 固件来实现。 例如, 如果用硬件来实现, 和在另一实施方式中一样, 可用本领域公知的下 列技术中的任一项或他们的组合来实现: 具有用于对数据信号实现逻辑功能的逻辑门电路 的离散逻辑电路, 具有合适的组合逻辑门电路的专用集成电路, 可编程门阵列 (PGA), 现 场可编程门阵列 (FPGA) 等。
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可 以通过程序来指令相关的硬件完成, 所述的程序可以存储于一种计算机可读存储介质中, 该程序在执行时, 包括方法实施例的步骤之一或其组合。
此外, 在本发明各个实施例中的各功能单元可以集成在一个处理模块中, 也可以是各 个单元单独物理存在, 也可以两个或两个以上单元集成在一个模块中。 上述集成的模块既 可以采用硬件的形式实现, 也可以采用软件功能模块的形式实现。 所述集成的模块如果以 软件功能模块的形式实现并作为独立的产品销售或使用时, 也可以存储在一个计算机可读 取存储介质中。
上述提到的存储介质可以是只读存储器, 磁盘或光盘等。
在本说明书的描述中, 参考术语 "一个实施例"、 "一些实施例"、 "示例"、 "具体示 例"、 或 "一些示例"等的描述意指结合该实施例或示例描述的具体特征、 结构、 材料或者 特点包含于本发明的至少一个实施例或示例中。 在本说明书中, 对上述术语的示意性表述 不一定指的是相同的实施例或示例。 而且, 描述的具体特征、 结构、 材料或者特点可以在 任何的一个或多个实施例或示例中以合适的方式结合。
尽管上面已经示出和描述了本发明的实施例, 可以理解的是, 上述实施例是示例性的, 不 能理解为对本发明的限制, 本领域的普通技术人员在不脱离本发明的原理和宗旨的情况下 在本发明的范围内可以对上述实施例进行变化、 修改、 替换和变型。 本发明的范围由所附 权利要求及其等同限定。

Claims

权利要求书
1、 一种音频数据的传输方法, 其特征在于, 包括:
智能密钥设备通过音频接口接收交易对应的多个数据包过程中, 在接收到第 1个数据 包时, 判断所述第 1个数据包是否完整, 其中所述音频接口包括麦克引脚和声道引脚; 如 果所述第 1个数据包完整, 则发送成功接收所述第 1个数据包的反馈信息, 并保存所述第 1个数据包; 否则, 发送未成功接收所述第 1个数据包的反馈信息;
在接收到第 N个数据包时, 判断所述第 N个数据包是否完整, 其中 N为大于或等于 2 的整数;
如果所述第 N个数据包完整, 发送成功接收所述第 N个数据包的反馈信息; 否则, 发送未成功接收所述第 N个数据包的反馈信息;
在所述第 N个数据包完整时, 判断所述第 N个数据包与第 N-1个数据包是否重复; 如 果所述第 N个数据包与所述第 N-1个数据包重复, 则丢弃所述第 N个数据包; 否则, 保存 所述第 N个数据包。
2、 一种音频数据的传输方法, 其特征在于, 包括:
在移动终端通过音频接口发送交易对应的多个数据包过程中, 发送第 N个数据包, 其 中 N为自然数;
在发送第 N个数据包后, 对等待所述第 N个数据包的反馈信息的时间进行计时, 得到 等待时长;
判断所述等待时长是否在预先设置的等待时间阈值内;
如果所述等待时长在所述等待时间阈值内没有接收到所述第 N个数据包的反馈信息, 则重发所述第 N个数据包;
如果在预先设置的等待时间阈值内接收到所述第 N个数据包的反馈信息, 那么如果所 述第 N个数据包的反馈信息为成功接收所述第 N个数据包, 则发送第 N+1个数据包; 如 果所述第 N个数据包的反馈信息为未成功接收所述第 N个数据包,则重发所述第 N个数据 包。
3、 根据权利要求 2所述的方法, 其特征在于, 还包括:
如果检测到有音频传输通道被其他音频数据占用, 则对所述其他音频数据占用所述音 频传输通道的时间进行计时, 在检测到所述其他音频数据解除对所述音频传输通道的占用 后, 计时结束, 得到中断时间;
如果所述中断时间超过预先设置的中断时间阈值, 则终止所述音频数据的传输。
4、 根据权利要求 2所述的方法, 其特征在于, 还包括:
如果检测到有音频传输通道被其他音频数据占用, 对所述其他音频数据占用所述音频 传输通道的时间进行计时,在检测到所述其他音频数据解除对所述音频传输通道的占用后, 计时结束, 得到中断时间;
判断所述中断时间是否在预先设置的中断时间阈值内;
如果所述中断时间在所述中断时间阈值内,则对所述交易对应的多个数据包进行续传。
5、 根据权利要求 4所述的方法, 其特征在于, 所述对所述交易对应的多个数据包进行 续传包括:
获取在所述音频传输通道被所述其他音频数据占用时所述交易对应的多个数据包的操 作信息;
如果所述操作信息为发送所述第 N个数据包, 则重发所述第 N个数据包;
如果所述操作信息为等待接收所述第 N个数据包的反馈信息, 则执行判断当前对所述 第 N个数据包的反馈信息的等待时间是否在预先设置的所述等待时间阈值的流程;
如果所述操作信息为接收到所述第 N个数据包的反馈信息,则执行发送所述第 N+1个 数据包的操作。
6、 根据权利要求 3至 5任一项所述的方法, 其特征在于, 所述中断时间阈值为 6秒。
7、 一种智能密钥设备, 其特征在于, 包括:
第一判断模块, 通过音频接口接收交易对应的多个数据包过程中, 在接收到第 1个数 据包时, 判断所述第 1个数据包是否完整, 其中所述音频接口包括麦克引脚和声道引脚; 第一发送模块, 用于如果所述第 1个数据包完整, 则发送成功接收所述第 1个数据包 的反馈信息; 否则, 发送未成功接收所述第 1个数据包的反馈信息;
保存模块, 用于在第 1个所述数据包完整时, 保存所述第 1个数据包;
第二判断模块, 用于在接收到第 N个数据包时, 判断所述第 N个数据包是否完整, 其 中 N为大于或等于 2的整数;
第二发送模块, 用于如果所述第 N个数据包完整, 发送成功接收所述第 N个数据包的 反馈信息; 否则, 发送未成功接收所述第 N个数据包的反馈信息;
第三判断模块, 用于在所述第 N个数据包完整时, 判断所述第 N个数据包与所述第 N-1个数据包是否重复;
处理模块, 用于如果所述第 N个数据包与所述第 N-1个数据包重复, 则丢弃所述第 N 个数据包; 如果不重复, 则保存所述第 N个数据包。
8、 一种移动终端, 其特征在于, 包括: 第一发送模块, 用于通过音频接口发送交易对应的多个数据包过程中, 发送第 N个数 据包, 其中 N为自然数;
第一计时模块, 用于在发送所述第 N个数据包后, 对等待所述第 N个数据包的反馈信 息的时间进行计时, 得到等待时长;
判断模块, 用于判断所述等待时长是否在预先设置的等待时间阈值内;
第一处理模块, 用于如果所述等待时长在所述等待时间阈值内没有接收到所述第 N个 数据包的反馈信息, 则重发所述第 N个数据包;
第二处理模块, 用于如果在预先设置的等待时间阈值内接收到所述第 N个数据包的反 馈信息, 那么如果所述第 N个数据包的反馈信息为成功接收所述第 N个数据包, 则发送第 N+1个数据包; 如果所述第 N个数据包的反馈信息为未成功接收所述第 N个数据包, 则重 发所述第 N个数据包。
9、 根据权利要求 8所述的移动终端, 其特征在于, 还包括:
第二计时模块, 用于如果检测到有音频传输通道被其他音频数据占用, 对所述其他音 频数据占用所述音频传输通道的时间进行计时, 在检测到所述其他音频数据解除对所述音 频传输通道的占用后, 计时结束, 得到中断时间;
第一控制模块, 用于如果所述中断时间超过预先设置的中断时间阈值, 则终止所述音 频数据的传输。
10、 根据权利要求 8所述的移动终端, 其特征在于, 还包括:
第三计时模块, 用于如果检测到有音频传输通道被其他音频数据占用, 对所述其他音 频数据占用所述音频传输通道的时间进行计时, 在检测到所述其他音频数据解除对所述音 频传输通道的占用后, 计时结束, 得到中断时间;
第二判断模块, 用于判断所述中断时间是否在预先设置的中断时间阈值内; 第二控制模块, 用于如果所述中断时间在所述中断时间阈值内, 则对所述交易对应的 多个数据包进行续传。
11、 根据权利要求 10所述的移动终端, 其特征在于, 所述第二控制模块包括: 获取单元, 用于获取在所述音频传输通道被所述其他音频数据占用时所述交易对应的 多个数据包的操作信息;
控制单元, 用于如果所述操作信息为发送所述第 N个数据包, 则重发所述第 N个数据 包; 如果所述操作信息为等待接收所述第 N个数据包的反馈信息, 则执行判断当前对所述 第 N个数据包的反馈信息的等待时间是否在预先设置的所述等待时间阈值内的流程; 如果 所述操作信息为接收到所述第 N个数据包的反馈信息,则执行发送所述第 N+1个数据包的 操作。
12、 根据权利要求 9至 11任一项所述的移动终端, 其特征在于, 所述中断时间阈值为
6秒。
13、 一种音频数据的传输系统, 包括权利要求 7所述的智能密钥设备和权利要求 8至 12任一项所述的移动终端。
PCT/CN2014/082004 2013-08-30 2014-07-10 音频数据的传输方法、智能密钥设备、移动终端以及音频数据的传输系统 WO2015027764A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310389519.9 2013-08-30
CN201310389519.9A CN103825873A (zh) 2013-08-30 2013-08-30 智能密钥设备、移动终端以及音频数据的传输方法和系统

Publications (1)

Publication Number Publication Date
WO2015027764A1 true WO2015027764A1 (zh) 2015-03-05

Family

ID=50760702

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/082004 WO2015027764A1 (zh) 2013-08-30 2014-07-10 音频数据的传输方法、智能密钥设备、移动终端以及音频数据的传输系统

Country Status (3)

Country Link
CN (1) CN103825873A (zh)
HK (1) HK1198349A1 (zh)
WO (1) WO2015027764A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200244570A1 (en) * 2019-01-30 2020-07-30 Practechal Solutions, LLC Method and system for data transmission

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825873A (zh) * 2013-08-30 2014-05-28 天地融科技股份有限公司 智能密钥设备、移动终端以及音频数据的传输方法和系统
CN114397307B (zh) * 2021-12-20 2023-08-01 苏州镁伽科技有限公司 用于器件检测的方法、装置、设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020049068A1 (en) * 2000-07-05 2002-04-25 Samsung Electronics Co., Ltd. Data retransmission apparatus and method in a mobile communication system employing HARQ technique
CN102137027A (zh) * 2011-05-03 2011-07-27 厦门市美亚柏科信息股份有限公司 数据的可靠传输方法和装置
CN102143073A (zh) * 2011-03-23 2011-08-03 深圳创维数字技术股份有限公司 一种数据传输方法及系统
CN203070277U (zh) * 2012-10-15 2013-07-17 天地融科技股份有限公司 一种复用usb接口传输数据的系统
CN103825873A (zh) * 2013-08-30 2014-05-28 天地融科技股份有限公司 智能密钥设备、移动终端以及音频数据的传输方法和系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0407902D0 (en) * 2003-08-15 2004-05-12 Koninkl Philips Electronics Nv Feedback signalling for multicast data transmission
CN101527007A (zh) * 2007-10-25 2009-09-09 上海复旦微电子股份有限公司 实现sim卡与非接触前端芯片之间互连的移动非接触电路
CN102255730A (zh) * 2011-07-11 2011-11-23 吴沙林 数字证书安全锁装置、数字证书认证系统及方法
CN102932754B (zh) * 2011-08-10 2016-02-03 国民技术股份有限公司 用于射频通信的数据发送、接收方法
CN102622820A (zh) * 2012-02-29 2012-08-01 钱袋网(北京)信息技术有限公司 终端设备和服务器

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020049068A1 (en) * 2000-07-05 2002-04-25 Samsung Electronics Co., Ltd. Data retransmission apparatus and method in a mobile communication system employing HARQ technique
CN102143073A (zh) * 2011-03-23 2011-08-03 深圳创维数字技术股份有限公司 一种数据传输方法及系统
CN102137027A (zh) * 2011-05-03 2011-07-27 厦门市美亚柏科信息股份有限公司 数据的可靠传输方法和装置
CN203070277U (zh) * 2012-10-15 2013-07-17 天地融科技股份有限公司 一种复用usb接口传输数据的系统
CN103825873A (zh) * 2013-08-30 2014-05-28 天地融科技股份有限公司 智能密钥设备、移动终端以及音频数据的传输方法和系统

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200244570A1 (en) * 2019-01-30 2020-07-30 Practechal Solutions, LLC Method and system for data transmission
WO2020160312A1 (en) * 2019-01-30 2020-08-06 Practechal Solutions, Inc. A method and system for data transmission
US20200371701A1 (en) * 2019-01-30 2020-11-26 Practechal Solutions, Inc. Method and System for Data Transmission
US11567678B2 (en) 2019-01-30 2023-01-31 Practechal Solutions Inc. Method and system for surveillance system management
US11614874B2 (en) 2019-01-30 2023-03-28 Practechal Solutions, Inc. Method and system for data storage and management
US11698733B2 (en) * 2019-01-30 2023-07-11 Practechal Solutions, Inc. Method and system for data transmission

Also Published As

Publication number Publication date
CN103825873A (zh) 2014-05-28
HK1198349A1 (zh) 2015-04-02

Similar Documents

Publication Publication Date Title
US8837724B2 (en) Synchronization test for device authentication
US8762715B2 (en) Event triggered pairing of wireless communication devices based on time measurements
CN109905405B (zh) 用于合法拦截的安全方法
JP5043957B2 (ja) モバイル動作環境のための、安全なアプリケーション間通信を提供すること
Studer et al. Don't bump, shake on it: The exploitation of a popular accelerometer-based smart phone exchange and its secure replacement
EP2678799B1 (en) Method and apparatus for encoding and decoding data transmitted to an authentication token
WO2015058596A1 (zh) 动态口令生成方法和系统、交易请求的处理方法和系统
US20110126014A1 (en) Event Triggered Pairing of Wireless Communication Devices Based on Time Measurements
US11245531B2 (en) Method, apparatus and system for establishing biometric identification information transmission and storage medium
WO2010057405A1 (zh) 利用短信息进行身份认证的方法
WO2007003078A1 (en) A method for implementing encryption and the device thereof
WO2015161689A1 (zh) 一种基于协商密钥的数据处理方法
TW201814547A (zh) 電子裝置、伺服器、通訊系統及通訊方法
TWI539392B (zh) Secure payment system based on Internet and safe payment method
WO2014201907A1 (zh) 电子签名方法及系统
WO2013189330A2 (zh) 一种移动终端数据备份和恢复的方法及系统
WO2014173280A1 (zh) 一种ic卡脱机pin验证方法以及ic卡脱机验证系统
WO2015027764A1 (zh) 音频数据的传输方法、智能密钥设备、移动终端以及音频数据的传输系统
WO2015000332A1 (zh) 一种发送签名数据的方法和电子签名令牌
JP2005311531A5 (zh)
CN102420829A (zh) 业务数据签名的方法、装置和系统及数字认证终端
TW201117041A (en) Mutual authentication method of external storage devices
US20160036592A1 (en) Non-repudiation of electronic transactions
TWI459786B (zh) 多通道主動式網路身分驗證系統及相關的電腦程式產品
WO2023201550A1 (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: 14840003

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

Country of ref document: EP

Kind code of ref document: A1