CN110875783A - Ultrasonic communication method - Google Patents

Ultrasonic communication method Download PDF

Info

Publication number
CN110875783A
CN110875783A CN201811022773.4A CN201811022773A CN110875783A CN 110875783 A CN110875783 A CN 110875783A CN 201811022773 A CN201811022773 A CN 201811022773A CN 110875783 A CN110875783 A CN 110875783A
Authority
CN
China
Prior art keywords
communication method
timer
signal
ultrasonic
value
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.)
Pending
Application number
CN201811022773.4A
Other languages
Chinese (zh)
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.)
Suzhou Difende Internet Of Things Technology Co Ltd
Original Assignee
Suzhou Difende Internet Of Things 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 Suzhou Difende Internet Of Things Technology Co Ltd filed Critical Suzhou Difende Internet Of Things Technology Co Ltd
Priority to CN201811022773.4A priority Critical patent/CN110875783A/en
Publication of CN110875783A publication Critical patent/CN110875783A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B11/00Transmission systems employing sonic, ultrasonic or infrasonic waves

Landscapes

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

Abstract

The invention discloses an ultrasonic communication method, which adopts 12000Hz sound frequency as carrier wave, and modulates the code in an amplitude modulation mode, firstly, the byte to be sent is coded according to the preset rule at a signal transmitting end, and the coded signal is played out in an ultrasonic mode through a loudspeaker; then, the receiving end carries out band-pass filtering, amplification, demodulation and low-pass filtering on the received modulated signal in sequence to restore the coded signal and decode the coded signal. A communication mode based on sound waves is developed by utilizing an audio power amplifier of a mobile phone, namely, a mode of modulating information to sound frequencies for transmission is adopted, and the mode is convenient to use and saves cost. The method is suitable for network access setting of new intelligent home network access equipment, and is simple and stable and reliable in data transmission.

Description

