Disclosure of Invention
One or more embodiments of the present disclosure provide a method and an apparatus for reporting health data, and a device for querying health data, so as to complete reporting of health data of a user without perception of the user.
According to a first aspect, there is provided a health data reporting method, executed by a mobile terminal, comprising:
monitoring a first signal adopting a close range communication protocol in the environment;
After the first signal is monitored and the first signal is determined to have a target service signal identifier, a locally pre-stored health query identifier is sent to a query device sending the first signal through the short-range communication protocol, so that the query device queries health data of a user of the mobile terminal from a server based on the health query identifier, wherein the health query identifier is generated based on terminal information of the mobile terminal and user information of the user of the mobile terminal.
In one embodiment, the near field communication protocol is one of a near field communication protocol and a Bluetooth transmission protocol.
In one embodiment, the sending the locally pre-stored health query identifier to the query device that sends the first signal includes:
establishing connection with the query device through the near field communication protocol;
and sending the health query identification to the query device through the established connection.
In one embodiment, the establishing a connection with the querying device includes:
Sending a connection request to the query device;
And responding to a connection reply sent by the query device for the connection request, and establishing connection with the query device, wherein the connection reply is sent after the query device verifies the mobile terminal.
In one embodiment, the method further comprises:
Invoking a data uploading interface of the server, and sending the terminal information and the user information to the server through the data uploading interface so that the server generates the health inquiry identifier based on the terminal information and the user information by using a preset identifier generation algorithm;
And receiving the health query identification from the server and storing the health query identification.
In one embodiment, the health query identifier is an encrypted identifier using a target key pre-agreed with the querying device.
According to a second aspect, there is provided a health data query method performed by a query device provided at a specified location of a target site, the method comprising:
Broadcasting a first signal adopting a short-range communication protocol, wherein the first signal is provided with a target service signal identifier;
Receiving a health inquiry identification from a mobile terminal through the near field communication protocol, wherein the health inquiry identification is sent by the mobile terminal in response to the first signal, and the health inquiry identification is generated based on terminal information of the mobile terminal and user information of a user of the mobile terminal;
And inquiring health data of the user of the mobile terminal from a server based on the health inquiry identification.
In one embodiment, the near field communication protocol is one of a near field communication protocol and a Bluetooth transmission protocol.
In one implementation manner, the receiving the health inquiry identification from the mobile terminal through the near field communication protocol includes:
establishing connection with the mobile terminal through the close range communication protocol;
And receiving the health inquiry identification from the mobile terminal through the established connection.
In an embodiment, the establishing a connection with the mobile terminal includes:
Receiving a connection request from the mobile terminal;
Responding to the connection request, and verifying the mobile terminal by using a preset authentication mode;
and if the verification is passed, sending a connection reply to the mobile terminal so as to establish connection with the mobile terminal.
In one implementation, the health query identifier is an identifier encrypted by a target key pre-agreed with the query device;
the query from the server for health data of the user of the mobile terminal includes:
decrypting the health inquiry identifier by using a decryption key corresponding to the target key;
and if the decryption is successful, inquiring the health data of the user from the server based on the decrypted health inquiry identification.
In one embodiment, the querying, from the server, the health data of the user of the mobile terminal includes:
The health inquiry identification and the equipment identification of the inquiry equipment are sent to the server, so that the server determines the appointed position of the target place based on the equipment identification and records the appointed position as the current positioning information of the user;
The health data is received from the server.
In one embodiment, the method further comprises:
Based on the health data, outputting corresponding prompt information.
In an implementation manner, the outputting the corresponding prompt information based on the health data includes:
if the health data represents that the user health is abnormal, outputting health prompt information representing the user health;
And if the health data represents that the user health is abnormal, outputting abnormal alarm information.
In an implementation manner, the outputting the corresponding prompt information based on the health data includes:
Judging whether the user health is abnormal or not according to the health data, and outputting preset prompt information only when abnormality occurs.
In one embodiment, the query device belongs to an access control device of the target location.
According to a third aspect, there is provided a health data reporting apparatus deployed in a mobile terminal, comprising:
the monitoring module is configured to monitor a first signal adopting a close range communication protocol in the environment;
And the sending module is configured to send a locally pre-stored health inquiry identifier to the inquiry equipment sending the first signal through the near field communication protocol after the first signal is monitored and the first signal is determined to have the target service signal identifier, so that the inquiry equipment inquires and obtains health data of a user of the mobile terminal from a server based on the health inquiry identifier, wherein the health inquiry identifier is generated based on terminal information of the mobile terminal and user information of the user of the mobile terminal.
According to a fourth aspect, there is provided a health data query apparatus deployed at a query device provided at a specified location of a target site, the apparatus comprising:
a broadcasting module configured to broadcast a first signal employing a near field communication protocol, the first signal having a target service signal identification;
a receiving module configured to receive a health query identifier from a mobile terminal through the close range communication protocol, wherein the health query identifier is sent by the mobile terminal in response to the first signal being monitored, and the health query identifier is generated based on terminal information of the mobile terminal and user information of a user thereof;
and the query module is configured to query health data of the user of the mobile terminal from a server based on the health query identification.
According to a fifth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform the method of the first aspect.
According to a sixth aspect, there is provided a computing device comprising a memory and a processor, wherein the memory has executable code stored therein, the processor implementing the method of the first aspect when executing the executable code.
According to a seventh aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform the method of the second aspect.
According to an eighth aspect, there is provided a computing device comprising a memory and a processor, wherein the memory has executable code stored therein, and wherein the processor, when executing the executable code, implements the method of the second aspect.
According to the method and the device provided by the embodiment of the specification, the mobile terminal can monitor the first signal adopting the short-range communication protocol in the environment where the mobile terminal is located, after the first signal is monitored and the target service signal representation is determined, the short-range communication protocol is used for sending the locally pre-stored health query identifier which is generated based on the terminal information of the mobile terminal and the user information of the user of the mobile terminal to the query device sending the first signal, so that the query device queries and obtains the health data of the user of the mobile terminal from the server based on the health query identifier, the mobile terminal, the query device and the server perform signal and data interaction in the whole process without manual operation of the user, and the user does not need to feel in the whole process, thereby completing reporting of the health data of the user under the condition that the user of the mobile terminal does not feel, and further realizing query of the health data of the user under the condition that the user does not feel.
Detailed Description
The technical solutions of the embodiments of the present specification will be described in detail below with reference to the accompanying drawings.
The embodiment of the specification discloses a method and a device for reporting and inquiring health data, and firstly introduces application scenes and technical concepts of the method, specifically as follows:
As described above, in the current process of checking the health data of the user, before the user enters the target location, the terminal of the user needs to scan the code at the gate of the target location to check the health data of the user. The process is poor in use experience for users, and in the process, special management personnel are required to confirm the health data of the users and maintain the order of the gates of the target places, so that the operation and maintenance cost is high for the management side of the target places.
In view of this, the inventor proposes a health data reporting and health data query method, and fig. 1 shows a schematic implementation scenario according to an embodiment disclosed in the present specification. In this implementation scenario, a participant implementing a health data reporting, querying procedure is schematically shown, the participant comprising a mobile terminal a, a querying device B and a server C. The terminal device a may first open the health data reporting function, that is, open the no-sensing function, specifically, the terminal device a may first obtain user information of its holder (i.e., user), and terminal information of the terminal device a itself, and send the user information and the terminal information to the server C, where the server C generates, by using a preset identifier generating algorithm, a health query identifier based on the terminal information and the user information, where the health query identifier corresponds to the user and the mobile terminal a, and is used to query the terminal information of the mobile terminal a and the user information of the user thereof, and further query the health data of the user. The server C then sends the health query identification to the mobile terminal a. The mobile terminal a obtains and stores the health query identity.
In this case, the terminal device a may install a specific application, and implement the opening of the health data reporting function based on the specific application.
After the mobile terminal device opens the health data reporting function, that is, opens the no-sensing field function, the mobile terminal device can monitor the first signal adopting the close range communication protocol in the environment where the mobile terminal device is located.
The querying device B may be disposed at a designated location of the target venue, which may include, but is not limited to, a target venue doorway, a target venue room, etc. The query device B may broadcast, in real time or periodically, a first signal using a short-range communication protocol, that is, other devices using a short-range communication protocol enter a certain range centered on the location of the query device B, and may monitor the first signal, where the first signal has a server signal identifier.
Mobile terminal a may be carried by its user to any location where it may listen to signals in its environment that employ a close range communication protocol. Specifically, when the mobile terminal a monitors the first signal, it may first determine whether the first signal carries the target service signal identifier, and after determining that the first signal has the target service signal identifier, the mobile terminal a may consider that the first signal broadcasted by the querying device is monitored. Then, the mobile terminal a sends the locally pre-stored health inquiry identification to the inquiry device B which sends the first signal through the short-range communication protocol. The query device B receives the health query identifier, queries and obtains health data of the user of the mobile terminal A from the server C based on the health query identifier, so that the mobile terminal A reports the health data of the user, and the query device B queries the health data of the user.
In the process, in the process of reporting and inquiring the health data, signal and data interaction is carried out among the mobile terminal A, the inquiring equipment B and the server C in the whole process, so that manual participation of a user of the mobile terminal A is not needed, and the reporting and inquiring of the health data of the user are completed under the condition that the user of the mobile terminal does not feel.
The method for reporting health data and querying health data provided in the present specification is described in detail below with reference to specific embodiments.
Figure 2 illustrates a flow chart of a health data reporting and querying process in one embodiment of the present description. The method is performed by a mobile terminal a, a query device B, and a server C, which may be implemented by any apparatus, device, platform, cluster of devices, etc. having computing and processing capabilities, in which case the mobile terminal a may be a mobile phone. As shown in fig. 2, the method includes the following steps S210 to S250:
In step S210, the inquiring device B broadcasts a first signal employing a near field communication protocol, the first signal having a target service signal identification. It will be appreciated that the querying device B may be located at a designated location of a target site, such as a doorway or indoors of a target site, which may be any public location, including but not limited to an office building, mall, school, hospital, store, etc. The query device can be used for querying health data of any user (holder of the mobile terminal A) entering the target place, so as to monitor the health state of the user. In one implementation, the query device B belongs to an access control device of the target location.
The query device B may broadcast, in real time or periodically, a first signal adopting a short-range communication protocol, that is, may monitor the first signal when a device adopting the short-range communication protocol enters a certain range centered on the location of the query device B, where the first information number has a target service signal identifier. In one implementation, the near field communication protocol may be one of a near field communication protocol, a Bluetooth transmission protocol. In the case where the near field communication protocol is a bluetooth transmission protocol, considering that concepts of a Service (Service) and a feature value (unique identifier) are cited in the bluetooth transmission protocol, each Service and feature value has its own unique identifier UUID (Universally Unique Identifier, universal unique identifier), and one bluetooth device (i.e., a device that turns on the bluetooth transmission function, such as the querying device B) includes one or more services, wherein the type and function of the broadcasted signal can be distinguished by using the unique identifier UUID, and in this regard, the target Service signal identifier may be the target Service UUID.
Accordingly, in step S220, the mobile terminal a listens for a first signal using the near field communication protocol in the environment. It can be understood that the mobile terminal a has previously opened a no-induction field function, and accordingly, the mobile terminal a can monitor a first signal adopting a close range communication protocol in the environment.
Next, in step S230, after the mobile terminal a monitors the first signal and determines that the first signal has the target service signal identifier, the locally pre-stored health inquiry identifier is sent to the inquiry device B that sends the first signal through the short-range communication protocol. In this step, after the mobile terminal a monitors the first signal, it may continuously determine whether the first signal carries the target service signal identifier, that is, whether the first signal carries the target service UUID, and after determining that the first signal has the target service signal identifier, it is considered that the first signal enters the monitoring range of the query device B, and accordingly, the mobile terminal a may send the locally pre-stored health query identifier to the query device B that sends the first signal through the short-range communication protocol.
It can be understood that the health query identifier pre-stored by the mobile terminal a is generated based on the terminal information of the mobile terminal a and the user information of the user of the mobile terminal a, and the health query identifier is generated during the process that the mobile terminal a opens the no-induction field function. Accordingly, before step S220, the method may further include the steps of:
in step 11, the mobile terminal a invokes a data upload interface of the server, and sends the terminal information and the user information to the server C through the data upload interface. The terminal information may include, but is not limited to, a device ID, a device model, a device type, etc., and the user information may include, but is not limited to, information such as a user ID, a user name, etc.
In step 12, the server C generates a health query identifier based on the terminal information and the user information by using a preset identifier generation algorithm, and feeds back the health query identifier to the mobile terminal a.
In step 13, the mobile terminal a receives the health query identifier from the server C and stores the health query identifier.
In the process that the mobile terminal A opens the non-sensing function, the mobile terminal A can firstly call a data uploading interface of the server, send terminal information and user information to the server C through the data uploading interface, and the server C generates a health inquiry identifier, namely a token, based on the terminal information and the user information by using a preset identifier generation algorithm, wherein the health inquiry identifier has uniqueness, namely one health inquiry identifier corresponds to one user information and one terminal information, namely, when the user information and/or the terminal information is sent to change, new health inquiry identifiers need to be regenerated. The preset identifier generating algorithm may be any algorithm capable of generating an identifier at present, which is not described herein.
After the server C generates the health query identifier, namely token, the health query identifier is fed back to the mobile terminal A. The mobile terminal a receives and stores the health query identification. After receiving the health inquiry identification, the mobile terminal a can start to monitor for signals adopting a close range communication protocol in the environment where the mobile terminal a is located. For example, in the case where the short-range communication protocol is a bluetooth transmission protocol, after receiving the health inquiry identifier, the mobile terminal a may turn on bluetooth.
In one implementation manner, the mobile terminal a may be installed with a designated application, so as to implement the activation of the above-mentioned no-induction-field function through the designated application, and implement the reporting of the health data.
In one embodiment, the step S230 may be specifically configured to establish, in step S21, a connection between the mobile device a and the querying device B through the short-range communication protocol. In step 22, mobile device a sends a health query identity to querying device B over the established connection. In the implementation manner, the mobile device A establishes connection with the query device B through the short-range communication protocol, so that the health query identifier is sent to the query device B through the established connection, and the safety of the transmission of the health query identifier is ensured.
In one implementation, in view of the consideration of device security, to avoid that querying device B is subjected to a malicious attack, resulting in its healthy data querying function being disturbed, said step 21 is specifically configured such that, in step 211, mobile device a sends a connection request to querying device B.
In step 212, the querying device B responds to the connection request to verify the mobile terminal a by using a preset authentication method, and if the verification is passed, sends a connection reply to the mobile terminal a. The preset authentication mode can be any mode capable of realizing verification of the identity of the equipment at present.
In step 213, the mobile device a establishes a connection with the querying device B in response to the connection reply sent by the querying device B for the connection request.
In one implementation, if the query device B does not pass the mobile terminal verification a, the mobile terminal a may not be replied, and accordingly, the query device B and the mobile terminal a cannot establish a connection.
Next, after the mobile terminal a transmits the health inquiry identifier to the inquiry apparatus B, the inquiry apparatus B inquires from the server C that the health data of the user of the mobile terminal a is obtained based on the health inquiry identifier in step S240. In one implementation, the query device B may send the health query identifier to the server C, where the server C determines the user information and the terminal information corresponding to the health query identifier based on the health query identifier, further determines health data of the user of the mobile terminal a based on the user information and the terminal information, and feeds the obtained health data back to the query device B, so that the query device B queries the health data of the user of the mobile terminal a.
In one embodiment, in order to ensure data security, the health inquiry identifier is an identifier encrypted by using a target key pre-agreed by the mobile terminal a and the inquiry device B, and correspondingly, the step S240 is specifically configured to decrypt the health inquiry identifier by using a decryption key corresponding to the target key in step S31. In step 32, if the decryption is successful, the querying device B queries the health data of the user from the server C based on the decrypted health query identifier.
In one case, the target key may be a key generated based on a symmetric key generation algorithm, and accordingly, the querying device B decrypts the health query identifier using a decryption key corresponding to the target key, that is, the target key. In another case, the target key may be a key generated based on an asymmetric key generation algorithm, and accordingly, the target key may be a public key in a pair of public and private keys, and accordingly, the querying device B holds a private key corresponding to the public key, and after receiving the health query identifier, decrypts the health query identifier with the private key held by the querying device B. And if the decryption is successful, inquiring the health data of the user from the server C based on the decrypted health inquiry identification.
In yet another embodiment, the step S240 may be further specifically configured, in step S41, that the querying device B sends the health query identifier and the device identifier of the querying device B to the server C.
In step 42, the server C determines the designated location of the target location based on the device identification, which is recorded as the current location information of the user.
In step 43, the server C determines the health data of the user based on the health query identification and sends the health data to the querying device B.
At step 44, querying device B receives health data.
In this implementation manner, in order to better implement the query on the health data of the user, the travel track of the user needs to be determined, and accordingly, after obtaining the health query identifier sent by the mobile terminal a, the query device B may determine that the mobile terminal a (the user thereof) is near the location where the query device B is located, and then the query device B may send the health query identifier and the device identifier of the query device B to the server C. The server C determines the designated position of the target place based on the equipment identification and records the designated position as the current positioning information of the user so as to determine the position of the user of the mobile terminal A. And, the server C determines the health data of the user based on the health inquiry identification, and sends the health data to the inquiry equipment B, and the inquiry equipment B receives the health data.
In the embodiment, in the process of reporting and inquiring the health data, the mobile terminal A, the inquiring equipment B and the server C perform signal and data interaction in the whole course, manual participation of a user of the mobile terminal A is not needed, reporting and inquiring the health data of the user are completed under the condition that the user of the mobile terminal does not feel, and user experience is improved. The health data of the user can be acquired from the server C side in real time in the process, aggregation of personnel in the target place can be avoided, missed observation of the personnel in the target place can be avoided to a certain extent, and the cost of the personnel at the gate of the target place can be reduced to a certain extent. And the security guarantee of data and equipment can be realized by encrypting the health inquiry identification and authenticating the identity of the mobile terminal A.
In one embodiment, after the query device B receives the health data, in step S250, a corresponding prompt message may be output based on the health data. In this step, the query device B may output corresponding prompt information based on whether the health data characterizes whether the health of the user is abnormal.
In one embodiment, the step S250 may be specifically configured to output, in step S51, health prompt information indicating the health of the user if the health data indicates that the health of the user is not abnormal. In one case, the query device B may be provided with a display screen, if the health data indicates that the user is healthy and has no abnormality, the query device B may output the health prompt information in a text form, that is, the health prompt information is displayed on the display screen, for example, if the health data of the user indicates that the user is healthy and has no abnormality, and accordingly, the query device B may display "Zhang health code has no abnormality" on the display screen. In another case, the query device B may set a microphone, if the health data indicates that the user's health is not abnormal, the query device B may output the health prompt information indicating the user's health in audio form, for example, broadcast a "no abnormality in health code", etc., and the query device B may output the health prompt information indicating the user's health in any form.
If the health data indicates that the user health is abnormal, an abnormality alarm message is output in step 52. In the step, if the health data represent that the health of the user is abnormal, abnormal alarm information can be output in the form of audio or lamplight conversion so as to prompt the target site manager that the health of the user is abnormal, the subsequent target site manager can take corresponding measures to confirm the health data of the user again, and the like.
In still another embodiment, the step S250 may be specifically configured to determine whether the user' S health is abnormal according to the health data, and output the preset prompting message only when the abnormality occurs. In this step, only when the health data determines that the user health is abnormal, a preset prompt message is output, for example, in the form of audio or light conversion, so as to remind the target site manager that the user health is abnormal, the subsequent target site manager can take corresponding measures to confirm the health data of the user again, and so on. The operation and maintenance cost of the target place can be reduced to a certain extent, and the labor cost is reduced.
Corresponding to the above method embodiment, the embodiment of the present disclosure further provides a health data reporting method, which is executed by a mobile terminal, as shown in fig. 3, and includes the following steps S310 to S320:
s310, monitoring a first signal adopting a close range communication protocol in the environment;
And S320, after the first signal is monitored and the first signal is determined to have the target service signal identifier, sending a locally pre-stored health query identifier to query equipment sending the first signal through the near field communication protocol, so that the query equipment queries and obtains health data of a user of the mobile terminal from a server based on the health query identifier, wherein the health query identifier is generated based on terminal information of the mobile terminal and user information of the user of the mobile terminal.
In one embodiment, the near field communication protocol is one of a near field communication protocol and a Bluetooth transmission protocol.
In one embodiment, the sending the locally pre-stored health query identifier to the query device that sends the first signal includes:
establishing connection with the query device through the near field communication protocol;
and sending the health query identification to the query device through the established connection.
In one embodiment, the establishing a connection with the querying device includes:
Sending a connection request to the query device;
And responding to a connection reply sent by the query device for the connection request, and establishing connection with the query device, wherein the connection reply is sent after the query device verifies the mobile terminal.
In one embodiment, the method further comprises:
Invoking a data uploading interface of the server, and sending the terminal information and the user information to the server through the data uploading interface so that the server generates the health inquiry identifier based on the terminal information and the user information by using a preset identifier generation algorithm;
And receiving the health query identification from the server and storing the health query identification.
In one embodiment, the health query identifier is an encrypted identifier using a target key pre-agreed with the querying device.
Corresponding to the above method embodiment, the embodiment of the present disclosure further provides a health data query method, which is executed by a query device, as shown in fig. 4, and includes the following steps S410 to S430:
S410, broadcasting a first signal adopting a short-range communication protocol, wherein the first signal is provided with a target service signal identifier;
s420, receiving a health query identifier from a mobile terminal through the near field communication protocol, wherein the health query identifier is sent by the mobile terminal in response to the first signal, and the health query identifier is generated based on terminal information of the mobile terminal and user information of a user of the mobile terminal;
and S430, inquiring health data of the user of the mobile terminal from a server based on the health inquiry identification.
In one embodiment, the near field communication protocol is one of a near field communication protocol and a Bluetooth transmission protocol.
In one implementation manner, the receiving the health inquiry identification from the mobile terminal through the near field communication protocol includes:
Establishing connection with the mobile terminal through the near field communication protocol;
And receiving the health inquiry identification from the mobile terminal through the established connection.
In an embodiment, the establishing a connection with the mobile terminal includes:
Receiving a connection request from the mobile terminal;
Responding to the connection request, and verifying the mobile terminal by using a preset authentication mode;
and if the verification is passed, sending a connection reply to the mobile terminal so as to establish connection with the mobile terminal.
In one implementation, the health query identifier is an identifier encrypted by a target key pre-agreed with the query device;
the query from the server for health data of the user of the mobile terminal includes:
decrypting the health inquiry identifier by using a decryption key corresponding to the target key;
and if the decryption is successful, inquiring the health data of the user from the server based on the decrypted health inquiry identification.
In one embodiment, the querying, from the server, the health data of the user of the mobile terminal includes:
The health inquiry identification and the equipment identification of the inquiry equipment are sent to the server, so that the server determines the appointed position of the target place based on the equipment identification and records the appointed position as the current positioning information of the user;
The health data is received from the server.
In one embodiment, the method further comprises:
Based on the health data, outputting corresponding prompt information.
In an implementation manner, the outputting the corresponding prompt information based on the health data includes:
if the health data represents that the user health is abnormal, outputting health prompt information representing the user health;
And if the health data represents that the user health is abnormal, outputting abnormal alarm information.
In an implementation manner, the outputting the corresponding prompt information based on the health data includes:
Judging whether the user health is abnormal or not according to the health data, and outputting preset prompt information only when abnormality occurs.
In one embodiment, the query device belongs to an access control device of the target location.
The foregoing describes certain embodiments of the present disclosure, other embodiments being within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. Furthermore, the processes depicted in the accompanying figures are not necessarily required to achieve the desired result in the particular order shown, or in a sequential order. In some embodiments, multitasking and parallel processing are also possible, or may be advantageous.
Corresponding to the above method embodiments, in the embodiments of the present disclosure, a health data reporting device 500 is provided, where the device is deployed in a mobile terminal, and a schematic block diagram of the device is shown in fig. 5, and includes:
a monitoring module 510 configured to monitor a first signal in the environment in which the first signal is located using a short-range communication protocol;
And the sending module 520 is configured to send a locally pre-stored health query identifier to a query device sending the first signal through the short-range communication protocol after the first signal is monitored and the first signal is determined to have a target service signal identifier, so that the query device queries health data of a user of the mobile terminal from a server based on the health query identifier, wherein the health query identifier is generated based on terminal information of the mobile terminal and user information of the user of the mobile terminal.
In one embodiment, the near field communication protocol is one of a near field communication protocol and a Bluetooth transmission protocol.
In one implementation, the sending module 520 includes a first connection establishing unit (not shown in the figure) configured to establish a connection with the querying device through the short-range communication protocol, and a first sending unit (not shown in the figure) configured to send the health query identifier to the querying device through the established connection.
In one embodiment, the connection establishment unit is specifically configured to send a connection request to the query device;
And responding to a connection reply sent by the query device for the connection request, and establishing connection with the query device, wherein the connection reply is sent after the query device verifies the mobile terminal.
In one embodiment, the method further comprises:
a calling and transmitting module (not shown in the figure) configured to call a data uploading interface of the server, and transmit the terminal information and the user information to the server through the data uploading interface, so that the server generates the health query identifier based on the terminal information and the user information by using a preset identifier generating algorithm;
A receiving storage module (not shown) is configured to receive the health query identifier from the server and store the health query identifier.
In one embodiment, the health query identifier is an encrypted identifier using a target key pre-agreed with the querying device.
Corresponding to the above method embodiments, the present disclosure provides a health data query device 600, where the device is disposed in a query apparatus, and the query apparatus is disposed in a designated location of a target location, and a schematic block diagram thereof is shown in fig. 6, and includes:
A broadcasting module 610 configured to broadcast a first signal employing a near field communication protocol, the first signal having a target service signal identification;
A receiving module 620 configured to receive a health query identifier from a mobile terminal through the close range communication protocol, wherein the health query identifier is sent by the mobile terminal in response to the first signal being monitored, and the health query identifier is generated based on terminal information of the mobile terminal and user information of a user thereof;
a query module 630 configured to query from a server health data of a user of the mobile terminal based on the health query identification.
In one embodiment, the near field communication protocol is one of a near field communication protocol and a Bluetooth transmission protocol.
In one embodiment, the receiving module 620 includes:
A second connection establishment unit (not shown in the figure) configured to establish a connection with the mobile terminal through the near field communication protocol;
a receiving unit (not shown in the figure) configured to receive the health query identification from the mobile terminal via the established connection.
In an embodiment, the second connection establishment unit is specifically configured to receive a connection request from the mobile terminal;
Responding to the connection request, and verifying the mobile terminal by using a preset authentication mode;
and if the verification is passed, sending a connection reply to the mobile terminal so as to establish connection with the mobile terminal.
In one implementation, the health query identifier is an identifier encrypted by a target key pre-agreed with the query device;
The query module 630 is specifically configured to decrypt the health query identifier by using a decryption key corresponding to the target key;
and if the decryption is successful, inquiring the health data of the user from the server based on the decrypted health inquiry identification.
In one implementation, the query module 630 is specifically configured to send the health query identifier and the device identifier of the query device to the server, so that the server determines the designated location of the target location based on the device identifier, records the designated location as the current location information of the user, determines health data of the user based on the health query identifier, and receives the health data from the server.
In one embodiment, the method further comprises:
And an output module (not shown in the figure) configured to output corresponding prompt information based on the health data.
In one embodiment, the output module is specifically configured to output health prompt information indicating the health of the user if the health data indicates that the health of the user is not abnormal;
And if the health data represents that the user health is abnormal, outputting abnormal alarm information.
In an embodiment, the output module is specifically configured to determine whether the user health is abnormal according to the health data, and output preset prompt information only when abnormality occurs.
In one embodiment, the query device belongs to an access control device of the target location.
The foregoing apparatus embodiments correspond to the method embodiments, and specific descriptions may be referred to descriptions of method embodiment portions, which are not repeated herein. The device embodiments are obtained based on corresponding method embodiments, and have the same technical effects as the corresponding method embodiments, and specific description can be found in the corresponding method embodiments.
The embodiments of the present specification also provide a computer-readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform the health data reporting method provided in the present specification.
The embodiment of the specification also provides a computing device, which comprises a memory and a processor, wherein executable codes are stored in the memory, and the processor realizes the health data reporting method provided by the specification when executing the executable codes.
The embodiments of the present specification also provide a computer-readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform the health data query method provided in the present specification.
The embodiment of the specification also provides a computing device, which comprises a memory and a processor, wherein executable codes are stored in the memory, and the processor realizes the health data query method provided by the specification when executing the executable codes.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for storage media and computing device embodiments, since they are substantially similar to method embodiments, the description is relatively simple, with reference to the description of method embodiments in part.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the embodiments of the present invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
The foregoing detailed description of the embodiments of the present invention further details the objects, technical solutions and advantageous effects of the embodiments of the present invention. It should be understood that the foregoing description is only specific to the embodiments of the present invention and is not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.