Data transmission method and apparatus, and electronic device and storage medium

By activating the health monitoring device through a base station or a designated mobile terminal, and by leveraging the collaborative work of the server and base station, the problems of user inability to activate and upload data are solved, enabling automatic connection and real-time data transmission of the health monitoring device.

WO2026038190A1PCT designated stage Publication Date: 2026-02-19SYAI UK LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/IB2025/058292
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-08-16
Filing Date
2025-08-15
Publication Date
2026-02-19

AI Technical Summary

Technical Problem

In settings such as hospitals or nursing homes, users may not have a mobile phone or be unable to operate the health monitoring application, resulting in failure to activate the health monitoring device and upload data. Furthermore, due to movement, the communication connection may be lost, making it impossible to continuously upload health monitoring data in real time.

Method used

The health monitoring device is activated by a base station or a designated mobile terminal, and the status and signal strength of the candidate devices to be connected are determined by the collaborative work of the server and the base station, so as to realize the automatic connection of the devices and data transmission, thus avoiding dependence on the user terminal.

Benefits of technology

It enables automatic activation and data uploading of health monitoring devices when user terminals are unavailable, ensuring real-time transmission of health monitoring data and adapting to changes in device location.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000042_0000
    Figure 00000042_0000
  • Figure 00000043_0000
    Figure 00000043_0000
  • Figure 00000044_0000
    Figure 00000044_0000
Patent Text Reader

Abstract