Ultrasonic communication method
Technical Field
The invention belongs to the technical field of communication, and particularly relates to an ultrasonic communication method.
Background
Under the trends of urbanization, housing estate and intellectualization, the internet of things smart home has huge market potential. At present, compared with developed countries, the urbanization proportion of China is still low, and the urbanization rate of China still has a rising space. China actively promotes the urbanization process, guides population to flow reasonably and orderly, further strengthens the construction of urban infrastructure, promotes the comprehensive bearing capacity of cities, and further improves the urbanization level. Therefore, the smart home has a wide prospect both under the tide of the Internet of things and in the construction of smart cities, and has huge market potential.
The current internet of things technology is a technology with relatively high heat, smart homes based on the internet of things are developing towards functions of wireless remote control, multimedia control, high-speed data transmission and the like, and key technologies of the technology are home controllers with high compatibility and home networks meeting information transmission requirements. At present, a transmission network mostly adopts a comprehensive wiring technology, so that the application places of the system are limited, and the cost is higher. A flexible and convenient intelligent home system is constructed in a wireless mode, and becomes a current research hotspot.
However, in the field of smart home, data transmission modes of infrared, bluetooth and WIFI are mostly adopted, and such a mode has many advantages in the application process, but in the configuration process of new equipment accessing to the network, there are many inconveniences, and during the configuration of accessing to the network, a point-to-point mode is adopted, and a sending end needs to disconnect from the networking equipment, and can configure the new equipment, so that the problems of low configuration efficiency and easy occurrence of errors exist. The new intelligent electrical appliance is not only inconvenient but also increases the equipment cost in the configuration process.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the ultrasonic communication method is provided, the ultrasonic communication is applied to network access configuration of new intelligent household equipment or modification control of original equipment data in the network, and the problems of low network distribution efficiency and poor accuracy of the communication mode in the prior art are solved.
The invention adopts the following technical scheme for solving the technical problems:
an ultrasonic communication method adopts 12000Hz sound frequency as carrier wave, and adopts amplitude modulation mode to modulate code, which comprises the following steps:
firstly, coding bytes to be sent at a signal transmitting end according to a preset rule, and playing coded signals in an ultrasonic mode through a loudspeaker;
then, the receiving end carries out band-pass filtering, amplification, demodulation and low-pass filtering on the received modulated signal in sequence to restore the coded signal and decode the coded signal.
The preset coding rule is as follows:
the high level of n periods and the low level of n periods represent coding '0';
the high level of n cycles and the low level of 2n cycles represent the code '1';
the high level of n cycles and the low level of greater than or equal to 3n cycles represents the start of a new byte, where n is a positive integer.
n>=3。
The coded signal is played by calling a sound card to drive, and modulated ultrasonic waves are generated.
The coded signal is a char type array.
After receiving the ultrasonic wave, the receiving end obtains a coding signal through processing, outputs the coding signal to an IO port of the processor, and resets the timer after the processor stores the value of the timer at the moment on the rising edge of the IO port and times again;
and the receiving end decodes the received coded signal according to the value of the timer.
The rules for decoding at the receiving end are:
the code value is 0 when the value of the timer <2.5nT, 1 when the value of the timer <3.5nT, and the start of a new byte when the value of the timer >3.5nT, where T is the period of the sound wave.
The transmitting terminal is an audio power amplifier module of a mobile phone or a flat plate.
Compared with the prior art, the invention has the following beneficial effects:
1. a communication mode based on sound waves is developed by utilizing an audio power amplifier of a mobile phone, namely, a mode of modulating information to sound frequencies for transmission is adopted, and the mode is convenient to use and saves cost.
2. And a simple and clear data communication protocol is adopted, so that the data transmission efficiency and accuracy are improved, and resources occupied in the encoding and decoding process are reduced.
3. The ultrasonic communication method is suitable for the network access setting of the new network access equipment of the intelligent home, the original network of the handheld terminal is not required to be disconnected, the parameters can be transmitted to the new equipment, the method is simple, and the data transmission is stable and reliable.
Drawings
FIG. 1 is a waveform diagram of an original sound signal according to the present invention.
Fig. 2 is a waveform diagram of the signal amplified and detected by the receiving end of the present invention.
FIG. 3 is a diagram of the encoded waveforms restored by low pass filtering according to the present invention.
Detailed Description
The structure and operation of the present invention will be further described with reference to the accompanying drawings.
The technical scheme of the invention mainly aims at the network access configuration consideration of the new intelligent household equipment, and the specific thought is as follows: a newly bought intelligent electric appliance can be accessed to a local WIFI network only by configuring parameters, and the configuration process is realized by adopting the traditional Bluetooth technology and the infrared technology, so that the inconvenience is brought and the equipment cost is increased. At present, almost one mobile phone is used, and the scheme is that a communication mode based on sound waves, namely a mode of modulating information to sound frequencies for transmission, is developed based on an audio power amplifier of the mobile phone, so that the mode is convenient to use and saves cost.
The specific technical scheme is as follows:
an ultrasonic communication method adopts 12000Hz sound frequency as carrier wave, and adopts amplitude modulation mode to modulate code, which comprises the following steps:
firstly, coding bytes to be sent at a signal transmitting end according to a preset rule, and playing coded signals in an ultrasonic mode through a loudspeaker;
then, the receiving end carries out band-pass filtering, amplification, demodulation and low-pass filtering on the received modulated signal in sequence to restore the coded signal and decode the coded signal.
The preset coding rule is as follows:
the high level of n periods and the low level of n periods represent coding '0';
the high level of n cycles and the low level of 2n cycles represent the code '1';
the high level of n cycles and the low level of greater than or equal to 3n cycles represents the start of a new byte, where n is a positive integer.
The rules for decoding at the receiving end are:
the code value is 0 when the value of the timer <2.5nT, 1 when the value of the timer <3.5nT, and the start of a new byte when the value of the timer >3.5nT, where T is the period of the sound wave.
n is a positive integer of 3 or more.
In the first embodiment, as shown in fig. 1, fig. 2, and fig. 3:
an ultrasonic communication method adopts 12000Hz sound frequency as carrier wave, and adopts amplitude modulation mode to modulate code, which comprises the following steps:
step 1, setting a high level of 3 periods and a low level of 3 periods to represent coding '0', a high level of 3 periods and a low level of 6 periods to represent coding '1', a high level of 3 periods and a low level greater than or equal to 9 periods to represent the start of a new byte;
step 2, the transmitting end applies the coding rule set in the step 1 to code the bytes to be transmitted, and the coded signals are char type arrays;
step 3, calling a sound card drive to play the coded signals through a loudspeaker to generate modulated ultrasonic waves;
step 4, the receiving end carries out band-pass filtering on the received ultrasonic waves;
step 5, amplifying and detecting the signal after the band-pass filtering;
step 6, performing low-pass filtering processing on the amplified and detected signals to obtain square wave signals, and restoring coded char array signals;
step 7, the receiving end outputs the coded signal to an IO port of the processor, and on the rising edge of the IO port, the processor resets the timer after saving the value of the timer at the moment and times again;
and 8, decoding the received coded signal by the receiving end according to the value of the timer, wherein the code value is 0 when the value of the timer is less than 7.5T, the code value is 1 when the value of the timer is less than 10.5T, and the code value is the start of a new byte when the value of the timer is more than 10.5T, wherein T is the period of the sound wave.
The transmitting terminal is an audio power amplifier module of a mobile phone or a flat plate.
The transmitting end is a mobile phone and a flat audio power amplifier module, and the receiving end is newly-networked intelligent home equipment.
In a second embodiment of the present invention, a second,
an ultrasonic communication method adopts 12000Hz sound frequency as carrier wave, and adopts amplitude modulation mode to modulate code, which comprises the following steps:
step 1, setting a high level of 4 periods and a low level of 4 periods to represent coding '0', a high level of 4 periods and a low level of 8 periods to represent coding '1', a high level of 4 periods and a low level greater than or equal to 12 periods to represent the start of a new byte;
step 2, the transmitting end applies the coding rule set in the step 1 to code the bytes to be transmitted, and the coded signals are char type arrays;
step 3, calling a sound card drive to play the coded signals through a loudspeaker to generate modulated ultrasonic waves;
step 4, the receiving end carries out band-pass filtering on the received ultrasonic waves;
step 5, amplifying and detecting the signal after the band-pass filtering;
step 6, performing low-pass filtering processing on the amplified and detected signals to obtain square wave signals, and restoring coded char array signals;
step 7, the receiving end outputs the coded signal to an IO port of the processor, and on the rising edge of the IO port, the processor resets the timer after saving the value of the timer at the moment and times again;
and 8, decoding the received coded signal by the receiving end according to the value of the timer, wherein the code value is 0 when the value of the timer is less than 10T, the code value is 1 when the value of the timer is less than 14T, and the code value is the start of a new byte when the value of the timer is greater than 14T, wherein T is the period of the sound wave.

