CN104579435A - Multiple-master-with-multiple-slave Bluetooth communication method for portable health examination box - Google Patents

Multiple-master-with-multiple-slave Bluetooth communication method for portable health examination box Download PDF

Info

Publication number
CN104579435A
CN104579435A CN201510037707.4A CN201510037707A CN104579435A CN 104579435 A CN104579435 A CN 104579435A CN 201510037707 A CN201510037707 A CN 201510037707A CN 104579435 A CN104579435 A CN 104579435A
Authority
CN
China
Prior art keywords
bluetooth module
equipment
equipment bluetooth
main equipment
master
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510037707.4A
Other languages
Chinese (zh)
Other versions
CN104579435B (en
Inventor
王巍
陈立峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hebei Xunzheng Medical Technology Co Ltd
Original Assignee
Hebei Xunzheng Medical Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hebei Xunzheng Medical Technology Co Ltd filed Critical Hebei Xunzheng Medical Technology Co Ltd
Priority to CN201510037707.4A priority Critical patent/CN104579435B/en
Publication of CN104579435A publication Critical patent/CN104579435A/en
Application granted granted Critical
Publication of CN104579435B publication Critical patent/CN104579435B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a multiple-master-with-multiple-slave Bluetooth communication method for a portable health examination box. The communication method comprises the following steps that: 1, mater communication equipment and slave communication equipment are designated and preset; 2, a master equipment Bluetooth module and slave equipment Bluetooth modules are powered up simultaneously and the master equipment Bluetooth module and the slave equipment Bluetooth modules enter a pair matching mode; 3, the master equipment Bluetooth module searches for the slave equipment Bluetooth modules and connects with the slave equipment Bluetooth modules; 4, the connection in the step 3 is interrupted and a far-end Bluetooth address is obtained; 5, the step 3 and the step 4 are repeated till Bluetooth addresses of all the slave equipment Bluetooth modules are obtained and backuped; 6, the master equipment Bluetooth module is connected with the slave equipment Bluetooth modules according to the addresses; 7, the steps from 1 to 6 are repeated, the master equipment Bluetooth module is set into a slave equipment Bluetooth module, a new master equipment Bluetooth module is designated till the master equipment Bluetooth module designated for each time acquires and saves corresponding addresses of the slave equipment Bluetooth modules in need of connections, and the multiple-master-with-multiple-slave Bluetooth communication mode is achieved. The multiple-master-with-multiple-slave Bluetooth communication method for the portable health examination box has the advantages that the usage is convenient, accurate and efficient, and no connecting wire is needed.

Description

A kind of many masters for portable health inspection integrated box are many from Bluetooth communication method
Technical field
The present invention relates to a kind of many masters for portable health inspection integrated box many from Bluetooth communication method, belong to wireless communication field.
Background technology
Due to the radiotechnics that Bluetooth technology is a kind of support equipment short haul connection (within general 10m), the wireless messages carried out between mobile phone, PDA, wireless headset, notebook computer and related peripherals etc. can be comprised and exchange.Traditional Bluetooth technology many employings distributed network structure and fast frequency hopping and short packet technology, support point point to-point communication, namely an equipment is to an equipment, but transmits data at needs and multiple equipment simultaneously and then cannot complete.
At present, portable health checks that integrated box is a kind of Medical Devices being applicable to onsite application and field operation, multiple testing tool and inspection apparatus is placed with in it, information sharing, transmission and preservation is often needed between various inspection apparatus or testing tool, between communication interface, line is very inconvenient, Bluetooth transmission also can only be transmitted one to one, and efficiency is extremely low and easily make mistakes.
Summary of the invention
Technical problem to be solved by this invention there is provided a kind of convenience, accurately, efficient and check that many masters of integrated box are many from Bluetooth communication method without the need to connecting line for portable health.
Technical scheme of the present invention is as follows:
Check that many masters of integrated box are many from a Bluetooth communication method for portable health, it comprises the steps:
(1) specify master/slave communication equipment and pre-set:
Check at described portable health in each inspection apparatus in integrated box and bluetooth module is installed, bluetooth module built-in for each inspection apparatus is divided into a main equipment bluetooth module and N number of from equipment bluetooth module, and to a main equipment bluetooth module with N number ofly to pre-set respectively from equipment bluetooth module, described N is more than or equal to 2;
(2) to described main equipment bluetooth module with power on together with equipment bluetooth module, make described main equipment bluetooth module with all enter pairing mode from equipment bluetooth module;
(3) utilize main equipment bluetooth module to search for from equipment bluetooth module, search and be in connecting after equipment bluetooth module of searched state;
(4) high level pulse of at least more than 100ms is inputted to the PIO0 pin of main equipment bluetooth module, main equipment bluetooth module described in break step (3) and describedly to connect between equipment bluetooth module, after disconnecting, main equipment control program sends " AT+RADD " instruction to main equipment bluetooth module, copy from equipment bluetooth module Bluetooth address, main equipment control program obtains far-end Bluetooth address;
(5) repeatedly perform step (3) ~ (4), each acquisition Bluetooth address from equipment bluetooth module, until obtain all Bluetooth address from equipment bluetooth module;
(6) all Bluetooth address backup that will get, by Bluetooth address be connected to need to connect from equipment bluetooth module, realize one master and multiple slaves and connect;
(7) step (1) ~ (6) are repeated, revise pre-setting of described main equipment bluetooth module, be set to from equipment bluetooth module, specify the main equipment bluetooth module that new, and reformulate pre-setting in step (1), until the main equipment bluetooth module of specifying obtains and preserves the corresponding address from equipment bluetooth module needing separately to connect at every turn, realize many main many from bluetooth communication mode.
Further, under idle condition before described step (1), described bluetooth module is all set to from equipment bluetooth module, when there are data and transmitting one to one, the bluetooth module of transmitting terminal is set to main equipment bluetooth module, connects the bluetooth module of corresponding receiving terminal, the bluetooth module of described receiving terminal is namely from equipment bluetooth module, disconnect after sending data, both are set to again from equipment bluetooth module.
The invention has the beneficial effects as follows: the present invention be much much more main from Bluetooth communication method, check at portable health in each inspection apparatus in integrated box and bluetooth module is installed, Bluetooth Communication Technology is utilized to achieve the integration of multiple main frame to multiple checkout facility, instead of the mode that traditional wire connects, doctor can be made no longer by the constraint of on line, more flexible easily service test equipment checks those who are investigated, it also avoid the possibility made a mistake when inspection machine is connected with main frame by doctor.Information resources can be effectively integrated, the data message of multiple inspection apparatus is interconnected or is connected with main frame, facilitate information sharing and transmission, facilitate onsite application and the field operation of inspection apparatus, also be more conducive to inspection apparatus dispersion to carry, greatly increase the scope of application of inspection apparatus, easy to use, without the need to connecting line, the misoperation probability of user effectively can be reduced.
Accompanying drawing explanation
Fig. 1 is method flow diagram of the present invention.
Fig. 2 is the position relationship schematic diagram of each parts in the present invention.
Wherein, 1 portable health checks integrated box, 2 inspection apparatus.
Embodiment
Below in conjunction with Fig. 1 ~ 2 and embodiment, the present invention is described in further detail.
As shown in Figure 1 and 2, many masters of realizing as follows of embodiment 1 many from communication means:
(1) specify master/slave communication equipment and pre-set:
Check in integrated box 1 at described portable health and be placed with inspection apparatus 2, check at described portable health in each inspection apparatus 2 in integrated box 1 and bluetooth module is installed, adopt bluetooth module adopt model be BMX ?02/03 serial bluetooth serial ports module, each inspection apparatus 2 can be divided into built-in main equipment bluetooth module with built-in from equipment bluetooth module, bluetooth module built-in in an inspection apparatus 2 is a main equipment bluetooth module, the bluetooth module that other inspection apparatus 2 is built-in is from equipment bluetooth module, be N from the quantity of equipment bluetooth module, and need a main equipment bluetooth module and N number ofly to pre-set respectively from equipment bluetooth module, described N is more than or equal to 2, when described inspection apparatus 2 is for checking main frame, the inspection main frame model adopted is XZMDS-1500B-MB, be provided with from the inspection apparatus 2 of equipment bluetooth module can be the routine inspection equipment such as display, blood oxygen checkout gear, blood pressure detector, ECG tester, apparatus for testing body temperature or blood cell checkout gear, it is conventional medical examination apparatus, therefore does not provide diagram,
(2) to described main equipment bluetooth module with power on together with equipment bluetooth module, make described main equipment bluetooth module with all enter pairing mode from equipment bluetooth module;
(3) utilize main equipment bluetooth module to search for from equipment bluetooth module, search and be in connecting after equipment bluetooth module of searched state;
(4) high level pulse of at least more than 100ms is inputted to the IPO1 pin of main equipment bluetooth module, main equipment bluetooth module described in break step (3) and describedly to connect between equipment bluetooth module, after disconnecting, main equipment control program sends " AT+RADD " instruction to main equipment bluetooth module, copy from equipment bluetooth module Bluetooth address, main equipment control program obtains far-end Bluetooth address;
(5) repeatedly perform step (3) ~ (4), each acquisition Bluetooth address from equipment bluetooth module, until obtain all Bluetooth address from equipment bluetooth module;
(6) all Bluetooth address backup that will get, by Bluetooth address be connected to need to connect from equipment bluetooth module, realize one master and multiple slaves and connect;
(7) step (1) ~ (6) are repeated, revise pre-setting of described main equipment bluetooth module, be set to from equipment bluetooth module, specify the main equipment bluetooth module that new, and reformulate pre-setting in step (1), until the main equipment bluetooth module of specifying obtains and preserves the corresponding address from equipment bluetooth module needing separately to connect at every turn, realize many main many from bluetooth communication mode.
Further, under idle condition before described step (1), described bluetooth module is all set to from equipment bluetooth module, when there are data and transmitting one to one, the bluetooth module of transmitting terminal is set to main equipment bluetooth module, connects the bluetooth module of corresponding receiving terminal, the bluetooth module of described receiving terminal is namely from equipment bluetooth module, disconnect after sending data, both are set to again from equipment bluetooth module.
Further, described step (1) to pre-set method as follows:
It is as follows that main equipment control program arranges main equipment bluetooth module AT instruction step: 1, send out AT+ROLE=M, 2, send out AT+IMME=0;
Arrange as follows from equipment bluetooth module AT instruction step from facility control program: 1, send out AT+ROLE=S, 2, send out AT+IMME=0,3, AT+SCAN=2.
The operation principle of the present embodiment is as follows:
First, carry out pre-setting main equipment bluetooth module and from equipment bluetooth module, send AT instruction to main equipment bluetooth module and pre-set, its step is as follows: be 1, main equipment bluetooth module by module installation, send out AT+ROLE=M; 2, by the zero setting of bluetooth module address, AT+IMME=0 is sent out;
Pre-set sending AT instruction from equipment bluetooth module, its step is as follows:
1, be from equipment bluetooth module by module installation, send AT+ROLE=S, acquiescence can not send out this instruction from equipment;
2, by the zero setting of bluetooth module address, AT+IMME=0 is sent;
3, send AT+SCAN=2, namely can not searchedly arrive, but the main equipment connected can directly connect;
Proceed as follows after pre-setting:
(1) it is multiple from equipment bluetooth module that all the other are set according to the method described above, and powers on together, all enter pairing mode from equipment bluetooth module, LED quick flashing;
(2) main equipment control program to send instructions AT+ROLE=M to main equipment bluetooth module, is main equipment bluetooth module by module installation, then the AT+RESTART that sends instructions, and is resetted by bluetooth module;
(3) see that the LED on main equipment bluetooth module is long bright, N number of have one also to grow bright from the LED equipment bluetooth module from equipment bluetooth module, represents that main equipment bluetooth module has connected one from equipment bluetooth module;
(4) main equipment bluetooth module presses M button (or inputting the high level pulse of at least more than 100ms to the PIO0 pin of main equipment bluetooth module), LED on main equipment bluetooth module dodges slowly, what connected also dodges slowly from the LED equipment bluetooth module, represents and disconnects;
(5) after disconnecting above-mentioned connection, send instructions AT+RADD, copies from equipment bluetooth module Bluetooth address to main equipment bluetooth module, obtains far-end from equipment bluetooth module Bluetooth address;
(6) main equipment presses M button (or inputting the high level pulse of at least more than 100ms to PIO0 pin) again, LED quick flashing on main equipment bluetooth module, main equipment bluetooth module enters search condition, now can see again that another is long bright from the LED equipment bluetooth module, represent that main equipment bluetooth module has connected this from equipment bluetooth module;
(7) so repeatedly, can all connecting one time from equipment bluetooth module and getting the address from equipment bluetooth module main equipment bluetooth module periphery;
(8) the backup of the address from equipment bluetooth module got, by Bluetooth address be connected to need connect from equipment bluetooth module, the bluetooth completing one master and multiple slaves connects, described in main equipment bluetooth module is installed inspection apparatus 2 take the communication means of one master and multiple slaves to connect each inspection apparatus by bluetooth.
The one master and multiple slaves that above method can realize bluetooth connects, and continues following steps, realizes the many masters of bluetooth many from connection:
This main equipment bluetooth module above-mentioned is changed into from equipment bluetooth module, select a bluetooth module as new main equipment bluetooth module in addition, other bluetooth modules are from equipment bluetooth module, pre-set described in change, the bluetooth module doing main equipment bluetooth module is needed to repeat above-mentioned steps, until the main equipment bluetooth module of specifying obtains and preserves the corresponding address from equipment bluetooth module needing separately to connect at every turn, it is many from connection that the method can realize the many masters of bluetooth.
Above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in previous embodiment, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of embodiment of the present invention technical scheme.

Claims (2)

1. check that many masters of integrated box are many from a Bluetooth communication method for portable health, it is characterized in that: it comprises the steps:
(1) specify master/slave communication equipment and pre-set:
In each inspection apparatus (2) in described multi-parameter health examination integrated box (1), bluetooth module is installed, bluetooth module built-in for each inspection apparatus (2) is specified one for main equipment bluetooth module, all the other are from equipment bluetooth module, and pre-set respectively from equipment bluetooth module a main equipment bluetooth module and remaining;
2) to described main equipment bluetooth module with power on together with equipment bluetooth module, make described main equipment bluetooth module with all enter pairing mode from equipment bluetooth module;
(3) utilize main equipment bluetooth module to search for from equipment bluetooth module, search and be in connecting after equipment bluetooth module of searched state;
(4) high level pulse of at least more than 100ms is inputted to the IPO01 pin of main equipment bluetooth module, main equipment bluetooth module described in break step (3) and describedly to connect between equipment bluetooth module, after disconnecting, main equipment control program sends instruction to main equipment bluetooth module, copy from equipment bluetooth module Bluetooth address, main equipment control program obtains far-end Bluetooth address;
(5) repeatedly perform step (3) ~ (4), each acquisition Bluetooth address from equipment bluetooth module, until obtain all Bluetooth address from equipment bluetooth module;
(6) all Bluetooth address backup that will get, by Bluetooth address be connected to need to connect from equipment bluetooth module, realize one master and multiple slaves and connect;
(7) step (1) ~ (6) are repeated, revise pre-setting of described main equipment bluetooth module, be set to from equipment bluetooth module, specify the main equipment bluetooth module that new, and reformulate pre-setting in step (1), until the main equipment bluetooth module of specifying obtains and preserves the corresponding address from equipment bluetooth module needing separately to connect at every turn, realize many main many from bluetooth communication mode.
2. a kind of many masters for portable health inspection integrated box according to claim 1 are many from Bluetooth communication method, it is characterized in that: under the idle condition before described step (1), described bluetooth module is all set to from equipment bluetooth module, when there are data and transmitting one to one, the bluetooth module of transmitting terminal is set to main equipment bluetooth module, connect the bluetooth module of corresponding receiving terminal, the bluetooth module of described receiving terminal is namely from equipment bluetooth module, disconnect after sending data, both are set to again from equipment bluetooth module.
CN201510037707.4A 2015-01-26 2015-01-26 It is a kind of to check more masters of integrated box mostly from Bluetooth communication method for portable health Active CN104579435B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510037707.4A CN104579435B (en) 2015-01-26 2015-01-26 It is a kind of to check more masters of integrated box mostly from Bluetooth communication method for portable health

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510037707.4A CN104579435B (en) 2015-01-26 2015-01-26 It is a kind of to check more masters of integrated box mostly from Bluetooth communication method for portable health