Disclosed in the present application are a data transmission method and apparatus, and an electronic device and a storage medium. The data transmission method comprises: receiving activation success information of a health monitoring device, and marking the state of the health monitoring device as an active state, wherein the activation success information of the health monitoring device is sent by the health monitoring device after a specified mobile terminal activates the health monitoring device, or is sent by a base station after the base station activates the health monitoring device; receiving association information, which is sent by the base station, of candidate health monitoring devices to be connected and that can be connected to within the coverage area of the base station; on the basis of the association information of said candidate health monitoring devices and the state of said candidate health monitoring devices, if it is determined that a connection condition is met, returning to the base station a message indicating that said candidate health monitoring devices are to be connected, such that the base station establishes connections with said candidate health monitoring devices; and receiving health monitoring data that is sent by the base station and acquired from the health monitoring devices connected to the base station.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The application relates to the field of artificial intelligence, and particularly relates to a data transmission method, device, electronic equipment and storage medium. Health monitoring equipment is increasingly applied in hospitals, nursing homes and other public places. Health monitoring data of a monitored object, such as physiological data, biochemical data and physical data, can be collected in real time or periodically by a health monitoring device worn by the monitored object, so as to monitor the health status of the monitored object. In the related art, the transmission process of the data collected by the health monitoring device is as follows: a health monitoring application program (Application, APP) is installed on a mobile terminal of the monitored object, the health monitoring device is connected to the health monitoring application program in the mobile terminal through Bluetooth communication, the health monitoring device is activated through the health monitoring application program in the mobile terminal, and the health monitoring data of the monitored object monitored by the health monitoring device is collected, and then the health monitoring data of the monitored object collected by the health monitoring application program in the mobile terminal is uploaded to a server, and the server provides personalized health management and auxiliary diagnosis services for the monitored object according to the received health data. However, in a hospital or a nursing home, some users may not have a mobile phone or other mobile terminal equipment, or some old users cannot operate the health monitoring application program, so that the activation of the health monitoring device and the uploading of the health monitoring data cannot be completed. In addition, in a hospital or a nursing home, as the position of the monitored object wearing the health monitoring device moves, the communication connection between the mobile terminal of the monitored object and the health monitoring device worn by the monitored object may be disconnected, so that the health monitoring data of the monitored object cannot be continuously and real-timely uploaded. In order to solve the problems that the activation of the health monitoring device and the uploading of the health monitoring data fail in the prior art, and the health monitoring data of the monitored object cannot be continuously and real-timely uploaded due to the disconnection of the communication connection between the mobile terminal of the monitored object and the health monitoring device worn by the monitored object, the application provides a data transmission method, device, electronic equipment and storage medium.In a first aspect, the embodiments of the present application provide a server-side implemented data transmission method, comprising: receiving activation success information of a health monitoring device, marking a state of the health monitoring device as an activated state, wherein the activation success information of the health monitoring device is sent by the health monitoring device after a specified mobile terminal activates the health monitoring device, or is sent by a base station after the base station activates the health monitoring device; receiving association information of a candidate to-be-connected health monitoring device sent by the base station, wherein the candidate to-be-connected health monitoring device is a to-be-connected health monitoring device detected by the base station and connectable within a coverage range of the base station; if it is determined that a connection condition is met based on the association information of the candidate to-be-connected health monitoring device and a state of the candidate to-be-connected health monitoring device, returning a message indicating connecting the candidate to-be-connected health monitoring device to the base station, so that the base station is connected with the candidate to-be-connected health monitoring device; and receiving health monitoring data acquired from each health monitoring device connected by the base station. In an embodiment, the association information of the candidate to-be-connected health monitoring device comprises identification information of the candidate to-be-connected health monitoring device and signal strength information between the candidate to-be-connected health monitoring device and the base station; and the determination that the connection condition is met based on the association information of the candidate to-be-connected health monitoring device and the state of the candidate to-be-connected health monitoring device specifically comprises: searching for the state of the candidate to-be-connected health monitoring device based on the identification information of the candidate to-be-connected health monitoring device; and if it is determined that the state of the candidate to-be-connected health monitoring device is the activated state, and the signal strength between the candidate to-be-connected health monitoring device and the base station at a current time is greater than the signal strength between the candidate to-be-connected health monitoring device and a first base station at a disconnection time of the candidate to-be-connected health monitoring device from the first base station, it is determined that the connection condition is met. In an embodiment, the association information of the candidate to-be-connected health monitoring device comprises identification information of the candidate to-be-connected health monitoring device and signal strength information between the candidate to-be-connected health monitoring device and the base station; and the determination that the connection condition is met based on the association information of the candidate to-be-connected health monitoring device and the state of the candidate to-be-connected health monitoring device specifically comprises: searching for the state of the candidate to-be-connected health monitoring device based on the identification information of the candidate to-be-connected health monitoring device; and if it is determined that the state of the candidate to-be-connected health monitoring device is the activated state, and the signal strength between the candidate to-be-connected health monitoring device and the base station at a current time is greater than the signal strength between the candidate to-be-connected health monitoring device and each second base station adjacent to the base station, it is determined that the connection condition is met.In an embodiment, the message indicating to connect the candidate health monitoring device comprises authentication information of the candidate health monitoring device, so that the base station and the candidate health monitoring device perform mutual authentication based on the authentication information, and perform connection after successful authentication. In an embodiment, the authentication information of the candidate health monitoring device comprises a key set corresponding to the candidate health monitoring device, and the key set comprises each key corresponding to the candidate health monitoring device and a key identifier. In an embodiment, before receiving the association information of the candidate health monitoring device sent by the base station, the method further comprises: receiving a login request sent by the base station, wherein the login request comprises identification information and login key information of the base station; and checking the identification information and the login key information of the base station, and if it is determined that the check is passed, returning login token information to the base station, so that the base station carries the login token information when sending data. In a second aspect, an embodiment of the present application provides a server-side implemented data transmission device, comprising: a first receiving unit configured to receive activation success information of a health monitoring device, and mark a state of the health monitoring device as an activated state, wherein the activation success information of the health monitoring device is sent by the health monitoring device after a specified mobile terminal activates the health monitoring device, or is sent by a base station after the base station activates the health monitoring device; a second receiving unit configured to receive association information of a candidate health monitoring device sent by a base station, wherein the candidate health monitoring device is a health monitoring device that can be connected within a coverage range of the base station and detected by the base station; a returning unit configured to return, to the base station, a message indicating to connect the candidate health monitoring device, if it is determined that a connection condition is met based on the association information of the candidate health monitoring device and a state of the candidate health monitoring device, so that the base station and the candidate health monitoring device are connected; and a third receiving unit configured to receive health monitoring data obtained by the base station from each health monitoring device connected thereto. In an embodiment, the association information of the candidate health monitoring device comprises identification information of the candidate health monitoring device and signal strength information between the candidate health monitoring device and the base station; and the returning unit is specifically configured to find the state of the candidate health monitoring device based on the identification information of the candidate health monitoring device, and determine that the connection condition is met, if it is determined that the state of the candidate health monitoring device is the activated state, and a signal strength between the candidate health monitoring device and the base station at a current time is greater than a signal strength between the candidate health monitoring device and a first base station at a disconnection time of the candidate health monitoring device from the first base station.In an embodiment, the association information of the candidate health monitoring device to be connected includes identification information of the candidate health monitoring device to be connected and signal strength information between the candidate health monitoring device to be connected and the base station; the returning unit is specifically configured to search for a state of the candidate health monitoring device to be connected based on the identification of the candidate health monitoring device to be connected; if it is determined that the state of the candidate health monitoring device to be connected is an active state and the signal strength between the candidate health monitoring device to be connected and the base station at a current time is greater than the signal strength between each second base station adjacent to the base station and the candidate health monitoring device to be connected, it is determined that the connection condition is met. In an embodiment, the message indicating to connect the candidate health monitoring device to be connected contains authentication information of the candidate health monitoring device to be connected, so that the base station and the candidate health monitoring device to be connected perform mutual authentication based on the authentication information and are connected after the authentication is successful. In an embodiment, the authentication information of the candidate health monitoring device to be connected includes a key set corresponding to the candidate health monitoring device to be connected, and the key set includes each key corresponding to the candidate health monitoring device to be connected and a key identifier. In an embodiment, the apparatus further includes a fourth receiving unit configured to receive a login request sent by the base station before receiving the association information of the candidate health monitoring device to be connected sent by the base station, and the login request contains identification information and login key information of the base station; a checking unit configured to check the identification information and the login key information of the base station, and if it is determined that the checking is passed, return login token information to the base station, so that the base station carries the login token information when sending data. In a third aspect, an embodiment of the present application provides a data transmission method implemented on a base station side, including: sending, to a server, activation success information of a health monitoring device to be activated after the health monitoring device is activated, so that the server marks a state of the health monitoring device as an active state; sending, to the server, association information of a candidate health monitoring device to be connected detected in a coverage range, so that the server determines whether a connection condition is met based on the association information of the candidate health monitoring device to be connected and a state of the candidate health monitoring device to be connected; connecting the candidate health monitoring device to be connected when it is determined that a message indicating to connect the candidate health monitoring device to be connected returned by the server is received; receiving health monitoring data reported by each connected health monitoring device, and sending the health monitoring data reported by the each health monitoring device to the server.In an embodiment, the to-be-activated health monitoring device is activated by: receiving a Bluetooth broadcast data packet sent by the to-be-activated health monitoring device, the Bluetooth broadcast data packet being sent by the to-be-activated health monitoring device after being woken up by a specified mobile terminal; obtaining identification information of the to-be-activated health monitoring device from the to-be-activated health monitoring device; sending the identification information of the to-be-activated health monitoring device to the server, so that the server checks the identification information of the to-be-activated health monitoring device; receiving authentication information of the to-be-activated health monitoring device sent by the server, the authentication information of the to-be-activated health monitoring device being sent by the server after the identification information of the to-be-activated health monitoring device is checked; and performing mutual authentication between the to-be-activated health monitoring device and the authentication information of the to-be-activated health monitoring device, and activating the to-be-activated health monitoring device after successful authentication. In an embodiment, the authentication information of the to-be-activated health monitoring device includes a key set corresponding to the to-be-activated health monitoring device, and the key set includes each key corresponding to the to-be-activated health monitoring device and a key identifier; and the mutual authentication between the to-be-activated health monitoring device and the authentication information of the to-be-activated health monitoring device includes: generating a first public key and a first private key according to a preset key agreement algorithm; selecting an arbitrary first key from the key set, and generating first signature information by using a hash algorithm according to the selected first key, first time information, and the first public key; sending a first authentication request to the to-be-activated health monitoring device, the first authentication request carrying identification information of the first key, the first time information, the first public key, and the first signature information, so that the to-be-activated health monitoring device generates second signature information by using the hash algorithm according to a key corresponding to the identification information of the first key, the first time information, and the first public key, to check whether the second signature information is consistent with the first signature information; receiving a second authentication request sent by the to-be-activated health monitoring device when it is determined that the second signature information is consistent with the first signature information, the second authentication request carrying identification information of a second key, second time information, a second public key, and third signature information, the third signature information being generated by the to-be-activated health monitoring device by using the hash algorithm according to the selected second key, the second time information, and the second public key, and the second public key being generated by the to-be-activated health monitoring device according to the preset key agreement algorithm; generating fourth signature information by using the hash algorithm according to a key corresponding to the identification information of the second key, the second time information, and the second public key; and determining that the authentication is successful if it is determined that the fourth signature information is consistent with the third signature information.In a fourth aspect, an embodiment of the present application provides a data transmission device implemented at a base station side, comprising: a first sending unit configured to send, to a server, activation success information of a health monitoring device after the health monitoring device is activated, so that the server marks a state of the health monitoring device as an activated state; a second sending unit configured to send, to the server, association information of a candidate health monitoring device to be connected which can be connected within a coverage range, so that the server determines whether a connection condition is met based on the association information of the candidate health monitoring device to be connected and a state of the candidate health monitoring device to be connected; a processing unit configured to, when it is determined that a message indicating that the candidate health monitoring device to be connected is connected is returned by the server, connect with the candidate health monitoring device to be connected; and a third sending unit configured to receive health monitoring data reported by each health monitoring device connected, and send the health monitoring data reported by each health monitoring device to the server. In an implementation manner, the device further comprises an activation unit configured to activate the health monitoring device to be activated by: receiving a Bluetooth broadcast data packet sent by the health monitoring device to be activated, the Bluetooth broadcast data packet being sent by the health monitoring device to be activated after the health monitoring device to be activated is woken up by a specified mobile terminal; obtaining identification information of the health monitoring device to be activated from the health monitoring device to be activated; sending the identification information of the health monitoring device to be activated to the server, so that the server checks the identification information of the health monitoring device to be activated; receiving authentication information of the health monitoring device to be activated sent by the server, the authentication information of the health monitoring device to be activated being sent by the server after the checking of the identification information of the health monitoring device to be activated is passed; performing two-way authentication with the health monitoring device to be activated based on the authentication information of the health monitoring device to be activated, and activating the health monitoring device to be activated after the authentication is passed.In an embodiment, the authentication information of the health monitoring device to be activated comprises a key set corresponding to the health monitoring device to be activated, the key set comprising each key corresponding to the health monitoring device to be activated and a key identifier; the activation unit is specifically configured to generate a first public key and a first private key according to a preset key agreement algorithm; select an arbitrary first key from the key set, and generate first signature information by using a hash algorithm according to the selected first key, first time information and the first public key; send a first authentication request to the health monitoring device to be activated, the first authentication request carrying the identifier information of the first key, the first time information, the first public key and the first signature information, so that the health monitoring device to be activated generates second signature information by using the hash algorithm according to the key corresponding to the identifier of the first key, the first time information and the first public key, to verify whether the second signature information is consistent with the first signature information; receive a second authentication request sent by the health monitoring device to be activated when it is determined that the second signature information is consistent with the first signature information, the second authentication request carrying the identifier information of a second key, second time information, a second public key and third signature information, the third signature information being generated by the health monitoring device to be activated by using the hash algorithm according to the selected second key, the second time information and the second public key, the second public key being generated by the health monitoring device to be activated according to the preset key agreement algorithm; generate fourth signature information by using the hash algorithm according to the key corresponding to the identifier of the second key, the second time information and the second public key; and if it is determined that the fourth signature information is consistent with the third signature information, it is determined that the authentication is successful. In a fifth aspect, an embodiment of the present application provides a data transmission method implemented on a designated mobile terminal side, comprising: waking up a health monitoring device to be activated; obtaining identifier information of the health monitoring device to be activated; sending the identifier information of the health monitoring device to be activated to a server, so that the server verifies the identifier of the health monitoring device to be activated; receiving authentication information of the health monitoring device to be activated sent by the server, the authentication information of the health monitoring device to be activated being sent by the server after the verification of the identifier of the health monitoring device to be activated is passed; performing bidirectional authentication with the health monitoring device to be activated based on the authentication information of the health monitoring device to be activated, connecting with the health monitoring device to be activated after the authentication is successful, activating the health monitoring device to be activated; sending activation success information of the health monitoring device to the server, so that the server marks the state of the health monitoring device as an activated state; and disconnecting the connection between the health monitoring device and the server.In an embodiment, the authentication information of the health monitoring device to be activated comprises a key set corresponding to the health monitoring device to be activated, the key set comprising each key corresponding to the health monitoring device to be activated and a key identifier; the mutual authentication between the health monitoring device to be activated and the authentication information of the health monitoring device to be activated comprises: generating a third public key and a third private key according to a preset key agreement algorithm; selecting an arbitrary third key from the key set, and generating fifth signature information by using a hash algorithm according to the selected third key, third time information and the third public key; sending a third authentication request to the health monitoring device to be activated, the third authentication request carrying the identifier information of the third key, the third time information, the third public key and the fifth signature information, so that the health monitoring device to be activated generates sixth signature information by using the hash algorithm according to the key corresponding to the identifier of the third key, the third time information and the third public key, to verify whether the sixth signature information is consistent with the fifth signature information; receiving a fourth authentication request sent by the health monitoring device to be activated when it is determined that the sixth signature information is consistent with the fifth signature information, the fourth authentication request carrying the identifier information of a fourth key, fourth time information, a fourth public key and seventh signature information, the seventh signature information being generated by the health monitoring device to be activated by using the hash algorithm according to the selected fourth key, the fourth time information and the fourth public key, the fourth public key being generated by the health monitoring device to be activated according to the preset key agreement algorithm; generating eighth signature information by using the hash algorithm according to the key corresponding to the identifier of the fourth key, the fourth time information and the fourth public key; and determining that the authentication is successful if it is determined that the eighth signature information is consistent with the seventh signature information. In an embodiment, before the identifier information of the health monitoring device to be activated is sent to the server, the method further comprises: sending a login request to the server, the login request containing login information; and receiving access token information returned by the server, the access token being generated by the server after verifying that the login information is successful.In a sixth aspect, the embodiments of the present application provide a data transmission apparatus implemented on a designated mobile terminal side, comprising: a wake-up unit configured to wake up a health monitoring device to be activated, and obtain identification information of the health monitoring device to be activated; a first sending unit configured to send the identification information of the health monitoring device to be activated to a server, so that the server checks the identification of the health monitoring device to be activated; a first receiving unit configured to receive authentication information of the health monitoring device to be activated sent by the server, the authentication information of the health monitoring device to be activated being sent by the server after the check of the identification of the health monitoring device to be activated is passed; an authentication unit configured to perform bidirectional authentication with the health monitoring device to be activated based on the authentication information of the health monitoring device to be activated, and connect with the health monitoring device to be activated after the authentication is passed, and activate the health monitoring device to be activated; a second sending unit configured to send activation success information of the health monitoring device to the server, so that the server marks a state of the health monitoring device as an activated state; and disconnect the connection between the health monitoring device and the server.In an embodiment, the authentication information of the health monitoring device to be activated comprises a key set corresponding to the health monitoring device to be activated, the key set comprising each key corresponding to the health monitoring device to be activated and a key identifier; the authentication unit is specifically configured to generate a third public key and a third private key according to a preset key agreement algorithm; select an arbitrary third key from the key set, and generate fifth signature information by using a hash algorithm according to the selected third key, third time information and the third public key; send a third authentication request to the health monitoring device to be activated, the third authentication request carrying the identifier information of the third key, the third time information, the third public key and the fifth signature information, so that the health monitoring device to be activated generates sixth signature information by using the hash algorithm according to the key corresponding to the identifier of the third key, the third time information and the third public key, to verify whether the sixth signature information is consistent with the fifth signature information; receive the fourth authentication request sent by the health monitoring device to be activated when it is determined that the sixth signature information is consistent with the fifth signature information, the fourth authentication request carrying the identifier information of a fourth key, fourth time information, a fourth public key and seventh signature information, the seventh signature information being generated by the health monitoring device to be activated by using the hash algorithm according to the selected fourth key, the fourth time information and the fourth public key, the fourth public key being generated by the health monitoring device to be activated according to the preset key agreement algorithm; generate eighth signature information by using the hash algorithm according to the key corresponding to the identifier of the fourth key, the fourth time information and the fourth public key; and if it is determined that the eighth signature information is consistent with the seventh signature information, it is determined that the authentication is successful. In an embodiment, the device further comprises: a third sending unit configured to send a login request to a server before sending the identifier information of the health monitoring device to be activated to the server, the login request comprising login information; and a second receiving unit configured to receive access token information returned by the server, the access token being generated by the server after verifying that the login information is successful.In a seventh aspect, the embodiments of the present application provide a data transmission method implemented by a health monitoring device, comprising: receiving an identification information acquisition request of the health monitoring device sent by a specified mobile terminal or a base station, the identification information acquisition request of the health monitoring device being sent by the specified mobile terminal or the base station after the health monitoring device is woken up by the specified mobile terminal; returning identification information of the health monitoring device to the specified mobile terminal or the base station, so that the specified mobile terminal or the base station activates the health monitoring device according to the identification information of the health monitoring device; sending association information of the health monitoring device to a connectable base station after being activated, so that the base station sends the association information of the health monitoring device to a server, and the server determines whether a connection condition is met based on the association information of the health monitoring device and a state of the health monitoring device; and reporting collected health monitoring data to the base station after connecting with the base station, so that the base station sends the health monitoring data to the server, wherein the health monitoring device is connected with the base station after the base station receives a message indicating to connect the health monitoring device returned by the server. In an implementation manner, the message indicating to connect the health monitoring device contains authentication information of the health monitoring device; and before the connection with the base station is established, the method further comprises: performing two-way authentication with the base station based on the authentication information of the health monitoring device; and determining that the two-way authentication is successful.In an embodiment, the bi-directional authentication with the base station based on the authentication information of the health monitoring device specifically comprises: receiving a fifth authentication request sent by the base station, the fifth authentication request carrying identification information of a fifth key, fifth time information, a fifth public key and ninth signature information, the fifth public key being generated by the base station according to a preset key agreement algorithm, the fifth key being selected by the base station from a key set in the authentication information of the health monitoring device returned by the server, and the ninth signature information being generated by the base station using a hash algorithm according to the fifth key, the fifth time information and the fifth public key; generating tenth signature information using the hash algorithm according to the key corresponding to the identification of the fifth key, the fifth time information and the fifth public key; if it is determined that the tenth signature information is consistent with the ninth signature information, generating a sixth public key and a sixth private key according to the preset key agreement algorithm; selecting an arbitrary sixth key from a locally stored key set, and generating eleventh signature information using the hash algorithm according to the selected sixth key, sixth time information and the sixth public key; and sending a sixth authentication request to the base station, the sixth authentication request carrying identification information of the sixth key, the sixth time information, the sixth public key and the eleventh signature information, so that the base station generates twelfth signature information using the hash algorithm according to the key corresponding to the identification of the sixth key, the sixth time information and the sixth public key, to verify whether the twelfth signature information is consistent with the eleventh signature information. In an embodiment, if it is determined that the bi-directional authentication is successful, the method further comprises: generating a shared key by the base station based on the fifth public key, a fifth private key corresponding to the fifth public key, the sixth public key and the sixth private key using the preset key agreement algorithm; sending the shared key to the server, so that the server stores the correspondence between the identification information of the health monitoring device and the shared key; and reporting the collected health monitoring data to the base station, so that the base station sends the health monitoring data to the server, specifically comprising: encrypting the health monitoring data according to the shared key and a preset encryption algorithm to generate encrypted health monitoring data; and sending the encrypted health monitoring data to the server, so that the server decrypts the encrypted health monitoring data according to the shared key.In an eighth aspect, the embodiments of the present application provide a data transmission apparatus implemented by a health monitoring device, comprising: a receiving unit configured to receive an identification information acquisition request of the health monitoring device sent by a specified mobile terminal or a base station, the identification information acquisition request of the health monitoring device being sent by the specified mobile terminal or the base station after the health monitoring device is woken up by the specified mobile terminal; a returning unit configured to return identification information of the health monitoring device to the specified mobile terminal or the base station, so that the specified mobile terminal or the base station activates the health monitoring device according to the identification information of the health monitoring device; a first sending unit configured to send association information of the health monitoring device to a connectable base station after being activated, so that the base station sends the association information of the health monitoring device to a server, and the server determines whether a connection condition is met based on the association information of the health monitoring device and a state of the health monitoring device; and a reporting unit configured to report collected health monitoring data to the base station after being connected to the base station, so that the base station sends the health monitoring data to the server, wherein the health monitoring device is connected to the base station after the base station receives a message indicating to connect the health monitoring device returned by the server. In an implementation manner, the message indicating to connect the health monitoring device contains authentication information of the health monitoring device; and the apparatus further comprises: an authentication unit configured to perform bidirectional authentication with the base station based on the authentication information of the health monitoring device before establishing a connection with the base station; and a determination unit configured to determine that the bidirectional authentication is successful.In an embodiment, the authentication unit is specifically configured to receive a fifth authentication request sent by the base station, the fifth authentication request carrying identification information of a fifth key, fifth time information, a fifth public key, and ninth signature information, the fifth public key being generated by the base station according to a preset key agreement algorithm, the fifth key being selected by the base station from a key set in authentication information of the health monitoring device returned by the server, and the ninth signature information being generated by the base station according to the fifth key, the fifth time information, and the fifth public key using a hash algorithm; a tenth signature information is generated using the hash algorithm according to a key corresponding to the identification of the fifth key, the fifth time information, and the fifth public key; if it is determined that the tenth signature information is consistent with the ninth signature information, a sixth public key and a sixth private key are generated according to the preset key agreement algorithm; an arbitrary sixth key is selected from a locally stored key set, and an eleventh signature information is generated using the hash algorithm according to the selected sixth key, sixth time information, and the sixth public key; and a sixth authentication request is sent to the base station, the sixth authentication request carrying identification information of the sixth key, the sixth time information, the sixth public key, and the eleventh signature information, so that the base station generates a twelfth signature information using the hash algorithm according to a key corresponding to the identification of the sixth key, the sixth time information, and the sixth public key, to verify whether the twelfth signature information is consistent with the eleventh signature information. In an embodiment, the method further includes: a key agreement unit configured to generate a shared key based on the fifth public key, a fifth private key corresponding to the fifth public key, the sixth public key, and the sixth private key if it is determined that the mutual authentication is successful; a second sending unit configured to send the shared key to the server, so that the server stores a correspondence between identification information of the health monitoring device and the shared key; and the reporting unit is specifically configured to encrypt the health monitoring data according to the shared key and a preset encryption algorithm to generate encrypted health monitoring data, and send the encrypted health monitoring data to the server, so that the server decrypts the encrypted health monitoring data according to the shared key. In a ninth aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the data transmission method described in the present application when executing the program. In a tenth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the program is executed by a processor to implement the steps in the data transmission method described in the present application.The beneficial effects of the present application are as follows: The data transmission method, device, electronic equipment and storage medium provided by the embodiments of the present application activate the health monitoring device through a specified mobile terminal or a base station, send the activation success information of the health monitoring device to the server when the health monitoring device is activated successfully, mark the state of the health monitoring device as an activated state by the server, detect the connectable to-be-connected monitoring device within the coverage range of the base station, take the to-be-connected monitoring device as a candidate to-be-connected health monitoring device, send the association information of the candidate to-be-connected health monitoring device to the server, determine whether the connection condition is met based on the association information of the candidate to-be-connected health monitoring device and the state of the candidate to-be-connected health monitoring device, return a message indicating the connection of the candidate to-be-connected health monitoring device to the base station if the connection condition is met, connect the base station with the candidate to-be-connected health monitoring device, and send the health monitoring data obtained from the health monitoring device connected to the server by the base station. In the embodiments of the present application, the health monitoring device does not need to be activated by the mobile terminal of the monitored object and the health monitoring data monitored by the health monitoring device does not need to be uploaded to the server by the mobile terminal of the monitored object, but the health monitoring device is activated by a specified mobile terminal (such as the mobile terminal of a medical staff or an independent mobile terminal) or a base station, the candidate to-be-connected health monitoring device within the coverage range of the base station is detected, whether the candidate to-be-connected health monitoring device meets the connection condition is determined by the server, the base station is connected with the candidate to-be-connected health monitoring device meeting the connection condition, and the health monitoring data obtained from the health monitoring device can be uploaded to the server by the base station in real time. In this way, the problem that the health monitoring device cannot be activated and the health monitoring data cannot be uploaded due to the fact that the monitored object does not have a mobile phone or other mobile terminal or does not operate the health monitoring application program in the mobile terminal of the monitored object is avoided. Furthermore, the health monitoring device within the coverage range of the base station can be detected in real time by using the base station provided by the embodiments of the present application. When the position of the monitored object wearing the health monitoring device moves and the health monitoring device is disconnected from the connected base station, the base station covering the current position of the health monitoring device can detect the health monitoring device in time, so that the health monitoring device is connected to the qualified base station and the real-time uploading of the health monitoring data is continued. Other features and advantages of the present application will be described in the following description, and some of them will become apparent from the description, or will be understood by those skilled in the art through implementation of the present application. The purposes and other advantages of the present application can be achieved and obtained by the structures particularly pointed out in the written description, claims, and drawings. The accompanying drawings described herein are used to provide further understanding of the present application, constitute a part of the present application, and the illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application.In the drawings: Fig. 1 is a schematic diagram of an application scenario of a data transmission method provided by an embodiment of the present application; Fig. 2 is a schematic diagram of an implementation process of activating a health monitoring device by a base station according to an embodiment of the present application; Fig. 3 is a schematic diagram of an implementation process of bidirectional authentication between a base station and a health monitoring device to be activated according to an embodiment of the present application; Fig. 4 is a schematic diagram of an implementation process of activating a health monitoring device by a designated mobile terminal according to an embodiment of the present application; Fig. 5 is a schematic diagram of an implementation process of bidirectional authentication between a designated mobile terminal and a health monitoring device to be activated according to an embodiment of the present application; Fig. 6 is a schematic diagram of a scenario in which a health monitoring device is in a disconnected state according to an embodiment of the present application; Fig. 7 is a schematic diagram of an implementation process of a data transmission method according to an embodiment of the present application; Fig. 8 is a schematic diagram of an implementation process of bidirectional authentication between a base station and a candidate health monitoring device to be connected according to an embodiment of the present application; Fig. 9 is a schematic diagram of an implementation process of a data transmission method implemented on a server side according to an embodiment of the present application; Fig. 10 is a schematic diagram of a structure of a data transmission apparatus implemented on a server side according to an embodiment of the present application; Fig. 11 is a schematic diagram of an implementation process of a data transmission method implemented on a base station side according to an embodiment of the present application; Fig. 12 is a schematic diagram of a structure of a data transmission apparatus implemented on a base station side according to an embodiment of the present application; Fig. 13 is a schematic diagram of an implementation process of a data transmission method implemented on a designated mobile terminal side according to an embodiment of the present application; Fig. 14 is a schematic diagram of a structure of a data transmission apparatus implemented on a designated mobile terminal side according to an embodiment of the present application; Fig. 15 is a schematic diagram of an implementation process of a data transmission method implemented on a health monitoring device side according to an embodiment of the present application; Fig. 16 is a schematic diagram of a structure of a data transmission apparatus implemented on a health monitoring device side according to an embodiment of the present application; and Fig. 17 is a schematic diagram of a structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION In order to solve the problems of activation of a health monitoring device and failure of uploading of health monitoring data in the prior art and the problem that health monitoring data of a monitored object cannot be continuously and real-timely uploaded due to disconnection of a mobile terminal of the monitored object and a health monitoring device worn by the monitored object, an embodiment of the present application provides a data transmission method, a data transmission apparatus, an electronic device, and a storage medium. Preferred embodiments of the present application are described below with reference to the drawings of the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application, and the embodiments in the present application and the features in the embodiments can be combined with each other without conflict. First, refer to Fig. 1, which is a schematic diagram of an application scenario of a data transmission method provided by an embodiment of the present application, which can include a designated mobile terminal 11, a base station 12, a health monitoring device 13, and a server 14.Wherein, the designated mobile terminal 11 can be a mobile terminal of a medical staff, or can be an independent mobile terminal, the designated mobile terminal 11 is used for waking up the health monitoring device 13, or is used for waking up and activating the health monitoring device 13. The base station 12 can be set up by itself according to requirements in a hospital or a nursing home and the like, for example, one base station 12 is set up in every interval of several rooms, the embodiment of the application is not limited thereto, and the base station 12 provided by the embodiment of the application can be used for activating the health monitoring device 13 after the health monitoring device 13 is woken up by the designated mobile terminal 11, detecting the health monitoring device 13 in the coverage range, connecting with the health monitoring device 13 meeting the connection condition, obtaining the health monitoring data of the monitored object monitored by the health monitoring device 13, and uploading the health monitoring data to the server 14. The base station 12 can also be used for detecting the health monitoring device 13 in the coverage range after the health monitoring device 13 is woken up and activated by the designated mobile terminal 11, connecting with the health monitoring device 13 meeting the connection condition, obtaining the health monitoring data of the monitored object monitored by the health monitoring device 13, and uploading the health monitoring data to the server 14. The base station 13 provided by the embodiment of the application is equivalent to a data relay forwarding device, and the base station 13 can include the following modules: a first communication module, a processor, a second communication module and a memory, the first communication module, the second communication module, the memory are connected with the processor respectively, the first communication module can be a Bluetooth communication module, the second communication module can be a WiFi communication module, and can also be a 4G (4th Generation Mobile Communication Technology, fourth generation mobile communication technology) communication module or a 5G (5th Generation Mobile Communication Technology, fifth generation mobile communication technology) communication module and the like, and the embodiment of the application is not limited thereto.The base station 12 is in communication connection with the health monitoring device 13 through a first communication module, the first communication module supports simultaneous connection with multiple health monitoring devices 13, the number of health monitoring devices 13 that can be connected by the base station 12 can be pre-set, for example, but not limited to, 10, the embodiment of the present application does not limit this, the base station 12 is in communication connection with the server 14 through a second communication module, if the second communication module adopts a WiFi communication module, the WiFi communication module can adopt an access WiFi mode to be responsible for the communication and data transmission between the base station 12 and the server 14, if the second communication module adopts a 4G communication module or a 5G communication module, the 4G communication module or the 5G communication module can be responsible for the communication and data transmission between the base station 12 and the server 14 through an embedded subscriber identity module (ESIM) card, the processor is used for completing overall process control and task scheduling, the memory is used for storing authentication information of the health monitoring device 13, connection information of the health monitoring device, and temporarily storing health monitoring data reported by the health monitoring device, etc. In the embodiment of the present application, the designated mobile terminal 11 can be, but is not limited to, a smart phone, a tablet computer, a PDA (Personal Digital Assistant, a portable electronic device), a notebook computer, a desktop computer, etc., the server 14 can be a physical server, or a cloud server providing cloud server, cloud database, cloud storage and other basic cloud computing services, the embodiment of the present application does not limit this. Based on the above application scenario, the exemplary embodiments of the present application will be described in more detail with reference to FIGS. 2-4, it should be noted that the above application scenario is only shown for the purpose of facilitating understanding of the spirit and principles of the present application, the embodiments of the present application are not limited herein. On the contrary, the embodiments of the present application can be applied to any applicable scenario. The data transmission method provided by the embodiment of the present application can include two stages: activation of the health monitoring device and uploading of the health monitoring data. When the health monitoring device is used for the first time, it needs to be activated first, in one embodiment, the health monitoring device can be activated by the base station after the designated mobile terminal wakes up the health monitoring device, and the health monitoring data reported by the health monitoring device is uploaded to the server through the base station. Among them, the implementation process of the base station activating the health monitoring device is shown in FIG. 2, this stage involves the interaction between the designated mobile terminal, the health monitoring device, the base station and the server, and can include the following steps.