Claims (8)

1. An ultrasonic communication method, characterized by: the method adopts 12000Hz sound frequency as carrier wave, and modulates the code in an amplitude modulation mode, and comprises the following specific steps:
firstly, coding bytes to be sent at a signal transmitting end according to a preset rule, and playing coded signals in an ultrasonic mode through a loudspeaker;
then, the receiving end carries out band-pass filtering, amplification, demodulation and low-pass filtering on the received modulated signal in sequence to restore the coded signal and decode the coded signal.
2. The ultrasonic communication method according to claim 1, characterized in that: the preset coding rule is as follows:
the high level of n periods and the low level of n periods represent coding '0';
the high level of n cycles and the low level of 2n cycles represent the code '1';
the high level of n cycles and the low level of greater than or equal to 3n cycles represents the start of a new byte, where n is a positive integer.
3. An ultrasonic communication method according to claim 2, characterized in that: n > is 3.
4. The ultrasonic communication method according to claim 1, characterized in that: the coded signal is played by calling a sound card to drive, and modulated ultrasonic waves are generated.
5. The ultrasonic communication method according to claim 4, characterized in that: the coded signal is a char type array.
6. The ultrasonic communication method according to claim 1, characterized in that: after receiving the ultrasonic wave, the receiving end obtains a coding signal through processing, outputs the coding signal to an IO port of the processor, and resets the timer after the processor stores the value of the timer at the moment on the rising edge of the IO port and times again;
and the receiving end decodes the received coded signal according to the value of the timer.
7. The ultrasonic communication method according to claim 6, characterized in that: the rules for decoding at the receiving end are:
the code value is 0 when the value of the timer <2.5nT, 1 when the value of the timer <3.5nT, and the start of a new byte when the value of the timer >3.5nT, where T is the period of the sound wave.
8. The ultrasonic communication method according to any one of claims 1 to 7, characterized in that: the transmitting terminal is an audio power amplifier module of a mobile phone or a flat plate.
CN201811022773.4A 2018-09-04 2018-09-04 Ultrasonic communication method Pending CN110875783A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811022773.4A CN110875783A (en) 2018-09-04 2018-09-04 Ultrasonic communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811022773.4A CN110875783A (en) 2018-09-04 2018-09-04 Ultrasonic communication method

Publications (1)

Publication Number Publication Date
CN110875783A true CN110875783A (en) 2020-03-10

