WO2012171183A1 - Electronic scale, mobile device and body weight measurement system and method for wireless transmission - Google Patents
Electronic scale, mobile device and body weight measurement system and method for wireless transmission Download PDFInfo
- Publication number
- WO2012171183A1 WO2012171183A1 PCT/CN2011/075753 CN2011075753W WO2012171183A1 WO 2012171183 A1 WO2012171183 A1 WO 2012171183A1 CN 2011075753 W CN2011075753 W CN 2011075753W WO 2012171183 A1 WO2012171183 A1 WO 2012171183A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- dtmf
- audio
- decoding
- unit
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01G—WEIGHING
- G01G19/00—Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups
- G01G19/44—Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups for weighing persons
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01G—WEIGHING
- G01G23/00—Auxiliary devices for weighing apparatus
- G01G23/18—Indicating devices, e.g. for remote indication; Recording devices; Scales, e.g. graduated
- G01G23/36—Indicating the weight by electrical means, e.g. using photoelectric cells
- G01G23/37—Indicating the weight by electrical means, e.g. using photoelectric cells involving digital counting
- G01G23/3728—Indicating the weight by electrical means, e.g. using photoelectric cells involving digital counting with wireless means
Definitions
- the present invention relates to an electronic scale, and more particularly to a method of transmitting and receiving measurement data of an electronic scale. Background technique
- electronic scales mostly use sensors and single-chip microcomputers to measure the body weight, and display the measurement results through the LCD display, but can not record statistics and further analysis for individual weight measurement results.
- CN201666812 discloses an electronic scale with a wireless interface for wirelessly transmitting data to a computer, and wirelessly uploading weight data to a computer and the Internet via a Bluetooth transceiver or a 2.4G wireless transceiver for personal health data. Permanently save and analyze.
- DTMF is widely used in the telephone field, but the transmission and reception of DTMF signals are basically based on the telephone network, that is, telephone lines, antennas, electromagnetic waves as carriers, and applications for realizing short-distance data transmission using sound as a medium.
- the technical problem to be solved by the present invention is to overcome the above-mentioned defects and technical biases in the prior art, and to provide a short-distance wireless transmission and reception method for electronic scale measurement data, and an electronic scale and mobile device for implementing the method, and
- the weight measurement system consisting of electronic scale and mobile device realizes the management and analysis of measurement data, and the data transmission is reliable, the structure is simple, the cost is low, and the measurement person is brought convenience.
- an electronic scale according to the present invention comprising: a device body;
- a weight measuring module for measuring body weight data
- a storage unit configured to store the measured weight data
- a conversion unit configured to perform DTMF audio encoding on the weight data in the storage unit, convert the data into corresponding DTMF audio data, and output the data;
- An audio sending unit configured to convert DTMF audio data output by the converting unit into sound carrying DTMF audio information The tone signal is sent out.
- the audio transmitting unit includes a blocking circuit, a driving circuit and a speaker connected in sequence, and the blocking circuit is connected to an output end of the converting unit;
- the audio transmitting unit plays a DTMF tone for 55 milliseconds, and sets a silence time of 60 milliseconds to separate two consecutive DTMF tones.
- the audio transmitting unit plays a DTMF tone for 100 milliseconds and sets a silence time of 120 milliseconds to separate two consecutive DTMF tones.
- the present invention also provides a mobile device for use with the above electronic scale, comprising an audio receiving unit, a decoding unit and a measurement data storage unit, wherein the audio receiving unit is configured to receive the DTMF audio information transmitted by the electronic scale. And the decoding unit is configured to decode the sound signal that carries the DTMF audio information received by the audio receiving unit, and convert the sound signal into corresponding weight data.
- the mobile device wherein the mobile device is a mobile phone with a recording function, and the audio receiving unit is a recording unit of the mobile phone;
- the decoding unit includes:
- the decoding program startup module starts the decoding process after receiving the start bit speech, and starts decoding the subsequent audio data
- the audio data decoding module decodes each of the continuous sound signals carrying the DTMF audio information by N times according to a predetermined decoding program to obtain N data;
- the valid data judging module determines that the number of the same data obtained by decoding is greater than the preset value M, and determines that the data is valid; the decoding program terminates the module, and when the obtained valid data reaches the specified number of data, the decoding is terminated.
- the voice signal carrying the DTMF audio information is first subjected to discrete Fourier transform to obtain the DTMF corresponding frequency point.
- Gain and 2nd harmonic gain If the gain of the DTMF corresponding frequency point is lower than the preset threshold or the 2nd harmonic gain exceeds the preset threshold, it is judged that the frequency data is interference data. Otherwise, the frequency is determined as The effective frequency point, the table lookup parses the corresponding value.
- the invention also provides a method for wirelessly transmitting weight data, which is applied to a weight measuring system comprising an electronic scale and a mobile device, wherein the method comprises the following steps:
- the weight data is encoded by an electronic scale and converted into DTMF audio data;
- the electronic scale sends the DTMF audio data in the form of a sound signal carrying DTMF audio information;
- the weight data wireless transmission method wherein, in the step (4), the decoding process specifically includes:
- the decoding program starts, starts the decoding process after receiving the start bit speech, starts decoding the subsequent audio data; decodes the audio data, and decodes each continuous DTMF audio data N times according to a predetermined decoding program to obtain N data;
- the valid data judges that the number of identical data obtained by decoding is greater than the preset value M, and is determined to be valid data; the decoding process is terminated, and the decoding is terminated when the number of valid data obtained reaches the specified number of data.
- the predetermined decoding program is to decode the sound signal carrying the DTMF audio information received by the audio receiving unit, first performing discrete Fourier transform on the sound signal carrying the DTMF audio information to obtain DTMF.
- the frequency point data is judged to be interference data, otherwise, the judgment is made.
- the frequency point is the effective frequency point, and the table looks up the corresponding value.
- the present invention is a combination of the above-mentioned hardware devices, and a weight measuring system, including an electronic scale and a mobile device, wherein the electronic scale includes:
- a weight measuring module for measuring body weight data
- a storage unit configured to store the measured weight data
- a conversion unit configured to perform DTMF audio encoding on the weight data in the storage unit, convert the data into corresponding DTMF audio data, and output the data;
- An audio sending unit configured to convert DTMF audio data output by the converting unit into a sound signal carrying DTMF audio information and send the sound signal;
- the mobile device comprising: an audio receiving unit, a decoding unit, a measurement data storage unit, the audio receiving unit, configured to receive a sound signal that is sent by the electronic scale and carry DTMF audio information;
- the sound signal carrying the DTMF audio information received by the audio receiving unit is decoded and converted into corresponding weight data.
- the mobile device is a mobile phone with a recording function
- the receiving unit is a recording unit of the mobile phone.
- the weight measurement system described above, wherein the decoding unit comprises:
- the decoding program startup module starts the decoding process after receiving the start bit speech, and starts decoding the subsequent audio data
- the audio data decoding module decodes each of the continuous sound signals carrying the DTMF audio information by N times according to a predetermined decoding program to obtain N data;
- the valid data judging module determines that the number of the same data obtained by decoding is greater than the preset value M, and determines that the data is valid; the decoding program terminates the module, and when the obtained valid data reaches the specified number of data, the decoding is terminated.
- the voice signal carrying the DTMF audio information is first subjected to discrete Fourier transform to obtain a DTMF corresponding frequency.
- Point gain and 2nd harmonic gain If the gain of the DTMF corresponding frequency point is lower than the preset threshold or the 2nd harmonic gain exceeds the preset threshold, it is judged that the frequency data is interference data, otherwise, the frequency is judged.
- the table looks up the corresponding value.
- the present invention has at least the following advantages over the prior art:
- the wireless communication is realized by using the recording device provided in the mobile phone, and the reliable transmission of data can be realized without increasing the hardware cost.
- the gain and the second harmonic gain of the DTMF corresponding frequency point are compared with the respectively set threshold values, and it is determined whether the frequency point data is interference data, and the anti-interference is achieved. purpose.
- the DTMF signal transmission and reception of the present invention is based on sound, and is susceptible to stronger environmental sound and voice interference, by continuously carrying DTMF audio information for each.
- the sound signal is decoded N times according to a predetermined decoding program, and the number of the same data bits obtained by decoding is greater than the preset value M, and the determination method of the valid data is determined, thereby further improving the anti-interference ability and ensuring the accuracy of decoding.
- FIG. 1 is a schematic view showing the functional structure of an electronic scale according to the present invention.
- FIG. 2 is a schematic diagram showing the functional structure of a mobile device according to the present invention.
- FIG. 3 is a schematic diagram showing the working principle of wireless communication between the electronic scale and the mobile device according to the present invention.
- Figure 4 is a schematic view showing the appearance of the weight measuring system of the present invention.
- FIG. 5 is a flow chart of decoding a mobile device according to a preferred embodiment of the present invention. detailed description
- the present invention provides an electronic scale 100, comprising:
- the weight measuring unit 1 is used for measuring body weight data
- a storage unit 2 configured to store the measured weight data
- the converting unit 3 is configured to encode the weight data in the storage unit into the corresponding DTMF audio data
- the audio sending unit 4 is configured to convert the DTMF voice data converted by the converting unit into an audio signal.
- the conversion unit comprises:
- a storage subunit 31 configured to store the recorded DTMF audio data
- the encoding unit 32 is configured to convert each digit of the physiological parameter data in the storage unit into a frequency group corresponding thereto, and each frequency group corresponds to a specified DTMF audio data address;
- the extracting unit 33 extracts corresponding DTMF audio data according to the specific frequency group converted by the encoding unit.
- the audio transmitting unit plays a DTMF tone for 100 milliseconds, and 120 milliseconds of silence is used to separate two consecutive DTMF tones.
- the present invention further provides a mobile device 200, including:
- the audio receiving unit 5 is configured to receive a sound signal that carries the DTMF audio information sent by the weight scale;
- the decoding unit 6 is configured to decode the sound signal carrying the DTMF audio information received by the audio receiving unit, and convert the sound signal into corresponding weight data.
- the measurement data storage unit 7 is configured to store the weight data converted by the decoding unit
- the foregoing mobile device further includes a data processing unit 8 for performing further health analysis on the physiological parameters;
- the mobile device wherein the mobile device is a mobile phone with a recording function, and the audio receiving unit is a recording unit 9 of the mobile phone;
- the decoding unit includes:
- the decoding program starting module 61 starts the decoding process after receiving the start bit voice, and starts decoding the subsequent audio data
- the audio data decoding module 62 decodes each persistent DTMF audio data N times according to a predetermined decoding time to obtain N data;
- the valid data judging module 63 determines that the number of identical data obtained by decoding is greater than the preset value M, and determines that the data is valid; the decoding program termination module 64 terminates when the number of valid data obtained reaches a specified number of data.
- the voice signal carrying the DTMF audio information is first subjected to discrete Fourier transform to obtain the DTMF corresponding frequency point.
- Gain and 2nd harmonic gain If the gain of the DTMF corresponding frequency point is lower than the preset threshold or the 2nd harmonic gain exceeds the preset threshold, it is judged that the frequency data is interference data. Otherwise, the frequency is determined as The effective frequency point, the table lookup parses the corresponding value.
- the invention realizes a method for wireless transmission of body weight data by using an electronic scale and a mobile device, comprising the following steps:
- the weight data is encoded by an electronic scale and converted into DTMF audio data
- the electronic scale transmits the DTMF audio data in the form of a sound signal carrying DTMF audio information
- the mobile device decodes the sound signal carrying the DTMF audio information and converts it into corresponding weight data.
- the audio transmitting unit of the present invention includes a portion of the DC blocking circuit 11, the speaker driving circuit 12, and the speaker 13 which are sequentially connected.
- the recorded DTMF voice file can be stored in the microcontroller 10 (CPU in the figure) in advance, that is, the storage subunit of the aforementioned conversion unit, and the DTMF audio data converted by the conversion unit is output by the 10-port of the single-chip microcomputer, and then transmitted through the audio.
- the unit converts to a sound signal carrying DTMF audio information and transmits it.
- the speaker is placed inside the main body of the device and faces the upper surface of the main body of the device, and the corresponding main body surface is provided with a small hole 14; the setting is advantageous for the recording device to perform recording collection.
- the specified number of transmitted data is N (in this embodiment, the weight data is defined as 4 digits, that is, XXX.X, so the specified number of transmitted data is set to 4);
- the single chip microcomputer 10 After receiving the measurement data obtained by the weight measuring unit 1, the single chip microcomputer 10 reads the data into the storage unit 2, runs the conversion program of the conversion unit 3, converts the received data into corresponding DTMF audio data, and then the microcontroller 10 takes the period as The 32 kHz PWM wave transmits data to the DC blocking circuit 11 through 10 ports, and the data is filtered by the DC blocking circuit 11 and transmitted to the speaker driving circuit 12 portion, the data is amplified, and then the sound of the DTMF audio information is carried through the speaker 13. The signal is sent out. Playing a DTMF tone representing a number takes 100 milliseconds, separating two consecutive DTMF tones with a silence of 120 milliseconds duration. Define a DTMF tone as the start bit and play the data bit first before playing the data.
- the mobile device 200 of the embodiment of the present invention is a mobile phone. Before the mobile phone receives the mobile phone, the mobile phone needs to open the own recording device 9 , and the mobile phone uses the recording device 9 to receive the voice file.
- the recording sampling rate is 8KHZ, after receiving the initial bit voice, The data after the recording is started and the decoding process is started, a data window of 136 points is set, and the decoding program 11 decodes the subsequent data.
- the mobile device 200 When the mobile device 200 decodes the received sound signal carrying the DTMF audio information, it first performs discrete Fourier transform on the received sound signal carrying the DTMF audio information, and parses the gain Au and the second harmonic gain Auh of the corresponding frequency point of the DTMF tone.
- the threshold is set according to the external environment, and if the gain Au exceeds the threshold, it is determined to be valid data.
- the human speech contains rich harmonics, it is very likely that interference occurs at the corresponding frequency of the DTMF tone, and the frequency is judged by judging whether the corresponding frequency of the DTMF tone has a strong second harmonic gain. Whether the point is valid data or voice interference, the threshold is set accordingly. If the harmonic exceeds the set threshold, indicating that the voice is dry from the outside, the point data is discarded. Through this method, the purpose of anti-interference is achieved.
- the above decoding is about 17ms, so a DTMF tone lasting 100ms can be decoded to get 5 data bits. If the same data in 3 data is greater than or equal to 3, the data of the DTMF tone that lasts for 100ms is considered to be the same data. This further plays a role in anti-interference.
- the mobile phone receives the specified number of data (four in this embodiment), stops receiving data, and the decoding is terminated.
- the specific receiving process is shown in Figure 5. After receiving the data, the data is stored in the measurement data storage unit 7 of the mobile device.
- the data processing unit 8 of the mobile device can perform secondary processing on the data using specific data processing software, and then transmit it to the user through visual, auditory, etc. through output devices such as a display screen and a speaker.
- the time and mute time for playing a DTMF tone are not subject to the above parameters and can be modified. For example, playing a DTMF tone for 55 milliseconds, separating two consecutive DTMF tones with a silence of 60 milliseconds duration data. Define a DTMF tone as the start bit and play the data bit first before playing the data.
- the mobile device 200 needs to open the recording device 9 before receiving, and the mobile device receives the voice file by using the recording device 9.
- the decoding unit 6 decodes the subsequent data, and the time for decoding one voice data is 17 ms.
- a DTMF tone lasting 55ms can be decoded to obtain 3 data bits. If the same data in the 3 data is greater than or equal to 2, the data of the DTMF tone that lasts for 55ms is considered to be the same data, further enhancing the anti-interference ability.
- This embodiment adopts standard DTMF coding. In actual use, it can also customize non-standard DTMF coding.
- the coding table is shown in the following table.
- the first action is high frequency audio and the first column is low frequency audio.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Telephone Function (AREA)
Abstract
An electronic scale is provided. The electronic scale comprises a device body, a body weight measurement unit, a body weight data storage unit, a conversion unit and an audio transmission unit. The conversion unit encodes the weight data in the storage unit by using DTMF audio coding, converts the audio code to corresponding DTMF audio data and then outputs it. The audio transmission unit converts the DTMF audio data outputted by the conversion unit to an audio signal carrying DTMF audio information and then transmits it. A mobile device wirelessly communicated with the electronic scale, a body weight measurement system composed of the electronic scale and the mobile device, and a body weight data wireless transmission method are also provided. The electronic scale avoids the expensive wireless communication module, reduces cost, and ensures the reliability of data transmission.
Description
电子秤、 移动设备和体重测量系统及无线传输方法 技术领域 Electronic scale, mobile device and weight measuring system and wireless transmission method
本发明涉及电子秤, 特别是涉及对电子秤测量数据进行传输和接收的方法。 背景技术 The present invention relates to an electronic scale, and more particularly to a method of transmitting and receiving measurement data of an electronic scale. Background technique
目前的电子秤多采用传感器和单片机来完成人体体重的测量, 并通过 LCD显示器来显 示测量结果, 但无法针对个人体重测量结果做记录统计及进一步的分析, At present, electronic scales mostly use sensors and single-chip microcomputers to measure the body weight, and display the measurement results through the LCD display, but can not record statistics and further analysis for individual weight measurement results.
为此, CN201666812公开了一种通过无线传输数据到计算机的具有无线接口的电子秤, 通过蓝牙收发器或 2. 4G无线收发器实现无线的体重数据上传至电脑和互联网上, 以便个 人健康数据的永久保存和分析。 To this end, CN201666812 discloses an electronic scale with a wireless interface for wirelessly transmitting data to a computer, and wirelessly uploading weight data to a computer and the Internet via a Bluetooth transceiver or a 2.4G wireless transceiver for personal health data. Permanently save and analyze.
以上技术方案虽然给测量者带来一定的便利, 但使用中还存在以下不足: 需要增加通 讯模块, 从而增加了产品的成本; 使用时需对装置进行配对认证, 增加了操作难度。 Although the above technical solutions bring certain convenience to the measurer, there are still the following shortcomings in use: It is necessary to increase the communication module, thereby increasing the cost of the product; the device needs to be paired and authenticated during use, which increases the operation difficulty.
习知技术中, DTMF广泛应用于电话领域, 但 DTMF信号发送与接收基本是以电话网络 为介质, 即电话线、 天线, 电磁波为载体, 未有以声音为介质实现短距离的数据传输的应 用。 发明内容 In the prior art, DTMF is widely used in the telephone field, but the transmission and reception of DTMF signals are basically based on the telephone network, that is, telephone lines, antennas, electromagnetic waves as carriers, and applications for realizing short-distance data transmission using sound as a medium. . Summary of the invention
本发明要解决的技术问题在于克服公知技术存在的上述缺陷及技术偏见, 而提供一种 电子秤测量数据短距离无线传输和接收方法, 和用以实现该方法的电子秤及移动设备, 以 及由电子称与移动设备组成的体重测量系统, 从而实现测量数据的管理与分析, 并且数据 传输可靠, 结构简单, 成本低廉, 给测量者带来便利。 The technical problem to be solved by the present invention is to overcome the above-mentioned defects and technical biases in the prior art, and to provide a short-distance wireless transmission and reception method for electronic scale measurement data, and an electronic scale and mobile device for implementing the method, and The weight measurement system consisting of electronic scale and mobile device realizes the management and analysis of measurement data, and the data transmission is reliable, the structure is simple, the cost is low, and the measurement person is brought convenience.
本发明是通过以下技术方案实现的, 依据本发明提供的一种电子秤, 包括: 装置主体; The present invention is achieved by the following technical solution, an electronic scale according to the present invention, comprising: a device body;
体重测量模块, 用于测量人体体重数据; a weight measuring module for measuring body weight data;
存储单元, 用于存储测量得到的体重数据; a storage unit, configured to store the measured weight data;
其中, 还包括: Among them, it also includes:
转换单元, 用于将存储单元中的体重数据进行 DTMF音频编码, 转换为对应的 DTMF音 频数据并输出; a conversion unit, configured to perform DTMF audio encoding on the weight data in the storage unit, convert the data into corresponding DTMF audio data, and output the data;
音频发送单元, 用于将转换单元输出的 DTMF音频数据转换为携带 DTMF音频信息的声
音信号并发送出去。 An audio sending unit, configured to convert DTMF audio data output by the converting unit into sound carrying DTMF audio information The tone signal is sent out.
本发明还可以采取以下技术方案进一步实现: The invention can also be further realized by the following technical solutions:
上述的电子秤, 其中, 所述的音频发送单元包括依次相连的隔直电路、 驱动电路和扬 声器, 所述的隔直电路与转换单元的输出端相连; In the above electronic scale, the audio transmitting unit includes a blocking circuit, a driving circuit and a speaker connected in sequence, and the blocking circuit is connected to an output end of the converting unit;
上述的电子秤, 其中, 所述的扬声器置于装置主体内部, 并朝向装置主体的上表面, 对应的装置主体表面开有小孔; In the above electronic scale, wherein the speaker is placed inside the main body of the device and faces the upper surface of the main body of the device, and a corresponding hole is formed in the surface of the main body of the device;
上述的电子秤, 其中, 所述的音频发送单元播放一个 DTMF音的时间 55毫秒, 并且 设定一段 60毫秒的静音时间来分隔两个连续的 DTMF音。 较佳的, 音频发送单元播放一 个 DTMF音的时间为 100毫秒,并且设定用 120毫秒的静音时间来分隔两个连续的 DTMF音。 In the above electronic scale, wherein the audio transmitting unit plays a DTMF tone for 55 milliseconds, and sets a silence time of 60 milliseconds to separate two consecutive DTMF tones. Preferably, the audio transmitting unit plays a DTMF tone for 100 milliseconds and sets a silence time of 120 milliseconds to separate two consecutive DTMF tones.
本发明同时提供一种与上述电子秤配套使用的移动设备, 包括音频接收单元、 解码单 元和测量数据存储单元, 其中, 所述的音频接收单元, 用于接收由电子秤发送的携带 DTMF 音频信息的声音信号; 所述的解码单元, 用于对音频接收单元接收的携带 DTMF音频信息 的声音信号解码, 转换为对应的体重数据。 The present invention also provides a mobile device for use with the above electronic scale, comprising an audio receiving unit, a decoding unit and a measurement data storage unit, wherein the audio receiving unit is configured to receive the DTMF audio information transmitted by the electronic scale. And the decoding unit is configured to decode the sound signal that carries the DTMF audio information received by the audio receiving unit, and convert the sound signal into corresponding weight data.
作为优选实施方式, 上述的移动设备, 其中, 所述的移动设备为带有录音功能的手机, 所述的音频接收单元为手机的录音单元; In a preferred embodiment, the mobile device, wherein the mobile device is a mobile phone with a recording function, and the audio receiving unit is a recording unit of the mobile phone;
上述的移动设备, 其中, 所述的解码单元包括: In the above mobile device, the decoding unit includes:
解码程序启动模块, 当接收到起始位语音后启动解码程序, 开始对后续音频数据进行 解码; The decoding program startup module starts the decoding process after receiving the start bit speech, and starts decoding the subsequent audio data;
音频数据解码模块, 对每一个持续的携带 DTMF音频信息的声音信号按照预定的解码 程序解码 N次, 得到 N个数据; The audio data decoding module decodes each of the continuous sound signals carrying the DTMF audio information by N times according to a predetermined decoding program to obtain N data;
有效数据判断模块, 解码得到的相同数据的个数大于预设值 M则确定为有效数据; 解码程序终止模块, 当获得的有效数据个数达到指定的数据数量解码终止。 The valid data judging module determines that the number of the same data obtained by decoding is greater than the preset value M, and determines that the data is valid; the decoding program terminates the module, and when the obtained valid data reaches the specified number of data, the decoding is terminated.
上述的移动设备, 其中, 所述的预定的解码程序为对音频接收单元接收的携带 DTMF 音频信息的声音信号解码时, 首先对携带 DTMF音频信息的声音信号进行离散傅立叶变换, 得到 DTMF对应频点的增益和 2次谐波增益,如果 DTMF对应频点的增益低于预设阈值或 2 次 谐波增益超过预设的阈值, 则判断该频点数据为干扰数据, 否则, 判断该频点为有效频点, 查表解析出对应数值。 In the above mobile device, when the predetermined decoding procedure is to decode the sound signal carrying the DTMF audio information received by the audio receiving unit, the voice signal carrying the DTMF audio information is first subjected to discrete Fourier transform to obtain the DTMF corresponding frequency point. Gain and 2nd harmonic gain. If the gain of the DTMF corresponding frequency point is lower than the preset threshold or the 2nd harmonic gain exceeds the preset threshold, it is judged that the frequency data is interference data. Otherwise, the frequency is determined as The effective frequency point, the table lookup parses the corresponding value.
本发明还提供了一种体重数据无线传输方法, 应用于由电子秤和移动设备构成的体重 测量系统, 其中, 包括下列步骤: The invention also provides a method for wirelessly transmitting weight data, which is applied to a weight measuring system comprising an electronic scale and a mobile device, wherein the method comprises the following steps:
( 1 ) 由电子秤对体重数据进行编码, 将其转换成 DTMF音频数据;
( 2 ) 电子秤将 DTMF音频数据以携带 DTMF音频信息的声音信号的形式发送出去;(1) The weight data is encoded by an electronic scale and converted into DTMF audio data; (2) The electronic scale sends the DTMF audio data in the form of a sound signal carrying DTMF audio information;
( 3 ) 由移动设备接收携带 DTMF音频信息的声音信号; (3) receiving, by the mobile device, a sound signal carrying DTMF audio information;
( 4 ) 对携带 DTMF音频信息的声音信号进行解码, 转换为对应的体重数据。 (4) Decoding the sound signal carrying the DTMF audio information and converting it into the corresponding weight data.
作为优选实施方式, 上述的体重数据无线传输方法, 其中, 第 (4 ) 步中, 解码过程 具体包括: In a preferred embodiment, the weight data wireless transmission method, wherein, in the step (4), the decoding process specifically includes:
解码程序启动, 当接收到起始位语音后启动解码程序,开始对后续音频数据进行解码; 音频数据解码, 对每一个持续的 DTMF音频数据按照预定的解码程序解码 N次, 得到 N 个数据; The decoding program starts, starts the decoding process after receiving the start bit speech, starts decoding the subsequent audio data; decodes the audio data, and decodes each continuous DTMF audio data N times according to a predetermined decoding program to obtain N data;
有效数据判断, 解码得到的相同数据的个数大于预设值 M则确定为有效数据; 解码程序终止, 当获得的有效数据个数达到指定的数据数量解码终止。 The valid data judges that the number of identical data obtained by decoding is greater than the preset value M, and is determined to be valid data; the decoding process is terminated, and the decoding is terminated when the number of valid data obtained reaches the specified number of data.
上述的体重数据无线传输方法, 其中, 所述的预定的解码程序为对音频接收单元接收 的携带 DTMF音频信息的声音信号解码时, 首先对携带 DTMF音频信息的声音信号进行离散 傅立叶变换, 得到 DTMF对应频点的增益和 2次谐波增益, 如果 DTMF对应频点的增益低于 预设阈值或 2次谐波增益超过预设的阈值, 则判断该频点数据为干扰数据, 否则, 判断该 频点为有效频点, 查表解析出对应数值。 In the above method for wirelessly transmitting weight data, wherein the predetermined decoding program is to decode the sound signal carrying the DTMF audio information received by the audio receiving unit, first performing discrete Fourier transform on the sound signal carrying the DTMF audio information to obtain DTMF. Corresponding to the gain of the frequency point and the second harmonic gain, if the gain of the corresponding frequency point of the DTMF is lower than the preset threshold or the second harmonic gain exceeds the preset threshold, the frequency point data is judged to be interference data, otherwise, the judgment is made. The frequency point is the effective frequency point, and the table looks up the corresponding value.
本发明综合上述的硬件设备, 同时提出一种体重测量系统, 包括电子秤和移动设备, 其中, 所述的电子秤, 包括: The present invention is a combination of the above-mentioned hardware devices, and a weight measuring system, including an electronic scale and a mobile device, wherein the electronic scale includes:
装置主体; Device body
体重测量模块, 用于测量人体体重数据; a weight measuring module for measuring body weight data;
存储单元, 用于存储测量得到的体重数据; a storage unit, configured to store the measured weight data;
转换单元, 用于将存储单元中的体重数据进行 DTMF音频编码, 转换为对应的 DTMF音 频数据并输出; a conversion unit, configured to perform DTMF audio encoding on the weight data in the storage unit, convert the data into corresponding DTMF audio data, and output the data;
音频发送单元, 用于将转换单元输出的 DTMF音频数据转换为携带 DTMF音频信息的声 音信号并发送出去; An audio sending unit, configured to convert DTMF audio data output by the converting unit into a sound signal carrying DTMF audio information and send the sound signal;
所述的移动设备, 包括: 音频接收单元、 解码单元, 测量数据存储单元, 所述的音频 接收单元, 用于接收由电子秤发送的携带 DTMF音频信息的声音信号; 所述的解码单元, 用于对音频接收单元接收的携带 DTMF音频信息的声音信号进行解码, 转换为对应的体重 数据。 The mobile device, comprising: an audio receiving unit, a decoding unit, a measurement data storage unit, the audio receiving unit, configured to receive a sound signal that is sent by the electronic scale and carry DTMF audio information; The sound signal carrying the DTMF audio information received by the audio receiving unit is decoded and converted into corresponding weight data.
作为优选实施方式, 所述的移动设备为带有录音功能的手机, 所述的接收单元为手机 的录音单元。
上述的体重测量系统, 其中, 所述的解码单元包括: In a preferred embodiment, the mobile device is a mobile phone with a recording function, and the receiving unit is a recording unit of the mobile phone. The weight measurement system described above, wherein the decoding unit comprises:
解码程序启动模块, 当接收到起始位语音后启动解码程序, 开始对后续音频数据进行 解码; The decoding program startup module starts the decoding process after receiving the start bit speech, and starts decoding the subsequent audio data;
音频数据解码模块, 对每一个持续的携带 DTMF音频信息的声音信号按照预定的解码 程序解码 N次, 得到 N个数据; The audio data decoding module decodes each of the continuous sound signals carrying the DTMF audio information by N times according to a predetermined decoding program to obtain N data;
有效数据判断模块, 解码得到的相同数据的个数大于预设值 M则确定为有效数据; 解码程序终止模块, 当获得的有效数据个数达到指定的数据数量解码终止。 The valid data judging module determines that the number of the same data obtained by decoding is greater than the preset value M, and determines that the data is valid; the decoding program terminates the module, and when the obtained valid data reaches the specified number of data, the decoding is terminated.
上述的体重测量系统, 其中, 所述的预定的解码程序为对音频接收单元接收的携带 DTMF音频信息的声音信号解码时, 首先对携带 DTMF音频信息的声音信号进行离散傅立叶 变换, 得到 DTMF对应频点的增益和 2次谐波增益, 如果 DTMF对应频点的增益低于预设阈 值或 2次谐波增益超过预设的阈值, 则判断该频点数据为干扰数据, 否则, 判断该频点为 有效频点, 查表解析出对应数值。 In the above weight measurement system, when the predetermined decoding procedure is to decode the sound signal carrying the DTMF audio information received by the audio receiving unit, the voice signal carrying the DTMF audio information is first subjected to discrete Fourier transform to obtain a DTMF corresponding frequency. Point gain and 2nd harmonic gain. If the gain of the DTMF corresponding frequency point is lower than the preset threshold or the 2nd harmonic gain exceeds the preset threshold, it is judged that the frequency data is interference data, otherwise, the frequency is judged. For the effective frequency, the table looks up the corresponding value.
总之, 通过以上结构和方法, 本发明与现有技术相比至少有如下优点: In summary, with the above structure and method, the present invention has at least the following advantages over the prior art:
避免了昂贵的无线通讯模块, 降低了成本, 同时保证了数据传输的可靠性, 给测量者 带来了便利。 本发明的较佳实施例, 利用手机均带有的录音设备实现无线通讯, 在不增加 硬件成本的情况下, 既可实现数据的可靠传输。 此外, 通过对携带 DTMF音频信息的声音 信号进行离散傅立叶变换, 得到 DTMF对应频点的增益和 2次谐波增益 与分别设定的阈值 比较, 判断频点数据是否为干扰数据, 达到抗干扰的目的。 由于相较于传统的应用与有线 电话通信中的 DTMF技术, 本发明 DTMF信号发送与接收是以声音为介质, 易于受到更强的 环境音和语音干扰, 通过对每一个持续的携带 DTMF音频信息的声音信号按照预定的解码 程序解码 N次,解码得到的相同数据位的个数大于预设值 M则确定为有效数据的判断方式, 进一步提高抗干扰能力, 保证解码的准确度。 附图说明 The expensive wireless communication module is avoided, the cost is reduced, and the reliability of data transmission is ensured, which brings convenience to the measurer. In the preferred embodiment of the present invention, the wireless communication is realized by using the recording device provided in the mobile phone, and the reliable transmission of data can be realized without increasing the hardware cost. In addition, by performing discrete Fourier transform on the sound signal carrying the DTMF audio information, the gain and the second harmonic gain of the DTMF corresponding frequency point are compared with the respectively set threshold values, and it is determined whether the frequency point data is interference data, and the anti-interference is achieved. purpose. Compared with the traditional application and the DTMF technology in wired telephone communication, the DTMF signal transmission and reception of the present invention is based on sound, and is susceptible to stronger environmental sound and voice interference, by continuously carrying DTMF audio information for each. The sound signal is decoded N times according to a predetermined decoding program, and the number of the same data bits obtained by decoding is greater than the preset value M, and the determination method of the valid data is determined, thereby further improving the anti-interference ability and ensuring the accuracy of decoding. DRAWINGS
图 1为本发明电子秤的功能结构示意图; 1 is a schematic view showing the functional structure of an electronic scale according to the present invention;
图 2为本发明移动设备的功能结构示意图; 2 is a schematic diagram showing the functional structure of a mobile device according to the present invention;
图 3为本发明电子秤和移动设备进行无线通信的工作原理图; 3 is a schematic diagram showing the working principle of wireless communication between the electronic scale and the mobile device according to the present invention;
图 4为本发明体重测量系统的外观示意图; Figure 4 is a schematic view showing the appearance of the weight measuring system of the present invention;
图 5 为本发明较佳实施例的移动设备解码流程图。
具体实施方式 FIG. 5 is a flow chart of decoding a mobile device according to a preferred embodiment of the present invention. detailed description
以下结合附图及较佳实施例, 对本发明的结构、 特征及其功效, 详细说明如下: 如图 1所示, 本发明提供一种电子秤 100, 包括: The structure, features and functions of the present invention are described in detail below with reference to the accompanying drawings and preferred embodiments. As shown in FIG. 1, the present invention provides an electronic scale 100, comprising:
体重测量单元 1, 用于测量人体体重数据; The weight measuring unit 1 is used for measuring body weight data;
存储单元 2, 用于存储测量得到的体重数据; a storage unit 2, configured to store the measured weight data;
转换单元 3, 用于将存储单元中的体重数据进行编码, 转换为对应的 DTMF音频数据; 音频发送单元 4, 用于将转换单元转换得到的 DTMF语音数据转换为音频信号。 The converting unit 3 is configured to encode the weight data in the storage unit into the corresponding DTMF audio data, and the audio sending unit 4 is configured to convert the DTMF voice data converted by the converting unit into an audio signal.
较佳的, 上述的电子秤, 其中所述的转换单元包括: Preferably, the above electronic scale, wherein the conversion unit comprises:
存储子单元 31, 用于存储录制好的 DTMF音频数据; a storage subunit 31, configured to store the recorded DTMF audio data;
编码单元 32,用于将存储单元中的生理参数数据的每一位数字转换成与之对应的频率 组, 每一个频率组与指定的 DTMF音频数据地址相应; The encoding unit 32 is configured to convert each digit of the physiological parameter data in the storage unit into a frequency group corresponding thereto, and each frequency group corresponds to a specified DTMF audio data address;
提取单元 33, 根据编码单元转换得到的特定频率组提取相应的 DTMF音频数据。 The extracting unit 33 extracts corresponding DTMF audio data according to the specific frequency group converted by the encoding unit.
较佳的, 前述的电子秤, 其中, 所述的音频发送单元播放一个 DTMF 音的时间为 100 毫秒, 并且用 120毫秒的静音来分隔两个连续的 DTMF音。 Preferably, in the aforementioned electronic scale, wherein the audio transmitting unit plays a DTMF tone for 100 milliseconds, and 120 milliseconds of silence is used to separate two consecutive DTMF tones.
如图 2所示, 本发明还提供一种移动设备 200, 包括: As shown in FIG. 2, the present invention further provides a mobile device 200, including:
音频接收单元 5, 用于接收体重秤发送的携带 DTMF音频信息的声音信号; The audio receiving unit 5 is configured to receive a sound signal that carries the DTMF audio information sent by the weight scale;
解码单元 6,用于将所述音频接收单元接收的携带 DTMF音频信息的声音信号进行解码, 转换为对应的体重数据。 The decoding unit 6 is configured to decode the sound signal carrying the DTMF audio information received by the audio receiving unit, and convert the sound signal into corresponding weight data.
测量数据存储单元 7, 用于存储经解码单元转化后的体重数据; The measurement data storage unit 7 is configured to store the weight data converted by the decoding unit;
较佳的, 前述的移动设备还包括一数据处理单元 8, 用于对生理参数做进一步的健康 分析; Preferably, the foregoing mobile device further includes a data processing unit 8 for performing further health analysis on the physiological parameters;
较佳的, 上述的移动设备, 其中, 所述的移动设备为带有录音功能的手机, 所述的音 频接收单元为手机的录音单元 9 ; Preferably, the mobile device, wherein the mobile device is a mobile phone with a recording function, and the audio receiving unit is a recording unit 9 of the mobile phone;
较佳的, 前述的移动设备, 其中, 所述的解码单元包括: Preferably, in the foregoing mobile device, the decoding unit includes:
解码程序启动模块 61, 当接收到起始位语音后启动解码程序, 开始对后续音频数据进 行解码; The decoding program starting module 61 starts the decoding process after receiving the start bit voice, and starts decoding the subsequent audio data;
音频数据解码模块 62,对每一个持续的 DTMF音频数据按照预定的解码时间解码 N次, 得到 N个数据; The audio data decoding module 62 decodes each persistent DTMF audio data N times according to a predetermined decoding time to obtain N data;
有效数据判断模块 63, 解码得到的相同数据的个数大于预设值 M则确定为有效数据; 解码程序终止模块 64, 当获得的有效数据个数达到指定的数据数量解码终止。
上述的移动设备, 其中, 所述的预定的解码程序为对音频接收单元接收的携带 DTMF 音频信息的声音信号解码时, 首先对携带 DTMF音频信息的声音信号进行离散傅立叶变换, 得到 DTMF对应频点的增益和 2次谐波增益, 如果 DTMF对应频点的增益低于预设阈值或 2 次谐波增益超过预设的阈值, 则判断该频点数据为干扰数据, 否则, 判断该频点为有效频 点, 查表解析出对应数值。 The valid data judging module 63 determines that the number of identical data obtained by decoding is greater than the preset value M, and determines that the data is valid; the decoding program termination module 64 terminates when the number of valid data obtained reaches a specified number of data. In the above mobile device, when the predetermined decoding procedure is to decode the sound signal carrying the DTMF audio information received by the audio receiving unit, the voice signal carrying the DTMF audio information is first subjected to discrete Fourier transform to obtain the DTMF corresponding frequency point. Gain and 2nd harmonic gain. If the gain of the DTMF corresponding frequency point is lower than the preset threshold or the 2nd harmonic gain exceeds the preset threshold, it is judged that the frequency data is interference data. Otherwise, the frequency is determined as The effective frequency point, the table lookup parses the corresponding value.
本发明利用电子秤和移动设备实现了一种的体重数据无线传输方法, 包括下列步骤: The invention realizes a method for wireless transmission of body weight data by using an electronic scale and a mobile device, comprising the following steps:
( 1 ) 由电子秤对体重数据进行编码, 将其转换成 DTMF音频数据; (1) The weight data is encoded by an electronic scale and converted into DTMF audio data;
( 2 ) 电子秤将 DTMF音频数据以携带 DTMF音频信息的声音信号的形式发送出去; (2) The electronic scale transmits the DTMF audio data in the form of a sound signal carrying DTMF audio information;
( 3 ) 由移动设备接收携带 DTMF音频信息的声音信号; (3) receiving, by the mobile device, a sound signal carrying DTMF audio information;
( 4) 移动设备对携带 DTMF音频信息的声音信号进行进行解码, 转换成对应的体重 数据。 (4) The mobile device decodes the sound signal carrying the DTMF audio information and converts it into corresponding weight data.
以下结合较佳实施例具体描述如下: The following is specifically described below in conjunction with the preferred embodiment:
参见图 3、 图 4, 本发明音频发送单元包括依次连接的隔直电路 11、 扬声器驱动电路 12和扬声器 13几个部分。 可以事先将录制好的 DTMF语音文件储存在单片机 10 (图中为 CPU) 内部, 即前述的转换单元的存储子单元, 转换单元转换得到的 DTMF音频数据由单 片机的 10口输出后,通过音频发送单元转换为携带 DTMF音频信息的声音信号并发送出去。 Referring to Figures 3 and 4, the audio transmitting unit of the present invention includes a portion of the DC blocking circuit 11, the speaker driving circuit 12, and the speaker 13 which are sequentially connected. The recorded DTMF voice file can be stored in the microcontroller 10 (CPU in the figure) in advance, that is, the storage subunit of the aforementioned conversion unit, and the DTMF audio data converted by the conversion unit is output by the 10-port of the single-chip microcomputer, and then transmitted through the audio. The unit converts to a sound signal carrying DTMF audio information and transmits it.
较佳的, 所述的扬声器置于装置主体内部, 并朝向装置主体的上表面, 对应的装置主 体表面开有小孔 14; 采用该设置有利于录音设备进行录音采集。 Preferably, the speaker is placed inside the main body of the device and faces the upper surface of the main body of the device, and the corresponding main body surface is provided with a small hole 14; the setting is advantageous for the recording device to perform recording collection.
具体工作原理如下 (见图 4): The specific working principle is as follows (see Figure 4):
假设指定传输数据数量为 N (本实施例中体重数据定义为 4位数, 即 XXX. X, 因此指 定的传输数据数量设置为 4); Assume that the specified number of transmitted data is N (in this embodiment, the weight data is defined as 4 digits, that is, XXX.X, so the specified number of transmitted data is set to 4);
单片机 10接收到体重测量单元 1获得的测量数据后, 将数据读入存储单元 2中, 运 行转换单元 3的转换程序, 将接收到的数据转换成对应的 DTMF音频数据, 然后单片机 10 以周期为 32khz的 PWM波将数据通过 10口发送到隔直电路 11, 由隔直电路 11对数据进 行滤波后传递给扬声器驱动电路 12部分,对数据进行放大,然后通过扬声器 13将携带 DTMF 音频信息的声音信号发送出去。 播放一个代表数字的 DTMF音的时间为 100毫秒,利用持续 时间为 120毫秒的静音来分隔两个连续的 DTMF音数据。 定义一位 DTMF音为起始位, 播放 数据之前首先播放该数据位。 After receiving the measurement data obtained by the weight measuring unit 1, the single chip microcomputer 10 reads the data into the storage unit 2, runs the conversion program of the conversion unit 3, converts the received data into corresponding DTMF audio data, and then the microcontroller 10 takes the period as The 32 kHz PWM wave transmits data to the DC blocking circuit 11 through 10 ports, and the data is filtered by the DC blocking circuit 11 and transmitted to the speaker driving circuit 12 portion, the data is amplified, and then the sound of the DTMF audio information is carried through the speaker 13. The signal is sent out. Playing a DTMF tone representing a number takes 100 milliseconds, separating two consecutive DTMF tones with a silence of 120 milliseconds duration. Define a DTMF tone as the start bit and play the data bit first before playing the data.
本发明实施例的移动设备 200为手机, 手机在进行接收之前需要打开自带的录音设备 9, 手机利用录音设备 9接收语音文件, 录音采样率为 8KHZ, 当接收到起始位语音以后,
开始记录之后的数据并启动解码程序, 设定 136个点的数据窗口, 解码程序 11对后续数 据进行解码。 The mobile device 200 of the embodiment of the present invention is a mobile phone. Before the mobile phone receives the mobile phone, the mobile phone needs to open the own recording device 9 , and the mobile phone uses the recording device 9 to receive the voice file. The recording sampling rate is 8KHZ, after receiving the initial bit voice, The data after the recording is started and the decoding process is started, a data window of 136 points is set, and the decoding program 11 decodes the subsequent data.
移动设备 200对接收的携带 DTMF音频信息的声音信号进行解码时, 首先对接收的携 带 DTMF音频信息的声音信号进行离散傅立叶变换,解析出 DTMF音对应频点的增益 Au和 2 次谐波增益 Auh, 根据外界环境设定阈值, 如果增益 Au超过阈值, 则判定为有效数据。 另 夕卜, 由于人类说话包含丰富的谐波, 有很大可能在 DTMF音的对应频点上产生干扰, 通过 判断 DTMF音对应频点是否有较强的二次谐波增益, 来判断该频点是有效数据还是语音干 扰, 据此设定阈值, 如果谐波超过设定阈值, 说明来自外界语音干绕, 则该点数据被舍弃。 通过该方法达到抗干扰的目的。 When the mobile device 200 decodes the received sound signal carrying the DTMF audio information, it first performs discrete Fourier transform on the received sound signal carrying the DTMF audio information, and parses the gain Au and the second harmonic gain Auh of the corresponding frequency point of the DTMF tone. The threshold is set according to the external environment, and if the gain Au exceeds the threshold, it is determined to be valid data. In addition, since the human speech contains rich harmonics, it is very likely that interference occurs at the corresponding frequency of the DTMF tone, and the frequency is judged by judging whether the corresponding frequency of the DTMF tone has a strong second harmonic gain. Whether the point is valid data or voice interference, the threshold is set accordingly. If the harmonic exceeds the set threshold, indicating that the voice is dry from the outside, the point data is discarded. Through this method, the purpose of anti-interference is achieved.
上述的解码完成约需要 17ms, 因此 1个持续 100ms的 DTMF音可以解码得到 5个数据 位, 如果 5个数据里相同数据大于等于 3个则认为该持续 100ms的 DTMF音装载的数据是 该相同数据, 这样就进一步起到了抗干扰的作用。 手机接收到指定的数据数量 (本实施例 中为 4个), 停止接收数据, 解码终止。 具体的接收流程如图 5所示。 接收完毕数据后, 数据将储存在移动设备的测量数据存储单元 7中。 移动设备的数据处理单元 8可以对这些 数据使用特定的数据处理软件进行二次处理后, 通过显示屏、扬声器等输出设备, 以视觉, 听觉等手段传递给用户。 The above decoding is about 17ms, so a DTMF tone lasting 100ms can be decoded to get 5 data bits. If the same data in 3 data is greater than or equal to 3, the data of the DTMF tone that lasts for 100ms is considered to be the same data. This further plays a role in anti-interference. The mobile phone receives the specified number of data (four in this embodiment), stops receiving data, and the decoding is terminated. The specific receiving process is shown in Figure 5. After receiving the data, the data is stored in the measurement data storage unit 7 of the mobile device. The data processing unit 8 of the mobile device can perform secondary processing on the data using specific data processing software, and then transmit it to the user through visual, auditory, etc. through output devices such as a display screen and a speaker.
播放一个 DTMF音的时间和静音时间并不需要拘泥于上述参数, 是可以修改的, 例如, 播放一个 DTMF音的时间为 55毫秒,利用持续时间为 60毫秒的静音来分隔两个连续的 DTMF 音数据。 定义一位 DTMF音为起始位, 播放数据之前首先播放该数据位。 移动设备 200在 进行接收之前需要打开录音设备 9, 移动设备端利用录音设备 9接收语音文件, 当接收到 起始位语音以后, 解码单元 6对后续数据进行解码, 解码一个语音数据的时间为 17ms, 1 个持续 55ms的 DTMF音可以解码得到 3个数据位, 如果 3个数据里相同数据大于等于 2个 则认为该持续 55ms的 DTMF音装载的数据是该相同数据, 进一步增强抗干扰的能力。 The time and mute time for playing a DTMF tone are not subject to the above parameters and can be modified. For example, playing a DTMF tone for 55 milliseconds, separating two consecutive DTMF tones with a silence of 60 milliseconds duration data. Define a DTMF tone as the start bit and play the data bit first before playing the data. The mobile device 200 needs to open the recording device 9 before receiving, and the mobile device receives the voice file by using the recording device 9. After receiving the start bit voice, the decoding unit 6 decodes the subsequent data, and the time for decoding one voice data is 17 ms. A DTMF tone lasting 55ms can be decoded to obtain 3 data bits. If the same data in the 3 data is greater than or equal to 2, the data of the DTMF tone that lasts for 55ms is considered to be the same data, further enhancing the anti-interference ability.
本实施例采用标准 DTMF编码, 实际使用中, 也可以自定义的非标准 DTMF编码, 编码 表如下表所示, 首行为高频音频和首列为低频音频。 This embodiment adopts standard DTMF coding. In actual use, it can also customize non-standard DTMF coding. The coding table is shown in the following table. The first action is high frequency audio and the first column is low frequency audio.
以上所述仅是本发明的较佳实施例, 凡是依据本发明的技术方案对以上实施例进行的 任何简单修改和等同变换, 均属于本发明保护的范围。
The above is only a preferred embodiment of the present invention, and any simple modifications and equivalent changes to the above embodiments in accordance with the technical solutions of the present invention are within the scope of the present invention.
Claims
1. 一种电子秤, 包括: 1. An electronic scale comprising:
装置主体; Device body
体重测量单元, 用于测量人体体重数据; a weight measuring unit for measuring body weight data;
存储单元, 用于存储测量得到的体重数据; a storage unit, configured to store the measured weight data;
其特征在于, 还包括: It is characterized in that it further comprises:
转换单元, 用于将存储单元中的体重数据进行 DTMF音频编码, 转换为对应的 DTMF 音频数据并输出; a conversion unit, configured to perform DTMF audio encoding on the weight data in the storage unit, convert the data into corresponding DTMF audio data, and output the data;
音频发送单元, 用于将转换单元输出的 DTMF音频数据转换为携带 DTMF音频信息 的声音信号并发送出去。 And an audio sending unit, configured to convert the DTMF audio data output by the converting unit into a sound signal carrying the DTMF audio information and send the sound signal.
2. 根据权利要求 1 所述的电子秤, 其特征在于, 所述的音频发送单元包括依次相连 的隔直电路、 驱动电路和扬声器, 所述的隔直电路与转换单元的输出端相连。 2. The electronic scale according to claim 1, wherein the audio transmitting unit comprises a blocking circuit, a driving circuit and a speaker connected in series, and the blocking circuit is connected to an output end of the converting unit.
3. 根据权利要求 2所述的电子秤, 其特征在于, 所述的扬声器置于装置主体内部, 并朝向装置主体的上表面, 对应的装置主体表面开有小孔。 3. The electronic scale according to claim 2, wherein the speaker is placed inside the main body of the device and faces the upper surface of the main body of the device, and a corresponding hole is formed in the surface of the main body of the device.
4. 根据权利要求 1至 3 中任意一项所述的电子秤, 其特征在于, 所述的音频发送单 元播放一个 DTMF音的时间 55毫秒, 并且设定一段 60毫秒的静音时间来分隔两个连 续的 DTMF音。 The electronic scale according to any one of claims 1 to 3, wherein the audio transmitting unit plays a DTMF tone for 55 milliseconds, and sets a silence time of 60 milliseconds to separate the two. Continuous DTMF tones.
5. 根据权利要求 4所述的电子秤, 其特征在于, 所述的音频发送单元播放一个 DTMF 音的时间为 100毫秒, 并且设定用 120毫秒的静音时间来分隔两个连续的 DTMF音。 The electronic scale according to claim 4, wherein the audio transmitting unit plays a DTMF tone for 100 milliseconds, and sets a silence time of 120 milliseconds to separate two consecutive DTMF tones.
6. 一种移动设备, 包括音频接收单元、 解码单元和测量数据存储单元, 其特征在于, 所述的音频接收单元, 用于接收由电子秤发送的携带 DTMF音频信息的声音信号; 所述的 解码单元, 用于对音频接收单元接收的携带 DTMF音频信息的声音信号进行解码, 转换为 对应的体重数据。 A mobile device, comprising: an audio receiving unit, a decoding unit, and a measurement data storage unit, wherein the audio receiving unit is configured to receive a sound signal that is sent by the electronic scale and carries DTMF audio information; And a decoding unit, configured to decode the sound signal that carries the DTMF audio information received by the audio receiving unit, and convert the voice signal into corresponding weight data.
7. 根据权利要求 6所述的移动设备, 其特征在于, 所述的移动设备为带有录音功能 的手机, 所述的音频接收单元为手机的录音单元。 The mobile device according to claim 6, wherein the mobile device is a mobile phone with a recording function, and the audio receiving unit is a recording unit of the mobile phone.
8. 根据权利要求 6所述的移动设备, 其特征在于, 所述的解码单元包括: The mobile device according to claim 6, wherein the decoding unit comprises:
解码程序启动模块, 当接收到起始位语音后启动解码程序, 开始对后续音频数据进行 解码; The decoding program startup module starts the decoding process after receiving the start bit speech, and starts decoding the subsequent audio data;
音频数据解码模块,对每一个持续的携带 DTMF音频信息的声音信号按照预定的解码 程序解码 N次, 得到 N个数据; An audio data decoding module for performing predetermined decoding on each of the continuous sound signals carrying DTMF audio information The program is decoded N times to obtain N data;
有效数据判断模块, 解码得到的相同数据的个数大于预设值 M则确定为有效数据; 解码程序终止模块, 当获得的有效数据个数达到指定的数据数量解码终止。 The valid data judging module determines that the number of the same data obtained by decoding is greater than the preset value M, and determines that the data is valid; the decoding program terminates the module, and when the obtained valid data reaches the specified number of data, the decoding is terminated.
9. 根据权利要求 8 所述的移动设备, 其特征在于, 所述的预定的解码程序为对音频 接收单元接收的携带 DTMF音频信息的声音信号解码时, 首先对携带 DTMF音频信息的 声音信号进行离散傅立叶变换, 得到 DTMF对应频点的增益和 2次谐波增益, 如果 DTMF 对应频点的增益低于预设阈值或 2次谐波增益超过预设的阈值, 则判断该频点数据为干扰 数据, 否则, 判断该频点为有效频点, 查表解析出对应数值。 The mobile device according to claim 8, wherein the predetermined decoding procedure is to first decode the sound signal carrying the DTMF audio information when decoding the sound signal carrying the DTMF audio information received by the audio receiving unit. Discrete Fourier transform, obtain the gain of the DTMF corresponding frequency point and the second harmonic gain. If the gain of the corresponding frequency of the DTMF is lower than the preset threshold or the second harmonic gain exceeds the preset threshold, the frequency data is judged as interference. Data, otherwise, judge the frequency point as the effective frequency point, and look up the table to parse the corresponding value.
10. 一种体重数据无线传输方法, 应用于由电子秤和移动设备构成的体重测量系统, 其特征在于, 包括下列步骤: 10. A method for wirelessly transmitting weight data, applied to a weight measuring system comprising an electronic scale and a mobile device, comprising the steps of:
( 1 ) 由电子秤对体重数据进行编码, 将其转换成 DTMF音频数据; (1) The weight data is encoded by an electronic scale and converted into DTMF audio data;
(2) 电子秤将 DTMF音频数据以携带 DTMF音频信息的声音信号的形式发送出去; (2) The electronic scale transmits the DTMF audio data in the form of a sound signal carrying DTMF audio information;
(3 ) 由移动设备接收携带 DTMF音频信息的声音信号; (3) receiving, by the mobile device, a sound signal carrying DTMF audio information;
(4) 由移动设备对携带 DTMF音频信息的声音信号进行解码, 转换为对应的体重数 据。 (4) The sound signal carrying the DTMF audio information is decoded by the mobile device and converted into corresponding weight data.
11. 根据权利要求 10所述的体重数据无线传输方法, 其特征在于, 第 (4) 步中, 解 码过程具体包括: The method for wirelessly transmitting weight data according to claim 10, wherein in step (4), the decoding process specifically comprises:
解码程序启动, 当接收到起始位语音后启动解码程序,开始对后续音频数据进行解码; 音频数据解码, 对每一个持续的 DTMF音频数据按照预定的解码程序解码 N次, 得 到 N个数据; The decoding program starts, starts the decoding process after receiving the start bit speech, and starts decoding the subsequent audio data; the audio data is decoded, and each of the continuous DTMF audio data is decoded N times according to a predetermined decoding program to obtain N data;
有效数据判断, 解码得到的相同数据的个数大于预设值 M则确定为有效数据; 解码程序终止, 当获得的有效数据个数达到指定的数据数量解码终止。 The valid data judges that the number of identical data obtained by decoding is greater than the preset value M, and is determined to be valid data; the decoding process is terminated, and the decoding is terminated when the number of valid data obtained reaches the specified number of data.
12. 根据权利要求 11所述的体重数据无线传输方法, 其特征在于, 所述的预定的解码 程序为对音频接收单元接收的携带 DTMF音频信息的声音信号解码时,首先对携带 DTMF 音频信息的声音信号进行离散傅立叶变换, 得到 DTMF对应频点的增益和 2次谐波增益, 如果 DTMF对应频点的增益低于预设阈值或 2次谐波增益超过预设的阈值,则判断该频点 数据为干扰数据, 否则, 判断该频点为有效频点, 查表解析出对应数值。 The method for wirelessly transmitting weight data according to claim 11, wherein the predetermined decoding procedure is to first decode the sound signal carrying the DTMF audio information received by the audio receiving unit, and firstly carrying the DTMF audio information. The sound signal is subjected to discrete Fourier transform to obtain the gain of the DTMF corresponding frequency point and the second harmonic gain. If the gain of the DTMF corresponding frequency point is lower than the preset threshold or the second harmonic gain exceeds a preset threshold, the frequency is judged. The data is interference data. Otherwise, it is judged that the frequency is an effective frequency point, and the table is parsed to parse the corresponding value.
13. 一种体重测量系统, 包括电子秤和移动设备, 其特征在于, 13. A weight measuring system comprising an electronic scale and a mobile device, characterized in that
所述的电子秤, 包括: The electronic scale includes:
装置主体; 体重测量模块, 用于测量人体体重数据; Device body a weight measuring module for measuring body weight data;
存储单元, 用于存储测量得到的体重数据; a storage unit, configured to store the measured weight data;
转换单元, 用于将存储单元中的体重数据进行 DTMF音频编码, 转换为对应的 DTMF 音频数据并输出; a conversion unit, configured to perform DTMF audio encoding on the weight data in the storage unit, convert the data into corresponding DTMF audio data, and output the data;
音频发送单元, 用于将转换单元输出的 DTMF音频数据转换为携带 DTMF音频信息 的声音信号并发送出去; An audio sending unit, configured to convert DTMF audio data output by the converting unit into a sound signal carrying DTMF audio information and send the sound signal;
所述的移动设备, 包括: 音频接收单元、 解码单元, 测量数据存储单元, 所述的音 频接收单元,用于接收由电子秤发送的携带 DTMF音频信息的声音信号;所述的解码单元, 用于对音频接收单元接收的携带 DTMF音频信息的声音信号进行解码,转换为对应的体重 数据。 The mobile device, comprising: an audio receiving unit, a decoding unit, a measurement data storage unit, the audio receiving unit, configured to receive a sound signal that is sent by the electronic scale and carry DTMF audio information; The sound signal carrying the DTMF audio information received by the audio receiving unit is decoded and converted into corresponding weight data.
14. 根据权利要求 13所述的体重测量系统, 其特征在于, 所述的移动设备为带有录音 功能的手机, 所述的音频接收单元为手机的录音单元。 14. The weight measurement system according to claim 13, wherein the mobile device is a mobile phone with a recording function, and the audio receiving unit is a recording unit of the mobile phone.
15. 根据权利要求 13或 14所述的体重测量系统, 其特征在于, 所述的解码单元包括: 解码程序启动模块, 当接收到起始位语音后启动解码程序, 开始对后续音频数据进行 解码; The weight measurement system according to claim 13 or 14, wherein the decoding unit comprises: a decoding program starting module, starting a decoding process after receiving the start bit speech, and starting decoding the subsequent audio data ;
音频数据解码模块,对每一个持续的携带 DTMF音频信息的声音信号按照预定的解码 程序解码 N次, 得到 N个数据; The audio data decoding module decodes each of the continuous sound signals carrying the DTMF audio information by N times according to a predetermined decoding program to obtain N data;
有效数据判断模块, 解码得到的相同数据的个数大于预设值 M则确定为有效数据; 解码程序终止模块, 当获得的有效数据个数达到指定的数据数量解码终止。 The valid data judging module determines that the number of the same data obtained by decoding is greater than the preset value M, and determines that the data is valid; the decoding program terminates the module, and when the obtained valid data reaches the specified number of data, the decoding is terminated.
16. 根据权利要求 15所述的体重测量系统, 其特征在于, 所述的预定的解码程序为对 音频接收单元接收的携带 DTMF音频信息的声音信号解码时, 首先对携带 DTMF音频信 息的声音信号进行离散傅立叶变换, 得到 DTMF对应频点的增益和 2次谐波增益, 如果 DTMF对应频点的增益低于预设阈值或 2次谐波增益超过预设的阈值, 则判断该频点数据 为干扰数据, 否则, 判断该频点为有效频点, 查表解析出对应数值。 16. The weight measurement system according to claim 15, wherein the predetermined decoding program is a sound signal carrying DTMF audio information when decoding a sound signal carrying DTMF audio information received by an audio receiving unit. Performing a discrete Fourier transform to obtain a gain and a second harmonic gain of the DTMF corresponding frequency point. If the gain of the DTMF corresponding frequency point is lower than a preset threshold or the second harmonic gain exceeds a preset threshold, the frequency point data is determined as Interfere with the data, otherwise, judge the frequency point as the effective frequency point, and check the table to parse the corresponding value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2011/075753 WO2012171183A1 (en) | 2011-06-15 | 2011-06-15 | Electronic scale, mobile device and body weight measurement system and method for wireless transmission |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2011/075753 WO2012171183A1 (en) | 2011-06-15 | 2011-06-15 | Electronic scale, mobile device and body weight measurement system and method for wireless transmission |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2012171183A1 true WO2012171183A1 (en) | 2012-12-20 |
Family
ID=47356500
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2011/075753 WO2012171183A1 (en) | 2011-06-15 | 2011-06-15 | Electronic scale, mobile device and body weight measurement system and method for wireless transmission |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2012171183A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI662258B (en) * | 2018-04-25 | 2019-06-11 | 緯創資通股份有限公司 | Electronic measurement apparatus |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09170945A (en) * | 1995-12-21 | 1997-06-30 | Tec Corp | Electronic scale |
GB2350435A (en) * | 1999-05-27 | 2000-11-29 | Pauline Ann Holmes | Electronic scales including a memory |
CN2769865Y (en) * | 2003-07-18 | 2006-04-05 | 联通控股有限公司 | Radio human body fat scale |
CN101247183A (en) * | 2007-02-15 | 2008-08-20 | 凌阳科技股份有限公司 | Transmission device, receiving device, system and method for implementing communication based on ultrasonic wave |
CN101488929A (en) * | 2009-01-22 | 2009-07-22 | 张卫强 | Voice modulation data transmission system and transmission method |
CN201666812U (en) * | 2010-03-09 | 2010-12-08 | 成都乐动信息技术有限公司 | Electronic scale with wireless interface |
-
2011
- 2011-06-15 WO PCT/CN2011/075753 patent/WO2012171183A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09170945A (en) * | 1995-12-21 | 1997-06-30 | Tec Corp | Electronic scale |
GB2350435A (en) * | 1999-05-27 | 2000-11-29 | Pauline Ann Holmes | Electronic scales including a memory |
CN2769865Y (en) * | 2003-07-18 | 2006-04-05 | 联通控股有限公司 | Radio human body fat scale |
CN101247183A (en) * | 2007-02-15 | 2008-08-20 | 凌阳科技股份有限公司 | Transmission device, receiving device, system and method for implementing communication based on ultrasonic wave |
CN101488929A (en) * | 2009-01-22 | 2009-07-22 | 张卫强 | Voice modulation data transmission system and transmission method |
CN201666812U (en) * | 2010-03-09 | 2010-12-08 | 成都乐动信息技术有限公司 | Electronic scale with wireless interface |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI662258B (en) * | 2018-04-25 | 2019-06-11 | 緯創資通股份有限公司 | Electronic measurement apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102291205B (en) | High-reliability data transmission method and device based on multi-frequency sound waves | |
CN106531165A (en) | Portable smart home voice control system and control method adopting same | |
CN203721183U (en) | A voice wakening device | |
CN108777596B (en) | Communication method, communication system and computer readable storage medium based on sound wave | |
CN107369447A (en) | A kind of indoor intelligent control system based on speech recognition | |
CN102394724A (en) | Highly-reliable data transmission method and device based on dual tone multiple frequency sound waves | |
WO2019153477A1 (en) | Voice remote-control method and apparatus | |
JP2020513988A (en) | Improved wireless communication for medical devices | |
EP2423806A1 (en) | Method and device for transmitting universal serial bus audio data through a wireless data terminal | |
CN102334977A (en) | Measuring device, mobile equipment, system for measuring physiological parameters of human bodies and wireless transmission method for measuring data | |
WO2001045054A3 (en) | The acoustic encoding of dynamic identification codes | |
CN103166702A (en) | Method and device for configuring wireless network in voice frequency mode | |
CN102571214A (en) | Sound wave communication system and communication method applied to same | |
CN113689864B (en) | Audio data processing method and device and storage medium | |
WO2012089098A1 (en) | Method for communicating with a portable device having audio output | |
CN106465082A (en) | Codec inversion detection | |
CN102322928B (en) | Electronic scale, mobile equipment, body weight measuring system and wireless transmission method | |
JP6549009B2 (en) | Communication terminal and speech recognition system | |
WO2012171183A1 (en) | Electronic scale, mobile device and body weight measurement system and method for wireless transmission | |
CN206312567U (en) | A kind of portable intelligent household speech control system | |
CN203911924U (en) | Bluetooth device with voice wake-up | |
CN102426769B (en) | Remote controller device and communication method | |
TW201328226A (en) | Method and device for information transmission | |
CN201984809U (en) | Bluetooth wideband speech processing device | |
CN203408062U (en) | Intelligent heart sound signal auscultation and identification system based on Android |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 11867998 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 11867998 Country of ref document: EP Kind code of ref document: A1 |