Publications (2)

Publication Number Publication Date
CN104579435A true CN104579435A (en) 2015-04-29
CN104579435B CN104579435B (en) 2018-09-21

Family

ID=53094762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510037707.4A Active CN104579435B (en) 2015-01-26 2015-01-26 It is a kind of to check more masters of integrated box mostly from Bluetooth communication method for portable health

Country Status (1)

Country Link
CN (1) CN104579435B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108601007A (en) * 2018-04-28 2018-09-28 上海与德科技有限公司 Blueteeth network and its network-building method, main equipment, from equipment
CN115002941A (en) * 2022-08-08 2022-09-02 浙江正泰仪器仪表有限责任公司 Communication method of Bluetooth electric energy meter

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364820B (en) * 2008-08-12 2012-07-25 深圳市华禹高科技有限公司 Connection method for Bluetooth apparatus system
CN203138696U (en) * 2013-04-11 2013-08-21 北京超思电子技术股份有限公司 Medical data exchanging device and health managing system
CN103744478A (en) * 2013-12-26 2014-04-23 陕西科技大学 Bluetooth wireless display and control method thereof
CN103944723A (en) * 2014-04-18 2014-07-23 天地融科技股份有限公司 Bluetooth device authentication method and Bluetooth devices

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108601007A (en) * 2018-04-28 2018-09-28 上海与德科技有限公司 Blueteeth network and its network-building method, main equipment, from equipment
CN115002941A (en) * 2022-08-08 2022-09-02 浙江正泰仪器仪表有限责任公司 Communication method of Bluetooth electric energy meter