Family

ID=69716976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811022773.4A Pending CN110875783A (en) 2018-09-04 2018-09-04 Ultrasonic communication method

Country Status (1)

Country Link
CN (1) CN110875783A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112565135A (en) * 2020-05-22 2021-03-26 苏州迪芬德物联网科技有限公司 Sound wave frequency modulation communication system and communication method thereof
CN114884584A (en) * 2022-04-28 2022-08-09 上海小度技术有限公司 Data transmission method, related device and computer program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247183A (en) * 2007-02-15 2008-08-20 凌阳科技股份有限公司 Transmission device, receiving device, system and method for implementing communication based on ultrasonic wave
CN106850079A (en) * 2016-12-06 2017-06-13 微位(深圳)网络科技有限公司 The method for pushing and system of a kind of utilization ultrasonic wave broadcast transmission of data
US20170317764A1 (en) * 2016-04-29 2017-11-02 Gwangju Institute Of Science And Technology Low frequency ultrasonic communication system, low frequency ultrasonic communication method, low frequency ultrasonic transmitting apparatus, and low frequency ultrasonic receiving apparatus
CN107948608A (en) * 2017-12-15 2018-04-20 沈阳首视科技有限责任公司 Data transmission device, monitoring system and monitoring method based on ultrasonic wave

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247183A (en) * 2007-02-15 2008-08-20 凌阳科技股份有限公司 Transmission device, receiving device, system and method for implementing communication based on ultrasonic wave
US20170317764A1 (en) * 2016-04-29 2017-11-02 Gwangju Institute Of Science And Technology Low frequency ultrasonic communication system, low frequency ultrasonic communication method, low frequency ultrasonic transmitting apparatus, and low frequency ultrasonic receiving apparatus
CN106850079A (en) * 2016-12-06 2017-06-13 微位(深圳)网络科技有限公司 The method for pushing and system of a kind of utilization ultrasonic wave broadcast transmission of data
CN107948608A (en) * 2017-12-15 2018-04-20 沈阳首视科技有限责任公司 Data transmission device, monitoring system and monitoring method based on ultrasonic wave

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112565135A (en) * 2020-05-22 2021-03-26 苏州迪芬德物联网科技有限公司 Sound wave frequency modulation communication system and communication method thereof
CN114884584A (en) * 2022-04-28 2022-08-09 上海小度技术有限公司 Data transmission method, related device and computer program product
CN114884584B (en) * 2022-04-28 2023-11-03 上海小度技术有限公司 Data transmission method, related device and computer program product

Similar Documents

Publication Publication Date Title
CN101697248B (en) Learning type infrared remote control device and method
CN104301521B (en) A kind of modulation system based on mobile audio interface, telecommunication circuit and communication means thereof
CN103248434A (en) Communication method for electronic device
CN110875783A (en) Ultrasonic communication method
CN104320158A (en) Music playing equipment and system
CN104581986A (en) Wireless connection method and equipment
CN203352606U (en) System for listening wireless broadcasts, Bluetooth earphone and mobile terminal
CN104702373A (en) Device and method for using acoustic code to perform network configuration for equipment
CN109450749A (en) Communication switching electric-controlled plate, household appliance and appliance control system
CN102447660A (en) Method for realizing modulation and demodulation of telephone POS FSK communication software
CN104732993A (en) Wireless router music player
CN203352726U (en) DLNA/Airplay/Miracast wireless technology-based audio/video player
CN102740411B (en) A kind of wireless microphone system based on WIFI wireless network
CN101488929B (en) Voice modulation data transmission system and transmission method
CN104714413A (en) Intelligent home system based on ZigBee technique
CN202444603U (en) 2.4G S/PDIF (Sony/Philips Digital Interface) wireless earphone device of set-top box
CN109830242B (en) Method and system for coding communication by using audio
CN112565135A (en) Sound wave frequency modulation communication system and communication method thereof
CN203492205U (en) An intelligent switch having a networking function
CN213302791U (en) Intelligent household appliance system with voice control function
CN211019029U (en) Coding and decoding integrated audio and video processor
CN207083145U (en) A kind of paging system
WO2013166902A1 (en) Method and device for connecting tv set to wifi
CN101816136B (en) Method and apparatus for communicating sound wave of human body
CN201349267Y (en) Bidirectional intelligent wireless audio remote controller

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200310

RJ01 Rejection of invention patent application after publication