CN108243481A - Document transmission method and device - Google Patents

Document transmission method and device Download PDF

Info

Publication number
CN108243481A
CN108243481A CN201810054347.2A CN201810054347A CN108243481A CN 108243481 A CN108243481 A CN 108243481A CN 201810054347 A CN201810054347 A CN 201810054347A CN 108243481 A CN108243481 A CN 108243481A
Authority
CN
China
Prior art keywords
access information
audio signal
sending device
frequency
hot spot
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.)
Granted
Application number
CN201810054347.2A
Other languages
Chinese (zh)
Other versions
CN108243481B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810054347.2A priority Critical patent/CN108243481B/en
Publication of CN108243481A publication Critical patent/CN108243481A/en
Application granted granted Critical
Publication of CN108243481B publication Critical patent/CN108243481B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B11/00Transmission systems employing sonic, ultrasonic or infrasonic waves
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

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

Abstract

The present invention relates to a kind of document transmission method and devices, are related to wireless communication technology field.This method includes:Obtain the access information of the WLAN hot spot in sending device;Audio signal of the generation comprising the access information simultaneously plays the audio signal;After WLAN connection is established between the audio signal and receiving device, connected by the WLAN to the receiving device and send file;Matching and attended operation that user manually performs two equipment are not needed in the process, are simplified connection and are established process, shorten connection setup time, so as to improve file transmission efficiency.

Description