Also Published As

Publication number Publication date
CN104579435B (en) 2018-09-21

Similar Documents

Publication Publication Date Title
CN105188022B (en) Wireless routing device and communication means
CN204926472U (en) Power distribution station discernment appearance - PDA composite set
CN208158154U (en) Fast charge line and fast charging system
CN104037885A (en) Portable power source, working condition monitoring system of portable power source and monitoring management method of portable power source
TW201734494A (en) Wireless battery management system and operating method thereof being used for managing at least one battery unit with increased readability of detection result data
CN104639213A (en) Method and system for Bluetooth matching on basis of USB (universal serial bus) cable
CN105891764A (en) Watt-hour meter data intelligent reading-writing device and watt-hour meter data intelligent reading-writing method based on Bluetooth communication
CN103117890A (en) Device for testing concentrator local communication module interface protocol
CN103269291B (en) Android platform utilize point-to-point radio-frequency apparatus carry out the method for ADB debugging
CN105159109A (en) PLC controller remote upgrade system
CN110346691A (en) A kind of power line failure diagnostic device and method based on HPLC high-speed power carrier communication
CN104778140B (en) System and method are connected in the USB automatic identification of starlike framework
US20120003927A1 (en) Communication Apparatus, Program and Communication Method
CN102497648B (en) Device and method for achieving remote debugging
CN204597961U (en) A kind of bluetooth module
CN104579435A (en) Multiple-master-with-multiple-slave Bluetooth communication method for portable health examination box
CN105100000B (en) Interface conversion device and network system
CN204010286U (en) A kind of automatic data collection device based on NFC
CN205826852U (en) A kind of electric energy meter data intelligence read-write equipment based on bluetooth communication
CN204612082U (en) For point inspection device and the air-conditioner system of air-conditioner
CN104581618A (en) One-master-with-multiple-slave Bluetooth communication method for portable multi-parameter health examination box
CN211785736U (en) Laser current analyzer of LO5 module
CN203445909U (en) Intercom terminal parameter configuration system
CN208423100U (en) A kind of battery pack debugging system
CN105897894A (en) Internet of things universal acquisition device integrator

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: The Southern District Guangming Road Economic Development Zone, Hebei city of Shijiazhuang province Xingtang County 050000 No. 1

Applicant after: HEBEI EVIDENCE-BASED MEDICINE TECHNOLOGY CO., LTD.

Address before: The Southern District Guangming Road Economic Development Zone, Hebei city of Shijiazhuang province Xingtang County 050000 No. 1

Applicant before: Hebei Xunzheng Medical Technology Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant