Beruflich Dokumente
Kultur Dokumente
1791
C. Android Program Design the two receivers events, the program will get the address
The android program is designed by using the Android info of the client and save it. The server phone use the client
Bluetooth API which can do operations such as search for address info to distinguish different acquisition module and
mobile and make connection between Bluetooth devices. make Bluetooth socket connection, the flow is shown in Fig.4.
Besides, Java multi-thread and multi-channel model skills
were applied to manage each connected device socket and
realize the multiple devices data transmission and monitoring.
In the Multi-Source signal acquisitions, the acquisition module
can be arbitrary switched, turn on or turn off, as well as the
data transfer to the Android mobile terminal. The program
interface is programmed by using Android conventional
component. TextViews are used to show the blood oxygen,
blood sugar, heart rate, body temperature and other monitoring
data. The Real-time monitoring data curve is drawn by
Achartengine which is a Google open source project. The
work flow of the Android program is shown as Fig.3.
Message transmission
1792
socket connection is managed by the communication manage method is similar with polling, but we must do some control to
thread. The thread framework is shown as the fig. 5. remove the errors and overtime.
According to the present standard android document for The web service is a better way providing data access,
Bluetooth communication, max seven client connections can and users can submit the form in the relevant page to complete
be realized to the server. These seven connections can be the relevant informations query from the SQL database. The
active and send data at the same time. In addition, we can keep database of the server provides some API to submit and query
248 connections in sleep mode, and the connections on sleep health monitoring data form web service of the user. We
or activated can be switched. programmed a PHP web page and configure its proxy server
As all the manufacturers of Bluetooth module produce with Nginx, and then placed it on the public IP. The patients
the chip in a uniform standard, the chips used have the same and the doctor can query the whole mentoring data form the
UUID which is defined as web page without the mobile client.
UUID00001101-0000-1000-8000-00805F9B34FB. We can
IV. EXPERIMENTAL RESULTS ANALYSIS
not change the UUID address of the integration module, what
we can do is just modify the master-slave mode, so it causes Since the main problem is to handle Multi-Source signal
some trouble to connect multiple health monitoring modules acquisition, we do the experiment for the maximum
to smart phone. However, we use the RFCOMM protocol to connections for the system and test the speed rate.
match and establish multi socket connections by using the way
of connecting devices one by one. A. The Maximum Connection Experiment
All the connections between modules and phone use the We chose various types of Bluetooth chips and connected
same UUID. After a connection has been established, the them to the microcontroller and do the connection tests with
server post a notification, and cancel the origin receiving Android phone, as is show in Fig. 7.
operation and start a new accept with the same arguments. The
1793
According to the diagram, when the number of
Table 5 Maximum connection tests average value of twenty times connections rising, the overall speed rate decline and maintain
Total number 1 2 3 4 5 6 7 8 the total Bluetooth transmission bandwidth. It is owning to
Success connections 1 2 3 4 5 6 7 7
that the Bluetooth RFCOMM protocol uses L2CAP protocol
to realize reuse link. Health physiological parameters are
Total times 1 3 4 6 9 11 12 13 always low frequency signal and concentrated in 1 to 10hz. If
Average time (s) 1 1.5 1.3 1.5 1.8 1.8 1.7 1.8 we adopt 10KHz sampling frequency and 16-bit sampling
accuracy, the amount of data per second is 300b/s, and the
If the connected socket channel was disconnected, the minimum transmission rate of 20kb/s in the experiment can
socket will return a state code, which shows whether the meet the requirement.
connection is active. At the same time, we calculate and V. CONCLUSION
record the total time of establishing connection to all the
devices, the result is show as Table 5. A Health monitoring network system is presented based
From the table, we observe that Android system can on Android Bluetooth communication, which realizes the
support maximum seven connections of Bluetooth devices at health monitoring of Multi-Source signals acquired from multi
the same time. When the number of connections is more than acquisition modules. The problems of data transmission and
seven, the connect operation might be fail or a connected synchronization from the multi-source sensors to the android
device will be disconnected. Seven devices were paired, and smart phone have been researched and tested. The results
the connections between devices and phone take about ten show that the proposed method realizes the functions of the
seconds. In a single server and multi client mode, up to seven health monitoring system in the smart phone by overcoming
activate connections are guaranteed. If more devices are the problems of the multi-channel Bluetooth communication.
desired, we suggest the method to use a client device as a 2nd The experiment shows that the system work effectively and
level server, to form a sub-network and deliver the data to the can support multi acquisition devices simultaneously.
1st network server.
ACKNOWLEDGEMENTS
This work was supported by National Natural Science
Foundation of China (No.61273332, 61202196), Ningbo Sc. &
Tech. (Innovation Team) plan project (2014B82015).
REFERENCES
[1] Shi Xiong, XiaoMing Wu, Technology of Data Transmission through
Bluetooth in Android, Chinese Journal of Medical Physics, vol. 29, no.
6, pp. 3801-3803, 2012.
Fig. 7 Bluetooth connection test [2] LiGuo Li, Hui Zhang, Hao Cheng, The Design and Implementation of
Bluetooth Software Based on Android Health Service Terminal,
Flectrnnic Sci.&Tech., vol. 25, no. 5, pp. 789-795, 2012.
B. The Speed Rate Research [3] Bo Gao, Ning Ge, Design and implementation of Bluetooth low
On the other hand, we concern about the Bluetooth powerconsumption personal health network, Transducer and Micro
System Technologies, vol. 32, no. 6, pp. 84-87, 2013.
bandwidth at the same time. We send 10M mp4 files from [4] Heng Ma, JunBo Cheng, Jun Tian, XinHao Cheng, Design of Personal
multi Android client phones to a Android server phone in the Health Monitoring System Based on Body Sensor Network,
protocol that have discussed in the second part of the paper Measurement and control technology, vol.34, no.1, pp.24-27, 2015.
and the client number was added one each time. We started [5] Pengxiang Jin, Chao Hu, Weixing Lin, Interface Design for
Multi-parameter Health Monitoring Instrument Based on ARM-9
the experiment with two clients and added the number of the Embedded System, Proceeding of the IEEE International Conference on
clients to maximum seven. The speed rate value was recorded Information and Automation, Hailar, China, July 2014.
to different text file; the results are shown as Fig.8. [6] Y. H. Lin, I. C. Jan, P. C. I. Ko, Y. Y. Chen, J. M. Wong, and G. J. Jan,
"A wireless PDA-based physiological monitoring system for patient
transport", IEEE Transactions on Information Technology in
Biomedicine, vol. 8, no. 4, pp. 439-447, 2004.
[7] W. Y. Chung, C. L. Yau, K. S. Shin, and R. Myllyla, A cell phone based
health monitoring system with self analysis processor using wireless
sensor network technology, 2007 Annual International Conf. of the IEEE
Engineering in Medicine and Biology Society, vol.1-16, pp. 3705-3708,
2007.
[8] Fu Xiaoling, Wu Jianmin, and Wang Dianlai, Solution of mobile GIS
Based on Blootooth GPS Receiver, Computer Engineering and Design,
Vol. 9, pp. 298-300, 2009.
[9] Shi Yuguang, Liu Xiaohong, and Li Wenting, "Based on The Research of
Bluetooth Wireless Remote Operation", China Science & Technology,
Fig.8 The average transmission rate of twenty times of vol. 6, pp. 546-551, 2007
device number range 4 to 7
1794