Document transmission method and device
Technical field
The present invention relates to wireless communication technology field, more particularly to a kind of document transmission method and device.
Background technology
It is mutual that file is carried out with the continuous development of mobile communication equipment, between different mobile communication equipment (such as mobile phone) It passes and has been increasingly becoming scene relatively conventional in routine work and life.
It in the related art, can between two mobile communication equipments when closer to the distance between two mobile communication equipments To carry out direct communication by short-distance wireless communication modes such as bluetooths, to transmit file between two mobile communication equipments. For example, for being communicated by bluetooth approach, the corresponding user of two mobile communication equipments opens respective movement respectively For Bluetooth function in communication equipment to scan the bluetooth equipment of surrounding, user manually selects other side from the list of devices scanned Equipment initiates matching, and in successful match and after establishing bluetooth connection, sender user selects from corresponding mobile communication equipment The file to be sent simultaneously clicks transmission, and the corresponding mobile communication equipment of recipient user receives this document by bluetooth connection.
However, before transmitting file by Bluetooth function in the relevant technologies, user is needed to manually perform Bluetooth matching operation, Matching step is more numerous and diverse, and consumes more match time, file is caused to transmit less efficient.
Invention content
An embodiment of the present invention provides a kind of document transmission method and devices, can be used for solving file in the relevant technologies and pass The problem of defeated less efficient, technical solution is as follows:
On the one hand, a kind of document transmission method is provided, in sending device, the method includes:
The access information of the WLAN hot spot in the sending device is obtained, the access information is identified including hot spot And access pin;
Generation includes the audio signal of the access information;
The audio signal is played, the audio signal accesses WLAN hot spot for receiving device;
After WLAN connection is established between the audio signal and receiving device, pass through the WLAN It connects to the receiving device and sends file.
On the other hand, a kind of document transmission method is provided, in receiving device, the method includes:
Acquire the audio signal that sending device plays;
Parsing obtains the access information of the WLAN hot spot in the sending device from the audio signal, described Access information includes hot spot mark and access pin;
The WLAN hot spot is accessed according to the access information, it is wireless between the sending device to establish LAN connection;
Receive the file that the sending device is sent by WLAN connection.
Another aspect provides a kind of file transfer means, in sending device, described device to include:
Access information acquisition module, for obtaining the access information of the WLAN hot spot in the sending device, institute It states access information and includes hot spot mark and access pin;
Audio signal generation module, for generating the audio signal for including the access information;
Playing module, for playing the audio signal, the audio signal accesses WLAN for receiving device Hot spot;
Sending module after being based on establishing WLAN connection between the audio signal and receiving device, passes through The WLAN connects to the receiving device and sends file.
Another aspect provides a kind of file transfer means, in receiving device, described device to include:
Acquisition module, for acquiring the audio signal of sending device broadcasting;
Parsing module, for parsing the WLAN hot spot obtained in the sending device from the audio signal Access information, the access information include hot spot mark and access pin;
AM access module, for accessing the WLAN hot spot according to the access information, to establish and the transmission WLAN connection between equipment;
Receiving module, for receiving the file that the sending device is sent by WLAN connection.
Another aspect provides a kind of computer equipment, and the computer equipment includes processor and memory, described to deposit Be stored at least one instruction, at least one section of program, code set or instruction set in reservoir, at least one instruction, it is described extremely Few one section of program, the code set or instruction set are loaded by the processor and are performed to realize above-mentioned document transmission method.
Another aspect provides a kind of computer readable storage medium, at least one finger is stored in the storage medium Enable, at least one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or Instruction set is loaded by processor and is performed to realize above-mentioned document transmission method.
Technical solution provided by the invention can include the following benefits:
Sending device obtains the access information of the WLAN hot spot in sending device, and generation includes the sound of access information Frequency signal simultaneously plays;After the completion of WLAN connection between sending device and receiving device is established, pass through wireless local Net connection sends file to receiving device;User is not needed in the process manually performs the matching of two equipment and connection behaviour Make, simplify connection and establish process, shorten connection setup time, so as to improve file transmission efficiency.
It should be understood that above general description and following detailed description are only exemplary and explanatory, not It can the limitation present invention.
Description of the drawings
Attached drawing herein is incorporated into specification and forms the part of this specification, shows the implementation for meeting the present invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is according to a kind of document transmission system composition figure shown in an exemplary embodiment;
Fig. 2 is the flow diagram transmitted according to a kind of file shown in an exemplary embodiment;
Fig. 3 is the flow diagram transmitted according to another file shown in an exemplary embodiment;
Fig. 4 is the flow chart according to a kind of document transmission method shown in an exemplary embodiment;
Fig. 5 is that a kind of file that embodiment illustrated in fig. 4 is related to sends operation chart;
Fig. 6 is the encoding and decoding schematic diagram for the Saloman encryption algorithm that embodiment illustrated in fig. 4 is related to;
Fig. 7 is that another file that embodiment illustrated in fig. 4 is related to sends operation chart;
Fig. 8 is a kind of pitch frequencies table that embodiment illustrated in fig. 4 is related to;
Fig. 9 is the character mapping table of a kind of odd bits that embodiment illustrated in fig. 4 is related to and even bit;
Figure 10 is a kind of character-frequency coding table that embodiment illustrated in fig. 4 is related to;
Figure 11 is the flow diagram that the sending device that embodiment illustrated in fig. 4 is related to plays access information;
Figure 12 is the audio-frequency information product process figure that embodiment illustrated in fig. 4 is related to;
Figure 13 is the access information reduction schematic diagram that embodiment illustrated in fig. 4 is related to;
Figure 14 is the flow diagram of receiving device parsing access information that embodiment illustrated in fig. 4 is related to;
Figure 15 is a kind of file transmission schematic diagram that embodiment illustrated in fig. 4 is related to;
Figure 16 is the flow chart transmitted according to a kind of file shown in an exemplary embodiment;
Figure 17 is the block diagram according to a kind of file transfer means shown in an exemplary embodiment;
Figure 18 is the block diagram according to a kind of file transfer means shown in an exemplary embodiment;
Figure 19 is the structure diagram according to the computer equipment shown in an exemplary embodiment.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
It please refers to Fig.1, is according to a kind of document transmission system composition figure shown in an exemplary embodiment.Such as Fig. 1 institutes Show, sending device 110 and receiving device 120 are included in this document Transmission system.
Wherein, sending device 110 is with WLAN (Wireless Local Area Networks, WLAN) heat The computer equipment of point function, for example, the sending device 110 can be smart mobile phone, tablet computer and E-book reader Mobile communication terminals are waited, alternatively, sending device 110 can also be that the intelligence such as smartwatch, Intelligent bracelet or intelligent glasses can Wearable device, alternatively, sending device 110 can also be laptop or the desktop PC for being equipped with wireless network card Wait PCs.
Receiving device 120 can be the computer equipment for having WLAN access function, for example, the sending device 110 can be the mobile communication terminals such as smart mobile phone, tablet computer and E-book reader, alternatively, sending device 110 also may be used To be the intelligent wearable device such as smartwatch, Intelligent bracelet or intelligent glasses, alternatively, sending device 110 can also be pen Remember this computer or the PCs such as the desktop PC of wireless network card are installed.
Wherein, sending device 110 and receiving device 120 can be same type of computer equipments, for example, sending device 110 and receiving device 120 can all be smart mobile phone.
Alternatively, sending device 110 and receiving device 120 can be different types of computer equipments, for example, sending device 110 can be smart mobile phone, and receiving device 120 can be tablet computer etc..
In addition, sending device 110 also has sound-playing function, for example, including loud speaker group in sending device 110 Part.
Receiving device 120 also has the function of sound collection, for example, including microphone assembly in receiving device 120.
Relative to the extensive use of bluetooth, infrared ray and NFC (Near Field Communication, near-field communication), Acoustic communication is usually ignored by people, and actually acoustic communication can be as a kind of fabulous handshake communication mode, not Need any connection or it is matched in the case of, an equipment can just carry out interactive with neighbouring equipment.
And WLAN hot spot function is one of common function in the computer equipment for support protocol of wireless local area network, When some device A opens WLAN hot spot function, nearby support that the equipment B of protocol of wireless local area network can be with access device A, and pass through device A and access network.In the process, device A is as a wireless access point, effect similar to router or Person's home gateway.
Based on above-mentioned acoustic communication and the characteristics of WLAN hot spot function, the embodiment of the present invention proposes one kind at two The scheme of file transmission is quickly carried out between equipment, the program can be as shown in Figures 2 and 3.
Fig. 2 is the flow diagram transmitted according to a kind of file shown in an exemplary embodiment.As shown in Fig. 2, this article In part transmission process, sending device side perform the step of can include:
Step 21, the access information of the WLAN hot spot in sending device is obtained.
Wherein, access information includes hot spot mark and access pin;Hot spot mark can be WLAN hot spot SSID (Service Set Identifier, service set).
Step 22, generation includes the audio signal of access information.
Step 23, playing audio signal, audio signal access WLAN hot spot for receiving device.
Step 24, after based on WLAN connection is established between audio signal and receiving device, pass through WLAN It connects to receiving device and sends file.
Wherein, WLAN connection is that receiving device accesses wireless office according to the access information carried in audio signal The connection established during the net hot spot of domain.
Fig. 3 is the flow diagram transmitted according to another file shown in an exemplary embodiment.It as shown in figure 3, should In document transmission process, receiving device side perform the step of can include:
Step 31, the audio signal that acquisition sending device plays.
Step 32, the access information for obtaining the WLAN hot spot in sending device is parsed from audio signal.
Step 33, WLAN hot spot, the wireless local between foundation and sending device are accessed according to access information Net connection.
Step 34, the file that sending device is sent by WLAN connection is received.
By above-mentioned Fig. 2 and scheme shown in Fig. 3, WLAN hot spot is established in sending device side, by sending device The mark of WLAN hot spot and password are played out by audio, receiving device collects the audio of sending device broadcasting Afterwards, by obtaining the mark and password of WLAN hot spot to the parsing of audio, and according to the mark of WLAN hot spot And password access WLAN hot spot, to establish the connection of the WLAN between sending device and receiving device, transmission is set It is standby that transmission file is connected by the WLAN between receiving device.
Through the embodiment of the present invention, it can realize that quick, stable, zero delivery file passes on the basis of acoustic communication Transmission scheme, you can to realize between multiple devices, in no internet, the situation of the communications conduits such as no bluetooth, infrared ray connection Lower progress file mutually passes, and do not need to the floating resources of consumption sending device and receiving device, it is not required that carries out cumbersome indigo plant The matching steps such as tooth connection are directly connected by establishing WLAN between acoustic communication triggering equipment, and style of writing of going forward side by side part passes It is defeated.
Above-mentioned Fig. 2 and scheme shown in Fig. 3, third-party application that can respectively by being installed in sending device and receiving device Program (Application, APP) performs.
Fig. 4 is the flow chart according to a kind of document transmission method shown in an exemplary embodiment.This document transmission method It can be applied in document transmission system shown in Fig. 1 carry out file transmission closely.As shown in figure 4, this document transmits Method can include the following steps:
Step 401, sending device obtains the access information of the WLAN hot spot in sending device.
Wherein, access information includes hot spot mark and access pin;Hot spot mark can be WLAN hot spot SSID, hot spot mark and access pin can be the WLAN hot spot functions that user pre-sets in sending device SSID and access pin.
Optionally, sending device obtains the WLAN heat in sending device when receiving the instruction for sending file The access information of point.
In embodiments of the present invention, when needing to send file to sending device, the corresponding user of sending device can be The operation for sending some file specified is performed in sending device, to send out the instruction for sending this document, at this point, sending device connects After receiving the instruction, you can to obtain the access informations such as the SSID of the WLAN hot spot in sending device and access pin.
Please refer to Fig. 5, it illustrates the present embodiments relate to a kind of file send operation chart, as shown in figure 5, The corresponding user a of sending device A need the file 1 in sending device A being sent to receiving device B, then user a operations, which are sent, sets Standby A shows file selection interface, and the select file 1 in file selection interface 50, sending device A are popped up in selection interface 50 Sending method choice box 51, after select file passes option 51a soon in sending method choice box 51, sending device A is user a The SSID of WLAN hot spot in sending device A and access pin can be retrieved as access information.
In embodiments of the present invention, sending device is when obtaining above-mentioned access information, it can be determined that in the sending device Whether WLAN hot spot function opens, if the WLAN hot spot function in sending device has turned on, directly acquires The access information of the WLAN hot spot function;If the WLAN hot spot function in sending device is not opened, send Equipment can open the WLAN hot spot function.
Wherein, when opening WLAN hot spot function, sending device can decide whether to have and automatically turn on wirelessly The permission (such as superuser right or root authority) of LAN hot spot function, if with WLAN hot spot is automatically turned on The permission of function, then sending device automatically turn on WLAN hot spot function;If without WLAN heat is automatically turned on The permission of point function, then sending device, which can be shown, guides interface, user to be guided to open the WLAN hot spot function; After opening WLAN hot spot function, sending device obtains the access information of the WLAN hot spot function.
In the whole flow process of the scheme shown in the embodiment of the present invention, the audio of the access information of WLAN hot spot Transmission and the digitlization decoding of audio-frequency information are a wherein crucial steps.The embodiment of the present invention can will be former by special algorithm Beginning data (i.e. access information) generate audio-frequency information, are then converted into sound wave by playing audio-frequency information, access information is sent out It is sent to neighbouring receiving device, after the audio-frequency information that neighbouring this section of receiving device uppick is especially handled, audio-frequency information is recorded System is got off, and audio data is reduced to initial data by corresponding decoding algorithm.The sonic transmissions mistake of above-mentioned access information Journey is see subsequent step.
Step 402, sending device encodes access information according to preset coding mode, the access after being encoded Information.
Optionally, access information is encoded according to preset coding mode, during access information after being encoded, Access information is converted into hexadecimal data by sending device;According to Reed Solomon Coding algorithm to hexadecimal data into Row coding, the information after being encoded.
Reed Solomon Coding (Reed-solomon codes), also known as Saloman encode, be a kind of forward error more Positive channel coding, and forward error corrigendum be a kind of technology of the controlling transmission mistake in simplex system, by together with Data send additional information and carry out Fault recovery, to improve data transmission success, to being produced by correction over-sampling data Raw multinomial is effective.
Scheme shown in the embodiment of the present invention carries out Saloman coding to the data of transmission, reduces the error code of transmission data Rate, prevent audio-frequency information play when interfered by external sound or due to equipment difference and caused by data transmission fault.
In embodiments of the present invention, initial data (i.e. above-mentioned access information) can be expressed as positive integer, wherein including heat Point title (i.e. SSID) and password.Since Solomon code is the coding of fixed length, each code word is a hexadecimal number, because This, in embodiments of the present invention, converts raw data into 16 binary datas first, and original evidence is being converted to hexadecimal Afterwards, the hexadecimal number of eight can be obtained.Initial data is positioned an int number by the embodiment of the present invention, is greatly improved Sonic transmissions and the success rate of identification, while reduce the complexity of Solomon code.
Since Saloman coding is a kind of channel coding of forward error corrigendum, cataloged procedure is first to more on multiple points Item formula seeks redundancy, is then transmitted or stored.After receiving device correctly receives enough points, encoded by Saloman Reverse process (decode), it is possible to restore original multinomial.
Please refer to Fig. 6, it illustrates the present embodiments relate to a kind of Saloman encryption algorithm encoding and decoding schematic diagram. As shown in Figure 6, it is assumed that source code 123ABCD, after the coding encrypting of Saloman, obtained redundant code is plus source code 123ABCDFEDCBA9, underscore part is redundant code.After transmission, 3 dislocation error codes, the number that receiving terminal receives are produced According to being turned into 12CAB7DFEECBA9, (underscore part is error code), after being decoded by Saloman, and can be by data convert For 123ABCDFEDCBA9, receiving device can correctly handling result (encode by way of example only, and non-genuine calculating above As a result).
Step 403, sending device is according to character-frequency coding table, in the access information after generating signal frequency and encoding The corresponding audio signal of each character.
Wherein, character-frequency coding table includes the correspondence between character and frequency.
Optionally, according to character-frequency coding table, generation signal frequency and each word in the access information after coding Before according with corresponding audio signal, sending device obtain audio broadcast mode, audio broadcast mode include it is mute broadcasting or Non-mute broadcasting, and obtain and the corresponding character of audio broadcast mode-frequency coding table.
Wherein, when audio broadcast mode is mute broadcasting, in the character-frequency coding table got, corresponding each character Frequency be in except the audio frequency range that human ear can be heard (also referred to as supersonic frequency or the flat rate of infrasonic sound);Audio plays When mode is non-mute broadcasting, the frequency of corresponding each character is within the audio frequency range that human ear can be heard.
In embodiments of the present invention, the audio signal that sending device plays, which could be provided as human ear, can hear audio signal (i.e. the frequency of audio signal is between 20Hz~20KHz) may be set to be audio signal (the i.e. audio letter that human ear can't hear Number frequency be less than 20Hz or more than 20KHz), to meet the needs of various scenes.
For example, by taking interface shown in fig. 5 as an example, please refer to Fig. 7, it illustrates the present embodiments relate to another kind text Part sends operation chart, as shown in fig. 7, in embodiments of the present invention, the corresponding user a of sending device A select boundary in file Select file 1 in face 50, and after select file passes option 51a soon in sending method choice box 51, sending device A is in file Pop up broadcast mode choice box 52 in selection interface 50, in the broadcast mode choice box 52 comprising mute play options 52a and Non-mute broadcasting 52b, when user a selects mute play options 52a, the frequency correspondence that sending device A acquisitions include is in human ear Character-frequency coding table except the audio frequency range that can be heard, conversely, as the non-mute broadcasting 52b of user's selection, hair Send character-frequency coding table within the device A audio frequency range that the frequency correspondence that acquisition includes can be heard in human ear.
For example, the selected as " non-mute broadcasting " (sound that i.e. human ear can be heard) with the corresponding user of sending device is Example, please refer to Fig. 8, it illustrates the present embodiments relate to a kind of pitch frequencies table.In embodiments of the present invention, Ke Yi 32 sound frequencies in the range of 20-20KHz are intercepted on pitch frequencies table, corresponding coding is treated as 32 kinds.Wherein, human ear The sound frequency that can be heard can be divided into bass, middle pitch and high pitch, in embodiments of the present invention, can choose treble portion+ 33 to+64 32 frequencies are as the frequency in character-frequency coding table.
In alternatively possible realization method, if selected as " mute broadcasting " (the i.e. people of the corresponding user of sending device The sound that ear is not heard), then 32 audios can be intercepted in the frequency of more than 20KHz as in character-frequency coding table Frequency.
Optionally, the first coding schedule and the second coding schedule, the corresponding frequency of the first coding schedule are included in character-frequency coding table Rate is higher than the corresponding frequency of the second coding schedule, alternatively, the corresponding frequency of the first coding schedule is less than the corresponding frequency of the second coding schedule, According to character-frequency coding table, during corresponding with access information after the coding audio signal of generation signal frequency, transmission is set For according to the first coding schedule, generation and corresponding first audio sub-signals of odd bits character in the access information after coding; According to the second coding schedule, generation and corresponding second audio sub-signals of even bit character in the access information after coding;And The combined crosswise of first audio sub-signals and the second audio sub-signals is retrieved as audio signal.
In order to improve the success rate of audio identification, the embodiment of the present invention employs the audio coding algorithms of odd even low-and high-frequency, Any one section of transmission data are converted into the alternate audio signal of frequency height, to improve antijamming capability.
For example, please refer to Fig. 9, it illustrates the present embodiments relate to a kind of odd bits and even bit character correspondence Relation table.As shown in figure 9, in access information in encoded, even bit directly corresponds to 0-f 16 numbers, letters, and odd number Position 16 letters of corresponding g-v.It, can be (original to above-mentioned transmission data 0123ABCDFEDCBA9 according to odd even low-and high-frequency coding schedule Data deficiencies 8, before mend 0) coding after, become:0h2iarctfudibq9.
Please refer to Fig.1 0, it illustrates the present embodiments relate to a kind of character-frequency coding table, the character-frequency 0~9 and a~v corresponds to a frequency in 32 frequencies respectively in coding schedule, according to character-frequency coding shown in Fig. 10 Table, the audio frequency (unit Hz) that can obtain each in 0h2iarctfudibq9 are as shown in table 1 below.
Data 0 h 2 i a r c t
Frequency 1760.0 4698.6 1975.5 4978.0 3136.0 8372.0 3520.0 9397.3
Data f u d i b q 9
Frequency 4186.0 9956.1 3729.3 4978.0 3322.4 7902.1 2960.0
Table 1
By appealing step process, after obtaining the corresponding frequency of each character, corresponding PCM is generated by the following formula (Pulse Code Modulation, pulse code modulation) audio data, i.e., above-mentioned audio signal:
Wherein, x is the subscript of sampling, if number of samples is 4096, then the value of x is exactly 0-4095, and y is to need to give birth to Into frequency value, such as the 1760.0Hz in table 1 above, S are the sample frequency of sending device, usually 44.1KHz, according to This formula, you can assignment is carried out to 4096 byte, so as to obtain such one section of PCM audio data.
Step 404, sending device playing audio signal, the audio signal that receiving device acquisition sending device plays.
After sending device obtains above-mentioned audio signal (i.e. above-mentioned PCM audio data), which can be inputted Into audio manager (such as Audio Track), the loud speaker in sending device is controlled to play out by audio manager, with Just receiving device acquires the audio signal.
Please refer to Fig.1 1, it illustrates the present embodiments relate to sending device play access information flow signal Figure.As shown in figure 11, user in sending device select file and click transmission (than in interface as shown in fig. 5 select text Part passes option soon) after, sending device creates WLAN hot spot, and hotspot name and password are generated audio, then pass through Loud speaker plays the audio of generation.
In order to avoid surrounding is other than receiving device, and the similary equipment acquisition hair with audio signal sample The audio signal of device plays is sent, in embodiments of the present invention, the audio that sending device plays can be acquired to receiving device and is believed Number the step of precondition is set, for example, when receiving device is in a certain designated state (for example showing some interface) or connects When receiving a certain specified operation (such as in screen a certain button by touch-control), the audio that above-mentioned acquisition sending device plays just is performed The step of signal.
For example, during the audio signal played in acquisition sending device, when receiving device shows specified interface, connect The audio signal that receiving unit acquisition sending device plays.
By taking sending device is above-mentioned sending device A as an example, when the corresponding user b of receiving device B want to receive file 1, Can be before sending device A play above-mentioned audio signal, user b opens the specified interface in receiving device B, the specified interface It can be some interface in specified application or may also mean that the arbitrary interface determined in application program, send During device A playing audio signal, receiving device B can acquire the audio signal.
Step 405, the frequency data of receiving device extraction audio signal.
In embodiments of the present invention, receiving device can extract frequency by way of Fourier transform from audio signal Data.
Step 406, receiving device is handled frequency data according to character-frequency coding table, connecing after being encoded Enter information, character-frequency coding table includes the correspondence between character and frequency.
For example, when sending device corresponds to table and character-frequency coding table according to above-mentioned Fig. 9 and character relation shown in Fig. 10 When carrying out the coding above-mentioned audio signal of acquisition, receiving device can also pass through above-mentioned Fig. 9 and character relation shown in Fig. 10 corresponds to Table and character-frequency coding table reversely compile, the access information after being encoded.
Step 407, receiving device is decoded the access information after coding according to preset coding mode, is accessed Information.
Optionally, the access information after coding is being decoded according to preset coding mode, when obtaining access information, Receiving device is decoded the access information after coding according to Reed Solomon Coding algorithm, obtains hexadecimal data, and Hexadecimal data is converted into access information.
Please refer to Fig.1 2 and Figure 13, wherein, Figure 12 show the present embodiments relate to audio-frequency information product process figure, Figure 13 show the present embodiments relate to access information restore schematic diagram.
As shown in figure 12, sending device side obtains the initial data of access information, and right first when sending access information Initial data carries out 16 system conversions, and carries out Saloman coding to the data after the conversion of 16 systems, the coding obtained to coding Access information afterwards carries out audio conversion, obtains audio signal (i.e. PCM audio data), and according to PCM audio data broadcasting sound Sound.
As shown in figure 13, the sound that microphone records are arrived in receiving device side carries out PCM decodings, and digitized sound obtains PCM audio data, and pass through Fourier transform pairs audio data and analyzed, the frequency data of this section of sound are finally obtained, into One step corresponds to table and character-frequency coding table according to above-mentioned character relation, and frequency data are converted into hexadecimal data, such as 12CAB7DFEECBA9, then hexadecimal data is decoded by Saloman, initial data (i.e. access information) is obtained, such as 123ABCD。
Step 408, receiving device accesses WLAN hot spot according to access information, is set with establishing sending device with reception WLAN connection between standby.
Please refer to Fig.1 4, it illustrates the present embodiments relate to receiving device parsing access information flow signal Figure.As shown in figure 14, after user's operation receiving device enters the reception page (i.e. above-mentioned specified interface), receiving device is begun listening for Audio, and the digitized audio frequency that will be listened to obtain hexadecimal data, and heat is obtained finally by being decoded to hexadecimal data Point title and password (i.e. access information).
Wherein, above-mentioned steps 402 establish the process connected for sending device and receiving device to step 408 by sound wave, WLAN hot spot is established by sending device first, and according to hotspot name, password generation audio and is played out;Reception is set After standby uppick audio, by digitized audio frequency, and hotspot name, password are obtained, and pass through and sent out in hotspot name and password connection The hot spot that equipment is sent to create.
Step 409, after the completion of the WLAN connection between sending device and receiving device is established, sending device is led to WLAN is crossed to connect to receiving device transmission file;Receiving device receives sending device and connects hair by the WLAN The file sent.
Optionally, after the completion of the WLAN connection between sending device and receiving device is established, pass through wireless office When domain net connection is to receiving device transmission file, sending device is connected based on WLAN, establishes the corresponding socket of file Socket interfaces connect, and pass through socket interface and connect to receiving device transmission file.
Please refer to Fig.1 5, it illustrates the present embodiments relate to a kind of file transmit schematic diagram.As shown in figure 15, it passes through After crossing above-mentioned audio data generation and two processes of decoding, mobile phone has correctly received hotspot name and password, and then carries out hot spot Connection.One can be then created after hot spot successful connection under WiFi and connects the Socket progress file biographies for sending and receiving end It is defeated.
In conclusion the method shown in the embodiment of the present invention, sending device obtains the WLAN heat in sending device The access information of point, audio signal of the generation comprising access information and broadcasting;It is wireless between sending device and receiving device After the completion of LAN connection is established, connected by WLAN to receiving device and send file;It does not need to use in the process Family manually performs the matching and attended operation of two equipment, simplifies connection and establishes process, shortens connection setup time, so as to Improve file transmission efficiency.
In addition, the scheme shown in the embodiment of the present invention, sending device carries out access information by Saloman encryption algorithm Coding, and the access information after coding is converted into audio signal, receiving device is connect according to the decoding of Saloman encryption algorithm Enter information, reduce the bit error rate of transmission data, improve the transmission accuracy of access information.
In addition, the scheme shown in the embodiment of the present invention, the access information after coding is converted into audio signal by sending device When, each character in the access information after coding is converted into the alternate audio signal of frequency height according to parity bit, to carry High anti-jamming capacity.
Figure 16 is the flow chart transmitted according to a kind of file shown in an exemplary embodiment.With in sending device and reception For some game installation file is transmitted between equipment, as shown in figure 16, transmission end (i.e. sending device) initially sets up wireless office Domain net hot spot, and by step 402 in above-mentioned Fig. 4 in the way of shown in step 404 sends hotspot name and close by sound wave Code, by step 404 in above-mentioned Fig. 4 in the way of shown in step 407, reception sound wave simultaneously extracts receiving terminal (i.e. receiving device) Hotspot name and password, and hot spot is connected with password according to the hotspot name extracted;Receiving terminal request transmission end sends file, Game installation file is sent to receiving terminal by transmission end by hot spot connection, and receiving terminal receives the game installation file.
Shown scheme through the embodiment of the present invention can solve problems with:
1) when can solve to forward by server, network speed is limited to, transmission speed is unstable, and big in transmission During file, a large amount of network flow can be consumed, the problem of cost is higher.
2) when can solve to transmit by bluetooth/infrared mode, transmission range it is short (maximum transmitted of general infrared ray away from From only 4 meters, the maximum transmission distance of bluetooth is 10 meters), the data transmission of long range is unsatisfactory for, and can also be by equipment difference The influence (such as the RF transmitter of red line line requirement equipment is aligned with each other) of angle, jitter and bluetooth/infrared The matching connection process of line is complicated, and the whole process from discovering device to successful match is required for manually being intervened, and flow is numerous Trivial, transmission rate is slow, and (the most fast transmission rate of red line line is 4Mbps, and the peak transfer rate of bluetooth 4.0 is 24Mbps, It is unsatisfactory for daily file transmission demand instantly) the problem of.
3) when can solve to transmit by NFC, transmission range only has several centimetres, is unsatisfactory for most daily demands, and most The problem of transmission rate of big 424kbit/s can not be used for transmitting big file.
The embodiment of the present invention is based on sound wave communication technology, realizes the quick transmission of file.The transport stream of the embodiment of the present invention Journey is simple, it is only necessary to which send button is hit in sending endpoint, and program connects and complete automatically transformation task, enormously simplifies cumbersome With process;The WIFI that the scheme of the embodiment of the present invention is finally based on hot spot carries out file transmission, and transmission range is long, and equipment exists Connection can be kept continuous in 100 meters of distance;The transmission rate of the scheme of the embodiment of the present invention is fast, and theoretically transmission rate can Up to 250Mbps, i.e., about 31MB/ seconds, the big file of 1GB, end of transmission only needed 3 minutes, fully meets daily big file and passes Defeated demand;The embodiment of the present invention directly carries out file transmission in equipment room, not consumption network flow.
The embodiment of the present invention creates a kind of completely new file, to user by number and the utilization of sound wave While bringing novel joyful experience, solving that current file transmission flow consumption is big, transmission range is near, transmission rate is slow etc. asks Topic.
Figure 17 is the block diagram according to a kind of file transfer means shown in an exemplary embodiment.This document transmits Device can be used in sending device, to perform all or part of step performed in Fig. 4 corresponding embodiments by sending device. This document transmitting device can include:
Access information acquisition module 1701, for obtaining the access of the WLAN hot spot in sending device letter Breath, the access information include hot spot mark and access pin;
Audio signal generation module 1702, for generating the audio signal for including the access information;
Playing module 1703, for playing the audio signal, the audio signal accesses wireless office for receiving device Domain net hot spot;
Sending module 1704, after being based on establishing WLAN connection between the audio signal and receiving device, It is connected by the WLAN to the receiving device and sends file.
Optionally, the audio signal generation module 1702, is specifically used for,
The access information is encoded according to preset coding mode, the access information after being encoded;
According to character-frequency coding table, signal frequency and each character phase in the access information after the coding are generated Corresponding audio signal, the character-frequency coding table include the correspondence between character and frequency.
Optionally, the access information is being encoded according to preset coding mode, the access letter after being encoded During breath, the audio signal generation module 1702 is specifically used for,
The access information is converted into hexadecimal data;
The hexadecimal data is encoded according to Reed Solomon Coding algorithm, the access letter after being encoded Breath.
Optionally, comprising the first coding schedule and the second coding schedule in the character-frequency coding table, according to character-frequency Rate coding schedule, during the corresponding audio signal of access information after generation signal frequency and the coding, the audio signal life Into module 1702, it is specifically used for,
According to first coding schedule, generation and the odd bits character in the access information after the coding corresponding the One audio sub-signals;
According to second coding schedule, generation and the even bit character in the access information after the coding corresponding the Two audio sub-signals;
The combined crosswise of first audio sub-signals and second audio sub-signals is retrieved as the audio signal.
Optionally, according to character-frequency coding table, generation signal frequency with it is each in the access information after the coding Before a corresponding audio signal of character, the audio signal generation module 1702 is additionally operable to,
Audio broadcast mode is obtained, the audio broadcast mode includes mute broadcasting or non-mute broadcasting;
It obtains and the corresponding character of the audio broadcast mode-frequency coding table.
Optionally, the sending module 1704, is specifically used for,
It is connected based on the WLAN, establishes the corresponding socket interface connection of the file;
It is connected by the socket interface to the receiving device and sends the file.
Optionally, the access information acquisition module 1701, is specifically used for,
When receiving the instruction for sending the file, the access of the WLAN hot spot in the sending device is obtained Information.
In conclusion the device shown in the embodiment of the present invention, obtains the access of the WLAN hot spot in sending device Information, audio signal of the generation comprising access information and broadcasting;WLAN between sending device and receiving device connects After the completion of connecing foundation, connected by WLAN to receiving device and send file;User is not needed in the process to hold manually The matching and attended operation of two equipment of row, simplify connection and establish process, shorten connection setup time, so as to improve text Part efficiency of transmission.
In addition, the scheme shown in the embodiment of the present invention, encodes access information by Saloman encryption algorithm, and will Access information after coding is converted into audio signal, reduces the bit error rate of transmission data, improves the transmission accuracy of access information.
In addition, the scheme shown in the embodiment of the present invention, when the access information after coding is converted into audio signal, will encode Each character in access information afterwards is converted into the alternate audio signal of frequency height according to parity bit, to improve anti-interference energy Power.
Figure 18 is the block diagram according to a kind of file transfer means shown in an exemplary embodiment.This document transmits Device can be used in receiving device, to perform all or part of step performed in Fig. 4 corresponding embodiments by receiving device. This document transmitting device can include:
Acquisition module 1801, for acquiring the audio signal of sending device broadcasting;
Parsing module 1802, for parsing the WLAN heat obtained in the sending device from the audio signal The access information of point, the access information include hot spot mark and access pin;
AM access module 1803, for accessing the WLAN hot spot according to the access information, with establish with it is described WLAN connection between sending device;
Receiving module 1804, for receiving the file that the sending device is sent by WLAN connection.
Optionally, the parsing module 1802, is specifically used for,
Extract the frequency data of the audio signal;
The frequency data are handled according to character-frequency coding table, the access information after being encoded, the word Symbol-frequency coding table includes the correspondence between character and frequency;
The access information after the coding is decoded according to preset coding mode, obtains the access information.
Optionally, the access information after the coding is being decoded according to preset coding mode, is being connect described in acquisition When entering information, the parsing module 1802 is specifically used for,
The access information after the coding is decoded according to Reed Solomon Coding algorithm, obtains hexadecimal number According to;
The hexadecimal data is converted into the access information.
Optionally, the acquisition module 1801, is specifically used for,
When the receiving device shows specified interface, the audio signal of acquisition sending device broadcasting.
In conclusion the device shown in the embodiment of the present invention, the audio signal that receiving device acquisition sending device plays, from Extract access information in audio signal, and the WLAN hot spot in sending device accessed according to access information, with establish with WLAN connection between sending device, and pass through WLAN connection and receive the file that sending device is sent; Matching and attended operation that user manually performs two equipment are not needed to during this, connection is simplified and establishes process, shorten Connection setup time, so as to improve file transmission efficiency.
Figure 19 is the structure diagram according to the computer equipment 1900 shown in an exemplary embodiment.The computer equipment 1900 can be user terminal, such as smart mobile phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player, laptop Or desktop computer.
In general, computer equipment 1900 includes:Processor 1901 and memory 1902.
Processor 1901 can include one or more processing cores, such as 4 core processors, 8 core processors etc..Place DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- may be used in reason device 1901 Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 1901 can also include primary processor and coprocessor, main Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state. In some embodiments, processor 1901 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 1901 can also wrap AI (Artificial Intelligence, artificial intelligence) processor is included, which is used to handle related machine learning Calculating operation.
Memory 1902 can include one or more computer readable storage mediums, which can To be non-transient.Memory 1902 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 1902 can Storage medium is read for storing at least one instruction, at least one instruction is for performed to realize this Shen by processor 1901 Please in the document transmission method that provides of embodiment of the method, the step of execution by sending device or receiving device.
In some embodiments, computer equipment 1900 is also optional includes:Peripheral device interface 1903 and at least one Peripheral equipment.It can be connected between processor 1901, memory 1902 and peripheral device interface 1903 by bus or signal wire. Each peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface 1903.Specifically, peripheral equipment Including:Radio circuit 1904, touch display screen 1905, camera 1906, voicefrequency circuit 1907, positioning component 1908 and power supply At least one of 1909.
Peripheral device interface 1903 can be used for I/O (Input/Output, input/output) is relevant at least one outer Peripheral equipment is connected to processor 1901 and memory 1902.In some embodiments, processor 1901, memory 1902 and periphery Equipment interface 1903 is integrated on same chip or circuit board;In some other embodiments, processor 1901, memory 1902 and peripheral device interface 1903 in any one or two can be realized on individual chip or circuit board, this implementation Example is not limited this.
Radio circuit 1904 is used to receive and emit RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal. Radio circuit 1904 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 1904 is by telecommunications Number being converted to electromagnetic signal is sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 1904 include:Antenna system, one or more amplifiers, tuner, oscillator, digital signal processor, compiles solution at RF transceivers Code chipset, user identity module card etc..Radio circuit 1904 can by least one wireless communication protocol come with it is other Terminal communicates.The wireless communication protocol includes but not limited to:WWW, Metropolitan Area Network (MAN), Intranet, each third generation mobile communication network (2G, 3G, 4G and 5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some implementations In example, it is related that radio circuit 1904 can also include NFC (Near Field Communication, wireless near field communication) Circuit, the application are not limited this.
Display screen 1905 is used to show UI (User Interface, user interface).The UI can include figure, text, Icon, video and its their arbitrary combination.When display screen 1905 is touch display screen, display screen 1905 also there is acquisition to exist The surface of display screen 1905 or the ability of the touch signal of surface.The touch signal can be used as control signal to be input to place Reason device 1901 is handled.At this point, display screen 1905 can be also used for providing virtual push button and/or dummy keyboard, it is also referred to as soft to press Button and/or soft keyboard.In some embodiments, display screen 1905 can be one, set the front panel of computer equipment 1900; In further embodiments, display screen 1905 can be at least two, be separately positioned on the different surfaces of computer equipment 1900 Or in foldover design;In still other embodiments, display screen 1905 can be flexible display screen, be arranged on computer equipment 1900 Curved surface on or fold plane on.Even, display screen 1905 can also be arranged to non-rectangle irregular figure namely abnormity Screen.LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic may be used in display screen 1905 Light-Emitting Diode, Organic Light Emitting Diode) etc. materials prepare.
CCD camera assembly 1906 is used to acquire image or video.Optionally, CCD camera assembly 1906 includes front camera And rear camera.In general, front camera is arranged on the front panel of terminal, rear camera is arranged on the back side of terminal. In some embodiments, rear camera at least two is that main camera, depth of field camera, wide-angle camera, focal length are taken the photograph respectively As any one in head, to realize main camera and background blurring function, main camera and wide are realized in the fusion of depth of field camera Pan-shot and VR (Virtual Reality, virtual reality) shooting functions or other fusions are realized in angle camera fusion Shooting function.In some embodiments, CCD camera assembly 1906 can also include flash lamp.Flash lamp can be monochromatic temperature flash of light Lamp or double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for Light compensation under different-colour.
Voicefrequency circuit 1907 can include microphone and loud speaker.Microphone is used to acquire the sound wave of user and environment, and It converts sound waves into electric signal and is input to processor 1901 and handled or be input to radio circuit 1904 to realize that voice leads to Letter.For stereo acquisition or the purpose of noise reduction, microphone can be multiple, be separately positioned on the difference of computer equipment 1900 Position.Microphone can also be array microphone or omnidirectional's acquisition type microphone.Loud speaker is then used to that processor 1901 will to be come from Or the electric signal of radio circuit 1904 is converted to sound wave.Loud speaker can be traditional wafer speaker or piezoelectricity is made pottery Porcelain loud speaker.When loud speaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, The sound wave that the mankind do not hear can be converted electrical signals to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 1907 can also include earphone jack.
Positioning component 1908 is used for the current geographic position of location Calculation machine equipment 1900, to realize navigation or LBS (Location Based Service, location based service).Positioning component 1908 can be the GPS based on the U.S. The Galileo system of (Global Positioning System, global positioning system), Chinese dipper system or Russia Positioning component.
Power supply 1909 is used to be powered for the various components in computer equipment 1900.Power supply 1909 can be exchange Electricity, direct current, disposable battery or rechargeable battery.When power supply 1909 includes rechargeable battery, which can be with It is wired charging battery or wireless charging battery.Wired charging battery is the battery to be charged by Wireline, and wireless charging is electric Pond is the battery to be charged by wireless coil.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, computer equipment 1900 further include there are one or multiple sensors 1910.This or more A sensor 1910 includes but not limited to:Acceleration transducer 1911, pressure sensor 1913, refers to gyro sensor 1912 Line sensor 1914, optical sensor 1915 and proximity sensor 1916.
Acceleration transducer 1911 can be detected in three reference axis of the coordinate system established with computer equipment 1900 Acceleration magnitude.For example, acceleration transducer 1911 can be used for detecting component of the acceleration of gravity in three reference axis.Place The acceleration of gravity signal that device 1901 can be acquired according to acceleration transducer 1911 is managed, control touch display screen 1905 is with transverse direction View or longitudinal view carry out the display of user interface.Acceleration transducer 1911 can be also used for game or the movement of user The acquisition of data.
Gyro sensor 1912 can detect body direction and the rotational angle of computer equipment 1900, gyro sensors Device 1912 can cooperate with acquisition user to act the 3D of computer equipment 1900 with acceleration transducer 1911.Processor 1901 According to the data that gyro sensor 1912 acquires, can implement function such as:Action induction (such as the tilt operation according to user To change UI), shooting when image stabilization, game control and inertial navigation.
Pressure sensor 1913 can be arranged under the side frame of computer equipment 1900 and/or touch display screen 1905 Layer.When pressure sensor 1913 is arranged on the side frame of computer equipment 1900, user can be detected to computer equipment 1900 gripping signal, the gripping signal acquired by processor 1901 according to pressure sensor 1913 carry out right-hand man's identification or fast Victory operation.When pressure sensor 1913 is arranged on the lower floor of touch display screen 1905, by processor 1901 according to user to touching The pressure operation of display screen 1905 is touched, realizes and the operability control on UI interfaces is controlled.Operability control includes At least one of button control, scroll bar control, icon control, menu control.
Fingerprint sensor 1914 is used to acquire the fingerprint of user, is collected by processor 1901 according to fingerprint sensor 1914 Fingerprint recognition user identity, alternatively, by fingerprint sensor 1914 according to the identity of collected fingerprint recognition user.Knowing When the identity for not going out user is trusted identity, the user is authorized to perform relevant sensitive operation, sensitivity behaviour by processor 1901 Work includes solving lock screen, checks encryption information, downloads software, payment and change setting etc..Fingerprint sensor 1914 can be set Put the front, the back side or side of computer equipment 1900.When being provided with physical button or manufacturer Logo on computer equipment 1900 When, fingerprint sensor 1914 can be integrated with physical button or manufacturer Logo.
Optical sensor 1915 is used to acquire ambient light intensity.In one embodiment, processor 1901 can be according to light The ambient light intensity that sensor 1915 acquires is learned, controls the display brightness of touch display screen 1905.Specifically, work as ambient light intensity When higher, the display brightness of touch display screen 1905 is turned up;When ambient light intensity is relatively low, the aobvious of touch display screen 1905 is turned down Show brightness.In another embodiment, the ambient light intensity that processor 1901 can also be acquired according to optical sensor 1915, is moved State adjusts the acquisition parameters of CCD camera assembly 1906.
Proximity sensor 1916, also referred to as range sensor are generally arranged at the front panel of computer equipment 1900.Close to biography Sensor 1916 is used to acquire the distance between user and the front of computer equipment 1900.In one embodiment, it is passed when close When sensor 1916 detects that the distance between user and the front of computer equipment 1900 taper into, controlled by processor 1901 Touch display screen 1905 is switched to breath screen state from bright screen state;When proximity sensor 1916 detects user and computer equipment When the distance between 1900 front becomes larger, touch display screen 1905 is controlled to be switched to from breath screen state by processor 1901 Bright screen state.
It will be understood by those skilled in the art that the structure shown in Figure 19 does not form the limit to computer equipment 1900 It is fixed, it can include either combining certain components or using different component arrangements than illustrating more or fewer components.
In one exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing is additionally provided, Such as the memory including at least one instruction, at least one section of program, code set or instruction set, above-mentioned at least one instruction, extremely Few one section of program, code set or instruction set can be performed as processor to complete in the method shown in above-mentioned embodiment illustrated in fig. 4, by The all or part of step that sending device or receiving device perform.For example, the non-transitory computer-readable storage medium Matter can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or Person's adaptive change follows the general principle of the present invention and including undocumented common knowledge in the art of the invention Or conventional techniques.Description and embodiments are considered only as illustratively, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is only limited by appended claim.

Claims (15)

1. a kind of document transmission method, which is characterized in that in sending device, the method includes:
The access information of the WLAN hot spot in the sending device is obtained, the access information includes hot spot and identifies and connect Enter password;
Generation includes the audio signal of the access information;
The audio signal is played, the audio signal accesses WLAN hot spot for receiving device;
After WLAN connection is established between the audio signal and receiving device, connected by the WLAN File is sent to the receiving device.
2. according to the method described in claim 1, it is characterized in that, described generate includes the audio signal of the access information, Including:
The access information is encoded according to preset coding mode, the access information after being encoded;
According to character-frequency coding table, generation signal frequency is corresponding with each character in the access information after the coding Audio signal, the character-frequency coding table includes correspondence between character and frequency.
3. according to the method described in claim 2, it is characterized in that, it is described according to preset coding mode to the access information It is encoded, the access information after being encoded, including:
The access information is converted into hexadecimal data;
The hexadecimal data is encoded according to Reed Solomon Coding algorithm, the access information after being encoded.
4. according to the method described in claim 2, it is characterized in that, the first coding schedule is included in the character-frequency coding table It is described according to character-frequency coding table with the second coding schedule, generation signal frequency with it is each in the access information after the coding A corresponding audio signal of character, including:
According to first coding schedule, generation and corresponding first sound of odd bits character in the access information after the coding Frequency subsignal;
According to second coding schedule, generation and corresponding second sound of even bit character in the access information after the coding Frequency subsignal;
The combined crosswise of first audio sub-signals and second audio sub-signals is retrieved as audio signal.
It is 5. according to the method described in claim 2, it is characterized in that, described according to character-frequency coding table, generation signal frequency Before the corresponding audio signal of each character in the access information after the coding, further include:
Audio broadcast mode is obtained, the audio broadcast mode includes mute broadcasting or non-mute broadcasting;
It obtains and the corresponding character of the audio broadcast mode-frequency coding table.
6. method according to any one of claims 1 to 5, which is characterized in that wireless in the acquisition sending device The access information of LAN hot spot, including:
When receiving the instruction for sending the file, the access letter of the WLAN hot spot in the sending device is obtained Breath.
7. a kind of document transmission method, which is characterized in that in receiving device, the method includes:
Acquire the audio signal that sending device plays;
Parsing obtains the access information of the WLAN hot spot in the sending device, the access from the audio signal Information includes hot spot mark and access pin;
The WLAN hot spot is accessed according to the access information, to establish the wireless local between the sending device Net connection;
Receive the file that the sending device is sent by WLAN connection.
8. the method according to the description of claim 7 is characterized in that the parsing from the audio signal obtains the transmission The access information of WLAN hot spot in equipment, including:
Extract the frequency data of the audio signal;
The frequency data are handled according to character-frequency coding table, the access information after being encoded, the character- Frequency coding table includes the correspondence between character and frequency;
The access information after the coding is decoded according to preset coding mode, obtains the access information.
9. method according to claim 7 or 8, which is characterized in that the audio signal that the acquisition sending device plays, packet It includes:
When the receiving device shows specified interface, the audio signal of acquisition sending device broadcasting.
10. a kind of file transfer means, which is characterized in that in sending device, described device to include:
Access information acquisition module, it is described to connect for obtaining the access information of the WLAN hot spot in the sending device Enter information and include hot spot mark and access pin;
Audio signal generation module, for generating the audio signal for including the access information;
Playing module, for playing the audio signal, the audio signal accesses WLAN hot spot for receiving device;
Sending module, after being based on establishing WLAN connection between the audio signal and receiving device, by described WLAN connects to the receiving device and sends file.
11. a kind of file transfer means, which is characterized in that in receiving device, described device to include:
Acquisition module, for acquiring the audio signal of sending device broadcasting;
Parsing module, for parsing the access for obtaining the WLAN hot spot in the sending device from the audio signal Information, the access information include hot spot mark and access pin;
AM access module, for accessing the WLAN hot spot according to the access information, to establish and the sending device Between WLAN connection;
Receiving module, for receiving the file that the sending device is sent by WLAN connection.
12. a kind of computer equipment, which is characterized in that the computer equipment includes processor and memory, the memory In be stored at least one instruction, at least one section of program, code set or instruction set, at least one instruction, described at least one Duan Chengxu, the code set or instruction set are loaded by the processor and are performed to realize as described in claim 1 to 6 is any Document transmission method.
13. a kind of computer equipment, which is characterized in that the computer equipment includes processor and memory, the memory In be stored at least one instruction, at least one section of program, code set or instruction set, at least one instruction, described at least one Duan Chengxu, the code set or instruction set are loaded by the processor and are performed to realize as described in claim 7 to 9 is any Document transmission method.
14. a kind of computer readable storage medium, which is characterized in that at least one instruction, extremely is stored in the storage medium Few one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or the instruction Collection is loaded by processor and is performed to realize the document transmission method as described in claim 1 to 6 is any.
15. a kind of computer readable storage medium, which is characterized in that at least one instruction, extremely is stored in the storage medium Few one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or the instruction Collection is loaded by processor and is performed to realize the document transmission method as described in claim 7 to 9 is any.
CN201810054347.2A 2018-01-19 2018-01-19 File transmission method and device Active CN108243481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810054347.2A CN108243481B (en) 2018-01-19 2018-01-19 File transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810054347.2A CN108243481B (en) 2018-01-19 2018-01-19 File transmission method and device

