CN102752019B - Data sending, receiving and transmitting method and system based on headset jack - Google Patents

Data sending, receiving and transmitting method and system based on headset jack Download PDF

Info

Publication number
CN102752019B
CN102752019B CN201110099396.6A CN201110099396A CN102752019B CN 102752019 B CN102752019 B CN 102752019B CN 201110099396 A CN201110099396 A CN 201110099396A CN 102752019 B CN102752019 B CN 102752019B
Authority
CN
China
Prior art keywords
file
frame information
bit
bit data
format
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110099396.6A
Other languages
Chinese (zh)
Other versions
CN102752019A (en
Inventor
韩昌雷
郑玉峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen box Mdt InfoTech Ltd
Original Assignee
SHENZHEN IBOXPAY INFORMATION TECHNOLOGY CO LTD
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 SHENZHEN IBOXPAY INFORMATION TECHNOLOGY CO LTD filed Critical SHENZHEN IBOXPAY INFORMATION TECHNOLOGY CO LTD
Priority to CN201110099396.6A priority Critical patent/CN102752019B/en
Publication of CN102752019A publication Critical patent/CN102752019A/en
Application granted granted Critical
Publication of CN102752019B publication Critical patent/CN102752019B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention is suitable for the field of communication, and provides a data sending, receiving and transmitting method and system based on a headset jack. The method comprises the steps that at the sending side, after a file needing to be sent by a user is confirmed, frame information of the sent file is converted into an audio-format file, and voice information of the audio-format file is played through the headset jack, wherein the voice information comprises an unprocessed format of the file; and at the receiving side, the voice information is received from the headset jack, a recorder is used for recording the voice information into an audio file, the audio file is converted into the frame information, and the frame information is restored to the sent file and then is saved. The data sending, receiving and transmitting method and system based on the headset jack provided by the invention has the advantages that data can be sent on the basis of the headset jack and the applicability is wide.

Description

Data based on earphone jack send, receive, transmission method and system
Technical field
The invention belongs to the communications field, particularly relate to that a kind of data based on earphone jack send, receive, transmission method and system.
Background technology
Existing earphone jack as shown in Figure 1, wherein:
1, ground wire: for connecting mobile phone with peripheral hardware ground, make system altogether.
2, sound channel line 1: for peripheral hardware provides power supply, for peripheral hardware work power consumption or the charging of peripheral hardware battery.
3, sound channel line 2: be data in mobile phone output line, for the asynchronous communication with peripheral hardware, data in mobile phone be transferred to peripheral hardware.
4, Mike's line: be peripheral data input line, for the asynchronous communication of peripheral hardware and mobile phone, transmits peripheral data into mobile phone.
Existing earphone jack is only limitted to reception and the transmission of audio signal, and it cannot communicated data signal, and such as MP3, video file or a text then cannot pass to other equipment by this earpiece holes.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of data transmission method based on earphone jack, is intended to solve existing technical scheme cannot carry out data transmission problem by earphone jack.
The embodiment of the present invention is achieved in that a kind of data transmission method for uplink based on earphone jack, and described method comprises:
After determining that user needs the file transmitted, the frame information of the file of this transmission is converted to the file of audio format;
The file of this audio format is play voice messaging by earphone jack.
The invention provides a kind of data receive method based on earphone jack, described method comprises:
Go out receiving speech information from earphone jack, call phonographic recorder and voice messaging is recorded into audio file;
Convert this audio file to frame information, and preserve after this frame information being reduced into the file of transmission.
The present invention provides again a kind of data transmission method based on earphone jack, and described method comprises:
At transmitter side:
After determining that user needs the file transmitted, the frame information of the file of this transmission is converted to the file of audio format;
The file of this audio format is play voice messaging by earphone jack; Wherein said voice messaging comprises the unprocessed form of this file;
At receiver side:
Go out receiving speech information from earphone jack, call phonographic recorder and voice messaging is recorded into audio file;
Convert this audio file to frame information, preserve after this frame information being reduced into the file of transmission.
The present invention provides again a kind of transmitting terminal device, and described transmitting terminal device comprises:
Modular converter, for after determining that user needs the file transmitted, converts the file of audio format to by the frame information of the file of this transmission;
Playing module, for playing voice messaging by the file of this audio format by earphone jack.
Another receiving end device of the present invention, described device comprises:
Receive and record module, for going out receiving speech information from earphone jack, calling phonographic recorder and voice messaging is recorded into audio file;
Module is preserved in reduction, for converting this audio file to frame information, preserves after this frame information being reduced into the file of transmission.
The invention provides a kind of data transmission system based on earphone jack, described system comprises: transmitting terminal device and receiving end device;
This transmitting terminal device is used for, after determining that user needs the file transmitted, the frame information of the file of this transmission being converted to the file of audio format; The file of this audio format is play voice messaging by earphone jack; Wherein said voice messaging comprises the unprocessed form of this file;
This receiving end device is used for going out receiving speech information from earphone jack, calls phonographic recorder and voice messaging is recorded into audio file; Convert this audio file to frame information, preserve after this frame information being reduced into the file of transmission.
In embodiments of the present invention, technical scheme transmitter side provided by the invention is after determining the file transmitted, this file is sent by earphone jack, after receiver side receives this voice document, preserve after this voice document is reduced into former transfer files, so this technical scheme has the advantage transmitting file based on earphone jack.
Accompanying drawing explanation
Fig. 1 is the earphone jack schematic diagram that this prior art provides;
Fig. 2 is the data transmission method for uplink flow chart based on earphone jack provided by the invention;
Fig. 3 is character format schematic diagram provided by the invention;
Fig. 4 is frame format schematic diagram provided by the invention;
Fig. 5 is the data receive method flow chart based on earphone jack provided by the invention;
Fig. 6 is the flow chart of the data transmission method based on earphone jack provided by the invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
A kind of data transmission method for uplink based on earphone jack provided by the invention, as shown in Figure 2, the method is completed by sending ending equipment the method, and the method comprises the steps:
S21, determine user need transmit file after, the frame information of the file of this transmission is converted to the file of audio format;
S22, the file of this audio format is play voice messaging by earphone jack.
Method provided by the invention is when carrying out data and transmitting, no matter which kind of form file is, all this file is converted to the file of audio format, and play by earphone jack, the file of any form all can be sent by earphone jack in this way, support earphone jack and carry out transfer of data.
It should be noted that, the file of above-mentioned audio format also comprises the unprocessed form of this file, this form such as MP4, WORD etc.When after the unprocessed form increasing file, can so that receiving terminal reduction frame information.
It should be noted that, above-mentioned audio file can be: containing sinusoidal wave and square wave or regular waveform.
It should be noted that the file of above-mentioned transducing audio form and play voice messaging and the file limit of limit transducing audio form can play the file of the audio format converted is play after can certainly all converting whole file to audio file.
It should be noted that, as shown in Figure 3, as shown in Figure 4, wherein this frame information transmits this frame format the character format of above-mentioned frame information under following communication protocol:
1, on data line, level 0 ~ 1V presentation logic " 0 ", level 2 ~ 3.3V presentation logic " 1 ".
2, Transmission bit rate: 9600bps or 115200bps.
3, transmission range: < 60mm.
4, character format is :+1, bit check position, 1 start bit+8 bit data position+1 position of rest.This character format specifically can see Fig. 3;
5, frame format, this frame format can comprise: frame format is: 1 lead byte+1 start-of-frame+1 control code+1 bit data length+n-bit data+1 bit check code+1 end mark.Certainly can also increase other content, such as increase literary composition 1 file origin before the data, the content of this frame format as shown in Figure 4.
Wherein, LEAD: preamble field (1 byte).Before main website transmission frame information, first send a lead byte, with awake recipient.
FSB: frame start field (1 byte).
CMD: control code field (1 byte), also claims information classification code.
LEN: data field length field (1 byte).
DATA: data field field (xx byte).
CS: check code field (1 byte), to the mould 256 of all each byte before check code from frame is initial.
And, namely each byte binary arithmetic sum, disregards the overflow value more than 256.
FEB: end mark field (1 byte).
6, transmission response: each communication is all that slave station responds according to the requirement of command frame by main website sends request command frame to slave station.Receive orders the response time delay Td:1ms≤Td≤10ms of frame.Dead time Tb:01ms≤Tb≤10ms between byte.
7, error control: byte check digit even parity check, frame check be longitudinal information checking and, reciever no matter test to even parity check or longitudinal information checking with make mistakes, all abandon this information frame, will not respond.
The present invention also provides a kind of data receive method based on earphone jack, and the method is completed by receiving end device, and the method as shown in Figure 5, comprising:
S51, go out receiving speech information from earphone jack, call phonographic recorder and voice messaging is recorded into audio file;
S52, convert this audio file to frame information, and preserve after this frame information being reduced into the file of transmission.
The form of above-mentioned frame information can see the associated description in above-mentioned sending method,
After method of reseptance provided by the invention receives voice messaging by earphone jack, the file this voice messaging being converted to transmission is preserved, institute can pass through earphone jack transfer files in this way, again because the method only improves method operating process, do not change the hardware configuration of earphone jack, namely all earphone jacks all can carry out transfer files by the way, and institute is with a wide range of applications in this way.
The present invention also provides a kind of data transmission method based on earphone jack, and the method as shown in Figure 6, comprising:
At transmitter side:
S61, determine user need transmit file after, the frame information of the file of this transmission is converted to the file of audio format;
S62, the file of this audio format is play voice messaging by earphone jack; Wherein said voice messaging comprises the unprocessed form of this file;
At receiver side:
S63, go out receiving speech information from earphone jack, call phonographic recorder and voice messaging is recorded into audio file;
S64, convert this audio file to frame information, preserve after this frame information being reduced into the file of transmission.
Method transmitter side provided by the invention is after determining the file transmitted, this file is sent by earphone jack, after receiver side receives this voice document, preserve after this voice document is reduced into former transfer files, there is advantage in this way that can transmit file based on earphone jack.
The present invention also provides a kind of transmitting terminal device, and this device comprises:
Modular converter, for after determining that user needs the file transmitted, converts the file of audio format to by the frame information of the file of this transmission;
Playing module, for playing voice messaging by the file of this audio format by earphone jack.
Device provided by the invention is when carrying out data and transmitting, no matter which kind of form file is, all this file is converted to the file of audio format, and play by earphone jack, so the file of any form can all be sent by earphone jack by this device, support earphone jack and carry out transfer of data.
It should be noted that, above-mentioned transmitting terminal device can for having any device of earphone jack, such as computer, mobile phone, PDA, MP3, MP4 etc.
The present invention also provides a kind of receiving end device, and this device comprises:
Receive and record module, for going out receiving speech information from earphone jack, calling phonographic recorder and voice messaging is recorded into audio file;
Module is preserved in reduction, for converting this audio file to frame information, preserves after this frame information being reduced into the file of transmission.
It should be noted that, above-mentioned receiving terminal end device can for having any device of earphone jack, such as computer, mobile phone, PDA, MP3, MP4 etc.
After device provided by the invention receives voice messaging by earphone jack, the file this voice messaging being converted to transmission is preserved, so this device can pass through earphone jack transfer files, there is again this device can for having any device of earphone jack, so this device has applicability widely.
The present invention also provides a kind of data transmission system based on earphone jack, and this system comprises: transmitting terminal device and receiving end device; Wherein:
This transmitting terminal device is used for, after determining that user needs the file transmitted, the frame information of the file of this transmission being converted to the file of audio format; The file of this audio format is play voice messaging by earphone jack; Wherein said voice messaging comprises the unprocessed form of this file;
This receiving end device is used for going out receiving speech information from earphone jack, calls phonographic recorder and voice messaging is recorded into audio file; Convert this audio file to frame information, preserve after this frame information being reduced into the file of transmission.
The transmitting terminal device of system provided by the invention is after determining the file transmitted, this file is sent by earphone jack, after receiving end device receives this voice document, preserve after this voice document is reduced into former transfer files, so this system has the advantage transmitting file based on earphone jack, again because this receiving end device and transmitting terminal device are suitable for all devices with earphone jack, so this system has applicability widely.
Technical scheme provided by the invention has and can transmit data based on earphone jack and have the advantage of applicability widely.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. based on a data transmission method for uplink for earphone jack, it is characterized in that, described method comprises:
After determining that user needs the file transmitted, the frame information of the file of this transmission is converted to the file of audio format;
The file of this audio format is play voice messaging by earphone jack;
The character format of described frame information is: 1 start bit, 8 bit data positions, 1 bit check position and 1 position of rest; The frame format that described frame information is corresponding comprises: 1 lead byte, 1 start-of-frame, 1 control code, 1 bit data length, n-bit data, 1 bit check code and 1 end mark, also comprise 1 file origin before described n-bit data.
2. method according to claim 1, is characterized in that, described voice messaging comprises: the unprocessed form of the file of transmission.
3. based on a data receive method for earphone jack, it is characterized in that, described method comprises:
From earphone jack receiving speech information, call phonographic recorder and voice messaging is recorded into audio file;
Convert this audio file to frame information, and preserve after this frame information being reduced into the file of transmission;
The character format of described frame information is: 1 start bit, 8 bit data positions, 1 bit check position and 1 position of rest; The frame format that described frame information is corresponding comprises: 1 lead byte, 1 start-of-frame, 1 control code, 1 bit data length, n-bit data, 1 bit check code and 1 end mark, also comprise 1 file origin before described n-bit data.
4. based on a data transmission method for earphone jack, it is characterized in that, described method comprises:
At transmitter side:
After determining that user needs the file transmitted, the frame information of the file of this transmission is converted to the file of audio format;
The file of this audio format is play voice messaging by earphone jack; Wherein said voice messaging comprises the unprocessed form of this file;
At receiver side:
From earphone jack receiving speech information, call phonographic recorder and voice messaging is recorded into audio file;
Convert this audio file to frame information, preserve after this frame information being reduced into the file of transmission;
The character format of described frame information is: 1 start bit, 8 bit data positions, 1 bit check position and 1 position of rest; The frame format that described frame information is corresponding comprises: 1 lead byte, 1 start-of-frame, 1 control code, 1 bit data length, n-bit data, 1 bit check code and 1 end mark, also comprise 1 file origin before described n-bit data.
5. a transmitting terminal device, is characterized in that, described transmitting terminal device comprises:
Modular converter, for after determining that user needs the file transmitted, converts the file of audio format to by the frame information of the file of this transmission;
Playing module, for playing voice messaging by the file of this audio format by earphone jack;
The character format of described frame information is: 1 start bit, 8 bit data positions, 1 bit check position and 1 position of rest; The frame format that described frame information is corresponding comprises: 1 lead byte, 1 start-of-frame, 1 control code, 1 bit data length, n-bit data, 1 bit check code and 1 end mark, also comprise 1 file origin before described n-bit data.
6. transmitting terminal device according to claim 5, is characterized in that, described device is: computer, mobile phone, PDA, MP3 or MP4.
7. a receiving end device, is characterized in that, described device comprises:
Receive and record module, for from earphone jack receiving speech information, call phonographic recorder and voice messaging is recorded into audio file;
Module is preserved in reduction, for converting this audio file to frame information, preserves after this frame information being reduced into the file of transmission;
The character format of described frame information is: 1 start bit, 8 bit data positions, 1 bit check position and 1 position of rest; The frame format that described frame information is corresponding comprises: 1 lead byte, 1 start-of-frame, 1 control code, 1 bit data length, n-bit data, 1 bit check code and 1 end mark, also comprise 1 file origin before described n-bit data.
8. receiving end device according to claim 7, is characterized in that, described device is: computer, mobile phone, PDA, MP3 or MP4.
9. based on a data transmission system for earphone jack, it is characterized in that, described system comprises: transmitting terminal device and receiving end device;
This transmitting terminal device is used for, after determining that user needs the file transmitted, the frame information of the file of this transmission being converted to the file of audio format; The file of this audio format is play voice messaging by earphone jack; Wherein said voice messaging comprises the unprocessed form of this file;
This receiving end device is used for from earphone jack receiving speech information, calls phonographic recorder and voice messaging is recorded into audio file; Convert this audio file to frame information, preserve after this frame information being reduced into the file of transmission;
The character format of described frame information is: 1 start bit, 8 bit data positions, 1 bit check position and 1 position of rest; The frame format that described frame information is corresponding comprises: 1 lead byte, 1 start-of-frame, 1 control code, 1 bit data length, n-bit data, 1 bit check code and 1 end mark, also comprise 1 file origin before described n-bit data.
CN201110099396.6A 2011-04-20 2011-04-20 Data sending, receiving and transmitting method and system based on headset jack Active CN102752019B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110099396.6A CN102752019B (en) 2011-04-20 2011-04-20 Data sending, receiving and transmitting method and system based on headset jack

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110099396.6A CN102752019B (en) 2011-04-20 2011-04-20 Data sending, receiving and transmitting method and system based on headset jack

Publications (2)

Publication Number Publication Date
CN102752019A CN102752019A (en) 2012-10-24
CN102752019B true CN102752019B (en) 2015-01-28

Family

ID=47031944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110099396.6A Active CN102752019B (en) 2011-04-20 2011-04-20 Data sending, receiving and transmitting method and system based on headset jack

Country Status (1)

Country Link
CN (1) CN102752019B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220428A (en) * 2013-04-17 2013-07-24 南京三宝科技股份有限公司 Audio signal data communication method for cell phone
CN103500151B (en) * 2013-09-27 2016-06-08 深圳钱盒信息技术有限公司 A kind of method and apparatus changing peripheral equipment firmware
US9736567B2 (en) * 2014-09-29 2017-08-15 Qualcomm Incorporated Electronics interface for device headset jack

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1427394A (en) * 2002-04-09 2003-07-02 北京无限商机通信技术有限公司 Speech sound browsing network
CN1783212A (en) * 2004-10-29 2006-06-07 微软公司 System and method for converting text to speech
CN1937841A (en) * 2005-09-22 2007-03-28 三星电子株式会社 Method of receiving a call in a wireless terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040260551A1 (en) * 2003-06-19 2004-12-23 International Business Machines Corporation System and method for configuring voice readers using semantic analysis
CN101435832B (en) * 2008-11-28 2012-05-09 安徽南瑞中天电力电子有限公司 Method for reading three-charge rate and four-charge rate electrical energy meter of low voltage carrier wave meter reading collection terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1427394A (en) * 2002-04-09 2003-07-02 北京无限商机通信技术有限公司 Speech sound browsing network
CN1783212A (en) * 2004-10-29 2006-06-07 微软公司 System and method for converting text to speech
CN1937841A (en) * 2005-09-22 2007-03-28 三星电子株式会社 Method of receiving a call in a wireless terminal

Also Published As

Publication number Publication date
CN102752019A (en) 2012-10-24

Similar Documents

Publication Publication Date Title
CN108347716B (en) Bluetooth communication system and communication method
CN201860365U (en) Mobile phone device for deaf-mute
CN102394979A (en) Method for performing high-speed data transmission through communication earphone interface
CN102832968A (en) Method for performing communication between mobile phone and equipment by using audio interface
CN103167371A (en) Bluetooth headset with record storage function and vehicle with same
CN100477675C (en) Bluetooth handset being able to realize wireless audio output
CN205249440U (en) Take bluetooth headset of alternate form interface
CN102752019B (en) Data sending, receiving and transmitting method and system based on headset jack
CN110740208A (en) voice call recording method, earphone and call terminal
CN101072379A (en) Method for realizing voice short message
CN104038398A (en) Coal mine digital voice communication system based on CAN bus
CN105744424A (en) Earphone mode switching method, terminal and earphone
CN202512625U (en) Mobile payment terminating machine
CN105243036A (en) Signal conversion apparatus and method
CN201213284Y (en) Set-top box receiving and transmitting voice signal by wireless mode
CN205249438U (en) Take conversion interface&#39;s bluetooth headset
CN102256193B (en) Audio signal receiving device and audio signal transmission system
CN102376308A (en) Device and method for processing pulse-code modulation (PCM) digital signals
CN202424844U (en) External device used for emergency vehicle body
CN219644064U (en) Wireless microphone system supporting dual modes of receiving and transmitting
JP6176829B2 (en) Communication device and wireless communication module
CN202309709U (en) Big dipper externally-arranged interphone and big dipper voice communication system
CN201985982U (en) Mobile phone realizing data interaction through microphone and loudspeaker
CN201130992Y (en) Mobile communication terminal
CN112509590A (en) Audio transmission method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Data sending, receiving and transmitting method and system based on headset jack

Effective date of registration: 20160111

Granted publication date: 20150128

Pledgee: Shenzhen SME financing Company limited by guarantee

Pledgor: Shenzhen Iboxpay Information Technology Co.,Ltd.

Registration number: 2016990000017

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20171106

Granted publication date: 20150128

Pledgee: Shenzhen SME financing Company limited by guarantee

Pledgor: Shenzhen Iboxpay Information Technology Co.,Ltd.

Registration number: 2016990000017

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Guangdong Nanshan District street of Shenzhen city in Guangdong province 518000 software industry base in Shenzhen, fifth building room 505

Patentee after: Shenzhen box Mdt InfoTech Ltd

Address before: 518000 Guangdong Shenzhen city Futian District Huaqiang North Road deep spinning building B1005

Patentee before: Shenzhen Iboxpay Information Technology Co.,Ltd.