CN109714740A - Body surveys intelligent radio speaker and body surveys the exchange method of peripheral hardware and terminal - Google Patents
Body surveys intelligent radio speaker and body surveys the exchange method of peripheral hardware and terminal Download PDFInfo
- Publication number
- CN109714740A CN109714740A CN201811646052.0A CN201811646052A CN109714740A CN 109714740 A CN109714740 A CN 109714740A CN 201811646052 A CN201811646052 A CN 201811646052A CN 109714740 A CN109714740 A CN 109714740A
- Authority
- CN
- China
- Prior art keywords
- surveys
- peripheral hardware
- intelligent radio
- terminal
- module
- 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
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention discloses body and surveys the exchange method that intelligent radio speaker and body survey peripheral hardware and terminal, and body surveys peripheral hardware, and body survey test data is sent intelligent radio speaker by module by wireless communication;Intelligent radio speaker sends the packet within the student information table for importing storage and arriving handheld terminal APP by bluetooth module;The data of student information table export to terminal by the application program of USB data line or handheld terminal;The present invention reduces the technical requirements to peripheral hardware, and reduces testing cost, improves the accuracy of the physique test data received, avoids the loss and omission of data, improves the integrity degree of physique test data.
Description
Technical field
The present invention relates to PE testing clothing arts, in particular to body surveys intelligent radio speaker and body surveys peripheral hardware and terminal
Exchange method.
Background technique
Currently, body surveys the test for being widely used in living to body, with the development of science and technology, body is surveyed from original artificial survey
Examination is gradually transitions to be tested with machine, it is necessary to it is whole to provide a kind of acquisition that equipment is used to survey body peripheral hardware test data
Reason, connector survey peripheral hardware and terminal.
Summary of the invention
For overcome the deficiencies in the prior art, intelligent radio speaker is surveyed the purpose of the present invention is to provide a kind of body and body is surveyed
The exchange method of peripheral hardware and terminal reduces the technical requirements to peripheral hardware, and reduces testing cost, improves the constitution received and surveys
The accuracy for trying data avoids the loss and omission of data, improves the integrity degree of physique test data.
The purpose of the present invention adopts the following technical scheme that realization:
Body surveys intelligent radio speaker and body surveys the exchange method of peripheral hardware and terminal, comprising the following steps:
S1, body survey peripheral hardware by wireless communication module by body survey test data be sent to body survey intelligent radio speaker;
S2, intelligent radio speaker, which send the packet within the student for importing storage to handheld terminal APP by bluetooth module, to be believed
Cease table;
S3, student information table data computer is exported to by the application program of USB data line or handheld terminal
Terminal.
Further, it is that many-one communicates that the body, which surveys peripheral hardware with the intelligent radio speaker, the intelligent radio speaker and
The handheld terminal is One-to-one communication.
Further, the data include data length, this upload record sum, record number, student number, test item,
Test result, testing time, gender and name.
Further, the student information table include test No., student number, gender, name, test item, test result,
Testing time and record sum.
Further, the wireless communication module includes 2.4G communication module and its 2.4G communication control circuit.
Further, the bluetooth module includes bluetooth communication and its Bluetooth communication control circuit.
Further, the intelligent radio speaker further includes voice module, and the voice module is used for the intelligent radio sound
Case surveys peripheral hardware with the body and the handheld terminal connect and makes a sound prompt with clock synchronization.
Further, the handheld terminal APP includes data management module, achievement import modul, achievement export module, test
Control module, test and management module, score inquiry module, increases achievement module and attendance management module at roll-call module manually.
It is that the present invention generates the utility model has the advantages that
Body surveys peripheral hardware and physique test data is first transmitted to intelligent radio speaker, and intelligent radio speaker again sends out test data
It is sent to the end PC, reduces the technical requirements to peripheral hardware, and reduce testing cost;The data that physically connected receives are verified, and raising connects
The accuracy of the physique test data received;Physique test bluetooth data communication mode is transmitted, the loss and something lost of data are avoided
Leakage improves the integrity degree of physique test data.
Detailed description of the invention
Fig. 1 is the process that body provided by the invention surveys intelligent radio speaker and body survey peripheral hardware and the exchange method of terminal
Figure;
Specific embodiment
In the following, being described further in conjunction with attached drawing and specific embodiment to the present invention, it should be noted that not
Under the premise of conflicting, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination
Example.
Referring to Fig. 1, body surveys intelligent radio speaker and body surveys the exchange method of peripheral hardware and terminal, comprising the following steps:
S1, body survey peripheral hardware (including various bodies survey tester), and body survey test data is sent body by module by wireless communication
Survey intelligent radio speaker;
S2, intelligent radio speaker send the packet within importing storage to handheld terminal (plate, mobile phone by bluetooth module
Deng) the student information table of APP;
S3, student information table data computer is exported to by the application program of USB data line or handheld terminal
Terminal.
Preferably, after opening wireless sound box and starting successfully, other ends with function of Bluetooth communication such as mobile phone or plate
End equipment can search the MAC of BTM on speaker and be directly connected to, to ensure to be not coupled to other peripheral hardwares, on speaker
OLED can show its MAC and the connection after handheld terminal confirmation is consistent, due to 12 MAC inconvenience inspections, in speaker and hand
Terminal is held all 12 bit macs are converted to 4 to show using same CRC16_CCITT algorithm.
Therefore post-processing step is powered on to BTM are as follows:
1, the USART2 baud rate for initializing STM32 is 9600;(USART2 is STM32 and BTM communication interface)
USART2_Config(9600);
2, control BTM enters AT mode;It is instructed using AT by BTM factory reset, and requests MAC;
AT_OPEN;Reset_Blue_Setting();Ask_Blue_MAC();
3, STM32 scanning carries out CRC16_CCITT processing after obtaining MAC and is shown on OLED;
4, it is instructed using AT and sets 115200 for BTM communication baud rate;
5, USART2 baud rate is configured to 115200;Exit AT mode.
Preferably, bluetooth equally sends back to STM32 by USART2 after receiving the data that other terminals are sent.STM32
The terminal processes that data are carried out with Byte one by one, meeting continuous 45 Byte of data format, (protocol definition 45Byte is a frame
Data) processing function will be triggered;Receiver function and processing function program structure are as follows:
Preferably, bluetooth equally sends back to STM32 by USART2 after receiving the data that other terminals are sent.
The communication protocol of bluetooth and handheld terminal:
The data that the handheld terminal that speaker and mobile phone or plate etc. carry bluetooth module is communicated all are with 45 Byte
As one frame data/instruction.
Speaker is sent to the data format of plate are as follows:
Data head | Operation code | Operand | It is reserved | It examines |
2Byte | 1Byte | 21Byte | 19Byte | 2Byte |
Plate is sent to the data format of speaker are as follows:
Data head | Operation code | Operand | It is reserved | It examines |
2Byte | 1Byte | 38Byte | 2Byte | 2Byte |
Wherein, data head is used for the starting of flag data frame, generally two identical characters;
Because the possible value of the operation code of 1 Byte is 0-255, for convenience of instruction (operation code) is expanded, speaker is to plate
Operation code value since 0, plate to speaker operation code since 255 value;
When speaker and plate will send data, CRC16_CCITT is carried out to preceding 43 Byte of data frame and recycles school of tabling look-up
The verification data that 2Byte is obtained after testing form a complete frame data with preceding 43 Byte and retransmit away, acceptance inspection
Same way is used to ensure that data transmission and reception are normal.
CRC16_CCITT circulation is tabled look-up, and to verify bottom function as follows:
Preferably, speaker and body survey the communication protocol of peripheral hardware:
From answer-mode (be equivalent to one can data carousel back and forth), i.e., 2.4G communication module on speaker be configured to
It is actively to receive when receiving peripheral data, does not need triggering and receive interruption, but send data (request of data directly to peripheral hardware
Be put into conveyer belt), peripheral hardware receive instruction after speaker need information be put into buffer area (data of return are put into conveyer belt),
Read data (reading data from conveyer belt) in the data buffer zone for the module that host has been interconnected from two;
And the 2.4G communication module that body surveys peripheral hardware is configured to receive interrupt mode, triggers accordingly after receiving speaker data
Interrupt processing function and returned data.
Two 2.4G modules need hardware address and communication channel having the same when being communicated.Speaker will be simultaneously
It surveys peripheral hardware with multiple bodies to be communicated, it is necessary to build by constantly switching hardware address and the communication channel of communication with different peripheral
Vertical communication channel.
Because speaker is configured to from answer-mode, therefore it is identical as the body survey sending and receiving data format of peripheral hardware:
Data head | Operation code | Operand | Markers | It examines |
4Byte | 1Byte | 25Byte | 1Byte | 1Byte |
Wherein, data head is generally 4 identical characters;
Operation code function includes: that setting peripheral hardware numbers, access peripheral hardware, binding student number, starts to test, terminate test etc.;
Operand content includes: peripheral hardware electricity, student number, achievement, peripheral hardware number etc.;
Using the check bit of exclusive or check parameter 1Byte size, bottom code routine is as follows:
U32Crc_STM8 (u32*data, u8size) // input array pointer and the array for needing to calculate check value
Length
Preferably, 2.4G communication module is surveyed peripheral hardware with body and is communicated
The body measurement equipment communicated with speaker also all carries NRF24L01 communication module.Speaker enters poll mould after powering on
Formula, i.e. starting 2.4G communication.According to the blue-teeth data instruction from handheld terminal, polling status is switched over, and carries out
Data transmission.It is broadly divided into access peripheral state according to communication polling status mark, setting peripheral hardware is numbered, starting test, is stopped
It only communicates, terminate test, binding student number isotype.Main code is as follows:
It realizes one-to-many communication, constantly switches visit of the communication channel realization to the peripheral hardware of different channel using speaker
It asks.Bottom poll code is as follows:
Further, it is that many-one communicates that body, which surveys peripheral hardware with intelligent radio speaker, and intelligent radio speaker and handheld terminal are one
It is communicated to one.
Further, data include data length, this upload record sum, record number, student number, test item, test
As a result, testing time, gender and name.
Further, student information table includes test No., student number, gender, name, test item, test result, test
Time and record sum.
Further, wireless communication module includes 2.4G communication module and its 2.4G communication control circuit;Bluetooth module includes
Bluetooth communication and its Bluetooth communication control circuit, Bluetooth communication control circuit include manual reset circuit, forced resetting electricity
Road, condition indication circuit and start-up circuit.
Preferably, 2.4G communication module uses NRF24L01.
Preferably, bluetooth communication model BTM0608C2X.
Further, intelligent radio speaker further includes voice module, and voice module surveys peripheral hardware for intelligent radio speaker and body
It is connected with handheld terminal and makes a sound prompt with clock synchronization.
Further, handheld terminal APP includes data management module, achievement import modul, achievement export module, testing and control
Module, test and management module, score inquiry module, increases achievement module and attendance management module at roll-call module manually.
The above embodiment is only the preferred embodiment of the present invention, and the scope of protection of the present invention is not limited thereto,
The variation and replacement for any unsubstantiality that those skilled in the art is done on the basis of the present invention belong to institute of the present invention
Claimed range.
Claims (8)
1. body surveys intelligent radio speaker and body surveys the exchange method of peripheral hardware and terminal, which comprises the following steps:
S1, body survey peripheral hardware by wireless communication module by body survey test data be sent to body survey intelligent radio speaker;
S2, intelligent radio speaker send the packet within the student information table for importing storage and arriving handheld terminal APP by bluetooth module
Lattice;
S3, student information table data terminal is exported to by the application program of USB data line or handheld terminal.
2. body according to claim 1 surveys intelligent radio speaker and body surveys the exchange method of peripheral hardware and terminal, feature
Be: it is that many-one communicates that the body, which surveys peripheral hardware with the intelligent radio speaker, the intelligent radio speaker and the hand-held end
End is One-to-one communication.
3. body according to claim 1 surveys intelligent radio speaker and body surveys the exchange method of peripheral hardware and terminal, feature
Be: the data include data length, this upload record sum, record number, student number, test item, test result, survey
Try time, gender and name.
4. body according to claim 1 surveys intelligent radio speaker and body surveys the exchange method of peripheral hardware and terminal, feature
Be: the student information table include test No., student number, gender, name, test item, test result, the testing time and
Record sum.
5. body according to claim 1 surveys intelligent radio speaker and body surveys the exchange method of peripheral hardware and terminal, feature
Be: the wireless communication module includes 2.4G communication module and its 2.4G communication control circuit.
6. body according to claim 1 surveys intelligent radio speaker and body surveys the exchange method of peripheral hardware and terminal, feature
Be: the bluetooth module includes bluetooth communication and its Bluetooth communication control circuit.
7. body according to claim 1 surveys intelligent radio speaker and body surveys the exchange method of peripheral hardware and terminal, feature
Be: the intelligent radio speaker further includes voice module, and the voice module is for the intelligent radio speaker and the body
Survey peripheral hardware is connected with the handheld terminal makes a sound prompt with clock synchronization.
8. body according to claim 1 surveys intelligent radio speaker and body surveys the exchange method of peripheral hardware and terminal, feature
Be: the handheld terminal APP include data management module, achievement import modul, achievement export module, testing control module,
Roll-call module, score inquiry module, increases achievement module and attendance management module at test and management module manually.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811646052.0A CN109714740B (en) | 2018-12-30 | 2018-12-30 | Interaction method of body measurement intelligent wireless sound box, body measurement peripheral and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811646052.0A CN109714740B (en) | 2018-12-30 | 2018-12-30 | Interaction method of body measurement intelligent wireless sound box, body measurement peripheral and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109714740A true CN109714740A (en) | 2019-05-03 |
CN109714740B CN109714740B (en) | 2022-09-20 |
Family
ID=66260417
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811646052.0A Active CN109714740B (en) | 2018-12-30 | 2018-12-30 | Interaction method of body measurement intelligent wireless sound box, body measurement peripheral and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109714740B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113611385A (en) * | 2021-07-19 | 2021-11-05 | 南京七加二网络科技有限公司 | Physical measurement data management method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104090841A (en) * | 2014-07-09 | 2014-10-08 | 戎檄 | Digital cluster talkback Bluetooth peripheral based on intelligent mobile terminal |
CN204791210U (en) * | 2015-08-12 | 2015-11-18 | 广州华夏汇海科技有限公司 | Medium and long race test equipment |
CN204813877U (en) * | 2015-08-12 | 2015-12-02 | 广州华夏汇海科技有限公司 | Vital capacity test equipment |
CN204813816U (en) * | 2015-08-12 | 2015-12-02 | 广州华夏汇海科技有限公司 | Physique check out test set |
CN105812983A (en) * | 2014-12-29 | 2016-07-27 | 中国科学院沈阳自动化研究所 | Wireless sound box having health state prompting function |
-
2018
- 2018-12-30 CN CN201811646052.0A patent/CN109714740B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104090841A (en) * | 2014-07-09 | 2014-10-08 | 戎檄 | Digital cluster talkback Bluetooth peripheral based on intelligent mobile terminal |
CN105812983A (en) * | 2014-12-29 | 2016-07-27 | 中国科学院沈阳自动化研究所 | Wireless sound box having health state prompting function |
CN204791210U (en) * | 2015-08-12 | 2015-11-18 | 广州华夏汇海科技有限公司 | Medium and long race test equipment |
CN204813877U (en) * | 2015-08-12 | 2015-12-02 | 广州华夏汇海科技有限公司 | Vital capacity test equipment |
CN204813816U (en) * | 2015-08-12 | 2015-12-02 | 广州华夏汇海科技有限公司 | Physique check out test set |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113611385A (en) * | 2021-07-19 | 2021-11-05 | 南京七加二网络科技有限公司 | Physical measurement data management method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109714740B (en) | 2022-09-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104702322B (en) | Method and apparatus for the mode of operation of the blue tooth interface that controls bluetooth module | |
CN105577293B (en) | A kind of test method of bluetooth equipment, apparatus and system | |
CN201181992Y (en) | Real time humiture monitoring and control device based on mobile terminal | |
CN112020048A (en) | Bluetooth device pairing method, device and storage medium | |
CN103618987B (en) | WIFI wireless headset batch audition and radio frequency test method | |
CN109272733A (en) | It is a kind of that multilist is supported to close the multiterminal multimode Internet of Things communicating terminal and its meter register method copied | |
CN109116400A (en) | A kind of low power targeting methods, device, system, computer equipment and storage medium | |
CN103246909A (en) | Electronic tag, and article seeking system and method applying same | |
CN106658756A (en) | Method and device for recognizing connection between terminal device and hotspot | |
CN105141627B (en) | Data sending and receiving method, device and equipment | |
CN109714740A (en) | Body surveys intelligent radio speaker and body surveys the exchange method of peripheral hardware and terminal | |
CN203933958U (en) | One wireless digital family navigation system | |
CN206481311U (en) | A kind of adaptive Bluetooth test system | |
CN207624055U (en) | A kind of wireless blue tooth attendance checking system | |
CN111726750A (en) | Ultra-wideband two-way ranging trilateral positioning system and method thereof | |
EP3382915B1 (en) | Mobile communication device, testing system and method for testing a device under test | |
CN111277303A (en) | Production testing method and system based on universal asynchronous receiving and transmitting transmitter to Bluetooth | |
CN107978026A (en) | A kind of wireless blue tooth attendance checking system | |
CN101902264A (en) | Control method of smart antenna in 802.11 wireless communications | |
CN104091433A (en) | System and method for wirelessly transmitting data of digital scopemeter based on RFID (Radio Frequency Identification) | |
CN105611668B (en) | Intelligent light control system and the method for obtaining networking data | |
CN208539901U (en) | A kind of data read-write system based on NFC | |
CN107370516A (en) | Method, terminal device and the computer-readable recording medium of wireless telecommunications | |
CN107249168A (en) | A kind of data directional transmissions and method of reseptance and device | |
CN101368876B (en) | Testing bench frame control system for open type internal combustion engine |
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 |