[0002] S21, the base station sends a login request to the server, and the login request contains identification information of the base station and login key information. In a specific implementation, when the base station is manufactured, the manufacturer pre-sets the identification and the login key for the base station, the identification is used to uniquely identify the base station, the login key is used for identity verification by the server when the base station logs in the server, and the server pre-stores the correspondence between the identification and the login key of the base station. When the base station logs in the server for the first time, the base station sends the identification information and the login key information to the server in the login request.522, the server checks the identification information and the login key information of the base station, and if it is determined that the check is passed, step S23 is performed, otherwise, a login failure message is returned to the base station. In a specific implementation, the server checks the identification and the login key of the base station in the login request sent by the base station according to the stored correspondence between the identification and the login key of the base station, and if the login key in the login request is consistent with the login key corresponding to the identification of the base station in the stored correspondence between the identification and the login key of the base station, the check is passed, and the base station successfully logs in the server.

[0003] 523, the server returns login token information to the base station. In a specific implementation, when the identification and the login key of the base station are checked by the server, the corresponding login token is generated for the base station, and the correspondence between the identification of the base station and the login token is stored, and the login token information is returned to the base station, so that the base station can carry the login token information when sending data to the server in the future, the server finds the login token corresponding to the identification of the base station from the stored correspondence between the identification of the base station and the access token, to check the login token sent by the base station, if they are consistent, the check is passed, thereby improving the security of data transmission between the base station and the server.

[0004] 524, the designated mobile terminal sends a login request to the server, and the login request contains login information. The login information can include a username and a password, and the login information can also include a mobile phone number and a verification code, and the embodiments of the present application do not limit this.

[0005] 525、 The server checks the login information of the specified mobile terminal, and if it is determined that the check is passed, step S26 is executed, otherwise, a login failure message is returned to the specified mobile terminal. The server pre-stores the login information of the mobile terminal at the time of registration: the username and password, or the mobile phone number. When receiving the login request sent by the specified mobile terminal, if the username and password are contained in the login request, the username and password in the login request are compared with the stored username and password of the mobile terminal, if they are consistent, the check is passed, if the mobile phone number used by the user at the time of registration is contained in the login request, a verification code is sent to the mobile phone number, if the verification code in the received login request is consistent with the verification code sent by the server, the check is passed, and the specified mobile terminal successfully logs in the server.

[0006] 526、 The server returns the access token information to the specified mobile terminal. In specific implementation, when the login information of the specified mobile terminal is checked by the server, the corresponding access token is generated for the specified mobile terminal, and the correspondence between the identifier of the specified mobile terminal and the access token is stored, and the access token information is returned to the specified mobile terminal. In this way, when the specified mobile terminal sends data to the server subsequently, the access token can be carried, the server finds the access token corresponding to the identifier of the specified mobile terminal from the stored correspondence between the identifier of the mobile terminal and the access token, to check the access token sent by the specified mobile terminal, if they are consistent, the check is passed, thereby improving the security of data transmission between the specified mobile terminal and the server.

[0007] 527、 The specified mobile terminal wakes up the to-be-activated health monitoring device. In specific implementation, the specified mobile terminal can but is not limited to wake up the to-be-activated health monitoring device through near field communication.

[0008] 528、 After the to-be-activated health monitoring device is woken up, it sends a Bluetooth data packet. In this step, after the to-be-activated health monitoring device is woken up by the specified mobile terminal, it continuously sends a Bluetooth broadcast data packet outside within a set time period, wherein the set time period can be set according to requirements, and the present application embodiment does not limit this. S29, the base station receives the Bluetooth data packet sent by the to-be-activated health monitoring device, and obtains the identifier information of the to-be-activated health monitoring device from the to-be-activated health monitoring device. In specific implementation, the identifier information of the health monitoring device can be MAC address (Media Access Control Address, physical address) information used for Bluetooth interaction, and the base station receives the Bluetooth data packet sent by the to-be-activated health monitoring device, and reads the MAC address information of the to-be-activated health monitoring device from the to-be-activated health monitoring device.

[0009] 5210、 The base station sends identification information of the health monitoring device to be activated to the server. In specific implementation, the base station sends MAC address information of the health monitoring device to be activated to the server.

[0010] 5211、 The server checks the identification information of the health monitoring device to be activated. If the check is passed, step S212 is performed. If the check fails, it is determined that the health monitoring device to be activated is invalid, and a check failure message is returned to the base station. In specific implementation, the server pre-stores identification information (i.e., MAC address information) of the health monitoring device and validity period information of the health monitoring device. When the server receives the MAC address information of the health monitoring device to be activated sent by the base station, it checks whether the MAC address information of the health monitoring device to be activated is stored locally. If yes, and the current time is within the validity period of the health monitoring device to be activated, the check is passed.

[0011] 5212、 The server returns authentication information of the health monitoring device to be activated to the base station. In specific implementation, a manufacturer sets a set of keys for each health monitoring device when the health monitoring device is manufactured, the set of keys including multiple keys and key identifiers corresponding to the keys, and the server stores the set of keys of each health monitoring device as authentication information. When the server checks the identification information of the health monitoring device to be activated, it returns the set of keys corresponding to the health monitoring device to be activated to the base station, which includes the keys and key identifiers corresponding to the health monitoring device to be activated.

[0012] 5213、 The base station performs mutual authentication with the health monitoring device to be activated based on the authentication information of the health monitoring device to be activated, and performs step S214 after the authentication is successful. If the authentication fails, the base station returns authentication failure information to the server. In specific implementation, the base station and the health monitoring device to be activated can perform mutual authentication according to the flow shown in FIG. 3, which can include the following steps:

[0013] S2131、 The base station generates a first public key and a first private key according to a preset key agreement algorithm. In specific implementation, the base station can generate a public key and a corresponding private key according to an ECDH (Elliptic Curve Diffie-Hellman key Exchange) key agreement algorithm, which can be denoted as a first public key and a first private key, respectively. Other arbitrary key agreement algorithms can also be used to generate the first public key and the first private key, which are not limited in the embodiments of the present application. In the embodiments of the present application, only the ECDH key agreement algorithm is taken as an example for description.

[0014] S2132, the base station selects an arbitrary first key from the key set in the authentication information of the to-be-activated health monitoring device, and generates first signature information according to the selected first key, first time information and first public key by using a hash algorithm. In specific implementation, after the base station receives the authentication information of the to-be-activated health monitoring device returned by the server, an arbitrary key is selected from the key set of the to-be-activated health monitoring device contained in the authentication information of the to-be-activated health monitoring device, which can be denoted as a first key. Signature information, denoted as first signature information, is generated by signing according to the first key, first time information and first public key by using a hash algorithm. The first time information can be current time information.