Publications (2)

Publication Number Publication Date
CN108243481A true CN108243481A (en) 2018-07-03
CN108243481B CN108243481B (en) 2021-02-23

Family

ID=62699555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810054347.2A Active CN108243481B (en) 2018-01-19 2018-01-19 File transmission method and device

Country Status (1)

Country Link
CN (1) CN108243481B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109302698A (en) * 2018-08-27 2019-02-01 优视科技新加坡有限公司 Near-field Data moving method and its device
CN109451594A (en) * 2018-11-12 2019-03-08 北京旷视科技有限公司 Data transmission method, device and storage medium
CN110049480A (en) * 2019-05-23 2019-07-23 深圳云里物里科技股份有限公司 A kind of authentication method and relevant apparatus of bluetooth equipment
CN111465005A (en) * 2020-03-30 2020-07-28 维沃移动通信有限公司 Hotspot sharing method and electronic equipment
CN111970558A (en) * 2020-10-19 2020-11-20 深圳乐播科技有限公司 Screen projection method, device, equipment and storage medium based on sound wave communication
CN112073888A (en) * 2020-08-06 2020-12-11 深圳市天视通技术有限公司 Audio testing method, system, electronic equipment and storage medium
CN113849241A (en) * 2020-06-10 2021-12-28 Oppo(重庆)智能科技有限公司 Audio playing control method, intelligent watch and device with storage function
CN113873447A (en) * 2021-09-26 2021-12-31 展讯通信(天津)有限公司 Fast transmission method and device, electronic equipment and storage medium
CN115297108A (en) * 2022-08-11 2022-11-04 青岛美迪康数字工程有限公司 Diagnosis and treatment quality control file transmission method and device based on piano syllables

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136197A (en) * 2007-10-16 2008-03-05 得理微电子(上海)有限公司 Digital reverberation processor based on time-varying delay-line
CN103166681A (en) * 2013-03-13 2013-06-19 北京搜狗科技发展有限公司 Information transmission method and system in short-distance scene
CN103778561A (en) * 2012-10-23 2014-05-07 腾讯科技(深圳)有限公司 Social interaction method and system
CN104158597A (en) * 2014-07-23 2014-11-19 深圳市揽胜科技有限公司 Method and system for configuring WIFI network product to be connected to router
WO2015020835A2 (en) * 2013-08-07 2015-02-12 1 Oak Technologies, LLC Electronic payment transponder
CN104717601A (en) * 2014-08-22 2015-06-17 深圳市智美达科技有限公司 Wireless network login method and system of wireless monitoring device
CN104796888A (en) * 2015-03-19 2015-07-22 北京宇音天下科技有限公司 Method for connecting WI-FI network by intelligent hardware terminal based on sound waves and system for realizing same
CN105722183A (en) * 2016-03-18 2016-06-29 深圳市轱辘软件开发有限公司 Sharing method and apparatus for Wi-Fi (wireless fidelity) link information
CN106304078A (en) * 2016-08-12 2017-01-04 美的智慧家居科技有限公司 The method and apparatus of home appliance access network
CN106411849A (en) * 2016-08-30 2017-02-15 王竞 Network access information sharing method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136197A (en) * 2007-10-16 2008-03-05 得理微电子(上海)有限公司 Digital reverberation processor based on time-varying delay-line
CN103778561A (en) * 2012-10-23 2014-05-07 腾讯科技(深圳)有限公司 Social interaction method and system
CN103166681A (en) * 2013-03-13 2013-06-19 北京搜狗科技发展有限公司 Information transmission method and system in short-distance scene
WO2015020835A2 (en) * 2013-08-07 2015-02-12 1 Oak Technologies, LLC Electronic payment transponder
CN104158597A (en) * 2014-07-23 2014-11-19 深圳市揽胜科技有限公司 Method and system for configuring WIFI network product to be connected to router
CN104717601A (en) * 2014-08-22 2015-06-17 深圳市智美达科技有限公司 Wireless network login method and system of wireless monitoring device
CN104796888A (en) * 2015-03-19 2015-07-22 北京宇音天下科技有限公司 Method for connecting WI-FI network by intelligent hardware terminal based on sound waves and system for realizing same
CN105722183A (en) * 2016-03-18 2016-06-29 深圳市轱辘软件开发有限公司 Sharing method and apparatus for Wi-Fi (wireless fidelity) link information
CN106304078A (en) * 2016-08-12 2017-01-04 美的智慧家居科技有限公司 The method and apparatus of home appliance access network
CN106411849A (en) * 2016-08-30 2017-02-15 王竞 Network access information sharing method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109302698A (en) * 2018-08-27 2019-02-01 优视科技新加坡有限公司 Near-field Data moving method and its device
WO2020044084A1 (en) * 2018-08-27 2020-03-05 优视科技新加坡有限公司 Near-field data migration method and apparatus thereof
CN109451594A (en) * 2018-11-12 2019-03-08 北京旷视科技有限公司 Data transmission method, device and storage medium
CN110049480A (en) * 2019-05-23 2019-07-23 深圳云里物里科技股份有限公司 A kind of authentication method and relevant apparatus of bluetooth equipment
CN111465005A (en) * 2020-03-30 2020-07-28 维沃移动通信有限公司 Hotspot sharing method and electronic equipment
WO2021197235A1 (en) * 2020-03-30 2021-10-07 维沃移动通信有限公司 Hotspot sharing method and electronic device
CN113849241A (en) * 2020-06-10 2021-12-28 Oppo(重庆)智能科技有限公司 Audio playing control method, intelligent watch and device with storage function
CN112073888A (en) * 2020-08-06 2020-12-11 深圳市天视通技术有限公司 Audio testing method, system, electronic equipment and storage medium
CN111970558A (en) * 2020-10-19 2020-11-20 深圳乐播科技有限公司 Screen projection method, device, equipment and storage medium based on sound wave communication
CN113873447A (en) * 2021-09-26 2021-12-31 展讯通信(天津)有限公司 Fast transmission method and device, electronic equipment and storage medium
CN115297108A (en) * 2022-08-11 2022-11-04 青岛美迪康数字工程有限公司 Diagnosis and treatment quality control file transmission method and device based on piano syllables
CN115297108B (en) * 2022-08-11 2023-08-25 青岛美迪康数字工程有限公司 Diagnosis and treatment quality control file transmission method and device based on piano syllables

