技术问题technical problem
本发明的主要目的在于提供一种基于定位的养老管理系统及方法,旨在解决对养老人员实时定位的技术问题。The main object of the present invention is to provide a positioning-based pension management system and method, aiming at solving the technical problem of real-time positioning of the elderly.
技术解决方案Technical solution
为实现上述目的,本发明提供了一种基于定位的养老管理系统,运行于服务器,所述服务器放置于养老区域内,所述养老区域内设置多个蓝牙接收器,所述服务器与每个蓝牙接收器连接,每个蓝牙接收器还预先与佩戴于养老人员身上的可穿戴设备配对,所述基于定位的养老管理系统包括:To achieve the above objective, the present invention provides a location-based pension management system running on a server, the server being placed in a pension area, a plurality of Bluetooth receivers disposed in the pension area, the server and each Bluetooth Receiver connections, each Bluetooth receiver is also pre-paired with a wearable device worn on a pensioner, the location-based pension management system comprising:
保存模块,用于将养老区域内每个蓝牙接收器的位置信息及每个可穿戴设备对应的养老人员信息保存于服务器中;a saving module, configured to save location information of each Bluetooth receiver in the pension area and the information of the pensioner corresponding to each wearable device in the server;
获取模块,用于当有三个或三个以上蓝牙接收器与该养老人员佩戴的可穿戴设备连接时,获取每个蓝牙接收器与该养老人员佩戴的可穿戴设备连接时的信号强度;An acquisition module, configured to acquire a signal strength when each Bluetooth receiver is connected to a wearable device worn by the pensioner when three or more Bluetooth receivers are connected to the wearable device worn by the pensioner;
挑选模块,用于根据所述信号强度,选择与该养老人员佩戴的可穿戴设备连接时信号最强的三个蓝牙接收器;Selecting a module, according to the signal strength, selecting three Bluetooth receivers that have the strongest signal when connected to the wearable device worn by the pensioner;
计算模块,用于根据信号最强的三个蓝牙接收器对应的地理位置信息计算出该养老人员所在的第一位置;a calculation module, configured to calculate, according to geographical location information corresponding to the three Bluetooth receivers with the strongest signals, the first location where the pensioner is located;
启动模块,用于通过所述蓝牙接收器启动所述可穿戴设备的定位装置确定该养老人员的第二位置;Activating module, configured to start, by the Bluetooth receiver, a positioning device of the wearable device to determine a second location of the pensioner;
确认模块,用于根据所述第一位置及第二位置确定该养老人员的准确位置;及a confirmation module, configured to determine an accurate location of the pensioner based on the first location and the second location; and
发送模块,用于将该养老管理人员的位置信息发送给养老区域的管理人员以实时查看该监测该养老人员的准确位置。The sending module is configured to send the location information of the pension manager to the manager of the pension area to view the accurate location of the monitored person in real time.
优选的,所述定位装置为包含GPS模块的装置或包含北斗定位系统模块的装置。Preferably, the positioning device is a device comprising a GPS module or a device comprising a Beidou positioning system module.
优选的,所述根据所述第一位置及第二位置确定该养老人员的准确位置的方式如下:Preferably, the manner of determining the exact location of the pensioner according to the first location and the second location is as follows:
当所述第一位置与第二位置之间的距离超过预设距离时,以第一位置作为该养老人员的准确位置;及When the distance between the first position and the second position exceeds a preset distance, the first position is used as an accurate position of the pensioner; and
当所述第一位置与第二位置之间的距离小于或等于预设距离时,以第一位置及第二位置的平均值作为该养老人员的准确位置。When the distance between the first position and the second position is less than or equal to the preset distance, the average of the first position and the second position is used as the accurate position of the pensioner.
优选的,所述发送模块还用于当该养老人员的可穿戴设备低电量时,发送预警信息通知养老管理人员为该养老人员佩戴的可穿戴设备充电。Preferably, the sending module is further configured to send an early warning message to the pension manager to charge the wearable device worn by the pensioner when the wearable device of the pensioner is low in power.
优选的,所述根据信号最强的三个蓝牙接收器对应的地理位置信息计算出该养老人员所在的第一位置的方式为:log10(PRi)=log10(PTi)-n*log10 (ri),
,i=(1,2,3),其中,PRi是第i个蓝牙接收器的接收信号的强度,PTi是第i个蓝牙接收器的发射信号的强度,n是与周围环境有关的传播因子,ri是第i个蓝牙接收器与该养老人员佩戴的可穿戴设备之间的距离,其中,坐标(xi,yi,zi)为第i个蓝牙接收器的坐标,该养老人员的佩戴的可穿戴设备的第一位置的坐标为(x,y,z)。
Preferably, the manner of calculating the first location of the pensioner according to the geographical location information corresponding to the three Bluetooth receivers with the strongest signal is: log10(PRi)=log10(PTi)-n*log10 (ri) , , i = (1, 2, 3), where PRi is the strength of the received signal of the i-th Bluetooth receiver, PTi is the intensity of the transmitted signal of the i-th Bluetooth receiver, and n is the propagation factor related to the surrounding environment , ri is the distance between the i-th Bluetooth receiver and the wearable device worn by the pensioner, wherein the coordinates (xi, yi, zi) are the coordinates of the i-th Bluetooth receiver, and the pensioner can wear The coordinates of the first position of the wearable device are (x, y, z).
另一方面,本发明还提供一种基于定位的养老管理方法,运用于服务器,所述服务器放置于养老区域内,所述养老区域内设置多个蓝牙接收器,所述服务器与每个蓝牙接收器连接,每个蓝牙接收器还预先与佩戴于养老人员身上的可穿戴设备配对,所述基于定位的养老管理方法包括如下步骤:In another aspect, the present invention further provides a location-based pension management method, which is applied to a server, the server is placed in a pension area, and a plurality of Bluetooth receivers are disposed in the pension area, and the server receives each Bluetooth The device is connected, and each Bluetooth receiver is also paired with a wearable device worn on the pensioner in advance. The location-based pension management method includes the following steps:
将养老区域内每个蓝牙接收器的位置信息及每个可穿戴设备对应的养老人员信息保存于服务器中;The location information of each Bluetooth receiver in the pension area and the information of the pensioner corresponding to each wearable device are saved in the server;
当有三个或三个以上蓝牙接收器与该养老人员佩戴的可穿戴设备连接时,获取每个蓝牙接收器与该养老人员佩戴的可穿戴设备连接时的信号强度;Obtaining a signal strength when each Bluetooth receiver is connected to a wearable device worn by the pensioner when three or more Bluetooth receivers are connected to the wearable device worn by the pensioner;
根据所述信号强度,选择与该养老人员佩戴的可穿戴设备连接时信号最强的三个蓝牙接收器;According to the signal strength, three Bluetooth receivers with the strongest signal when connected with the wearable device worn by the pensioner are selected;
根据信号最强的三个蓝牙接收器对应的地理位置信息计算出该养老人员所在的第一位置;Calculating the first location of the pensioner according to the geographical location information corresponding to the three strongest Bluetooth receivers;
通过所述蓝牙接收器启动所述可穿戴设备的定位装置确定该养老人员的第二位置;Activating a positioning device of the wearable device by the Bluetooth receiver to determine a second location of the pensioner;
根据所述第一位置及第二位置确定该养老人员的准确位置;及Determining an accurate location of the pensioner based on the first location and the second location; and
将该养老管理人员的位置信息发送给养老区域的管理人员以实时查看该监测该养老人员的准确位置。The location information of the pension manager is sent to the administrator of the pension area to view the accurate location of the monitored pensioner in real time.
优选的,所述定位装置为包含GPS模块的装置或包含北斗定位系统模块的准确装置。Preferably, the positioning device is a device comprising a GPS module or an accurate device comprising a Beidou positioning system module.
优选的,所述根据所述第一位置及第二位置确定该养老人员的准确位置的方式如下:Preferably, the manner of determining the exact location of the pensioner according to the first location and the second location is as follows:
当所述第一位置与第二位置之间的距离超过预设距离时,以第一位置作为该养老人员的准确位置;及When the distance between the first position and the second position exceeds a preset distance, the first position is used as an accurate position of the pensioner; and
当所述第一位置与第二位置之间的距离小于或等于预设距离时,以第一位置及第二位置的平均值作为该养老人员的准确位置。When the distance between the first position and the second position is less than or equal to the preset distance, the average of the first position and the second position is used as the accurate position of the pensioner.
优选的,所述基于定位的养老管理方法还包括如下步骤:当该养老人员的可穿戴设备低电量时,发送预警信息通知养老管理人员为该养老人员佩戴的可穿戴设备充电。Preferably, the location-based pension management method further comprises the step of: sending an alert message to the pension manager to charge the wearable device worn by the pensioner when the wearable device of the pensioner is low in power.
优选的,所述根据信号最强的三个蓝牙接收器对应的地理位置信息计算出该养老人员所在的第一位置的方式为:log10(PRi)=log10(PTi)-n*log10 (ri),
,i=(1,2,3),其中,PRi是第i个蓝牙接收器的接收信号的强度,PTi是第i个蓝牙接收器的发射信号的强度,n是与周围环境有关的传播因子,ri是第i个蓝牙接收器与该养老人员佩戴的可穿戴设备之间的距离,其中,坐标(xi,yi,zi)为第i个蓝牙接收器的坐标,该养老人员的佩戴的可穿戴设备的第一位置的坐标为(x,y,z)。
Preferably, the manner of calculating the first location of the pensioner according to the geographical location information corresponding to the three Bluetooth receivers with the strongest signal is: log10(PRi)=log10(PTi)-n*log10 (ri) ,
, i = (1, 2, 3), where PRi is the strength of the received signal of the i-th Bluetooth receiver, PTi is the intensity of the transmitted signal of the i-th Bluetooth receiver, and n is the propagation factor related to the surrounding environment , ri is the distance between the i-th Bluetooth receiver and the wearable device worn by the pensioner, wherein the coordinates (xi, yi, zi) are the coordinates of the i-th Bluetooth receiver, and the pensioner can wear The coordinates of the first position of the wearable device are (x, y, z).
有益效果Beneficial effect
本发明采用上述技术方案,带来的技术效果为:本发明所述基于定位的养老管理系统及方法,结合蓝牙信号定位及定位装置定位的方式可以实时掌握养老人员的装置位置,提高了定位的准确度,以利于应对老年人出现突发事件时能够及时赶到现场。The technical solution of the present invention adopts the above technical solution, and the technical effect of the positioning-based old-age management system and method of the present invention, combined with the positioning of the Bluetooth signal and the positioning device, can grasp the position of the device of the pensioner in real time and improve the positioning. Accuracy, in order to cope with the elderly can be rushed to the scene in the event of an emergency.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
为更进一步阐述本发明为达成预定发明目的所采取的技术手段及功效,以下结合附图及较佳实施例,对本发明的具体实施方式、结构、特征及其功效,详细说明如下。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The specific embodiments, structures, features and functions of the present invention are described in detail below with reference to the accompanying drawings and preferred embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
参照图1所示,图1是养老区域的示意图。所述养老区域1为养老院或养老机构所围成的区域,用于为老年人提供活动及养老的场所。所述养老区域1内设置有服务器2、多个蓝牙接收器3及多个可穿戴设备4。其中,所述养老区域1还设置有用于养老人员休息及办公的建筑物(图中未示出),所述服务器2设置于建筑物内。所述多个蓝牙接收器3分布于养老区域1的不同位置,具体地说,所述养老区域1每隔预设距离(例如,10米)设置一个蓝牙接收器3,并在所述养老区域1内形成蓝牙接收器阵列。在本实施例中,每个蓝牙接收器3设置于固定的位置。为了提高每个蓝牙接收器3的信号覆盖范围,所述蓝牙接收器3为支持蓝牙5.0协议的设备或装置。所述可穿戴设备4佩戴于养老人员身上,可以实时监测用户的体征信息(例如,心率、血压、血氧、血脂等信息)。在本实施例中,所述可穿戴设备4为具有蓝牙通信功能的装置或设备,所述可穿戴设备4可以与所述蓝牙接收器3通过蓝牙传输数据,例如,所述可穿戴设备4将监测到的体征信息发送给所述蓝牙接收器3。Referring to Figure 1, Figure 1 is a schematic illustration of a pension area. The pension area 1 is an area surrounded by a nursing home or an old-age care institution, and is used to provide activities and old-age places for the elderly. A server 2, a plurality of Bluetooth receivers 3, and a plurality of wearable devices 4 are disposed in the pension area 1. The pension area 1 is also provided with a building (not shown) for the rest and office of the old-age staff, and the server 2 is disposed in the building. The plurality of Bluetooth receivers 3 are distributed at different locations of the pension area 1, specifically, the pension area 1 is provided with a Bluetooth receiver 3 every predetermined distance (for example, 10 meters), and in the pension area A Bluetooth receiver array is formed within 1. In the present embodiment, each Bluetooth receiver 3 is placed at a fixed position. In order to increase the signal coverage of each Bluetooth receiver 3, the Bluetooth receiver 3 is a device or device that supports the Bluetooth 5.0 protocol. The wearable device 4 is worn on the old person and can monitor the user's vital information (for example, heart rate, blood pressure, blood oxygen, blood lipids, etc.) in real time. In this embodiment, the wearable device 4 is a device or device having a Bluetooth communication function, and the wearable device 4 can transmit data with the Bluetooth receiver 3 via Bluetooth, for example, the wearable device 4 The monitored vital sign information is sent to the Bluetooth receiver 3.
参照图2所示,图2是本发明基于定位的养老管理系统的应用环境示意图。本发明中的基于定位的养老管理系统20运行于服务器2。所述服务器2通过有线或无线(蓝牙连接)与所述多个蓝牙接收器3通信连接,所述蓝牙接收器3还可以与所述可穿戴设备4无线连接。所述可穿戴设备4用于监测养老人员的体征信息并通过所述蓝牙接收器3发送给服务器2。养老区域1的管理人员通过实时查看养老人员的体征信息及时掌握养老人员的身体状况。此外,所述服务器2还通过养老人员佩戴的可穿戴设备4与蓝牙接收器3的连接情况实时定位养老人员的位置,方便养老区域1的管理人员实时掌握养老人员所在位置以因对突发情况(例如,摔倒等情况)。Referring to FIG. 2, FIG. 2 is a schematic diagram of an application environment of a positioning-based pension management system according to the present invention. The location-based pension management system 20 in the present invention runs on the server 2. The server 2 is communicably connected to the plurality of Bluetooth receivers 3 by wire or wireless (Bluetooth connection), and the Bluetooth receiver 3 can also be wirelessly connected to the wearable device 4. The wearable device 4 is configured to monitor the physical condition information of the elderly person and send it to the server 2 through the Bluetooth receiver 3. The management personnel of the old-age area 1 can timely grasp the physical condition of the pensioners by checking the physical signs of the pensioners in real time. In addition, the server 2 also locates the position of the pensioner in real time through the connection between the wearable device 4 worn by the pensioner and the Bluetooth receiver 3, so that the manager of the pension area 1 can grasp the position of the pensioner in real time due to the sudden situation. (for example, falling, etc.).
参照图3所示,是本发明基于定位的养老管理系统的优选实施例的功能模块示意图。结合图1及2所示,在本实施例中,所述基于定位的养老管理系统20应用于服务器2。该服务器2包括, 但不仅限于,基于定位的养老管理系统20、存储单元22、处理单元24、及通讯单元26。Referring to Figure 3, there is shown a functional block diagram of a preferred embodiment of the location-based pension management system of the present invention. As shown in FIG. 1 and 2, in the present embodiment, the location-based pension management system 20 is applied to the server 2. The server 2 includes, but is not limited to, a location-based pension management system 20, a storage unit 22, a processing unit 24, and a communication unit 26.
所述的存储单元22可以为一种只读存储单元ROM,电可擦写存储单元EEPROM、快闪存储单元FLASH或固体硬盘等。The storage unit 22 can be a read only memory unit ROM, an electrically erasable storage unit EEPROM, a flash memory unit FLASH or a solid hard disk.
所述的处理单元24可以为一种中央处理器(Central Processing
Unit,CPU)、微控制器(MCU)、数据处理芯片、或者具有数据处理功能的信息处理单元。The processing unit 24 can be a central processing unit (Central Processing
Unit, CPU), microcontroller (MCU), data processing chip, or information processing unit with data processing function.
所述的通讯单元26为一种具有远程无线通讯功能的无线通讯接口,例如,支持GSM、GPRS、WCDMA、CDMA、TD-SCDMA、WiMAX、TD-LTE、FDD-LTE等通讯技术的通讯接口。The communication unit 26 is a wireless communication interface with remote wireless communication functions, for example, a communication interface supporting communication technologies such as GSM, GPRS, WCDMA, CDMA, TD-SCDMA, WiMAX, TD-LTE, and FDD-LTE.
所述基于定位的养老管理系统20包括,但不局限于,保存模块200、获取模块210、挑选模块220、计算模块230、启动模块240、确认模块250及发送模块260,本发明所称的模块是指一种能够被所述服务器2的处理单元24执行并且能够完成固定功能的一系列计算机程序指令段,其存储在所述服务器2的存储单元22中。The location-based pension management system 20 includes, but is not limited to, a save module 200, an acquisition module 210, a selection module 220, a calculation module 230, a startup module 240, a confirmation module 250, and a transmission module 260. Reference is made to a series of computer program instructions that can be executed by the processing unit 24 of the server 2 and that are capable of performing a fixed function, which are stored in the storage unit 22 of the server 2.
所述保存模块200用于将养老区域1内每个蓝牙接收器3的位置信息及每个可穿戴设备4对应的养老人员信息保存于服务器2中。在本实施例中,由于每个蓝牙接收器3设置于固定位置,所述保存模块200预先保存每个蓝牙接收器3所在的固定位置信息。所述养老人员信息包括姓名、性别、年龄、疾病史、监护人姓名及联系方式等信息。The saving module 200 is configured to save the location information of each Bluetooth receiver 3 in the pension area 1 and the information of the pensioner corresponding to each wearable device 4 in the server 2. In this embodiment, since each Bluetooth receiver 3 is set at a fixed position, the saving module 200 pre-stores the fixed location information where each Bluetooth receiver 3 is located. The information of the pensioner includes information such as name, gender, age, disease history, guardian's name and contact information.
所述获取模块210用于获取每个蓝牙接收器3与该养老人员佩戴的可穿戴设备4连接时的信号强度。所述蓝牙接收器3上包括信号检测器(图中未示出),当所述蓝牙接收器3与一个可穿戴设备4连接时,所述信号检测器用于检测该可穿戴设备4与蓝牙接收器3连接时的信号强度。需要说明的是,为了省去养老人员手动配对蓝牙接收器3与该养老人员佩戴的可穿戴设备4的操作,养老区域1的管理人员可以预先在蓝牙接收器3与可穿戴设备4之间进行蓝牙配对,也就是说,蓝牙接收器3预先记录每个可穿戴设备4的信任信息,当可穿戴设备4在所述蓝牙接收器3的预设范围内时,自动连接到所述蓝牙接收器3。进一步的,在所述养老区域1中,所述蓝牙接收器3之间的间隔距离在10至30米之间,而每个蓝牙接收器3支持蓝牙5.0协议,信号覆盖范围达到300米,因此,本实施例中可以确保可穿戴设备4任何时候均有三个以上的蓝牙接收器3与之连接。The obtaining module 210 is configured to acquire a signal strength when each Bluetooth receiver 3 is connected to the wearable device 4 worn by the pensioner. The Bluetooth receiver 3 includes a signal detector (not shown). When the Bluetooth receiver 3 is connected to a wearable device 4, the signal detector is configured to detect the wearable device 4 and receive Bluetooth. The signal strength when the device 3 is connected. It should be noted that, in order to save the old person from manually pairing the Bluetooth receiver 3 with the operation of the wearable device 4 worn by the pensioner, the administrator of the pension area 1 can perform the between the Bluetooth receiver 3 and the wearable device 4 in advance. Bluetooth pairing, that is, the Bluetooth receiver 3 pre-records the trust information of each wearable device 4, and automatically connects to the Bluetooth receiver when the wearable device 4 is within the preset range of the Bluetooth receiver 3. 3. Further, in the pension area 1, the distance between the Bluetooth receivers 3 is between 10 and 30 meters, and each Bluetooth receiver 3 supports the Bluetooth 5.0 protocol, and the signal coverage reaches 300 meters, so In this embodiment, it can be ensured that the wearable device 4 has more than three Bluetooth receivers 3 connected thereto at any time.
所述挑选模块220用于根据所述信号强度,选择与该养老人员佩戴的可穿戴设备4连接时信号最强的三个蓝牙接收器3。The selection module 220 is configured to select three Bluetooth receivers 3 that have the strongest signal when connected to the wearable device 4 worn by the pensioner according to the signal strength.
所述计算模块230用于根据信号最强的三个蓝牙接收器3对应的地理位置信息计算出该养老人员所在的第一位置。The calculating module 230 is configured to calculate a first location where the pensioner is located according to geographic location information corresponding to the three Bluetooth receivers 3 with the strongest signals.
所述根据信号最强的三个蓝牙接收器3对应的地理位置信息计算出该养老人员所在的第一位置的方式为:log10(PRi)=log10(PTi)-n*log10 (ri),
,i=(1,2,3),其中,PRi是第i个蓝牙接收器3的接收信号的强度,PTi是第i个蓝牙接收器3的发射信号的强度,n是与周围环境有关的传播因子,ri是第i个蓝牙接收器3与该养老人员佩戴的可穿戴设备4之间的距离,其中,坐标(xi,yi,zi)为第i个蓝牙接收器的坐标,该养老人员的佩戴的可穿戴设备的位置坐标为(x,y,z)。需要说明的是,由于第一位置的计算跟信号强度相关,信号强度越强准确度越高,因此选择三个信号强度最强的蓝牙接收器3。
The manner of calculating the first location of the pensioner according to the geographical location information corresponding to the three Bluetooth receivers 3 with the strongest signal is: log10(PRi)=log10(PTi)-n*log10(ri),
i = (1, 2, 3), where PRi is the intensity of the received signal of the i-th Bluetooth receiver 3, PTi is the intensity of the transmitted signal of the i-th Bluetooth receiver 3, and n is related to the surrounding environment The propagation factor, ri is the distance between the i-th Bluetooth receiver 3 and the wearable device 4 worn by the pensioner, wherein the coordinates (xi, yi, zi) are the coordinates of the i-th Bluetooth receiver, the pensioner The position coordinates of the worn wearable device are (x, y, z). It should be noted that since the calculation of the first position is related to the signal strength, the stronger the signal strength, the higher the accuracy, so the three Bluetooth receivers 3 with the strongest signal strength are selected.
具体地说,根据三个蓝牙接收器T1,T2,T3的已知位置与可穿戴设备4接收到的信号强度,利用三点定位算法,可计算出该养老人员的位置坐标(x,y,z)。所述蓝牙接收器3与可穿戴设备4之间发射信号与接收信号满足如下公式:log10(PR)=log10(PT)- n*log10 (r),其中,PR是接收信号的强度(分贝),PT是发射信号的强度(分贝),n是与周围环境有关的传播因子(固定值),r是蓝牙接收器3与可穿戴设备4之间的距离。Specifically, according to the known positions of the three Bluetooth receivers T1, T2, T3 and the signal strength received by the wearable device 4, the position coordinates (x, y,) of the pensioner can be calculated by using a three-point positioning algorithm. z). The transmitting and receiving signals between the Bluetooth receiver 3 and the wearable device 4 satisfy the following formula: log10(PR)=log10(PT)-n*log10(r), where PR is the strength of the received signal (decibels) PT is the intensity of the transmitted signal (decibel), n is the propagation factor (fixed value) associated with the surrounding environment, and r is the distance between the Bluetooth receiver 3 and the wearable device 4.
已知三个蓝牙接收器T1,T2,T3的坐标为(xi,yi,zi),(i=1,2,3),该养老人员的第一位置即可穿戴设备4的坐标(x,y,z)。将三个蓝牙接收器T1,T2,T3接收到的信号强度代入可得含三个方程的方程组:log10(PRi)=log10(PTi)- n*log10 (ri),其中,
, i=1,2,3。由此可计算出养老人员第一位置的三维坐标。
It is known that the coordinates of three Bluetooth receivers T1, T2, T3 are (xi, yi, zi), (i = 1, 2, 3), and the first position of the pensioner can wear the coordinates of the device 4 (x, y, z). The signal strengths received by the three Bluetooth receivers T1, T2, and T3 are substituted into a system of equations with three equations: log10(PRi)=log10(PTi)-n*log10(ri), where
, i=1, 2, 3. From this, the three-dimensional coordinates of the first position of the pensioner can be calculated.
所述启动模块240用于通过所述蓝牙接收器3启动所述可穿戴设备4的定位装置确定该养老人员的第二位置。所述定位装置可以是,但不限于,包含全球定位系统(Globe
Positioning System, GPS)模块的装置,或者包含北斗定位系统模块的装置。The activation module 240 is configured to activate the positioning device of the wearable device 4 by the Bluetooth receiver 3 to determine the second location of the pensioner. The positioning device may be, but is not limited to, including a global positioning system (Globe)
Positioning System, GPS) A device, or a device that includes a Beidou positioning system module.
所述确认模块250用于根据所述第一位置及第二位置确定该养老人员的准确位置。在本实施例中,所述根据所述第一位置及第二位置确定该养老人员的准确位置的方式如下:当所述第一位置与第二位置之间的距离超过预设距离(例如,3米)时,以第一位置作为该养老人员的准确位置(相对来说,由于第一位置采用蓝牙信号计算,第一位置的准确度会比定位装置采用卫星信号计算得到的第二位置高);当所述第一位置与第二位置之间的距离小于或等于预设距离时,以第一位置及第二位置的平均值作为该养老人员的准确位置。The confirmation module 250 is configured to determine an accurate location of the pensioner based on the first location and the second location. In this embodiment, the manner of determining the accurate position of the pensioner according to the first location and the second location is as follows: when the distance between the first location and the second location exceeds a preset distance (eg, At 3 meters), the first position is used as the exact position of the pensioner (relatively, since the first position is calculated using the Bluetooth signal, the accuracy of the first position is higher than the second position calculated by the positioning device using the satellite signal) When the distance between the first location and the second location is less than or equal to the preset distance, the average of the first location and the second location is used as the accurate location of the pensioner.
所述发送模块260用于将该养老管理人员的位置信息发送给养老区域1的管理人员以实时查看该监测该养老人员的位置。The sending module 260 is configured to send the location information of the pension manager to the administrator of the pension area 1 to view the location of the monitored pensioner in real time.
所述发送模块260还用于当该养老人员的可穿戴设备4低电量(例如电量少于20%的总电量为低电量)时,发送预警信息通知养老管理人员为该养老人员佩戴的可穿戴设备4充电。具体地说,可穿戴设备4出现低电量提示时,将低电量提示发送给与该可穿戴设备4连接的任意一个蓝牙接收器3,服务器2接收到从蓝牙接收器传送过来的低电量提示后,发送预警信息通知养老管理人员为该养老人员佩戴的可穿戴设备4充电。The sending module 260 is further configured to: when the wearable device 4 of the old person has low power (for example, the total amount of electricity is less than 20% of the total amount of electricity), send an early warning message to notify the pension manager to wear the wearable for the pensioner. Device 4 is charged. Specifically, when the wearable device 4 presents a low battery prompt, the low battery prompt is sent to any Bluetooth receiver 3 connected to the wearable device 4, and the server 2 receives the low battery prompt transmitted from the Bluetooth receiver. Sending an alert message to notify the pension manager to charge the wearable device 4 worn by the pensioner.
参照图4所示,是本发明基于定位的养老管理方法的优选实施例的流程图。在本实施例中,所述的基于定位的养老管理方法应用于服务器2,所述服务器2包括通讯单元26、适于实现各种指令的处理单元24以及适于存储多条指令的存储单元22,所述指令由处理单元24加载并执行如下步骤:Referring to Figure 4, there is shown a flow chart of a preferred embodiment of the location based pension management method of the present invention. In this embodiment, the location-based pension management method is applied to a server 2, which includes a communication unit 26, a processing unit 24 adapted to implement various instructions, and a storage unit 22 adapted to store a plurality of instructions. The instructions are loaded by the processing unit 24 and perform the following steps:
步骤S10:所述保存模块200将养老区域1内每个蓝牙接收器3的位置信息及每个可穿戴设备4对应的养老人员信息保存于服务器2中。在本实施例中,由于每个蓝牙接收器3设置于固定位置,所述保存模块200预先保存每个蓝牙接收器3所在的固定位置信息。所述养老人员信息包括姓名、性别、年龄、疾病史、监护人姓名及联系方式等信息。Step S10: The saving module 200 saves the location information of each Bluetooth receiver 3 in the pension area 1 and the information of the pensioner corresponding to each wearable device 4 in the server 2. In this embodiment, since each Bluetooth receiver 3 is set at a fixed position, the saving module 200 pre-stores the fixed location information where each Bluetooth receiver 3 is located. The information of the pensioner includes information such as name, gender, age, disease history, guardian's name and contact information.
步骤S11:所述获取模块210获取每个蓝牙接收器3与该养老人员佩戴的可穿戴设备4连接时的信号强度。所述蓝牙接收器3上包括信号检测器(图中未示出),当所述蓝牙接收器3与一个可穿戴设备4连接时,所述信号检测器用于检测该可穿戴设备4与蓝牙接收器3连接时的信号强度。需要说明的是,为了省去养老人员手动配对蓝牙接收器3与该养老人员佩戴的可穿戴设备4的操作,养老区域1的管理人员可以预先在蓝牙接收器3与可穿戴设备4之间进行蓝牙配对,也就是说,蓝牙接收器3预先记录每个可穿戴设备4的信任信息,当可穿戴设备4在所述蓝牙接收器3的预设范围内时,自动连接到所述蓝牙接收器3。进一步的,在所述养老区域1中,所述蓝牙接收器3之间的间隔距离在10至30米之间,而每个蓝牙接收器3支持蓝牙5.0协议,信号覆盖范围达到300米,因此,本实施例中可以确保可穿戴设备4任何时候均有三个以上的蓝牙接收器3与之连接。Step S11: The obtaining module 210 acquires the signal strength when each Bluetooth receiver 3 is connected to the wearable device 4 worn by the pensioner. The Bluetooth receiver 3 includes a signal detector (not shown). When the Bluetooth receiver 3 is connected to a wearable device 4, the signal detector is configured to detect the wearable device 4 and receive Bluetooth. The signal strength when the device 3 is connected. It should be noted that, in order to save the old person from manually pairing the Bluetooth receiver 3 with the operation of the wearable device 4 worn by the pensioner, the administrator of the pension area 1 can perform the between the Bluetooth receiver 3 and the wearable device 4 in advance. Bluetooth pairing, that is, the Bluetooth receiver 3 pre-records the trust information of each wearable device 4, and automatically connects to the Bluetooth receiver when the wearable device 4 is within the preset range of the Bluetooth receiver 3. 3. Further, in the pension area 1, the distance between the Bluetooth receivers 3 is between 10 and 30 meters, and each Bluetooth receiver 3 supports the Bluetooth 5.0 protocol, and the signal coverage reaches 300 meters, so In this embodiment, it can be ensured that the wearable device 4 has more than three Bluetooth receivers 3 connected thereto at any time.
步骤S12:所述挑选模块220根据所述信号强度,选择与该养老人员佩戴的可穿戴设备4连接时信号最强的三个蓝牙接收器3。Step S12: The selection module 220 selects three Bluetooth receivers 3 with the strongest signal when connected with the wearable device 4 worn by the pensioner according to the signal strength.
步骤S13:所述计算模块230用于根据信号最强的三个蓝牙接收器3对应的地理位置信息计算出该养老人员所在的第一位置。Step S13: The calculation module 230 is configured to calculate the first location where the pensioner is located according to the geographic location information corresponding to the three Bluetooth receivers 3 with the strongest signals.
所述根据信号最强的三个蓝牙接收器3对应的地理位置信息计算出该养老人员所在的第一位置的方式为:log10(PRi)=log10(PTi)-n*log10 (ri),
,i=(1,2,3),其中,PRi是第i个蓝牙接收器3的接收信号的强度,PTi是第i个蓝牙接收器3的发射信号的强度,n是与周围环境有关的传播因子,ri是第i个蓝牙接收器3与该养老人员佩戴的可穿戴设备4之间的距离,其中,坐标(xi,yi,zi)为第i个蓝牙接收器的坐标,该养老人员的佩戴的可穿戴设备的位置坐标为(x,y,z)。需要说明的是,由于第一位置的计算跟信号强度相关,信号强度越强准确度越高,因此选择三个信号强度最强的蓝牙接收器3。
The manner of calculating the first location of the pensioner according to the geographical location information corresponding to the three Bluetooth receivers 3 with the strongest signal is: log10(PRi)=log10(PTi)-n*log10(ri),
i = (1, 2, 3), where PRi is the intensity of the received signal of the i-th Bluetooth receiver 3, PTi is the intensity of the transmitted signal of the i-th Bluetooth receiver 3, and n is related to the surrounding environment The propagation factor, ri is the distance between the i-th Bluetooth receiver 3 and the wearable device 4 worn by the pensioner, wherein the coordinates (xi, yi, zi) are the coordinates of the i-th Bluetooth receiver, the pensioner The position coordinates of the worn wearable device are (x, y, z). It should be noted that since the calculation of the first position is related to the signal strength, the stronger the signal strength, the higher the accuracy, so the three Bluetooth receivers 3 with the strongest signal strength are selected.
具体地说,根据三个蓝牙接收器T1,T2,T3的已知位置与可穿戴设备4接收到的信号强度,利用三点定位算法,可计算出该养老人员的位置坐标(x,y,z)。所述蓝牙接收器3与可穿戴设备4之间发射信号与接收信号满足如下公式:log10(PR)=log10(PT)- n*log10 (r),其中,PR是接收信号的强度(分贝),PT是发射信号的强度(分贝),n是与周围环境有关的传播因子(固定值),r是蓝牙接收器3与可穿戴设备4之间的距离。Specifically, according to the known positions of the three Bluetooth receivers T1, T2, T3 and the signal strength received by the wearable device 4, the position coordinates (x, y,) of the pensioner can be calculated by using a three-point positioning algorithm. z). The transmitting and receiving signals between the Bluetooth receiver 3 and the wearable device 4 satisfy the following formula: log10(PR)=log10(PT)-n*log10(r), where PR is the strength of the received signal (decibels) PT is the intensity of the transmitted signal (decibel), n is the propagation factor (fixed value) associated with the surrounding environment, and r is the distance between the Bluetooth receiver 3 and the wearable device 4.
已知三个蓝牙接收器T1,T2,T3的坐标为(xi,yi,zi),(i=1,2,3),该养老人员的第一位置即可穿戴设备4的坐标(x,y,z)。将三个蓝牙接收器T1,T2,T3接收到的信号强度代入可得含三个方程的方程组:log10(PRi)=log10(PTi)- n*log10 (ri),其中,
, i=1,2,3。由此可计算出养老人员第一位置的三维坐标。
It is known that the coordinates of three Bluetooth receivers T1, T2, T3 are (xi, yi, zi), (i = 1, 2, 3), and the first position of the pensioner can wear the coordinates of the device 4 (x, y, z). The signal strengths received by the three Bluetooth receivers T1, T2, and T3 are substituted into a system of equations with three equations: log10(PRi)=log10(PTi)-n*log10(ri), where
, i=1, 2, 3. From this, the three-dimensional coordinates of the first position of the pensioner can be calculated.
步骤S14:所述启动模块240通过所述蓝牙接收器3启动所述可穿戴设备4的定位装置确定该养老人员的第二位置。所述定位装置可以是,但不限于,包含全球定位系统(Globe
Positioning System, GPS)模块的装置,或者包含北斗定位系统模块的装置。Step S14: The startup module 240 activates the positioning device of the wearable device 4 by the Bluetooth receiver 3 to determine the second location of the pensioner. The positioning device may be, but is not limited to, including a global positioning system (Globe)
Positioning System, GPS) A device, or a device that includes a Beidou positioning system module.
步骤S15:所述确认模块250根据所述第一位置及第二位置确定该养老人员的准确位置。在本实施例中,所述根据所述第一位置及第二位置确定该养老人员的准确位置的方式如下:当所述第一位置与第二位置之间的距离超过预设距离(例如,3米)时,以第一位置作为该养老人员的准确位置(相对来说,由于第一位置采用蓝牙信号计算,第一位置的准确度会比定位装置采用卫星信号计算得到的第二位置高);当所述第一位置与第二位置之间的距离小于或等于预设距离时,以第一位置及第二位置的平均值作为该养老人员的准确位置。Step S15: The confirmation module 250 determines an accurate location of the pensioner based on the first location and the second location. In this embodiment, the manner of determining the accurate position of the pensioner according to the first location and the second location is as follows: when the distance between the first location and the second location exceeds a preset distance (eg, At 3 meters), the first position is used as the exact position of the pensioner (relatively, since the first position is calculated using the Bluetooth signal, the accuracy of the first position is higher than the second position calculated by the positioning device using the satellite signal) When the distance between the first location and the second location is less than or equal to the preset distance, the average of the first location and the second location is used as the accurate location of the pensioner.
步骤S16:所述发送模块260将该养老管理人员的位置信息发送给养老区域1的管理人员以实时查看该监测该养老人员的位置。Step S16: The sending module 260 sends the location information of the pension manager to the administrator of the pension area 1 to view the location of the monitored pensioner in real time.
步骤S17:当该养老人员的可穿戴设备4低电量(例如电量少于20%的总电量为低电量)时,所述发送模块260发送预警信息通知养老管理人员为该养老人员佩戴的可穿戴设备4充电。具体地说,可穿戴设备4出现低电量提示时,将低电量提示发送给与该可穿戴设备4连接的任意一个蓝牙接收器3,服务器2接收到从蓝牙接收器传送过来的低电量提示后,发送预警信息通知养老管理人员为该养老人员佩戴的可穿戴设备4充电。Step S17: When the wearable device 4 of the old person has a low power (for example, the total power of the battery is less than 20% is low), the sending module 260 sends an alert message to notify the pension manager to wear the wearer for the pensioner. Device 4 is charged. Specifically, when the wearable device 4 presents a low battery prompt, the low battery prompt is sent to any Bluetooth receiver 3 connected to the wearable device 4, and the server 2 receives the low battery prompt transmitted from the Bluetooth receiver. Sending an alert message to notify the pension manager to charge the wearable device 4 worn by the pensioner.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.