[0015] S2133, the base station sends a first authentication request to the to-be-activated health monitoring device, and the first authentication request carries identification information of the first key, first time information, first public key and first signature information.

[0016] S2134, the to-be-activated health monitoring device generates second signature information according to the key corresponding to the identification of the first key, first time information and first public key by using a hash algorithm, checks whether the second signature information is consistent with the first signature information, and if it is determined that the second signature information is consistent with the first signature information, step S2135 is executed, otherwise, the verification fails, and the base station returns verification failure information. In specific implementation, the to-be-activated health monitoring device finds the key corresponding to the identification of the first key in the locally stored key set according to the identification of the first key sent by the base station, generates second signature information according to the found key, first time information and first public key sent by the base station by using a hash algorithm, checks whether the second signature information is consistent with the first signature information sent by the base station, and if it is determined that the second signature information is consistent with the first signature information, it is determined that the one-way authentication is successful, and if it is determined that the second signature information is inconsistent with the first signature information, it is determined that the authentication fails, the base station returns authentication failure information to the server, and the base station reports the authentication failure information of the to-be-activated health monitoring device to the server.

[0017] S2135, the to-be-activated health monitoring device generates a second public key and a second private key according to a preset key agreement algorithm, and generates third signature information according to the selected second key, second time information and second public key by using a hash algorithm. In specific implementation, the to-be-activated health monitoring device generates a public key and a corresponding private key according to the ECDH key agreement algorithm, which can be denoted as a second public key and a second private key respectively. The to-be-activated health monitoring device selects an arbitrary key from the locally stored key set, which can be denoted as a second key. Third signature information is generated according to the selected second key, second time information and second public key by using a hash algorithm. The second time information can be current time information.

[0018] S2136, the to-be-activated health monitoring device sends a second authentication request to the base station, and the second authentication request carries identification information of a second key, second time information, a second public key, and third signature information.

[0019] S2137, the base station generates fourth signature information by using a hash algorithm according to a key corresponding to the identification of the second key, the second time information, and the second public key, and determines that the authentication is successful if the fourth signature information is consistent with the third signature information. In a specific implementation, the base station finds the key corresponding to the identification of the second key from the key set of the to-be-activated health monitoring device included in the authentication information of the to-be-activated health monitoring device returned by the server, generates the fourth signature information by using the hash algorithm according to the key corresponding to the identification of the second key, the second time information, and the second public key sent by the base station, and checks whether the fourth signature information is consistent with the third signature information sent by the to-be-activated health monitoring device. If it is determined that the fourth signature information is consistent with the third signature information, it is determined that the mutual authentication between the base station and the to-be-activated health monitoring device is successful. If it is determined that the fourth signature information is inconsistent with the third signature information, it is determined that the authentication fails, and the server is returned with the authentication failure information of the to-be-activated health monitoring device.

[0020] S214, the base station activates the to-be-activated health monitoring device. In a specific implementation, after the mutual authentication between the base station and the to-be-activated health monitoring device is successful, the base station receives a Bluetooth data packet sent by the to-be-activated health monitoring device, connects with the to-be-activated health monitoring device, and activates the to-be-activated health monitoring device.

[0021] 5215, the activated health monitoring device returns activation success information to the base station. In this step, the to-be-activated health monitoring device returns the activation success information to the base station after being activated.

[0022] 5216, the base station reports the activation success information of the health monitoring device to the server. In this step, the base station reports the activation success information of the activated health monitoring device to the server.

[0023] 5217、 The server updates the state of the health monitoring device to an active state. In this step, the server updates the state of the activated health monitoring device to an activated state and saves it. In an embodiment, the designated mobile terminal can also send the MAC address information of the health monitoring device to be activated to the server after waking up the health monitoring device to be activated, subscribe to the information of the health monitoring device to be activated, and the server can also push the activation success information of the health monitoring device to the designated mobile terminal after receiving the activation success information of the health monitoring device, so that the designated mobile terminal records the state of the health monitoring device. Thus, medical personnel and the like can check the state of the health monitoring device through the designated mobile terminal.

[0024] 5218、 The server returns the upload result notification to the base station. Thus, the activation process of the health monitoring device is completed. In an embodiment, the health monitoring data reported by the health monitoring device through the base station can be uploaded to the server after the health monitoring device is woken up and activated by the designated mobile terminal. The implementation process of the activation of the health monitoring device by the mobile terminal is shown in FIG. 4, which involves the interaction among the designated mobile terminal, the health monitoring device and the server, and can include the following steps:

[0025] 531、 The designated mobile terminal sends a login request to the server, and the login request contains login information. The login information can include a username and a password, or a mobile phone number and a verification code, which are not limited in the embodiments of the present application.

[0026] 532、 The server checks the login information of the designated mobile terminal, and if it is determined that the check is passed, step S33 is performed, otherwise, a login failure message is returned to the designated mobile terminal. The server pre-stores the login information of the mobile terminal registered, i.e., a username and a password, or a mobile phone number. When receiving the login request sent by the designated mobile terminal, if the login request contains a username and a password, the username and the password in the login request are compared with the stored username and password of the mobile terminal, and if they are consistent, the check is passed. If the login request contains the mobile phone number used during the user registration, a verification code is sent to the mobile phone number, and if the verification code in the received login request is consistent with the verification code sent by the server, the check is passed, and the designated mobile terminal successfully logs in the server.

[0027] 533、 The server returns the access token information to the specified mobile terminal. In particular, when the login information of the specified mobile terminal is verified by the server, the server generates a corresponding access token for the specified mobile terminal, stores the correspondence between the identifier of the specified mobile terminal and the access token, and returns the access token information to the specified mobile terminal. In this way, when the specified mobile terminal subsequently sends data to the server, the specified mobile terminal can carry the access token, and the server can find the access token corresponding to the identifier of the specified mobile terminal from the stored correspondence between the identifier of the mobile terminal and the access token, to verify the access token sent by the specified mobile terminal. If they are consistent, the verification is passed, thereby improving the security of data transmission between the specified mobile terminal and the server.

[0028] 534、 The specified mobile terminal wakes up the to-be-activated health monitoring device and obtains the identifier information of the to-be-activated health monitoring device. In particular, the specified mobile terminal can wake up the to-be-activated health monitoring device through near field communication, and read the MAC address information of the health monitoring device from the to-be-activated health monitoring device.

[0029] 535、 After the to-be-activated health monitoring device is woken up, the to-be-activated health monitoring device sends a Bluetooth data packet. In this step, after the to-be-activated health monitoring device is woken up by the specified mobile terminal, the to-be-activated health monitoring device continuously sends a Bluetooth broadcast data packet within a set time period. The set time period can be set according to requirements, and the present application does not limit this.

[0030] 536、 The specified mobile terminal receives the Bluetooth data packet sent by the to-be-activated health monitoring device and connects with the to-be-activated health monitoring device. In particular, the specified mobile terminal receives the Bluetooth data packet sent by the to-be-activated health monitoring device, and establishes a Bluetooth connection with the to-be-activated health monitoring device.

[0031] 537、 The specified mobile terminal sends the identifier information of the to-be-activated health monitoring device to the server. In particular, the specified mobile terminal sends the MAC address information of the to-be-activated health monitoring device to the server.

[0032] 538、The server checks the identification information of the health monitoring device to be activated, and after the check is passed, step S39 is performed. If the check fails, it is determined that the health monitoring device to be activated is invalid, and a check failure message is returned to the designated mobile terminal. In specific implementation, the server pre-stores the identification information (i.e., MAC address information) of the health monitoring device and the validity period information of the health monitoring device. When the server receives the MAC address information of the health monitoring device to be activated sent by the base station, it checks whether the MAC address information of the health monitoring device to be activated is stored locally. If it exists and the current time is within the validity period of the health monitoring device to be activated, the check is passed.

[0033] 539、The server returns the authentication information of the health monitoring device to be activated to the designated mobile terminal. In specific implementation, the manufacturer sets a set of keys for each health monitoring device when it is manufactured, including multiple keys and key identifiers corresponding to each key. The server stores the key set of each health monitoring device as authentication information. When the server checks the identification information of the health monitoring device to be activated, it returns the key set corresponding to the health monitoring device to be activated to the base station, which includes the keys and key identifiers corresponding to the health monitoring device to be activated.

[0034] S310、The designated mobile terminal performs two-way authentication with the health monitoring device to be activated based on the authentication information of the health monitoring device to be activated, and performs step S214 after the authentication is successful. If the authentication fails, the authentication failure information is returned to the server. In specific implementation, the designated mobile terminal and the health monitoring device to be activated can perform two-way authentication according to the flow shown in FIG. 5, which can include the following steps:

[0035] S3101、The designated mobile terminal generates a third public key and a third private key according to a preset key agreement algorithm. In specific implementation, the designated mobile terminal can generate a public key and a corresponding private key according to the ECDH key agreement algorithm, which can be denoted as the third public key and the third private key, respectively. Other arbitrary key agreement algorithms can also be used to generate the third public key and the third private key, which are not limited in the present application. In the present application, only the ECDH key agreement algorithm is used as an example for description.

[0036] S3102、 The specified mobile terminal selects any one third key from the key set in the authentication information of the to-be-activated health monitoring device, and generates fifth signature information by using a hash algorithm according to the selected third key, third time information and third public key. In specific implementation, after the specified mobile terminal receives the authentication information of the to-be-activated health monitoring device returned by the server, the specified mobile terminal selects any one key from the key set of the to-be-activated health monitoring device contained in the authentication information of the to-be-activated health monitoring device, which can be denoted as a third key, and generates signature information by using a hash algorithm according to the third key, third time information and third public key, which can be denoted as fifth signature information, wherein the third time information can be current time information.

[0037] S3103、 The specified mobile terminal sends a third authentication request to the to-be-activated health monitoring device, and the third authentication request carries identification information of the third key, third time information, third public key and fifth signature information.

[0038] S3104、 The to-be-activated health monitoring device generates sixth signature information by using a hash algorithm according to the key corresponding to the identification of the third key, third time information and third public key, and checks whether the sixth signature information is consistent with the fifth signature information. If it is determined that the sixth signature information is consistent with the fifth signature information, step S3105 is performed, otherwise, the checking fails, and the to-be-activated health monitoring device returns checking failure information to the base station. In specific implementation, the to-be-activated health monitoring device finds the key corresponding to the identification of the third key in the locally stored key set according to the identification of the third key sent by the specified mobile terminal, generates sixth signature information by using a hash algorithm according to the found key, third time information and third public key sent by the specified mobile terminal, and checks whether the sixth signature information is consistent with the fifth signature information sent by the base station. If it is determined that the sixth signature information is consistent with the fifth signature information, it is determined that the one-way authentication is successful. If it is determined that the sixth signature information is not consistent with the fifth signature information, it is determined that the authentication fails, and the to-be-activated health monitoring device returns authentication failure information to the specified mobile terminal. The specified mobile terminal reports the authentication failure information of the to-be-activated health monitoring device to the server.

[0039] S3105、 The to-be-activated health monitoring device generates a fourth public key and a fourth private key according to a preset key agreement algorithm, and generates seventh signature information by using a hash algorithm according to the selected fourth key, fourth time information, and the fourth public key. In specific implementation, the to-be-activated health monitoring device generates a public key and a corresponding private key according to an ECDH key agreement algorithm, which can be denoted as the fourth public key and the fourth private key respectively. The to-be-activated health monitoring device selects an arbitrary key from a locally stored key set, which can be denoted as the fourth key. The seventh signature information is generated by using a hash algorithm according to the selected fourth key, fourth time information, and the fourth public key. The fourth time information can be current time information.

[0040] S3106、 The to-be-activated health monitoring device sends a fourth authentication request to the specified mobile terminal, and the fourth authentication request carries identification information of the fourth key, fourth time information, the fourth public key, and the seventh signature information.

[0041] S3107、 The specified mobile terminal generates eighth signature information by using a hash algorithm according to the key corresponding to the identification of the fourth key, the fourth time information, and the fourth public key. If it is determined that the eighth signature information is consistent with the seventh signature information, it is determined that the authentication is successful. In specific implementation, the specified mobile terminal searches for the key corresponding to the identification of the fourth key from the key set of the to-be-activated health monitoring device contained in the authentication information of the to-be-activated health monitoring device returned by the server. The eighth signature information is generated by using a hash algorithm according to the key corresponding to the identification of the fourth key, the fourth time information, and the fourth public key sent by the to-be-activated health monitoring device. It is verified whether the eighth signature information is consistent with the seventh signature information sent by the to-be-activated health monitoring device. If it is determined that the eighth signature information is consistent with the seventh signature information, it is determined that the specified mobile terminal and the to-be-activated health monitoring device pass the bidirectional authentication successfully. If it is determined that the eighth signature information is not consistent with the seventh signature information, it is determined that the authentication fails, and the server returns the authentication failure information of the to-be-activated health monitoring device.

[0042] 5311、 The specified mobile terminal activates the to-be-activated health monitoring device. In specific implementation, after the specified mobile terminal and the to-be-activated health monitoring device pass the bidirectional authentication successfully, the specified mobile terminal receives the Bluetooth data packet sent by the to-be-activated health monitoring device, performs Bluetooth connection with the to-be-activated health monitoring device, and activates the to-be-activated health monitoring device.

[0043] 5312、 The activated health monitoring device returns activation success information to the specified mobile terminal. In this step, the to-be-activated health monitoring device returns the activation success information to the specified mobile terminal after being activated.

[0044] 5313、 The designated mobile terminal reports the activation success information of the health monitoring device to the server. In this step, the designated mobile terminal reports the activation success information of the activated health monitoring device to the server.

[0045] 5314、 The server updates the state of the health monitoring device to an activated state. In this step, the server updates the state of the activated health monitoring device to an activated state and saves it.

[0046] 5315、 The server returns an upload result notification to the designated mobile terminal.

[0047] 5316、 The mobile terminal is specified to disconnect the Bluetooth connection between the mobile terminal and the activated health monitoring device. Further, the health monitoring device returns a connection disconnection success notification to the specified mobile terminal, that is, the activation process of the health monitoring device is completed. The application scenarios of the disconnection state of the health monitoring device include the following two scenarios: one application scenario of the disconnection state of the health monitoring device is that the health monitoring device is in the disconnection state after being activated and not connected to any base station to upload the health monitoring data of the monitored object; another application scenario of the disconnection state of the health monitoring device is that the health monitoring device is connected to the base station and uploads the health monitoring data of the monitored object to the base station, but is disconnected from the currently connected base station due to the movement of the monitored object wearing the health monitoring device and is in the disconnection state, as shown in the application scenario of FIG. 6, the health monitoring device 1, the health monitoring device 2, the health monitoring device 3, and the health monitoring device 4 are connected to the base station 1, and upload their respective health monitoring data to the server through the base station 1, the monitored object wearing the health monitoring device 4 moves from the coverage area of the base station 1 to the coverage area of the base station 2, and is disconnected from the base station 1. Based on the above two disconnection states of the health monitoring device, the health monitoring device can continuously send out a Bluetooth data packet to connect to the best base station that can be connected nearby to upload the health monitoring data of the monitored object to the base station. As shown in FIG. 7, which is an implementation flowchart of the data transmission method provided by the embodiment of the present application, the method can include the following steps: 541、 The base station acquires the association information of the candidate to-be-connected health monitoring device that can be connected within the coverage range of the base station. In a specific implementation, the base station receives the association information of the candidate to-be-connected health monitoring device sent by the candidate to-be-connected health monitoring device through Bluetooth, wherein the association information of the candidate to-be-connected health monitoring device can include but is not limited to the following information: identification information of the candidate to-be-connected health monitoring device, signal strength information between the candidate to-be-connected health monitoring device and the base station, wherein the signal strength information between the candidate to-be-connected health monitoring device and the base station can be but is not limited to the RSSI (Received Signal Strength Indication, received signal strength indication) index. In an implementation, the association information of the candidate to-be-connected health monitoring device can further include the quality of service capability information of the candidate to-be-connected health monitoring device, wherein the quality of service capability information can include the manufacturer information of the candidate to-be-connected health monitoring device, the model information of the to-be-connected health monitoring device, and the like, which are not limited in the embodiment of the present application.

[0048] 542、 The base station sends the association information of the candidate to-be-connected health monitoring device to the server. In implementation, if the base station is performing data interaction with the server for the first time, the base station sends the association information of the candidate to-be-connected health monitoring device to the server after logging in the server. The specific process of logging in the server by the base station can refer to steps S21-S23, which will not be described here again.

[0049] 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、 543、In particular, the server can find whether the state of the candidate to-be-connected health monitoring device is the activated state according to the identifier of the candidate to-be-connected health monitoring device, and compare the RSSI index between the candidate to-be-connected health monitoring device and the base station at the current time and the signal strength between the candidate to-be-connected health monitoring device and each second base station adjacent to the base station. If it is determined that the state of the candidate to-be-connected health monitoring device is the activated state, and the signal strength between the candidate to-be-connected health monitoring device and the base station at the current time is greater than the signal strength between the candidate to-be-connected health monitoring device and each second base station adjacent to the base station, it is determined that the candidate to-be-connected health monitoring device meets the connection condition. In an embodiment, the server can also store information capable of measuring the quality of service capability of the health monitoring device, such as set manufacturer information, set model information of the health monitoring device, and the like. The embodiment of the present application can also determine that the connection condition is met in the following manner: the server finds the state of the candidate to-be-connected health monitoring device based on the identifier of the candidate to-be-connected health monitoring device. If it is determined that the state of the candidate to-be-connected health monitoring device is the activated state, and the manufacturer of the candidate to-be-connected health monitoring device is the set manufacturer (or the model of the candidate to-be-connected health monitoring device is the set model), and the signal strength between the candidate to-be-connected health monitoring device and the base station at the current time is greater than the signal strength between the candidate to-be-connected health monitoring device and the first base station at the disconnection time of the first base station on which the candidate to-be-connected health monitoring device is last connected, it is determined that the connection condition is met. Alternatively, the connection condition can also be determined in the following manner: the server finds the state of the candidate to-be-connected health monitoring device based on the identifier of the candidate to-be-connected health monitoring device. If it is determined that the state of the candidate to-be-connected health monitoring device is the activated state, and the manufacturer of the candidate to-be-connected health monitoring device is the set manufacturer (or the model of the candidate to-be-connected health monitoring device is the set model), and the signal strength between the candidate to-be-connected health monitoring device and the base station at the current time is greater than the signal strength between the candidate to-be-connected health monitoring device and each second base station adjacent to the base station, it is determined that the connection condition is met.

[0050] S44、 The server returns a message indicating that the candidate to-be-connected health monitoring device is connected to the base station, and the authentication information of the candidate to-be-connected health monitoring device is included in the message indicating that the candidate to-be-connected health monitoring device is connected. In the process of transmitting the health monitoring data of the monitored object collected by the health monitoring device, if the health monitoring data is leaked or tampered with, it may have a serious impact on the life, property, and health of the monitored object. In order to improve the security of data transmission, before the base station establishes a connection with the candidate to-be-connected health monitoring device that meets the connection condition, the base station and the candidate to-be-connected health monitoring device can first perform mutual authentication, and generate a shared key, which is used for encrypted transmission in the subsequent transmission process of the health monitoring data. In specific implementation, the authentication information of the candidate to-be-connected health monitoring device includes a key set corresponding to the candidate to-be-connected health monitoring device, and the key set of the candidate to-be-connected health monitoring device includes each key corresponding to the candidate to-be-connected health monitoring device and a key identifier.

[0051] S45、 The base station and the candidate to-be-connected health monitoring device perform mutual authentication based on the authentication information of the candidate to-be-connected health monitoring device. In specific implementation, the base station and the candidate to-be-connected health monitoring device can perform mutual authentication according to the flow shown in FIG. 8, which can include the following steps:

[0052] 5451、 The base station generates a fifth public key and a fifth private key according to a preset key agreement algorithm. In specific implementation, the base station can generate a public key and a corresponding private key according to the ECDH key agreement algorithm, which can be denoted as the fifth public key and the fifth private key respectively. Alternatively, the fifth public key and the fifth private key can be generated by using any other key agreement algorithm, which is not limited in the embodiments of the present application. In the embodiments of the present application, only the ECDH key agreement algorithm is taken as an example for description.

[0053] 5452、 The base station selects an arbitrary fifth key from the key set in the authentication information of the candidate to-be-connected health monitoring device, and generates ninth signature information by using a hash algorithm according to the selected fifth key, fifth time information, and the fifth public key. In specific implementation, after receiving the authentication information of the candidate to-be-connected health monitoring device returned by the server, the base station selects an arbitrary key from the key set of the candidate to-be-connected health monitoring device included in the authentication information of the candidate to-be-connected health monitoring device, which can be denoted as the fifth key. The signature information generated by signing according to the fifth key, the fifth time information, and the fifth public key by using a hash algorithm can be denoted as the ninth signature information, wherein the fifth time information can be current time information.

[0054] 5453、 The base station sends a fifth authentication request to the candidate to-be-connected health monitoring device, and the fifth authentication request carries identification information of a fifth key, fifth time information, a fifth public key, and ninth signature information.

[0055] 5454、 The candidate to-be-connected health monitoring device generates tenth signature information by using a hash algorithm according to the key corresponding to the identification of the fifth key, the fifth time information, and the fifth public key, checks whether the tenth signature information is consistent with the ninth signature information, and if it is determined that the tenth signature information is consistent with the ninth signature information, step S455 is performed, otherwise, the checking fails, and the base station is returned with checking failure information. In specific implementation, the candidate to-be-connected health monitoring device finds the key corresponding to the identification of the fifth key in the locally stored key set according to the identification of the fifth key sent by the base station, generates the tenth signature information by using a hash algorithm according to the found key, the fifth time information, and the fifth public key sent by the base station, checks whether the tenth signature information is consistent with the ninth signature information sent by the base station, and if it is determined that the tenth signature information is consistent with the ninth signature information, it is determined that the one-way authentication is successful, if it is determined that the tenth signature information is not consistent with the ninth signature information, it is determined that the authentication fails, and the base station is returned with authentication failure information, and the base station reports the authentication failure information of the candidate to-be-connected health monitoring device to the server.

[0056] 5455、 The candidate to-be-connected health monitoring device generates a sixth public key and a sixth private key according to a preset key agreement algorithm, and generates eleventh signature information by using a hash algorithm according to the selected sixth key, sixth time information, and sixth public key. In specific implementation, the candidate to-be-connected health monitoring device generates a public key and a corresponding private key according to an ECDH key agreement algorithm, which can be denoted as a sixth public key and a sixth private key respectively, the candidate to-be-connected health monitoring device selects an arbitrary key from the locally stored key set, which can be denoted as a sixth key, and generates eleventh signature information by using a hash algorithm according to the selected sixth key, sixth time information, and sixth public key, wherein the sixth time information can be current time information. 5456、 The candidate to-be-connected health monitoring device sends a sixth authentication request to the base station, and the sixth authentication request carries identification information of the sixth key, sixth time information, a sixth public key, and eleventh signature information.

[0057] 5457、 The base station generates twelfth signature information by using a hash algorithm according to the key corresponding to the identifier of the sixth key, the sixth time information and the sixth public key, and determines that the authentication is successful if it is determined that the twelfth signature information is consistent with the eleventh signature information. In specific implementation, the base station searches for the key corresponding to the identifier of the sixth key from the key set of the candidate to-be-connected health monitoring device contained in the authentication information of the candidate to-be-connected health monitoring device returned by the server, generates the twelfth signature information by using a hash algorithm according to the searched key corresponding to the identifier of the sixth key, the fourth time information sent by the candidate to-be-connected health monitoring device and the fourth public key, checks whether the twelfth signature information is consistent with the eleventh signature information sent by the candidate to-be-connected health monitoring device, determines that the mutual authentication between the base station and the candidate to-be-connected health monitoring device is successful if it is determined that the twelfth signature information is consistent with the eleventh signature information, and determines that the authentication fails if it is determined that the twelfth signature information is not consistent with the eleventh signature information, wherein the base station returns the authentication failure information of the candidate to-be-connected health monitoring device to the server. Further, if it is determined that the mutual authentication is successful, the method can further include: the candidate to-be-connected health monitoring device and the base station generate a shared key by using a preset key agreement algorithm based on the fifth public key, the fifth private key corresponding to the fifth public key, the sixth public key and the sixth private key, and send the shared key to the server, and the server stores the correspondence between the identifier information of the health monitoring device and the shared key. In specific implementation, after the mutual authentication between the base station and the candidate to-be-connected health monitoring device is successful, the base station and the candidate to-be-connected health monitoring device further generate a shared key by using an ECDH key agreement algorithm based on the fifth public key, the fifth private key corresponding to the fifth public key, the sixth public key and the sixth private key. Specifically, the base station generates a key according to the fifth public key, the sixth private key and the ECDH key agreement algorithm, the candidate to-be-connected health monitoring device generates a key according to the sixth public key, the fifth private key and the ECDH key agreement algorithm, and the two keys are the same, that is, the shared key. Further, the base station sends the shared key to the server, and the server stores the correspondence between the identifier information (that is, the MAC address information of the to-be-activated health monitoring device) of the candidate to-be-connected health monitoring device and the shared key after receiving the shared key sent by the base station.

[0058] 546、 After the mutual authentication is successful, the base station and the candidate to-be-connected health monitoring device are connected. In this step, after the mutual authentication between the base station and the candidate to-be-connected health monitoring device is successful, a Bluetooth connection is established.

[0059] 547、 After the health monitoring device and the base station are connected successfully, the health monitoring device returns connection success information to the base station.

[0060] 548、 The health monitoring device reports the collected health monitoring data to the base station. In a specific implementation, the health monitoring device encrypts the real-time collected health monitoring data according to the shared key negotiated with the base station and a preset encryption algorithm to generate encrypted health monitoring data, and sends the encrypted health monitoring data to the base station. The preset encryption algorithm can be, but is not limited to, a symmetric encryption algorithm such as an AES (Advanced Encryption Standard) encryption algorithm, and the embodiments of the present application do not limit this.

[0061] 549、 The base station sends the health monitoring data uploaded by the health monitoring device to the server. In a specific implementation, the base station receives the encrypted health monitoring data uploaded by the health monitoring device, and uploads the encrypted health monitoring data to the server. When the base station receives the encrypted health monitoring data uploaded by the health monitoring device, the base station can also decrypt the encrypted health monitoring data based on the shared key negotiated with the health monitoring device and the preset encryption algorithm, process the decrypted health monitoring data, such as processing the format of the health monitoring data into a data format supported by the server, and then upload the processed health monitoring data to the server after encrypting the processed health monitoring data according to the shared key and the preset encryption algorithm.

[0062] 5410、 The server stores the health monitoring data uploaded by the base station. In a specific implementation, the encrypted health monitoring data uploaded by the base station to the server further includes identification information of the health monitoring device, the server looks up the corresponding shared key according to the identification of the health monitoring device, the server decrypts the encrypted health monitoring data according to the shared key, and stores the decrypted health monitoring data.

[0063] 5411. The server returns a data upload success notification to the base station. Therefore, after health monitoring data is uploaded to the server, medical staff can use a designated mobile terminal to log in to the server to view and download the health monitoring data of the monitored individuals in real time, thus achieving real-time viewing and monitoring of health monitoring data. The data transmission method provided in this application embodiment activates a health monitoring device through a designated mobile terminal or base station. Upon successful activation, the activation success information is sent to a server. The server marks the health monitoring device as activated. The base station detects connectable monitoring devices within its coverage area, designates these as candidate health monitoring devices, and sends their association information to the server. If the server determines that the connection conditions are met based on the association information and the status of the candidate health monitoring devices, it returns a message to the base station instructing the connection to that candidate health monitoring device. The base station then connects to the candidate health monitoring devices and sends the health monitoring data obtained from each connected health monitoring device to the server. In this embodiment, it is not necessary to use the mobile terminal of the monitored object to activate the health monitoring device and upload the monitored health data to the server. Instead, a designated mobile terminal (such as a medical staff's mobile terminal or an independent mobile terminal) or a base station is used to activate the health monitoring device, and the base station detects connectable candidate health monitoring devices within its coverage area. The server determines whether candidate health monitoring devices meet the connection conditions. The base station connects to the candidate health monitoring devices that meet the connection conditions. The base station can upload health monitoring data obtained from the health monitoring devices to the server in real time. This avoids the problem that the monitored object cannot activate the health monitoring device and upload health monitoring data because it does not have a mobile phone or other mobile terminal, or does not know how to operate the health monitoring application on its mobile terminal. Furthermore, the base station provided in this application embodiment can detect connectable health monitoring devices within its coverage area in real time. When the monitored object wearing the health monitoring device moves and the health monitoring device loses communication with the connected base station, it will be detected in time by a base station that can cover the current location of the health monitoring device, thereby connecting to a base station that meets the conditions and continuing to complete the real-time upload of health monitoring data. Based on the same inventive concept, this application embodiment also provides a data transmission method implemented on the server side. Since the principle of solving the problem in the above-mentioned data transmission method implemented on the server side is similar to that of the above-mentioned data transmission method, the implementation of the above-mentioned data transmission method implemented on the server side can refer to the implementation of the above-mentioned data transmission method, and the repeated parts will not be described again.As shown in FIG. 9, which is a flowchart of a method for data transmission implemented by a server according to an embodiment of the present application, the method can include the following steps.

[0064] 551、 The server receives activation success information of the health monitoring device, marks the state of the health monitoring device as an activated state, and the activation success information of the health monitoring device is sent by the health monitoring device after the mobile terminal activates the health monitoring device, or is sent by the base station after the base station activates the health monitoring device.

[0065] 552、 The server receives the association information of the candidate to-be-connected health monitoring device sent by the base station, and the candidate to-be-connected health monitoring device is a to-be-connected health monitoring device detected by the base station and connectable within the coverage range of the base station.

[0066] 553、 If it is determined that the connection condition is met based on the association information of the candidate to-be-connected health monitoring device and the state of the candidate to-be-connected health monitoring device, the server returns a message indicating connecting the candidate to-be-connected health monitoring device to the base station, so that the base station connects with the candidate to-be-connected health monitoring device.

[0067] 554、 receive health monitoring data acquired by each health monitoring device connected to the base station. In an embodiment, the association information of the candidate health monitoring device to be connected includes identification information of the candidate health monitoring device to be connected and signal strength information between the candidate health monitoring device to be connected and the base station; and it is determined that the connection condition is met based on the association information of the candidate health monitoring device to be connected and the state of the candidate health monitoring device to be connected, specifically including: searching for the state of the candidate health monitoring device to be connected based on the identification information of the candidate health monitoring device to be connected; and if it is determined that the state of the candidate health monitoring device to be connected is the active state and the signal strength between the candidate health monitoring device to be connected and the base station at the current time is greater than the signal strength between the candidate health monitoring device to be connected and a first base station at the disconnection time of the candidate health monitoring device to be connected from the first base station, it is determined that the connection condition is met. In an embodiment, the association information of the candidate health monitoring device to be connected includes identification information of the candidate health monitoring device to be connected and signal strength information between the candidate health monitoring device to be connected and the base station; and it is determined that the connection condition is met based on the association information of the candidate health monitoring device to be connected and the state of the candidate health monitoring device to be connected, specifically including: searching for the state of the candidate health monitoring device to be connected based on the identification information of the candidate health monitoring device to be connected; and if it is determined that the state of the candidate health monitoring device to be connected is the active state and the signal strength between the candidate health monitoring device to be connected and the base station at the current time is greater than the signal strength between the candidate health monitoring device to be connected and each second base station adjacent to the base station, it is determined that the connection condition is met. In an embodiment, the message indicating to connect the candidate health monitoring device to be connected contains authentication information of the candidate health monitoring device to be connected, so that the base station and the candidate health monitoring device to be connected perform mutual authentication based on the authentication information, and perform connection after successful authentication. In an embodiment, the authentication information of the candidate health monitoring device to be connected includes a key set corresponding to the candidate health monitoring device to be connected, and the key set includes each key corresponding to the candidate health monitoring device to be connected and a key identifier. In an embodiment, before receiving the association information of the candidate health monitoring device to be connected sent by the base station, it further includes: receiving a login request sent by the base station, the login request containing identification information and login key information of the base station; verifying the identification information and login key information of the base station, and if it is determined that the verification is passed, returning login token information to the base station, so that the base station carries the login token information when sending data.Based on the same inventive concept, the embodiment of the present application further provides a server-side implemented data transmission device. Since the principle of solving problems of the above-mentioned server-side implemented data transmission device is similar to that of the above-mentioned data transmission method, the implementation of the above-mentioned server-side implemented data transmission device can be referred to the implementation of the above-mentioned data transmission method, and the repeated parts will not be described herein. As shown in FIG. 10, which is a structural schematic diagram of the server-side implemented data transmission device provided by the embodiment of the present application, can comprise: a first receiving unit 61, configured to receive the activation success information of the health monitoring device, and mark the state of the health monitoring device as an activated state, wherein the activation success information of the health monitoring device is sent by the health monitoring device after the health monitoring device is activated by a specified mobile terminal, or is sent by the health monitoring device after the health monitoring device is activated by a base station; a second receiving unit 62, configured to receive the association information of the candidate to-be-connected health monitoring device sent by the base station, wherein the candidate to-be-connected health monitoring device is a to-be-connected health monitoring device which can be connected within the coverage of the base station and is detected by the base station; a returning unit 63, configured to return a message indicating connecting the candidate to-be-connected health monitoring device to the base station, if it is determined that the connection condition is met based on the association information of the candidate to-be-connected health monitoring device and the state of the candidate to-be-connected health monitoring device, so that the base station is connected with the candidate to-be-connected health monitoring device; and a third receiving unit 64, configured to receive the health monitoring data acquired from each health monitoring device connected by the base station. In an implementation manner, the association information of the candidate to-be-connected health monitoring device comprises the identification information of the candidate to-be-connected health monitoring device and the signal strength information between the candidate to-be-connected health monitoring device and the base station; and the returning unit 63 is specifically configured to find the state of the candidate to-be-connected health monitoring device based on the identification of the candidate to-be-connected health monitoring device; and if it is determined that the state of the candidate to-be-connected health monitoring device is the activated state, and the signal strength between the candidate to-be-connected health monitoring device and the base station at the current time is greater than the signal strength between the candidate to-be-connected health monitoring device and a first base station at the disconnection time of the candidate to-be-connected health monitoring device from the first base station, it is determined that the connection condition is met.In an embodiment, the association information of the candidate health monitoring device to be connected includes identification information of the candidate health monitoring device to be connected and signal strength information between the candidate health monitoring device to be connected and the base station; the returning unit 63 is specifically configured to search for a state of the candidate health monitoring device to be connected based on the identification of the candidate health monitoring device to be connected; and if it is determined that the state of the candidate health monitoring device to be connected is an active state and the signal strength between the candidate health monitoring device to be connected and the base station at the current time is greater than the signal strength between each second base station adjacent to the base station and the candidate health monitoring device to be connected, it is determined that the connection condition is met. In an embodiment, the message indicating to connect the candidate health monitoring device to be connected includes authentication information of the candidate health monitoring device to be connected, so that the base station and the candidate health monitoring device to be connected perform bidirectional authentication based on the authentication information and perform connection after the authentication is successful. In an embodiment, the authentication information of the candidate health monitoring device to be connected includes a key set corresponding to the candidate health monitoring device to be connected, and the key set includes each key corresponding to the candidate health monitoring device to be connected and a key identifier. In an embodiment, the apparatus further includes: a fourth receiving unit configured to receive a login request sent by the base station before receiving the association information of the candidate health monitoring device to be connected sent by the base station, the login request including identification information and login key information of the base station; a checking unit configured to check the identification information and the login key information of the base station, and if it is determined that the checking is passed, return login token information to the base station, so that the base station carries the login token information when sending data. Based on the same inventive concept, the embodiments of the present application also provide a base station-side implemented data transmission method. Since the problem solving principle of the above-mentioned base station-side implemented data transmission method is similar to that of the above-mentioned data transmission method, the implementation of the above-mentioned base station-side implemented data transmission method can be referred to the implementation of the above-mentioned data transmission method, and the repeated parts will not be described herein. As shown in FIG. 11, it is a base station-side implemented data transmission method implementation flowchart provided by the embodiments of the present application, which can include the following steps.

[0068] 571、 After the base station activates the health monitoring device to be activated, the base station sends activation success information of the health monitoring device to the server, so that the server marks the state of the health monitoring device as an active state.

[0069] 572、 The association information of the detected candidate health monitoring device to be connected within the coverage range is sent to the server, so that the server determines whether the connection condition is met based on the association information of the candidate health monitoring device to be connected and the state of the candidate health monitoring device to be connected.

[0070] 573、 when it is determined that a message returned by the server indicating that the connection candidate is to be connected to the health monitoring device is received, connecting to the candidate to be connected health monitoring device.

[0071] 574、 The health monitoring data reported by the connected health monitoring devices is received, and the health monitoring data reported by the health monitoring devices is sent to a server. In an embodiment, the health monitoring device to be activated is activated by: receiving a Bluetooth broadcast data packet sent by the health monitoring device to be activated, the Bluetooth broadcast data packet being sent by the health monitoring device to be activated after being woken up by a specified mobile terminal; obtaining identification information of the health monitoring device to be activated from the health monitoring device to be activated; sending the identification information of the health monitoring device to be activated to the server, so that the server checks the identification information of the health monitoring device to be activated; receiving authentication information of the health monitoring device to be activated sent by the server, the authentication information of the health monitoring device to be activated being sent by the server after the identification information of the health monitoring device to be activated is checked; performing two-way authentication between the authentication information of the health monitoring device to be activated and the health monitoring device to be activated, and activating the health monitoring device to be activated after successful authentication.In an embodiment, the authentication information of the health monitoring device to be activated comprises a key set corresponding to the health monitoring device to be activated, the key set comprising each key corresponding to the health monitoring device to be activated and a key identifier; the mutual authentication between the health monitoring device to be activated and the authentication information of the health monitoring device to be activated comprises: generating a first public key and a first private key according to a preset key agreement algorithm; selecting an arbitrary first key from the key set, and generating first signature information by using a hash algorithm according to the selected first key, first time information and the first public key; sending a first authentication request to the health monitoring device to be activated, the first authentication request carrying the identifier information of the first key, the first time information, the first public key and the first signature information, so that the health monitoring device to be activated generates second signature information by using the hash algorithm according to the key corresponding to the identifier of the first key, the first time information and the first public key, to check whether the second signature information is consistent with the first signature information; receiving a second authentication request sent by the health monitoring device to be activated when it is determined that the second signature information is consistent with the first signature information, the second authentication request carrying the identifier information of a second key, second time information, a second public key and third signature information, the third signature information being generated by the health monitoring device to be activated by using the hash algorithm according to the selected second key, the second time information and the second public key, the second public key being generated by the health monitoring device to be activated according to the preset key agreement algorithm; generating fourth signature information by using the hash algorithm according to the key corresponding to the identifier of the second key, the second time information and the second public key; and determining that the authentication is successful if it is determined that the fourth signature information is consistent with the third signature information. Based on the same inventive concept, the application also provides a data transmission device implemented at a base station side, and the implementation of the data transmission device implemented at the base station side can be referred to the implementation of the data transmission method, and the repeated parts will not be described here.As shown in FIG. 12, which is a structural schematic diagram of a data transmission device implemented at a base station side according to an embodiment of the present application, the device can include: a first sending unit 81 configured to send activation success information of a health monitoring device to a server after the health monitoring device is activated, so that the server marks a state of the health monitoring device as an activated state; a second sending unit 82 configured to send association information of a candidate health monitoring device that can be connected within a coverage range to the server, so that the server determines whether a connection condition is met based on the association information of the candidate health monitoring device and a state of the candidate health monitoring device; a processing unit 83 configured to, when it is determined that a message indicating that the candidate health monitoring device is connected is returned by the server, connect with the candidate health monitoring device; and a third sending unit 84 configured to receive health monitoring data reported by each health monitoring device and send the health monitoring data reported by each health monitoring device to the server. In an implementation, the device further includes an activation unit configured to activate the health monitoring device to be activated by: receiving a Bluetooth broadcast data packet sent by the health monitoring device to be activated, the Bluetooth broadcast data packet being sent by the health monitoring device to be activated after the health monitoring device to be activated is woken up by a designated mobile terminal; obtaining identification information of the health monitoring device to be activated from the health monitoring device to be activated; sending the identification information of the health monitoring device to be activated to the server, so that the server checks the identification information of the health monitoring device to be activated; receiving authentication information of the health monitoring device to be activated sent by the server, the authentication information of the health monitoring device to be activated being sent by the server after the identification information of the health monitoring device to be activated is checked; performing bidirectional authentication with the health monitoring device to be activated based on the authentication information of the health monitoring device to be activated, and activating the health monitoring device to be activated after the authentication is successful.In an embodiment, the authentication information of the health monitoring device to be activated comprises a key set corresponding to the health monitoring device to be activated, the key set comprising each key corresponding to the health monitoring device to be activated and a key identifier; the activation unit is specifically configured to generate a first public key and a first private key according to a preset key agreement algorithm; select any first key from the key set, and generate first signature information by using a hash algorithm according to the selected first key, first time information and the first public key; send a first authentication request to the health monitoring device to be activated, the first authentication request carrying the identifier information of the first key, the first time information, the first public key and the first signature information, so that the health monitoring device to be activated generates second signature information by using the hash algorithm according to the key corresponding to the identifier of the first key, the first time information and the first public key, to verify whether the second signature information is consistent with the first signature information; receive a second authentication request sent by the health monitoring device to be activated when it is determined that the second signature information is consistent with the first signature information, the second authentication request carrying the identifier information of a second key, second time information, a second public key and third signature information, the third signature information being generated by the health monitoring device to be activated by using the hash algorithm according to the selected second key, the second time information and the second public key, the second public key being generated by the health monitoring device to be activated according to the preset key agreement algorithm; generate fourth signature information by using the hash algorithm according to the key corresponding to the identifier of the second key, the second time information and the second public key; and if it is determined that the fourth signature information is consistent with the third signature information, it is determined that the authentication is successful. Based on the same inventive concept, the embodiment of the present application further provides a data transmission method implemented on the side of a specified mobile terminal. Since the principle of the above-mentioned data transmission method implemented on the side of a specified mobile terminal solves the problem, the implementation of the above-mentioned data transmission method implemented on the side of a specified mobile terminal can be referred to the implementation of the above-mentioned data transmission method, and the repeated parts will not be described herein. As shown in FIG. 13, it is an implementation flowchart of the data transmission method implemented on the side of a specified mobile terminal provided by the embodiment of the present application, which can comprise the following steps.

[0072] S91, the specified mobile terminal wakes up the health monitoring device to be activated, and obtains the identifier information of the health monitoring device to be activated.

[0073] 593、 receive the authentication information of the to-be-activated health monitoring device sent by the server, wherein the authentication information of the to-be-activated health monitoring device is sent by the server after the identification of the to-be-activated health monitoring device is verified.

[0074] 594、 perform bidirectional authentication with the to-be-activated health monitoring device based on the authentication information of the to-be-activated health monitoring device, connect with the to-be-activated health monitoring device after the authentication is successful, and activate the to-be-activated health monitoring device.

[0075] 595、 sending activation success information of the health monitoring device to the server, so that the server marks the state of the health monitoring device as an activated state; and disconnecting the connection with the health monitoring device. In an embodiment, the authentication information of the health monitoring device to be activated includes a key set corresponding to the health monitoring device to be activated, the key set including each key corresponding to the health monitoring device to be activated and a key identifier; the two-way authentication between the health monitoring device to be activated and the authentication information is based on, specifically including: generating a third public key and a third private key according to a preset key agreement algorithm; selecting an arbitrary third key from the key set, and generating fifth signature information by using a hash algorithm according to the selected third key, third time information and the third public key; sending a third authentication request to the health monitoring device to be activated, the third authentication request carrying the identifier information of the third key, the third time information, the third public key and the fifth signature information, so that the health monitoring device to be activated generates sixth signature information by using the hash algorithm according to the key corresponding to the identifier of the third key, the third time information and the third public key, to verify whether the sixth signature information is consistent with the fifth signature information; receiving a fourth authentication request sent by the health monitoring device to be activated when it is determined that the sixth signature information is consistent with the fifth signature information, the fourth authentication request carrying fourth key identifier information, fourth time information, a fourth public key and seventh signature information, the seventh signature information being generated by the health monitoring device to be activated by using the hash algorithm according to the selected fourth key, the fourth time information and the fourth public key, the fourth public key being generated by the health monitoring device to be activated according to the preset key agreement algorithm; generating eighth signature information by using the hash algorithm according to the key corresponding to the fourth key identifier, the fourth time information and the fourth public key; and determining that the authentication is successful if it is determined that the eighth signature information is consistent with the seventh signature information. In an embodiment, before the identifier information of the health monitoring device to be activated is sent to the server, it further includes: sending a login request to the server, the login request including login information; and receiving access token information returned by the server, the access token being generated by the server after verifying the login information successfully. Based on the same inventive concept, the embodiments of the present application also provide a data transmission device implemented on a specified mobile terminal side, and the implementation of the data transmission device implemented on the specified mobile terminal side can be referred to the implementation of the data transmission method, and the repeated parts will not be described here.As shown in FIG. 14, which is a structural schematic diagram of a data transmission apparatus provided by an embodiment of the present application and implemented on a mobile terminal side, the apparatus can include: a wake-up unit 101 configured to wake up a health monitoring device to be activated, and acquire identification information of the health monitoring device to be activated; a first sending unit 102 configured to send the identification information of the health monitoring device to be activated to a server, so that the server checks the identification of the health monitoring device to be activated; a first receiving unit 103 configured to receive authentication information of the health monitoring device to be activated sent by the server, the authentication information of the health monitoring device to be activated being sent by the server after the identification of the health monitoring device to be activated is checked; an authentication unit 104 configured to perform bidirectional authentication with the health monitoring device to be activated based on the authentication information of the health monitoring device to be activated, and connect with the health monitoring device to be activated after the authentication is successful, and activate the health monitoring device to be activated; a second sending unit 105 configured to send activation success information of the health monitoring device to the server, so that the server marks a state of the health monitoring device as an activated state, and disconnects the connection between the health monitoring device and the server.In an embodiment, the authentication information of the to-be-activated health monitoring device includes a key set corresponding to the to-be-activated health monitoring device, the key set including each key corresponding to the to-be-activated health monitoring device and a key identifier; the authentication unit 104 is specifically configured to generate a third public key and a third private key according to a preset key agreement algorithm; select an arbitrary third key from the key set, and generate fifth signature information by using a hash algorithm according to the selected third key, third time information, and the third public key; send a third authentication request to the to-be-activated health monitoring device, the third authentication request carrying the identifier information of the third key, the third time information, the third public key, and the fifth signature information, so that the to-be-activated health monitoring device generates sixth signature information by using the hash algorithm according to the key corresponding to the identifier of the third key, the third time information, and the third public key, to verify whether the sixth signature information is consistent with the fifth signature information; receive a fourth authentication request sent by the to-be-activated health monitoring device when it is determined that the sixth signature information is consistent with the fifth signature information, the fourth authentication request carrying fourth key identifier information, fourth time information, a fourth public key, and seventh signature information, the seventh signature information being generated by the to-be-activated health monitoring device by using the hash algorithm according to the selected fourth key, the fourth time information, and the fourth public key, the fourth public key being generated by the to-be-activated health monitoring device according to the preset key agreement algorithm; generate eighth signature information by using the hash algorithm according to the key corresponding to the identifier of the fourth key, the fourth time information, and the fourth public key; and if it is determined that the eighth signature information is consistent with the seventh signature information, it is determined that the authentication is successful. In an embodiment, the apparatus further includes: a third sending unit configured to send a login request to a server before sending the identifier information of the to-be-activated health monitoring device to the server, the login request including login information; and a second receiving unit configured to receive access token information returned by the server, the access token being generated by the server after verifying that the login information is successful. Based on the same inventive concept, the embodiments of the present application also provide a health monitoring device-side implemented data transmission method. Since the problem solving principle of the above-mentioned health monitoring device-side implemented data transmission method is similar to that of the above-mentioned data transmission method, the implementation of the above-mentioned health monitoring device-side implemented data transmission method can be referred to the implementation of the above-mentioned data transmission method, and the repeated parts will not be described herein. As shown in FIG. 15, it is a health monitoring device-side implemented data transmission method implementation flowchart provided by the embodiments of the present application, which can include the following steps.

[0076] 5111、 The health monitoring device receives an identification information acquisition request of the health monitoring device sent by the specified mobile terminal or the base station, and the identification information acquisition request of the health monitoring device is sent by the specified mobile terminal or the base station after the health monitoring device is woken up by the specified mobile terminal.

[0077] 5112、 The identification information of the health monitoring device is returned to the specified mobile terminal or the base station, so that the specified mobile terminal or the base station activates the health monitoring device according to the identification information of the health monitoring device.

[0078] 5113、 The association information of the health monitoring device is sent to the connectable base station after being activated, so that the base station sends the association information of the health monitoring device to the server, and determines whether the connection condition is met based on the association information of the health monitoring device and the state of the health monitoring device.

[0079] 5114、 report the collected health monitoring data to the base station after connecting with the base station, so that the base station sends the health monitoring data to the server, wherein the health monitoring device connects with the base station after the base station receives a message returned by the server and indicating to connect the health monitoring device. In an implementation, the message indicating to connect the health monitoring device contains authentication information of the health monitoring device; before establishing a connection with the base station, the method further includes: performing two-way authentication with the base station based on the authentication information of the health monitoring device; and determining that the two-way authentication is successful. In an implementation, the two-way authentication with the base station based on the authentication information of the health monitoring device specifically includes: receiving a fifth authentication request sent by the base station, wherein the fifth authentication request carries identification information of a fifth key, fifth time information, a fifth public key, and ninth signature information, the fifth public key is generated by the base station according to a preset key agreement algorithm, the fifth key is selected by the base station from a key set in the authentication information of the health monitoring device returned by the server, and the ninth signature information is generated by the base station according to the fifth key, the fifth time information, and the fifth public key by using a hash algorithm; generating tenth signature information by using the hash algorithm according to a key corresponding to the identification information of the fifth key, the fifth time information, and the fifth public key; if it is determined that the tenth signature information is consistent with the ninth signature information, generating a sixth public key and a sixth private key according to the preset key agreement algorithm; selecting an arbitrary sixth key from a locally stored key set, and generating eleventh signature information by using the hash algorithm according to the selected sixth key, sixth time information, and the sixth public key; and sending a sixth authentication request to the base station, wherein the sixth authentication request carries identification information of the sixth key, the sixth time information, the sixth public key, and the eleventh signature information, so that the base station generates twelfth signature information by using the hash algorithm according to a key corresponding to the identification information of the sixth key, the sixth time information, and the sixth public key, to verify whether the twelfth signature information is consistent with the eleventh signature information.In an implementation, if it is determined that the bidirectional authentication is successful, the method further includes: generating, with the base station, a shared key based on the fifth public key, a fifth private key corresponding to the fifth public key, the sixth public key, and the sixth private key using the preset key agreement algorithm; sending the shared key to the server, so that the server stores a correspondence between identification information of the health monitoring device and the shared key; and reporting collected health monitoring data to the base station, so that the base station sends the health monitoring data to the server, specifically including: encrypting the health monitoring data according to the shared key and a preset encryption algorithm to generate encrypted health monitoring data; and sending the encrypted health monitoring data to the server, so that the server decrypts the encrypted health monitoring data according to the shared key. Based on the same inventive concept, the embodiments of the present application further provide a health monitoring device-side implemented data transmission apparatus. Since the problem solving principle of the above-mentioned health monitoring device-side implemented data transmission apparatus is similar to that of the above-mentioned data transmission method, the implementation of the above-mentioned health monitoring device-side implemented data transmission apparatus can be referred to the implementation of the above-mentioned data transmission method, and the repeated parts will not be described herein. As shown in FIG. 16, it is a structure schematic diagram of the health monitoring device-side implemented data transmission apparatus provided by the embodiments of the present application, which can include: a receiving unit 121, configured to receive an identification information acquisition request of a health monitoring device sent by a specified mobile terminal or a base station, the identification information acquisition request of the health monitoring device being sent by the specified mobile terminal or the base station after the health monitoring device is woken up by the specified mobile terminal; a returning unit 122, configured to return identification information of the health monitoring device to the specified mobile terminal or the base station, so that the specified mobile terminal or the base station activates the health monitoring device according to the identification information of the health monitoring device; a first sending unit 123, configured to send association information of the health monitoring device to a connectable base station after being activated, so that the base station sends the association information of the health monitoring device to the server, so that the server determines whether a connection condition is met based on the association information of the health monitoring device and a state of the health monitoring device; and a reporting unit 124, configured to report collected health monitoring data to the base station after connecting with the base station, so that the base station sends the health monitoring data to the server, wherein the health monitoring device is connected with the base station after the base station receives a message returned by the server and indicating to connect the health monitoring device.In an embodiment, the message indicating the connection of the health monitoring device comprises authentication information of the health monitoring device; the apparatus further comprises: an authentication unit configured to perform mutual authentication with the base station based on the authentication information of the health monitoring device before establishing a connection with the base station; and a determination unit configured to determine that the mutual authentication is successful. In an embodiment, the authentication unit is specifically configured to receive a fifth authentication request sent by the base station, wherein the fifth authentication request carries identification information of a fifth key, fifth time information, a fifth public key, and ninth signature information; the fifth public key is generated by the base station according to a preset key agreement algorithm; the fifth key is selected by the base station from a key set in the authentication information of the health monitoring device returned by the server; the ninth signature information is generated by the base station using a hash algorithm according to the fifth key, the fifth time information, and the fifth public key; tenth signature information is generated by the hash algorithm according to a key corresponding to the identification information of the fifth key, the fifth time information, and the fifth public key; if it is determined that the tenth signature information is consistent with the ninth signature information, a sixth public key and a sixth private key are generated according to the preset key agreement algorithm; any sixth key is selected from a locally stored key set, and eleventh signature information is generated by the hash algorithm according to the selected sixth key, sixth time information, and the sixth public key; and a sixth authentication request is sent to the base station, wherein the sixth authentication request carries identification information of the sixth key, the sixth time information, the sixth public key, and the eleventh signature information, so that the base station generates twelfth signature information by the hash algorithm according to a key corresponding to the identification information of the sixth key, the sixth time information, and the sixth public key, to verify whether the twelfth signature information is consistent with the eleventh signature information. In an embodiment, the apparatus further comprises: a key agreement unit configured to generate a shared key by the preset key agreement algorithm based on the fifth public key, a fifth private key corresponding to the fifth public key, the sixth public key, and the sixth private key, if it is determined that the mutual authentication is successful; a second sending unit configured to send the shared key to the server, so that the server stores a correspondence between identification information of the health monitoring device and the shared key; and the reporting unit 124 is specifically configured to encrypt the health monitoring data according to the shared key and a preset encryption algorithm to generate encrypted health monitoring data, and send the encrypted health monitoring data to the server, so that the server decrypts the encrypted health monitoring data according to the shared key.Based on the same technical concept, the embodiment of the present application further provides an electronic device 130, as shown in FIG. 17, which is used to implement the data transmission method described in the above method embodiment. The electronic device 130 of this embodiment can include a memory 131, a processor 132, and a computer program, such as a data transmission program, stored in the memory and executable on the processor. The processor executes the computer program to implement the steps in each of the above data transmission method embodiments. In the embodiment of the present application, the specific connection medium between the memory 131 and the processor 132 is not limited. In FIG. 17, the memory 131 and the processor 132 are connected through a bus 133, which is represented by a thick line in FIG. 17. The connection mode between other components is only illustrative and is not limited. The bus 133 can be divided into an address bus, a data bus, a control bus, etc. For convenience of representation, only one thick line is used in FIG. 17, but it does not mean that there is only one bus or only one type of bus. The memory 131 can be a volatile memory, such as a random-access memory (RAM); the memory 131 can also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), or the memory 131 can be any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited to this. The memory 131 can be a combination of the above memories. The processor 132 is used to implement the data transmission method provided by the embodiment of the present application. The present application further provides a computer-readable storage medium storing computer executable instructions required for the processor to execute, which contains a program for the processor to execute. In some possible implementations, each aspect of the data transmission method provided by the present application can also be implemented in the form of a program product, which includes program code for causing the electronic device to perform the steps in the data transmission method according to various exemplary embodiments of the present application described above when the program product is run on the electronic device. Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a device, or a computer program product.Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment containing both software and hardware aspects. Furthermore, the present application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, and the like) embodying computer-readable instructions for example, a computer program implementing a methodology according to embodiments of the present application. The present application is described in reference to the drawings, which are illustrative of various embodiments of the present application. The drawings provided are for purposes of illustration and description only. It is noted that elements within the drawings are not necessarily drawn to scale, emphasis (with broken lines, ghost lines, etc.) being placed upon function, structure, and / or sequence to conceptually illustrate the described subject matter. In the drawings: Like reference numerals can refer to like elements throughout the description. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and / or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items. As used herein, the term "if' can mean "when" or "upon" or "in response to the occurrence of. As used herein, the term "plurality" means two or more. As used herein, the term "exemplary" means serving as an example, instance, or illustration. As used herein, the term "operatively coupled" means directly or indirectly coupled, linked, associated, or connected. As used herein, the term "coupled" means directly or indirectly connected, linked, associated, or combined. As used herein, the term "processor" means any hardware system, hardware component, integrated circuit, logic element (e.g., a logic gate, a plurality of logic gates, or other logic component), or any other hardware arrangement that processes digital data. As used herein, the term "memory" means any hardware component, integrated circuit, logic element, or any other hardware arrangement that stores digital data. As used herein, the term "non-transitory computer-readable medium" means a medium that does not require power to maintain the stored computer-readable instructions.

Claims

CLAIM 1. A data transmission method executed by a server, characterized by, The method comprises the following steps: receiving activation success information of a health monitoring device, marking the state of the health monitoring device as an activated state, the activation success information of the health monitoring device being sent by the health monitoring device after the health monitoring device is activated by a mobile terminal or being sent by a base station after the health monitoring device is activated by the base station; receiving association information of a candidate to-be-connected health monitoring device sent by a base station, the candidate to-be-connected health monitoring device being a to-be-connected health monitoring device detected by the base station and connectable within the coverage range of the base station; 2. The method of claim 1, wherein, if it is determined that a connection condition is met based on the association information of the candidate to-be-connected health monitoring device and the state of the candidate to-be-connected health monitoring device, returning a message indicating that the candidate to-be-connected health monitoring device is connected to the base station, so that the base station is connected to the candidate to-be-connected health monitoring device; receiving health monitoring data obtained from each health monitoring device connected by the base station. The association information of the candidate to-be-connected health monitoring device comprises identification information of the candidate to-be-connected health monitoring device and signal strength information between the candidate to-be-connected health monitoring device and the base station; 3. The method of claim 1, wherein The determination that the connection condition is met based on the association information of the candidate to-be-connected health monitoring device and the state of the candidate to-be-connected health monitoring device specifically comprises: searching for the state of the candidate to-be-connected health monitoring device based on the identification of the candidate to-be-connected health monitoring device; if it is determined that the state of the candidate to-be-connected health monitoring device is an activated state and the signal strength between the candidate to-be-connected health monitoring device and the base station at the current time is greater than the signal strength between the candidate to-be-connected health monitoring device and a first base station at the disconnection time of the candidate to-be-connected health monitoring device from the first base station, it is determined that the connection condition is met. The association information of the candidate to-be-connected health monitoring device comprises identification information of the candidate to-be-connected health monitoring device and signal strength information between the candidate to-be-connected health monitoring device and the base station; 4. The method of claim 1, wherein, The determination that the connection condition is met based on the association information of the candidate to-be-connected health monitoring device and the state of the candidate to-be-connected health monitoring device specifically comprises: searching for the state of the candidate to-be-connected health monitoring device based on the identification of the candidate to-be-connected health monitoring device; if it is determined that the state of the candidate to-be-connected health monitoring device is an activated state and the signal strength between the candidate to-be-connected health monitoring device and the base station at the current time is greater than the signal strength between the candidate to-be-connected health monitoring device and each second base station adjacent to the base station, it is determined that the connection condition is met. The message indicating that the candidate to-be-connected health monitoring device is connected comprises authentication information of the candidate to-be-connected health monitoring device, so that the base station and the candidate to-be-connected health monitoring device perform mutual authentication based on the authentication information, 37 and the authentication information of the candidate health monitoring device to be connected comprises a key set corresponding to the candidate health monitoring device to be connected, and the key set comprises each key corresponding to the candidate health monitoring device to be connected and a key identifier.

5. The method of claim 1, wherein, Before receiving the association information of the candidate health monitoring device to be connected sent by the base station, the method further comprises: receiving a login request sent by the base station, wherein the login request comprises identification information and login key information of the base station; and checking the identification information and the login key information of the base station, and returning login token information to the base station if it is determined that the checking is passed, so that the base station carries the login token information when sending data.

6. A data transmission method performed by a base station, characterized by, comprise: sending activation success information of the health monitoring device to the server after the health monitoring device to be activated is activated, so that the server marks a state of the health monitoring device as an activated state; sending the association information of the candidate health monitoring device to be connected detected in the coverage range to the server, so that the server determines whether a connection condition is met based on the association information of the candidate health monitoring device to be connected and a state of the candidate health monitoring device to be connected; when it is determined that the message indicating that the candidate health monitoring device to be connected is connected returned by the server is received, connecting the candidate health monitoring device to be connected; receiving health monitoring data reported by each connected health monitoring device, and sending the health monitoring data reported by each health monitoring device to the server.

7. The method of claim 6, wherein The health monitoring device to be activated is activated in the following manner: receiving a Bluetooth broadcast data packet sent by the health monitoring device to be activated, wherein the Bluetooth broadcast data packet is sent by the health monitoring device to be activated after being woken up by a specified mobile terminal; obtaining identification information of the health monitoring device to be activated from the health monitoring device to be activated; sending the identification information of the health monitoring device to be activated to the server, so that the server checks the identification information of the health monitoring device to be activated; receiving authentication information of the health monitoring device to be activated sent by the server, wherein the authentication information of the health monitoring device to be activated is sent by the server after the identification information of the health monitoring device to be activated is checked; based on the authentication information of the health monitoring device to be activated, performing bidirectional authentication with the health monitoring device to be activated, and activating the health monitoring device to be activated after the authentication is successful.

8. The method of claim 7, wherein, The authentication information of the health monitoring device to be activated comprises a key set corresponding to the health monitoring device to be activated, and the key set comprises each key corresponding to the health monitoring device to be activated and a key identifier. The authentication information of the to-be-activated health monitoring device is used for bidirectional authentication with the to-be-activated health monitoring device, specifically including: generating a first public key and a first private key according to a preset key agreement algorithm; selecting an arbitrary first key from the key set, and generating first signature information by using a hash algorithm according to the selected first key, first time information and the first public key; 38 sending a first authentication request to the to-be-activated health monitoring device, the first authentication request carrying identification information of the first key, the first time information, the first public key and the first signature information, so that the to-be-activated health monitoring device generates second signature information by using the hash algorithm according to the key corresponding to the identification information of the first key, the first time information and the first public key, to verify whether the second signature information is consistent with the first signature information; receiving a second authentication request sent by the to-be-activated health monitoring device when it is determined that the second signature information is consistent with the first signature information, the second authentication request carrying identification information of a second key, second time information, a second public key and third signature information, the third signature information being generated by the to-be-activated health monitoring device by using the hash algorithm according to the selected second key, the second time information and the second public key, the second public key being generated by the to-be-activated health monitoring device according to the preset key agreement algorithm; generating fourth signature information by using the hash algorithm according to the key corresponding to the identification information of the second key, the second time information and the second public key; if it is determined that the fourth signature information is consistent with the third signature information, it is determined that the authentication is successful.

9. A data transmission method executed by a specified mobile terminal, characterized by, including: waking up the to-be-activated health monitoring device, and obtaining identification information of the to-be-activated health monitoring device; sending the identification information of the to-be-activated health monitoring device to a server, so that the server verifies the identification of the to-be-activated health monitoring device; receiving authentication information of the to-be-activated health monitoring device sent by the server, the authentication information of the to-be-activated health monitoring device being sent by the server after the verification of the identification of the to-be-activated health monitoring device is passed; based on the authentication information of the to-be-activated health monitoring device, performing bidirectional authentication with the to-be-activated health monitoring device, and connecting with the to-be-activated health monitoring device after the authentication is successful, and activating the to-be-activated health monitoring device; sending activation success information of the health monitoring device to the server, so that the server marks the state of the health monitoring device as an activated state; and disconnecting the connection between the health monitoring device.

10. The method of claim 9, wherein, The authentication information of the to-be-activated health monitoring device includes a key set corresponding to the to-be-activated health monitoring device, and the key set includes each key corresponding to the to-be-activated health monitoring device and a key identification. The authentication information of the to-be-activated health monitoring device is authenticated with the to-be-activated health monitoring device in a bidirectional manner, specifically including: generating a third public key and a third private key according to a preset key agreement algorithm; selecting an arbitrary third key from the key set, and generating fifth signature information by using a hash algorithm according to the selected third key, third time information, and the third public key; sending a third authentication request to the to-be-activated health monitoring device, the third authentication request carrying identification information of the third key, the third time information, the third public key, and the fifth signature information, so that the to-be-activated health monitoring device generates sixth signature information by using the hash algorithm according to the key corresponding to the identification information of the third key, the third time information, and the third public key, to check whether the sixth signature information is consistent with the fifth signature information; receiving a fourth authentication request sent by the to-be-activated health monitoring device when it is determined that the sixth signature information is consistent with the fifth signature information, the fourth authentication request carrying identification information of a fourth key, fourth time information, a fourth public key, and seventh signature information, the seventh signature information being generated by the to-be-activated health monitoring device by using the hash algorithm according to the selected fourth key, the fourth time information, and the fourth public key, the fourth public key being generated by the to-be-activated health monitoring device according to the preset key agreement algorithm; generating eighth signature information by using the hash algorithm according to the key corresponding to the identification information of the fourth key, the fourth time information, and the fourth public key; and determining that the authentication is successful if it is determined that the eighth signature information is consistent with the seventh signature information. Before the identification information of the to-be-activated health monitoring device is sent to the server, the method further includes: sending a login request to the server, the login request containing login information; and receiving access token information returned by the server, the access token being generated by the server after the login information is verified successfully.

11. The method of claim 9, wherein, The method includes:

12. A data transmission method performed by a health monitoring device, characterized by, receiving an identification information acquisition request of a health monitoring device sent by a specified mobile terminal or a base station, the identification information acquisition request of the health monitoring device being sent by the specified mobile terminal or the base station after the health monitoring device is woken up by the specified mobile terminal; returning the identification information of the health monitoring device to the specified mobile terminal or the base station, so that the specified mobile terminal or the base station activates the health monitoring device according to the identification information of the health monitoring device; after being activated, sending association information of the health monitoring device to a connectable base station, so that the base station sends the association information of the health monitoring device to the server, to determine whether a connection condition is met based on the association information of the health monitoring device and a state of the health monitoring device by the server; and ​ Report the collected health monitoring data to the base station after connecting with the base station, so that the base station sends the health monitoring data to the server, wherein the health monitoring device is connected with the base station after the base station receives the message returned by the server indicating to connect the health monitoring device.

13. The method of claim 12, wherein, The message indicating to connect the health monitoring device contains the authentication information of the health monitoring device; before establishing a connection with the base station, further comprising: performing two-way authentication with the base station based on the authentication information of the health monitoring device; determining that the two-way authentication is successful; wherein, performing two-way authentication with the base station based on the authentication information of the health monitoring device, specifically comprising: receiving a fifth authentication request sent by the base station, the fifth authentication request carrying fifth identification information of a fifth key, fifth time information, a fifth public key and ninth signature information, the fifth public key being generated by the base station according to a preset key agreement algorithm, the fifth key being selected by the base station from a key set in the authentication information of the health monitoring device returned by the server, and the ninth signature information being generated by the base station according to the fifth key, the fifth event information and the fifth public key using a hash algorithm; generating tenth signature information using the hash algorithm according to the key corresponding to the identification of the fifth key, the fifth time information and the fifth public key; if it is determined that the tenth signature information and the ninth signature information are consistent, generating a sixth public key and a sixth private key according to the preset key agreement algorithm; selecting any sixth key from a locally stored key set, and generating eleventh signature information using the hash algorithm according to the selected sixth key, sixth time information and the sixth public key; sending a sixth authentication request to the base station, the sixth authentication request carrying identification information of the sixth key, the sixth time information, the sixth public key and the eleventh signature information, so that the base station generates twelfth signature information using the hash algorithm according to the key corresponding to the identification of the sixth key, the sixth time information and the sixth public key, to verify whether the twelfth signature information is consistent with the eleventh signature information. ​ 14. The method of claim 13, wherein, If it is determined that the bidirectional authentication is successful, the method further includes: generating, with the base station, a shared key based on the fifth public key, a fifth private key corresponding to the fifth public key, the sixth public key, and the sixth private key using the preset key agreement algorithm; sending the shared key to the server, so that the server stores a correspondence between identification information of the health monitoring device and the shared key; and reporting the collected health monitoring data to the base station, so that the base station sends the health monitoring data to the server, specifically including: encrypting the health monitoring data according to the shared key and a preset encryption algorithm to generate encrypted health monitoring data; and sending the encrypted health monitoring data to the server, so that the server decrypts the encrypted health monitoring data according to the shared key.

15. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program comprises instructions for: The processor implements the data transmission method of any one of claims 1-14 when executing the program. ​ 16. A computer readable storage medium having stored thereon a computer program, characterized in that The program is executed by the processor to implement the steps in the data transmission method of any one of claims 1-14.

Citation Information

Patent Citations

  • Access method and system for cellular mobile communication network

    EP2442602A1

  • Systems and methods for wireless communication with implantable and body worn devices

    US20160330573A1