Also Published As

Publication number Publication date
CN108243481B (en) 2021-02-23

Similar Documents

Publication Publication Date Title
CN108243481A (en) Document transmission method and device
US10452349B2 (en) Electronic device and operation control method therefor
US10405081B2 (en) Intelligent wireless headset system
US8126157B2 (en) Apparatus and method for sharing contents via headphone set
US10771877B2 (en) Dual earpieces for same ear
US20130262687A1 (en) Connecting a mobile device as a remote control
WO2021051986A1 (en) Method for establishing connection between apparatuses, and electronic device
WO2017185711A1 (en) Method, apparatus and system for controlling smart device, and storage medium
WO2021114952A1 (en) Data processing method, terminal device, bluetooth device, and storage medium
CN111373713B (en) Message transmission method and device
CN106936987B (en) Method and device capable of identifying voice source of Bluetooth headset
WO2017181365A1 (en) Earphone channel control method, related apparatus, and system
CN108922537B (en) Audio recognition method, device, terminal, earphone and readable storage medium
WO2021104114A1 (en) Method for providing wireless fidelity (wifi) network access service, and electronic device
US20050186993A1 (en) Communication apparatus for playing sound signals
CN110060675B (en) Method and equipment for waking up sound box
WO2020133797A1 (en) Terminal data transmission method and device, and storage medium
WO2021147718A1 (en) Audio transmission method and electronic device
JP2014512154A (en) Encryption using real world objects
US20180356881A1 (en) Pairing of wireless earpiece to phone or other device
CN107590770A (en) Image obscures encryption method, mobile terminal and storage medium
CN108134736A (en) Colonization method and device
CN104091606B (en) A kind of control method for playing back, and device
US20240056720A1 (en) Method for outputting audio signal, and electronic device for performing same
US20180359556A1 (en) Pairing of wireless earpiece to selected device based on head movement to identify device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant